I have generated the latest API!

This commit is contained in:
github-actions[bot]
2022-07-08 00:56:43 +00:00
parent 3802dd36fc
commit 4623f854af
19 changed files with 9574 additions and 8364 deletions

View File

@ -2,7 +2,6 @@ from typing import Any, Dict, List, Type, TypeVar, Union, cast
import attr
from ..models.phone_number import PhoneNumber
from ..types import UNSET, Unset
T = TypeVar("T", bound="UpdateUser")
@ -16,7 +15,7 @@ class UpdateUser:
first_name: Union[Unset, str] = UNSET
github: Union[Unset, str] = UNSET
last_name: Union[Unset, str] = UNSET
phone: Union[Unset, PhoneNumber] = UNSET
phone: Union[Unset, str] = UNSET
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
@ -26,9 +25,7 @@ class UpdateUser:
first_name = self.first_name
github = self.github
last_name = self.last_name
phone: Union[Unset, str] = UNSET
if not isinstance(self.phone, Unset):
phone = self.phone.value
phone = self.phone
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
@ -61,12 +58,7 @@ class UpdateUser:
last_name = d.pop("last_name", UNSET)
_phone = d.pop("phone", UNSET)
phone: Union[Unset, PhoneNumber]
if isinstance(_phone, Unset):
phone = UNSET
else:
phone = PhoneNumber(_phone)
phone = d.pop("phone", UNSET)
update_user = cls(
company=company,