bump (#80)
* bump Signed-off-by: Jess Frazelle <github@jessfraz.com> * some fixes Signed-off-by: Jess Frazelle <github@jessfraz.com> * YOYO NEW API SPEC! * reformat Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * fixups Signed-off-by: Jess Frazelle <github@jessfraz.com> * for now force true Signed-off-by: Jess Frazelle <github@jessfraz.com> * run the tests on generations Signed-off-by: Jess Frazelle <github@jessfraz.com> * add tests Signed-off-by: Jess Frazelle <github@jessfraz.com> * update Signed-off-by: Jess Frazelle <github@jessfraz.com> * update Signed-off-by: Jess Frazelle <github@jessfraz.com> * update Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * update Signed-off-by: Jess Frazelle <github@jessfraz.com> * fix some types Signed-off-by: Jess Frazelle <github@jessfraz.com> * float to top Signed-off-by: Jess Frazelle <github@jessfraz.com> * fix mypy Signed-off-by: Jess Frazelle <github@jessfraz.com> * more noqa Signed-off-by: Jess Frazelle <github@jessfraz.com> * fixups Signed-off-by: Jess Frazelle <github@jessfraz.com> * ruff pass Signed-off-by: Jess Frazelle <github@jessfraz.com> * add docs Signed-off-by: Jess Frazelle <github@jessfraz.com> * fix Signed-off-by: Jess Frazelle <github@jessfraz.com> * fix Signed-off-by: Jess Frazelle <github@jessfraz.com> * fix Signed-off-by: Jess Frazelle <github@jessfraz.com> * fixes Signed-off-by: Jess Frazelle <github@jessfraz.com> * even less mypy errors Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * add test Signed-off-by: Jess Frazelle <github@jessfraz.com> * fixes Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * fixes Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * fixups Signed-off-by: Jess Frazelle <github@jessfraz.com> * fixes Signed-off-by: Jess Frazelle <github@jessfraz.com> * cleanup Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * fix Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * fix Signed-off-by: Jess Frazelle <github@jessfraz.com> * new path Signed-off-by: Jess Frazelle <github@jessfraz.com> * fixes for mypy Signed-off-by: Jess Frazelle <github@jessfraz.com> * skip tests Signed-off-by: Jess Frazelle <github@jessfraz.com> --------- Signed-off-by: Jess Frazelle <github@jessfraz.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
@ -16,6 +16,7 @@ from .api_token import ApiToken
|
||||
from .api_token_results_page import ApiTokenResultsPage
|
||||
from .app_client_info import AppClientInfo
|
||||
from .async_api_call import AsyncApiCall
|
||||
from .async_api_call_output import AsyncApiCallOutput
|
||||
from .async_api_call_results_page import AsyncApiCallResultsPage
|
||||
from .async_api_call_type import AsyncApiCallType
|
||||
from .billing_info import BillingInfo
|
||||
@ -35,10 +36,12 @@ from .device_access_token_request_form import DeviceAccessTokenRequestForm
|
||||
from .device_auth_request_form import DeviceAuthRequestForm
|
||||
from .device_auth_verify_params import DeviceAuthVerifyParams
|
||||
from .docker_system_info import DockerSystemInfo
|
||||
from .drawing_cmd import DrawingCmd
|
||||
from .drawing_cmd_id import DrawingCmdId
|
||||
from .drawing_cmd_req import DrawingCmdReq
|
||||
from .drawing_cmd_req_batch import DrawingCmdReqBatch
|
||||
from .drawing_error import DrawingError
|
||||
from .drawing_outcome import DrawingOutcome
|
||||
from .drawing_outcomes import DrawingOutcomes
|
||||
from .email_authentication_form import EmailAuthenticationForm
|
||||
from .engine_metadata import EngineMetadata
|
||||
|
@ -2,8 +2,12 @@ from enum import Enum
|
||||
|
||||
|
||||
class AccountProvider(str, Enum):
|
||||
GOOGLE = 'google'
|
||||
GITHUB = 'github'
|
||||
"""An account provider.""" # noqa: E501
|
||||
|
||||
"""# The Google account provider. """ # noqa: E501
|
||||
GOOGLE = "google"
|
||||
"""# The GitHub account provider. """ # noqa: E501
|
||||
GITHUB = "github"
|
||||
|
||||
def __str__(self) -> str:
|
||||
return str(self.value)
|
||||
|
@ -1,16 +1,17 @@
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
|
||||
from ..models.ai_plugin_api_type import AiPluginApiType
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="AiPluginApi")
|
||||
S = TypeVar("S", bound="AiPluginApi")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class AiPluginApi:
|
||||
""" """
|
||||
"""AI plugin api information.""" # noqa: E501
|
||||
|
||||
is_user_authenticated: Union[Unset, bool] = False
|
||||
type: Union[Unset, AiPluginApiType] = UNSET
|
||||
url: Union[Unset, str] = UNSET
|
||||
@ -19,25 +20,24 @@ class AiPluginApi:
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
is_user_authenticated = self.is_user_authenticated
|
||||
type: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.type, Unset):
|
||||
type = self.type.value
|
||||
type = self.type
|
||||
url = self.url
|
||||
|
||||
field_dict: Dict[str, Any] = {}
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if is_user_authenticated is not UNSET:
|
||||
field_dict['is_user_authenticated'] = is_user_authenticated
|
||||
field_dict["is_user_authenticated"] = is_user_authenticated
|
||||
if type is not UNSET:
|
||||
field_dict['type'] = type
|
||||
field_dict["type"] = type
|
||||
if url is not UNSET:
|
||||
field_dict['url'] = url
|
||||
field_dict["url"] = url
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[S], src_dict: Dict[str, Any]) -> S:
|
||||
d = src_dict.copy()
|
||||
is_user_authenticated = d.pop("is_user_authenticated", UNSET)
|
||||
|
||||
|
@ -2,7 +2,10 @@ from enum import Enum
|
||||
|
||||
|
||||
class AiPluginApiType(str, Enum):
|
||||
OPENAPI = 'openapi'
|
||||
"""AI plugin api type.""" # noqa: E501
|
||||
|
||||
"""# An OpenAPI specification. """ # noqa: E501
|
||||
OPENAPI = "openapi"
|
||||
|
||||
def __str__(self) -> str:
|
||||
return str(self.value)
|
||||
|
@ -1,42 +1,41 @@
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
|
||||
from ..models.ai_plugin_http_auth_type import AiPluginHttpAuthType
|
||||
from ..models.ai_plugin_auth_type import AiPluginAuthType
|
||||
from ..models.ai_plugin_http_auth_type import AiPluginHttpAuthType
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="AiPluginAuth")
|
||||
B = TypeVar("B", bound="AiPluginAuth")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class AiPluginAuth:
|
||||
""" """
|
||||
"""AI plugin auth information.""" # noqa: E501
|
||||
|
||||
authorization_type: Union[Unset, AiPluginHttpAuthType] = UNSET
|
||||
type: Union[Unset, AiPluginAuthType] = UNSET
|
||||
|
||||
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
authorization_type: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.authorization_type, Unset):
|
||||
authorization_type = self.authorization_type.value
|
||||
type: Union[Unset, str] = UNSET
|
||||
authorization_type = self.authorization_type
|
||||
if not isinstance(self.type, Unset):
|
||||
type = self.type.value
|
||||
type = self.type
|
||||
|
||||
field_dict: Dict[str, Any] = {}
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if authorization_type is not UNSET:
|
||||
field_dict['authorization_type'] = authorization_type
|
||||
field_dict["authorization_type"] = authorization_type
|
||||
if type is not UNSET:
|
||||
field_dict['type'] = type
|
||||
field_dict["type"] = type
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[B], src_dict: Dict[str, Any]) -> B:
|
||||
d = src_dict.copy()
|
||||
_authorization_type = d.pop("authorization_type", UNSET)
|
||||
authorization_type: Union[Unset, AiPluginHttpAuthType]
|
||||
|
@ -2,10 +2,16 @@ from enum import Enum
|
||||
|
||||
|
||||
class AiPluginAuthType(str, Enum):
|
||||
NONE = 'none'
|
||||
USER_HTTP = 'user_http'
|
||||
SERVICE_HTTP = 'service_http'
|
||||
OAUTH = 'oauth'
|
||||
"""AI plugin auth type.""" # noqa: E501
|
||||
|
||||
"""# None. """ # noqa: E501
|
||||
NONE = "none"
|
||||
"""# User http. """ # noqa: E501
|
||||
USER_HTTP = "user_http"
|
||||
"""# Service http. """ # noqa: E501
|
||||
SERVICE_HTTP = "service_http"
|
||||
"""# OAuth. """ # noqa: E501
|
||||
OAUTH = "oauth"
|
||||
|
||||
def __str__(self) -> str:
|
||||
return str(self.value)
|
||||
|
@ -2,8 +2,12 @@ from enum import Enum
|
||||
|
||||
|
||||
class AiPluginHttpAuthType(str, Enum):
|
||||
BASIC = 'basic'
|
||||
BEARER = 'bearer'
|
||||
"""AI plugin http auth type.""" # noqa: E501
|
||||
|
||||
"""# Basic. """ # noqa: E501
|
||||
BASIC = "basic"
|
||||
"""# Bearer. """ # noqa: E501
|
||||
BEARER = "bearer"
|
||||
|
||||
def __str__(self) -> str:
|
||||
return str(self.value)
|
||||
|
@ -1,4 +1,4 @@
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
|
||||
@ -6,12 +6,15 @@ from ..models.ai_plugin_api import AiPluginApi
|
||||
from ..models.ai_plugin_auth import AiPluginAuth
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="AiPluginManifest")
|
||||
N = TypeVar("N", bound="AiPluginManifest")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class AiPluginManifest:
|
||||
""" """
|
||||
"""AI plugin manifest.
|
||||
|
||||
This is used for OpenAI's ChatGPT plugins. You can read more about them [here](https://platform.openai.com/docs/plugins/getting-started/plugin-manifest).""" # noqa: E501
|
||||
|
||||
api: Union[Unset, AiPluginApi] = UNSET
|
||||
auth: Union[Unset, AiPluginAuth] = UNSET
|
||||
contact_email: Union[Unset, str] = UNSET
|
||||
@ -26,12 +29,10 @@ class AiPluginManifest:
|
||||
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
api: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.api, Unset):
|
||||
api = self.api.value
|
||||
auth: Union[Unset, str] = UNSET
|
||||
api = self.api
|
||||
if not isinstance(self.auth, Unset):
|
||||
auth = self.auth.value
|
||||
auth = self.auth
|
||||
contact_email = self.contact_email
|
||||
description_for_human = self.description_for_human
|
||||
description_for_model = self.description_for_model
|
||||
@ -45,30 +46,30 @@ class AiPluginManifest:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if api is not UNSET:
|
||||
field_dict['api'] = api
|
||||
field_dict["api"] = api
|
||||
if auth is not UNSET:
|
||||
field_dict['auth'] = auth
|
||||
field_dict["auth"] = auth
|
||||
if contact_email is not UNSET:
|
||||
field_dict['contact_email'] = contact_email
|
||||
field_dict["contact_email"] = contact_email
|
||||
if description_for_human is not UNSET:
|
||||
field_dict['description_for_human'] = description_for_human
|
||||
field_dict["description_for_human"] = description_for_human
|
||||
if description_for_model is not UNSET:
|
||||
field_dict['description_for_model'] = description_for_model
|
||||
field_dict["description_for_model"] = description_for_model
|
||||
if legal_info_url is not UNSET:
|
||||
field_dict['legal_info_url'] = legal_info_url
|
||||
field_dict["legal_info_url"] = legal_info_url
|
||||
if logo_url is not UNSET:
|
||||
field_dict['logo_url'] = logo_url
|
||||
field_dict["logo_url"] = logo_url
|
||||
if name_for_human is not UNSET:
|
||||
field_dict['name_for_human'] = name_for_human
|
||||
field_dict["name_for_human"] = name_for_human
|
||||
if name_for_model is not UNSET:
|
||||
field_dict['name_for_model'] = name_for_model
|
||||
field_dict["name_for_model"] = name_for_model
|
||||
if schema_version is not UNSET:
|
||||
field_dict['schema_version'] = schema_version
|
||||
field_dict["schema_version"] = schema_version
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[N], src_dict: Dict[str, Any]) -> N:
|
||||
d = src_dict.copy()
|
||||
_api = d.pop("api", UNSET)
|
||||
api: Union[Unset, AiPluginApi]
|
||||
|
@ -1,15 +1,16 @@
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="ApiCallQueryGroup")
|
||||
P = TypeVar("P", bound="ApiCallQueryGroup")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class ApiCallQueryGroup:
|
||||
""" """
|
||||
"""A response for a query on the API call table that is grouped by something.""" # noqa: E501
|
||||
|
||||
count: Union[Unset, int] = UNSET
|
||||
query: Union[Unset, str] = UNSET
|
||||
|
||||
@ -23,14 +24,14 @@ class ApiCallQueryGroup:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if count is not UNSET:
|
||||
field_dict['count'] = count
|
||||
field_dict["count"] = count
|
||||
if query is not UNSET:
|
||||
field_dict['query'] = query
|
||||
field_dict["query"] = query
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[P], src_dict: Dict[str, Any]) -> P:
|
||||
d = src_dict.copy()
|
||||
count = d.pop("count", UNSET)
|
||||
|
||||
|
@ -2,12 +2,20 @@ from enum import Enum
|
||||
|
||||
|
||||
class ApiCallQueryGroupBy(str, Enum):
|
||||
EMAIL = 'email'
|
||||
METHOD = 'method'
|
||||
ENDPOINT = 'endpoint'
|
||||
USER_ID = 'user_id'
|
||||
ORIGIN = 'origin'
|
||||
IP_ADDRESS = 'ip_address'
|
||||
"""The field of an API call to group by.""" # noqa: E501
|
||||
|
||||
"""# The email of the user that requested the API call. """ # noqa: E501
|
||||
EMAIL = "email"
|
||||
"""# The HTTP method of the API call. """ # noqa: E501
|
||||
METHOD = "method"
|
||||
"""# The endpoint of the API call. """ # noqa: E501
|
||||
ENDPOINT = "endpoint"
|
||||
"""# The user ID of the user that requested the API call. """ # noqa: E501
|
||||
USER_ID = "user_id"
|
||||
"""# The origin of the API call. This is parsed from the `Origin` header. """ # noqa: E501
|
||||
ORIGIN = "origin"
|
||||
"""# The IP address of the user making the API call. """ # noqa: E501
|
||||
IP_ADDRESS = "ip_address"
|
||||
|
||||
def __str__(self) -> str:
|
||||
return str(self.value)
|
||||
|
@ -2,11 +2,18 @@ from enum import Enum
|
||||
|
||||
|
||||
class ApiCallStatus(str, Enum):
|
||||
QUEUED = 'Queued'
|
||||
UPLOADED = 'Uploaded'
|
||||
IN_PROGRESS = 'In Progress'
|
||||
COMPLETED = 'Completed'
|
||||
FAILED = 'Failed'
|
||||
"""The status of an async API call.""" # noqa: E501
|
||||
|
||||
"""# The async API call is queued. """ # noqa: E501
|
||||
QUEUED = "Queued"
|
||||
"""# The async API call was uploaded to be converted. """ # noqa: E501
|
||||
UPLOADED = "Uploaded"
|
||||
"""# The async API call is in progress. """ # noqa: E501
|
||||
IN_PROGRESS = "In Progress"
|
||||
"""# The async API call has completed. """ # noqa: E501
|
||||
COMPLETED = "Completed"
|
||||
"""# The async API call has failed. """ # noqa: E501
|
||||
FAILED = "Failed"
|
||||
|
||||
def __str__(self) -> str:
|
||||
return str(self.value)
|
||||
|
@ -1,19 +1,21 @@
|
||||
import datetime
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
from dateutil.parser import isoparse
|
||||
|
||||
from ..models.uuid import Uuid
|
||||
from ..models.method import Method
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="ApiCallWithPrice")
|
||||
S = TypeVar("S", bound="ApiCallWithPrice")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class ApiCallWithPrice:
|
||||
""" """
|
||||
"""An API call with the price.
|
||||
|
||||
This is a join of the `ApiCall` and `ApiCallPrice` tables.""" # noqa: E501
|
||||
|
||||
completed_at: Union[Unset, datetime.datetime] = UNSET
|
||||
created_at: Union[Unset, datetime.datetime] = UNSET
|
||||
duration: Union[Unset, int] = UNSET
|
||||
@ -52,9 +54,8 @@ class ApiCallWithPrice:
|
||||
id = self.id
|
||||
ip_address = self.ip_address
|
||||
litterbox = self.litterbox
|
||||
method: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.method, Unset):
|
||||
method = self.method.value
|
||||
method = self.method
|
||||
minutes = self.minutes
|
||||
origin = self.origin
|
||||
price = self.price
|
||||
@ -77,54 +78,54 @@ class ApiCallWithPrice:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if completed_at is not UNSET:
|
||||
field_dict['completed_at'] = completed_at
|
||||
field_dict["completed_at"] = completed_at
|
||||
if created_at is not UNSET:
|
||||
field_dict['created_at'] = created_at
|
||||
field_dict["created_at"] = created_at
|
||||
if duration is not UNSET:
|
||||
field_dict['duration'] = duration
|
||||
field_dict["duration"] = duration
|
||||
if email is not UNSET:
|
||||
field_dict['email'] = email
|
||||
field_dict["email"] = email
|
||||
if endpoint is not UNSET:
|
||||
field_dict['endpoint'] = endpoint
|
||||
field_dict["endpoint"] = endpoint
|
||||
if id is not UNSET:
|
||||
field_dict['id'] = id
|
||||
field_dict["id"] = id
|
||||
if ip_address is not UNSET:
|
||||
field_dict['ip_address'] = ip_address
|
||||
field_dict["ip_address"] = ip_address
|
||||
if litterbox is not UNSET:
|
||||
field_dict['litterbox'] = litterbox
|
||||
field_dict["litterbox"] = litterbox
|
||||
if method is not UNSET:
|
||||
field_dict['method'] = method
|
||||
field_dict["method"] = method
|
||||
if minutes is not UNSET:
|
||||
field_dict['minutes'] = minutes
|
||||
field_dict["minutes"] = minutes
|
||||
if origin is not UNSET:
|
||||
field_dict['origin'] = origin
|
||||
field_dict["origin"] = origin
|
||||
if price is not UNSET:
|
||||
field_dict['price'] = price
|
||||
field_dict["price"] = price
|
||||
if request_body is not UNSET:
|
||||
field_dict['request_body'] = request_body
|
||||
field_dict["request_body"] = request_body
|
||||
if request_query_params is not UNSET:
|
||||
field_dict['request_query_params'] = request_query_params
|
||||
field_dict["request_query_params"] = request_query_params
|
||||
if response_body is not UNSET:
|
||||
field_dict['response_body'] = response_body
|
||||
field_dict["response_body"] = response_body
|
||||
if started_at is not UNSET:
|
||||
field_dict['started_at'] = started_at
|
||||
field_dict["started_at"] = started_at
|
||||
if status_code is not UNSET:
|
||||
field_dict['status_code'] = status_code
|
||||
field_dict["status_code"] = status_code
|
||||
if stripe_invoice_item_id is not UNSET:
|
||||
field_dict['stripe_invoice_item_id'] = stripe_invoice_item_id
|
||||
field_dict["stripe_invoice_item_id"] = stripe_invoice_item_id
|
||||
if token is not UNSET:
|
||||
field_dict['token'] = token
|
||||
field_dict["token"] = token
|
||||
if updated_at is not UNSET:
|
||||
field_dict['updated_at'] = updated_at
|
||||
field_dict["updated_at"] = updated_at
|
||||
if user_agent is not UNSET:
|
||||
field_dict['user_agent'] = user_agent
|
||||
field_dict["user_agent"] = user_agent
|
||||
if user_id is not UNSET:
|
||||
field_dict['user_id'] = user_id
|
||||
field_dict["user_id"] = user_id
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[S], src_dict: Dict[str, Any]) -> S:
|
||||
d = src_dict.copy()
|
||||
_completed_at = d.pop("completed_at", UNSET)
|
||||
completed_at: Union[Unset, datetime.datetime]
|
||||
|
@ -4,13 +4,15 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="ApiCallWithPriceResultsPage")
|
||||
A = TypeVar("A", bound="ApiCallWithPriceResultsPage")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class ApiCallWithPriceResultsPage:
|
||||
""" """
|
||||
"""A single page of results""" # noqa: E501
|
||||
|
||||
from ..models.api_call_with_price import ApiCallWithPrice
|
||||
|
||||
items: Union[Unset, List[ApiCallWithPrice]] = UNSET
|
||||
next_page: Union[Unset, str] = UNSET
|
||||
|
||||
@ -18,6 +20,7 @@ class ApiCallWithPriceResultsPage:
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
from ..models.api_call_with_price import ApiCallWithPrice
|
||||
|
||||
items: Union[Unset, List[ApiCallWithPrice]] = UNSET
|
||||
if not isinstance(self.items, Unset):
|
||||
items = self.items
|
||||
@ -27,16 +30,17 @@ class ApiCallWithPriceResultsPage:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if items is not UNSET:
|
||||
field_dict['items'] = items
|
||||
field_dict["items"] = items
|
||||
if next_page is not UNSET:
|
||||
field_dict['next_page'] = next_page
|
||||
field_dict["next_page"] = next_page
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[A], src_dict: Dict[str, Any]) -> A:
|
||||
d = src_dict.copy()
|
||||
from ..models.api_call_with_price import ApiCallWithPrice
|
||||
|
||||
items = cast(List[ApiCallWithPrice], d.pop("items", UNSET))
|
||||
|
||||
next_page = d.pop("next_page", UNSET)
|
||||
|
@ -1,18 +1,20 @@
|
||||
import datetime
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
from dateutil.parser import isoparse
|
||||
|
||||
from ..models.uuid import Uuid
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="ApiToken")
|
||||
G = TypeVar("G", bound="ApiToken")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class ApiToken:
|
||||
""" """
|
||||
"""An API token.
|
||||
|
||||
These are used to authenticate users with Bearer authentication.""" # noqa: E501
|
||||
|
||||
created_at: Union[Unset, datetime.datetime] = UNSET
|
||||
id: Union[Unset, str] = UNSET
|
||||
is_valid: Union[Unset, bool] = False
|
||||
@ -38,22 +40,22 @@ class ApiToken:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if created_at is not UNSET:
|
||||
field_dict['created_at'] = created_at
|
||||
field_dict["created_at"] = created_at
|
||||
if id is not UNSET:
|
||||
field_dict['id'] = id
|
||||
field_dict["id"] = id
|
||||
if is_valid is not UNSET:
|
||||
field_dict['is_valid'] = is_valid
|
||||
field_dict["is_valid"] = is_valid
|
||||
if token is not UNSET:
|
||||
field_dict['token'] = token
|
||||
field_dict["token"] = token
|
||||
if updated_at is not UNSET:
|
||||
field_dict['updated_at'] = updated_at
|
||||
field_dict["updated_at"] = updated_at
|
||||
if user_id is not UNSET:
|
||||
field_dict['user_id'] = user_id
|
||||
field_dict["user_id"] = user_id
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[G], src_dict: Dict[str, Any]) -> G:
|
||||
d = src_dict.copy()
|
||||
_created_at = d.pop("created_at", UNSET)
|
||||
created_at: Union[Unset, datetime.datetime]
|
||||
|
@ -4,13 +4,15 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="ApiTokenResultsPage")
|
||||
P = TypeVar("P", bound="ApiTokenResultsPage")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class ApiTokenResultsPage:
|
||||
""" """
|
||||
"""A single page of results""" # noqa: E501
|
||||
|
||||
from ..models.api_token import ApiToken
|
||||
|
||||
items: Union[Unset, List[ApiToken]] = UNSET
|
||||
next_page: Union[Unset, str] = UNSET
|
||||
|
||||
@ -18,6 +20,7 @@ class ApiTokenResultsPage:
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
from ..models.api_token import ApiToken
|
||||
|
||||
items: Union[Unset, List[ApiToken]] = UNSET
|
||||
if not isinstance(self.items, Unset):
|
||||
items = self.items
|
||||
@ -27,16 +30,17 @@ class ApiTokenResultsPage:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if items is not UNSET:
|
||||
field_dict['items'] = items
|
||||
field_dict["items"] = items
|
||||
if next_page is not UNSET:
|
||||
field_dict['next_page'] = next_page
|
||||
field_dict["next_page"] = next_page
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[P], src_dict: Dict[str, Any]) -> P:
|
||||
d = src_dict.copy()
|
||||
from ..models.api_token import ApiToken
|
||||
|
||||
items = cast(List[ApiToken], d.pop("items", UNSET))
|
||||
|
||||
next_page = d.pop("next_page", UNSET)
|
||||
|
@ -1,15 +1,16 @@
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="AppClientInfo")
|
||||
U = TypeVar("U", bound="AppClientInfo")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class AppClientInfo:
|
||||
""" """
|
||||
"""Information about a third party app client.""" # noqa: E501
|
||||
|
||||
url: Union[Unset, str] = UNSET
|
||||
|
||||
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
||||
@ -21,12 +22,12 @@ class AppClientInfo:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if url is not UNSET:
|
||||
field_dict['url'] = url
|
||||
field_dict["url"] = url
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[U], src_dict: Dict[str, Any]) -> U:
|
||||
d = src_dict.copy()
|
||||
url = d.pop("url", UNSET)
|
||||
|
||||
|
@ -1,20 +1,20 @@
|
||||
import datetime
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
from dateutil.parser import isoparse
|
||||
|
||||
from ..models.uuid import Uuid
|
||||
from ..models.api_call_status import ApiCallStatus
|
||||
from ..models.async_api_call_type import AsyncApiCallType
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="AsyncApiCall")
|
||||
Z = TypeVar("Z", bound="AsyncApiCall")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class AsyncApiCall:
|
||||
""" """
|
||||
"""An async API call.""" # noqa: E501
|
||||
|
||||
completed_at: Union[Unset, datetime.datetime] = UNSET
|
||||
created_at: Union[Unset, datetime.datetime] = UNSET
|
||||
error: Union[Unset, str] = UNSET
|
||||
@ -44,12 +44,10 @@ class AsyncApiCall:
|
||||
started_at: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.started_at, Unset):
|
||||
started_at = self.started_at.isoformat()
|
||||
status: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.status, Unset):
|
||||
status = self.status.value
|
||||
type: Union[Unset, str] = UNSET
|
||||
status = self.status
|
||||
if not isinstance(self.type, Unset):
|
||||
type = self.type.value
|
||||
type = self.type
|
||||
updated_at: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.updated_at, Unset):
|
||||
updated_at = self.updated_at.isoformat()
|
||||
@ -60,34 +58,34 @@ class AsyncApiCall:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if completed_at is not UNSET:
|
||||
field_dict['completed_at'] = completed_at
|
||||
field_dict["completed_at"] = completed_at
|
||||
if created_at is not UNSET:
|
||||
field_dict['created_at'] = created_at
|
||||
field_dict["created_at"] = created_at
|
||||
if error is not UNSET:
|
||||
field_dict['error'] = error
|
||||
field_dict["error"] = error
|
||||
if id is not UNSET:
|
||||
field_dict['id'] = id
|
||||
field_dict["id"] = id
|
||||
if input is not UNSET:
|
||||
field_dict['input'] = input
|
||||
field_dict["input"] = input
|
||||
if output is not UNSET:
|
||||
field_dict['output'] = output
|
||||
field_dict["output"] = output
|
||||
if started_at is not UNSET:
|
||||
field_dict['started_at'] = started_at
|
||||
field_dict["started_at"] = started_at
|
||||
if status is not UNSET:
|
||||
field_dict['status'] = status
|
||||
field_dict["status"] = status
|
||||
if type is not UNSET:
|
||||
field_dict['type'] = type
|
||||
field_dict["type"] = type
|
||||
if updated_at is not UNSET:
|
||||
field_dict['updated_at'] = updated_at
|
||||
field_dict["updated_at"] = updated_at
|
||||
if user_id is not UNSET:
|
||||
field_dict['user_id'] = user_id
|
||||
field_dict["user_id"] = user_id
|
||||
if worker is not UNSET:
|
||||
field_dict['worker'] = worker
|
||||
field_dict["worker"] = worker
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[Z], src_dict: Dict[str, Any]) -> Z:
|
||||
d = src_dict.copy()
|
||||
_completed_at = d.pop("completed_at", UNSET)
|
||||
completed_at: Union[Unset, datetime.datetime]
|
||||
|
1009
kittycad/models/async_api_call_output.py
Normal file
1009
kittycad/models/async_api_call_output.py
Normal file
File diff suppressed because it is too large
Load Diff
@ -4,13 +4,15 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="AsyncApiCallResultsPage")
|
||||
H = TypeVar("H", bound="AsyncApiCallResultsPage")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class AsyncApiCallResultsPage:
|
||||
""" """
|
||||
"""A single page of results""" # noqa: E501
|
||||
|
||||
from ..models.async_api_call import AsyncApiCall
|
||||
|
||||
items: Union[Unset, List[AsyncApiCall]] = UNSET
|
||||
next_page: Union[Unset, str] = UNSET
|
||||
|
||||
@ -18,6 +20,7 @@ class AsyncApiCallResultsPage:
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
from ..models.async_api_call import AsyncApiCall
|
||||
|
||||
items: Union[Unset, List[AsyncApiCall]] = UNSET
|
||||
if not isinstance(self.items, Unset):
|
||||
items = self.items
|
||||
@ -27,16 +30,17 @@ class AsyncApiCallResultsPage:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if items is not UNSET:
|
||||
field_dict['items'] = items
|
||||
field_dict["items"] = items
|
||||
if next_page is not UNSET:
|
||||
field_dict['next_page'] = next_page
|
||||
field_dict["next_page"] = next_page
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[H], src_dict: Dict[str, Any]) -> H:
|
||||
d = src_dict.copy()
|
||||
from ..models.async_api_call import AsyncApiCall
|
||||
|
||||
items = cast(List[AsyncApiCall], d.pop("items", UNSET))
|
||||
|
||||
next_page = d.pop("next_page", UNSET)
|
||||
|
@ -2,12 +2,20 @@ from enum import Enum
|
||||
|
||||
|
||||
class AsyncApiCallType(str, Enum):
|
||||
FILE_CONVERSION = 'FileConversion'
|
||||
FILE_VOLUME = 'FileVolume'
|
||||
FILE_CENTER_OF_MASS = 'FileCenterOfMass'
|
||||
FILE_MASS = 'FileMass'
|
||||
FILE_DENSITY = 'FileDensity'
|
||||
FILE_SURFACE_AREA = 'FileSurfaceArea'
|
||||
"""The type of async API call.""" # noqa: E501
|
||||
|
||||
"""# File conversion. """ # noqa: E501
|
||||
FILE_CONVERSION = "FileConversion"
|
||||
"""# File volume. """ # noqa: E501
|
||||
FILE_VOLUME = "FileVolume"
|
||||
"""# File center of mass. """ # noqa: E501
|
||||
FILE_CENTER_OF_MASS = "FileCenterOfMass"
|
||||
"""# File mass. """ # noqa: E501
|
||||
FILE_MASS = "FileMass"
|
||||
"""# File density. """ # noqa: E501
|
||||
FILE_DENSITY = "FileDensity"
|
||||
"""# File surface area. """ # noqa: E501
|
||||
FILE_SURFACE_AREA = "FileSurfaceArea"
|
||||
|
||||
def __str__(self) -> str:
|
||||
return str(self.value)
|
||||
|
@ -1,16 +1,17 @@
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
|
||||
from ..models.new_address import NewAddress
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="BillingInfo")
|
||||
X = TypeVar("X", bound="BillingInfo")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class BillingInfo:
|
||||
""" """
|
||||
"""The billing information for payments.""" # noqa: E501
|
||||
|
||||
address: Union[Unset, NewAddress] = UNSET
|
||||
name: Union[Unset, str] = UNSET
|
||||
phone: Union[Unset, str] = UNSET
|
||||
@ -18,9 +19,8 @@ class BillingInfo:
|
||||
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
address: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.address, Unset):
|
||||
address = self.address.value
|
||||
address = self.address
|
||||
name = self.name
|
||||
phone = self.phone
|
||||
|
||||
@ -28,16 +28,16 @@ class BillingInfo:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if address is not UNSET:
|
||||
field_dict['address'] = address
|
||||
field_dict["address"] = address
|
||||
if name is not UNSET:
|
||||
field_dict['name'] = name
|
||||
field_dict["name"] = name
|
||||
if phone is not UNSET:
|
||||
field_dict['phone'] = phone
|
||||
field_dict["phone"] = phone
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[X], src_dict: Dict[str, Any]) -> X:
|
||||
d = src_dict.copy()
|
||||
_address = d.pop("address", UNSET)
|
||||
address: Union[Unset, NewAddress]
|
||||
|
@ -1,15 +1,18 @@
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="CacheMetadata")
|
||||
L = TypeVar("L", bound="CacheMetadata")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class CacheMetadata:
|
||||
""" """
|
||||
"""Metadata about our cache.
|
||||
|
||||
This is mostly used for internal purposes and debugging.""" # noqa: E501
|
||||
|
||||
ok: Union[Unset, bool] = False
|
||||
|
||||
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
||||
@ -21,12 +24,12 @@ class CacheMetadata:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if ok is not UNSET:
|
||||
field_dict['ok'] = ok
|
||||
field_dict["ok"] = ok
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[L], src_dict: Dict[str, Any]) -> L:
|
||||
d = src_dict.copy()
|
||||
ok = d.pop("ok", UNSET)
|
||||
|
||||
|
@ -1,16 +1,17 @@
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
|
||||
from ..models.payment_method_card_checks import PaymentMethodCardChecks
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="CardDetails")
|
||||
B = TypeVar("B", bound="CardDetails")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class CardDetails:
|
||||
""" """
|
||||
"""The card details of a payment method.""" # noqa: E501
|
||||
|
||||
brand: Union[Unset, str] = UNSET
|
||||
checks: Union[Unset, PaymentMethodCardChecks] = UNSET
|
||||
country: Union[Unset, str] = UNSET
|
||||
@ -24,9 +25,8 @@ class CardDetails:
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
brand = self.brand
|
||||
checks: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.checks, Unset):
|
||||
checks = self.checks.value
|
||||
checks = self.checks
|
||||
country = self.country
|
||||
exp_month = self.exp_month
|
||||
exp_year = self.exp_year
|
||||
@ -38,26 +38,26 @@ class CardDetails:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if brand is not UNSET:
|
||||
field_dict['brand'] = brand
|
||||
field_dict["brand"] = brand
|
||||
if checks is not UNSET:
|
||||
field_dict['checks'] = checks
|
||||
field_dict["checks"] = checks
|
||||
if country is not UNSET:
|
||||
field_dict['country'] = country
|
||||
field_dict["country"] = country
|
||||
if exp_month is not UNSET:
|
||||
field_dict['exp_month'] = exp_month
|
||||
field_dict["exp_month"] = exp_month
|
||||
if exp_year is not UNSET:
|
||||
field_dict['exp_year'] = exp_year
|
||||
field_dict["exp_year"] = exp_year
|
||||
if fingerprint is not UNSET:
|
||||
field_dict['fingerprint'] = fingerprint
|
||||
field_dict["fingerprint"] = fingerprint
|
||||
if funding is not UNSET:
|
||||
field_dict['funding'] = funding
|
||||
field_dict["funding"] = funding
|
||||
if last4 is not UNSET:
|
||||
field_dict['last4'] = last4
|
||||
field_dict["last4"] = last4
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[B], src_dict: Dict[str, Any]) -> B:
|
||||
d = src_dict.copy()
|
||||
brand = d.pop("brand", UNSET)
|
||||
|
||||
|
@ -4,12 +4,13 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="Cluster")
|
||||
N = TypeVar("N", bound="Cluster")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class Cluster:
|
||||
""" """
|
||||
"""Cluster information.""" # noqa: E501
|
||||
|
||||
addr: Union[Unset, str] = UNSET
|
||||
auth_timeout: Union[Unset, int] = UNSET
|
||||
cluster_port: Union[Unset, int] = UNSET
|
||||
@ -33,22 +34,22 @@ class Cluster:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if addr is not UNSET:
|
||||
field_dict['addr'] = addr
|
||||
field_dict["addr"] = addr
|
||||
if auth_timeout is not UNSET:
|
||||
field_dict['auth_timeout'] = auth_timeout
|
||||
field_dict["auth_timeout"] = auth_timeout
|
||||
if cluster_port is not UNSET:
|
||||
field_dict['cluster_port'] = cluster_port
|
||||
field_dict["cluster_port"] = cluster_port
|
||||
if name is not UNSET:
|
||||
field_dict['name'] = name
|
||||
field_dict["name"] = name
|
||||
if tls_timeout is not UNSET:
|
||||
field_dict['tls_timeout'] = tls_timeout
|
||||
field_dict["tls_timeout"] = tls_timeout
|
||||
if urls is not UNSET:
|
||||
field_dict['urls'] = urls
|
||||
field_dict["urls"] = urls
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[N], src_dict: Dict[str, Any]) -> N:
|
||||
d = src_dict.copy()
|
||||
addr = d.pop("addr", UNSET)
|
||||
|
||||
|
@ -2,9 +2,11 @@ from enum import Enum
|
||||
|
||||
|
||||
class CodeLanguage(str, Enum):
|
||||
GO = 'go'
|
||||
PYTHON = 'python'
|
||||
NODE = 'node'
|
||||
"""The language code is written in.""" # noqa: E501
|
||||
|
||||
GO = "go"
|
||||
PYTHON = "python"
|
||||
NODE = "node"
|
||||
|
||||
def __str__(self) -> str:
|
||||
return str(self.value)
|
||||
|
@ -4,13 +4,15 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="CodeOutput")
|
||||
E = TypeVar("E", bound="CodeOutput")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class CodeOutput:
|
||||
""" """
|
||||
"""Output of the code being executed.""" # noqa: E501
|
||||
|
||||
from ..models.output_file import OutputFile
|
||||
|
||||
output_files: Union[Unset, List[OutputFile]] = UNSET
|
||||
stderr: Union[Unset, str] = UNSET
|
||||
stdout: Union[Unset, str] = UNSET
|
||||
@ -19,6 +21,7 @@ class CodeOutput:
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
from ..models.output_file import OutputFile
|
||||
|
||||
output_files: Union[Unset, List[OutputFile]] = UNSET
|
||||
if not isinstance(self.output_files, Unset):
|
||||
output_files = self.output_files
|
||||
@ -29,18 +32,19 @@ class CodeOutput:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if output_files is not UNSET:
|
||||
field_dict['output_files'] = output_files
|
||||
field_dict["output_files"] = output_files
|
||||
if stderr is not UNSET:
|
||||
field_dict['stderr'] = stderr
|
||||
field_dict["stderr"] = stderr
|
||||
if stdout is not UNSET:
|
||||
field_dict['stdout'] = stdout
|
||||
field_dict["stdout"] = stdout
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[E], src_dict: Dict[str, Any]) -> E:
|
||||
d = src_dict.copy()
|
||||
from ..models.output_file import OutputFile
|
||||
|
||||
output_files = cast(List[OutputFile], d.pop("output_files", UNSET))
|
||||
|
||||
stderr = d.pop("stderr", UNSET)
|
||||
|
@ -1,4 +1,4 @@
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
|
||||
@ -9,7 +9,8 @@ T = TypeVar("T", bound="Commit")
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class Commit:
|
||||
""" """
|
||||
"""Commit holds the Git-commit (SHA1) that a binary was built from, as reported in the version-string of external tools, such as `containerd`, or `runC`.""" # noqa: E501
|
||||
|
||||
expected: Union[Unset, str] = UNSET
|
||||
id: Union[Unset, str] = UNSET
|
||||
|
||||
@ -23,9 +24,9 @@ class Commit:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if expected is not UNSET:
|
||||
field_dict['expected'] = expected
|
||||
field_dict["expected"] = expected
|
||||
if id is not UNSET:
|
||||
field_dict['id'] = id
|
||||
field_dict["id"] = id
|
||||
|
||||
return field_dict
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import datetime
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
from dateutil.parser import isoparse
|
||||
@ -10,12 +10,15 @@ from ..models.jetstream import Jetstream
|
||||
from ..models.leaf_node import LeafNode
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="Connection")
|
||||
L = TypeVar("L", bound="Connection")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class Connection:
|
||||
""" """
|
||||
"""Metadata about a pub-sub connection.
|
||||
|
||||
This is mostly used for internal purposes and debugging.""" # noqa: E501
|
||||
|
||||
auth_timeout: Union[Unset, int] = UNSET
|
||||
cluster: Union[Unset, Cluster] = UNSET
|
||||
config_load_time: Union[Unset, datetime.datetime] = UNSET
|
||||
@ -67,18 +70,16 @@ class Connection:
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
auth_timeout = self.auth_timeout
|
||||
cluster: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.cluster, Unset):
|
||||
cluster = self.cluster.value
|
||||
cluster = self.cluster
|
||||
config_load_time: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.config_load_time, Unset):
|
||||
config_load_time = self.config_load_time.isoformat()
|
||||
connections = self.connections
|
||||
cores = self.cores
|
||||
cpu = self.cpu
|
||||
gateway: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.gateway, Unset):
|
||||
gateway = self.gateway.value
|
||||
gateway = self.gateway
|
||||
git_commit = self.git_commit
|
||||
go = self.go
|
||||
gomaxprocs = self.gomaxprocs
|
||||
@ -90,12 +91,10 @@ class Connection:
|
||||
https_port = self.https_port
|
||||
in_bytes = self.in_bytes
|
||||
in_msgs = self.in_msgs
|
||||
jetstream: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.jetstream, Unset):
|
||||
jetstream = self.jetstream.value
|
||||
leaf: Union[Unset, str] = UNSET
|
||||
jetstream = self.jetstream
|
||||
if not isinstance(self.leaf, Unset):
|
||||
leaf = self.leaf.value
|
||||
leaf = self.leaf
|
||||
leafnodes = self.leafnodes
|
||||
max_connections = self.max_connections
|
||||
max_control_line = self.max_control_line
|
||||
@ -131,102 +130,102 @@ class Connection:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if auth_timeout is not UNSET:
|
||||
field_dict['auth_timeout'] = auth_timeout
|
||||
field_dict["auth_timeout"] = auth_timeout
|
||||
if cluster is not UNSET:
|
||||
field_dict['cluster'] = cluster
|
||||
field_dict["cluster"] = cluster
|
||||
if config_load_time is not UNSET:
|
||||
field_dict['config_load_time'] = config_load_time
|
||||
field_dict["config_load_time"] = config_load_time
|
||||
if connections is not UNSET:
|
||||
field_dict['connections'] = connections
|
||||
field_dict["connections"] = connections
|
||||
if cores is not UNSET:
|
||||
field_dict['cores'] = cores
|
||||
field_dict["cores"] = cores
|
||||
if cpu is not UNSET:
|
||||
field_dict['cpu'] = cpu
|
||||
field_dict["cpu"] = cpu
|
||||
if gateway is not UNSET:
|
||||
field_dict['gateway'] = gateway
|
||||
field_dict["gateway"] = gateway
|
||||
if git_commit is not UNSET:
|
||||
field_dict['git_commit'] = git_commit
|
||||
field_dict["git_commit"] = git_commit
|
||||
if go is not UNSET:
|
||||
field_dict['go'] = go
|
||||
field_dict["go"] = go
|
||||
if gomaxprocs is not UNSET:
|
||||
field_dict['gomaxprocs'] = gomaxprocs
|
||||
field_dict["gomaxprocs"] = gomaxprocs
|
||||
if host is not UNSET:
|
||||
field_dict['host'] = host
|
||||
field_dict["host"] = host
|
||||
if http_base_path is not UNSET:
|
||||
field_dict['http_base_path'] = http_base_path
|
||||
field_dict["http_base_path"] = http_base_path
|
||||
if http_host is not UNSET:
|
||||
field_dict['http_host'] = http_host
|
||||
field_dict["http_host"] = http_host
|
||||
if http_port is not UNSET:
|
||||
field_dict['http_port'] = http_port
|
||||
field_dict["http_port"] = http_port
|
||||
if http_req_stats is not UNSET:
|
||||
field_dict['http_req_stats'] = http_req_stats
|
||||
field_dict["http_req_stats"] = http_req_stats
|
||||
if https_port is not UNSET:
|
||||
field_dict['https_port'] = https_port
|
||||
field_dict["https_port"] = https_port
|
||||
if in_bytes is not UNSET:
|
||||
field_dict['in_bytes'] = in_bytes
|
||||
field_dict["in_bytes"] = in_bytes
|
||||
if in_msgs is not UNSET:
|
||||
field_dict['in_msgs'] = in_msgs
|
||||
field_dict["in_msgs"] = in_msgs
|
||||
if jetstream is not UNSET:
|
||||
field_dict['jetstream'] = jetstream
|
||||
field_dict["jetstream"] = jetstream
|
||||
if leaf is not UNSET:
|
||||
field_dict['leaf'] = leaf
|
||||
field_dict["leaf"] = leaf
|
||||
if leafnodes is not UNSET:
|
||||
field_dict['leafnodes'] = leafnodes
|
||||
field_dict["leafnodes"] = leafnodes
|
||||
if max_connections is not UNSET:
|
||||
field_dict['max_connections'] = max_connections
|
||||
field_dict["max_connections"] = max_connections
|
||||
if max_control_line is not UNSET:
|
||||
field_dict['max_control_line'] = max_control_line
|
||||
field_dict["max_control_line"] = max_control_line
|
||||
if max_payload is not UNSET:
|
||||
field_dict['max_payload'] = max_payload
|
||||
field_dict["max_payload"] = max_payload
|
||||
if max_pending is not UNSET:
|
||||
field_dict['max_pending'] = max_pending
|
||||
field_dict["max_pending"] = max_pending
|
||||
if mem is not UNSET:
|
||||
field_dict['mem'] = mem
|
||||
field_dict["mem"] = mem
|
||||
if now is not UNSET:
|
||||
field_dict['now'] = now
|
||||
field_dict["now"] = now
|
||||
if out_bytes is not UNSET:
|
||||
field_dict['out_bytes'] = out_bytes
|
||||
field_dict["out_bytes"] = out_bytes
|
||||
if out_msgs is not UNSET:
|
||||
field_dict['out_msgs'] = out_msgs
|
||||
field_dict["out_msgs"] = out_msgs
|
||||
if ping_interval is not UNSET:
|
||||
field_dict['ping_interval'] = ping_interval
|
||||
field_dict["ping_interval"] = ping_interval
|
||||
if ping_max is not UNSET:
|
||||
field_dict['ping_max'] = ping_max
|
||||
field_dict["ping_max"] = ping_max
|
||||
if port is not UNSET:
|
||||
field_dict['port'] = port
|
||||
field_dict["port"] = port
|
||||
if proto is not UNSET:
|
||||
field_dict['proto'] = proto
|
||||
field_dict["proto"] = proto
|
||||
if remotes is not UNSET:
|
||||
field_dict['remotes'] = remotes
|
||||
field_dict["remotes"] = remotes
|
||||
if routes is not UNSET:
|
||||
field_dict['routes'] = routes
|
||||
field_dict["routes"] = routes
|
||||
if server_id is not UNSET:
|
||||
field_dict['server_id'] = server_id
|
||||
field_dict["server_id"] = server_id
|
||||
if server_name is not UNSET:
|
||||
field_dict['server_name'] = server_name
|
||||
field_dict["server_name"] = server_name
|
||||
if slow_consumers is not UNSET:
|
||||
field_dict['slow_consumers'] = slow_consumers
|
||||
field_dict["slow_consumers"] = slow_consumers
|
||||
if start is not UNSET:
|
||||
field_dict['start'] = start
|
||||
field_dict["start"] = start
|
||||
if subscriptions is not UNSET:
|
||||
field_dict['subscriptions'] = subscriptions
|
||||
field_dict["subscriptions"] = subscriptions
|
||||
if system_account is not UNSET:
|
||||
field_dict['system_account'] = system_account
|
||||
field_dict["system_account"] = system_account
|
||||
if tls_timeout is not UNSET:
|
||||
field_dict['tls_timeout'] = tls_timeout
|
||||
field_dict["tls_timeout"] = tls_timeout
|
||||
if total_connections is not UNSET:
|
||||
field_dict['total_connections'] = total_connections
|
||||
field_dict["total_connections"] = total_connections
|
||||
if uptime is not UNSET:
|
||||
field_dict['uptime'] = uptime
|
||||
field_dict["uptime"] = uptime
|
||||
if version is not UNSET:
|
||||
field_dict['version'] = version
|
||||
field_dict["version"] = version
|
||||
if write_deadline is not UNSET:
|
||||
field_dict['write_deadline'] = write_deadline
|
||||
field_dict["write_deadline"] = write_deadline
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[L], src_dict: Dict[str, Any]) -> L:
|
||||
d = src_dict.copy()
|
||||
auth_timeout = d.pop("auth_timeout", UNSET)
|
||||
|
||||
|
@ -2,255 +2,506 @@ from enum import Enum
|
||||
|
||||
|
||||
class CountryCode(str, Enum):
|
||||
AF = 'AF'
|
||||
AX = 'AX'
|
||||
AL = 'AL'
|
||||
DZ = 'DZ'
|
||||
AS = 'AS'
|
||||
AD = 'AD'
|
||||
AO = 'AO'
|
||||
AI = 'AI'
|
||||
AQ = 'AQ'
|
||||
AG = 'AG'
|
||||
AR = 'AR'
|
||||
AM = 'AM'
|
||||
AW = 'AW'
|
||||
AU = 'AU'
|
||||
AT = 'AT'
|
||||
AZ = 'AZ'
|
||||
BS = 'BS'
|
||||
BH = 'BH'
|
||||
BD = 'BD'
|
||||
BB = 'BB'
|
||||
BY = 'BY'
|
||||
BE = 'BE'
|
||||
BZ = 'BZ'
|
||||
BJ = 'BJ'
|
||||
BM = 'BM'
|
||||
BT = 'BT'
|
||||
BO = 'BO'
|
||||
BQ = 'BQ'
|
||||
BA = 'BA'
|
||||
BW = 'BW'
|
||||
BV = 'BV'
|
||||
BR = 'BR'
|
||||
IO = 'IO'
|
||||
BN = 'BN'
|
||||
BG = 'BG'
|
||||
BF = 'BF'
|
||||
BI = 'BI'
|
||||
CV = 'CV'
|
||||
KH = 'KH'
|
||||
CM = 'CM'
|
||||
CA = 'CA'
|
||||
KY = 'KY'
|
||||
CF = 'CF'
|
||||
TD = 'TD'
|
||||
CL = 'CL'
|
||||
CN = 'CN'
|
||||
CX = 'CX'
|
||||
CC = 'CC'
|
||||
CO = 'CO'
|
||||
KM = 'KM'
|
||||
CG = 'CG'
|
||||
CD = 'CD'
|
||||
CK = 'CK'
|
||||
CR = 'CR'
|
||||
CI = 'CI'
|
||||
HR = 'HR'
|
||||
CU = 'CU'
|
||||
CW = 'CW'
|
||||
CY = 'CY'
|
||||
CZ = 'CZ'
|
||||
DK = 'DK'
|
||||
DJ = 'DJ'
|
||||
DM = 'DM'
|
||||
DO = 'DO'
|
||||
EC = 'EC'
|
||||
EG = 'EG'
|
||||
SV = 'SV'
|
||||
GQ = 'GQ'
|
||||
ER = 'ER'
|
||||
EE = 'EE'
|
||||
ET = 'ET'
|
||||
FK = 'FK'
|
||||
FO = 'FO'
|
||||
FJ = 'FJ'
|
||||
FI = 'FI'
|
||||
FR = 'FR'
|
||||
GF = 'GF'
|
||||
PF = 'PF'
|
||||
TF = 'TF'
|
||||
GA = 'GA'
|
||||
GM = 'GM'
|
||||
GE = 'GE'
|
||||
DE = 'DE'
|
||||
GH = 'GH'
|
||||
GI = 'GI'
|
||||
GR = 'GR'
|
||||
GL = 'GL'
|
||||
GD = 'GD'
|
||||
GP = 'GP'
|
||||
GU = 'GU'
|
||||
GT = 'GT'
|
||||
GG = 'GG'
|
||||
GN = 'GN'
|
||||
GW = 'GW'
|
||||
GY = 'GY'
|
||||
HT = 'HT'
|
||||
HM = 'HM'
|
||||
VA = 'VA'
|
||||
HN = 'HN'
|
||||
HK = 'HK'
|
||||
HU = 'HU'
|
||||
IS = 'IS'
|
||||
IN = 'IN'
|
||||
ID = 'ID'
|
||||
IR = 'IR'
|
||||
IQ = 'IQ'
|
||||
IE = 'IE'
|
||||
IM = 'IM'
|
||||
IL = 'IL'
|
||||
IT = 'IT'
|
||||
JM = 'JM'
|
||||
JP = 'JP'
|
||||
JE = 'JE'
|
||||
JO = 'JO'
|
||||
KZ = 'KZ'
|
||||
KE = 'KE'
|
||||
KI = 'KI'
|
||||
KP = 'KP'
|
||||
KR = 'KR'
|
||||
KW = 'KW'
|
||||
KG = 'KG'
|
||||
LA = 'LA'
|
||||
LV = 'LV'
|
||||
LB = 'LB'
|
||||
LS = 'LS'
|
||||
LR = 'LR'
|
||||
LY = 'LY'
|
||||
LI = 'LI'
|
||||
LT = 'LT'
|
||||
LU = 'LU'
|
||||
MO = 'MO'
|
||||
MK = 'MK'
|
||||
MG = 'MG'
|
||||
MW = 'MW'
|
||||
MY = 'MY'
|
||||
MV = 'MV'
|
||||
ML = 'ML'
|
||||
MT = 'MT'
|
||||
MH = 'MH'
|
||||
MQ = 'MQ'
|
||||
MR = 'MR'
|
||||
MU = 'MU'
|
||||
YT = 'YT'
|
||||
MX = 'MX'
|
||||
FM = 'FM'
|
||||
MD = 'MD'
|
||||
MC = 'MC'
|
||||
MN = 'MN'
|
||||
ME = 'ME'
|
||||
MS = 'MS'
|
||||
MA = 'MA'
|
||||
MZ = 'MZ'
|
||||
MM = 'MM'
|
||||
NA = 'NA'
|
||||
NR = 'NR'
|
||||
NP = 'NP'
|
||||
NL = 'NL'
|
||||
NC = 'NC'
|
||||
NZ = 'NZ'
|
||||
NI = 'NI'
|
||||
NE = 'NE'
|
||||
NG = 'NG'
|
||||
NU = 'NU'
|
||||
NF = 'NF'
|
||||
MP = 'MP'
|
||||
NO = 'NO'
|
||||
OM = 'OM'
|
||||
PK = 'PK'
|
||||
PW = 'PW'
|
||||
PS = 'PS'
|
||||
PA = 'PA'
|
||||
PG = 'PG'
|
||||
PY = 'PY'
|
||||
PE = 'PE'
|
||||
PH = 'PH'
|
||||
PN = 'PN'
|
||||
PL = 'PL'
|
||||
PT = 'PT'
|
||||
PR = 'PR'
|
||||
QA = 'QA'
|
||||
RE = 'RE'
|
||||
RO = 'RO'
|
||||
RU = 'RU'
|
||||
RW = 'RW'
|
||||
BL = 'BL'
|
||||
SH = 'SH'
|
||||
KN = 'KN'
|
||||
LC = 'LC'
|
||||
MF = 'MF'
|
||||
PM = 'PM'
|
||||
VC = 'VC'
|
||||
WS = 'WS'
|
||||
SM = 'SM'
|
||||
ST = 'ST'
|
||||
SA = 'SA'
|
||||
SN = 'SN'
|
||||
RS = 'RS'
|
||||
SC = 'SC'
|
||||
SL = 'SL'
|
||||
SG = 'SG'
|
||||
SX = 'SX'
|
||||
SK = 'SK'
|
||||
SI = 'SI'
|
||||
SB = 'SB'
|
||||
SO = 'SO'
|
||||
ZA = 'ZA'
|
||||
GS = 'GS'
|
||||
SS = 'SS'
|
||||
ES = 'ES'
|
||||
LK = 'LK'
|
||||
SD = 'SD'
|
||||
SR = 'SR'
|
||||
SJ = 'SJ'
|
||||
SZ = 'SZ'
|
||||
SE = 'SE'
|
||||
CH = 'CH'
|
||||
SY = 'SY'
|
||||
TW = 'TW'
|
||||
TJ = 'TJ'
|
||||
TZ = 'TZ'
|
||||
TH = 'TH'
|
||||
TL = 'TL'
|
||||
TG = 'TG'
|
||||
TK = 'TK'
|
||||
TO = 'TO'
|
||||
TT = 'TT'
|
||||
TN = 'TN'
|
||||
TR = 'TR'
|
||||
TM = 'TM'
|
||||
TC = 'TC'
|
||||
TV = 'TV'
|
||||
UG = 'UG'
|
||||
UA = 'UA'
|
||||
AE = 'AE'
|
||||
GB = 'GB'
|
||||
US = 'US'
|
||||
UM = 'UM'
|
||||
UY = 'UY'
|
||||
UZ = 'UZ'
|
||||
VU = 'VU'
|
||||
VE = 'VE'
|
||||
VN = 'VN'
|
||||
VG = 'VG'
|
||||
VI = 'VI'
|
||||
WF = 'WF'
|
||||
EH = 'EH'
|
||||
YE = 'YE'
|
||||
ZM = 'ZM'
|
||||
ZW = 'ZW'
|
||||
"""An enumeration of all ISO-3166 alpha-2 country codes.""" # noqa: E501
|
||||
|
||||
"""# Afghanistan """ # noqa: E501
|
||||
AF = "AF"
|
||||
"""# Åland Islands """ # noqa: E501
|
||||
AX = "AX"
|
||||
"""# Albania """ # noqa: E501
|
||||
AL = "AL"
|
||||
"""# Algeria """ # noqa: E501
|
||||
DZ = "DZ"
|
||||
"""# American Samoa """ # noqa: E501
|
||||
AS = "AS"
|
||||
"""# Andorra """ # noqa: E501
|
||||
AD = "AD"
|
||||
"""# Angola """ # noqa: E501
|
||||
AO = "AO"
|
||||
"""# Anguilla """ # noqa: E501
|
||||
AI = "AI"
|
||||
"""# Antarctica """ # noqa: E501
|
||||
AQ = "AQ"
|
||||
"""# Antigua and Barbuda """ # noqa: E501
|
||||
AG = "AG"
|
||||
"""# Argentina """ # noqa: E501
|
||||
AR = "AR"
|
||||
"""# Armenia """ # noqa: E501
|
||||
AM = "AM"
|
||||
"""# Aruba """ # noqa: E501
|
||||
AW = "AW"
|
||||
"""# Australia """ # noqa: E501
|
||||
AU = "AU"
|
||||
"""# Austria """ # noqa: E501
|
||||
AT = "AT"
|
||||
"""# Azerbaijan """ # noqa: E501
|
||||
AZ = "AZ"
|
||||
"""# Bahamas """ # noqa: E501
|
||||
BS = "BS"
|
||||
"""# Bahrain """ # noqa: E501
|
||||
BH = "BH"
|
||||
"""# Bangladesh """ # noqa: E501
|
||||
BD = "BD"
|
||||
"""# Barbados """ # noqa: E501
|
||||
BB = "BB"
|
||||
"""# Belarus """ # noqa: E501
|
||||
BY = "BY"
|
||||
"""# Belgium """ # noqa: E501
|
||||
BE = "BE"
|
||||
"""# Belize """ # noqa: E501
|
||||
BZ = "BZ"
|
||||
"""# Benin """ # noqa: E501
|
||||
BJ = "BJ"
|
||||
"""# Bermuda """ # noqa: E501
|
||||
BM = "BM"
|
||||
"""# Bhutan """ # noqa: E501
|
||||
BT = "BT"
|
||||
"""# Bolivia (Plurinational State of) """ # noqa: E501
|
||||
BO = "BO"
|
||||
"""# Bonaire, Sint Eustatius and Saba """ # noqa: E501
|
||||
BQ = "BQ"
|
||||
"""# Bosnia and Herzegovina """ # noqa: E501
|
||||
BA = "BA"
|
||||
"""# Botswana """ # noqa: E501
|
||||
BW = "BW"
|
||||
"""# Bouvet Island """ # noqa: E501
|
||||
BV = "BV"
|
||||
"""# Brazil """ # noqa: E501
|
||||
BR = "BR"
|
||||
"""# British Indian Ocean Territory """ # noqa: E501
|
||||
IO = "IO"
|
||||
"""# Brunei Darussalam """ # noqa: E501
|
||||
BN = "BN"
|
||||
"""# Bulgaria """ # noqa: E501
|
||||
BG = "BG"
|
||||
"""# Burkina Faso """ # noqa: E501
|
||||
BF = "BF"
|
||||
"""# Burundi """ # noqa: E501
|
||||
BI = "BI"
|
||||
"""# Cabo Verde """ # noqa: E501
|
||||
CV = "CV"
|
||||
"""# Cambodia """ # noqa: E501
|
||||
KH = "KH"
|
||||
"""# Cameroon """ # noqa: E501
|
||||
CM = "CM"
|
||||
"""# Canada """ # noqa: E501
|
||||
CA = "CA"
|
||||
"""# Cayman Islands """ # noqa: E501
|
||||
KY = "KY"
|
||||
"""# Central African Republic """ # noqa: E501
|
||||
CF = "CF"
|
||||
"""# Chad """ # noqa: E501
|
||||
TD = "TD"
|
||||
"""# Chile """ # noqa: E501
|
||||
CL = "CL"
|
||||
"""# China """ # noqa: E501
|
||||
CN = "CN"
|
||||
"""# Christmas Island """ # noqa: E501
|
||||
CX = "CX"
|
||||
"""# Cocos (Keeling) Islands """ # noqa: E501
|
||||
CC = "CC"
|
||||
"""# Colombia """ # noqa: E501
|
||||
CO = "CO"
|
||||
"""# Comoros """ # noqa: E501
|
||||
KM = "KM"
|
||||
"""# Congo """ # noqa: E501
|
||||
CG = "CG"
|
||||
"""# Congo (Democratic Republic of the) """ # noqa: E501
|
||||
CD = "CD"
|
||||
"""# Cook Islands """ # noqa: E501
|
||||
CK = "CK"
|
||||
"""# Costa Rica """ # noqa: E501
|
||||
CR = "CR"
|
||||
"""# Côte d'Ivoire """ # noqa: E501
|
||||
CI = "CI"
|
||||
"""# Croatia """ # noqa: E501
|
||||
HR = "HR"
|
||||
"""# Cuba """ # noqa: E501
|
||||
CU = "CU"
|
||||
"""# Curaçao """ # noqa: E501
|
||||
CW = "CW"
|
||||
"""# Cyprus """ # noqa: E501
|
||||
CY = "CY"
|
||||
"""# Czechia """ # noqa: E501
|
||||
CZ = "CZ"
|
||||
"""# Denmark """ # noqa: E501
|
||||
DK = "DK"
|
||||
"""# Djibouti """ # noqa: E501
|
||||
DJ = "DJ"
|
||||
"""# Dominica """ # noqa: E501
|
||||
DM = "DM"
|
||||
"""# Dominican Republic """ # noqa: E501
|
||||
DO = "DO"
|
||||
"""# Ecuador """ # noqa: E501
|
||||
EC = "EC"
|
||||
"""# Egypt """ # noqa: E501
|
||||
EG = "EG"
|
||||
"""# El Salvador """ # noqa: E501
|
||||
SV = "SV"
|
||||
"""# Equatorial Guinea """ # noqa: E501
|
||||
GQ = "GQ"
|
||||
"""# Eritrea """ # noqa: E501
|
||||
ER = "ER"
|
||||
"""# Estonia """ # noqa: E501
|
||||
EE = "EE"
|
||||
"""# Ethiopia """ # noqa: E501
|
||||
ET = "ET"
|
||||
"""# Falkland Islands (Malvinas) """ # noqa: E501
|
||||
FK = "FK"
|
||||
"""# Faroe Islands """ # noqa: E501
|
||||
FO = "FO"
|
||||
"""# Fiji """ # noqa: E501
|
||||
FJ = "FJ"
|
||||
"""# Finland """ # noqa: E501
|
||||
FI = "FI"
|
||||
"""# France """ # noqa: E501
|
||||
FR = "FR"
|
||||
"""# French Guiana """ # noqa: E501
|
||||
GF = "GF"
|
||||
"""# French Polynesia """ # noqa: E501
|
||||
PF = "PF"
|
||||
"""# French Southern Territories """ # noqa: E501
|
||||
TF = "TF"
|
||||
"""# Gabon """ # noqa: E501
|
||||
GA = "GA"
|
||||
"""# Gambia """ # noqa: E501
|
||||
GM = "GM"
|
||||
"""# Georgia """ # noqa: E501
|
||||
GE = "GE"
|
||||
"""# Germany """ # noqa: E501
|
||||
DE = "DE"
|
||||
"""# Ghana """ # noqa: E501
|
||||
GH = "GH"
|
||||
"""# Gibraltar """ # noqa: E501
|
||||
GI = "GI"
|
||||
"""# Greece """ # noqa: E501
|
||||
GR = "GR"
|
||||
"""# Greenland """ # noqa: E501
|
||||
GL = "GL"
|
||||
"""# Grenada """ # noqa: E501
|
||||
GD = "GD"
|
||||
"""# Guadeloupe """ # noqa: E501
|
||||
GP = "GP"
|
||||
"""# Guam """ # noqa: E501
|
||||
GU = "GU"
|
||||
"""# Guatemala """ # noqa: E501
|
||||
GT = "GT"
|
||||
"""# Guernsey """ # noqa: E501
|
||||
GG = "GG"
|
||||
"""# Guinea """ # noqa: E501
|
||||
GN = "GN"
|
||||
"""# Guinea-Bissau """ # noqa: E501
|
||||
GW = "GW"
|
||||
"""# Guyana """ # noqa: E501
|
||||
GY = "GY"
|
||||
"""# Haiti """ # noqa: E501
|
||||
HT = "HT"
|
||||
"""# Heard Island and McDonald Islands """ # noqa: E501
|
||||
HM = "HM"
|
||||
"""# Holy See """ # noqa: E501
|
||||
VA = "VA"
|
||||
"""# Honduras """ # noqa: E501
|
||||
HN = "HN"
|
||||
"""# Hong Kong """ # noqa: E501
|
||||
HK = "HK"
|
||||
"""# Hungary """ # noqa: E501
|
||||
HU = "HU"
|
||||
"""# Iceland """ # noqa: E501
|
||||
IS = "IS"
|
||||
"""# India """ # noqa: E501
|
||||
IN = "IN"
|
||||
"""# Indonesia """ # noqa: E501
|
||||
ID = "ID"
|
||||
"""# Iran (Islamic Republic of) """ # noqa: E501
|
||||
IR = "IR"
|
||||
"""# Iraq """ # noqa: E501
|
||||
IQ = "IQ"
|
||||
"""# Ireland """ # noqa: E501
|
||||
IE = "IE"
|
||||
"""# Isle of Man """ # noqa: E501
|
||||
IM = "IM"
|
||||
"""# Israel """ # noqa: E501
|
||||
IL = "IL"
|
||||
"""# Italy """ # noqa: E501
|
||||
IT = "IT"
|
||||
"""# Jamaica """ # noqa: E501
|
||||
JM = "JM"
|
||||
"""# Japan """ # noqa: E501
|
||||
JP = "JP"
|
||||
"""# Jersey """ # noqa: E501
|
||||
JE = "JE"
|
||||
"""# Jordan """ # noqa: E501
|
||||
JO = "JO"
|
||||
"""# Kazakhstan """ # noqa: E501
|
||||
KZ = "KZ"
|
||||
"""# Kenya """ # noqa: E501
|
||||
KE = "KE"
|
||||
"""# Kiribati """ # noqa: E501
|
||||
KI = "KI"
|
||||
"""# Korea (Democratic People's Republic of) """ # noqa: E501
|
||||
KP = "KP"
|
||||
"""# Korea (Republic of) """ # noqa: E501
|
||||
KR = "KR"
|
||||
"""# Kuwait """ # noqa: E501
|
||||
KW = "KW"
|
||||
"""# Kyrgyzstan """ # noqa: E501
|
||||
KG = "KG"
|
||||
"""# Lao People's Democratic Republic """ # noqa: E501
|
||||
LA = "LA"
|
||||
"""# Latvia """ # noqa: E501
|
||||
LV = "LV"
|
||||
"""# Lebanon """ # noqa: E501
|
||||
LB = "LB"
|
||||
"""# Lesotho """ # noqa: E501
|
||||
LS = "LS"
|
||||
"""# Liberia """ # noqa: E501
|
||||
LR = "LR"
|
||||
"""# Libya """ # noqa: E501
|
||||
LY = "LY"
|
||||
"""# Liechtenstein """ # noqa: E501
|
||||
LI = "LI"
|
||||
"""# Lithuania """ # noqa: E501
|
||||
LT = "LT"
|
||||
"""# Luxembourg """ # noqa: E501
|
||||
LU = "LU"
|
||||
"""# Macao """ # noqa: E501
|
||||
MO = "MO"
|
||||
"""# Macedonia (the former Yugoslav Republic of) """ # noqa: E501
|
||||
MK = "MK"
|
||||
"""# Madagascar """ # noqa: E501
|
||||
MG = "MG"
|
||||
"""# Malawi """ # noqa: E501
|
||||
MW = "MW"
|
||||
"""# Malaysia """ # noqa: E501
|
||||
MY = "MY"
|
||||
"""# Maldives """ # noqa: E501
|
||||
MV = "MV"
|
||||
"""# Mali """ # noqa: E501
|
||||
ML = "ML"
|
||||
"""# Malta """ # noqa: E501
|
||||
MT = "MT"
|
||||
"""# Marshall Islands """ # noqa: E501
|
||||
MH = "MH"
|
||||
"""# Martinique """ # noqa: E501
|
||||
MQ = "MQ"
|
||||
"""# Mauritania """ # noqa: E501
|
||||
MR = "MR"
|
||||
"""# Mauritius """ # noqa: E501
|
||||
MU = "MU"
|
||||
"""# Mayotte """ # noqa: E501
|
||||
YT = "YT"
|
||||
"""# Mexico """ # noqa: E501
|
||||
MX = "MX"
|
||||
"""# Micronesia (Federated States of) """ # noqa: E501
|
||||
FM = "FM"
|
||||
"""# Moldova (Republic of) """ # noqa: E501
|
||||
MD = "MD"
|
||||
"""# Monaco """ # noqa: E501
|
||||
MC = "MC"
|
||||
"""# Mongolia """ # noqa: E501
|
||||
MN = "MN"
|
||||
"""# Montenegro """ # noqa: E501
|
||||
ME = "ME"
|
||||
"""# Montserrat """ # noqa: E501
|
||||
MS = "MS"
|
||||
"""# Morocco """ # noqa: E501
|
||||
MA = "MA"
|
||||
"""# Mozambique """ # noqa: E501
|
||||
MZ = "MZ"
|
||||
"""# Myanmar """ # noqa: E501
|
||||
MM = "MM"
|
||||
"""# Namibia """ # noqa: E501
|
||||
NA = "NA"
|
||||
"""# Nauru """ # noqa: E501
|
||||
NR = "NR"
|
||||
"""# Nepal """ # noqa: E501
|
||||
NP = "NP"
|
||||
"""# Netherlands """ # noqa: E501
|
||||
NL = "NL"
|
||||
"""# New Caledonia """ # noqa: E501
|
||||
NC = "NC"
|
||||
"""# New Zealand """ # noqa: E501
|
||||
NZ = "NZ"
|
||||
"""# Nicaragua """ # noqa: E501
|
||||
NI = "NI"
|
||||
"""# Niger """ # noqa: E501
|
||||
NE = "NE"
|
||||
"""# Nigeria """ # noqa: E501
|
||||
NG = "NG"
|
||||
"""# Niue """ # noqa: E501
|
||||
NU = "NU"
|
||||
"""# Norfolk Island """ # noqa: E501
|
||||
NF = "NF"
|
||||
"""# Northern Mariana Islands """ # noqa: E501
|
||||
MP = "MP"
|
||||
"""# Norway """ # noqa: E501
|
||||
NO = "NO"
|
||||
"""# Oman """ # noqa: E501
|
||||
OM = "OM"
|
||||
"""# Pakistan """ # noqa: E501
|
||||
PK = "PK"
|
||||
"""# Palau """ # noqa: E501
|
||||
PW = "PW"
|
||||
"""# Palestine, State of """ # noqa: E501
|
||||
PS = "PS"
|
||||
"""# Panama """ # noqa: E501
|
||||
PA = "PA"
|
||||
"""# Papua New Guinea """ # noqa: E501
|
||||
PG = "PG"
|
||||
"""# Paraguay """ # noqa: E501
|
||||
PY = "PY"
|
||||
"""# Peru """ # noqa: E501
|
||||
PE = "PE"
|
||||
"""# Philippines """ # noqa: E501
|
||||
PH = "PH"
|
||||
"""# Pitcairn """ # noqa: E501
|
||||
PN = "PN"
|
||||
"""# Poland """ # noqa: E501
|
||||
PL = "PL"
|
||||
"""# Portugal """ # noqa: E501
|
||||
PT = "PT"
|
||||
"""# Puerto Rico """ # noqa: E501
|
||||
PR = "PR"
|
||||
"""# Qatar """ # noqa: E501
|
||||
QA = "QA"
|
||||
"""# Réunion """ # noqa: E501
|
||||
RE = "RE"
|
||||
"""# Romania """ # noqa: E501
|
||||
RO = "RO"
|
||||
"""# Russian Federation """ # noqa: E501
|
||||
RU = "RU"
|
||||
"""# Rwanda """ # noqa: E501
|
||||
RW = "RW"
|
||||
"""# Saint Barthélemy """ # noqa: E501
|
||||
BL = "BL"
|
||||
"""# Saint Helena, Ascension and Tristan da Cunha """ # noqa: E501
|
||||
SH = "SH"
|
||||
"""# Saint Kitts and Nevis """ # noqa: E501
|
||||
KN = "KN"
|
||||
"""# Saint Lucia """ # noqa: E501
|
||||
LC = "LC"
|
||||
"""# Saint Martin (French part) """ # noqa: E501
|
||||
MF = "MF"
|
||||
"""# Saint Pierre and Miquelon """ # noqa: E501
|
||||
PM = "PM"
|
||||
"""# Saint Vincent and the Grenadines """ # noqa: E501
|
||||
VC = "VC"
|
||||
"""# Samoa """ # noqa: E501
|
||||
WS = "WS"
|
||||
"""# San Marino """ # noqa: E501
|
||||
SM = "SM"
|
||||
"""# Sao Tome and Principe """ # noqa: E501
|
||||
ST = "ST"
|
||||
"""# Saudi Arabia """ # noqa: E501
|
||||
SA = "SA"
|
||||
"""# Senegal """ # noqa: E501
|
||||
SN = "SN"
|
||||
"""# Serbia """ # noqa: E501
|
||||
RS = "RS"
|
||||
"""# Seychelles """ # noqa: E501
|
||||
SC = "SC"
|
||||
"""# Sierra Leone """ # noqa: E501
|
||||
SL = "SL"
|
||||
"""# Singapore """ # noqa: E501
|
||||
SG = "SG"
|
||||
"""# Sint Maarten (Dutch part) """ # noqa: E501
|
||||
SX = "SX"
|
||||
"""# Slovakia """ # noqa: E501
|
||||
SK = "SK"
|
||||
"""# Slovenia """ # noqa: E501
|
||||
SI = "SI"
|
||||
"""# Solomon Islands """ # noqa: E501
|
||||
SB = "SB"
|
||||
"""# Somalia """ # noqa: E501
|
||||
SO = "SO"
|
||||
"""# South Africa """ # noqa: E501
|
||||
ZA = "ZA"
|
||||
"""# South Georgia and the South Sandwich Islands """ # noqa: E501
|
||||
GS = "GS"
|
||||
"""# South Sudan """ # noqa: E501
|
||||
SS = "SS"
|
||||
"""# Spain """ # noqa: E501
|
||||
ES = "ES"
|
||||
"""# Sri Lanka """ # noqa: E501
|
||||
LK = "LK"
|
||||
"""# Sudan """ # noqa: E501
|
||||
SD = "SD"
|
||||
"""# Suriname """ # noqa: E501
|
||||
SR = "SR"
|
||||
"""# Svalbard and Jan Mayen """ # noqa: E501
|
||||
SJ = "SJ"
|
||||
"""# Swaziland """ # noqa: E501
|
||||
SZ = "SZ"
|
||||
"""# Sweden """ # noqa: E501
|
||||
SE = "SE"
|
||||
"""# Switzerland """ # noqa: E501
|
||||
CH = "CH"
|
||||
"""# Syrian Arab Republic """ # noqa: E501
|
||||
SY = "SY"
|
||||
"""# Taiwan, Province of China """ # noqa: E501
|
||||
TW = "TW"
|
||||
"""# Tajikistan """ # noqa: E501
|
||||
TJ = "TJ"
|
||||
"""# Tanzania, United Republic of """ # noqa: E501
|
||||
TZ = "TZ"
|
||||
"""# Thailand """ # noqa: E501
|
||||
TH = "TH"
|
||||
"""# Timor-Leste """ # noqa: E501
|
||||
TL = "TL"
|
||||
"""# Togo """ # noqa: E501
|
||||
TG = "TG"
|
||||
"""# Tokelau """ # noqa: E501
|
||||
TK = "TK"
|
||||
"""# Tonga """ # noqa: E501
|
||||
TO = "TO"
|
||||
"""# Trinidad and Tobago """ # noqa: E501
|
||||
TT = "TT"
|
||||
"""# Tunisia """ # noqa: E501
|
||||
TN = "TN"
|
||||
"""# Turkey """ # noqa: E501
|
||||
TR = "TR"
|
||||
"""# Turkmenistan """ # noqa: E501
|
||||
TM = "TM"
|
||||
"""# Turks and Caicos Islands """ # noqa: E501
|
||||
TC = "TC"
|
||||
"""# Tuvalu """ # noqa: E501
|
||||
TV = "TV"
|
||||
"""# Uganda """ # noqa: E501
|
||||
UG = "UG"
|
||||
"""# Ukraine """ # noqa: E501
|
||||
UA = "UA"
|
||||
"""# United Arab Emirates """ # noqa: E501
|
||||
AE = "AE"
|
||||
"""# United Kingdom of Great Britain and Northern Ireland """ # noqa: E501
|
||||
GB = "GB"
|
||||
"""# United States of America """ # noqa: E501
|
||||
US = "US"
|
||||
"""# United States Minor Outlying Islands """ # noqa: E501
|
||||
UM = "UM"
|
||||
"""# Uruguay """ # noqa: E501
|
||||
UY = "UY"
|
||||
"""# Uzbekistan """ # noqa: E501
|
||||
UZ = "UZ"
|
||||
"""# Vanuatu """ # noqa: E501
|
||||
VU = "VU"
|
||||
"""# Venezuela (Bolivarian Republic of) """ # noqa: E501
|
||||
VE = "VE"
|
||||
"""# Viet Nam """ # noqa: E501
|
||||
VN = "VN"
|
||||
"""# Virgin Islands (British) """ # noqa: E501
|
||||
VG = "VG"
|
||||
"""# Virgin Islands (U.S.) """ # noqa: E501
|
||||
VI = "VI"
|
||||
"""# Wallis and Futuna """ # noqa: E501
|
||||
WF = "WF"
|
||||
"""# Western Sahara """ # noqa: E501
|
||||
EH = "EH"
|
||||
"""# Yemen """ # noqa: E501
|
||||
YE = "YE"
|
||||
"""# Zambia """ # noqa: E501
|
||||
ZM = "ZM"
|
||||
"""# Zimbabwe """ # noqa: E501
|
||||
ZW = "ZW"
|
||||
|
||||
def __str__(self) -> str:
|
||||
return str(self.value)
|
||||
|
@ -2,8 +2,14 @@ from enum import Enum
|
||||
|
||||
|
||||
class CreatedAtSortMode(str, Enum):
|
||||
CREATED_AT_ASCENDING = 'created-at-ascending'
|
||||
CREATED_AT_DESCENDING = 'created-at-descending'
|
||||
"""Supported set of sort modes for scanning by created_at only.
|
||||
|
||||
Currently, we only support scanning in ascending order.""" # noqa: E501
|
||||
|
||||
"""# sort in increasing order of "created_at" """ # noqa: E501
|
||||
CREATED_AT_ASCENDING = "created-at-ascending"
|
||||
"""# sort in decreasing order of "created_at" """ # noqa: E501
|
||||
CREATED_AT_DESCENDING = "created-at-descending"
|
||||
|
||||
def __str__(self) -> str:
|
||||
return str(self.value)
|
||||
|
@ -2,145 +2,288 @@ from enum import Enum
|
||||
|
||||
|
||||
class Currency(str, Enum):
|
||||
AED = 'aed'
|
||||
AFN = 'afn'
|
||||
ALL = 'all'
|
||||
AMD = 'amd'
|
||||
ANG = 'ang'
|
||||
AOA = 'aoa'
|
||||
ARS = 'ars'
|
||||
AUD = 'aud'
|
||||
AWG = 'awg'
|
||||
AZN = 'azn'
|
||||
BAM = 'bam'
|
||||
BBD = 'bbd'
|
||||
BDT = 'bdt'
|
||||
BGN = 'bgn'
|
||||
BIF = 'bif'
|
||||
BMD = 'bmd'
|
||||
BND = 'bnd'
|
||||
BOB = 'bob'
|
||||
BRL = 'brl'
|
||||
BSD = 'bsd'
|
||||
BWP = 'bwp'
|
||||
BZD = 'bzd'
|
||||
CAD = 'cad'
|
||||
CDF = 'cdf'
|
||||
CHF = 'chf'
|
||||
CLP = 'clp'
|
||||
CNY = 'cny'
|
||||
COP = 'cop'
|
||||
CRC = 'crc'
|
||||
CVE = 'cve'
|
||||
CZK = 'czk'
|
||||
DJF = 'djf'
|
||||
DKK = 'dkk'
|
||||
DOP = 'dop'
|
||||
DZD = 'dzd'
|
||||
EEK = 'eek'
|
||||
EGP = 'egp'
|
||||
ETB = 'etb'
|
||||
EUR = 'eur'
|
||||
FJD = 'fjd'
|
||||
FKP = 'fkp'
|
||||
GBP = 'gbp'
|
||||
GEL = 'gel'
|
||||
GIP = 'gip'
|
||||
GMD = 'gmd'
|
||||
GNF = 'gnf'
|
||||
GTQ = 'gtq'
|
||||
GYD = 'gyd'
|
||||
HKD = 'hkd'
|
||||
HNL = 'hnl'
|
||||
HRK = 'hrk'
|
||||
HTG = 'htg'
|
||||
HUF = 'huf'
|
||||
IDR = 'idr'
|
||||
ILS = 'ils'
|
||||
INR = 'inr'
|
||||
ISK = 'isk'
|
||||
JMD = 'jmd'
|
||||
JPY = 'jpy'
|
||||
KES = 'kes'
|
||||
KGS = 'kgs'
|
||||
KHR = 'khr'
|
||||
KMF = 'kmf'
|
||||
KRW = 'krw'
|
||||
KYD = 'kyd'
|
||||
KZT = 'kzt'
|
||||
LAK = 'lak'
|
||||
LBP = 'lbp'
|
||||
LKR = 'lkr'
|
||||
LRD = 'lrd'
|
||||
LSL = 'lsl'
|
||||
LTL = 'ltl'
|
||||
LVL = 'lvl'
|
||||
MAD = 'mad'
|
||||
MDL = 'mdl'
|
||||
MGA = 'mga'
|
||||
MKD = 'mkd'
|
||||
MNT = 'mnt'
|
||||
MOP = 'mop'
|
||||
MRO = 'mro'
|
||||
MUR = 'mur'
|
||||
MVR = 'mvr'
|
||||
MWK = 'mwk'
|
||||
MXN = 'mxn'
|
||||
MYR = 'myr'
|
||||
MZN = 'mzn'
|
||||
NAD = 'nad'
|
||||
NGN = 'ngn'
|
||||
NIO = 'nio'
|
||||
NOK = 'nok'
|
||||
NPR = 'npr'
|
||||
NZD = 'nzd'
|
||||
PAB = 'pab'
|
||||
PEN = 'pen'
|
||||
PGK = 'pgk'
|
||||
PHP = 'php'
|
||||
PKR = 'pkr'
|
||||
PLN = 'pln'
|
||||
PYG = 'pyg'
|
||||
QAR = 'qar'
|
||||
RON = 'ron'
|
||||
RSD = 'rsd'
|
||||
RUB = 'rub'
|
||||
RWF = 'rwf'
|
||||
SAR = 'sar'
|
||||
SBD = 'sbd'
|
||||
SCR = 'scr'
|
||||
SEK = 'sek'
|
||||
SGD = 'sgd'
|
||||
SHP = 'shp'
|
||||
SLL = 'sll'
|
||||
SOS = 'sos'
|
||||
SRD = 'srd'
|
||||
STD = 'std'
|
||||
SVC = 'svc'
|
||||
SZL = 'szl'
|
||||
THB = 'thb'
|
||||
TJS = 'tjs'
|
||||
TOP = 'top'
|
||||
TRY = 'try'
|
||||
TTD = 'ttd'
|
||||
TWD = 'twd'
|
||||
TZS = 'tzs'
|
||||
UAH = 'uah'
|
||||
UGX = 'ugx'
|
||||
USD = 'usd'
|
||||
UYU = 'uyu'
|
||||
UZS = 'uzs'
|
||||
VEF = 'vef'
|
||||
VND = 'vnd'
|
||||
VUV = 'vuv'
|
||||
WST = 'wst'
|
||||
XAF = 'xaf'
|
||||
XCD = 'xcd'
|
||||
XOF = 'xof'
|
||||
XPF = 'xpf'
|
||||
YER = 'yer'
|
||||
ZAR = 'zar'
|
||||
ZMW = 'zmw'
|
||||
"""Currency is the list of supported currencies.
|
||||
|
||||
This comes from the Stripe API docs: For more details see <https://support.stripe.com/questions/which-currencies-does-stripe-support>.""" # noqa: E501
|
||||
|
||||
"""# United Arab Emirates Dirham """ # noqa: E501
|
||||
AED = "aed"
|
||||
"""# Afghan Afghani """ # noqa: E501
|
||||
AFN = "afn"
|
||||
"""# Albanian Lek """ # noqa: E501
|
||||
ALL = "all"
|
||||
"""# Armenian Dram """ # noqa: E501
|
||||
AMD = "amd"
|
||||
"""# Netherlands Antillean Gulden """ # noqa: E501
|
||||
ANG = "ang"
|
||||
"""# Angolan Kwanza """ # noqa: E501
|
||||
AOA = "aoa"
|
||||
"""# Argentine Peso """ # noqa: E501
|
||||
ARS = "ars"
|
||||
"""# Australian Dollar """ # noqa: E501
|
||||
AUD = "aud"
|
||||
"""# Aruban Florin """ # noqa: E501
|
||||
AWG = "awg"
|
||||
"""# Azerbaijani Manat """ # noqa: E501
|
||||
AZN = "azn"
|
||||
"""# Bosnia & Herzegovina Convertible Mark """ # noqa: E501
|
||||
BAM = "bam"
|
||||
"""# Barbadian Dollar """ # noqa: E501
|
||||
BBD = "bbd"
|
||||
"""# Bangladeshi Taka """ # noqa: E501
|
||||
BDT = "bdt"
|
||||
"""# Bulgarian Lev """ # noqa: E501
|
||||
BGN = "bgn"
|
||||
"""# Burundian Franc """ # noqa: E501
|
||||
BIF = "bif"
|
||||
"""# Bermudian Dollar """ # noqa: E501
|
||||
BMD = "bmd"
|
||||
"""# Brunei Dollar """ # noqa: E501
|
||||
BND = "bnd"
|
||||
"""# Bolivian Boliviano """ # noqa: E501
|
||||
BOB = "bob"
|
||||
"""# Brazilian Real """ # noqa: E501
|
||||
BRL = "brl"
|
||||
"""# Bahamian Dollar """ # noqa: E501
|
||||
BSD = "bsd"
|
||||
"""# Botswana Pula """ # noqa: E501
|
||||
BWP = "bwp"
|
||||
"""# Belize Dollar """ # noqa: E501
|
||||
BZD = "bzd"
|
||||
"""# Canadian Dollar """ # noqa: E501
|
||||
CAD = "cad"
|
||||
"""# Congolese Franc """ # noqa: E501
|
||||
CDF = "cdf"
|
||||
"""# Swiss Franc """ # noqa: E501
|
||||
CHF = "chf"
|
||||
"""# Chilean Peso """ # noqa: E501
|
||||
CLP = "clp"
|
||||
"""# Chinese Renminbi Yuan """ # noqa: E501
|
||||
CNY = "cny"
|
||||
"""# Colombian Peso """ # noqa: E501
|
||||
COP = "cop"
|
||||
"""# Costa Rican Colón """ # noqa: E501
|
||||
CRC = "crc"
|
||||
"""# Cape Verdean Escudo """ # noqa: E501
|
||||
CVE = "cve"
|
||||
"""# Czech Koruna """ # noqa: E501
|
||||
CZK = "czk"
|
||||
"""# Djiboutian Franc """ # noqa: E501
|
||||
DJF = "djf"
|
||||
"""# Danish Krone """ # noqa: E501
|
||||
DKK = "dkk"
|
||||
"""# Dominican Peso """ # noqa: E501
|
||||
DOP = "dop"
|
||||
"""# Algerian Dinar """ # noqa: E501
|
||||
DZD = "dzd"
|
||||
"""# Estonian Kroon """ # noqa: E501
|
||||
EEK = "eek"
|
||||
"""# Egyptian Pound """ # noqa: E501
|
||||
EGP = "egp"
|
||||
"""# Ethiopian Birr """ # noqa: E501
|
||||
ETB = "etb"
|
||||
"""# Euro """ # noqa: E501
|
||||
EUR = "eur"
|
||||
"""# Fijian Dollar """ # noqa: E501
|
||||
FJD = "fjd"
|
||||
"""# Falkland Islands Pound """ # noqa: E501
|
||||
FKP = "fkp"
|
||||
"""# British Pound """ # noqa: E501
|
||||
GBP = "gbp"
|
||||
"""# Georgian Lari """ # noqa: E501
|
||||
GEL = "gel"
|
||||
"""# Gibraltar Pound """ # noqa: E501
|
||||
GIP = "gip"
|
||||
"""# Gambian Dalasi """ # noqa: E501
|
||||
GMD = "gmd"
|
||||
"""# Guinean Franc """ # noqa: E501
|
||||
GNF = "gnf"
|
||||
"""# Guatemalan Quetzal """ # noqa: E501
|
||||
GTQ = "gtq"
|
||||
"""# Guyanese Dollar """ # noqa: E501
|
||||
GYD = "gyd"
|
||||
"""# Hong Kong Dollar """ # noqa: E501
|
||||
HKD = "hkd"
|
||||
"""# Honduran Lempira """ # noqa: E501
|
||||
HNL = "hnl"
|
||||
"""# Croatian Kuna """ # noqa: E501
|
||||
HRK = "hrk"
|
||||
"""# Haitian Gourde """ # noqa: E501
|
||||
HTG = "htg"
|
||||
"""# Hungarian Forint """ # noqa: E501
|
||||
HUF = "huf"
|
||||
"""# Indonesian Rupiah """ # noqa: E501
|
||||
IDR = "idr"
|
||||
"""# Israeli New Sheqel """ # noqa: E501
|
||||
ILS = "ils"
|
||||
"""# Indian Rupee """ # noqa: E501
|
||||
INR = "inr"
|
||||
"""# Icelandic Króna """ # noqa: E501
|
||||
ISK = "isk"
|
||||
"""# Jamaican Dollar """ # noqa: E501
|
||||
JMD = "jmd"
|
||||
"""# Japanese Yen """ # noqa: E501
|
||||
JPY = "jpy"
|
||||
"""# Kenyan Shilling """ # noqa: E501
|
||||
KES = "kes"
|
||||
"""# Kyrgyzstani Som """ # noqa: E501
|
||||
KGS = "kgs"
|
||||
"""# Cambodian Riel """ # noqa: E501
|
||||
KHR = "khr"
|
||||
"""# Comorian Franc """ # noqa: E501
|
||||
KMF = "kmf"
|
||||
"""# South Korean Won """ # noqa: E501
|
||||
KRW = "krw"
|
||||
"""# Cayman Islands Dollar """ # noqa: E501
|
||||
KYD = "kyd"
|
||||
"""# Kazakhstani Tenge """ # noqa: E501
|
||||
KZT = "kzt"
|
||||
"""# Lao Kip """ # noqa: E501
|
||||
LAK = "lak"
|
||||
"""# Lebanese Pound """ # noqa: E501
|
||||
LBP = "lbp"
|
||||
"""# Sri Lankan Rupee """ # noqa: E501
|
||||
LKR = "lkr"
|
||||
"""# Liberian Dollar """ # noqa: E501
|
||||
LRD = "lrd"
|
||||
"""# Lesotho Loti """ # noqa: E501
|
||||
LSL = "lsl"
|
||||
"""# Lithuanian Litas """ # noqa: E501
|
||||
LTL = "ltl"
|
||||
"""# Latvian Lats """ # noqa: E501
|
||||
LVL = "lvl"
|
||||
"""# Moroccan Dirham """ # noqa: E501
|
||||
MAD = "mad"
|
||||
"""# Moldovan Leu """ # noqa: E501
|
||||
MDL = "mdl"
|
||||
"""# Malagasy Ariary """ # noqa: E501
|
||||
MGA = "mga"
|
||||
"""# Macedonian Denar """ # noqa: E501
|
||||
MKD = "mkd"
|
||||
"""# Mongolian Tögrög """ # noqa: E501
|
||||
MNT = "mnt"
|
||||
"""# Macanese Pataca """ # noqa: E501
|
||||
MOP = "mop"
|
||||
"""# Mauritanian Ouguiya """ # noqa: E501
|
||||
MRO = "mro"
|
||||
"""# Mauritian Rupee """ # noqa: E501
|
||||
MUR = "mur"
|
||||
"""# Maldivian Rufiyaa """ # noqa: E501
|
||||
MVR = "mvr"
|
||||
"""# Malawian Kwacha """ # noqa: E501
|
||||
MWK = "mwk"
|
||||
"""# Mexican Peso """ # noqa: E501
|
||||
MXN = "mxn"
|
||||
"""# Malaysian Ringgit """ # noqa: E501
|
||||
MYR = "myr"
|
||||
"""# Mozambican Metical """ # noqa: E501
|
||||
MZN = "mzn"
|
||||
"""# Namibian Dollar """ # noqa: E501
|
||||
NAD = "nad"
|
||||
"""# Nigerian Naira """ # noqa: E501
|
||||
NGN = "ngn"
|
||||
"""# Nicaraguan Córdoba """ # noqa: E501
|
||||
NIO = "nio"
|
||||
"""# Norwegian Krone """ # noqa: E501
|
||||
NOK = "nok"
|
||||
"""# Nepalese Rupee """ # noqa: E501
|
||||
NPR = "npr"
|
||||
"""# New Zealand Dollar """ # noqa: E501
|
||||
NZD = "nzd"
|
||||
"""# Panamanian Balboa """ # noqa: E501
|
||||
PAB = "pab"
|
||||
"""# Peruvian Nuevo Sol """ # noqa: E501
|
||||
PEN = "pen"
|
||||
"""# Papua New Guinean Kina """ # noqa: E501
|
||||
PGK = "pgk"
|
||||
"""# Philippine Peso """ # noqa: E501
|
||||
PHP = "php"
|
||||
"""# Pakistani Rupee """ # noqa: E501
|
||||
PKR = "pkr"
|
||||
"""# Polish Złoty """ # noqa: E501
|
||||
PLN = "pln"
|
||||
"""# Paraguayan Guaraní """ # noqa: E501
|
||||
PYG = "pyg"
|
||||
"""# Qatari Riyal """ # noqa: E501
|
||||
QAR = "qar"
|
||||
"""# Romanian Leu """ # noqa: E501
|
||||
RON = "ron"
|
||||
"""# Serbian Dinar """ # noqa: E501
|
||||
RSD = "rsd"
|
||||
"""# Russian Ruble """ # noqa: E501
|
||||
RUB = "rub"
|
||||
"""# Rwandan Franc """ # noqa: E501
|
||||
RWF = "rwf"
|
||||
"""# Saudi Riyal """ # noqa: E501
|
||||
SAR = "sar"
|
||||
"""# Solomon Islands Dollar """ # noqa: E501
|
||||
SBD = "sbd"
|
||||
"""# Seychellois Rupee """ # noqa: E501
|
||||
SCR = "scr"
|
||||
"""# Swedish Krona """ # noqa: E501
|
||||
SEK = "sek"
|
||||
"""# Singapore Dollar """ # noqa: E501
|
||||
SGD = "sgd"
|
||||
"""# Saint Helenian Pound """ # noqa: E501
|
||||
SHP = "shp"
|
||||
"""# Sierra Leonean Leone """ # noqa: E501
|
||||
SLL = "sll"
|
||||
"""# Somali Shilling """ # noqa: E501
|
||||
SOS = "sos"
|
||||
"""# Surinamese Dollar """ # noqa: E501
|
||||
SRD = "srd"
|
||||
"""# São Tomé and Príncipe Dobra """ # noqa: E501
|
||||
STD = "std"
|
||||
"""# Salvadoran Colón """ # noqa: E501
|
||||
SVC = "svc"
|
||||
"""# Swazi Lilangeni """ # noqa: E501
|
||||
SZL = "szl"
|
||||
"""# Thai Baht """ # noqa: E501
|
||||
THB = "thb"
|
||||
"""# Tajikistani Somoni """ # noqa: E501
|
||||
TJS = "tjs"
|
||||
"""# Tongan Paʻanga """ # noqa: E501
|
||||
TOP = "top"
|
||||
"""# Turkish Lira """ # noqa: E501
|
||||
TRY = "try"
|
||||
"""# Trinidad and Tobago Dollar """ # noqa: E501
|
||||
TTD = "ttd"
|
||||
"""# New Taiwan Dollar """ # noqa: E501
|
||||
TWD = "twd"
|
||||
"""# Tanzanian Shilling """ # noqa: E501
|
||||
TZS = "tzs"
|
||||
"""# Ukrainian Hryvnia """ # noqa: E501
|
||||
UAH = "uah"
|
||||
"""# Ugandan Shilling """ # noqa: E501
|
||||
UGX = "ugx"
|
||||
"""# United States Dollar """ # noqa: E501
|
||||
USD = "usd"
|
||||
"""# Uruguayan Peso """ # noqa: E501
|
||||
UYU = "uyu"
|
||||
"""# Uzbekistani Som """ # noqa: E501
|
||||
UZS = "uzs"
|
||||
"""# Venezuelan Bolívar """ # noqa: E501
|
||||
VEF = "vef"
|
||||
"""# Vietnamese Đồng """ # noqa: E501
|
||||
VND = "vnd"
|
||||
"""# Vanuatu Vatu """ # noqa: E501
|
||||
VUV = "vuv"
|
||||
"""# Samoan Tala """ # noqa: E501
|
||||
WST = "wst"
|
||||
"""# Central African Cfa Franc """ # noqa: E501
|
||||
XAF = "xaf"
|
||||
"""# East Caribbean Dollar """ # noqa: E501
|
||||
XCD = "xcd"
|
||||
"""# West African Cfa Franc """ # noqa: E501
|
||||
XOF = "xof"
|
||||
"""# Cfp Franc """ # noqa: E501
|
||||
XPF = "xpf"
|
||||
"""# Yemeni Rial """ # noqa: E501
|
||||
YER = "yer"
|
||||
"""# South African Rand """ # noqa: E501
|
||||
ZAR = "zar"
|
||||
"""# Zambian Kwacha """ # noqa: E501
|
||||
ZMW = "zmw"
|
||||
|
||||
def __str__(self) -> str:
|
||||
return str(self.value)
|
||||
|
@ -1,19 +1,20 @@
|
||||
import datetime
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
from dateutil.parser import isoparse
|
||||
|
||||
from ..models.new_address import NewAddress
|
||||
from ..models.currency import Currency
|
||||
from ..models.new_address import NewAddress
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="Customer")
|
||||
M = TypeVar("M", bound="Customer")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class Customer:
|
||||
""" """
|
||||
"""The resource representing a payment "Customer".""" # noqa: E501
|
||||
|
||||
address: Union[Unset, NewAddress] = UNSET
|
||||
balance: Union[Unset, float] = UNSET
|
||||
created_at: Union[Unset, datetime.datetime] = UNSET
|
||||
@ -28,16 +29,14 @@ class Customer:
|
||||
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
address: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.address, Unset):
|
||||
address = self.address.value
|
||||
address = self.address
|
||||
balance = self.balance
|
||||
created_at: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.created_at, Unset):
|
||||
created_at = self.created_at.isoformat()
|
||||
currency: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.currency, Unset):
|
||||
currency = self.currency.value
|
||||
currency = self.currency
|
||||
delinquent = self.delinquent
|
||||
email = self.email
|
||||
id = self.id
|
||||
@ -49,30 +48,30 @@ class Customer:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if address is not UNSET:
|
||||
field_dict['address'] = address
|
||||
field_dict["address"] = address
|
||||
if balance is not UNSET:
|
||||
field_dict['balance'] = balance
|
||||
field_dict["balance"] = balance
|
||||
if created_at is not UNSET:
|
||||
field_dict['created_at'] = created_at
|
||||
field_dict["created_at"] = created_at
|
||||
if currency is not UNSET:
|
||||
field_dict['currency'] = currency
|
||||
field_dict["currency"] = currency
|
||||
if delinquent is not UNSET:
|
||||
field_dict['delinquent'] = delinquent
|
||||
field_dict["delinquent"] = delinquent
|
||||
if email is not UNSET:
|
||||
field_dict['email'] = email
|
||||
field_dict["email"] = email
|
||||
if id is not UNSET:
|
||||
field_dict['id'] = id
|
||||
field_dict["id"] = id
|
||||
if metadata is not UNSET:
|
||||
field_dict['metadata'] = metadata
|
||||
field_dict["metadata"] = metadata
|
||||
if name is not UNSET:
|
||||
field_dict['name'] = name
|
||||
field_dict["name"] = name
|
||||
if phone is not UNSET:
|
||||
field_dict['phone'] = phone
|
||||
field_dict["phone"] = phone
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[M], src_dict: Dict[str, Any]) -> M:
|
||||
d = src_dict.copy()
|
||||
_address = d.pop("address", UNSET)
|
||||
address: Union[Unset, NewAddress]
|
||||
|
@ -1,18 +1,20 @@
|
||||
import datetime
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
from dateutil.parser import isoparse
|
||||
|
||||
from ..models.uuid import Uuid
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="CustomerBalance")
|
||||
N = TypeVar("N", bound="CustomerBalance")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class CustomerBalance:
|
||||
""" """
|
||||
"""A balance for a user.
|
||||
|
||||
This holds information about the financial balance for the user.""" # noqa: E501
|
||||
|
||||
created_at: Union[Unset, datetime.datetime] = UNSET
|
||||
id: Union[Unset, str] = UNSET
|
||||
monthly_credits_remaining: Union[Unset, float] = UNSET
|
||||
@ -42,26 +44,26 @@ class CustomerBalance:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if created_at is not UNSET:
|
||||
field_dict['created_at'] = created_at
|
||||
field_dict["created_at"] = created_at
|
||||
if id is not UNSET:
|
||||
field_dict['id'] = id
|
||||
field_dict["id"] = id
|
||||
if monthly_credits_remaining is not UNSET:
|
||||
field_dict['monthly_credits_remaining'] = monthly_credits_remaining
|
||||
field_dict["monthly_credits_remaining"] = monthly_credits_remaining
|
||||
if pre_pay_cash_remaining is not UNSET:
|
||||
field_dict['pre_pay_cash_remaining'] = pre_pay_cash_remaining
|
||||
field_dict["pre_pay_cash_remaining"] = pre_pay_cash_remaining
|
||||
if pre_pay_credits_remaining is not UNSET:
|
||||
field_dict['pre_pay_credits_remaining'] = pre_pay_credits_remaining
|
||||
field_dict["pre_pay_credits_remaining"] = pre_pay_credits_remaining
|
||||
if total_due is not UNSET:
|
||||
field_dict['total_due'] = total_due
|
||||
field_dict["total_due"] = total_due
|
||||
if updated_at is not UNSET:
|
||||
field_dict['updated_at'] = updated_at
|
||||
field_dict["updated_at"] = updated_at
|
||||
if user_id is not UNSET:
|
||||
field_dict['user_id'] = user_id
|
||||
field_dict["user_id"] = user_id
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[N], src_dict: Dict[str, Any]) -> N:
|
||||
d = src_dict.copy()
|
||||
_created_at = d.pop("created_at", UNSET)
|
||||
created_at: Union[Unset, datetime.datetime]
|
||||
|
@ -1,16 +1,17 @@
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
|
||||
from ..models.o_auth2_grant_type import OAuth2GrantType
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="DeviceAccessTokenRequestForm")
|
||||
J = TypeVar("J", bound="DeviceAccessTokenRequestForm")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class DeviceAccessTokenRequestForm:
|
||||
""" """
|
||||
"""The form for a device access token request.""" # noqa: E501
|
||||
|
||||
client_id: Union[Unset, str] = UNSET
|
||||
device_code: Union[Unset, str] = UNSET
|
||||
grant_type: Union[Unset, OAuth2GrantType] = UNSET
|
||||
@ -20,24 +21,23 @@ class DeviceAccessTokenRequestForm:
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
client_id = self.client_id
|
||||
device_code = self.device_code
|
||||
grant_type: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.grant_type, Unset):
|
||||
grant_type = self.grant_type.value
|
||||
grant_type = self.grant_type
|
||||
|
||||
field_dict: Dict[str, Any] = {}
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if client_id is not UNSET:
|
||||
field_dict['client_id'] = client_id
|
||||
field_dict["client_id"] = client_id
|
||||
if device_code is not UNSET:
|
||||
field_dict['device_code'] = device_code
|
||||
field_dict["device_code"] = device_code
|
||||
if grant_type is not UNSET:
|
||||
field_dict['grant_type'] = grant_type
|
||||
field_dict["grant_type"] = grant_type
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[J], src_dict: Dict[str, Any]) -> J:
|
||||
d = src_dict.copy()
|
||||
client_id = d.pop("client_id", UNSET)
|
||||
|
||||
|
@ -1,15 +1,16 @@
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="DeviceAuthRequestForm")
|
||||
V = TypeVar("V", bound="DeviceAuthRequestForm")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class DeviceAuthRequestForm:
|
||||
""" """
|
||||
"""The request parameters for the OAuth 2.0 Device Authorization Grant flow.""" # noqa: E501
|
||||
|
||||
client_id: Union[Unset, str] = UNSET
|
||||
|
||||
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
||||
@ -21,12 +22,12 @@ class DeviceAuthRequestForm:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if client_id is not UNSET:
|
||||
field_dict['client_id'] = client_id
|
||||
field_dict["client_id"] = client_id
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[V], src_dict: Dict[str, Any]) -> V:
|
||||
d = src_dict.copy()
|
||||
client_id = d.pop("client_id", UNSET)
|
||||
|
||||
|
@ -1,15 +1,16 @@
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="DeviceAuthVerifyParams")
|
||||
F = TypeVar("F", bound="DeviceAuthVerifyParams")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class DeviceAuthVerifyParams:
|
||||
""" """
|
||||
"""The request parameters to verify the `user_code` for the OAuth 2.0 Device Authorization Grant.""" # noqa: E501
|
||||
|
||||
user_code: Union[Unset, str] = UNSET
|
||||
|
||||
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
||||
@ -21,12 +22,12 @@ class DeviceAuthVerifyParams:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if user_code is not UNSET:
|
||||
field_dict['user_code'] = user_code
|
||||
field_dict["user_code"] = user_code
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[F], src_dict: Dict[str, Any]) -> F:
|
||||
d = src_dict.copy()
|
||||
user_code = d.pop("user_code", UNSET)
|
||||
|
||||
|
@ -2,21 +2,21 @@ from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
|
||||
import attr
|
||||
|
||||
from ..models.system_info_cgroup_driver_enum import SystemInfoCgroupDriverEnum
|
||||
from ..models.system_info_cgroup_version_enum import SystemInfoCgroupVersionEnum
|
||||
from ..models.commit import Commit
|
||||
from ..models.system_info_isolation_enum import SystemInfoIsolationEnum
|
||||
from ..models.plugins_info import PluginsInfo
|
||||
from ..models.registry_service_config import RegistryServiceConfig
|
||||
from ..models.runtime import Runtime
|
||||
from ..models.system_info_cgroup_driver_enum import SystemInfoCgroupDriverEnum
|
||||
from ..models.system_info_cgroup_version_enum import SystemInfoCgroupVersionEnum
|
||||
from ..models.system_info_isolation_enum import SystemInfoIsolationEnum
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="DockerSystemInfo")
|
||||
V = TypeVar("V", bound="DockerSystemInfo")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class DockerSystemInfo:
|
||||
""" """
|
||||
"""Docker system info.""" # noqa: E501
|
||||
|
||||
architecture: Union[Unset, str] = UNSET
|
||||
bridge_nf_ip6tables: Union[Unset, bool] = False
|
||||
bridge_nf_iptables: Union[Unset, bool] = False
|
||||
@ -35,8 +35,8 @@ class DockerSystemInfo:
|
||||
cpu_shares: Union[Unset, bool] = False
|
||||
debug: Union[Unset, bool] = False
|
||||
from ..models.system_info_default_address_pools import SystemInfoDefaultAddressPools
|
||||
default_address_pools: Union[Unset,
|
||||
List[SystemInfoDefaultAddressPools]] = UNSET
|
||||
|
||||
default_address_pools: Union[Unset, List[SystemInfoDefaultAddressPools]] = UNSET
|
||||
default_runtime: Union[Unset, str] = UNSET
|
||||
docker_root_dir: Union[Unset, str] = UNSET
|
||||
driver: Union[Unset, str] = UNSET
|
||||
@ -86,17 +86,14 @@ class DockerSystemInfo:
|
||||
architecture = self.architecture
|
||||
bridge_nf_ip6tables = self.bridge_nf_ip6tables
|
||||
bridge_nf_iptables = self.bridge_nf_iptables
|
||||
cgroup_driver: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.cgroup_driver, Unset):
|
||||
cgroup_driver = self.cgroup_driver.value
|
||||
cgroup_version: Union[Unset, str] = UNSET
|
||||
cgroup_driver = self.cgroup_driver
|
||||
if not isinstance(self.cgroup_version, Unset):
|
||||
cgroup_version = self.cgroup_version.value
|
||||
cgroup_version = self.cgroup_version
|
||||
cluster_advertise = self.cluster_advertise
|
||||
cluster_store = self.cluster_store
|
||||
containerd_commit: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.containerd_commit, Unset):
|
||||
containerd_commit = self.containerd_commit.value
|
||||
containerd_commit = self.containerd_commit
|
||||
containers = self.containers
|
||||
containers_paused = self.containers_paused
|
||||
containers_running = self.containers_running
|
||||
@ -106,9 +103,11 @@ class DockerSystemInfo:
|
||||
cpu_set = self.cpu_set
|
||||
cpu_shares = self.cpu_shares
|
||||
debug = self.debug
|
||||
from ..models.system_info_default_address_pools import SystemInfoDefaultAddressPools
|
||||
default_address_pools: Union[Unset,
|
||||
List[SystemInfoDefaultAddressPools]] = UNSET
|
||||
from ..models.system_info_default_address_pools import (
|
||||
SystemInfoDefaultAddressPools,
|
||||
)
|
||||
|
||||
default_address_pools: Union[Unset, List[SystemInfoDefaultAddressPools]] = UNSET
|
||||
if not isinstance(self.default_address_pools, Unset):
|
||||
default_address_pools = self.default_address_pools
|
||||
default_runtime = self.default_runtime
|
||||
@ -124,13 +123,11 @@ class DockerSystemInfo:
|
||||
images = self.images
|
||||
index_server_address = self.index_server_address
|
||||
init_binary = self.init_binary
|
||||
init_commit: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.init_commit, Unset):
|
||||
init_commit = self.init_commit.value
|
||||
init_commit = self.init_commit
|
||||
ipv4_forwarding = self.ipv4_forwarding
|
||||
isolation: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.isolation, Unset):
|
||||
isolation = self.isolation.value
|
||||
isolation = self.isolation
|
||||
kernel_memory = self.kernel_memory
|
||||
kernel_memory_tcp = self.kernel_memory_tcp
|
||||
kernel_version = self.kernel_version
|
||||
@ -151,16 +148,13 @@ class DockerSystemInfo:
|
||||
os_type = self.os_type
|
||||
os_version = self.os_version
|
||||
pids_limit = self.pids_limit
|
||||
plugins: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.plugins, Unset):
|
||||
plugins = self.plugins.value
|
||||
plugins = self.plugins
|
||||
product_license = self.product_license
|
||||
registry_config: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.registry_config, Unset):
|
||||
registry_config = self.registry_config.value
|
||||
runc_commit: Union[Unset, str] = UNSET
|
||||
registry_config = self.registry_config
|
||||
if not isinstance(self.runc_commit, Unset):
|
||||
runc_commit = self.runc_commit.value
|
||||
runc_commit = self.runc_commit
|
||||
runtimes = self.runtimes
|
||||
security_options: Union[Unset, List[str]] = UNSET
|
||||
if not isinstance(self.security_options, Unset):
|
||||
@ -176,130 +170,130 @@ class DockerSystemInfo:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if architecture is not UNSET:
|
||||
field_dict['architecture'] = architecture
|
||||
field_dict["architecture"] = architecture
|
||||
if bridge_nf_ip6tables is not UNSET:
|
||||
field_dict['bridge_nf_ip6tables'] = bridge_nf_ip6tables
|
||||
field_dict["bridge_nf_ip6tables"] = bridge_nf_ip6tables
|
||||
if bridge_nf_iptables is not UNSET:
|
||||
field_dict['bridge_nf_iptables'] = bridge_nf_iptables
|
||||
field_dict["bridge_nf_iptables"] = bridge_nf_iptables
|
||||
if cgroup_driver is not UNSET:
|
||||
field_dict['cgroup_driver'] = cgroup_driver
|
||||
field_dict["cgroup_driver"] = cgroup_driver
|
||||
if cgroup_version is not UNSET:
|
||||
field_dict['cgroup_version'] = cgroup_version
|
||||
field_dict["cgroup_version"] = cgroup_version
|
||||
if cluster_advertise is not UNSET:
|
||||
field_dict['cluster_advertise'] = cluster_advertise
|
||||
field_dict["cluster_advertise"] = cluster_advertise
|
||||
if cluster_store is not UNSET:
|
||||
field_dict['cluster_store'] = cluster_store
|
||||
field_dict["cluster_store"] = cluster_store
|
||||
if containerd_commit is not UNSET:
|
||||
field_dict['containerd_commit'] = containerd_commit
|
||||
field_dict["containerd_commit"] = containerd_commit
|
||||
if containers is not UNSET:
|
||||
field_dict['containers'] = containers
|
||||
field_dict["containers"] = containers
|
||||
if containers_paused is not UNSET:
|
||||
field_dict['containers_paused'] = containers_paused
|
||||
field_dict["containers_paused"] = containers_paused
|
||||
if containers_running is not UNSET:
|
||||
field_dict['containers_running'] = containers_running
|
||||
field_dict["containers_running"] = containers_running
|
||||
if containers_stopped is not UNSET:
|
||||
field_dict['containers_stopped'] = containers_stopped
|
||||
field_dict["containers_stopped"] = containers_stopped
|
||||
if cpu_cfs_period is not UNSET:
|
||||
field_dict['cpu_cfs_period'] = cpu_cfs_period
|
||||
field_dict["cpu_cfs_period"] = cpu_cfs_period
|
||||
if cpu_cfs_quota is not UNSET:
|
||||
field_dict['cpu_cfs_quota'] = cpu_cfs_quota
|
||||
field_dict["cpu_cfs_quota"] = cpu_cfs_quota
|
||||
if cpu_set is not UNSET:
|
||||
field_dict['cpu_set'] = cpu_set
|
||||
field_dict["cpu_set"] = cpu_set
|
||||
if cpu_shares is not UNSET:
|
||||
field_dict['cpu_shares'] = cpu_shares
|
||||
field_dict["cpu_shares"] = cpu_shares
|
||||
if debug is not UNSET:
|
||||
field_dict['debug'] = debug
|
||||
field_dict["debug"] = debug
|
||||
if default_address_pools is not UNSET:
|
||||
field_dict['default_address_pools'] = default_address_pools
|
||||
field_dict["default_address_pools"] = default_address_pools
|
||||
if default_runtime is not UNSET:
|
||||
field_dict['default_runtime'] = default_runtime
|
||||
field_dict["default_runtime"] = default_runtime
|
||||
if docker_root_dir is not UNSET:
|
||||
field_dict['docker_root_dir'] = docker_root_dir
|
||||
field_dict["docker_root_dir"] = docker_root_dir
|
||||
if driver is not UNSET:
|
||||
field_dict['driver'] = driver
|
||||
field_dict["driver"] = driver
|
||||
if driver_status is not UNSET:
|
||||
field_dict['driver_status'] = driver_status
|
||||
field_dict["driver_status"] = driver_status
|
||||
if experimental_build is not UNSET:
|
||||
field_dict['experimental_build'] = experimental_build
|
||||
field_dict["experimental_build"] = experimental_build
|
||||
if http_proxy is not UNSET:
|
||||
field_dict['http_proxy'] = http_proxy
|
||||
field_dict["http_proxy"] = http_proxy
|
||||
if https_proxy is not UNSET:
|
||||
field_dict['https_proxy'] = https_proxy
|
||||
field_dict["https_proxy"] = https_proxy
|
||||
if id is not UNSET:
|
||||
field_dict['id'] = id
|
||||
field_dict["id"] = id
|
||||
if images is not UNSET:
|
||||
field_dict['images'] = images
|
||||
field_dict["images"] = images
|
||||
if index_server_address is not UNSET:
|
||||
field_dict['index_server_address'] = index_server_address
|
||||
field_dict["index_server_address"] = index_server_address
|
||||
if init_binary is not UNSET:
|
||||
field_dict['init_binary'] = init_binary
|
||||
field_dict["init_binary"] = init_binary
|
||||
if init_commit is not UNSET:
|
||||
field_dict['init_commit'] = init_commit
|
||||
field_dict["init_commit"] = init_commit
|
||||
if ipv4_forwarding is not UNSET:
|
||||
field_dict['ipv4_forwarding'] = ipv4_forwarding
|
||||
field_dict["ipv4_forwarding"] = ipv4_forwarding
|
||||
if isolation is not UNSET:
|
||||
field_dict['isolation'] = isolation
|
||||
field_dict["isolation"] = isolation
|
||||
if kernel_memory is not UNSET:
|
||||
field_dict['kernel_memory'] = kernel_memory
|
||||
field_dict["kernel_memory"] = kernel_memory
|
||||
if kernel_memory_tcp is not UNSET:
|
||||
field_dict['kernel_memory_tcp'] = kernel_memory_tcp
|
||||
field_dict["kernel_memory_tcp"] = kernel_memory_tcp
|
||||
if kernel_version is not UNSET:
|
||||
field_dict['kernel_version'] = kernel_version
|
||||
field_dict["kernel_version"] = kernel_version
|
||||
if labels is not UNSET:
|
||||
field_dict['labels'] = labels
|
||||
field_dict["labels"] = labels
|
||||
if live_restore_enabled is not UNSET:
|
||||
field_dict['live_restore_enabled'] = live_restore_enabled
|
||||
field_dict["live_restore_enabled"] = live_restore_enabled
|
||||
if logging_driver is not UNSET:
|
||||
field_dict['logging_driver'] = logging_driver
|
||||
field_dict["logging_driver"] = logging_driver
|
||||
if mem_total is not UNSET:
|
||||
field_dict['mem_total'] = mem_total
|
||||
field_dict["mem_total"] = mem_total
|
||||
if memory_limit is not UNSET:
|
||||
field_dict['memory_limit'] = memory_limit
|
||||
field_dict["memory_limit"] = memory_limit
|
||||
if n_events_listener is not UNSET:
|
||||
field_dict['n_events_listener'] = n_events_listener
|
||||
field_dict["n_events_listener"] = n_events_listener
|
||||
if n_fd is not UNSET:
|
||||
field_dict['n_fd'] = n_fd
|
||||
field_dict["n_fd"] = n_fd
|
||||
if name is not UNSET:
|
||||
field_dict['name'] = name
|
||||
field_dict["name"] = name
|
||||
if ncpu is not UNSET:
|
||||
field_dict['ncpu'] = ncpu
|
||||
field_dict["ncpu"] = ncpu
|
||||
if no_proxy is not UNSET:
|
||||
field_dict['no_proxy'] = no_proxy
|
||||
field_dict["no_proxy"] = no_proxy
|
||||
if oom_kill_disable is not UNSET:
|
||||
field_dict['oom_kill_disable'] = oom_kill_disable
|
||||
field_dict["oom_kill_disable"] = oom_kill_disable
|
||||
if operating_system is not UNSET:
|
||||
field_dict['operating_system'] = operating_system
|
||||
field_dict["operating_system"] = operating_system
|
||||
if os_type is not UNSET:
|
||||
field_dict['os_type'] = os_type
|
||||
field_dict["os_type"] = os_type
|
||||
if os_version is not UNSET:
|
||||
field_dict['os_version'] = os_version
|
||||
field_dict["os_version"] = os_version
|
||||
if pids_limit is not UNSET:
|
||||
field_dict['pids_limit'] = pids_limit
|
||||
field_dict["pids_limit"] = pids_limit
|
||||
if plugins is not UNSET:
|
||||
field_dict['plugins'] = plugins
|
||||
field_dict["plugins"] = plugins
|
||||
if product_license is not UNSET:
|
||||
field_dict['product_license'] = product_license
|
||||
field_dict["product_license"] = product_license
|
||||
if registry_config is not UNSET:
|
||||
field_dict['registry_config'] = registry_config
|
||||
field_dict["registry_config"] = registry_config
|
||||
if runc_commit is not UNSET:
|
||||
field_dict['runc_commit'] = runc_commit
|
||||
field_dict["runc_commit"] = runc_commit
|
||||
if runtimes is not UNSET:
|
||||
field_dict['runtimes'] = runtimes
|
||||
field_dict["runtimes"] = runtimes
|
||||
if security_options is not UNSET:
|
||||
field_dict['security_options'] = security_options
|
||||
field_dict["security_options"] = security_options
|
||||
if server_version is not UNSET:
|
||||
field_dict['server_version'] = server_version
|
||||
field_dict["server_version"] = server_version
|
||||
if swap_limit is not UNSET:
|
||||
field_dict['swap_limit'] = swap_limit
|
||||
field_dict["swap_limit"] = swap_limit
|
||||
if system_time is not UNSET:
|
||||
field_dict['system_time'] = system_time
|
||||
field_dict["system_time"] = system_time
|
||||
if warnings is not UNSET:
|
||||
field_dict['warnings'] = warnings
|
||||
field_dict["warnings"] = warnings
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[V], src_dict: Dict[str, Any]) -> V:
|
||||
d = src_dict.copy()
|
||||
architecture = d.pop("architecture", UNSET)
|
||||
|
||||
@ -350,10 +344,13 @@ class DockerSystemInfo:
|
||||
|
||||
debug = d.pop("debug", UNSET)
|
||||
|
||||
from ..models.system_info_default_address_pools import SystemInfoDefaultAddressPools
|
||||
from ..models.system_info_default_address_pools import (
|
||||
SystemInfoDefaultAddressPools,
|
||||
)
|
||||
|
||||
default_address_pools = cast(
|
||||
List[SystemInfoDefaultAddressPools], d.pop(
|
||||
"default_address_pools", UNSET))
|
||||
List[SystemInfoDefaultAddressPools], d.pop("default_address_pools", UNSET)
|
||||
)
|
||||
|
||||
default_runtime = d.pop("default_runtime", UNSET)
|
||||
|
||||
|
128
kittycad/models/drawing_cmd.py
Normal file
128
kittycad/models/drawing_cmd.py
Normal file
@ -0,0 +1,128 @@
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
|
||||
import attr
|
||||
|
||||
from ..models.drawing_cmd_id import DrawingCmdId
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
J = TypeVar("J", bound="DrawCircle")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class DrawCircle:
|
||||
center: Union[Unset, List[float]] = UNSET
|
||||
radius: Union[Unset, float] = UNSET
|
||||
|
||||
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
center: Union[Unset, List[float]] = UNSET
|
||||
if not isinstance(self.center, Unset):
|
||||
center = self.center
|
||||
radius = self.radius
|
||||
|
||||
field_dict: Dict[str, Any] = {}
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if center is not UNSET:
|
||||
field_dict["center"] = center
|
||||
if radius is not UNSET:
|
||||
field_dict["radius"] = radius
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[J], src_dict: Dict[str, Any]) -> J:
|
||||
d = src_dict.copy()
|
||||
center = cast(List[float], d.pop("center", UNSET))
|
||||
|
||||
radius = d.pop("radius", UNSET)
|
||||
|
||||
draw_circle = cls(
|
||||
center=center,
|
||||
radius=radius,
|
||||
)
|
||||
|
||||
draw_circle.additional_properties = d
|
||||
return draw_circle
|
||||
|
||||
@property
|
||||
def additional_keys(self) -> List[str]:
|
||||
return list(self.additional_properties.keys())
|
||||
|
||||
def __getitem__(self, key: str) -> Any:
|
||||
return self.additional_properties[key]
|
||||
|
||||
def __setitem__(self, key: str, value: Any) -> None:
|
||||
self.additional_properties[key] = value
|
||||
|
||||
def __delitem__(self, key: str) -> None:
|
||||
del self.additional_properties[key]
|
||||
|
||||
def __contains__(self, key: str) -> bool:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
V = TypeVar("V", bound="Extrude")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class Extrude:
|
||||
distance: Union[Unset, float] = UNSET
|
||||
sketch: Union[Unset, DrawingCmdId] = UNSET
|
||||
|
||||
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
distance = self.distance
|
||||
if not isinstance(self.sketch, Unset):
|
||||
sketch = self.sketch
|
||||
|
||||
field_dict: Dict[str, Any] = {}
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if distance is not UNSET:
|
||||
field_dict["distance"] = distance
|
||||
if sketch is not UNSET:
|
||||
field_dict["sketch"] = sketch
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[V], src_dict: Dict[str, Any]) -> V:
|
||||
d = src_dict.copy()
|
||||
distance = d.pop("distance", UNSET)
|
||||
|
||||
_sketch = d.pop("sketch", UNSET)
|
||||
sketch: Union[Unset, DrawingCmdId]
|
||||
if isinstance(_sketch, Unset):
|
||||
sketch = UNSET
|
||||
else:
|
||||
sketch = DrawingCmdId(_sketch)
|
||||
|
||||
extrude = cls(
|
||||
distance=distance,
|
||||
sketch=sketch,
|
||||
)
|
||||
|
||||
extrude.additional_properties = d
|
||||
return extrude
|
||||
|
||||
@property
|
||||
def additional_keys(self) -> List[str]:
|
||||
return list(self.additional_properties.keys())
|
||||
|
||||
def __getitem__(self, key: str) -> Any:
|
||||
return self.additional_properties[key]
|
||||
|
||||
def __setitem__(self, key: str, value: Any) -> None:
|
||||
self.additional_properties[key] = value
|
||||
|
||||
def __delitem__(self, key: str) -> None:
|
||||
del self.additional_properties[key]
|
||||
|
||||
def __contains__(self, key: str) -> bool:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
DrawingCmd = Union[DrawCircle, Extrude]
|
@ -1,4 +1,3 @@
|
||||
class DrawingCmdId(str):
|
||||
|
||||
def __str__(self) -> str:
|
||||
return self
|
||||
|
@ -1,4 +1,4 @@
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
|
||||
@ -6,12 +6,13 @@ from ..models.drawing_cmd import DrawingCmd
|
||||
from ..models.drawing_cmd_id import DrawingCmdId
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="DrawingCmdReq")
|
||||
L = TypeVar("L", bound="DrawingCmdReq")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class DrawingCmdReq:
|
||||
""" """
|
||||
"""A graphics command submitted to the KittyCAD engine via the Drawing API.""" # noqa: E501
|
||||
|
||||
cmd: Union[Unset, DrawingCmd] = UNSET
|
||||
cmd_id: Union[Unset, DrawingCmdId] = UNSET
|
||||
file_id: Union[Unset, str] = UNSET
|
||||
@ -19,35 +20,33 @@ class DrawingCmdReq:
|
||||
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
cmd: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.cmd, Unset):
|
||||
cmd = self.cmd.value
|
||||
cmd_id: Union[Unset, str] = UNSET
|
||||
cmd = self.cmd
|
||||
if not isinstance(self.cmd_id, Unset):
|
||||
cmd_id = self.cmd_id.value
|
||||
cmd_id = self.cmd_id
|
||||
file_id = self.file_id
|
||||
|
||||
field_dict: Dict[str, Any] = {}
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if cmd is not UNSET:
|
||||
field_dict['cmd'] = cmd
|
||||
field_dict["cmd"] = cmd
|
||||
if cmd_id is not UNSET:
|
||||
field_dict['cmd_id'] = cmd_id
|
||||
field_dict["cmd_id"] = cmd_id
|
||||
if file_id is not UNSET:
|
||||
field_dict['file_id'] = file_id
|
||||
field_dict["file_id"] = file_id
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[L], src_dict: Dict[str, Any]) -> L:
|
||||
d = src_dict.copy()
|
||||
_cmd = d.pop("cmd", UNSET)
|
||||
cmd: Union[Unset, DrawingCmd]
|
||||
if isinstance(_cmd, Unset):
|
||||
cmd = UNSET
|
||||
else:
|
||||
cmd = DrawingCmd(_cmd)
|
||||
cmd = _cmd # type: ignore[arg-type]
|
||||
|
||||
_cmd_id = d.pop("cmd_id", UNSET)
|
||||
cmd_id: Union[Unset, DrawingCmdId]
|
||||
|
@ -1,16 +1,16 @@
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
|
||||
from ..models.drawing_cmd_req import DrawingCmdReq
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="DrawingCmdReqBatch")
|
||||
E = TypeVar("E", bound="DrawingCmdReqBatch")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class DrawingCmdReqBatch:
|
||||
""" """
|
||||
"""A batch set of graphics commands submitted to the KittyCAD engine via the Drawing API.""" # noqa: E501
|
||||
|
||||
cmds: Union[Unset, Any] = UNSET
|
||||
file_id: Union[Unset, str] = UNSET
|
||||
|
||||
@ -24,14 +24,14 @@ class DrawingCmdReqBatch:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if cmds is not UNSET:
|
||||
field_dict['cmds'] = cmds
|
||||
field_dict["cmds"] = cmds
|
||||
if file_id is not UNSET:
|
||||
field_dict['file_id'] = file_id
|
||||
field_dict["file_id"] = file_id
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[E], src_dict: Dict[str, Any]) -> E:
|
||||
d = src_dict.copy()
|
||||
cmds = d.pop("cmds", UNSET)
|
||||
file_id = d.pop("file_id", UNSET)
|
||||
|
@ -1,15 +1,16 @@
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="DrawingError")
|
||||
Y = TypeVar("Y", bound="DrawingError")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class DrawingError:
|
||||
""" """
|
||||
"""Why a command submitted to the Drawing API failed.""" # noqa: E501
|
||||
|
||||
error_code: Union[Unset, str] = UNSET
|
||||
external_message: Union[Unset, str] = UNSET
|
||||
internal_message: Union[Unset, str] = UNSET
|
||||
@ -27,18 +28,18 @@ class DrawingError:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if error_code is not UNSET:
|
||||
field_dict['error_code'] = error_code
|
||||
field_dict["error_code"] = error_code
|
||||
if external_message is not UNSET:
|
||||
field_dict['external_message'] = external_message
|
||||
field_dict["external_message"] = external_message
|
||||
if internal_message is not UNSET:
|
||||
field_dict['internal_message'] = internal_message
|
||||
field_dict["internal_message"] = internal_message
|
||||
if status_code is not UNSET:
|
||||
field_dict['status_code'] = status_code
|
||||
field_dict["status_code"] = status_code
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[Y], src_dict: Dict[str, Any]) -> Y:
|
||||
d = src_dict.copy()
|
||||
error_code = d.pop("error_code", UNSET)
|
||||
|
||||
|
70
kittycad/models/drawing_outcome.py
Normal file
70
kittycad/models/drawing_outcome.py
Normal file
@ -0,0 +1,70 @@
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
|
||||
from ..models.drawing_cmd_id import DrawingCmdId
|
||||
from ..types import UNSET, Unset
|
||||
from .drawing_error import DrawingError
|
||||
|
||||
Success = Any
|
||||
|
||||
|
||||
Error = DrawingError
|
||||
|
||||
|
||||
H = TypeVar("H", bound="Cancelled")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class Cancelled:
|
||||
what_failed: Union[Unset, DrawingCmdId] = UNSET
|
||||
|
||||
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
if not isinstance(self.what_failed, Unset):
|
||||
what_failed = self.what_failed
|
||||
|
||||
field_dict: Dict[str, Any] = {}
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if what_failed is not UNSET:
|
||||
field_dict["what_failed"] = what_failed
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[H], src_dict: Dict[str, Any]) -> H:
|
||||
d = src_dict.copy()
|
||||
_what_failed = d.pop("what_failed", UNSET)
|
||||
what_failed: Union[Unset, DrawingCmdId]
|
||||
if isinstance(_what_failed, Unset):
|
||||
what_failed = UNSET
|
||||
else:
|
||||
what_failed = DrawingCmdId(_what_failed)
|
||||
|
||||
cancelled = cls(
|
||||
what_failed=what_failed,
|
||||
)
|
||||
|
||||
cancelled.additional_properties = d
|
||||
return cancelled
|
||||
|
||||
@property
|
||||
def additional_keys(self) -> List[str]:
|
||||
return list(self.additional_properties.keys())
|
||||
|
||||
def __getitem__(self, key: str) -> Any:
|
||||
return self.additional_properties[key]
|
||||
|
||||
def __setitem__(self, key: str, value: Any) -> None:
|
||||
self.additional_properties[key] = value
|
||||
|
||||
def __delitem__(self, key: str) -> None:
|
||||
del self.additional_properties[key]
|
||||
|
||||
def __contains__(self, key: str) -> bool:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
DrawingOutcome = Union[Success, Error, Cancelled]
|
@ -1,8 +1,7 @@
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
|
||||
from ..models.drawing_outcome import DrawingOutcome
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="DrawingOutcomes")
|
||||
@ -10,7 +9,8 @@ T = TypeVar("T", bound="DrawingOutcomes")
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class DrawingOutcomes:
|
||||
""" """
|
||||
"""The result from a batch of drawing commands.""" # noqa: E501
|
||||
|
||||
outcomes: Union[Unset, Any] = UNSET
|
||||
|
||||
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
||||
@ -22,7 +22,7 @@ class DrawingOutcomes:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if outcomes is not UNSET:
|
||||
field_dict['outcomes'] = outcomes
|
||||
field_dict["outcomes"] = outcomes
|
||||
|
||||
return field_dict
|
||||
|
||||
|
@ -1,15 +1,16 @@
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="EmailAuthenticationForm")
|
||||
M = TypeVar("M", bound="EmailAuthenticationForm")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class EmailAuthenticationForm:
|
||||
""" """
|
||||
"""The body of the form for email authentication.""" # noqa: E501
|
||||
|
||||
callback_url: Union[Unset, str] = UNSET
|
||||
email: Union[Unset, str] = UNSET
|
||||
|
||||
@ -23,14 +24,14 @@ class EmailAuthenticationForm:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if callback_url is not UNSET:
|
||||
field_dict['callback_url'] = callback_url
|
||||
field_dict["callback_url"] = callback_url
|
||||
if email is not UNSET:
|
||||
field_dict['email'] = email
|
||||
field_dict["email"] = email
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[M], src_dict: Dict[str, Any]) -> M:
|
||||
d = src_dict.copy()
|
||||
callback_url = d.pop("callback_url", UNSET)
|
||||
|
||||
|
@ -1,19 +1,22 @@
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
|
||||
from ..models.cache_metadata import CacheMetadata
|
||||
from ..models.connection import Connection
|
||||
from ..models.environment import Environment
|
||||
from ..models.file_system_metadata import FileSystemMetadata
|
||||
from ..models.connection import Connection
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="EngineMetadata")
|
||||
B = TypeVar("B", bound="EngineMetadata")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class EngineMetadata:
|
||||
""" """
|
||||
"""Metadata about our currently running server.
|
||||
|
||||
This is mostly used for internal purposes and debugging.""" # noqa: E501
|
||||
|
||||
async_jobs_running: Union[Unset, bool] = False
|
||||
cache: Union[Unset, CacheMetadata] = UNSET
|
||||
environment: Union[Unset, Environment] = UNSET
|
||||
@ -25,40 +28,36 @@ class EngineMetadata:
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
async_jobs_running = self.async_jobs_running
|
||||
cache: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.cache, Unset):
|
||||
cache = self.cache.value
|
||||
environment: Union[Unset, str] = UNSET
|
||||
cache = self.cache
|
||||
if not isinstance(self.environment, Unset):
|
||||
environment = self.environment.value
|
||||
fs: Union[Unset, str] = UNSET
|
||||
environment = self.environment
|
||||
if not isinstance(self.fs, Unset):
|
||||
fs = self.fs.value
|
||||
fs = self.fs
|
||||
git_hash = self.git_hash
|
||||
pubsub: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.pubsub, Unset):
|
||||
pubsub = self.pubsub.value
|
||||
pubsub = self.pubsub
|
||||
|
||||
field_dict: Dict[str, Any] = {}
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if async_jobs_running is not UNSET:
|
||||
field_dict['async_jobs_running'] = async_jobs_running
|
||||
field_dict["async_jobs_running"] = async_jobs_running
|
||||
if cache is not UNSET:
|
||||
field_dict['cache'] = cache
|
||||
field_dict["cache"] = cache
|
||||
if environment is not UNSET:
|
||||
field_dict['environment'] = environment
|
||||
field_dict["environment"] = environment
|
||||
if fs is not UNSET:
|
||||
field_dict['fs'] = fs
|
||||
field_dict["fs"] = fs
|
||||
if git_hash is not UNSET:
|
||||
field_dict['git_hash'] = git_hash
|
||||
field_dict["git_hash"] = git_hash
|
||||
if pubsub is not UNSET:
|
||||
field_dict['pubsub'] = pubsub
|
||||
field_dict["pubsub"] = pubsub
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[B], src_dict: Dict[str, Any]) -> B:
|
||||
d = src_dict.copy()
|
||||
async_jobs_running = d.pop("async_jobs_running", UNSET)
|
||||
|
||||
|
@ -2,9 +2,11 @@ from enum import Enum
|
||||
|
||||
|
||||
class Environment(str, Enum):
|
||||
DEVELOPMENT = 'DEVELOPMENT'
|
||||
PREVIEW = 'PREVIEW'
|
||||
PRODUCTION = 'PRODUCTION'
|
||||
"""The environment the server is running in.""" # noqa: E501
|
||||
|
||||
DEVELOPMENT = "DEVELOPMENT"
|
||||
PREVIEW = "PREVIEW"
|
||||
PRODUCTION = "PRODUCTION"
|
||||
|
||||
def __str__(self) -> str:
|
||||
return str(self.value)
|
||||
|
@ -1,15 +1,16 @@
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="Error")
|
||||
S = TypeVar("S", bound="Error")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class Error:
|
||||
""" """
|
||||
"""Error information from a response.""" # noqa: E501
|
||||
|
||||
error_code: Union[Unset, str] = UNSET
|
||||
message: Union[Unset, str] = UNSET
|
||||
request_id: Union[Unset, str] = UNSET
|
||||
@ -25,16 +26,16 @@ class Error:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if error_code is not UNSET:
|
||||
field_dict['error_code'] = error_code
|
||||
field_dict["error_code"] = error_code
|
||||
if message is not UNSET:
|
||||
field_dict['message'] = message
|
||||
field_dict["message"] = message
|
||||
if request_id is not UNSET:
|
||||
field_dict['request_id'] = request_id
|
||||
field_dict["request_id"] = request_id
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[S], src_dict: Dict[str, Any]) -> S:
|
||||
d = src_dict.copy()
|
||||
error_code = d.pop("error_code", UNSET)
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
|
||||
@ -6,12 +6,15 @@ from ..models.docker_system_info import DockerSystemInfo
|
||||
from ..models.environment import Environment
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="ExecutorMetadata")
|
||||
A = TypeVar("A", bound="ExecutorMetadata")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class ExecutorMetadata:
|
||||
""" """
|
||||
"""Metadata about our currently running server.
|
||||
|
||||
This is mostly used for internal purposes and debugging.""" # noqa: E501
|
||||
|
||||
docker_info: Union[Unset, DockerSystemInfo] = UNSET
|
||||
environment: Union[Unset, Environment] = UNSET
|
||||
git_hash: Union[Unset, str] = UNSET
|
||||
@ -19,28 +22,26 @@ class ExecutorMetadata:
|
||||
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
docker_info: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.docker_info, Unset):
|
||||
docker_info = self.docker_info.value
|
||||
environment: Union[Unset, str] = UNSET
|
||||
docker_info = self.docker_info
|
||||
if not isinstance(self.environment, Unset):
|
||||
environment = self.environment.value
|
||||
environment = self.environment
|
||||
git_hash = self.git_hash
|
||||
|
||||
field_dict: Dict[str, Any] = {}
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if docker_info is not UNSET:
|
||||
field_dict['docker_info'] = docker_info
|
||||
field_dict["docker_info"] = docker_info
|
||||
if environment is not UNSET:
|
||||
field_dict['environment'] = environment
|
||||
field_dict["environment"] = environment
|
||||
if git_hash is not UNSET:
|
||||
field_dict['git_hash'] = git_hash
|
||||
field_dict["git_hash"] = git_hash
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[A], src_dict: Dict[str, Any]) -> A:
|
||||
d = src_dict.copy()
|
||||
_docker_info = d.pop("docker_info", UNSET)
|
||||
docker_info: Union[Unset, DockerSystemInfo]
|
||||
|
@ -1,17 +1,20 @@
|
||||
import datetime
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
from dateutil.parser import isoparse
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="ExtendedUser")
|
||||
H = TypeVar("H", bound="ExtendedUser")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class ExtendedUser:
|
||||
""" """
|
||||
"""Extended user information.
|
||||
|
||||
This is mostly used for internal purposes. It returns a mapping of the user's information, including that of our third party services we use for users: MailChimp, Stripe, and Front""" # noqa: E501
|
||||
|
||||
company: Union[Unset, str] = UNSET
|
||||
created_at: Union[Unset, datetime.datetime] = UNSET
|
||||
discord: Union[Unset, str] = UNSET
|
||||
@ -59,42 +62,42 @@ class ExtendedUser:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if company is not UNSET:
|
||||
field_dict['company'] = company
|
||||
field_dict["company"] = company
|
||||
if created_at is not UNSET:
|
||||
field_dict['created_at'] = created_at
|
||||
field_dict["created_at"] = created_at
|
||||
if discord is not UNSET:
|
||||
field_dict['discord'] = discord
|
||||
field_dict["discord"] = discord
|
||||
if email is not UNSET:
|
||||
field_dict['email'] = email
|
||||
field_dict["email"] = email
|
||||
if email_verified is not UNSET:
|
||||
field_dict['email_verified'] = email_verified
|
||||
field_dict["email_verified"] = email_verified
|
||||
if first_name is not UNSET:
|
||||
field_dict['first_name'] = first_name
|
||||
field_dict["first_name"] = first_name
|
||||
if front_id is not UNSET:
|
||||
field_dict['front_id'] = front_id
|
||||
field_dict["front_id"] = front_id
|
||||
if github is not UNSET:
|
||||
field_dict['github'] = github
|
||||
field_dict["github"] = github
|
||||
if id is not UNSET:
|
||||
field_dict['id'] = id
|
||||
field_dict["id"] = id
|
||||
if image is not UNSET:
|
||||
field_dict['image'] = image
|
||||
field_dict["image"] = image
|
||||
if last_name is not UNSET:
|
||||
field_dict['last_name'] = last_name
|
||||
field_dict["last_name"] = last_name
|
||||
if mailchimp_id is not UNSET:
|
||||
field_dict['mailchimp_id'] = mailchimp_id
|
||||
field_dict["mailchimp_id"] = mailchimp_id
|
||||
if name is not UNSET:
|
||||
field_dict['name'] = name
|
||||
field_dict["name"] = name
|
||||
if phone is not UNSET:
|
||||
field_dict['phone'] = phone
|
||||
field_dict["phone"] = phone
|
||||
if stripe_id is not UNSET:
|
||||
field_dict['stripe_id'] = stripe_id
|
||||
field_dict["stripe_id"] = stripe_id
|
||||
if updated_at is not UNSET:
|
||||
field_dict['updated_at'] = updated_at
|
||||
field_dict["updated_at"] = updated_at
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[H], src_dict: Dict[str, Any]) -> H:
|
||||
d = src_dict.copy()
|
||||
company = d.pop("company", UNSET)
|
||||
|
||||
|
@ -4,13 +4,15 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="ExtendedUserResultsPage")
|
||||
E = TypeVar("E", bound="ExtendedUserResultsPage")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class ExtendedUserResultsPage:
|
||||
""" """
|
||||
"""A single page of results""" # noqa: E501
|
||||
|
||||
from ..models.extended_user import ExtendedUser
|
||||
|
||||
items: Union[Unset, List[ExtendedUser]] = UNSET
|
||||
next_page: Union[Unset, str] = UNSET
|
||||
|
||||
@ -18,6 +20,7 @@ class ExtendedUserResultsPage:
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
from ..models.extended_user import ExtendedUser
|
||||
|
||||
items: Union[Unset, List[ExtendedUser]] = UNSET
|
||||
if not isinstance(self.items, Unset):
|
||||
items = self.items
|
||||
@ -27,16 +30,17 @@ class ExtendedUserResultsPage:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if items is not UNSET:
|
||||
field_dict['items'] = items
|
||||
field_dict["items"] = items
|
||||
if next_page is not UNSET:
|
||||
field_dict['next_page'] = next_page
|
||||
field_dict["next_page"] = next_page
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[E], src_dict: Dict[str, Any]) -> E:
|
||||
d = src_dict.copy()
|
||||
from ..models.extended_user import ExtendedUser
|
||||
|
||||
items = cast(List[ExtendedUser], d.pop("items", UNSET))
|
||||
|
||||
next_page = d.pop("next_page", UNSET)
|
||||
|
@ -4,17 +4,17 @@ from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
import attr
|
||||
from dateutil.parser import isoparse
|
||||
|
||||
from ..models.uuid import Uuid
|
||||
from ..models.file_import_format import FileImportFormat
|
||||
from ..models.api_call_status import ApiCallStatus
|
||||
from ..models.file_import_format import FileImportFormat
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="FileCenterOfMass")
|
||||
G = TypeVar("G", bound="FileCenterOfMass")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class FileCenterOfMass:
|
||||
""" """
|
||||
"""A file center of mass result.""" # noqa: E501
|
||||
|
||||
center_of_mass: Union[Unset, List[float]] = UNSET
|
||||
completed_at: Union[Unset, datetime.datetime] = UNSET
|
||||
created_at: Union[Unset, datetime.datetime] = UNSET
|
||||
@ -40,15 +40,13 @@ class FileCenterOfMass:
|
||||
created_at = self.created_at.isoformat()
|
||||
error = self.error
|
||||
id = self.id
|
||||
src_format: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.src_format, Unset):
|
||||
src_format = self.src_format.value
|
||||
src_format = self.src_format
|
||||
started_at: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.started_at, Unset):
|
||||
started_at = self.started_at.isoformat()
|
||||
status: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.status, Unset):
|
||||
status = self.status.value
|
||||
status = self.status
|
||||
updated_at: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.updated_at, Unset):
|
||||
updated_at = self.updated_at.isoformat()
|
||||
@ -58,30 +56,30 @@ class FileCenterOfMass:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if center_of_mass is not UNSET:
|
||||
field_dict['center_of_mass'] = center_of_mass
|
||||
field_dict["center_of_mass"] = center_of_mass
|
||||
if completed_at is not UNSET:
|
||||
field_dict['completed_at'] = completed_at
|
||||
field_dict["completed_at"] = completed_at
|
||||
if created_at is not UNSET:
|
||||
field_dict['created_at'] = created_at
|
||||
field_dict["created_at"] = created_at
|
||||
if error is not UNSET:
|
||||
field_dict['error'] = error
|
||||
field_dict["error"] = error
|
||||
if id is not UNSET:
|
||||
field_dict['id'] = id
|
||||
field_dict["id"] = id
|
||||
if src_format is not UNSET:
|
||||
field_dict['src_format'] = src_format
|
||||
field_dict["src_format"] = src_format
|
||||
if started_at is not UNSET:
|
||||
field_dict['started_at'] = started_at
|
||||
field_dict["started_at"] = started_at
|
||||
if status is not UNSET:
|
||||
field_dict['status'] = status
|
||||
field_dict["status"] = status
|
||||
if updated_at is not UNSET:
|
||||
field_dict['updated_at'] = updated_at
|
||||
field_dict["updated_at"] = updated_at
|
||||
if user_id is not UNSET:
|
||||
field_dict['user_id'] = user_id
|
||||
field_dict["user_id"] = user_id
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[G], src_dict: Dict[str, Any]) -> G:
|
||||
d = src_dict.copy()
|
||||
center_of_mass = cast(List[float], d.pop("center_of_mass", UNSET))
|
||||
|
||||
|
@ -1,21 +1,21 @@
|
||||
import datetime
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
from dateutil.parser import isoparse
|
||||
|
||||
from ..models.uuid import Uuid
|
||||
from ..models.api_call_status import ApiCallStatus
|
||||
from ..models.file_export_format import FileExportFormat
|
||||
from ..models.file_import_format import FileImportFormat
|
||||
from ..models.api_call_status import ApiCallStatus
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="FileConversion")
|
||||
J = TypeVar("J", bound="FileConversion")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class FileConversion:
|
||||
""" """
|
||||
"""A file conversion.""" # noqa: E501
|
||||
|
||||
completed_at: Union[Unset, datetime.datetime] = UNSET
|
||||
created_at: Union[Unset, datetime.datetime] = UNSET
|
||||
error: Union[Unset, str] = UNSET
|
||||
@ -40,18 +40,15 @@ class FileConversion:
|
||||
error = self.error
|
||||
id = self.id
|
||||
output = self.output
|
||||
output_format: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.output_format, Unset):
|
||||
output_format = self.output_format.value
|
||||
src_format: Union[Unset, str] = UNSET
|
||||
output_format = self.output_format
|
||||
if not isinstance(self.src_format, Unset):
|
||||
src_format = self.src_format.value
|
||||
src_format = self.src_format
|
||||
started_at: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.started_at, Unset):
|
||||
started_at = self.started_at.isoformat()
|
||||
status: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.status, Unset):
|
||||
status = self.status.value
|
||||
status = self.status
|
||||
updated_at: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.updated_at, Unset):
|
||||
updated_at = self.updated_at.isoformat()
|
||||
@ -61,32 +58,32 @@ class FileConversion:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if completed_at is not UNSET:
|
||||
field_dict['completed_at'] = completed_at
|
||||
field_dict["completed_at"] = completed_at
|
||||
if created_at is not UNSET:
|
||||
field_dict['created_at'] = created_at
|
||||
field_dict["created_at"] = created_at
|
||||
if error is not UNSET:
|
||||
field_dict['error'] = error
|
||||
field_dict["error"] = error
|
||||
if id is not UNSET:
|
||||
field_dict['id'] = id
|
||||
field_dict["id"] = id
|
||||
if output is not UNSET:
|
||||
field_dict['output'] = output
|
||||
field_dict["output"] = output
|
||||
if output_format is not UNSET:
|
||||
field_dict['output_format'] = output_format
|
||||
field_dict["output_format"] = output_format
|
||||
if src_format is not UNSET:
|
||||
field_dict['src_format'] = src_format
|
||||
field_dict["src_format"] = src_format
|
||||
if started_at is not UNSET:
|
||||
field_dict['started_at'] = started_at
|
||||
field_dict["started_at"] = started_at
|
||||
if status is not UNSET:
|
||||
field_dict['status'] = status
|
||||
field_dict["status"] = status
|
||||
if updated_at is not UNSET:
|
||||
field_dict['updated_at'] = updated_at
|
||||
field_dict["updated_at"] = updated_at
|
||||
if user_id is not UNSET:
|
||||
field_dict['user_id'] = user_id
|
||||
field_dict["user_id"] = user_id
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[J], src_dict: Dict[str, Any]) -> J:
|
||||
d = src_dict.copy()
|
||||
_completed_at = d.pop("completed_at", UNSET)
|
||||
completed_at: Union[Unset, datetime.datetime]
|
||||
|
@ -1,20 +1,20 @@
|
||||
import datetime
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
from dateutil.parser import isoparse
|
||||
|
||||
from ..models.uuid import Uuid
|
||||
from ..models.file_import_format import FileImportFormat
|
||||
from ..models.api_call_status import ApiCallStatus
|
||||
from ..models.file_import_format import FileImportFormat
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="FileDensity")
|
||||
R = TypeVar("R", bound="FileDensity")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class FileDensity:
|
||||
""" """
|
||||
"""A file density result.""" # noqa: E501
|
||||
|
||||
completed_at: Union[Unset, datetime.datetime] = UNSET
|
||||
created_at: Union[Unset, datetime.datetime] = UNSET
|
||||
density: Union[Unset, float] = UNSET
|
||||
@ -40,15 +40,13 @@ class FileDensity:
|
||||
error = self.error
|
||||
id = self.id
|
||||
material_mass = self.material_mass
|
||||
src_format: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.src_format, Unset):
|
||||
src_format = self.src_format.value
|
||||
src_format = self.src_format
|
||||
started_at: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.started_at, Unset):
|
||||
started_at = self.started_at.isoformat()
|
||||
status: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.status, Unset):
|
||||
status = self.status.value
|
||||
status = self.status
|
||||
updated_at: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.updated_at, Unset):
|
||||
updated_at = self.updated_at.isoformat()
|
||||
@ -58,32 +56,32 @@ class FileDensity:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if completed_at is not UNSET:
|
||||
field_dict['completed_at'] = completed_at
|
||||
field_dict["completed_at"] = completed_at
|
||||
if created_at is not UNSET:
|
||||
field_dict['created_at'] = created_at
|
||||
field_dict["created_at"] = created_at
|
||||
if density is not UNSET:
|
||||
field_dict['density'] = density
|
||||
field_dict["density"] = density
|
||||
if error is not UNSET:
|
||||
field_dict['error'] = error
|
||||
field_dict["error"] = error
|
||||
if id is not UNSET:
|
||||
field_dict['id'] = id
|
||||
field_dict["id"] = id
|
||||
if material_mass is not UNSET:
|
||||
field_dict['material_mass'] = material_mass
|
||||
field_dict["material_mass"] = material_mass
|
||||
if src_format is not UNSET:
|
||||
field_dict['src_format'] = src_format
|
||||
field_dict["src_format"] = src_format
|
||||
if started_at is not UNSET:
|
||||
field_dict['started_at'] = started_at
|
||||
field_dict["started_at"] = started_at
|
||||
if status is not UNSET:
|
||||
field_dict['status'] = status
|
||||
field_dict["status"] = status
|
||||
if updated_at is not UNSET:
|
||||
field_dict['updated_at'] = updated_at
|
||||
field_dict["updated_at"] = updated_at
|
||||
if user_id is not UNSET:
|
||||
field_dict['user_id'] = user_id
|
||||
field_dict["user_id"] = user_id
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[R], src_dict: Dict[str, Any]) -> R:
|
||||
d = src_dict.copy()
|
||||
_completed_at = d.pop("completed_at", UNSET)
|
||||
completed_at: Union[Unset, datetime.datetime]
|
||||
|
@ -2,14 +2,24 @@ from enum import Enum
|
||||
|
||||
|
||||
class FileExportFormat(str, Enum):
|
||||
DAE = 'dae'
|
||||
DXF = 'dxf'
|
||||
FBX = 'fbx'
|
||||
FBXB = 'fbxb'
|
||||
OBJ = 'obj'
|
||||
PLY = 'ply'
|
||||
STEP = 'step'
|
||||
STL = 'stl'
|
||||
"""The valid types of output file formats.""" # noqa: E501
|
||||
|
||||
"""# The COLLADA/DAE file format. <https://en.wikipedia.org/wiki/COLLADA> """ # noqa: E501
|
||||
DAE = "dae"
|
||||
"""# The DXF file format. <https://en.wikipedia.org/wiki/AutoCAD_DXF> """ # noqa: E501
|
||||
DXF = "dxf"
|
||||
"""# The FBX file format. <https://en.wikipedia.org/wiki/FBX> """ # noqa: E501
|
||||
FBX = "fbx"
|
||||
"""# The FBX file format (in binary). <https://en.wikipedia.org/wiki/FBX> """ # noqa: E501
|
||||
FBXB = "fbxb"
|
||||
"""# The OBJ file format. A zip file containing both the obj file itself and its associated mtl file for full processing. <https://en.wikipedia.org/wiki/Wavefront_.obj_file>> The OBJ file format. <https://en.wikipedia.org/wiki/Wavefront_.obj_file> It may or may not have an an attached material (mtl // mtllib) within the file, but we interact with it as if it does not. """ # noqa: E501
|
||||
OBJ = "obj"
|
||||
"""# The PLY file format. <https://en.wikipedia.org/wiki/PLY_(file_format)> """ # noqa: E501
|
||||
PLY = "ply"
|
||||
"""# The STEP file format. <https://en.wikipedia.org/wiki/ISO_10303-21> """ # noqa: E501
|
||||
STEP = "step"
|
||||
"""# The STL file format. <https://en.wikipedia.org/wiki/STL_(file_format)> """ # noqa: E501
|
||||
STL = "stl"
|
||||
|
||||
def __str__(self) -> str:
|
||||
return str(self.value)
|
||||
|
@ -2,14 +2,24 @@ from enum import Enum
|
||||
|
||||
|
||||
class FileImportFormat(str, Enum):
|
||||
DAE = 'dae'
|
||||
DXF = 'dxf'
|
||||
FBX = 'fbx'
|
||||
OBJ_ZIP = 'obj_zip'
|
||||
OBJ = 'obj'
|
||||
PLY = 'ply'
|
||||
STEP = 'step'
|
||||
STL = 'stl'
|
||||
"""The valid types of source file formats.""" # noqa: E501
|
||||
|
||||
"""# The COLLADA/DAE file format. <https://en.wikipedia.org/wiki/COLLADA> """ # noqa: E501
|
||||
DAE = "dae"
|
||||
"""# The DXF file format. <https://en.wikipedia.org/wiki/AutoCAD_DXF> """ # noqa: E501
|
||||
DXF = "dxf"
|
||||
"""# The FBX file format. <https://en.wikipedia.org/wiki/FBX> """ # noqa: E501
|
||||
FBX = "fbx"
|
||||
"""# The OBJ file format. A zip file containing both the obj file itself and its associated mtl file for full processing. <https://en.wikipedia.org/wiki/Wavefront_.obj_file>> """ # noqa: E501
|
||||
OBJ_ZIP = "obj_zip"
|
||||
"""# The OBJ file format. <https://en.wikipedia.org/wiki/Wavefront_.obj_file> It may or may not have an an attached material (mtl // mtllib) within the file, but we interact with it as if it does not. """ # noqa: E501
|
||||
OBJ = "obj"
|
||||
"""# The PLY file format. <https://en.wikipedia.org/wiki/PLY_(file_format)> """ # noqa: E501
|
||||
PLY = "ply"
|
||||
"""# The STEP file format. <https://en.wikipedia.org/wiki/ISO_10303-21> """ # noqa: E501
|
||||
STEP = "step"
|
||||
"""# The STL file format. <https://en.wikipedia.org/wiki/STL_(file_format)> """ # noqa: E501
|
||||
STL = "stl"
|
||||
|
||||
def __str__(self) -> str:
|
||||
return str(self.value)
|
||||
|
@ -1,20 +1,20 @@
|
||||
import datetime
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
from dateutil.parser import isoparse
|
||||
|
||||
from ..models.uuid import Uuid
|
||||
from ..models.file_import_format import FileImportFormat
|
||||
from ..models.api_call_status import ApiCallStatus
|
||||
from ..models.file_import_format import FileImportFormat
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="FileMass")
|
||||
L = TypeVar("L", bound="FileMass")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class FileMass:
|
||||
""" """
|
||||
"""A file mass result.""" # noqa: E501
|
||||
|
||||
completed_at: Union[Unset, datetime.datetime] = UNSET
|
||||
created_at: Union[Unset, datetime.datetime] = UNSET
|
||||
error: Union[Unset, str] = UNSET
|
||||
@ -40,15 +40,13 @@ class FileMass:
|
||||
id = self.id
|
||||
mass = self.mass
|
||||
material_density = self.material_density
|
||||
src_format: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.src_format, Unset):
|
||||
src_format = self.src_format.value
|
||||
src_format = self.src_format
|
||||
started_at: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.started_at, Unset):
|
||||
started_at = self.started_at.isoformat()
|
||||
status: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.status, Unset):
|
||||
status = self.status.value
|
||||
status = self.status
|
||||
updated_at: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.updated_at, Unset):
|
||||
updated_at = self.updated_at.isoformat()
|
||||
@ -58,32 +56,32 @@ class FileMass:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if completed_at is not UNSET:
|
||||
field_dict['completed_at'] = completed_at
|
||||
field_dict["completed_at"] = completed_at
|
||||
if created_at is not UNSET:
|
||||
field_dict['created_at'] = created_at
|
||||
field_dict["created_at"] = created_at
|
||||
if error is not UNSET:
|
||||
field_dict['error'] = error
|
||||
field_dict["error"] = error
|
||||
if id is not UNSET:
|
||||
field_dict['id'] = id
|
||||
field_dict["id"] = id
|
||||
if mass is not UNSET:
|
||||
field_dict['mass'] = mass
|
||||
field_dict["mass"] = mass
|
||||
if material_density is not UNSET:
|
||||
field_dict['material_density'] = material_density
|
||||
field_dict["material_density"] = material_density
|
||||
if src_format is not UNSET:
|
||||
field_dict['src_format'] = src_format
|
||||
field_dict["src_format"] = src_format
|
||||
if started_at is not UNSET:
|
||||
field_dict['started_at'] = started_at
|
||||
field_dict["started_at"] = started_at
|
||||
if status is not UNSET:
|
||||
field_dict['status'] = status
|
||||
field_dict["status"] = status
|
||||
if updated_at is not UNSET:
|
||||
field_dict['updated_at'] = updated_at
|
||||
field_dict["updated_at"] = updated_at
|
||||
if user_id is not UNSET:
|
||||
field_dict['user_id'] = user_id
|
||||
field_dict["user_id"] = user_id
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[L], src_dict: Dict[str, Any]) -> L:
|
||||
d = src_dict.copy()
|
||||
_completed_at = d.pop("completed_at", UNSET)
|
||||
completed_at: Union[Unset, datetime.datetime]
|
||||
|
@ -1,20 +1,20 @@
|
||||
import datetime
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
from dateutil.parser import isoparse
|
||||
|
||||
from ..models.uuid import Uuid
|
||||
from ..models.file_import_format import FileImportFormat
|
||||
from ..models.api_call_status import ApiCallStatus
|
||||
from ..models.file_import_format import FileImportFormat
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="FileSurfaceArea")
|
||||
Y = TypeVar("Y", bound="FileSurfaceArea")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class FileSurfaceArea:
|
||||
""" """
|
||||
"""A file surface area result.""" # noqa: E501
|
||||
|
||||
completed_at: Union[Unset, datetime.datetime] = UNSET
|
||||
created_at: Union[Unset, datetime.datetime] = UNSET
|
||||
error: Union[Unset, str] = UNSET
|
||||
@ -37,15 +37,13 @@ class FileSurfaceArea:
|
||||
created_at = self.created_at.isoformat()
|
||||
error = self.error
|
||||
id = self.id
|
||||
src_format: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.src_format, Unset):
|
||||
src_format = self.src_format.value
|
||||
src_format = self.src_format
|
||||
started_at: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.started_at, Unset):
|
||||
started_at = self.started_at.isoformat()
|
||||
status: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.status, Unset):
|
||||
status = self.status.value
|
||||
status = self.status
|
||||
surface_area = self.surface_area
|
||||
updated_at: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.updated_at, Unset):
|
||||
@ -56,30 +54,30 @@ class FileSurfaceArea:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if completed_at is not UNSET:
|
||||
field_dict['completed_at'] = completed_at
|
||||
field_dict["completed_at"] = completed_at
|
||||
if created_at is not UNSET:
|
||||
field_dict['created_at'] = created_at
|
||||
field_dict["created_at"] = created_at
|
||||
if error is not UNSET:
|
||||
field_dict['error'] = error
|
||||
field_dict["error"] = error
|
||||
if id is not UNSET:
|
||||
field_dict['id'] = id
|
||||
field_dict["id"] = id
|
||||
if src_format is not UNSET:
|
||||
field_dict['src_format'] = src_format
|
||||
field_dict["src_format"] = src_format
|
||||
if started_at is not UNSET:
|
||||
field_dict['started_at'] = started_at
|
||||
field_dict["started_at"] = started_at
|
||||
if status is not UNSET:
|
||||
field_dict['status'] = status
|
||||
field_dict["status"] = status
|
||||
if surface_area is not UNSET:
|
||||
field_dict['surface_area'] = surface_area
|
||||
field_dict["surface_area"] = surface_area
|
||||
if updated_at is not UNSET:
|
||||
field_dict['updated_at'] = updated_at
|
||||
field_dict["updated_at"] = updated_at
|
||||
if user_id is not UNSET:
|
||||
field_dict['user_id'] = user_id
|
||||
field_dict["user_id"] = user_id
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[Y], src_dict: Dict[str, Any]) -> Y:
|
||||
d = src_dict.copy()
|
||||
_completed_at = d.pop("completed_at", UNSET)
|
||||
completed_at: Union[Unset, datetime.datetime]
|
||||
|
@ -1,15 +1,18 @@
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="FileSystemMetadata")
|
||||
H = TypeVar("H", bound="FileSystemMetadata")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class FileSystemMetadata:
|
||||
""" """
|
||||
"""Metadata about our file system.
|
||||
|
||||
This is mostly used for internal purposes and debugging.""" # noqa: E501
|
||||
|
||||
ok: Union[Unset, bool] = False
|
||||
|
||||
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
||||
@ -21,12 +24,12 @@ class FileSystemMetadata:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if ok is not UNSET:
|
||||
field_dict['ok'] = ok
|
||||
field_dict["ok"] = ok
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[H], src_dict: Dict[str, Any]) -> H:
|
||||
d = src_dict.copy()
|
||||
ok = d.pop("ok", UNSET)
|
||||
|
||||
|
@ -1,20 +1,20 @@
|
||||
import datetime
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
from dateutil.parser import isoparse
|
||||
|
||||
from ..models.uuid import Uuid
|
||||
from ..models.file_import_format import FileImportFormat
|
||||
from ..models.api_call_status import ApiCallStatus
|
||||
from ..models.file_import_format import FileImportFormat
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="FileVolume")
|
||||
K = TypeVar("K", bound="FileVolume")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class FileVolume:
|
||||
""" """
|
||||
"""A file volume result.""" # noqa: E501
|
||||
|
||||
completed_at: Union[Unset, datetime.datetime] = UNSET
|
||||
created_at: Union[Unset, datetime.datetime] = UNSET
|
||||
error: Union[Unset, str] = UNSET
|
||||
@ -37,15 +37,13 @@ class FileVolume:
|
||||
created_at = self.created_at.isoformat()
|
||||
error = self.error
|
||||
id = self.id
|
||||
src_format: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.src_format, Unset):
|
||||
src_format = self.src_format.value
|
||||
src_format = self.src_format
|
||||
started_at: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.started_at, Unset):
|
||||
started_at = self.started_at.isoformat()
|
||||
status: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.status, Unset):
|
||||
status = self.status.value
|
||||
status = self.status
|
||||
updated_at: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.updated_at, Unset):
|
||||
updated_at = self.updated_at.isoformat()
|
||||
@ -56,30 +54,30 @@ class FileVolume:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if completed_at is not UNSET:
|
||||
field_dict['completed_at'] = completed_at
|
||||
field_dict["completed_at"] = completed_at
|
||||
if created_at is not UNSET:
|
||||
field_dict['created_at'] = created_at
|
||||
field_dict["created_at"] = created_at
|
||||
if error is not UNSET:
|
||||
field_dict['error'] = error
|
||||
field_dict["error"] = error
|
||||
if id is not UNSET:
|
||||
field_dict['id'] = id
|
||||
field_dict["id"] = id
|
||||
if src_format is not UNSET:
|
||||
field_dict['src_format'] = src_format
|
||||
field_dict["src_format"] = src_format
|
||||
if started_at is not UNSET:
|
||||
field_dict['started_at'] = started_at
|
||||
field_dict["started_at"] = started_at
|
||||
if status is not UNSET:
|
||||
field_dict['status'] = status
|
||||
field_dict["status"] = status
|
||||
if updated_at is not UNSET:
|
||||
field_dict['updated_at'] = updated_at
|
||||
field_dict["updated_at"] = updated_at
|
||||
if user_id is not UNSET:
|
||||
field_dict['user_id'] = user_id
|
||||
field_dict["user_id"] = user_id
|
||||
if volume is not UNSET:
|
||||
field_dict['volume'] = volume
|
||||
field_dict["volume"] = volume
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[K], src_dict: Dict[str, Any]) -> K:
|
||||
d = src_dict.copy()
|
||||
_completed_at = d.pop("completed_at", UNSET)
|
||||
completed_at: Union[Unset, datetime.datetime]
|
||||
|
@ -1,15 +1,16 @@
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="Gateway")
|
||||
V = TypeVar("V", bound="Gateway")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class Gateway:
|
||||
""" """
|
||||
"""Gateway information.""" # noqa: E501
|
||||
|
||||
auth_timeout: Union[Unset, int] = UNSET
|
||||
host: Union[Unset, str] = UNSET
|
||||
name: Union[Unset, str] = UNSET
|
||||
@ -29,20 +30,20 @@ class Gateway:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if auth_timeout is not UNSET:
|
||||
field_dict['auth_timeout'] = auth_timeout
|
||||
field_dict["auth_timeout"] = auth_timeout
|
||||
if host is not UNSET:
|
||||
field_dict['host'] = host
|
||||
field_dict["host"] = host
|
||||
if name is not UNSET:
|
||||
field_dict['name'] = name
|
||||
field_dict["name"] = name
|
||||
if port is not UNSET:
|
||||
field_dict['port'] = port
|
||||
field_dict["port"] = port
|
||||
if tls_timeout is not UNSET:
|
||||
field_dict['tls_timeout'] = tls_timeout
|
||||
field_dict["tls_timeout"] = tls_timeout
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[V], src_dict: Dict[str, Any]) -> V:
|
||||
d = src_dict.copy()
|
||||
auth_timeout = d.pop("auth_timeout", UNSET)
|
||||
|
||||
|
@ -2,8 +2,10 @@ from enum import Enum
|
||||
|
||||
|
||||
class ImageType(str, Enum):
|
||||
PNG = 'png'
|
||||
JPG = 'jpg'
|
||||
"""An enumeration.""" # noqa: E501
|
||||
|
||||
PNG = "png"
|
||||
JPG = "jpg"
|
||||
|
||||
def __str__(self) -> str:
|
||||
return str(self.value)
|
||||
|
@ -4,12 +4,13 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="IndexInfo")
|
||||
R = TypeVar("R", bound="IndexInfo")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class IndexInfo:
|
||||
""" """
|
||||
"""IndexInfo contains information about a registry.""" # noqa: E501
|
||||
|
||||
mirrors: Union[Unset, List[str]] = UNSET
|
||||
name: Union[Unset, str] = UNSET
|
||||
official: Union[Unset, bool] = False
|
||||
@ -29,18 +30,18 @@ class IndexInfo:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if mirrors is not UNSET:
|
||||
field_dict['mirrors'] = mirrors
|
||||
field_dict["mirrors"] = mirrors
|
||||
if name is not UNSET:
|
||||
field_dict['name'] = name
|
||||
field_dict["name"] = name
|
||||
if official is not UNSET:
|
||||
field_dict['official'] = official
|
||||
field_dict["official"] = official
|
||||
if secure is not UNSET:
|
||||
field_dict['secure'] = secure
|
||||
field_dict["secure"] = secure
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[R], src_dict: Dict[str, Any]) -> R:
|
||||
d = src_dict.copy()
|
||||
mirrors = cast(List[str], d.pop("mirrors", UNSET))
|
||||
|
||||
|
@ -8,12 +8,13 @@ from ..models.currency import Currency
|
||||
from ..models.invoice_status import InvoiceStatus
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="Invoice")
|
||||
N = TypeVar("N", bound="Invoice")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class Invoice:
|
||||
""" """
|
||||
"""An invoice.""" # noqa: E501
|
||||
|
||||
amount_due: Union[Unset, float] = UNSET
|
||||
amount_paid: Union[Unset, float] = UNSET
|
||||
amount_remaining: Union[Unset, float] = UNSET
|
||||
@ -27,6 +28,7 @@ class Invoice:
|
||||
description: Union[Unset, str] = UNSET
|
||||
id: Union[Unset, str] = UNSET
|
||||
from ..models.invoice_line_item import InvoiceLineItem
|
||||
|
||||
lines: Union[Unset, List[InvoiceLineItem]] = UNSET
|
||||
metadata: Union[Unset, Any] = UNSET
|
||||
number: Union[Unset, str] = UNSET
|
||||
@ -51,15 +53,15 @@ class Invoice:
|
||||
created_at: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.created_at, Unset):
|
||||
created_at = self.created_at.isoformat()
|
||||
currency: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.currency, Unset):
|
||||
currency = self.currency.value
|
||||
currency = self.currency
|
||||
customer_email = self.customer_email
|
||||
customer_id = self.customer_id
|
||||
default_payment_method = self.default_payment_method
|
||||
description = self.description
|
||||
id = self.id
|
||||
from ..models.invoice_line_item import InvoiceLineItem
|
||||
|
||||
lines: Union[Unset, List[InvoiceLineItem]] = UNSET
|
||||
if not isinstance(self.lines, Unset):
|
||||
lines = self.lines
|
||||
@ -69,9 +71,8 @@ class Invoice:
|
||||
pdf = self.pdf
|
||||
receipt_number = self.receipt_number
|
||||
statement_descriptor = self.statement_descriptor
|
||||
status: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.status, Unset):
|
||||
status = self.status.value
|
||||
status = self.status
|
||||
subtotal = self.subtotal
|
||||
tax = self.tax
|
||||
total = self.total
|
||||
@ -81,58 +82,58 @@ class Invoice:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if amount_due is not UNSET:
|
||||
field_dict['amount_due'] = amount_due
|
||||
field_dict["amount_due"] = amount_due
|
||||
if amount_paid is not UNSET:
|
||||
field_dict['amount_paid'] = amount_paid
|
||||
field_dict["amount_paid"] = amount_paid
|
||||
if amount_remaining is not UNSET:
|
||||
field_dict['amount_remaining'] = amount_remaining
|
||||
field_dict["amount_remaining"] = amount_remaining
|
||||
if attempt_count is not UNSET:
|
||||
field_dict['attempt_count'] = attempt_count
|
||||
field_dict["attempt_count"] = attempt_count
|
||||
if attempted is not UNSET:
|
||||
field_dict['attempted'] = attempted
|
||||
field_dict["attempted"] = attempted
|
||||
if created_at is not UNSET:
|
||||
field_dict['created_at'] = created_at
|
||||
field_dict["created_at"] = created_at
|
||||
if currency is not UNSET:
|
||||
field_dict['currency'] = currency
|
||||
field_dict["currency"] = currency
|
||||
if customer_email is not UNSET:
|
||||
field_dict['customer_email'] = customer_email
|
||||
field_dict["customer_email"] = customer_email
|
||||
if customer_id is not UNSET:
|
||||
field_dict['customer_id'] = customer_id
|
||||
field_dict["customer_id"] = customer_id
|
||||
if default_payment_method is not UNSET:
|
||||
field_dict['default_payment_method'] = default_payment_method
|
||||
field_dict["default_payment_method"] = default_payment_method
|
||||
if description is not UNSET:
|
||||
field_dict['description'] = description
|
||||
field_dict["description"] = description
|
||||
if id is not UNSET:
|
||||
field_dict['id'] = id
|
||||
field_dict["id"] = id
|
||||
if lines is not UNSET:
|
||||
field_dict['lines'] = lines
|
||||
field_dict["lines"] = lines
|
||||
if metadata is not UNSET:
|
||||
field_dict['metadata'] = metadata
|
||||
field_dict["metadata"] = metadata
|
||||
if number is not UNSET:
|
||||
field_dict['number'] = number
|
||||
field_dict["number"] = number
|
||||
if paid is not UNSET:
|
||||
field_dict['paid'] = paid
|
||||
field_dict["paid"] = paid
|
||||
if pdf is not UNSET:
|
||||
field_dict['pdf'] = pdf
|
||||
field_dict["pdf"] = pdf
|
||||
if receipt_number is not UNSET:
|
||||
field_dict['receipt_number'] = receipt_number
|
||||
field_dict["receipt_number"] = receipt_number
|
||||
if statement_descriptor is not UNSET:
|
||||
field_dict['statement_descriptor'] = statement_descriptor
|
||||
field_dict["statement_descriptor"] = statement_descriptor
|
||||
if status is not UNSET:
|
||||
field_dict['status'] = status
|
||||
field_dict["status"] = status
|
||||
if subtotal is not UNSET:
|
||||
field_dict['subtotal'] = subtotal
|
||||
field_dict["subtotal"] = subtotal
|
||||
if tax is not UNSET:
|
||||
field_dict['tax'] = tax
|
||||
field_dict["tax"] = tax
|
||||
if total is not UNSET:
|
||||
field_dict['total'] = total
|
||||
field_dict["total"] = total
|
||||
if url is not UNSET:
|
||||
field_dict['url'] = url
|
||||
field_dict["url"] = url
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[N], src_dict: Dict[str, Any]) -> N:
|
||||
d = src_dict.copy()
|
||||
amount_due = d.pop("amount_due", UNSET)
|
||||
|
||||
@ -169,6 +170,7 @@ class Invoice:
|
||||
id = d.pop("id", UNSET)
|
||||
|
||||
from ..models.invoice_line_item import InvoiceLineItem
|
||||
|
||||
lines = cast(List[InvoiceLineItem], d.pop("lines", UNSET))
|
||||
|
||||
metadata = d.pop("metadata", UNSET)
|
||||
|
@ -1,16 +1,17 @@
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
|
||||
from ..models.currency import Currency
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="InvoiceLineItem")
|
||||
P = TypeVar("P", bound="InvoiceLineItem")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class InvoiceLineItem:
|
||||
""" """
|
||||
"""An invoice line item.""" # noqa: E501
|
||||
|
||||
amount: Union[Unset, float] = UNSET
|
||||
currency: Union[Unset, Currency] = UNSET
|
||||
description: Union[Unset, str] = UNSET
|
||||
@ -22,9 +23,8 @@ class InvoiceLineItem:
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
amount = self.amount
|
||||
currency: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.currency, Unset):
|
||||
currency = self.currency.value
|
||||
currency = self.currency
|
||||
description = self.description
|
||||
id = self.id
|
||||
invoice_item = self.invoice_item
|
||||
@ -34,22 +34,22 @@ class InvoiceLineItem:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if amount is not UNSET:
|
||||
field_dict['amount'] = amount
|
||||
field_dict["amount"] = amount
|
||||
if currency is not UNSET:
|
||||
field_dict['currency'] = currency
|
||||
field_dict["currency"] = currency
|
||||
if description is not UNSET:
|
||||
field_dict['description'] = description
|
||||
field_dict["description"] = description
|
||||
if id is not UNSET:
|
||||
field_dict['id'] = id
|
||||
field_dict["id"] = id
|
||||
if invoice_item is not UNSET:
|
||||
field_dict['invoice_item'] = invoice_item
|
||||
field_dict["invoice_item"] = invoice_item
|
||||
if metadata is not UNSET:
|
||||
field_dict['metadata'] = metadata
|
||||
field_dict["metadata"] = metadata
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[P], src_dict: Dict[str, Any]) -> P:
|
||||
d = src_dict.copy()
|
||||
amount = d.pop("amount", UNSET)
|
||||
|
||||
|
@ -2,12 +2,20 @@ from enum import Enum
|
||||
|
||||
|
||||
class InvoiceStatus(str, Enum):
|
||||
DELETED = 'deleted'
|
||||
DRAFT = 'draft'
|
||||
OPEN = 'open'
|
||||
PAID = 'paid'
|
||||
UNCOLLECTIBLE = 'uncollectible'
|
||||
VOID = 'void'
|
||||
"""An enum representing the possible values of an `Invoice`'s `status` field.""" # noqa: E501
|
||||
|
||||
"""# Deleted. """ # noqa: E501
|
||||
DELETED = "deleted"
|
||||
"""# Draft. """ # noqa: E501
|
||||
DRAFT = "draft"
|
||||
"""# Open. """ # noqa: E501
|
||||
OPEN = "open"
|
||||
"""# Paid. """ # noqa: E501
|
||||
PAID = "paid"
|
||||
"""# Uncollectible. """ # noqa: E501
|
||||
UNCOLLECTIBLE = "uncollectible"
|
||||
"""# Void. """ # noqa: E501
|
||||
VOID = "void"
|
||||
|
||||
def __str__(self) -> str:
|
||||
return str(self.value)
|
||||
|
@ -1,18 +1,19 @@
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
|
||||
from ..models.jetstream_config import JetstreamConfig
|
||||
from ..models.meta_cluster_info import MetaClusterInfo
|
||||
from ..models.jetstream_stats import JetstreamStats
|
||||
from ..models.meta_cluster_info import MetaClusterInfo
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="Jetstream")
|
||||
C = TypeVar("C", bound="Jetstream")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class Jetstream:
|
||||
""" """
|
||||
"""Jetstream information.""" # noqa: E501
|
||||
|
||||
config: Union[Unset, JetstreamConfig] = UNSET
|
||||
meta: Union[Unset, MetaClusterInfo] = UNSET
|
||||
stats: Union[Unset, JetstreamStats] = UNSET
|
||||
@ -20,30 +21,27 @@ class Jetstream:
|
||||
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
config: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.config, Unset):
|
||||
config = self.config.value
|
||||
meta: Union[Unset, str] = UNSET
|
||||
config = self.config
|
||||
if not isinstance(self.meta, Unset):
|
||||
meta = self.meta.value
|
||||
stats: Union[Unset, str] = UNSET
|
||||
meta = self.meta
|
||||
if not isinstance(self.stats, Unset):
|
||||
stats = self.stats.value
|
||||
stats = self.stats
|
||||
|
||||
field_dict: Dict[str, Any] = {}
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if config is not UNSET:
|
||||
field_dict['config'] = config
|
||||
field_dict["config"] = config
|
||||
if meta is not UNSET:
|
||||
field_dict['meta'] = meta
|
||||
field_dict["meta"] = meta
|
||||
if stats is not UNSET:
|
||||
field_dict['stats'] = stats
|
||||
field_dict["stats"] = stats
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[C], src_dict: Dict[str, Any]) -> C:
|
||||
d = src_dict.copy()
|
||||
_config = d.pop("config", UNSET)
|
||||
config: Union[Unset, JetstreamConfig]
|
||||
|
@ -1,15 +1,16 @@
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="JetstreamApiStats")
|
||||
U = TypeVar("U", bound="JetstreamApiStats")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class JetstreamApiStats:
|
||||
""" """
|
||||
"""Jetstream API statistics.""" # noqa: E501
|
||||
|
||||
errors: Union[Unset, int] = UNSET
|
||||
inflight: Union[Unset, int] = UNSET
|
||||
total: Union[Unset, int] = UNSET
|
||||
@ -25,16 +26,16 @@ class JetstreamApiStats:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if errors is not UNSET:
|
||||
field_dict['errors'] = errors
|
||||
field_dict["errors"] = errors
|
||||
if inflight is not UNSET:
|
||||
field_dict['inflight'] = inflight
|
||||
field_dict["inflight"] = inflight
|
||||
if total is not UNSET:
|
||||
field_dict['total'] = total
|
||||
field_dict["total"] = total
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[U], src_dict: Dict[str, Any]) -> U:
|
||||
d = src_dict.copy()
|
||||
errors = d.pop("errors", UNSET)
|
||||
|
||||
|
@ -1,15 +1,16 @@
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="JetstreamConfig")
|
||||
S = TypeVar("S", bound="JetstreamConfig")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class JetstreamConfig:
|
||||
""" """
|
||||
"""Jetstream configuration.""" # noqa: E501
|
||||
|
||||
domain: Union[Unset, str] = UNSET
|
||||
max_memory: Union[Unset, int] = UNSET
|
||||
max_storage: Union[Unset, int] = UNSET
|
||||
@ -27,18 +28,18 @@ class JetstreamConfig:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if domain is not UNSET:
|
||||
field_dict['domain'] = domain
|
||||
field_dict["domain"] = domain
|
||||
if max_memory is not UNSET:
|
||||
field_dict['max_memory'] = max_memory
|
||||
field_dict["max_memory"] = max_memory
|
||||
if max_storage is not UNSET:
|
||||
field_dict['max_storage'] = max_storage
|
||||
field_dict["max_storage"] = max_storage
|
||||
if store_dir is not UNSET:
|
||||
field_dict['store_dir'] = store_dir
|
||||
field_dict["store_dir"] = store_dir
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[S], src_dict: Dict[str, Any]) -> S:
|
||||
d = src_dict.copy()
|
||||
domain = d.pop("domain", UNSET)
|
||||
|
||||
|
@ -1,16 +1,17 @@
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
|
||||
from ..models.jetstream_api_stats import JetstreamApiStats
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="JetstreamStats")
|
||||
K = TypeVar("K", bound="JetstreamStats")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class JetstreamStats:
|
||||
""" """
|
||||
"""Jetstream statistics.""" # noqa: E501
|
||||
|
||||
accounts: Union[Unset, int] = UNSET
|
||||
api: Union[Unset, JetstreamApiStats] = UNSET
|
||||
ha_assets: Union[Unset, int] = UNSET
|
||||
@ -23,9 +24,8 @@ class JetstreamStats:
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
accounts = self.accounts
|
||||
api: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.api, Unset):
|
||||
api = self.api.value
|
||||
api = self.api
|
||||
ha_assets = self.ha_assets
|
||||
memory = self.memory
|
||||
reserved_memory = self.reserved_memory
|
||||
@ -36,24 +36,24 @@ class JetstreamStats:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if accounts is not UNSET:
|
||||
field_dict['accounts'] = accounts
|
||||
field_dict["accounts"] = accounts
|
||||
if api is not UNSET:
|
||||
field_dict['api'] = api
|
||||
field_dict["api"] = api
|
||||
if ha_assets is not UNSET:
|
||||
field_dict['ha_assets'] = ha_assets
|
||||
field_dict["ha_assets"] = ha_assets
|
||||
if memory is not UNSET:
|
||||
field_dict['memory'] = memory
|
||||
field_dict["memory"] = memory
|
||||
if reserved_memory is not UNSET:
|
||||
field_dict['reserved_memory'] = reserved_memory
|
||||
field_dict["reserved_memory"] = reserved_memory
|
||||
if reserved_store is not UNSET:
|
||||
field_dict['reserved_store'] = reserved_store
|
||||
field_dict["reserved_store"] = reserved_store
|
||||
if store is not UNSET:
|
||||
field_dict['store'] = store
|
||||
field_dict["store"] = store
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[K], src_dict: Dict[str, Any]) -> K:
|
||||
d = src_dict.copy()
|
||||
accounts = d.pop("accounts", UNSET)
|
||||
|
||||
|
@ -1,15 +1,16 @@
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="LeafNode")
|
||||
Q = TypeVar("Q", bound="LeafNode")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class LeafNode:
|
||||
""" """
|
||||
"""Leaf node information.""" # noqa: E501
|
||||
|
||||
auth_timeout: Union[Unset, int] = UNSET
|
||||
host: Union[Unset, str] = UNSET
|
||||
port: Union[Unset, int] = UNSET
|
||||
@ -27,18 +28,18 @@ class LeafNode:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if auth_timeout is not UNSET:
|
||||
field_dict['auth_timeout'] = auth_timeout
|
||||
field_dict["auth_timeout"] = auth_timeout
|
||||
if host is not UNSET:
|
||||
field_dict['host'] = host
|
||||
field_dict["host"] = host
|
||||
if port is not UNSET:
|
||||
field_dict['port'] = port
|
||||
field_dict["port"] = port
|
||||
if tls_timeout is not UNSET:
|
||||
field_dict['tls_timeout'] = tls_timeout
|
||||
field_dict["tls_timeout"] = tls_timeout
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[Q], src_dict: Dict[str, Any]) -> Q:
|
||||
d = src_dict.copy()
|
||||
auth_timeout = d.pop("auth_timeout", UNSET)
|
||||
|
||||
|
@ -1,15 +1,14 @@
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="Mesh")
|
||||
F = TypeVar("F", bound="Mesh")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class Mesh:
|
||||
""" """
|
||||
mesh: Union[Unset, str] = UNSET
|
||||
|
||||
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
||||
@ -21,12 +20,12 @@ class Mesh:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if mesh is not UNSET:
|
||||
field_dict['mesh'] = mesh
|
||||
field_dict["mesh"] = mesh
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[F], src_dict: Dict[str, Any]) -> F:
|
||||
d = src_dict.copy()
|
||||
mesh = d.pop("mesh", UNSET)
|
||||
|
||||
|
@ -1,15 +1,16 @@
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="MetaClusterInfo")
|
||||
H = TypeVar("H", bound="MetaClusterInfo")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class MetaClusterInfo:
|
||||
""" """
|
||||
"""Jetstream statistics.""" # noqa: E501
|
||||
|
||||
cluster_size: Union[Unset, int] = UNSET
|
||||
leader: Union[Unset, str] = UNSET
|
||||
name: Union[Unset, str] = UNSET
|
||||
@ -25,16 +26,16 @@ class MetaClusterInfo:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if cluster_size is not UNSET:
|
||||
field_dict['cluster_size'] = cluster_size
|
||||
field_dict["cluster_size"] = cluster_size
|
||||
if leader is not UNSET:
|
||||
field_dict['leader'] = leader
|
||||
field_dict["leader"] = leader
|
||||
if name is not UNSET:
|
||||
field_dict['name'] = name
|
||||
field_dict["name"] = name
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[H], src_dict: Dict[str, Any]) -> H:
|
||||
d = src_dict.copy()
|
||||
cluster_size = d.pop("cluster_size", UNSET)
|
||||
|
||||
|
@ -1,22 +1,25 @@
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
|
||||
from ..models.cache_metadata import CacheMetadata
|
||||
from ..models.connection import Connection
|
||||
from ..models.engine_metadata import EngineMetadata
|
||||
from ..models.environment import Environment
|
||||
from ..models.executor_metadata import ExecutorMetadata
|
||||
from ..models.file_system_metadata import FileSystemMetadata
|
||||
from ..models.point_e_metadata import PointEMetadata
|
||||
from ..models.connection import Connection
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="Metadata")
|
||||
N = TypeVar("N", bound="Metadata")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class Metadata:
|
||||
""" """
|
||||
"""Metadata about our currently running server.
|
||||
|
||||
This is mostly used for internal purposes and debugging.""" # noqa: E501
|
||||
|
||||
cache: Union[Unset, CacheMetadata] = UNSET
|
||||
engine: Union[Unset, EngineMetadata] = UNSET
|
||||
environment: Union[Unset, Environment] = UNSET
|
||||
@ -29,53 +32,46 @@ class Metadata:
|
||||
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
cache: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.cache, Unset):
|
||||
cache = self.cache.value
|
||||
engine: Union[Unset, str] = UNSET
|
||||
cache = self.cache
|
||||
if not isinstance(self.engine, Unset):
|
||||
engine = self.engine.value
|
||||
environment: Union[Unset, str] = UNSET
|
||||
engine = self.engine
|
||||
if not isinstance(self.environment, Unset):
|
||||
environment = self.environment.value
|
||||
executor: Union[Unset, str] = UNSET
|
||||
environment = self.environment
|
||||
if not isinstance(self.executor, Unset):
|
||||
executor = self.executor.value
|
||||
fs: Union[Unset, str] = UNSET
|
||||
executor = self.executor
|
||||
if not isinstance(self.fs, Unset):
|
||||
fs = self.fs.value
|
||||
fs = self.fs
|
||||
git_hash = self.git_hash
|
||||
point_e: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.point_e, Unset):
|
||||
point_e = self.point_e.value
|
||||
pubsub: Union[Unset, str] = UNSET
|
||||
point_e = self.point_e
|
||||
if not isinstance(self.pubsub, Unset):
|
||||
pubsub = self.pubsub.value
|
||||
pubsub = self.pubsub
|
||||
|
||||
field_dict: Dict[str, Any] = {}
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if cache is not UNSET:
|
||||
field_dict['cache'] = cache
|
||||
field_dict["cache"] = cache
|
||||
if engine is not UNSET:
|
||||
field_dict['engine'] = engine
|
||||
field_dict["engine"] = engine
|
||||
if environment is not UNSET:
|
||||
field_dict['environment'] = environment
|
||||
field_dict["environment"] = environment
|
||||
if executor is not UNSET:
|
||||
field_dict['executor'] = executor
|
||||
field_dict["executor"] = executor
|
||||
if fs is not UNSET:
|
||||
field_dict['fs'] = fs
|
||||
field_dict["fs"] = fs
|
||||
if git_hash is not UNSET:
|
||||
field_dict['git_hash'] = git_hash
|
||||
field_dict["git_hash"] = git_hash
|
||||
if point_e is not UNSET:
|
||||
field_dict['point_e'] = point_e
|
||||
field_dict["point_e"] = point_e
|
||||
if pubsub is not UNSET:
|
||||
field_dict['pubsub'] = pubsub
|
||||
field_dict["pubsub"] = pubsub
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[N], src_dict: Dict[str, Any]) -> N:
|
||||
d = src_dict.copy()
|
||||
_cache = d.pop("cache", UNSET)
|
||||
cache: Union[Unset, CacheMetadata]
|
||||
|
@ -2,16 +2,32 @@ from enum import Enum
|
||||
|
||||
|
||||
class Method(str, Enum):
|
||||
OPTIONS = 'OPTIONS'
|
||||
GET = 'GET'
|
||||
POST = 'POST'
|
||||
PUT = 'PUT'
|
||||
DELETE = 'DELETE'
|
||||
HEAD = 'HEAD'
|
||||
TRACE = 'TRACE'
|
||||
CONNECT = 'CONNECT'
|
||||
PATCH = 'PATCH'
|
||||
EXTENSION = 'EXTENSION'
|
||||
"""The Request Method (VERB)
|
||||
|
||||
This type also contains constants for a number of common HTTP methods such as GET, POST, etc.
|
||||
|
||||
Currently includes 8 variants representing the 8 methods defined in [RFC 7230](https://tools.ietf.org/html/rfc7231#section-4.1), plus PATCH, and an Extension variant for all extensions.""" # noqa: E501
|
||||
|
||||
"""# The `OPTIONS` method as defined in [RFC 7231](https://tools.ietf.org/html/rfc7231#section-4.2.1). """ # noqa: E501
|
||||
OPTIONS = "OPTIONS"
|
||||
"""# The `GET` method as defined in [RFC 7231](https://tools.ietf.org/html/rfc7231#section-4.3.1). """ # noqa: E501
|
||||
GET = "GET"
|
||||
"""# The `POST` method as defined in [RFC 7231](https://tools.ietf.org/html/rfc7231#section-4.3.1). """ # noqa: E501
|
||||
POST = "POST"
|
||||
"""# The `PUT` method as defined in [RFC 7231](https://tools.ietf.org/html/rfc7231#section-4.3.1). """ # noqa: E501
|
||||
PUT = "PUT"
|
||||
"""# The `DELETE` method as defined in [RFC 7231](https://tools.ietf.org/html/rfc7231#section-4.3.5). """ # noqa: E501
|
||||
DELETE = "DELETE"
|
||||
"""# The `HEAD` method as defined in [RFC 7231](https://tools.ietf.org/html/rfc7231#section-4.3.2). """ # noqa: E501
|
||||
HEAD = "HEAD"
|
||||
"""# The `TRACE` method as defined in [RFC 7231](https://tools.ietf.org/html/rfc7231#section-4.3). """ # noqa: E501
|
||||
TRACE = "TRACE"
|
||||
"""# The `CONNECT` method as defined in [RFC 7231](https://tools.ietf.org/html/rfc7231#section-4.3.6). """ # noqa: E501
|
||||
CONNECT = "CONNECT"
|
||||
"""# The `PATCH` method as defined in [RFC 5789](https://tools.ietf.org/html/rfc5789). """ # noqa: E501
|
||||
PATCH = "PATCH"
|
||||
"""# A catch all. """ # noqa: E501
|
||||
EXTENSION = "EXTENSION"
|
||||
|
||||
def __str__(self) -> str:
|
||||
return str(self.value)
|
||||
|
@ -1,16 +1,17 @@
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
|
||||
from ..models.country_code import CountryCode
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="NewAddress")
|
||||
H = TypeVar("H", bound="NewAddress")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class NewAddress:
|
||||
""" """
|
||||
"""The struct that is used to create a new record. This is automatically generated and has all the same fields as the main struct only it is missing the `id`.""" # noqa: E501
|
||||
|
||||
city: Union[Unset, str] = UNSET
|
||||
country: Union[Unset, CountryCode] = UNSET
|
||||
state: Union[Unset, str] = UNSET
|
||||
@ -23,9 +24,8 @@ class NewAddress:
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
city = self.city
|
||||
country: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.country, Unset):
|
||||
country = self.country.value
|
||||
country = self.country
|
||||
state = self.state
|
||||
street1 = self.street1
|
||||
street2 = self.street2
|
||||
@ -36,24 +36,24 @@ class NewAddress:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if city is not UNSET:
|
||||
field_dict['city'] = city
|
||||
field_dict["city"] = city
|
||||
if country is not UNSET:
|
||||
field_dict['country'] = country
|
||||
field_dict["country"] = country
|
||||
if state is not UNSET:
|
||||
field_dict['state'] = state
|
||||
field_dict["state"] = state
|
||||
if street1 is not UNSET:
|
||||
field_dict['street1'] = street1
|
||||
field_dict["street1"] = street1
|
||||
if street2 is not UNSET:
|
||||
field_dict['street2'] = street2
|
||||
field_dict["street2"] = street2
|
||||
if user_id is not UNSET:
|
||||
field_dict['user_id'] = user_id
|
||||
field_dict["user_id"] = user_id
|
||||
if zip is not UNSET:
|
||||
field_dict['zip'] = zip
|
||||
field_dict["zip"] = zip
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[H], src_dict: Dict[str, Any]) -> H:
|
||||
d = src_dict.copy()
|
||||
city = d.pop("city", UNSET)
|
||||
|
||||
|
@ -1,15 +1,16 @@
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="OAuth2ClientInfo")
|
||||
B = TypeVar("B", bound="OAuth2ClientInfo")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class OAuth2ClientInfo:
|
||||
""" """
|
||||
"""Information about an OAuth 2.0 client.""" # noqa: E501
|
||||
|
||||
csrf_token: Union[Unset, str] = UNSET
|
||||
pkce_code_verifier: Union[Unset, str] = UNSET
|
||||
url: Union[Unset, str] = UNSET
|
||||
@ -25,16 +26,16 @@ class OAuth2ClientInfo:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if csrf_token is not UNSET:
|
||||
field_dict['csrf_token'] = csrf_token
|
||||
field_dict["csrf_token"] = csrf_token
|
||||
if pkce_code_verifier is not UNSET:
|
||||
field_dict['pkce_code_verifier'] = pkce_code_verifier
|
||||
field_dict["pkce_code_verifier"] = pkce_code_verifier
|
||||
if url is not UNSET:
|
||||
field_dict['url'] = url
|
||||
field_dict["url"] = url
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[B], src_dict: Dict[str, Any]) -> B:
|
||||
d = src_dict.copy()
|
||||
csrf_token = d.pop("csrf_token", UNSET)
|
||||
|
||||
|
@ -2,7 +2,12 @@ from enum import Enum
|
||||
|
||||
|
||||
class OAuth2GrantType(str, Enum):
|
||||
URN_IETF_PARAMS_OAUTH_GRANT_TYPE_DEVICE_CODE = 'urn:ietf:params:oauth:grant-type:device_code'
|
||||
"""An OAuth 2.0 Grant Type. These are documented here: <https://oauth.net/2/grant-types/>.""" # noqa: E501
|
||||
|
||||
"""# An OAuth 2.0 Device Authorization Grant. """ # noqa: E501
|
||||
URN_IETF_PARAMS_OAUTH_GRANT_TYPE_DEVICE_CODE = (
|
||||
"urn:ietf:params:oauth:grant-type:device_code"
|
||||
)
|
||||
|
||||
def __str__(self) -> str:
|
||||
return str(self.value)
|
||||
|
@ -1,15 +1,16 @@
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="Onboarding")
|
||||
B = TypeVar("B", bound="Onboarding")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class Onboarding:
|
||||
""" """
|
||||
"""Onboarding details""" # noqa: E501
|
||||
|
||||
first_call_from_their_machine_date: Union[Unset, str] = UNSET
|
||||
first_litterbox_execute_date: Union[Unset, str] = UNSET
|
||||
first_token_date: Union[Unset, str] = UNSET
|
||||
@ -25,22 +26,24 @@ class Onboarding:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if first_call_from_their_machine_date is not UNSET:
|
||||
field_dict['first_call_from_their_machine_date'] = first_call_from_their_machine_date
|
||||
field_dict[
|
||||
"first_call_from_their_machine_date"
|
||||
] = first_call_from_their_machine_date
|
||||
if first_litterbox_execute_date is not UNSET:
|
||||
field_dict['first_litterbox_execute_date'] = first_litterbox_execute_date
|
||||
field_dict["first_litterbox_execute_date"] = first_litterbox_execute_date
|
||||
if first_token_date is not UNSET:
|
||||
field_dict['first_token_date'] = first_token_date
|
||||
field_dict["first_token_date"] = first_token_date
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[B], src_dict: Dict[str, Any]) -> B:
|
||||
d = src_dict.copy()
|
||||
first_call_from_their_machine_date = d.pop(
|
||||
"first_call_from_their_machine_date", UNSET)
|
||||
"first_call_from_their_machine_date", UNSET
|
||||
)
|
||||
|
||||
first_litterbox_execute_date = d.pop(
|
||||
"first_litterbox_execute_date", UNSET)
|
||||
first_litterbox_execute_date = d.pop("first_litterbox_execute_date", UNSET)
|
||||
|
||||
first_token_date = d.pop("first_token_date", UNSET)
|
||||
|
||||
|
@ -1,15 +1,16 @@
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="OutputFile")
|
||||
P = TypeVar("P", bound="OutputFile")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class OutputFile:
|
||||
""" """
|
||||
"""Output file contents.""" # noqa: E501
|
||||
|
||||
contents: Union[Unset, str] = UNSET
|
||||
name: Union[Unset, str] = UNSET
|
||||
|
||||
@ -23,14 +24,14 @@ class OutputFile:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if contents is not UNSET:
|
||||
field_dict['contents'] = contents
|
||||
field_dict["contents"] = contents
|
||||
if name is not UNSET:
|
||||
field_dict['name'] = name
|
||||
field_dict["name"] = name
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[P], src_dict: Dict[str, Any]) -> P:
|
||||
d = src_dict.copy()
|
||||
contents = d.pop("contents", UNSET)
|
||||
|
||||
|
@ -1,15 +1,16 @@
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="PaymentIntent")
|
||||
J = TypeVar("J", bound="PaymentIntent")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class PaymentIntent:
|
||||
""" """
|
||||
"""A payment intent response.""" # noqa: E501
|
||||
|
||||
client_secret: Union[Unset, str] = UNSET
|
||||
|
||||
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
||||
@ -21,12 +22,12 @@ class PaymentIntent:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if client_secret is not UNSET:
|
||||
field_dict['client_secret'] = client_secret
|
||||
field_dict["client_secret"] = client_secret
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[J], src_dict: Dict[str, Any]) -> J:
|
||||
d = src_dict.copy()
|
||||
client_secret = d.pop("client_secret", UNSET)
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import datetime
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
from dateutil.parser import isoparse
|
||||
@ -14,7 +14,8 @@ T = TypeVar("T", bound="PaymentMethod")
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class PaymentMethod:
|
||||
""" """
|
||||
"""A payment method.""" # noqa: E501
|
||||
|
||||
billing_info: Union[Unset, BillingInfo] = UNSET
|
||||
card: Union[Unset, CardDetails] = UNSET
|
||||
created_at: Union[Unset, datetime.datetime] = UNSET
|
||||
@ -25,36 +26,33 @@ class PaymentMethod:
|
||||
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
billing_info: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.billing_info, Unset):
|
||||
billing_info = self.billing_info.value
|
||||
card: Union[Unset, str] = UNSET
|
||||
billing_info = self.billing_info
|
||||
if not isinstance(self.card, Unset):
|
||||
card = self.card.value
|
||||
card = self.card
|
||||
created_at: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.created_at, Unset):
|
||||
created_at = self.created_at.isoformat()
|
||||
id = self.id
|
||||
metadata = self.metadata
|
||||
type: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.type, Unset):
|
||||
type = self.type.value
|
||||
type = self.type
|
||||
|
||||
field_dict: Dict[str, Any] = {}
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if billing_info is not UNSET:
|
||||
field_dict['billing_info'] = billing_info
|
||||
field_dict["billing_info"] = billing_info
|
||||
if card is not UNSET:
|
||||
field_dict['card'] = card
|
||||
field_dict["card"] = card
|
||||
if created_at is not UNSET:
|
||||
field_dict['created_at'] = created_at
|
||||
field_dict["created_at"] = created_at
|
||||
if id is not UNSET:
|
||||
field_dict['id'] = id
|
||||
field_dict["id"] = id
|
||||
if metadata is not UNSET:
|
||||
field_dict['metadata'] = metadata
|
||||
field_dict["metadata"] = metadata
|
||||
if type is not UNSET:
|
||||
field_dict['type'] = type
|
||||
field_dict["type"] = type
|
||||
|
||||
return field_dict
|
||||
|
||||
|
@ -1,15 +1,16 @@
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="PaymentMethodCardChecks")
|
||||
V = TypeVar("V", bound="PaymentMethodCardChecks")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class PaymentMethodCardChecks:
|
||||
""" """
|
||||
"""Card checks.""" # noqa: E501
|
||||
|
||||
address_line1_check: Union[Unset, str] = UNSET
|
||||
address_postal_code_check: Union[Unset, str] = UNSET
|
||||
cvc_check: Union[Unset, str] = UNSET
|
||||
@ -25,16 +26,16 @@ class PaymentMethodCardChecks:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if address_line1_check is not UNSET:
|
||||
field_dict['address_line1_check'] = address_line1_check
|
||||
field_dict["address_line1_check"] = address_line1_check
|
||||
if address_postal_code_check is not UNSET:
|
||||
field_dict['address_postal_code_check'] = address_postal_code_check
|
||||
field_dict["address_postal_code_check"] = address_postal_code_check
|
||||
if cvc_check is not UNSET:
|
||||
field_dict['cvc_check'] = cvc_check
|
||||
field_dict["cvc_check"] = cvc_check
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[V], src_dict: Dict[str, Any]) -> V:
|
||||
d = src_dict.copy()
|
||||
address_line1_check = d.pop("address_line1_check", UNSET)
|
||||
|
||||
|
@ -2,7 +2,10 @@ from enum import Enum
|
||||
|
||||
|
||||
class PaymentMethodType(str, Enum):
|
||||
CARD = 'card'
|
||||
"""An enum representing the possible values of an `PaymentMethod`'s `type` field.""" # noqa: E501
|
||||
|
||||
"""# A card payment method. """ # noqa: E501
|
||||
CARD = "card"
|
||||
|
||||
def __str__(self) -> str:
|
||||
return str(self.value)
|
||||
|
@ -1,20 +1,20 @@
|
||||
import datetime
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
from dateutil.parser import isoparse
|
||||
|
||||
from ..models.physics_constant_name import PhysicsConstantName
|
||||
from ..models.uuid import Uuid
|
||||
from ..models.api_call_status import ApiCallStatus
|
||||
from ..models.physics_constant_name import PhysicsConstantName
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="PhysicsConstant")
|
||||
C = TypeVar("C", bound="PhysicsConstant")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class PhysicsConstant:
|
||||
""" """
|
||||
"""A physics constant.""" # noqa: E501
|
||||
|
||||
completed_at: Union[Unset, datetime.datetime] = UNSET
|
||||
constant: Union[Unset, PhysicsConstantName] = UNSET
|
||||
created_at: Union[Unset, datetime.datetime] = UNSET
|
||||
@ -32,9 +32,8 @@ class PhysicsConstant:
|
||||
completed_at: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.completed_at, Unset):
|
||||
completed_at = self.completed_at.isoformat()
|
||||
constant: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.constant, Unset):
|
||||
constant = self.constant.value
|
||||
constant = self.constant
|
||||
created_at: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.created_at, Unset):
|
||||
created_at = self.created_at.isoformat()
|
||||
@ -43,9 +42,8 @@ class PhysicsConstant:
|
||||
started_at: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.started_at, Unset):
|
||||
started_at = self.started_at.isoformat()
|
||||
status: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.status, Unset):
|
||||
status = self.status.value
|
||||
status = self.status
|
||||
updated_at: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.updated_at, Unset):
|
||||
updated_at = self.updated_at.isoformat()
|
||||
@ -56,30 +54,30 @@ class PhysicsConstant:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if completed_at is not UNSET:
|
||||
field_dict['completed_at'] = completed_at
|
||||
field_dict["completed_at"] = completed_at
|
||||
if constant is not UNSET:
|
||||
field_dict['constant'] = constant
|
||||
field_dict["constant"] = constant
|
||||
if created_at is not UNSET:
|
||||
field_dict['created_at'] = created_at
|
||||
field_dict["created_at"] = created_at
|
||||
if error is not UNSET:
|
||||
field_dict['error'] = error
|
||||
field_dict["error"] = error
|
||||
if id is not UNSET:
|
||||
field_dict['id'] = id
|
||||
field_dict["id"] = id
|
||||
if started_at is not UNSET:
|
||||
field_dict['started_at'] = started_at
|
||||
field_dict["started_at"] = started_at
|
||||
if status is not UNSET:
|
||||
field_dict['status'] = status
|
||||
field_dict["status"] = status
|
||||
if updated_at is not UNSET:
|
||||
field_dict['updated_at'] = updated_at
|
||||
field_dict["updated_at"] = updated_at
|
||||
if user_id is not UNSET:
|
||||
field_dict['user_id'] = user_id
|
||||
field_dict["user_id"] = user_id
|
||||
if value is not UNSET:
|
||||
field_dict['value'] = value
|
||||
field_dict["value"] = value
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[C], src_dict: Dict[str, Any]) -> C:
|
||||
d = src_dict.copy()
|
||||
_completed_at = d.pop("completed_at", UNSET)
|
||||
completed_at: Union[Unset, datetime.datetime]
|
||||
|
@ -2,39 +2,74 @@ from enum import Enum
|
||||
|
||||
|
||||
class PhysicsConstantName(str, Enum):
|
||||
PI = 'pi'
|
||||
C = 'c'
|
||||
SPEED_OF_LIGHT = 'speed_of_light'
|
||||
G = 'G'
|
||||
NEWTONIAN_GRAVITATION = 'newtonian_gravitation'
|
||||
H = 'h'
|
||||
PLANCK_CONST = 'planck_const'
|
||||
MU_0 = 'mu_0'
|
||||
VACUUM_PERMEABILITY = 'vacuum_permeability'
|
||||
E_0 = 'E_0'
|
||||
VACUUM_PERMITIVITY = 'vacuum_permitivity'
|
||||
Z_0 = 'Z_0'
|
||||
VACUUM_IMPEDANCE = 'vacuum_impedance'
|
||||
K_E = 'k_e'
|
||||
COULOMB_CONST = 'coulomb_const'
|
||||
E = 'e'
|
||||
ELEMENTARY_CHARGE = 'elementary_charge'
|
||||
M_E = 'm_e'
|
||||
ELECTRON_MASS = 'electron_mass'
|
||||
M_P = 'm_p'
|
||||
PROTON_MASS = 'proton_mass'
|
||||
MU_B = 'mu_B'
|
||||
BOHR_MAGNETON = 'bohr_magneton'
|
||||
NA = 'NA'
|
||||
AVOGADRO_NUM = 'avogadro_num'
|
||||
R = 'R'
|
||||
MOLAR_GAS_CONST = 'molar_gas_const'
|
||||
K_B = 'K_B'
|
||||
BOLTZMANN_CONST = 'boltzmann_const'
|
||||
F = 'F'
|
||||
FARADAY_CONST = 'faraday_const'
|
||||
SIGMA = 'sigma'
|
||||
STEFAN_BOLTZMANN_CONST = 'stefan_boltzmann_const'
|
||||
"""The valid types of phys constant names.""" # noqa: E501
|
||||
|
||||
"""# pi - Ratio of a circle's circumference to its diameter. <https://en.wikipedia.org/wiki/Pi> """ # noqa: E501
|
||||
PI = "pi"
|
||||
"""# c - Speed of light in vacuum. <https://en.wikipedia.org/wiki//Speed_of_light> """ # noqa: E501
|
||||
C = "c"
|
||||
"""# Speed of light in a vacuum. <https://en.wikipedia.org/wiki//Speed_of_light> """ # noqa: E501
|
||||
SPEED_OF_LIGHT = "speed_of_light"
|
||||
"""# G - Newtonian constant of gravitation. <https://en.wikipedia.org/wiki/Gravitational_constant> """ # noqa: E501
|
||||
G = "G"
|
||||
"""# Newtonian constant of gravitation. <https://en.wikipedia.org/wiki/Gravitational_constant> """ # noqa: E501
|
||||
NEWTONIAN_GRAVITATION = "newtonian_gravitation"
|
||||
"""# h - Planck constant. <https://en.wikipedia.org/wiki/Planck_constant> """ # noqa: E501
|
||||
H = "h"
|
||||
"""# Planck constant. <https://en.wikipedia.org/wiki/Planck_constant> """ # noqa: E501
|
||||
PLANCK_CONST = "planck_const"
|
||||
"""# mu_0 - vacuum permeability. <https://en.wikipedia.org/wiki/Vacuum_permeability> """ # noqa: E501
|
||||
MU_0 = "mu_0"
|
||||
"""# vacuum permeability. <https://en.wikipedia.org/wiki/Vacuum_permeability> """ # noqa: E501
|
||||
VACUUM_PERMEABILITY = "vacuum_permeability"
|
||||
"""# ε_0 - vacuum permitivity. <https://en.wikipedia.org/wiki/Vacuum_permittivity> """ # noqa: E501
|
||||
E_0 = "E_0"
|
||||
"""# vacuum permitivity. <https://en.wikipedia.org/wiki/Vacuum_permittivity>] """ # noqa: E501
|
||||
VACUUM_PERMITIVITY = "vacuum_permitivity"
|
||||
"""# Z_0 - characteristic impedance of vacuum. <https://en.wikipedia.org/wiki/Impedance_of_free_space> """ # noqa: E501
|
||||
Z_0 = "Z_0"
|
||||
"""# characteristic impedance of vacuum. <https://en.wikipedia.org/wiki/Impedance_of_free_space> """ # noqa: E501
|
||||
VACUUM_IMPEDANCE = "vacuum_impedance"
|
||||
"""# k_e - Coulomb's constant. <https://en.wikipedia.org/wiki/Coulomb_constant> """ # noqa: E501
|
||||
K_E = "k_e"
|
||||
"""# Coulomb's constant. <https://en.wikipedia.org/wiki/Coulomb_constant> """ # noqa: E501
|
||||
COULOMB_CONST = "coulomb_const"
|
||||
"""# e - elementary charge. <https://en.wikipedia.org/wiki/Elementary_charge> """ # noqa: E501
|
||||
E = "e"
|
||||
"""# elementary charge. <https://en.wikipedia.org/wiki/Elementary_charge> """ # noqa: E501
|
||||
ELEMENTARY_CHARGE = "elementary_charge"
|
||||
"""# m_e - electron mass. <https://en.wikipedia.org/wiki/Electron_mass> """ # noqa: E501
|
||||
M_E = "m_e"
|
||||
"""# electron mass. <https://en.wikipedia.org/wiki/Electron_mass> """ # noqa: E501
|
||||
ELECTRON_MASS = "electron_mass"
|
||||
"""# m_p - proton mass. <https://en.wikipedia.org/wiki/Proton> """ # noqa: E501
|
||||
M_P = "m_p"
|
||||
"""# proton mass. <https://en.wikipedia.org/wiki/Proton> """ # noqa: E501
|
||||
PROTON_MASS = "proton_mass"
|
||||
"""# mu_B - Bohr magneton. <https://en.wikipedia.org/wiki/Bohr_magneton> """ # noqa: E501
|
||||
MU_B = "mu_B"
|
||||
"""# Bohr magneton. <https://en.wikipedia.org/wiki/Bohr_magneton> """ # noqa: E501
|
||||
BOHR_MAGNETON = "bohr_magneton"
|
||||
"""# NA - Avogadro's Number. <https://en.wikipedia.org/wiki/Avogadro_constant> """ # noqa: E501
|
||||
NA = "NA"
|
||||
"""# Avogadro's Number. <https://en.wikipedia.org/wiki/Avogadro_constant> """ # noqa: E501
|
||||
AVOGADRO_NUM = "avogadro_num"
|
||||
"""# R - Molar Gas constant. <https://en.wikipedia.org/wiki/Gas_constant> """ # noqa: E501
|
||||
R = "R"
|
||||
"""# Molar Gas constant. <https://en.wikipedia.org/wiki/Gas_constant> """ # noqa: E501
|
||||
MOLAR_GAS_CONST = "molar_gas_const"
|
||||
"""# K_B - Boltzmann constant. <https://en.wikipedia.org/wiki/Boltzmann_constant> """ # noqa: E501
|
||||
K_B = "K_B"
|
||||
"""# Boltzmann constant. <https://en.wikipedia.org/wiki/Boltzmann_constant> """ # noqa: E501
|
||||
BOLTZMANN_CONST = "boltzmann_const"
|
||||
"""# F - Faraday constant. <https://en.wikipedia.org/wiki/Faraday_constant> """ # noqa: E501
|
||||
F = "F"
|
||||
"""# Faraday constant. <https://en.wikipedia.org/wiki/Faraday_constant> """ # noqa: E501
|
||||
FARADAY_CONST = "faraday_const"
|
||||
"""# Sigma - Stefan-Boltzmann constant. <https://en.wikipedia.org/wiki/Stefan%E2%80%93Boltzmann_constant> """ # noqa: E501
|
||||
SIGMA = "sigma"
|
||||
"""# Stefan-Boltzmann constant. <https://en.wikipedia.org/wiki/Stefan%E2%80%93Boltzmann_constant> """ # noqa: E501
|
||||
STEFAN_BOLTZMANN_CONST = "stefan_boltzmann_const"
|
||||
|
||||
def __str__(self) -> str:
|
||||
return str(self.value)
|
||||
|
@ -4,12 +4,15 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="PluginsInfo")
|
||||
R = TypeVar("R", bound="PluginsInfo")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class PluginsInfo:
|
||||
""" """
|
||||
"""Available plugins per type.
|
||||
|
||||
**Note**: Only unmanaged (V1) plugins are included in this list. V1 plugins are \"lazily\" loaded, and are not returned in this list if there is no resource using the plugin.""" # noqa: E501
|
||||
|
||||
authorization: Union[Unset, List[str]] = UNSET
|
||||
log: Union[Unset, List[str]] = UNSET
|
||||
network: Union[Unset, List[str]] = UNSET
|
||||
@ -35,18 +38,18 @@ class PluginsInfo:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if authorization is not UNSET:
|
||||
field_dict['authorization'] = authorization
|
||||
field_dict["authorization"] = authorization
|
||||
if log is not UNSET:
|
||||
field_dict['log'] = log
|
||||
field_dict["log"] = log
|
||||
if network is not UNSET:
|
||||
field_dict['network'] = network
|
||||
field_dict["network"] = network
|
||||
if volume is not UNSET:
|
||||
field_dict['volume'] = volume
|
||||
field_dict["volume"] = volume
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[R], src_dict: Dict[str, Any]) -> R:
|
||||
d = src_dict.copy()
|
||||
authorization = cast(List[str], d.pop("authorization", UNSET))
|
||||
|
||||
|
@ -1,15 +1,18 @@
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="PointEMetadata")
|
||||
C = TypeVar("C", bound="PointEMetadata")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class PointEMetadata:
|
||||
""" """
|
||||
"""Metadata about our point-e instance.
|
||||
|
||||
This is mostly used for internal purposes and debugging.""" # noqa: E501
|
||||
|
||||
ok: Union[Unset, bool] = False
|
||||
|
||||
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
||||
@ -21,12 +24,12 @@ class PointEMetadata:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if ok is not UNSET:
|
||||
field_dict['ok'] = ok
|
||||
field_dict["ok"] = ok
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[C], src_dict: Dict[str, Any]) -> C:
|
||||
d = src_dict.copy()
|
||||
ok = d.pop("ok", UNSET)
|
||||
|
||||
|
@ -1,15 +1,16 @@
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="Pong")
|
||||
E = TypeVar("E", bound="Pong")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class Pong:
|
||||
""" """
|
||||
"""The response from the `/ping` endpoint.""" # noqa: E501
|
||||
|
||||
message: Union[Unset, str] = UNSET
|
||||
|
||||
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
||||
@ -21,12 +22,12 @@ class Pong:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if message is not UNSET:
|
||||
field_dict['message'] = message
|
||||
field_dict["message"] = message
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[E], src_dict: Dict[str, Any]) -> E:
|
||||
d = src_dict.copy()
|
||||
message = d.pop("message", UNSET)
|
||||
|
||||
|
@ -2,15 +2,15 @@ from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
|
||||
import attr
|
||||
|
||||
from ..models.index_info import IndexInfo
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="RegistryServiceConfig")
|
||||
M = TypeVar("M", bound="RegistryServiceConfig")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class RegistryServiceConfig:
|
||||
""" """
|
||||
"""RegistryServiceConfig stores daemon registry services configuration.""" # noqa: E501
|
||||
|
||||
allow_nondistributable_artifacts_cid_rs: Union[Unset, List[str]] = UNSET
|
||||
allow_nondistributable_artifacts_hostnames: Union[Unset, List[str]] = UNSET
|
||||
index_configs: Union[Unset, Any] = UNSET
|
||||
@ -20,16 +20,16 @@ class RegistryServiceConfig:
|
||||
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
allow_nondistributable_artifacts_cid_rs: Union[Unset,
|
||||
List[str]] = UNSET
|
||||
allow_nondistributable_artifacts_cid_rs: Union[Unset, List[str]] = UNSET
|
||||
if not isinstance(self.allow_nondistributable_artifacts_cid_rs, Unset):
|
||||
allow_nondistributable_artifacts_cid_rs = self.allow_nondistributable_artifacts_cid_rs
|
||||
allow_nondistributable_artifacts_hostnames: Union[Unset,
|
||||
List[str]] = UNSET
|
||||
if not isinstance(
|
||||
self.allow_nondistributable_artifacts_hostnames,
|
||||
Unset):
|
||||
allow_nondistributable_artifacts_hostnames = self.allow_nondistributable_artifacts_hostnames
|
||||
allow_nondistributable_artifacts_cid_rs = (
|
||||
self.allow_nondistributable_artifacts_cid_rs
|
||||
)
|
||||
allow_nondistributable_artifacts_hostnames: Union[Unset, List[str]] = UNSET
|
||||
if not isinstance(self.allow_nondistributable_artifacts_hostnames, Unset):
|
||||
allow_nondistributable_artifacts_hostnames = (
|
||||
self.allow_nondistributable_artifacts_hostnames
|
||||
)
|
||||
index_configs = self.index_configs
|
||||
insecure_registry_cid_rs: Union[Unset, List[str]] = UNSET
|
||||
if not isinstance(self.insecure_registry_cid_rs, Unset):
|
||||
@ -42,31 +42,37 @@ class RegistryServiceConfig:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if allow_nondistributable_artifacts_cid_rs is not UNSET:
|
||||
field_dict['allow_nondistributable_artifacts_cid_rs'] = allow_nondistributable_artifacts_cid_rs
|
||||
field_dict[
|
||||
"allow_nondistributable_artifacts_cid_rs"
|
||||
] = allow_nondistributable_artifacts_cid_rs
|
||||
if allow_nondistributable_artifacts_hostnames is not UNSET:
|
||||
field_dict['allow_nondistributable_artifacts_hostnames'] = allow_nondistributable_artifacts_hostnames
|
||||
field_dict[
|
||||
"allow_nondistributable_artifacts_hostnames"
|
||||
] = allow_nondistributable_artifacts_hostnames
|
||||
if index_configs is not UNSET:
|
||||
field_dict['index_configs'] = index_configs
|
||||
field_dict["index_configs"] = index_configs
|
||||
if insecure_registry_cid_rs is not UNSET:
|
||||
field_dict['insecure_registry_cid_rs'] = insecure_registry_cid_rs
|
||||
field_dict["insecure_registry_cid_rs"] = insecure_registry_cid_rs
|
||||
if mirrors is not UNSET:
|
||||
field_dict['mirrors'] = mirrors
|
||||
field_dict["mirrors"] = mirrors
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[M], src_dict: Dict[str, Any]) -> M:
|
||||
d = src_dict.copy()
|
||||
allow_nondistributable_artifacts_cid_rs = cast(
|
||||
List[str], d.pop("allow_nondistributable_artifacts_cid_rs", UNSET))
|
||||
List[str], d.pop("allow_nondistributable_artifacts_cid_rs", UNSET)
|
||||
)
|
||||
|
||||
allow_nondistributable_artifacts_hostnames = cast(
|
||||
List[str], d.pop("allow_nondistributable_artifacts_hostnames", UNSET))
|
||||
List[str], d.pop("allow_nondistributable_artifacts_hostnames", UNSET)
|
||||
)
|
||||
|
||||
index_configs = d.pop("index_configs", UNSET)
|
||||
insecure_registry_cid_rs = cast(
|
||||
List[str], d.pop(
|
||||
"insecure_registry_cid_rs", UNSET))
|
||||
List[str], d.pop("insecure_registry_cid_rs", UNSET)
|
||||
)
|
||||
|
||||
mirrors = cast(List[str], d.pop("mirrors", UNSET))
|
||||
|
||||
|
@ -4,12 +4,13 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="Runtime")
|
||||
S = TypeVar("S", bound="Runtime")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class Runtime:
|
||||
""" """
|
||||
"""Runtime describes an [OCI compliant](https://github.com/opencontainers/runtime-spec) runtime. The runtime is invoked by the daemon via the `containerd` daemon. OCI runtimes act as an interface to the Linux kernel namespaces, cgroups, and SELinux.""" # noqa: E501
|
||||
|
||||
path: Union[Unset, str] = UNSET
|
||||
runtime_args: Union[Unset, List[str]] = UNSET
|
||||
|
||||
@ -25,14 +26,14 @@ class Runtime:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if path is not UNSET:
|
||||
field_dict['path'] = path
|
||||
field_dict["path"] = path
|
||||
if runtime_args is not UNSET:
|
||||
field_dict['runtime_args'] = runtime_args
|
||||
field_dict["runtime_args"] = runtime_args
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[S], src_dict: Dict[str, Any]) -> S:
|
||||
d = src_dict.copy()
|
||||
path = d.pop("path", UNSET)
|
||||
|
||||
|
@ -1,18 +1,20 @@
|
||||
import datetime
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
from dateutil.parser import isoparse
|
||||
|
||||
from ..models.uuid import Uuid
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="Session")
|
||||
L = TypeVar("L", bound="Session")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class Session:
|
||||
""" """
|
||||
"""An authentication session.
|
||||
|
||||
For our UIs, these are automatically created by Next.js.""" # noqa: E501
|
||||
|
||||
created_at: Union[Unset, datetime.datetime] = UNSET
|
||||
expires: Union[Unset, datetime.datetime] = UNSET
|
||||
id: Union[Unset, str] = UNSET
|
||||
@ -40,22 +42,22 @@ class Session:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if created_at is not UNSET:
|
||||
field_dict['created_at'] = created_at
|
||||
field_dict["created_at"] = created_at
|
||||
if expires is not UNSET:
|
||||
field_dict['expires'] = expires
|
||||
field_dict["expires"] = expires
|
||||
if id is not UNSET:
|
||||
field_dict['id'] = id
|
||||
field_dict["id"] = id
|
||||
if session_token is not UNSET:
|
||||
field_dict['session_token'] = session_token
|
||||
field_dict["session_token"] = session_token
|
||||
if updated_at is not UNSET:
|
||||
field_dict['updated_at'] = updated_at
|
||||
field_dict["updated_at"] = updated_at
|
||||
if user_id is not UNSET:
|
||||
field_dict['user_id'] = user_id
|
||||
field_dict["user_id"] = user_id
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[L], src_dict: Dict[str, Any]) -> L:
|
||||
d = src_dict.copy()
|
||||
_created_at = d.pop("created_at", UNSET)
|
||||
created_at: Union[Unset, datetime.datetime]
|
||||
|
@ -2,10 +2,10 @@ from enum import Enum
|
||||
|
||||
|
||||
class SystemInfoCgroupDriverEnum(str, Enum):
|
||||
EMPTY = ''
|
||||
CGROUPFS = 'cgroupfs'
|
||||
SYSTEMD = 'systemd'
|
||||
NONE = 'none'
|
||||
EMPTY = ""
|
||||
CGROUPFS = "cgroupfs"
|
||||
SYSTEMD = "systemd"
|
||||
NONE = "none"
|
||||
|
||||
def __str__(self) -> str:
|
||||
return str(self.value)
|
||||
|
@ -2,9 +2,9 @@ from enum import Enum
|
||||
|
||||
|
||||
class SystemInfoCgroupVersionEnum(str, Enum):
|
||||
EMPTY = ''
|
||||
ONE = '1'
|
||||
TWO = '2'
|
||||
EMPTY = ""
|
||||
ONE = "1"
|
||||
TWO = "2"
|
||||
|
||||
def __str__(self) -> str:
|
||||
return str(self.value)
|
||||
|
@ -1,4 +1,4 @@
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
|
||||
@ -9,7 +9,6 @@ T = TypeVar("T", bound="SystemInfoDefaultAddressPools")
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class SystemInfoDefaultAddressPools:
|
||||
""" """
|
||||
base: Union[Unset, str] = UNSET
|
||||
size: Union[Unset, int] = UNSET
|
||||
|
||||
@ -23,9 +22,9 @@ class SystemInfoDefaultAddressPools:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if base is not UNSET:
|
||||
field_dict['base'] = base
|
||||
field_dict["base"] = base
|
||||
if size is not UNSET:
|
||||
field_dict['size'] = size
|
||||
field_dict["size"] = size
|
||||
|
||||
return field_dict
|
||||
|
||||
|
@ -2,10 +2,10 @@ from enum import Enum
|
||||
|
||||
|
||||
class SystemInfoIsolationEnum(str, Enum):
|
||||
EMPTY = ''
|
||||
DEFAULT = 'default'
|
||||
HYPERV = 'hyperv'
|
||||
PROCESS = 'process'
|
||||
EMPTY = ""
|
||||
DEFAULT = "default"
|
||||
HYPERV = "hyperv"
|
||||
PROCESS = "process"
|
||||
|
||||
def __str__(self) -> str:
|
||||
return str(self.value)
|
||||
|
@ -1,20 +1,20 @@
|
||||
import datetime
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
from dateutil.parser import isoparse
|
||||
|
||||
from ..models.uuid import Uuid
|
||||
from ..models.unit_acceleration_format import UnitAccelerationFormat
|
||||
from ..models.api_call_status import ApiCallStatus
|
||||
from ..models.unit_acceleration_format import UnitAccelerationFormat
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="UnitAccelerationConversion")
|
||||
E = TypeVar("E", bound="UnitAccelerationConversion")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class UnitAccelerationConversion:
|
||||
""" """
|
||||
"""A unit conversion.""" # noqa: E501
|
||||
|
||||
completed_at: Union[Unset, datetime.datetime] = UNSET
|
||||
created_at: Union[Unset, datetime.datetime] = UNSET
|
||||
error: Union[Unset, str] = UNSET
|
||||
@ -41,18 +41,15 @@ class UnitAccelerationConversion:
|
||||
id = self.id
|
||||
input = self.input
|
||||
output = self.output
|
||||
output_format: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.output_format, Unset):
|
||||
output_format = self.output_format.value
|
||||
src_format: Union[Unset, str] = UNSET
|
||||
output_format = self.output_format
|
||||
if not isinstance(self.src_format, Unset):
|
||||
src_format = self.src_format.value
|
||||
src_format = self.src_format
|
||||
started_at: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.started_at, Unset):
|
||||
started_at = self.started_at.isoformat()
|
||||
status: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.status, Unset):
|
||||
status = self.status.value
|
||||
status = self.status
|
||||
updated_at: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.updated_at, Unset):
|
||||
updated_at = self.updated_at.isoformat()
|
||||
@ -62,34 +59,34 @@ class UnitAccelerationConversion:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if completed_at is not UNSET:
|
||||
field_dict['completed_at'] = completed_at
|
||||
field_dict["completed_at"] = completed_at
|
||||
if created_at is not UNSET:
|
||||
field_dict['created_at'] = created_at
|
||||
field_dict["created_at"] = created_at
|
||||
if error is not UNSET:
|
||||
field_dict['error'] = error
|
||||
field_dict["error"] = error
|
||||
if id is not UNSET:
|
||||
field_dict['id'] = id
|
||||
field_dict["id"] = id
|
||||
if input is not UNSET:
|
||||
field_dict['input'] = input
|
||||
field_dict["input"] = input
|
||||
if output is not UNSET:
|
||||
field_dict['output'] = output
|
||||
field_dict["output"] = output
|
||||
if output_format is not UNSET:
|
||||
field_dict['output_format'] = output_format
|
||||
field_dict["output_format"] = output_format
|
||||
if src_format is not UNSET:
|
||||
field_dict['src_format'] = src_format
|
||||
field_dict["src_format"] = src_format
|
||||
if started_at is not UNSET:
|
||||
field_dict['started_at'] = started_at
|
||||
field_dict["started_at"] = started_at
|
||||
if status is not UNSET:
|
||||
field_dict['status'] = status
|
||||
field_dict["status"] = status
|
||||
if updated_at is not UNSET:
|
||||
field_dict['updated_at'] = updated_at
|
||||
field_dict["updated_at"] = updated_at
|
||||
if user_id is not UNSET:
|
||||
field_dict['user_id'] = user_id
|
||||
field_dict["user_id"] = user_id
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[E], src_dict: Dict[str, Any]) -> E:
|
||||
d = src_dict.copy()
|
||||
_completed_at = d.pop("completed_at", UNSET)
|
||||
completed_at: Union[Unset, datetime.datetime]
|
||||
|
@ -2,9 +2,14 @@ from enum import Enum
|
||||
|
||||
|
||||
class UnitAccelerationFormat(str, Enum):
|
||||
METERS_PER_SECOND_SQUARED = 'meters_per_second_squared'
|
||||
FEET_PER_SECOND_SQUARED = 'feet_per_second_squared'
|
||||
STANDARD_GRAVITY = 'standard_gravity'
|
||||
"""The valid types of acceleration unit formats.""" # noqa: E501
|
||||
|
||||
"""# Acceleration in m/s^2 unit form """ # noqa: E501
|
||||
METERS_PER_SECOND_SQUARED = "meters_per_second_squared"
|
||||
"""# Acceleration in ft/s^2 unit form """ # noqa: E501
|
||||
FEET_PER_SECOND_SQUARED = "feet_per_second_squared"
|
||||
"""# Acceleration in standard gravity (g) unit form (aka where 9.80665 m/s^2 is the base unit). <https://en.wikipedia.org/wiki/Standard_gravity> """ # noqa: E501
|
||||
STANDARD_GRAVITY = "standard_gravity"
|
||||
|
||||
def __str__(self) -> str:
|
||||
return str(self.value)
|
||||
|
@ -1,20 +1,20 @@
|
||||
import datetime
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
from dateutil.parser import isoparse
|
||||
|
||||
from ..models.uuid import Uuid
|
||||
from ..models.unit_angle_format import UnitAngleFormat
|
||||
from ..models.api_call_status import ApiCallStatus
|
||||
from ..models.unit_angle_format import UnitAngleFormat
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
T = TypeVar("T", bound="UnitAngleConversion")
|
||||
D = TypeVar("D", bound="UnitAngleConversion")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class UnitAngleConversion:
|
||||
""" """
|
||||
"""A unit conversion.""" # noqa: E501
|
||||
|
||||
completed_at: Union[Unset, datetime.datetime] = UNSET
|
||||
created_at: Union[Unset, datetime.datetime] = UNSET
|
||||
error: Union[Unset, str] = UNSET
|
||||
@ -41,18 +41,15 @@ class UnitAngleConversion:
|
||||
id = self.id
|
||||
input = self.input
|
||||
output = self.output
|
||||
output_format: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.output_format, Unset):
|
||||
output_format = self.output_format.value
|
||||
src_format: Union[Unset, str] = UNSET
|
||||
output_format = self.output_format
|
||||
if not isinstance(self.src_format, Unset):
|
||||
src_format = self.src_format.value
|
||||
src_format = self.src_format
|
||||
started_at: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.started_at, Unset):
|
||||
started_at = self.started_at.isoformat()
|
||||
status: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.status, Unset):
|
||||
status = self.status.value
|
||||
status = self.status
|
||||
updated_at: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.updated_at, Unset):
|
||||
updated_at = self.updated_at.isoformat()
|
||||
@ -62,34 +59,34 @@ class UnitAngleConversion:
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if completed_at is not UNSET:
|
||||
field_dict['completed_at'] = completed_at
|
||||
field_dict["completed_at"] = completed_at
|
||||
if created_at is not UNSET:
|
||||
field_dict['created_at'] = created_at
|
||||
field_dict["created_at"] = created_at
|
||||
if error is not UNSET:
|
||||
field_dict['error'] = error
|
||||
field_dict["error"] = error
|
||||
if id is not UNSET:
|
||||
field_dict['id'] = id
|
||||
field_dict["id"] = id
|
||||
if input is not UNSET:
|
||||
field_dict['input'] = input
|
||||
field_dict["input"] = input
|
||||
if output is not UNSET:
|
||||
field_dict['output'] = output
|
||||
field_dict["output"] = output
|
||||
if output_format is not UNSET:
|
||||
field_dict['output_format'] = output_format
|
||||
field_dict["output_format"] = output_format
|
||||
if src_format is not UNSET:
|
||||
field_dict['src_format'] = src_format
|
||||
field_dict["src_format"] = src_format
|
||||
if started_at is not UNSET:
|
||||
field_dict['started_at'] = started_at
|
||||
field_dict["started_at"] = started_at
|
||||
if status is not UNSET:
|
||||
field_dict['status'] = status
|
||||
field_dict["status"] = status
|
||||
if updated_at is not UNSET:
|
||||
field_dict['updated_at'] = updated_at
|
||||
field_dict["updated_at"] = updated_at
|
||||
if user_id is not UNSET:
|
||||
field_dict['user_id'] = user_id
|
||||
field_dict["user_id"] = user_id
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||
def from_dict(cls: Type[D], src_dict: Dict[str, Any]) -> D:
|
||||
d = src_dict.copy()
|
||||
_completed_at = d.pop("completed_at", UNSET)
|
||||
completed_at: Union[Unset, datetime.datetime]
|
||||
|
@ -2,13 +2,22 @@ from enum import Enum
|
||||
|
||||
|
||||
class UnitAngleFormat(str, Enum):
|
||||
RADIAN = 'radian'
|
||||
DEGREE = 'degree'
|
||||
ARCMINUTE = 'arcminute'
|
||||
ARCSECOND = 'arcsecond'
|
||||
MILLIARCSECOND = 'milliarcsecond'
|
||||
TURN = 'turn'
|
||||
GRADIAN = 'gradian'
|
||||
"""The valid types of angle formats.""" # noqa: E501
|
||||
|
||||
"""# <https://en.wikipedia.org/wiki/Radian> """ # noqa: E501
|
||||
RADIAN = "radian"
|
||||
"""# <https://en.wikipedia.org/wiki/Degree_(angle)> """ # noqa: E501
|
||||
DEGREE = "degree"
|
||||
"""# <https://en.wikipedia.org/wiki/Minute_and_second_of_arc> """ # noqa: E501
|
||||
ARCMINUTE = "arcminute"
|
||||
"""# <https://en.wikipedia.org/wiki/Minute_and_second_of_arc> """ # noqa: E501
|
||||
ARCSECOND = "arcsecond"
|
||||
"""# <https://en.wikipedia.org/wiki/Minute_and_second_of_arc#Symbols_and_abbreviations> """ # noqa: E501
|
||||
MILLIARCSECOND = "milliarcsecond"
|
||||
"""# <https://en.wikipedia.org/wiki/Turn_(angle)> """ # noqa: E501
|
||||
TURN = "turn"
|
||||
"""# <https://en.wikipedia.org/wiki/Gradian> """ # noqa: E501
|
||||
GRADIAN = "gradian"
|
||||
|
||||
def __str__(self) -> str:
|
||||
return str(self.value)
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user