1.5.0
This commit is contained in:
96
CHANGELOG.md
96
CHANGELOG.md
@@ -1,13 +1,99 @@
|
||||
# Список изменений в версии 1.4.1
|
||||
# Список изменений в версии 1.5.0
|
||||
|
||||
## Добавлено
|
||||
| Идентификатор<br>задачи | Описание |
|
||||
| --- | --- |
|
||||
| BPYS-1059 | Функции `cloudapi.account.get`, `cloudapi.rg.get`, `cloudbroker.account.get`: в модели результата добавлено поле `acl.user_email`. |
|
||||
| BPYS-1059 | Функции `cloudapi.account.list_deleted`, `cloudapi.account.list`, `cloudapi.rg.list_deleted`, `cloudapi.rg.list`, `cloudbroker.account.list_deleted`, `cloudbroker.account.list`: в модели результата добавлено поле `data.acl.user_email`. |
|
||||
| BPYS-1059 | Функции `cloudapi.compute.get`, `cloudapi.k8s.get`: в модели результата добавлено поле `acl.account.user_email`. |
|
||||
| BPYS-1059 | Функции `cloudapi.compute.get`, `cloudapi.k8s.get`: в модели результата добавлено поле `acl.rg.user_email`. |
|
||||
| BPYS-1059 | Функции `cloudapi.compute.get`: в модель результата добавлено поле `acl.vm.user_email`. |
|
||||
| BPYS-1059 | Функция `cloudapi.compute.user_list`: в модель результата добавлено поле `data.acl.account.user_email`. |
|
||||
| BPYS-1059 | Функция `cloudapi.compute.user_list`: в модель результата добавлено поле `data.acl.rg.user_email`. |
|
||||
| BPYS-1059 | Функция `cloudapi.compute.user_list`: в модель результата добавлено поле `data.acl.vm.user_email`. |
|
||||
| BPYS-1059 | Функция `cloudapi.k8s.get`: в модель результата добавлено поле `acl.k8s.user_email`. |
|
||||
| BPYS-1057 | Функция `cloudbroker.account.get`: в модель результата добавлено поле `updated_by`. |
|
||||
| BPYS-1056 | Функция `cloudapi.account.get`: в модель результата добавлено поле `updated_by`. |
|
||||
| BPYS-1058 | Функции `cloudbroker.account.list`, `cloudbroker.account.list_deleted`: в модели результата добавлено поле `data.updated_by`. |
|
||||
| BPYS-1064 | Функции `cloudapi.compute.list`, `cloudapi.compute.list_deleted`: в модели результата добавлено поле `data.weight`. |
|
||||
| BPYS-1062 | Функция `cloudapi.compute.get`: в модель результата добавлено поле `disks.block_size`. |
|
||||
| BPYS-1063 | Функция `cloudapi.compute.get`: в модель результата добавлено поле `weight`. |
|
||||
| BPYS-1068 | Функция `cloudapi.account.list`, `cloudapi.account.list_deleted`: в модель результата добавлено поле `deleted_by`. |
|
||||
| BPYS-1060 | Функция `cloudapi.disks.get`: в модель результата добавлено поле `block_size`. |
|
||||
| BPYS-1061 | Функции `cloudapi.disks.list`, `cloudapi.disks.list_deleted`: в модели результата добавлено поле `data.block_size`. |
|
||||
| BPYS-1111 | Функции `cloudbroker.storage_policy.add_pool`: в модель результата добавлено поле `usage`. |
|
||||
| BPYS-1106 | Функции `cloudapi.disks.list_unattached`: в модель результата добавлено поле `data.block_size`. |
|
||||
| BPYS-1112 | Функции `cloudbroker.storage_policy.delete_pool`: в модель результата добавлено поле `usage`. |
|
||||
| BPYS-1113 | Функции `cloudbroker.storage_policy.update`: в модель результата добавлено поле `usage`. |
|
||||
| BPYS-1074 | Функция `cloudapi.disks.list`: добавлен параметр `rg_id`. |
|
||||
| BPYS-1073 | Функция `cloudapi.disks.list`: добавлен параметр `vm_id`. |
|
||||
| BPYS-1121 | Функция `cloudapi.account.list`, `cloudapi.account.list_deleted`: в модель результата добавлено поле `data.updated_by`. |
|
||||
| BPYS-1175 | Функции `cloudapi.disks.list`, `cloudapi.disks.list_deleted`: в модели результата добавлено поле `data.independent`. |
|
||||
| BPYS-1123 | Функция `cloudapi.disks.get`: в модель результата добавлено поле `independent`. |
|
||||
| BPYS-1176 | Функции `cloudapi.disks.list_unattached`: в модель результата добавлено поле `data.independent`. |
|
||||
| BPYS-1122 | Функция `cloudapi.compute.get`: в модель результата добавлено поле `disks.independent`. |
|
||||
| BPYS-1125 | Функция `cloudapi.image.get`: в модель результата добавлено поле `independent`. |
|
||||
| BPYS-1195 | Функция `system.usermanager.whoami`: в модель результата добавлено поле `bro_jwt`. |
|
||||
| BPYS-1192 | Функция `cloudbroker.account.update`: добавлен параметр `cpu_allocation_parameter`. |
|
||||
| BPYS-1216 | Функция `cloudapi.disks.get`: в модель результата добавлено поле `provision`. |
|
||||
| BPYS-1215 | Функции `cloudapi.disks.list`, `cloudapi.disks.list_deleted`: в модель результата добавлено поле `data.provision`. |
|
||||
| BPYS-1217 | Функции `cloudapi.disks.list_unattached`: в модель результата добавлено поле `data.provision`. |
|
||||
| BPYS-1214 | Функции `cloudapi.compute.get`: в модель результата добавлено поле `disks.provision`. |
|
||||
| BPYS-1237 | Функции `cloudbroker.storage_policy.add_pool`, `cloudapi.storage_policy.list`, `cloudbroker.storage_policy.delete_pool`, `cloudbroker.storage_policy.get`, `cloudapi.storage_policy.get`, `cloudbroker.storage_policy.update`, `cloudbroker.storage_policy.list`: в перечисляемый тип `StoragePolicyStatus` добавлен атрибут `DESTROYED`. |
|
||||
| BPYS-1240 | Функция `cloudapi.image.get`: в модель результата добавлено поле `links_to`. |
|
||||
| BPYS-1250 | Функции `cloudapi.image.get`, `cloudapi.image.list`: в перечисляемый тип `ImageType` добавлен атрибут `MULTI`. |
|
||||
| BPYS-1257 | Функция `cloudapi.zone.get`: в модель результата добавлено поле `drs`. |
|
||||
| BPYS-1258 | Функция `cloudapi.zone.get`: в модель результата добавлено поле `drs_uid`. |
|
||||
| BPYS-1259 | Функция `cloudapi.zone.get`: в модель результата добавлено поле `drs_dx_app_id`. |
|
||||
| BPYS-1260 | Функция `cloudapi.zone.get`: в модель результата добавлено поле `drs_dx_url`. |
|
||||
| BPYS-1261 | Функция `cloudapi.zone.get`: в модель результата добавлено поле `drs_name`. |
|
||||
| BPYS-1262 | Функция `cloudapi.zone.get`: в модель результата добавлено поле `drs_dx_sso_url`. |
|
||||
| BPYS-1264 | Функция `cloudapi.zone.list`: в модель результата добавлено поле `data.drs`. |
|
||||
| BPYS-1265 | Функция `cloudapi.zone.list`: в модель результата добавлено поле `data.drs_uid`. |
|
||||
| BPYS-1266 | Функция `cloudapi.zone.list`: в модель результата добавлено поле `data.drs_dx_app_id`. |
|
||||
| BPYS-1267 | Функция `cloudapi.zone.list`: в модель результата добавлено поле `data.drs_dx_url`. |
|
||||
| BPYS-1268 | Функция `cloudapi.zone.list`: в модель результата добавлено поле `data.drs_name`. |
|
||||
| BPYS-1269 | Функция `cloudapi.zone.list`: в модель результата добавлено поле `data.drs_dx_sso_url`. |
|
||||
| BPYS-1285 | Функция `cloudapi.vins.create_in_rg`: добавлен параметр `security_group_mode`. |
|
||||
| BPYS-1284 | Функция `cloudapi.vins.create_in_account`: добавлен параметр `security_group_mode`. |
|
||||
| BPYS-1275 | Функция `cloudapi.locations.list`: в модель результата добавлено поле `data.zero_access_enabled`. |
|
||||
| BPYS-1311 | Функция `cloudapi.zone.list`: в модель результата добавлено поле `data.drs_dx_ssl_skip_verify`. |
|
||||
| BPYS-1312 | Функция `cloudapi.zone.list`: в модель результата добавлено поле `data.drs_bvs_domain`. |
|
||||
| BPYS-1313 | Функция `cloudapi.zone.list`: в модель результата добавлено поле `data.drs_broadcast_ip_addr`. |
|
||||
| BPYS-1314 | Функция `cloudapi.zone.list`: в модель результата добавлено поле `data.drs_ping_ip_addr`. |
|
||||
| BPYS-1323 | Функция `cloudapi.zone.list`: в модель результата добавлено поле `data.drs_dx_sso_type`. |
|
||||
| BPYS-1307 | Функция `cloudapi.zone.get`: в модель результата добавлено поле `drs_dx_ssl_skip_verify`. |
|
||||
| BPYS-1308 | Функция `cloudapi.zone.get`: в модель результата добавлено поле `drs_bvs_domain`. |
|
||||
| BPYS-1309 | Функция `cloudapi.zone.get`: в модель результата добавлено поле `drs_broadcast_ip_addr`. |
|
||||
| BPYS-1310 | Функция `cloudapi.zone.get`: в модель результата добавлено поле `drs_ping_ip_addr`. |
|
||||
| BPYS-1321 | Функция `cloudapi.locations.list`: в модель результата добавлено поле `data.bro_enabled`. |
|
||||
| BPYS-1322 | Функция `cloudapi.zone.get`: в модель результата добавлено поле `drs_dx_sso_type`. |
|
||||
|
||||
## Удалено
|
||||
| Идентификатор<br>задачи | Описание |
|
||||
| --- | --- |
|
||||
| BPYS-1044 | Удалена функция `cloudbroker.compute.clone_abort`. |
|
||||
| BPYS-1046 | Функция `cloudapi.kvmx86.create`: удален параметр `system_name`. |
|
||||
| BPYS-1047 | Функция `cloudapi.kvmx86.create`: удален параметр `ipa_type`. |
|
||||
| BPYS-1072 | Функция `cloudapi.compute.disk_attach`: удален параметр `disk_type`. |
|
||||
| BPYS-1071 | Функция `cloudapi.compute.disk_add`: удален параметр `disk_type`. |
|
||||
| BPYS-1080 | Функция `cloudapi.disks.get`: из модели результата удалено поле `type`. |
|
||||
| BPYS-1083 | Функция `cloudapi.disks.list`: удален параметр `type`. |
|
||||
| BPYS-1078 | Функция `cloudapi.disks.list_unattached`: из модели результата удалено поле `data.type`. |
|
||||
| BPYS-1075 | Функции `cloudapi.disks.list`, `cloudapi.disks.list_deleted`: из модели результата удалено поле `data.type`. |
|
||||
| BPYS-1079 | Функция `cloudapi.disks.list_unattached`: удален параметр `type`. |
|
||||
| BPYS-1076 | Удалена функция `cloudapi.disks.list_types`. |
|
||||
| BPYS-1084 | Функция `cloudapi.disks.list_deleted`: удален параметр `type`. |
|
||||
| BPYS-1116 | Функция `cloudapi.compute.get`: из модели результата удалено поле `disks.type`. |
|
||||
| BPYS-891 | Функции `cloudapi.storage_policy.get`, `cloudbroker.storage_policy.add_pool`, `cloudbroker.storage_policy.delete_pool`, `cloudbroker.storage_policy.update`: в модели результата у поля `sep_pools.sep_tech_status` изменен тип с `SEPTechStatus \| None` на `SEPTechStatus`. |
|
||||
| BPYS-1127 | Удалена функция `cloudapi.compute.clone_abort`. |
|
||||
| BPYS-1129 | Удалена функция `cloudapi.k8s.worker_add`. |
|
||||
| BPYS-1181 | Удалена функция `cloudapi.bservice.group_resize`. |
|
||||
| BPYS-1167 | Функция `cloudapi.compute.abort_shared_snapshot_merge`: тип результата изменен с `bool` на `str`. |
|
||||
| BPYS-1296 | Функция `cloudapi.compute.get`: из модели результата удалено поле `devices` в связи с переименованием в `pci_devices`. |
|
||||
| BPYS-1290 | Функция `cloudapi.lb.make_highly_available`: тип результата изменён с `int` на `bool`. |
|
||||
|
||||
## Исправлено
|
||||
| Идентификатор<br>задачи | Описание |
|
||||
| --- | --- |
|
||||
| BPYS-1101 | Функция `cloudapi.disks.list_unattached`: вызов функции завершался ошибкой валидации поля `data.0.blkdiscard`. В модель результата добавлено поле `data.blkdiscard`. |
|
||||
| BPYS-1100 | Функция `cloudapi.disks.list_unattached`: вызов функции завершался ошибкой валидации поля `data.0.cache`. В модель результата добавлено поле `data.cache_mode`. |
|
||||
| BPYS-1102 | Функция `cloudapi.disks.list_unattached`: вызов функции завершался ошибкой валидации поля `data.0.storage_policy_id`. В модель результата добавлено поле `data.storage_policy_id`. |
|
||||
| BPYS-1103 | Функция `cloudapi.disks.list_unattached`: вызов функции завершался ошибкой валидации поля `data.0.to_clean`. В модель результата добавлено поле `data.to_clean`. |
|
||||
| BPYS-1530 | Функция `cloudapi.k8s.get`: для кластера который был удален, вызов функции завершался ошибкой валидации полей `k8sGroups.masters.detailedInfo`, `k8sGroups.masters.id`, `k8sGroups.masters.num`, `k8sGroups.masters.cpu`, `k8sGroups.masters.ram`, `k8sGroups.masters.disk`, `k8sGroups.masters.name`. В модели результата тип поля `node_groups.master` изменён с `K8sNodeGroupAPIResultNM` на `K8sNodeGroupAPIResultNM \| dict`. |
|
||||
|
||||
12
README.md
12
README.md
@@ -35,6 +35,7 @@
|
||||
|
||||
| Версия платформы | Версия SDK |
|
||||
| --- | --- |
|
||||
| 4.6.0 | 1.5.x |
|
||||
| 4.5.0 | 1.4.x |
|
||||
| 4.4.0 | 1.3.x |
|
||||
| 4.4.0 build 963 | 1.2.x |
|
||||
@@ -609,7 +610,6 @@ class RequestException(Exception):
|
||||
- /cloudapi/bservice/groupParentAdd
|
||||
- /cloudapi/bservice/groupParentRemove
|
||||
- /cloudapi/bservice/groupRemove
|
||||
- /cloudapi/bservice/groupResize
|
||||
- /cloudapi/bservice/groupStart
|
||||
- /cloudapi/bservice/groupStop
|
||||
- /cloudapi/bservice/groupUpdate
|
||||
@@ -651,7 +651,6 @@ class RequestException(Exception):
|
||||
- /cloudapi/compute/changeIp
|
||||
- /cloudapi/compute/changeLinkState
|
||||
- /cloudapi/compute/clone
|
||||
- /cloudapi/compute/clone_abort
|
||||
- /cloudapi/compute/createTemplate
|
||||
- /cloudapi/compute/delete
|
||||
- /cloudapi/compute/deleteCustomFields
|
||||
@@ -716,7 +715,6 @@ class RequestException(Exception):
|
||||
- /cloudapi/disks/limitIO
|
||||
- /cloudapi/disks/list
|
||||
- /cloudapi/disks/listDeleted
|
||||
- /cloudapi/disks/listTypes
|
||||
- /cloudapi/disks/listUnattached
|
||||
- /cloudapi/disks/rename
|
||||
- /cloudapi/disks/resize2
|
||||
@@ -797,7 +795,6 @@ class RequestException(Exception):
|
||||
- /cloudapi/k8s/stop
|
||||
- /cloudapi/k8s/update
|
||||
- /cloudapi/k8s/updateWorkerNodesMetaData
|
||||
- /cloudapi/k8s/workerAdd
|
||||
- /cloudapi/k8s/workerReset
|
||||
- /cloudapi/k8s/workerRestart
|
||||
- /cloudapi/k8s/workersGroupAdd
|
||||
@@ -1020,7 +1017,6 @@ class RequestException(Exception):
|
||||
- /cloudbroker/compute/change_read_only
|
||||
- /cloudbroker/compute/change_security_groups
|
||||
- /cloudbroker/compute/clone
|
||||
- /cloudbroker/compute/clone_abort
|
||||
- /cloudbroker/compute/migrate_storage_list
|
||||
- /cloudbroker/compute/start_migration_in
|
||||
- /cloudbroker/compute/start_migration_out
|
||||
@@ -1045,9 +1041,9 @@ class RequestException(Exception):
|
||||
|
||||
<details><summary>node</summary>
|
||||
|
||||
- cloudbroker/node/add_ssh_identity
|
||||
- cloudbroker/node/get_ssh_identity
|
||||
- cloudbroker/node/update_description
|
||||
- /cloudbroker/node/add_ssh_identity
|
||||
- /cloudbroker/node/get_ssh_identity
|
||||
- /cloudbroker/node/update_description
|
||||
|
||||
</details>
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ authors = [
|
||||
{name = "Vladislav Nesterov"},
|
||||
{name = "Stanislav Karimov"},
|
||||
]
|
||||
version = "1.4.1"
|
||||
version = "1.5.0"
|
||||
|
||||
readme = "README.md"
|
||||
|
||||
|
||||
@@ -184,11 +184,6 @@ class VMTechStatus(str, _AutoNameEnum):
|
||||
STOPPING = _enum_auto()
|
||||
|
||||
|
||||
class DiskType(str, _AutoNameEnum):
|
||||
BOOT = 'B'
|
||||
DATA = 'D'
|
||||
|
||||
|
||||
class AccountStatus(str, _AutoNameEnum):
|
||||
CONFIRMED = _enum_auto()
|
||||
DISABLED = _enum_auto()
|
||||
@@ -221,6 +216,7 @@ class ImageStatus(str, _AutoNameEnum):
|
||||
class ImageType(str, _AutoNameEnum):
|
||||
CDROM = 'cdrom'
|
||||
LINUX = 'linux'
|
||||
MULTI = 'multi'
|
||||
UNKNOWN = 'unknown'
|
||||
VIRTUAL = 'virtual'
|
||||
WINDOWS = 'windows'
|
||||
@@ -557,6 +553,7 @@ class TrunkStatus(str, _AutoNameEnum):
|
||||
|
||||
|
||||
class StoragePolicyStatus(str, _AutoNameEnum):
|
||||
DESTROYED = _enum_auto()
|
||||
DISABLED = _enum_auto()
|
||||
ENABLED = _enum_auto()
|
||||
|
||||
@@ -624,3 +621,25 @@ class SEPTechStatus(str, _AutoNameEnum):
|
||||
class DiskCacheMode(str, _AutoNameEnum):
|
||||
NONE = 'none'
|
||||
WRITETHROUGH = 'writethrough'
|
||||
|
||||
|
||||
class DiskBlockSize(str, _AutoNameEnum):
|
||||
VAL_512 = '512'
|
||||
VAL_512E = '512e'
|
||||
VAL_4K = '4k'
|
||||
|
||||
|
||||
class CPUAllocationParam(str, _AutoNameEnum):
|
||||
STRICT = 'strict'
|
||||
LOOSE = 'loose'
|
||||
NONE = ''
|
||||
|
||||
|
||||
class DiskProvisionType(str, _AutoNameEnum):
|
||||
THICK = 'thick'
|
||||
THIN = 'thin'
|
||||
|
||||
|
||||
class DRSDXSSOType(str, _AutoNameEnum):
|
||||
BVS = 'bvs'
|
||||
DECS3O = 'decs3o'
|
||||
|
||||
@@ -14,6 +14,7 @@ class AccessAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
user_name: str
|
||||
|
||||
can_be_deleted: None | bool = None
|
||||
user_email: str | None = None
|
||||
user_emails: list[str] | None = None
|
||||
|
||||
|
||||
@@ -197,6 +198,7 @@ class DiskForCAComputeGetAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
account_id: int
|
||||
acl: dict
|
||||
blkdiscard: bool
|
||||
block_size: _enums.DiskBlockSize
|
||||
boot_partition: int
|
||||
bus_num: int
|
||||
cache_mode: _enums.DiskCacheMode
|
||||
@@ -214,6 +216,7 @@ class DiskForCAComputeGetAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
id: int
|
||||
image_id: int
|
||||
image_ids: list[int]
|
||||
independent: bool
|
||||
io_tune: IOTuneAPIResultNM
|
||||
iqn: str
|
||||
login: str
|
||||
@@ -224,6 +227,7 @@ class DiskForCAComputeGetAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
password: str
|
||||
pci_slot_num: int
|
||||
present_to: dict[str, int]
|
||||
provision: _enums.DiskProvisionType
|
||||
purge_timestamp: int
|
||||
reality_device_number: int
|
||||
replication: ReplicationAPIResultNM | dict
|
||||
@@ -240,7 +244,6 @@ class DiskForCAComputeGetAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
storage_policy_id: int
|
||||
tech_status: _enums.DiskTechStatus
|
||||
to_clean: bool
|
||||
type: _enums.DiskType
|
||||
updated_by: str
|
||||
updated_by: str
|
||||
updated_timestamp: int = 0
|
||||
@@ -271,6 +274,7 @@ class DiskForListAndListDeletedAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
account_name: str
|
||||
acl: dict
|
||||
blkdiscard: bool
|
||||
block_size: _enums.DiskBlockSize
|
||||
cache_mode: _enums.DiskCacheMode
|
||||
created_by: str
|
||||
created_timestamp: int
|
||||
@@ -283,12 +287,14 @@ class DiskForListAndListDeletedAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
id: int
|
||||
image_id: int
|
||||
image_ids: list[int]
|
||||
independent: bool
|
||||
io_tune: IOTuneAPIResultNM
|
||||
milestones: int
|
||||
name: str
|
||||
params: str
|
||||
parent_id: int
|
||||
present_to: dict[str, int]
|
||||
provision: _enums.DiskProvisionType
|
||||
purge_timestamp: int
|
||||
replication: ReplicationAPIResultNM | dict
|
||||
res_id: str
|
||||
@@ -306,7 +312,6 @@ class DiskForListAndListDeletedAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
storage_policy_id: int
|
||||
tech_status: _enums.DiskTechStatus
|
||||
to_clean: bool
|
||||
type: _enums.DiskType
|
||||
updated_by: str
|
||||
vm_id: int | None
|
||||
vm_name: str | None
|
||||
@@ -340,6 +345,7 @@ class DiskForListUnattachedAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
acl: dict
|
||||
blkdiscard: bool
|
||||
boot_partition: int
|
||||
block_size: _enums.DiskBlockSize
|
||||
created_timestamp: int
|
||||
deleted_timestamp: int
|
||||
description: str
|
||||
@@ -348,6 +354,7 @@ class DiskForListUnattachedAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
cache_mode: _enums.DiskCacheMode
|
||||
grid_id: int
|
||||
guid: int
|
||||
independent: bool
|
||||
id: int
|
||||
image_id: int
|
||||
image_ids: list[int]
|
||||
@@ -360,6 +367,7 @@ class DiskForListUnattachedAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
parent_id: int
|
||||
password: str
|
||||
present_to: dict[str, int]
|
||||
provision: _enums.DiskProvisionType
|
||||
purge_attempt_count: int
|
||||
purge_timestamp: int
|
||||
reality_device_number: int
|
||||
@@ -379,7 +387,6 @@ class DiskForListUnattachedAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
storage_policy_id: int
|
||||
tech_status: _enums.DiskTechStatus
|
||||
to_clean: bool
|
||||
type: _enums.DiskType
|
||||
updated_timestamp: int = 0
|
||||
|
||||
@_base.computed_field
|
||||
@@ -468,11 +475,13 @@ class ResourceGroupAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
class AccountForCAAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
acl: list[AccessAPIResultNM]
|
||||
created_timestamp: int
|
||||
deleted_by: str
|
||||
deleted_timestamp: int
|
||||
description: str
|
||||
id: int
|
||||
name: str
|
||||
status: _enums.AccountStatus
|
||||
updated_by: str
|
||||
updated_timestamp: int
|
||||
vm_features: list[_enums.VMFeature]
|
||||
zone_ids: list[int]
|
||||
@@ -607,6 +616,7 @@ class VMAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
vins_count: int
|
||||
vm_ci_id: int
|
||||
guest_agent: GuestAgentAPIResultNM
|
||||
weight: int
|
||||
zone_id: int
|
||||
|
||||
@_base.computed_field
|
||||
@@ -1149,12 +1159,6 @@ class SEPPoolAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
system: str | bool
|
||||
|
||||
|
||||
class SEPAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
sep_id: int
|
||||
sep_name: str
|
||||
pools: list[SEPPoolAPIResultNM]
|
||||
|
||||
|
||||
class LocationAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
auth_broker: list[_enums.AuthBroker]
|
||||
flag: str
|
||||
@@ -1165,6 +1169,8 @@ class LocationAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
name: str
|
||||
network_modes: list[str]
|
||||
sdn_support: bool
|
||||
zero_access_enabled: bool
|
||||
bro_enabled: bool
|
||||
|
||||
|
||||
class AffinityRelationsAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
@@ -1253,7 +1259,7 @@ class K8sNodeGroupAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
|
||||
|
||||
class K8sNodeGroupsAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
master: K8sNodeGroupAPIResultNM
|
||||
master: K8sNodeGroupAPIResultNM | dict
|
||||
worker: list[K8sNodeGroupAPIResultNM]
|
||||
|
||||
|
||||
@@ -1388,12 +1394,23 @@ class ZoneForListAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
created_timestamp: int
|
||||
deletable: bool
|
||||
description: str
|
||||
drs_broadcast_ip_addr: str
|
||||
drs_bvs_domain: str
|
||||
drs_dx_app_id: str
|
||||
drs_dx_ssl_skip_verify: bool
|
||||
drs_dx_sso_type: _enums.DRSDXSSOType
|
||||
drs_dx_sso_url: str
|
||||
drs_dx_url: str
|
||||
drs_name: str
|
||||
drs_uid: str
|
||||
drs: bool
|
||||
grid_id: int
|
||||
guid: int
|
||||
id: int
|
||||
name: str
|
||||
node_auto_start: bool
|
||||
node_ids: list[int]
|
||||
drs_ping_ip_addr: str
|
||||
status: _enums.ZoneStatus
|
||||
updated_timestamp: int
|
||||
|
||||
@@ -1457,7 +1474,7 @@ class SEPPoolsAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
pool_names: list[str]
|
||||
sep_id: int
|
||||
sep_name: str | None = None
|
||||
sep_tech_status: _enums.SEPTechStatus | None = None
|
||||
sep_tech_status: _enums.SEPTechStatus
|
||||
|
||||
|
||||
class TenantIDsAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
@@ -1721,6 +1738,7 @@ class AccountForCBAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
status: _enums.AccountStatus
|
||||
storage_policy_ids: list[int]
|
||||
sep_pools: list[str]
|
||||
updated_by: str
|
||||
updated_timestamp: int
|
||||
version: int
|
||||
vm_features: list[_enums.VMFeature]
|
||||
|
||||
@@ -27,6 +27,7 @@ class CloudapiAccountGetResultModel(_base.BaseAPIResultModel):
|
||||
status: _nested.AccountStatus
|
||||
storage_policy_ids: list[int]
|
||||
sep_pools: list[str]
|
||||
updated_by: str
|
||||
updated_timestamp: int
|
||||
version: int
|
||||
vins_count: int
|
||||
|
||||
@@ -10,7 +10,6 @@ from .group_get import *
|
||||
from .group_parent_add import *
|
||||
from .group_parent_remove import *
|
||||
from .group_remove import *
|
||||
from .group_resize import *
|
||||
from .group_start import *
|
||||
from .group_stop import *
|
||||
from .group_update import *
|
||||
@@ -41,7 +40,6 @@ class CloudapiBserviceAPI(
|
||||
CloudapiBserviceGroupParentAddProtocol,
|
||||
CloudapiBserviceGroupParentRemoveProtocol,
|
||||
CloudapiBserviceGroupRemoveProtocol,
|
||||
CloudapiBserviceGroupResizeProtocol,
|
||||
CloudapiBserviceGroupStartProtocol,
|
||||
CloudapiBserviceGroupStopProtocol,
|
||||
CloudapiBserviceGroupUpdateExtnetProtocol,
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiBserviceGroupResizeResultInt(_base.BaseAPIResultInt):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiBserviceGroupResizeProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
):
|
||||
def group_resize(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
bsgroup_id: int,
|
||||
chipset: _nested.Chipset = _nested.Chipset.Q35,
|
||||
count_change_mode: _nested.CountChangeMode = (
|
||||
_nested.CountChangeMode.RELATIVE
|
||||
),
|
||||
vm_count: int,
|
||||
) -> CloudapiBserviceGroupResizeResultInt:
|
||||
...
|
||||
@@ -20,7 +20,6 @@ from .change_mac import *
|
||||
from .change_mtu import *
|
||||
from .change_security_groups import *
|
||||
from .clone import *
|
||||
from .clone_abort import *
|
||||
from .create_template import *
|
||||
from .delete import *
|
||||
from .delete_custom_fields import *
|
||||
@@ -96,7 +95,6 @@ class CloudapiComputeAPI(
|
||||
CloudapiComputeChangeMacProtocol,
|
||||
CloudapiComputeChangeMtuProtocol,
|
||||
CloudapiComputeChangeSecurityGroupsProtocol,
|
||||
CloudapiComputeCloneAbortProtocol,
|
||||
CloudapiComputeCloneProtocol,
|
||||
CloudapiComputeCreateTemplateProtocol,
|
||||
CloudapiComputeDeleteCustomFieldsProtocol,
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeAbortSharedSnapshotMergeResultBool(
|
||||
_base.BaseAPIResultBool,
|
||||
class CloudapiComputeAbortSharedSnapshotMergeResultStr(
|
||||
_base.BaseAPIResultStr,
|
||||
):
|
||||
pass
|
||||
|
||||
@@ -15,5 +15,5 @@ class CloudapiComputeAbortSharedSnapshotMergeProtocol(
|
||||
*,
|
||||
vm_id: int,
|
||||
label: str,
|
||||
) -> CloudapiComputeAbortSharedSnapshotMergeResultBool:
|
||||
) -> CloudapiComputeAbortSharedSnapshotMergeResultStr:
|
||||
...
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeCloneAbortResultBool(
|
||||
_base.BaseAPIResultBool,
|
||||
):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeCloneAbortProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
):
|
||||
def clone_abort(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
) -> CloudapiComputeCloneAbortResultBool:
|
||||
...
|
||||
@@ -1,5 +1,4 @@
|
||||
import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiComputeDiskAddResultInt(_base.BaseAPIResultInt):
|
||||
@@ -14,7 +13,6 @@ class CloudapiComputeDiskAddProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
name: str,
|
||||
disk_size_gb: int,
|
||||
storage_policy_id: int,
|
||||
disk_type: _nested.DiskType = _nested.DiskType.DATA,
|
||||
sep_id: int | None = None,
|
||||
sep_pool_name: str | None = None,
|
||||
description: str | None = None,
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiComputeDiskAttachResultBool(_base.BaseAPIResultBool):
|
||||
@@ -12,7 +11,6 @@ class CloudapiComputeDiskAttachProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
*,
|
||||
vm_id: int,
|
||||
disk_id: int,
|
||||
disk_type: _nested.DiskType = _nested.DiskType.DATA,
|
||||
pci_slot_num_hex: str | None = None,
|
||||
bus_num_hex: str | None = None,
|
||||
) -> CloudapiComputeDiskAttachResultBool:
|
||||
|
||||
@@ -31,7 +31,7 @@ class CloudapiComputeGetResultModel(_base.BaseAPIResultModel):
|
||||
deleted_by: str
|
||||
deleted_timestamp: int
|
||||
description: str
|
||||
devices: dict
|
||||
pci_devices: dict[str, int]
|
||||
disks: list[_nested.DiskForCAComputeGetAPIResultNM]
|
||||
driver: _nested.Driver
|
||||
grid_id: int
|
||||
@@ -77,6 +77,7 @@ class CloudapiComputeGetResultModel(_base.BaseAPIResultModel):
|
||||
vm_ci_id: int
|
||||
vnc_password: str
|
||||
guest_agent: _nested.GuestAgentAPIResultNM
|
||||
weight: int
|
||||
zone_id: int
|
||||
|
||||
natable_vins_id: int = 0
|
||||
|
||||
@@ -7,7 +7,6 @@ from .get import *
|
||||
from .limit_io import *
|
||||
from .list import *
|
||||
from .list_deleted import *
|
||||
from .list_types import *
|
||||
from .list_unattached import *
|
||||
from .rename import *
|
||||
from .resize2 import *
|
||||
@@ -28,7 +27,6 @@ class CloudapiDisksAPI(
|
||||
CloudapiDisksLimitIOProtocol,
|
||||
CloudapiDisksListDeletedProtocol,
|
||||
CloudapiDisksListProtocol,
|
||||
CloudapiDisksListTypesProtocol,
|
||||
CloudapiDisksListUnattachedProtocol,
|
||||
CloudapiDisksRenameProtocol,
|
||||
CloudapiDisksResize2Protocol,
|
||||
|
||||
@@ -7,6 +7,7 @@ class CloudapiDisksGetResultModel(_base.BaseAPIResultModel):
|
||||
account_name: str
|
||||
acl: dict
|
||||
blkdiscard: bool
|
||||
block_size: _nested.DiskBlockSize
|
||||
cache_mode: _nested.DiskCacheMode
|
||||
created_by: str
|
||||
created_timestamp: int
|
||||
@@ -19,12 +20,14 @@ class CloudapiDisksGetResultModel(_base.BaseAPIResultModel):
|
||||
id: int
|
||||
image_id: int
|
||||
image_ids: list[int]
|
||||
independent: bool
|
||||
io_tune: _nested.IOTuneAPIResultNM
|
||||
milestones: int
|
||||
name: str
|
||||
params: str
|
||||
parent_id: int
|
||||
present_to: dict[str, int]
|
||||
provision: _nested.DiskProvisionType
|
||||
purge_timestamp: int
|
||||
replication: _nested.ReplicationAPIResultNM | dict
|
||||
res_id: str
|
||||
@@ -42,7 +45,6 @@ class CloudapiDisksGetResultModel(_base.BaseAPIResultModel):
|
||||
storage_policy_id: int
|
||||
tech_status: _nested.DiskTechStatus
|
||||
to_clean: bool
|
||||
type: _nested.DiskType
|
||||
updated_by: str
|
||||
vm_id: int | None
|
||||
vm_name: str | None
|
||||
|
||||
@@ -24,6 +24,7 @@ class CloudapiDisksListProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
sort_by: str | None = None,
|
||||
status: _nested.DiskStatus | None = None,
|
||||
storage_policy_id: int | None = None,
|
||||
type: _nested.DiskType | None = None,
|
||||
rg_id: int | None = None,
|
||||
vm_id: int | None = None,
|
||||
) -> CloudapiDisksListResultModel:
|
||||
...
|
||||
|
||||
@@ -20,6 +20,5 @@ class CloudapiDisksListDeletedProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
page_size: int | None = None,
|
||||
shared: bool | None = None,
|
||||
sort_by: str | None = None,
|
||||
type: _nested.DiskType | None = None,
|
||||
) -> CloudapiDisksListDeletedResultModel:
|
||||
...
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiDisksListTypesResultModel(_base.BaseAPIResultModel):
|
||||
data: list[_nested.SEPAPIResultNM | _nested.PoolDiskType]
|
||||
entry_count: int
|
||||
|
||||
|
||||
class CloudapiDisksListTypesProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def list_types(
|
||||
self,
|
||||
*,
|
||||
detailed: bool = False,
|
||||
page_number: int | None = None,
|
||||
page_size: int | None = None,
|
||||
sort_by: str | None = None,
|
||||
) -> CloudapiDisksListTypesResultModel:
|
||||
...
|
||||
@@ -22,6 +22,5 @@ class CloudapiDisksListUnattachedProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
storage_policy_id: int | None = None,
|
||||
sort_by: str | None = None,
|
||||
status: _nested.DiskStatus | None = None,
|
||||
type: _nested.DiskType | None = None,
|
||||
) -> CloudapiDisksListUnattachedResultModel:
|
||||
...
|
||||
|
||||
@@ -21,8 +21,10 @@ class CloudapiImageGetResultModel(_base.BaseAPIResultModel):
|
||||
history: list[_nested.ImageHistoryRecordAPIResultNM]
|
||||
hot_resize: bool
|
||||
id: int
|
||||
independent: bool
|
||||
last_modified: int
|
||||
link_to: int
|
||||
links_to: list[int] | None = None
|
||||
milestones: int
|
||||
name: str
|
||||
network_interface_naming: _nested.NetIfaceNamingTemplate
|
||||
|
||||
@@ -18,7 +18,6 @@ from .start import *
|
||||
from .stop import *
|
||||
from .update import *
|
||||
from .update_worker_nodes_meta_data import *
|
||||
from .worker_add import *
|
||||
from .worker_reset import *
|
||||
from .worker_restart import *
|
||||
from .workers_group_add import *
|
||||
@@ -47,7 +46,6 @@ class CloudapiK8sAPI(
|
||||
CloudapiK8sStopProtocol,
|
||||
CloudapiK8sUpdateProtocol,
|
||||
CloudapiK8sUpdateWorkerNodesMetaDataProtocol,
|
||||
CloudapiK8sWorkerAddProtocol,
|
||||
CloudapiK8sWorkerResetProtocol,
|
||||
CloudapiK8sWorkerRestartProtocol,
|
||||
CloudapiK8sWorkersGroupAddProtocol,
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiK8sWorkerAddResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiK8sWorkerAddProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def worker_add(
|
||||
self,
|
||||
*,
|
||||
k8s_id: int,
|
||||
worker_group_id: int,
|
||||
node_count: int = 1,
|
||||
chipset: _nested.Chipset = _nested.Chipset.Q35,
|
||||
) -> CloudapiK8sWorkerAddResultBool:
|
||||
...
|
||||
@@ -25,13 +25,11 @@ class CloudapiKvmx86CreateProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
hp_backed: bool = False,
|
||||
image_id: None | int = None,
|
||||
interfaces: None | list[_nested.InterfaceAPIParamsNM] = None,
|
||||
ipa_type: None | str = None,
|
||||
numa_affinity: _nested.NumaAffinity = _nested.NumaAffinity.NONE,
|
||||
preferred_cpu_cores: None | list[int] = None,
|
||||
sep_id: None | int = None,
|
||||
sep_pool_name: None | str = None,
|
||||
start: bool = True,
|
||||
system_name: None | str = None,
|
||||
without_boot_disk: bool = False,
|
||||
zone_id: None | int = None,
|
||||
os_version: None | str = None,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiLbMakeHighlyAvailableResultInt(_base.BaseAPIResultInt):
|
||||
class CloudapiLbMakeHighlyAvailableResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
@@ -10,5 +10,5 @@ class CloudapiLbMakeHighlyAvailableProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
self,
|
||||
*,
|
||||
lb_id: int,
|
||||
) -> CloudapiLbMakeHighlyAvailableResultInt:
|
||||
) -> CloudapiLbMakeHighlyAvailableResultBool:
|
||||
...
|
||||
|
||||
@@ -19,5 +19,6 @@ class CloudapiVinsCreateInAccountProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
pre_reservation_count: int = 32,
|
||||
routes: None | list[_nested.RouteAPIParamsNM] = None,
|
||||
zone_id: None | int = None,
|
||||
security_group_mode: bool = False,
|
||||
) -> CloudapiVinsCreateInAccountResultInt:
|
||||
...
|
||||
|
||||
@@ -20,5 +20,6 @@ class CloudapiVinsCreateInRGProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
pre_reservation_count: None | int = None,
|
||||
routes: None | list[_nested.RouteAPIParamsNM] = None,
|
||||
zone_id: None | int = None,
|
||||
security_group_mode: bool = False,
|
||||
) -> CloudapiVinsCreateInRGResultInt:
|
||||
...
|
||||
|
||||
@@ -8,6 +8,17 @@ class CloudapiZoneGetResultModel(_base.BaseAPIResultModel):
|
||||
created_timestamp: int
|
||||
deletable: bool
|
||||
description: str
|
||||
drs_broadcast_ip_addr: str
|
||||
drs_bvs_domain: str
|
||||
drs_dx_app_id: str
|
||||
drs_dx_ssl_skip_verify: bool
|
||||
drs_dx_sso_type: _nested.DRSDXSSOType
|
||||
drs_dx_sso_url: str
|
||||
drs_dx_url: str
|
||||
drs_name: str
|
||||
drs_ping_ip_addr: str
|
||||
drs_uid: str
|
||||
drs: bool
|
||||
extnet_ids: list[int]
|
||||
grid_id: int
|
||||
guid: int
|
||||
|
||||
@@ -27,6 +27,7 @@ class CloudbrokerAccountGetResultModel(_base.BaseAPIResultModel):
|
||||
status: _nested.AccountStatus
|
||||
storage_policy_ids: list[int]
|
||||
sep_pools: list[str]
|
||||
updated_by: str
|
||||
updated_timestamp: int
|
||||
version: int
|
||||
vm_features: list[_nested.VMFeature]
|
||||
|
||||
@@ -23,5 +23,6 @@ class CloudbrokerAccountUpdateProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
clear_sep_pools: bool = False,
|
||||
default_zone_id: int | None = None,
|
||||
storage_policies_quotas: list[_nested.StoragePolicyQuotasAPIParamsNM] | None = None, # noqa: E501
|
||||
cpu_allocation_parameter: _nested.CPUAllocationParam | None = None,
|
||||
) -> CloudbrokerAccountUpdateResultBool:
|
||||
...
|
||||
|
||||
@@ -2,7 +2,6 @@ import dynamix_sdk.base as _base
|
||||
from .change_read_only import *
|
||||
from .change_security_groups import *
|
||||
from .clone import *
|
||||
from .clone_abort import *
|
||||
from .migrate_storage_list import *
|
||||
from .start_migration_in import *
|
||||
from .start_migration_out import *
|
||||
@@ -15,7 +14,6 @@ class CloudbrokerComputeAPI(
|
||||
CloudbrokerComputeChangeReadOnlyProtocol,
|
||||
CloudbrokerComputeChangeSecurityGroupsProtocol,
|
||||
CloudbrokerComputeCloneProtocol,
|
||||
CloudbrokerComputeCloneAbortProtocol,
|
||||
CloudbrokerComputeMigrateStorageListProtocol,
|
||||
CloudbrokerComputeStartMigrationInProtocol,
|
||||
CloudbrokerComputeStartMigrationOutProtocol,
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudbrokerComputeCloneAbortResultBool(
|
||||
_base.BaseAPIResultBool,
|
||||
):
|
||||
pass
|
||||
|
||||
|
||||
class CloudbrokerComputeCloneAbortProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
):
|
||||
def clone_abort(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
) -> CloudbrokerComputeCloneAbortResultBool:
|
||||
...
|
||||
@@ -10,6 +10,7 @@ class CloudbrokerStoragePolicyAddPoolResultModel(_base.BaseAPIResultModel):
|
||||
name: str
|
||||
sep_pools: list[_nested.SEPPoolsAPIResultNM]
|
||||
status: _nested.StoragePolicyStatus
|
||||
usage: _nested.TenantIDsAPIResultNM
|
||||
|
||||
|
||||
class CloudbrokerStoragePolicyAddPoolProtocol(
|
||||
|
||||
@@ -10,6 +10,7 @@ class CloudbrokerStoragePolicyDeletePoolResultModel(_base.BaseAPIResultModel):
|
||||
name: str
|
||||
sep_pools: list[_nested.SEPPoolsAPIResultNM]
|
||||
status: _nested.StoragePolicyStatus
|
||||
usage: _nested.TenantIDsAPIResultNM
|
||||
|
||||
|
||||
class CloudbrokerStoragePolicyDeletePoolProtocol(
|
||||
|
||||
@@ -10,6 +10,7 @@ class CloudbrokerStoragePolicyUpdateResultModel(_base.BaseAPIResultModel):
|
||||
name: str
|
||||
sep_pools: list[_nested.SEPPoolsAPIResultNM]
|
||||
status: _nested.StoragePolicyStatus
|
||||
usage: _nested.TenantIDsAPIResultNM
|
||||
|
||||
|
||||
class CloudbrokerStoragePolicyUpdateProtocol(
|
||||
|
||||
@@ -88,6 +88,7 @@ base_domain: baseDomain
|
||||
binding_name: bindingName
|
||||
bindings: bindings
|
||||
blkdiscard: blkdiscard
|
||||
block_size: block_size
|
||||
blocked: blocked
|
||||
boot_cdrom_image_id: altBootId
|
||||
boot_disk_size_gb: bootdiskSize
|
||||
@@ -109,6 +110,8 @@ boot_mode__CloudapiImageCreateParamsModel: boottype
|
||||
boot_order: bootOrder
|
||||
boot_partition: bootPartition
|
||||
bootable: bootable
|
||||
bro_enabled: bro_enabled
|
||||
bro_jwt: bro_jwt
|
||||
bservice_id: serviceId
|
||||
bservice_id__AuditAPIResultNM: service_id
|
||||
bservice_id__CloudapiAuditListParamsModel: service_id
|
||||
@@ -171,7 +174,6 @@ conn_type: connType
|
||||
consistency: consistency
|
||||
consumed: Consumed
|
||||
correlation_id: correlation_id
|
||||
count_change_mode__CloudapiBserviceGroupResizeParamsModel: mode
|
||||
cpu_allocation_mode__CloudbrokerAccountSetCpuAllocationParameterParamsModel: strict_loose
|
||||
cpu_allocation_parameter: cpu_allocation_parameter
|
||||
cpu_allocation_ratio: cpu_allocation_ratio
|
||||
@@ -256,7 +258,6 @@ description__ZoneForListAPIResultNM: description
|
||||
destruction_timestamp: destructionTime
|
||||
detach: detach
|
||||
detach_disks: detachDisks
|
||||
detailed: detailed
|
||||
device_id: devId
|
||||
device_name: devicename
|
||||
devices: devices
|
||||
@@ -279,8 +280,6 @@ disk_size_gb: CU_D
|
||||
disk_size_gb__CloudapiComputeDiskAddParamsModel: size
|
||||
disk_size_gb__CloudapiDisksResize2ParamsModel: size
|
||||
disk_size_total_gb__CloudapiBserviceGetResultModel: diskTotal
|
||||
disk_type__CloudapiComputeDiskAddParamsModel: diskType
|
||||
disk_type__CloudapiComputeDiskAttachParamsModel: diskType
|
||||
disks: disks
|
||||
display_name: displayname
|
||||
dns_servers: dns
|
||||
@@ -299,6 +298,18 @@ dp_api_user: dpApiUser
|
||||
dpdk_net_id: dpdkId
|
||||
driver: driver
|
||||
drivers: drivers
|
||||
drs: drs
|
||||
drs_broadcast_ip_addr: broadcast_addr
|
||||
drs_bvs_domain__CloudapiZoneGetResultModel: domain
|
||||
drs_bvs_domain__ZoneForListAPIResultNM: domain
|
||||
drs_dx_app_id: app_id
|
||||
drs_dx_ssl_skip_verify: ssl_skip_verify
|
||||
drs_dx_sso_type: sso_type
|
||||
drs_dx_sso_url: sso_url
|
||||
drs_dx_url: decort_url
|
||||
drs_name: drs_name
|
||||
drs_ping_ip_addr: ping_addr
|
||||
drs_uid: drs_uid
|
||||
dst_net_ip: destination
|
||||
dst_net_mask__CloudapiVinsStaticRouteAddParamsModel: netmask
|
||||
dst_net_mask__RouteAPIParamsNM: netmask
|
||||
@@ -429,6 +440,7 @@ include_deleted: includedeleted
|
||||
include_deleted__CloudapiK8sListParamsModel: includedeleted
|
||||
include_deleted__CloudapiVinsListParamsModel: includeDeleted
|
||||
include_disabled: includeDisabled
|
||||
independent: independent
|
||||
ingress_burst: inBurst
|
||||
ingress_rate: inRate
|
||||
init_config: initConfiguration
|
||||
@@ -467,7 +479,6 @@ ip_addresses: ipAddresses
|
||||
ip_cidr: ipcidr
|
||||
ip_pool_end: ip_end
|
||||
ip_pool_start: ip_start
|
||||
ipa_type: ipaType
|
||||
iqn: iqn
|
||||
join_config: joinConfiguration
|
||||
json_data__CloudapiUserSetDataParamsModel: data
|
||||
@@ -498,11 +509,12 @@ lb_id: lbId
|
||||
lb_id__AuditAPIResultNM: lb_id
|
||||
lb_id__CloudapiAuditListParamsModel: lb_id
|
||||
lb_id__CloudbrokerAuditListParamsModel: lb_id
|
||||
lb_ids: lbIds
|
||||
lb_ids: lbsIds
|
||||
lb_sysctl_params: lbSysctlParams
|
||||
lease_time: lease
|
||||
libvirt_settings: libvirtSettings
|
||||
link_to: linkTo
|
||||
links_to: linksTo
|
||||
listen_ssh: listenSsh
|
||||
live_migration_job_id: live_migration_job_id
|
||||
local_ip: localIp
|
||||
@@ -591,7 +603,6 @@ node_auto_start__CloudapiZoneGetResultModel: autostart
|
||||
node_auto_start__ZoneForListAPIResultNM: autostart
|
||||
node_boot_disk_size_gb__CloudapiK8sWorkersGroupGetByNameResultModel: disk
|
||||
node_boot_disk_size_gb__K8sNodeGroupAPIResultNM: disk
|
||||
node_count__CloudapiK8sWorkerAddParamsModel: num
|
||||
node_count__CloudapiK8sWorkersGroupAddParamsModel: workerNum
|
||||
node_count__CloudapiK8sWorkersGroupGetByNameResultModel: num
|
||||
node_count__K8sNodeGroupAPIResultNM: num
|
||||
@@ -649,6 +660,7 @@ password__DiskForListUnattachedAPIResultNM: passwd
|
||||
password__UserAPIResultNM: passwd
|
||||
path: path
|
||||
pci_device_id: deviceId
|
||||
pci_devices__CloudapiComputeGetResultModel: devices
|
||||
pci_devices__VMAPIResultNM: devices
|
||||
pci_slot_num: pciSlot
|
||||
pci_slot_num__DiskForCAComputeGetAPIResultNM: pci_slot
|
||||
@@ -687,6 +699,7 @@ protocol__CloudapiComputePfwAddParamsModel: proto
|
||||
protocol__CloudapiComputePfwDelParamsModel: proto
|
||||
protocol__CloudapiVinsNatRuleAddParamsModel: proto
|
||||
provider_name: provider_name
|
||||
provision: provision
|
||||
public: public
|
||||
public_keys: public_keys
|
||||
public_port_end: publicPortEnd
|
||||
@@ -739,6 +752,7 @@ rg__K8sACLAPIResultNM: rgAcl
|
||||
rg_id: rgId
|
||||
rg_id__AuditAPIResultNM: resgroup_id
|
||||
rg_id__CloudapiAuditListParamsModel: resgroup_id
|
||||
rg_id__CloudapiDisksListParamsModel: rg_id
|
||||
rg_id__CloudapiRgAddStoragePolicyParamsModel: resgroup_id
|
||||
rg_id__CloudapiRgDelStoragePolicyParamsModel: resgroup_id
|
||||
rg_id__CloudapiSepListAvailableSepAndPoolsParamsModel: rg_id
|
||||
@@ -911,7 +925,6 @@ storage_size_quota_gb: maxVDiskCapacity
|
||||
storage_size_quota_gb__StoragePolicyCountersAPIResultNM: limit
|
||||
sysctl_params: sysctlParams
|
||||
system: system
|
||||
system_name: IS
|
||||
system_name__PCIDeviceAPIResultNM: systemName
|
||||
tags: tags
|
||||
taints: taints
|
||||
@@ -951,6 +964,7 @@ updated_timestamp__SecurityGroupAPIResultNM: updated_at
|
||||
updated_timestamp__TrunkAPIResultNM: updated_at
|
||||
usage: usage
|
||||
use_unsafe: use_unsafe
|
||||
user_email__AccessAPIResultNM: email
|
||||
user_emails__AccessAPIResultNM: emails
|
||||
user_managed: userManaged
|
||||
user_name: username
|
||||
@@ -1005,7 +1019,6 @@ vm: computeACL
|
||||
vm_ci_id: computeciId
|
||||
vm_count__BServiceGroupAPIResultNM: computes
|
||||
vm_count__CloudapiBserviceGroupAddParamsModel: count
|
||||
vm_count__CloudapiBserviceGroupResizeParamsModel: count
|
||||
vm_counts: computes
|
||||
vm_features: computeFeatures
|
||||
vm_id: computeId
|
||||
@@ -1016,16 +1029,15 @@ vm_id__CloudapiComputeChangeIpParamsModel: compute_id
|
||||
vm_id__CloudapiComputeChangeMacParamsModel: compute_id
|
||||
vm_id__CloudapiComputeChangeMtuParamsModel: compute_id
|
||||
vm_id__CloudapiComputeChangeSecurityGroupsParamsModel: compute_id
|
||||
vm_id__CloudapiComputeCloneAbortParamsModel: compute_id
|
||||
vm_id__CloudapiComputeGuestAgentDisableParamsModel: compute_id
|
||||
vm_id__CloudapiComputeGuestAgentEnableParamsModel: compute_id
|
||||
vm_id__CloudapiComputeGuestAgentExecuteParamsModel: compute_id
|
||||
vm_id__CloudapiComputeGuestAgentFeatureUpdateParamsModel: compute_id
|
||||
vm_id__CloudapiDisksGetResultModel: machineId
|
||||
vm_id__CloudapiDisksListParamsModel: compute_id
|
||||
vm_id__CloudbrokerAuditListParamsModel: compute_id
|
||||
vm_id__CloudbrokerComputeChangeReadOnlyParamsModel: compute_id
|
||||
vm_id__CloudbrokerComputeChangeSecurityGroupsParamsModel: compute_id
|
||||
vm_id__CloudbrokerComputeCloneAbortParamsModel: compute_id
|
||||
vm_id__CloudbrokerComputeStartMigrationOutParamsModel: compute_id
|
||||
vm_id__DHCPReservationAPIResultNM: vmId
|
||||
vm_id__DiskForListAndListDeletedAPIResultNM: machineId
|
||||
@@ -1078,6 +1090,7 @@ write_bytes_sec_max: write_bytes_sec_max
|
||||
write_iops_sec: write_iops_sec
|
||||
write_iops_sec_max: write_iops_sec_max
|
||||
xmpp: xmpp
|
||||
zero_access_enabled: zeroaccess_enabled
|
||||
zone_id: zoneId
|
||||
zone_id__CloudapiAccountListParamsModel: zone_id
|
||||
zone_id__CloudapiBserviceListParamsModel: zone_id
|
||||
|
||||
@@ -74,7 +74,6 @@ group_get: groupGet
|
||||
group_parent_add: groupParentAdd
|
||||
group_parent_remove: groupParentRemove
|
||||
group_remove: groupRemove
|
||||
group_resize: groupResize
|
||||
group_start: groupStart
|
||||
group_stop: groupStop
|
||||
group_update: groupUpdate
|
||||
@@ -86,7 +85,6 @@ ip_reserve: ipReserve
|
||||
limit_io: limitIO
|
||||
list_available_sep_and_pools: listAvailableSepAndPools
|
||||
list_deleted: listDeleted
|
||||
list_types: listTypes
|
||||
list_unattached: listUnattached
|
||||
make_highly_available: makeHighlyAvailable
|
||||
migrate_to_zone: migrateToZone
|
||||
@@ -128,7 +126,6 @@ user_revoke: userRevoke
|
||||
user_update: userUpdate
|
||||
vnfdev_redeploy: vnfdevRedeploy
|
||||
vnfdev_restart: vnfdevRestart
|
||||
worker_add: workerAdd
|
||||
worker_reset: workerReset
|
||||
worker_restart: workerRestart
|
||||
workers_group_add: workersGroupAdd
|
||||
|
||||
@@ -3,6 +3,7 @@ import dynamix_sdk.base as _base
|
||||
|
||||
class SystemUsermanagerWhoamiResultModel(_base.BaseAPIResultModel):
|
||||
admin: bool
|
||||
bro_jwt: str
|
||||
name: str
|
||||
roles: list[str]
|
||||
|
||||
|
||||
@@ -8,8 +8,8 @@ from .api import API
|
||||
|
||||
class Dynamix:
|
||||
_config: config.ConfigWithAuth
|
||||
_COMPATIBLE_DX_MINOR_VERSION: str = '4.5'
|
||||
_COMPATIBLE_DX_BUILD: int = 1269
|
||||
_COMPATIBLE_DX_MINOR_VERSION: str = '4.6'
|
||||
_COMPATIBLE_DX_BUILD: int = 1524
|
||||
_COMPATIBILITY_WITH_NEWER_DX_BUILDS: bool = True
|
||||
_dx_version: str
|
||||
_dx_build: int
|
||||
|
||||
@@ -68,15 +68,3 @@ def get_nested_value(
|
||||
f'The key {key} found, but its value is not a dictionary.'
|
||||
)
|
||||
return value
|
||||
|
||||
|
||||
def camel_to_snake(name: str) -> str:
|
||||
result = []
|
||||
for i, ch in enumerate(name):
|
||||
if ch.isupper():
|
||||
if i > 0 and not name[i - 1].isupper():
|
||||
result.append('_')
|
||||
result.append(ch.lower())
|
||||
else:
|
||||
result.append(ch)
|
||||
return ''.join(result)
|
||||
|
||||
Reference in New Issue
Block a user