31 lines
750 B
Python
31 lines
750 B
Python
![]() |
# Code generated by Lark OpenAPI.
|
||
|
|
||
|
from typing import Any, Optional, Union, Dict, List, Set, IO, Callable, Type
|
||
|
from lark_oapi.core.construct import init
|
||
|
|
||
|
|
||
|
class ClientInfo(object):
|
||
|
_types = {
|
||
|
"client_ip": str,
|
||
|
}
|
||
|
|
||
|
def __init__(self, d=None):
|
||
|
self.client_ip: Optional[str] = None
|
||
|
init(self, d, self._types)
|
||
|
|
||
|
@staticmethod
|
||
|
def builder() -> "ClientInfoBuilder":
|
||
|
return ClientInfoBuilder()
|
||
|
|
||
|
|
||
|
class ClientInfoBuilder(object):
|
||
|
def __init__(self) -> None:
|
||
|
self._client_info = ClientInfo()
|
||
|
|
||
|
def client_ip(self, client_ip: str) -> "ClientInfoBuilder":
|
||
|
self._client_info.client_ip = client_ip
|
||
|
return self
|
||
|
|
||
|
def build(self) -> "ClientInfo":
|
||
|
return self._client_info
|