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

@ -4,7 +4,6 @@ from typing import Any, Dict, List, Type, TypeVar, Union, cast
import attr
from dateutil.parser import isoparse
from ..models.phone_number import PhoneNumber
from ..types import UNSET, Unset
T = TypeVar("T", bound="User")
@ -24,7 +23,7 @@ class User:
image: Union[Unset, str] = UNSET
last_name: Union[Unset, str] = UNSET
name: Union[Unset, str] = UNSET
phone: Union[Unset, PhoneNumber] = UNSET
phone: Union[Unset, str] = UNSET
updated_at: Union[Unset, datetime.datetime] = UNSET
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
@ -45,9 +44,7 @@ class User:
image = self.image
last_name = self.last_name
name = self.name
phone: Union[Unset, str] = UNSET
if not isinstance(self.phone, Unset):
phone = self.phone.value
phone = self.phone
updated_at: Union[Unset, str] = UNSET
if not isinstance(self.updated_at, Unset):
updated_at = self.updated_at.isoformat()
@ -119,12 +116,7 @@ class User:
name = d.pop("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)
_updated_at = d.pop("updated_at", UNSET)
updated_at: Union[Unset, datetime.datetime]