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.
dynamix-python-sdk/src/dynamix_sdk/api/cloudapi/vins/get.py

60 lines
1.4 KiB

5 months ago
import dynamix_sdk.base as _base
import dynamix_sdk.api._nested as _nested
4 months ago
class CloudapiVinsGetResultModel(_base.BaseAPIResultModel):
account_id: int
account_name: str
created_by: str
created_timestamp: int
5 months ago
default_gw: str
default_qos: _nested.QOSAPIResultNM
4 months ago
deleted_by: str
deleted_timestamp: int
5 months ago
description: None | str
grid_id: int
guid: int
4 months ago
id: int
5 months ago
lock_status: _nested.LockStatus
manager_id: int
manager_type: str
milestones: int
4 months ago
name: str
net_ip: str
5 months ago
net_mask: int
pre_reservation_count: int
redundant: bool
4 months ago
rg_id: int
rg_name: str
5 months ago
secondary_vnfdev_id: int
4 months ago
status: _nested.VINSStatus
updated_by: str
updated_timestamp: int
5 months ago
user_managed: bool
vms: list[_nested.VINSVMAPIResultNM]
vnfdev: _nested.VNFDevAPIResultNM
vnfs: _nested.VNFSAPIResultNM
4 months ago
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)
5 months ago
class CloudapiVinsGetProtocol(_base.BasePostAPIFunctionProtocol):
def get(
self,
*,
vins_id: int,
) -> CloudapiVinsGetResultModel:
...