37 lines
996 B
Python
37 lines
996 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 RegistrationInfo(object):
|
|
_types = {
|
|
"schema_id": str,
|
|
"name": str,
|
|
}
|
|
|
|
def __init__(self, d=None):
|
|
self.schema_id: Optional[str] = None
|
|
self.name: Optional[str] = None
|
|
init(self, d, self._types)
|
|
|
|
@staticmethod
|
|
def builder() -> "RegistrationInfoBuilder":
|
|
return RegistrationInfoBuilder()
|
|
|
|
|
|
class RegistrationInfoBuilder(object):
|
|
def __init__(self) -> None:
|
|
self._registration_info = RegistrationInfo()
|
|
|
|
def schema_id(self, schema_id: str) -> "RegistrationInfoBuilder":
|
|
self._registration_info.schema_id = schema_id
|
|
return self
|
|
|
|
def name(self, name: str) -> "RegistrationInfoBuilder":
|
|
self._registration_info.name = name
|
|
return self
|
|
|
|
def build(self) -> "RegistrationInfo":
|
|
return self._registration_info
|