37 lines
800 B
Python
37 lines
800 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 App(object):
|
|
_types = {
|
|
"id": str,
|
|
"label": str,
|
|
}
|
|
|
|
def __init__(self, d=None):
|
|
self.id: Optional[str] = None
|
|
self.label: Optional[str] = None
|
|
init(self, d, self._types)
|
|
|
|
@staticmethod
|
|
def builder() -> "AppBuilder":
|
|
return AppBuilder()
|
|
|
|
|
|
class AppBuilder(object):
|
|
def __init__(self) -> None:
|
|
self._app = App()
|
|
|
|
def id(self, id: str) -> "AppBuilder":
|
|
self._app.id = id
|
|
return self
|
|
|
|
def label(self, label: str) -> "AppBuilder":
|
|
self._app.label = label
|
|
return self
|
|
|
|
def build(self) -> "App":
|
|
return self._app
|