1.2.0
This commit is contained in:
1 parent
9f2c3dc81e
commit
a63ff017af
66 files changed
+1724
-339
No files matched your search
@@ -2,35 +2,55 @@ import typing as _typing
|
||||
|
||||
import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
from dynamix_sdk.utils import EmptyStr as _EmptyStr
|
||||
|
||||
|
||||
class CloudapiImageGetResultModel(
|
||||
_base.BaseAPIResultModel,
|
||||
_nested.BaseImageAPIResultNM,
|
||||
):
|
||||
class CloudapiImageGetResultModel(_base.BaseAPIResultModel):
|
||||
account_id: int
|
||||
acl: list[_typing.Any]
|
||||
arch: str
|
||||
boot_mode: _nested.BootMode | _EmptyStr | None
|
||||
bootable: bool
|
||||
cd_presented_to: dict[str, list[int]]
|
||||
ckey: str
|
||||
deleted_timestamp: int
|
||||
description: str
|
||||
drivers: list[_nested.Driver]
|
||||
enabled: bool
|
||||
grid_id: int
|
||||
guid: int
|
||||
history: list[_nested.ImageHistoryRecordAPIResultNM]
|
||||
hot_resize: bool
|
||||
id: int
|
||||
last_modified: int
|
||||
link_to: int
|
||||
milestones: int
|
||||
name: str
|
||||
network_interface_naming: _nested.NetIfaceNamingTemplate
|
||||
os_password: str | None
|
||||
os_user_name: str | None
|
||||
present_to: dict[str, int]
|
||||
provider_name: str
|
||||
purge_attempt_count: int
|
||||
res_id: str
|
||||
rescue_cd: bool
|
||||
sep_id: int
|
||||
sep_pool_name: str
|
||||
shared_with: list[int]
|
||||
size_gb: int
|
||||
snapshot_id: str = ''
|
||||
status: _nested.ImageStatus
|
||||
tech_status: _nested.ImageTechStatus
|
||||
type: _nested.ImageType
|
||||
unc_path: str
|
||||
version: str
|
||||
vm_ci_id: int
|
||||
|
||||
@property
|
||||
def boot_loader_type(self):
|
||||
if self.type in _nested.BootLoaderType._member_names_:
|
||||
return _nested.BootLoaderType[self.type]
|
||||
|
||||
@property
|
||||
def deleted_datetime(self):
|
||||
return self._get_datetime_from_timestamp(self.deleted_timestamp)
|
||||
|
||||
Reference in new issue
Block a user