sdk/oapiSdk/lark_oapi/api/contact/v3/model/department_unit.py

43 lines
1.2 KiB
Python
Raw Permalink Normal View History

2025-08-19 10:20:23 +00:00
# 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 DepartmentUnit(object):
_types = {
"unit_id": str,
"unit_type": str,
"unit_name": str,
}
def __init__(self, d=None):
self.unit_id: Optional[str] = None
self.unit_type: Optional[str] = None
self.unit_name: Optional[str] = None
init(self, d, self._types)
@staticmethod
def builder() -> "DepartmentUnitBuilder":
return DepartmentUnitBuilder()
class DepartmentUnitBuilder(object):
def __init__(self) -> None:
self._department_unit = DepartmentUnit()
def unit_id(self, unit_id: str) -> "DepartmentUnitBuilder":
self._department_unit.unit_id = unit_id
return self
def unit_type(self, unit_type: str) -> "DepartmentUnitBuilder":
self._department_unit.unit_type = unit_type
return self
def unit_name(self, unit_name: str) -> "DepartmentUnitBuilder":
self._department_unit.unit_name = unit_name
return self
def build(self) -> "DepartmentUnit":
return self._department_unit