@ -863,7 +863,9 @@ def generateObjectType(path: str, name: str, schema: dict, type_name: str):
|
||||
property_type = property_type.replace(
|
||||
'#/components/schemas/', '')
|
||||
f.write(
|
||||
"\tfrom ..models import " +
|
||||
"\tfrom ..models." +
|
||||
camel_to_snake(property_type) +
|
||||
" import " +
|
||||
property_type +
|
||||
"\n")
|
||||
elif 'type' in property_schema['items']:
|
||||
@ -979,7 +981,9 @@ def generateObjectType(path: str, name: str, schema: dict, type_name: str):
|
||||
property_type = property_type.replace(
|
||||
'#/components/schemas/', '')
|
||||
f.write(
|
||||
"\t\tfrom ..models import " +
|
||||
"\t\tfrom ..models." +
|
||||
camel_to_snake(property_type) +
|
||||
" import " +
|
||||
property_type +
|
||||
"\n")
|
||||
elif 'type' in property_schema['items']:
|
||||
@ -1146,7 +1150,9 @@ def generateObjectType(path: str, name: str, schema: dict, type_name: str):
|
||||
property_type = property_type.replace(
|
||||
'#/components/schemas/', '')
|
||||
f.write(
|
||||
"\t\tfrom ..models import " +
|
||||
"\t\tfrom ..models." +
|
||||
camel_to_snake(property_type) +
|
||||
" import " +
|
||||
property_type +
|
||||
"\n")
|
||||
elif 'type' in property_schema['items']:
|
||||
|
@ -10,14 +10,14 @@ T = TypeVar("T", bound="ApiCallWithPriceResultsPage")
|
||||
@attr.s(auto_attribs=True)
|
||||
class ApiCallWithPriceResultsPage:
|
||||
""" """
|
||||
from ..models import ApiCallWithPrice
|
||||
from ..models.api_call_with_price import ApiCallWithPrice
|
||||
items: Union[Unset, List[ApiCallWithPrice]] = UNSET
|
||||
next_page: Union[Unset, str] = UNSET
|
||||
|
||||
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
from ..models import ApiCallWithPrice
|
||||
from ..models.api_call_with_price import ApiCallWithPrice
|
||||
items: Union[Unset, List[ApiCallWithPrice]] = UNSET
|
||||
if not isinstance(self.items, Unset):
|
||||
items = self.items
|
||||
@ -36,7 +36,7 @@ class ApiCallWithPriceResultsPage:
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
d = src_dict.copy()
|
||||
from ..models import ApiCallWithPrice
|
||||
from ..models.api_call_with_price import ApiCallWithPrice
|
||||
items = cast(List[ApiCallWithPrice], d.pop("items", UNSET))
|
||||
|
||||
next_page = d.pop("next_page", UNSET)
|
||||
|
@ -10,14 +10,14 @@ T = TypeVar("T", bound="ApiTokenResultsPage")
|
||||
@attr.s(auto_attribs=True)
|
||||
class ApiTokenResultsPage:
|
||||
""" """
|
||||
from ..models import ApiToken
|
||||
from ..models.api_token import ApiToken
|
||||
items: Union[Unset, List[ApiToken]] = UNSET
|
||||
next_page: Union[Unset, str] = UNSET
|
||||
|
||||
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
from ..models import ApiToken
|
||||
from ..models.api_token import ApiToken
|
||||
items: Union[Unset, List[ApiToken]] = UNSET
|
||||
if not isinstance(self.items, Unset):
|
||||
items = self.items
|
||||
@ -36,7 +36,7 @@ class ApiTokenResultsPage:
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
d = src_dict.copy()
|
||||
from ..models import ApiToken
|
||||
from ..models.api_token import ApiToken
|
||||
items = cast(List[ApiToken], d.pop("items", UNSET))
|
||||
|
||||
next_page = d.pop("next_page", UNSET)
|
||||
|
@ -10,14 +10,14 @@ T = TypeVar("T", bound="ExtendedUserResultsPage")
|
||||
@attr.s(auto_attribs=True)
|
||||
class ExtendedUserResultsPage:
|
||||
""" """
|
||||
from ..models import ExtendedUser
|
||||
from ..models.extended_user import ExtendedUser
|
||||
items: Union[Unset, List[ExtendedUser]] = UNSET
|
||||
next_page: Union[Unset, str] = UNSET
|
||||
|
||||
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
from ..models import ExtendedUser
|
||||
from ..models.extended_user import ExtendedUser
|
||||
items: Union[Unset, List[ExtendedUser]] = UNSET
|
||||
if not isinstance(self.items, Unset):
|
||||
items = self.items
|
||||
@ -36,7 +36,7 @@ class ExtendedUserResultsPage:
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
d = src_dict.copy()
|
||||
from ..models import ExtendedUser
|
||||
from ..models.extended_user import ExtendedUser
|
||||
items = cast(List[ExtendedUser], d.pop("items", UNSET))
|
||||
|
||||
next_page = d.pop("next_page", UNSET)
|
||||
|
@ -25,3 +25,5 @@ class Invoice:
|
||||
id: Union[Unset, str] = UNSET
|
||||
invoice_pdf: Union[Unset, str] = UNSET
|
||||
invoice_url: Union[Unset, str] = UNSET
|
||||
from ..models.invoice_line_item import InvoiceLineItem
|
||||
lines: Union[Unset, List[InvoiceLineItem]] = UNSET
|
||||
|
@ -10,14 +10,14 @@ T = TypeVar("T", bound="UserResultsPage")
|
||||
@attr.s(auto_attribs=True)
|
||||
class UserResultsPage:
|
||||
""" """
|
||||
from ..models import User
|
||||
from ..models.user import User
|
||||
items: Union[Unset, List[User]] = UNSET
|
||||
next_page: Union[Unset, str] = UNSET
|
||||
|
||||
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
from ..models import User
|
||||
from ..models.user import User
|
||||
items: Union[Unset, List[User]] = UNSET
|
||||
if not isinstance(self.items, Unset):
|
||||
items = self.items
|
||||
@ -36,7 +36,7 @@ class UserResultsPage:
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
d = src_dict.copy()
|
||||
from ..models import User
|
||||
from ..models.user import User
|
||||
items = cast(List[User], d.pop("items", UNSET))
|
||||
|
||||
next_page = d.pop("next_page", UNSET)
|
||||
|
Reference in New Issue
Block a user