You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.4 KiB
60 lines
1.4 KiB
import dynamix_sdk.base as _base
|
|
import dynamix_sdk.api._nested as _nested
|
|
|
|
|
|
class CloudapiVinsGetResultModel(_base.BaseAPIResultModel):
|
|
account_id: int
|
|
account_name: str
|
|
created_by: str
|
|
created_timestamp: int
|
|
default_gw: str
|
|
default_qos: _nested.QOSAPIResultNM
|
|
deleted_by: str
|
|
deleted_timestamp: int
|
|
description: None | str
|
|
grid_id: int
|
|
guid: int
|
|
id: int
|
|
lock_status: _nested.LockStatus
|
|
manager_id: int
|
|
manager_type: str
|
|
milestones: int
|
|
name: str
|
|
net_ip: str
|
|
net_mask: int
|
|
pre_reservation_count: int
|
|
redundant: bool
|
|
rg_id: int
|
|
rg_name: str
|
|
secondary_vnfdev_id: int
|
|
status: _nested.VINSStatus
|
|
updated_by: str
|
|
updated_timestamp: int
|
|
user_managed: bool
|
|
vms: list[_nested.VINSVMAPIResultNM]
|
|
vnfdev: _nested.VNFDevAPIResultNM
|
|
vnfs: _nested.VNFSAPIResultNM
|
|
vxlan_id: int
|
|
zone_id: int
|
|
|
|
@property
|
|
def created_datetime(self):
|
|
return self._get_datetime_from_timestamp(self.created_timestamp)
|
|
|
|
@property
|
|
def deleted_datetime(self):
|
|
return self._get_datetime_from_timestamp(self.deleted_timestamp)
|
|
|
|
@property
|
|
def updated_datetime(self):
|
|
return self._get_datetime_from_timestamp(self.updated_timestamp)
|
|
|
|
|
|
class CloudapiVinsGetProtocol(_base.BasePostAPIFunctionProtocol):
|
|
def get(
|
|
self,
|
|
*,
|
|
vins_id: int,
|
|
) -> CloudapiVinsGetResultModel:
|
|
...
|