@ -27,18 +27,18 @@ class AuthSession:
|
||||
created_at: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.created_at, Unset):
|
||||
created_at = self.created_at.isoformat()
|
||||
email = self.email
|
||||
id = self.id
|
||||
image = self.image
|
||||
ip_address = self.ip_address
|
||||
is_valid = self.is_valid
|
||||
token = self.token
|
||||
user_id = self.user_id
|
||||
email = self.email
|
||||
id = self.id
|
||||
image = self.image
|
||||
ip_address = self.ip_address
|
||||
is_valid = self.is_valid
|
||||
token = self.token
|
||||
user_id = self.user_id
|
||||
|
||||
field_dict: Dict[str, Any] = {}
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if created_at is not UNSET:
|
||||
field_dict: Dict[str, Any] = {}
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if created_at is not UNSET:
|
||||
field_dict['created_at'] = created_at
|
||||
if email is not UNSET:
|
||||
field_dict['email'] = email
|
||||
|
@ -17,14 +17,14 @@ class ErrorMessage:
|
||||
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
code = self.code
|
||||
message = self.message
|
||||
status = self.status
|
||||
code = self.code
|
||||
message = self.message
|
||||
status = self.status
|
||||
|
||||
field_dict: Dict[str, Any] = {}
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if code is not UNSET:
|
||||
field_dict: Dict[str, Any] = {}
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if code is not UNSET:
|
||||
field_dict['code'] = code
|
||||
if message is not UNSET:
|
||||
field_dict['message'] = message
|
||||
|
@ -33,10 +33,10 @@ class FileConversion:
|
||||
created_at: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.created_at, Unset):
|
||||
created_at = self.created_at.isoformat()
|
||||
id = self.id
|
||||
output = self.output
|
||||
output_format: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.output_format, Unset):
|
||||
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
|
||||
if not isinstance(self.src_format, Unset):
|
||||
|
@ -19,16 +19,16 @@ class GPUDevice:
|
||||
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
id = self.id
|
||||
memory_bus_width = self.memory_bus_width
|
||||
memory_clock_rate = self.memory_clock_rate
|
||||
name = self.name
|
||||
peak_memory_bandwidth = self.peak_memory_bandwidth
|
||||
id = self.id
|
||||
memory_bus_width = self.memory_bus_width
|
||||
memory_clock_rate = self.memory_clock_rate
|
||||
name = self.name
|
||||
peak_memory_bandwidth = self.peak_memory_bandwidth
|
||||
|
||||
field_dict: Dict[str, Any] = {}
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if id is not UNSET:
|
||||
field_dict: Dict[str, Any] = {}
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if id is not UNSET:
|
||||
field_dict['id'] = id
|
||||
if memory_bus_width is not UNSET:
|
||||
field_dict['memory_bus_width'] = memory_bus_width
|
||||
|
@ -26,24 +26,24 @@ class Instance:
|
||||
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
cpu_platform = self.cpu_platform
|
||||
description = self.description
|
||||
environment: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.environment, Unset):
|
||||
environment = self.environment.value
|
||||
git_hash = self.git_hash
|
||||
hostname = self.hostname
|
||||
id = self.id
|
||||
image = self.image
|
||||
ip_address = self.ip_address
|
||||
machine_type = self.machine_type
|
||||
name = self.name
|
||||
zone = self.zone
|
||||
cpu_platform = self.cpu_platform
|
||||
description = self.description
|
||||
environment: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.environment, Unset):
|
||||
environment = self.environment.value
|
||||
git_hash = self.git_hash
|
||||
hostname = self.hostname
|
||||
id = self.id
|
||||
image = self.image
|
||||
ip_address = self.ip_address
|
||||
machine_type = self.machine_type
|
||||
name = self.name
|
||||
zone = self.zone
|
||||
|
||||
field_dict: Dict[str, Any] = {}
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if cpu_platform is not UNSET:
|
||||
field_dict: Dict[str, Any] = {}
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if cpu_platform is not UNSET:
|
||||
field_dict['cpu_platform'] = cpu_platform
|
||||
if description is not UNSET:
|
||||
field_dict['description'] = description
|
||||
|
Reference in New Issue
Block a user