Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
00fa013feb | ||
|
|
68064479d2 | ||
|
|
ea196f03a0 | ||
|
|
6ffea46b8a | ||
|
|
1ee16914bc | ||
|
|
a52ec3f1bb | ||
|
|
04f9c28eb0 | ||
|
|
cd6422373e | ||
|
|
69be98db48 | ||
|
|
7df3848866 | ||
|
|
66601495dd | ||
|
|
fac66abef6 | ||
|
|
56db28cb37 | ||
|
|
1703d1ed33 | ||
|
|
9eac1da63f | ||
|
|
c4d0acfba2 | ||
|
|
a63ff017af | ||
|
|
9f2c3dc81e |
No files matched your search
@@ -1,32 +0,0 @@
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v5.0.0
|
||||
hooks:
|
||||
- id: end-of-file-fixer
|
||||
- id: file-contents-sorter
|
||||
files: .*mapping.yml
|
||||
args:
|
||||
- --unique
|
||||
- id: no-commit-to-branch
|
||||
name: no-commit-to-branch (main, master, dev_*)
|
||||
args:
|
||||
- --pattern
|
||||
- dev_.*
|
||||
- repo: https://github.com/pycqa/flake8
|
||||
rev: 7.1.2
|
||||
hooks:
|
||||
- id: flake8
|
||||
name: flake8 (1/2)
|
||||
files: src/dynamix_sdk/types\.py|.*__init__\.py|.*_api\.py
|
||||
args:
|
||||
- --extend-ignore=F401,F403,F405
|
||||
- id: flake8
|
||||
name: flake8 (2/2)
|
||||
exclude: src/dynamix_sdk/types\.py|.*__init__\.py|.*_api\.py
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: pytest-local-tests
|
||||
name: pytest local tests
|
||||
entry: pytest tests/local
|
||||
language: system
|
||||
pass_filenames: false
|
||||
+65
-176
@@ -1,185 +1,74 @@
|
||||
# Список изменений в версии 1.0.1
|
||||
# Список изменений в версии 2.1.3
|
||||
|
||||
## Изменено
|
||||
|
||||
| Идентификатор<br>задачи | Описание |
|
||||
| --- | --- |
|
||||
| BPYS-2565 | Функции `cloudbroker.grid.set_mem_allocation_ratio`: тип параметра `ratio` изменён с `int` на `float`. |
|
||||
| BPYS-2567 | Функции `cloudapi.image.get`, `cloudbroker.image.get`: в модели результата поле `type` стало необязательным. |
|
||||
| BPYS-2567 | Функции `cloudapi.image.list`, `cloudbroker.image.list`: в модели результата поле `data.type` стало необязательным. |
|
||||
| BPYS-2564 | Функции `cloudbroker.grid.get_settings`: в модели результата тип поля `mem_allocation_ratio` изменён с `int \| None` на `float \| None`. |
|
||||
| BPYS-2564 | Функции `cloudbroker.node.list`: в модели результата тип поля `data.mem_allocation_ratio` изменён с `int \| None` на `float \| None`. |
|
||||
|
||||
## Добавлено
|
||||
|
||||
### Функциональный интерфейс
|
||||
| Идентификатор<br>задачи | Описание |
|
||||
| --- | --- |
|
||||
| BPYS-16 | Добавлена функция API `/cloudapi/account/list`. |
|
||||
| BPYS-34 | Добавлена функция API `/cloudapi/account/update`. |
|
||||
| BPYS-31 | Добавлена функция API `/cloudapi/account/get`. |
|
||||
| BPYS-61 | Функция API `/cloudapi/compute/get`: добавлен атрибут `CloudapiComputeGetResultModel.disks.image_ids` в связи с переименованием из `images`. |
|
||||
| BPYS-61 | Функция API `/cloudapi/compute/list`: добавлен атрибут `CloudapiComputeListResultModel.data.disks.image_ids` в связи с переименованием из `images`. |
|
||||
| BPYS-22 | Добавлена функция API `/cloudapi/account/listDeleted`. |
|
||||
| BPYS-59 | Добавлены функции API `/cloudapi/disks/get`, `/cloudapi/disks/list`, `/cloudapi/disks/listDeleted`, `/cloudapi/disks/listUnattached`. |
|
||||
| BPYS-59 | Функция API `/cloudapi/compute/get`: добавлен атрибут `CloudapiComputeGetResultModel.disks.shared` в связи с переименованием из `shareable`. |
|
||||
| BPYS-62 | Функция API `/cloudapi/compute/get`: добавлен параметр `vm_id` в связи с переименованием из `compute_id`. |
|
||||
| BPYS-62 | Функция API `/cloudapi/compute/update`: добавлен параметр `vm_id` в связи с переименованием из `compute_id`. |
|
||||
| BPYS-62 | Функция API `/cloudapi/compute/delete`: добавлен параметр `vm_id` в связи с переименованием из `compute_id`. |
|
||||
| BPYS-36 | Добавлена функция API `/cloudapi/kvmx86/createBlank`. |
|
||||
| BPYS-37 | Добавлена функция API `/cloudapi/compute/start`. |
|
||||
| BPYS-38 | Добавлена функция API `/cloudapi/compute/stop`. |
|
||||
| BPYS-39 | Добавлена функция API `/cloudapi/compute/reboot`. |
|
||||
| BPYS-40 | Добавлена функция API `/cloudapi/compute/resize`. |
|
||||
| BPYS-41 | Добавлена функция API `/cloudapi/compute/pause`. |
|
||||
| BPYS-42 | Добавлена функция API `/cloudapi/compute/resume`. |
|
||||
| BPYS-71 | Функция API `/cloudapi/rg/get`: добавлен атрибут `CloudapiRgGetResultModel.vm_features` в связи с переименованием из `compute_features`. |
|
||||
| BPYS-71 | Функция API `/cloudapi/rg/list`: добавлен атрибут `CloudapiRgListResultModel.data.vm_features` в связи с переименованием из `compute_features`. |
|
||||
| BPYS-68 | Добавлена функция API `/cloudbroker/account/create`. |
|
||||
| BPYS-63 | Добавлены функции API `/cloudapi/image/get`, `/cloudapi/image/list`. |
|
||||
| BPYS-73 | Функция API `/cloudapi/compute/get`: добавлен атрибут `CloudapiComputeGetResultModel.vm_ci_id` в связи с переименованием из `compute_ci_id`. |
|
||||
| BPYS-73 | Функция API `/cloudapi/compute/list`: добавлен атрибут `CloudapiComputeListResultModel.data.vm_ci_id` в связи с переименованием из `compute_ci_id`. |
|
||||
| BPYS-60 | Добавлены функции API `/cloudapi/vins/get`, `/cloudapi/vins/list`, `/cloudapi/vins/listDeleted`. |
|
||||
| BPYS-66 | Добавлена функция API `/cloudapi/compute/changeIp`. |
|
||||
| BPYS-67 | Добавлены функции API `/cloudapi/compute/netAttach`, `/cloudapi/compute/netDetach`. |
|
||||
| BPYS-70 | Добавлены функции API `/cloudapi/bservice/get`, `/cloudapi/bservice/list`, `/cloudapi/bservice/listDeleted`. |
|
||||
| BPYS-74 | Добавлена функция API `/cloudapi/bservice/groupGet`. |
|
||||
| BPYS-75 | Добавлены функции API `/cloudapi/rg/delete`, `/cloudapi/rg/restore`. |
|
||||
| BPYS-82 | Добавлены функции API `/cloudapi/bservice/create`, `/cloudapi/bservice/delete`, `/cloudapi/bservice/restore`. |
|
||||
| BPYS-80 | Добавлены функции API `/cloudapi/disks/create`, `/cloudapi/disks/delete`, `/cloudapi/disks/restore`. |
|
||||
| BPYS-84 | Добавлены функции API `/cloudapi/bservice/disable`, `/cloudapi/bservice/enable`, `/cloudapi/bservice/start`, `/cloudapi/bservice/stop`. |
|
||||
| BPYS-87 | Добавлены функции API `/cloudapi/bservice/groupAdd`, `/cloudapi/bservice/groupRemove`. |
|
||||
| BPYS-83 | Добавлены функции API `/cloudapi/image/create`, `/cloudapi/image/createVirtual`, `/cloudapi/image/delete`, `/cloudapi/image/link`, `/cloudapi/image/rename`. |
|
||||
| BPYS-85 | Добавлены функции API `/cloudapi/extnet/get`, `/cloudapi/extnet/list`, `/cloudapi/extnet/getDefault`. |
|
||||
| BPYS-88 | Добавлены функции API `/cloudapi/flipgroup/computeAdd`, `/cloudapi/flipgroup/computeRemove`, `/cloudapi/flipgroup/create`, `/cloudapi/flipgroup/delete`, `/cloudapi/flipgroup/edit`, `/cloudapi/flipgroup/get`, `/cloudapi/flipgroup/list`. |
|
||||
| BPYS-78 | Добавлены функции API `/cloudapi/vins/createInAccount`, `/cloudapi/vins/createInRG`, `/cloudapi/vins/delete`, `/cloudapi/vins/restore`. |
|
||||
| BPYS-76 | Добавлена функция API `/cloudapi/rg/update`. |
|
||||
| BPYS-91 | Добавлены функции API `/cloudapi/bservice/groupComputeRemove`, `/cloudapi/bservice/groupParentAdd`, `/cloudapi/bservice/groupParentRemove`, `/cloudapi/bservice/groupResize`, `/cloudapi/bservice/groupStart`, `/cloudapi/bservice/groupStop`, `/cloudapi/bservice/groupUpdate`, `/cloudapi/bservice/groupUpdateExtnet`, `/cloudapi/bservice/groupUpdateVins` . |
|
||||
| BPYS-77 | Добавлены функции API `/cloudapi/rg/setDefNet`, `/cloudapi/rg/removeDefNet`. |
|
||||
| BPYS-81 | Добавлены функции API `/cloudapi/account/delete`, `/cloudapi/account/restore`. |
|
||||
| BPYS-119 | Добавлена функция API `/cloudapi/compute/clone`. |
|
||||
| BPYS-79 | Добавлены функции API `/cloudapi/lb/get`, `/cloudapi/lb/list`, `/cloudapi/lb/listDeleted`, `cloudapi/lb/create`, `/cloudapi/lb/delete`. |
|
||||
| BPYS-95 | Добавлены функции API `/cloudapi/rg/accessGrant`, `/cloudapi/rg/accessRevoke`. |
|
||||
| BPYS-93 | Добавлены функции API `/cloudapi/disks/deleteDisks`, `/cloudapi/disks/limitIO`, `/cloudapi/disks/listTypes`, `/cloudapi/disks/rename`, `/cloudapi/disks/resize2`, `/cloudapi/disks/share`, `/cloudapi/disks/snapshotDelete`, `/cloudapi/disks/snapshotRollback`, `/cloudapi/disks/unshare`. |
|
||||
| BPYS-98 | Функция API `/cloudapi/compute/get`: добавлен атрибут `CloudapiComputeGetResultModel.acl.vm` в связи с переименованием из `compute`. |
|
||||
| BPYS-98 | Функция API `/cloudapi/compute/get`: для атрибута `CloudapiComputeGetResultModel.affinity_rules.topology` в перечисляемый тип `AffinityTopology` добавлено значение `vm` в связи с переименованием из `compute`. |
|
||||
| BPYS-98 | Функция API `/cloudapi/compute/get`: для атрибута `CloudapiComputeGetResultModel.anti_affinity_rules.topology` в перечисляемый тип `AffinityTopology` добавлено значение `vm` в связи с переименованием из `compute`. |
|
||||
| BPYS-98 | Функция API `/cloudapi/compute/list`: для атрибута `CloudapiComputeListResultModel.data.affinity_rules.topology` в перечисляемый тип `AffinityTopology` добавлено значение `vm` в связи с переименованием из `compute`. |
|
||||
| BPYS-98 | Функция API `/cloudapi/compute/list`: для атрибута `CloudapiComputeListResultModel.data.anti_affinity_rules.topology` в перечисляемый тип `AffinityTopology` добавлено значение `vm` в связи с переименованием из `compute`. |
|
||||
| BPYS-98 | Функция API `/cloudapi/rg/get`: для атрибута `CloudapiRgGetResultModel.resource_types` в перечисляемый тип `RGResourceType` добавлено значение `vm` в связи с переименованием из `compute`. |
|
||||
| BPYS-98 | Функция API `/cloudapi/rg/list`: для атрибута `CloudapiRgListResultModel.data.resource_types` в перечисляемый тип `RGResourceType` добавлено значение `vm` в связи с переименованием из `compute`. |
|
||||
| BPYS-118 | Добавлена функция API `/cloudapi/compute/redeploy`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/kvmx86/create`: добавлен параметр `cpu_count` в связи с переименованием из `cpu`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/kvmx86/create`: добавлен параметр `ram_size_mb` в связи с переименованием из `ram`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/rg/get`: добавлен атрибут `CloudapiRgGetResultModel.quotas.cpu_count` в связи с переименованием из `cpu`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/rg/get`: добавлен атрибут `CloudapiRgGetResultModel.quotas.disk_size_gb` в связи с переименованием из `disk_size`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/rg/get`: добавлен атрибут `CloudapiRgGetResultModel.quotas.public_ip_count` в связи с переименованием из `public_ip`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/rg/get`: добавлен атрибут `CloudapiRgGetResultModel.quotas.ram_size_mb` в связи с переименованием из `ram`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/rg/get`: добавлен атрибут `CloudapiRgGetResultModel.quotas.storage_size_gb` в связи с переименованием из `storage`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/rg/list`: добавлен атрибут `CloudapiRgListResultModel.data.quotas.cpu_count` в связи с переименованием из `cpu`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/rg/list`: добавлен атрибут `CloudapiRgListResultModel.data.quotas.disk_size_gb` в связи с переименованием из `disk_size`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/rg/list`: добавлен атрибут `CloudapiRgListResultModel.data.quotas.public_ip_count` в связи с переименованием из `public_ip`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/rg/list`: добавлен атрибут `CloudapiRgListResultModel.data.quotas.ram_size_mb` в связи с переименованием из `ram`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/rg/list`: добавлен атрибут `CloudapiRgListResultModel.data.quotas.storage_size_gb` в связи с переименованием из `storage`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/compute/get`: добавлен атрибут `CloudapiComputeGetResultModel.cpu_count` в связи с переименованием из `cpu`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/compute/get`: добавлен атрибут `CloudapiComputeGetResultModel.ram_size_mb` в связи с переименованием из `ram`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/compute/list`: добавлен атрибут `CloudapiComputeListResultModel.data.cpu_count` в связи с переименованием из `cpu`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/compute/list`: добавлен атрибут `CloudapiComputeListResultModel.data.ram_size_mb` в связи с переименованием из `ram`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/compute/get`: добавлен атрибут `CloudapiComputeGetResultModel.boot_disk_size_gb` в связи с переименованием из `boot_disk_size`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/compute/list`: добавлен атрибут `CloudapiComputeListResultModel.data.boot_disk_size_gb` в связи с переименованием из `boot_disk_size`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/kvmx86/create`: добавлен параметр `boot_disk_size_gb` в связи с переименованием из `boot_disk_size`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/kvmx86/createBlank`: добавлен параметр `boot_disk_size_gb` в связи с переименованием из `boot_disk_size`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/rg/create`: добавлен параметр `cpu_count_quota` в связи с переименованием из `cpu_quota`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/rg/create`: добавлен параметр `public_ip_count_quota` в связи с переименованием из `public_ip_quota`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/rg/create`: добавлен параметр `ram_size_quota_mb` в связи с переименованием из `ram_quota`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/rg/create`: добавлен параметр `storage_size_quota_gb` в связи с переименованием из `storage_quota`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/rg/get`: добавлен атрибут `CloudapiRgGetResultModel.quotas.gpu_count` в связи с переименованием из `gpu`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/rg/list`: добавлен атрибут `CloudapiRgListResultModel.data.quotas.gpu_count` в связи с переименованием из `gpu`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/rg/update`: добавлен параметр `cpu_count_quota` в связи с переименованием из `cpu_quota`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/rg/update`: добавлен параметр `public_ip_count_quota` в связи с переименованием из `public_ip_quota`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/rg/update`: добавлен параметр `ram_size_quota_mb` в связи с переименованием из `ram_quota`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/rg/update`: добавлен параметр `storage_size_quota_gb` в связи с переименованием из `storage_quota`. |
|
||||
| BPYS-126 | Функция API `/cloudapi/compute/get`: добавлен атрибут `CloudapiComputeGetResultModel.vgpus` в связи с переименованием из `gpu_ids`. |
|
||||
| BPYS-126 | Функция API `/cloudapi/compute/list`: добавлен атрибут `CloudapiComputeListResultModel.data.vgpus` в связи с переименованием из `gpu_ids`. |
|
||||
| BPYS-96 | Добавлены функции API `cloudapi/rg/enable,`, `cloudapi/rg/disable`. |
|
||||
| BPYS-138 | Добавлены функции API `/cloudapi/stack/get`, `/cloudapi/stack/list`. |
|
||||
| BPYS-133 | Добавлены функции API `/cloudapi/locations/getUrl`, `/cloudapi/locations/list`. |
|
||||
| BPYS-136 | Добавлены функции API `/cloudapi/compute/tagAdd`, `/cloudapi/compute/tagRemove`. |
|
||||
| BPYS-137 | Добавлены функции API `/cloudapi/compute/cdEject`, `/cloudapi/compute/cdInsert`.|
|
||||
| BPYS-134 | Добавлены функции API `/cloudapi/compute/diskAdd`, `/cloudapi/compute/diskAttach`, `/cloudapi/compute/diskDetach`, `/cloudapi/compute/diskResize`. |
|
||||
| BPYS-135 | Добавлены функции API `/cloudapi/compute/affinityRelations`, `/cloudapi/compute/affinityLabelRemove`, `/cloudapi/compute/affinityLabelSet`, `/cloudapi/compute/affinityRuleAdd`, `/cloudapi/compute/affinityRuleRemove`, `/cloudapi/compute/affinityRulesClear`, `/cloudapi/compute/antiAffinityRuleAdd`, `/cloudapi/compute/antiAffinityRuleRemove`, `/cloudapi/compute/antiAffinityRulesClear`. |
|
||||
| BPYS-131 | Добавлены функции API `/cloudapi/vins/vnfdevRedeploy`, `/cloudapi/vins/vnfdevRestart`. |
|
||||
| BPYS-143 | Добавлена функция API `/cloudapi/compute/diskDel`. |
|
||||
| BPYS-132 | Добавлены функции API `/cloudapi/tasks/get`, `/cloudapi/tasks/list`. |
|
||||
| BPYS-145 | Добавлены функции API `/cloudapi/compute/setCustomFields` `/cloudapi/compute/deleteCustomFields`. |
|
||||
| BPYS-144 | Добавлены функции API `/cloudapi/compute/snapshotCreate`, `/cloudapi/compute/snapshotList`, `/cloudapi/compute/snapshotRollback`. |
|
||||
| BPYS-130 | Добавлены функции API `/cloudapi/vins/staticRouteAdd`, `/cloudapi/vins/staticRouteDel`, `/cloudapi/vins/staticRouteList`. |
|
||||
| BPYS-171 | Добавлены функции API `/cloudapi/lb/backendCreate`, `/cloudapi/lb/backendDelete`, `/cloudapi/lb/backendServerAdd`, `/cloudapi/lb/backendServerDelete`, `/cloudapi/lb/backendServerUpdate`, `/cloudapi/lb/backendUpdate`. |
|
||||
| BPYS-146 | Добавлены функции API `/cloudapi/compute/pinToStack`, `/cloudapi/compute/unpinFromStack`. |
|
||||
| BPYS-182 | Добавлены функции API `/cloudapi/vins/ipList`, `/cloudapi/vins/ipReserve`, `/cloudapi/vins/ipRelease`. |
|
||||
| BPYS-196 | Функция API `/cloudapi/compute/get`: добавлен атрибут `CloudapiComputeGetResultModel.cdrom_image_id` в связи с переименованием из `cd_image_id`. |
|
||||
| BPYS-196 | Функция API `/cloudapi/compute/list`: добавлен атрибут `CloudapiComputeListResultModel.data.cdrom_image_id` в связи с переименованием из `cd_image_id`. |
|
||||
| BPYS-147 | Добавлены функции API `/cloudapi/compute/pfwAdd`, `/cloudapi/compute/pfwDel`, `/cloudapi/compute/pfwList`. |
|
||||
| BPYS-148 | Функция API `/cloudapi/kvmx86/create`: у параметра `data_disks` в модели `DiskAPIParamsNM` добавлен атрибут `size_gb` в связи с переименованием из `size`. |
|
||||
| BPYS-2558 | Добавлена функция `cloudbroker.node.set_vfs_number`. |
|
||||
| BPYS-2566 | Функции `cloudapi.zone.get`, `cloudbroker.zone.get`: в модели результата добавлено поле `ttl`. |
|
||||
| BPYS-2566 | Функции `cloudapi.zone.list`, `cloudbroker.zone.list`: в модели результата добавлено поле `data.ttl`. |
|
||||
| BPYS-2559 | Добавлена функция `cloudbroker.node.set_vfs_params`. |
|
||||
| BPYS-2560 | Добавлена функция `cloudbroker.node.set_core_isolation`. |
|
||||
| BPYS-2561 | Добавлена функция `cloudbroker.node.setsriovstatus`. |
|
||||
| BPYS-2551 | Добавлена функция `cloudbroker.node.get_pci_devices`. |
|
||||
| BPYS-2581 | Добавлена функция `cloudbroker.sep.add_consumer_nodes`. |
|
||||
| BPYS-2582 | Добавлена функция `cloudbroker.sep.add_pool`. |
|
||||
| BPYS-2510 | Добавлена функция `cloudbroker.apiaccess.get`. |
|
||||
| BPYS-2191 | Добавлена функция `cloudapi.disks.replication_set_schedule`. |
|
||||
| BPYS-2192 | Добавлена функция `cloudapi.disks.replication_set_copy_rate`. |
|
||||
| BPYS-2193 | Добавлена функция `cloudapi.disks.replication_promote`. |
|
||||
| BPYS-2583 | Добавлена функция `cloudbroker.sep.add_provider_nodes`. |
|
||||
| BPYS-2573 | Добавлена функция `cloudbroker.node.set_resources_limit`. |
|
||||
| BPYS-2571 | Добавлена функция `cloudbroker.node.set_cpu_allocation_ratio`. |
|
||||
| BPYS-2492 | Добавлена функция `cloudapi.disks.replication_cancel_sync`. |
|
||||
| BPYS-2584 | Добавлена функция `cloudbroker.sep.config_validate`. |
|
||||
| BPYS-2550 | Добавлена функция `cloudbroker.node.remove_ssh_identity`. |
|
||||
| BPYS-2587 | Добавлена функция `cloudbroker.sep.decommission`. |
|
||||
| BPYS-2586 | Добавлена функция `cloudbroker.sep.config_insert`. |
|
||||
| BPYS-2585 | Добавлена функция `cloudbroker.sep.create`. |
|
||||
| BPYS-2572 | Добавлена функция `cloudbroker.node.set_mem_allocation_ratio`. |
|
||||
| BPYS-2589 | Добавлена функция `cloudbroker.sep.del_pool`. |
|
||||
| BPYS-2552 | Добавлена функция `cloudbroker.node.pci_device_driver_to_vfio`. |
|
||||
| BPYS-2553 | Добавлена функция `cloudbroker.node.pci_device_driver_to_kernel`. |
|
||||
| BPYS-2595 | Добавлена функция `cloudbroker.sep.get`. |
|
||||
| BPYS-2596 | Добавлена функция `cloudbroker.sep.get_template`. |
|
||||
| BPYS-2599 | Добавлена функция `cloudbroker.sep.update`. |
|
||||
| BPYS-2600 | Добавлена функция `cloudbroker.sep.list_available_sep_and_pools`. |
|
||||
| BPYS-2601 | Добавлена функция `cloudbroker.sep.shared_lock_stop`. |
|
||||
| BPYS-2602 | Добавлена функция `cloudbroker.sep.shared_lock_start`. |
|
||||
| BPYS-2597 | Добавлена функция `cloudbroker.sep.get_config`. |
|
||||
| BPYS-2598 | Добавлена функция `cloudbroker.sep.get_pool`. |
|
||||
| BPYS-2591 | Добавлена функция `cloudbroker.sep.disable`. |
|
||||
| BPYS-2594 | Добавлена функция `cloudbroker.sep.enable`. |
|
||||
| BPYS-2609 | Добавлена функция `cloudbroker.node.get_logical_cores_count`. |
|
||||
| BPYS-2608 | Добавлена функция `cloudbroker.image.create_from_disk`. |
|
||||
| BPYS-2613 | Добавлена функция `cloudbroker.disks.migrate_v2`. |
|
||||
| BPYS-2619 | Добавлена функция `cloudbroker.disks.replication_start`. |
|
||||
| BPYS-2621 | Добавлена функция `cloudbroker.disks.replication_sync_now`. |
|
||||
| BPYS-2622 | Добавлена функция `cloudbroker.disks.replication_cancel_sync`. |
|
||||
| BPYS-2606 | Добавлена функция `cloudbroker.audit.linked_jobs`. |
|
||||
| BPYS-2614 | Добавлена функция `cloudbroker.disks.migrate_v2_abort`. |
|
||||
| BPYS-2623 | Добавлена функция `cloudbroker.disks.replication_enable_schedule`. |
|
||||
| BPYS-2624 | Добавлена функция `cloudbroker.disks.replication_disable_schedule`. |
|
||||
| BPYS-2620 | Добавлена функция `cloudbroker.disks.replication_stop`. |
|
||||
| BPYS-2548 | Добавлена функция `cloudbroker.node.get`. |
|
||||
| BPYS-2590 | Добавлена функция `cloudbroker.sep.delete`. |
|
||||
| BPYS-2593 | Добавлена функция `cloudbroker.sep.disk_list`. |
|
||||
| BPYS-2603 | Добавлена функция `cloudbroker.audit.get`. |
|
||||
| BPYS-2610 | Добавлена функция `cloudbroker.disks.present`. |
|
||||
| BPYS-2611 | Добавлена функция `cloudbroker.disks.rename`. |
|
||||
| BPYS-2612 | Добавлена функция `cloudbroker.disks.replicate`. |
|
||||
|
||||
## Удалено
|
||||
|
||||
### Функциональный интерфейс
|
||||
| Идентификатор<br>задачи | Описание |
|
||||
| --- | --- |
|
||||
| BPYS-59 | Функция API `/cloudapi/compute/get`: удален атрибут `CloudapiComputeGetResultModel.disks.shareable` в связи с переименованием в `shared`. |
|
||||
| BPYS-61 | Функция API `/cloudapi/compute/get`: удалён атрибут `CloudapiComputeGetResultModel.disks.images` в связи с переименованием в `image_ids`. |
|
||||
| BPYS-61 | Функция API `/cloudapi/compute/list`: удалён атрибут `CloudapiComputeListResultModel.data.disks.images` в связи с переименованием в `image_ids`. |
|
||||
| BPYS-62 | Функция API `/cloudapi/compute/get`: удалён параметр `compute_id` в связи с переименованием в `vm_id`. |
|
||||
| BPYS-62 | Функция API `/cloudapi/compute/update`: удалён параметр `compute_id` в связи с переименованием в `vm_id`. |
|
||||
| BPYS-62 | Функция API `/cloudapi/compute/delete`: удалён параметр `compute_id` в связи с переименованием в `vm_id`. |
|
||||
| BPYS-71 | Функция API `/cloudapi/rg/get`: удален атрибут `CloudapiRgGetResultModel.compute_features` в связи с переименованием в `vm_features`. |
|
||||
| BPYS-71 | Функция API `/cloudapi/rg/list`: удален атрибут `CloudapiRgListResultModel.data.compute_features` в связи с переименованием в `vm_features`. |
|
||||
| BPYS-73 | Функция API `/cloudapi/compute/get`: удалён параметр `CloudapiComputeGetResultModel.compute_ci_id` в связи с переименованием в `vm_ci_id`. |
|
||||
| BPYS-73 | Функция API `/cloudapi/compute/list`: удалён параметр `CloudapiComputeListResultModel.data.compute_ci_id` в связи с переименованием в `vm_ci_id`. |
|
||||
| BPYS-98 | Функция API `/cloudapi/compute/get`: удален атрибут `CloudapiComputeGetResultModel.acl.compute` в связи с переименованием в `vm`. |
|
||||
| BPYS-98 | Функция API `/cloudapi/compute/get`: для атрибута `CloudapiComputeGetResultModel.affinity_rules.topology` из перечисляемого типа `AffinityTopology` удалено значение `compute` в связи с переименованием в `vm`. |
|
||||
| BPYS-98 | Функция API `/cloudapi/compute/get`: для атрибута `CloudapiComputeGetResultModel.anti_affinity_rules.topology` из перечисляемого типа `AffinityTopology` удалено значение `compute` в связи с переименованием в `vm`. |
|
||||
| BPYS-98 | Функция API `/cloudapi/compute/list`: для атрибута `CloudapiComputeListResultModel.data.affinity_rules.topology` из перечисляемого типа `AffinityTopology` удалено значение `compute` в связи с переименованием в `vm`. |
|
||||
| BPYS-98 | Функция API `/cloudapi/compute/list`: для атрибута `CloudapiComputeListResultModel.data.anti_affinity_rules.topology` из перечисляемого типа `AffinityTopology` удалено значение `compute` в связи с переименованием в `vm`. |
|
||||
| BPYS-98 | Функция API `/cloudapi/rg/get`: для атрибута `CloudapiRgGetResultModel.resource_types` из перечисляемого типа `RGResourceType` удалено значение `compute` в связи с переименованием в `vm`. |
|
||||
| BPYS-98 | Функция API `/cloudapi/rg/list`: для атрибута `CloudapiRgListResultModel.data.resource_types` из перечисляемого типа `RGResourceType` удалено значение `compute` в связи с переименованием в `vm`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/kvmx86/create`: удалён параметр `cpu` в связи с переименованием в `cpu_count`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/kvmx86/create`: удалён параметр `ram` в связи с переименованием в `ram_size_mb`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/rg/get`: удален атрибут `CloudapiRgGetResultModel.quotas.cpu` в связи с переименованием в `cpu_count`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/rg/get`: удален атрибут `CloudapiRgGetResultModel.quotas.disk_size` в связи с переименованием в `disk_size_gb`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/rg/get`: удален атрибут `CloudapiRgGetResultModel.quotas.public_ip` в связи с переименованием в `public_ip_count`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/rg/get`: удален атрибут `CloudapiRgGetResultModel.quotas.ram` в связи с переименованием в `ram_size_mb`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/rg/get`: удален атрибут `CloudapiRgGetResultModel.quotas.storage` в связи с переименованием в `storage_size_gb`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/rg/list`: удален атрибут `CloudapiRgListResultModel.data.quotas.cpu` в связи с переименованием в `cpu_count`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/rg/list`: удален атрибут `CloudapiRgListResultModel.data.quotas.disk_size` в связи с переименованием в `disk_size_gb`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/rg/list`: удален атрибут `CloudapiRgListResultModel.data.quotas.public_ip` в связи с переименованием в `public_ip_count`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/rg/list`: удален атрибут `CloudapiRgListResultModel.data.quotas.ram` в связи с переименованием в `ram_size_mb`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/rg/list`: удален атрибут `CloudapiRgListResultModel.data.quotas.storage` в связи с переименованием в `storage_size_gb`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/compute/get`: удален атрибут `CloudapiComputeGetResultModel.cpu` в связи с переименованием в `cpu_count`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/compute/get`: удален атрибут `CloudapiComputeGetResultModel.ram` в связи с переименованием в `ram_size_mb`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/compute/list`: удален атрибут `CloudapiComputeListResultModel.data.cpu` в связи с переименованием в `cpu_count`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/compute/list`: удален атрибут `CloudapiComputeListResultModel.data.ram` в связи с переименованием в `ram_size_mb`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/compute/get`: удален атрибут `CloudapiComputeGetResultModel.boot_disk_size` в связи с переименованием в `boot_disk_size_gb`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/compute/get`: удален атрибут `CloudapiComputeGetResultModel.boot_disk_size` в связи с переименованием в `boot_disk_size_gb`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/compute/list`: удален атрибут `CloudapiComputeListResultModel.data.boot_disk_size` в связи с переименованием в `boot_disk_size_gb`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/compute/list`: удален атрибут `CloudapiComputeListResultModel.data.boot_disk_size` в связи с переименованием в `boot_disk_size_gb`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/kvmx86/create`: удален параметр `boot_disk_size_gb` в связи с переименованием в `boot_disk_size`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/kvmx86/createBlank`: удален параметр `boot_disk_size_gb` в связи с переименованием в `boot_disk_size`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/rg/create`: удален параметр `cpu_quota` в связи с переименованием в `cpu_count_quota`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/rg/create`: удален параметр `public_ip_quota` в связи с переименованием в `public_ip_count_quota`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/rg/create`: удален параметр `ram_quota` в связи с переименованием в `ram_size_quota_mb`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/rg/create`: удален параметр `storage_size_quota_gb` в связи с переименованием в `storage_quota`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/rg/get`: удален атрибут `CloudapiRgGetResultModel.quotas.gpu` в связи с переименованием в `gpu_count`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/rg/get`: удален атрибут `CloudapiRgGetResultModel.quotas.gpu` в связи с переименованием в `gpu_count`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/rg/list`: удален атрибут `CloudapiRgListResultModel.data.quotas.gpu` в связи с переименованием в `gpu_count`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/rg/list`: удален атрибут `CloudapiRgListResultModel.data.quotas.gpu` в связи с переименованием в `gpu_count`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/rg/update`: удален параметр `cpu_quota` в связи с переименованием в `cpu_count_quota`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/rg/update`: удален параметр `public_ip_quota` в связи с переименованием в `public_ip_count_quota`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/rg/update`: удален параметр `ram_quota` в связи с переименованием в `ram_size_quota_mb`. |
|
||||
| BPYS-116 | Функция API `/cloudapi/rg/update`: удален параметр `storage_quota` в связи с переименованием в `storage_size_quota_gb`. |
|
||||
| BPYS-126 | Функция API `/cloudapi/compute/get`: удален атрибут `CloudapiComputeGetResultModel.gpu_ids` в связи с переименованием в `vgpus`. |
|
||||
| BPYS-126 | Функция API `/cloudapi/compute/list`: удален атрибут `CloudapiComputeListResultModel.data.gpu_ids` в связи с переименованием в `vgpus`. |
|
||||
| BPYS-120 | Добавлены функции API `/cloudapi/compute/userGrant`, `/cloudapi/compute/userList`, `/cloudapi/compute/userRevoke`, `/cloudapi/compute/userUpdate`. |
|
||||
| BPYS-196 | Функция API `/cloudapi/compute/get`: удален атрибут `CloudapiComputeGetResultModel.cd_image_id` в связи с переименованием в `cdrom_image_id`. |
|
||||
| BPYS-196 | Функция API `/cloudapi/compute/list`: удален атрибут `CloudapiComputeListResultModel.data.cd_image_id` в связи с переименованием в `cdrom_image_id`. |
|
||||
| BPYS-148 | Функция API `/cloudapi/kvmx86/create`: у параметра `data_disks` в модели `DiskAPIParamsNM` удален атрибут `size` в связи с переименованием в `size_gb`. |
|
||||
|
||||
## Исправлено
|
||||
|
||||
### Функциональный интерфейс
|
||||
| Идентификатор<br>задачи | Описание |
|
||||
| --- | --- |
|
||||
| BPYS-62 | Функция API `/cloudapi/compute/get`: имя атрибута `CloudapiComputeGetResultModel.vns_password` исправлено на `vnc_password`. |
|
||||
| BPYS-126 | Вызов функции `/cloudapi/compute/get` завершался ошибкой валидации атрибута `CloudapiComputeGetResultModel.gpu_ids` при наличии соответствующих данных в ответе API. |
|
||||
| BPYS-126 | Вызов функции `/cloudapi/compute/list` завершался ошибкой валидации атрибута `CloudapiComputeListResultModel.data.gpu_ids` при наличии соответствующих данных в ответе API. |
|
||||
@@ -1,4 +0,0 @@
|
||||
dev:
|
||||
pip install -e .
|
||||
pip install -r requirements-dev.txt
|
||||
pre-commit install
|
||||
+16
-6
@@ -1,16 +1,26 @@
|
||||
[project]
|
||||
name = "dynamix-sdk"
|
||||
authors = [{name = "Dmitriy Smirnov"}]
|
||||
version = "1.0.1"
|
||||
authors = [
|
||||
{name = "Dmitriy Smirnov"},
|
||||
{name = "Vladislav Nesterov"},
|
||||
{name = "Stanislav Karimov"},
|
||||
]
|
||||
version = "2.1.3"
|
||||
|
||||
readme = "README.md"
|
||||
|
||||
requires-python = ">=3.10.12"
|
||||
requires-python = ">=3.12, <3.15"
|
||||
|
||||
dependencies = [
|
||||
"requests>=2.32.3",
|
||||
"pydantic>=2.10.5",
|
||||
"pyyaml>=6.0.2",
|
||||
"requests==2.34.2",
|
||||
"pydantic==2.13.5",
|
||||
"pyyaml==6.0.3",
|
||||
]
|
||||
|
||||
[dependency-groups]
|
||||
dev = [
|
||||
"pre-commit==4.6.2",
|
||||
"pytest==9.1.1",
|
||||
]
|
||||
|
||||
[project.urls]
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
pre-commit==4.1.0
|
||||
pytest==8.3.5
|
||||
@@ -8,3 +8,15 @@ class API(_base.BaseAPI):
|
||||
cloudapi: CloudapiAPI
|
||||
cloudbroker: CloudbrokerAPI
|
||||
system: SystemAPI
|
||||
|
||||
@property
|
||||
def ca(self):
|
||||
return self.cloudapi
|
||||
|
||||
@property
|
||||
def cb(self):
|
||||
return self.cloudbroker
|
||||
|
||||
@property
|
||||
def sys(self):
|
||||
return self.system
|
||||
@@ -1,3 +1,5 @@
|
||||
from enum import Enum
|
||||
|
||||
from dynamix_sdk.utils import (
|
||||
AutoNameEnum as _AutoNameEnum,
|
||||
enum_auto as _enum_auto,
|
||||
@@ -11,6 +13,16 @@ class AccessType(str, _AutoNameEnum):
|
||||
R = _enum_auto()
|
||||
|
||||
|
||||
class ACLType(str, _AutoNameEnum):
|
||||
U = _enum_auto()
|
||||
G = _enum_auto()
|
||||
|
||||
|
||||
class ACLStatus(str, _AutoNameEnum):
|
||||
INVITED = _enum_auto()
|
||||
CONFIRMED = _enum_auto()
|
||||
|
||||
|
||||
class AffinityMode(str, _AutoNameEnum):
|
||||
ANY = _enum_auto()
|
||||
EQ = _enum_auto()
|
||||
@@ -23,19 +35,38 @@ class AffinityPolicy(str, _AutoNameEnum):
|
||||
|
||||
|
||||
class AffinityTopology(str, _AutoNameEnum):
|
||||
vm = 'compute'
|
||||
node = _enum_auto()
|
||||
VM = 'compute'
|
||||
NODE = 'node'
|
||||
|
||||
|
||||
class ComputeAffinityRuleMigrationStatus(str, _AutoNameEnum):
|
||||
MIGRATED = 'migrated'
|
||||
SKIPPED = 'skipped'
|
||||
NOT_STARTED = 'not_started'
|
||||
NOT_COMPLETED = 'not_completed'
|
||||
|
||||
|
||||
class ComputeMigrateV2Mode(str, _AutoNameEnum):
|
||||
COMPUTE = 'compute'
|
||||
DISKS = 'disks'
|
||||
COMPUTE_AND_DISKS = 'compute_and_disks'
|
||||
|
||||
|
||||
class ComputeMigrateV2AbortStatus(str, _AutoNameEnum):
|
||||
ACCEPTED = 'accepted'
|
||||
REJECTED = 'rejected'
|
||||
UNKNOWN = 'unknown'
|
||||
|
||||
|
||||
class BootDevice(str, _AutoNameEnum):
|
||||
cdrom = _enum_auto()
|
||||
hd = _enum_auto()
|
||||
network = _enum_auto()
|
||||
CDROM = 'cdrom'
|
||||
HD = 'hd'
|
||||
NETWORK = 'network'
|
||||
|
||||
|
||||
class Chipset(str, _AutoNameEnum):
|
||||
Q35 = _enum_auto()
|
||||
i440fx = _enum_auto()
|
||||
I440FX = 'i440fx'
|
||||
|
||||
|
||||
class Driver(str, _AutoNameEnum):
|
||||
@@ -47,6 +78,8 @@ class NetType(str, _AutoNameEnum):
|
||||
DPDK = _enum_auto()
|
||||
EMPTY = _enum_auto()
|
||||
EXTNET = _enum_auto()
|
||||
SDN = _enum_auto()
|
||||
TRUNK = _enum_auto()
|
||||
VFNIC = _enum_auto()
|
||||
VINS = _enum_auto()
|
||||
|
||||
@@ -57,27 +90,27 @@ class NetTypeForChangeIP(str, _AutoNameEnum):
|
||||
|
||||
|
||||
class NumaAffinity(str, _AutoNameEnum):
|
||||
none = _enum_auto()
|
||||
strict = _enum_auto()
|
||||
loose = _enum_auto()
|
||||
NONE = 'none'
|
||||
STRICT = 'strict'
|
||||
LOOSE = 'loose'
|
||||
|
||||
|
||||
class TXMode(str, _AutoNameEnum):
|
||||
iothread = _enum_auto()
|
||||
selected_by_hypervisor = 'selected by hypervisor'
|
||||
timer = _enum_auto()
|
||||
IOTHREAD = 'iothread'
|
||||
SELECTED_BY_HYPERVISOR = 'selected by hypervisor'
|
||||
TIMER = 'timer'
|
||||
|
||||
|
||||
class Ioeventfd(str, _AutoNameEnum):
|
||||
off = _enum_auto()
|
||||
on = _enum_auto()
|
||||
selected_by_hypervisor = 'selected by hypervisor'
|
||||
OFF = 'off'
|
||||
ON = 'on'
|
||||
SELECTED_BY_HYPERVISOR = 'selected by hypervisor'
|
||||
|
||||
|
||||
class EventIdx(str, _AutoNameEnum):
|
||||
off = _enum_auto()
|
||||
on = _enum_auto()
|
||||
selected_by_hypervisor = 'selected by hypervisor'
|
||||
OFF = 'off'
|
||||
ON = 'on'
|
||||
SELECTED_BY_HYPERVISOR = 'selected by hypervisor'
|
||||
|
||||
|
||||
class ResourceGroupStatus(str, _AutoNameEnum):
|
||||
@@ -98,12 +131,30 @@ class LockStatus(str, _AutoNameEnum):
|
||||
UNLOCKED = _enum_auto()
|
||||
|
||||
|
||||
class MemoryBalloonMode(str, _AutoNameEnum):
|
||||
AUTO = 'auto'
|
||||
LEGACY = 'legacy'
|
||||
NONE = 'none'
|
||||
|
||||
|
||||
class VMFeature(str, _AutoNameEnum):
|
||||
cpupin = _enum_auto()
|
||||
dpdk = _enum_auto()
|
||||
hugepages = _enum_auto()
|
||||
numa = _enum_auto()
|
||||
vfnic = _enum_auto()
|
||||
CHANGEMAC = 'changemac'
|
||||
CPUPIN = 'cpupin'
|
||||
DPDK = 'dpdk'
|
||||
HUGEPAGES = 'hugepages'
|
||||
NUMA = 'numa'
|
||||
PCIDEVICE = 'pcidevice'
|
||||
TRUNK = 'trunk'
|
||||
VGPU = 'vgpu'
|
||||
VFNIC = 'vfnic'
|
||||
|
||||
|
||||
class WatchdogAction(str, _AutoNameEnum):
|
||||
RESET = 'reset'
|
||||
SHUTDOWN = 'shutdown'
|
||||
POWEROFF = 'poweroff'
|
||||
PAUSE = 'pause'
|
||||
NONE = 'none'
|
||||
|
||||
|
||||
class RGDefaultNetTypeForSet(str, _AutoNameEnum):
|
||||
@@ -118,21 +169,27 @@ class RGDefaultNetType(str, _AutoNameEnum):
|
||||
|
||||
|
||||
class RGResourceType(str, _AutoNameEnum):
|
||||
vm = 'compute'
|
||||
k8s = _enum_auto()
|
||||
lb = _enum_auto()
|
||||
vins = _enum_auto()
|
||||
VM = 'compute'
|
||||
K8S = 'k8s'
|
||||
LB = 'lb'
|
||||
VINS = 'vins'
|
||||
|
||||
|
||||
class DiskStatus(str, _AutoNameEnum):
|
||||
ASSIGNED = _enum_auto()
|
||||
BACKUP_RUNNING = _enum_auto()
|
||||
CLONING = _enum_auto()
|
||||
CREATED = _enum_auto()
|
||||
CREATING = _enum_auto()
|
||||
DELETED = _enum_auto()
|
||||
DESTROYED = _enum_auto()
|
||||
DESTROYING = _enum_auto()
|
||||
MERGE = _enum_auto()
|
||||
MIGRATING = _enum_auto()
|
||||
MODELED = _enum_auto()
|
||||
PURGED = _enum_auto()
|
||||
REPLICATION = _enum_auto()
|
||||
ROLLBACK = _enum_auto()
|
||||
SNAPCREATE = _enum_auto()
|
||||
|
||||
|
||||
class DiskTechStatus(str, _AutoNameEnum):
|
||||
@@ -155,22 +212,23 @@ class VMStatus(str, _AutoNameEnum):
|
||||
class VMTechStatus(str, _AutoNameEnum):
|
||||
BACKUP_RUNNING = _enum_auto()
|
||||
BACKUP_STOPPED = _enum_auto()
|
||||
CLONING = _enum_auto()
|
||||
DOWN = _enum_auto()
|
||||
MERGE = _enum_auto()
|
||||
MIGRATING = _enum_auto()
|
||||
MIGRATING_IN = _enum_auto()
|
||||
MIGRATING_OUT = _enum_auto()
|
||||
PAUSED = _enum_auto()
|
||||
PAUSING = _enum_auto()
|
||||
ROLLBACK = _enum_auto()
|
||||
SCHEDULED = _enum_auto()
|
||||
SNAPCREATE = _enum_auto()
|
||||
STARTED = _enum_auto()
|
||||
STARTING = _enum_auto()
|
||||
STOPPED = _enum_auto()
|
||||
STOPPING = _enum_auto()
|
||||
|
||||
|
||||
class DiskType(str, _AutoNameEnum):
|
||||
B = _enum_auto()
|
||||
D = _enum_auto()
|
||||
|
||||
|
||||
class AccountStatus(str, _AutoNameEnum):
|
||||
CONFIRMED = _enum_auto()
|
||||
DISABLED = _enum_auto()
|
||||
@@ -180,11 +238,11 @@ class AccountStatus(str, _AutoNameEnum):
|
||||
|
||||
|
||||
class AccountResourceType(str, _AutoNameEnum):
|
||||
vm = 'compute'
|
||||
k8s = _enum_auto()
|
||||
lb = _enum_auto()
|
||||
vins = _enum_auto()
|
||||
flipgroup = _enum_auto()
|
||||
VM = 'compute'
|
||||
K8S = 'k8s'
|
||||
LB = 'lb'
|
||||
VINS = 'vins'
|
||||
FLIPGROUP = 'flipgroup'
|
||||
|
||||
|
||||
class ImageTechStatus(str, _AutoNameEnum):
|
||||
@@ -201,16 +259,18 @@ class ImageStatus(str, _AutoNameEnum):
|
||||
|
||||
|
||||
class ImageType(str, _AutoNameEnum):
|
||||
cdrom = _enum_auto()
|
||||
linux = _enum_auto()
|
||||
other = _enum_auto()
|
||||
virtual = _enum_auto()
|
||||
windows = _enum_auto()
|
||||
CDROM = 'cdrom'
|
||||
LINUX = 'linux'
|
||||
MULTI = 'multi'
|
||||
UNKNOWN = 'unknown'
|
||||
VIRTUAL = 'virtual'
|
||||
WINDOWS = 'windows'
|
||||
MEMORY_DUMP = 'memorydump'
|
||||
|
||||
|
||||
class NetIfaceNamingTemplate(str, _AutoNameEnum):
|
||||
ens = _enum_auto()
|
||||
eth = _enum_auto()
|
||||
ENS = 'ens'
|
||||
ETH = 'eth'
|
||||
|
||||
|
||||
class VINSStatus(str, _AutoNameEnum):
|
||||
@@ -233,6 +293,23 @@ class VNFType(str, _AutoNameEnum):
|
||||
|
||||
|
||||
class VNFDevStatus(str, _AutoNameEnum):
|
||||
MODELED = _enum_auto()
|
||||
CREATED = _enum_auto()
|
||||
DELETED = _enum_auto()
|
||||
DESTROYED = _enum_auto()
|
||||
|
||||
|
||||
class VNFDevTechStatus(str, _AutoNameEnum):
|
||||
DOWN = _enum_auto()
|
||||
MIGRATING = _enum_auto()
|
||||
SCHEDULED = _enum_auto()
|
||||
STARTED = _enum_auto()
|
||||
STARTING = _enum_auto()
|
||||
STOPPED = _enum_auto()
|
||||
STOPPING = _enum_auto()
|
||||
|
||||
|
||||
class VNFStatus(str, _AutoNameEnum):
|
||||
MODELED = _enum_auto()
|
||||
CREATED = _enum_auto()
|
||||
ENABLED = _enum_auto()
|
||||
@@ -242,7 +319,7 @@ class VNFDevStatus(str, _AutoNameEnum):
|
||||
STASHED = _enum_auto()
|
||||
|
||||
|
||||
class VNFDevTechStatus(str, _AutoNameEnum):
|
||||
class VNFTechStatus(str, _AutoNameEnum):
|
||||
STARTING = _enum_auto()
|
||||
STARTED = _enum_auto()
|
||||
STOPPING = _enum_auto()
|
||||
@@ -255,17 +332,17 @@ class VINSInterfaceType(str, _AutoNameEnum):
|
||||
|
||||
|
||||
class NATRuleProtocol(str, _AutoNameEnum):
|
||||
tcp = _enum_auto()
|
||||
udp = _enum_auto()
|
||||
TCP = 'tcp'
|
||||
UDP = 'udp'
|
||||
|
||||
|
||||
class VNFDevType(str, _AutoNameEnum):
|
||||
vyos = _enum_auto()
|
||||
VYOS = 'vyos'
|
||||
|
||||
|
||||
class BootMode(str, _AutoNameEnum):
|
||||
bios = _enum_auto()
|
||||
uefi = _enum_auto()
|
||||
BIOS = 'bios'
|
||||
UEFI = 'uefi'
|
||||
|
||||
|
||||
class BServiceStatus(str, _AutoNameEnum):
|
||||
@@ -323,6 +400,18 @@ class SEPType(str, _AutoNameEnum):
|
||||
TATLIN = _enum_auto()
|
||||
DORADO = _enum_auto()
|
||||
SHARED = _enum_auto()
|
||||
USTOR = _enum_auto()
|
||||
AERODISK = _enum_auto()
|
||||
|
||||
|
||||
class ImageListSEPType(str, _AutoNameEnum):
|
||||
HITACHI = _enum_auto()
|
||||
DES = _enum_auto()
|
||||
LOCAL = _enum_auto()
|
||||
TATLIN = _enum_auto()
|
||||
DORADO = _enum_auto()
|
||||
SHARED = _enum_auto()
|
||||
USTOR = _enum_auto()
|
||||
|
||||
|
||||
class ExtNetStatus(str, _AutoNameEnum):
|
||||
@@ -337,9 +426,9 @@ class ExtNetStatus(str, _AutoNameEnum):
|
||||
|
||||
|
||||
class BootLoaderType(str, _AutoNameEnum):
|
||||
linux = _enum_auto()
|
||||
other = _enum_auto()
|
||||
windows = _enum_auto()
|
||||
LINUX = 'linux'
|
||||
UNKNOWN = 'unknown'
|
||||
WINDOWS = 'windows'
|
||||
|
||||
|
||||
class FlipGroupClientType(str, _AutoNameEnum):
|
||||
@@ -357,11 +446,16 @@ class FlipGroupNetType(str, _AutoNameEnum):
|
||||
|
||||
|
||||
class PoolDiskType(str, _AutoNameEnum):
|
||||
B = _enum_auto()
|
||||
D = _enum_auto()
|
||||
BOOT = 'B'
|
||||
DATA = 'D'
|
||||
ANY = _enum_auto()
|
||||
|
||||
|
||||
class TatlinPoolType(str, _AutoNameEnum):
|
||||
DIRECT = 'direct'
|
||||
INDIRECT = 'indirect'
|
||||
|
||||
|
||||
class CountChangeMode(str, _AutoNameEnum):
|
||||
ABSOLUTE = _enum_auto()
|
||||
RELATIVE = _enum_auto()
|
||||
@@ -412,15 +506,6 @@ class DataDisksChangeMode(str, _AutoNameEnum):
|
||||
KEEP = _enum_auto()
|
||||
|
||||
|
||||
class PhysicalNodeStatus(str, _AutoNameEnum):
|
||||
DECOMMISSIONED = _enum_auto()
|
||||
DECOMMISSIONING = _enum_auto()
|
||||
ENABLED = _enum_auto()
|
||||
INSTALLING = _enum_auto()
|
||||
MAINTENANCE = _enum_auto()
|
||||
RESTRICTED = _enum_auto()
|
||||
|
||||
|
||||
class AuthBroker(str, _AutoNameEnum):
|
||||
DECS3O = 'decs3o'
|
||||
BVS = 'bvs'
|
||||
@@ -431,3 +516,269 @@ class DHCPReservationType(str, _AutoNameEnum):
|
||||
EXCLUDED = _enum_auto()
|
||||
SERVICE = _enum_auto()
|
||||
VIP = _enum_auto()
|
||||
|
||||
|
||||
class TaskStatus(str, _AutoNameEnum):
|
||||
ABORTED = _enum_auto()
|
||||
CLEANUPED = _enum_auto()
|
||||
ERROR = _enum_auto()
|
||||
OK = _enum_auto()
|
||||
PROCESSING = _enum_auto()
|
||||
SCHEDULED = _enum_auto()
|
||||
|
||||
|
||||
class K8sNetworkPlugin(str, _AutoNameEnum):
|
||||
FLANNEL = 'flannel'
|
||||
CALICO = 'calico'
|
||||
WEAVENET = 'weavenet'
|
||||
|
||||
|
||||
class NetworkMode(str, _AutoNameEnum):
|
||||
OVS = 'ovs'
|
||||
BRIDGE = 'bridge'
|
||||
DPDK = 'dpdk'
|
||||
SDN = 'sdn'
|
||||
|
||||
|
||||
class K8CIStatus(str, _AutoNameEnum):
|
||||
CREATED = _enum_auto()
|
||||
DELETED = _enum_auto()
|
||||
DESTROYED = _enum_auto()
|
||||
DISABLED = _enum_auto()
|
||||
ENABLED = _enum_auto()
|
||||
MODELED = _enum_auto()
|
||||
|
||||
|
||||
class K8sStatus(str, _AutoNameEnum):
|
||||
CREATED = _enum_auto()
|
||||
CREATING = _enum_auto()
|
||||
DELETED = _enum_auto()
|
||||
DELETING = _enum_auto()
|
||||
DESTROYED = _enum_auto()
|
||||
DESTROYING = _enum_auto()
|
||||
DISABLED = _enum_auto()
|
||||
DISABLING = _enum_auto()
|
||||
ENABLED = _enum_auto()
|
||||
ENABLING = _enum_auto()
|
||||
MODELED = _enum_auto()
|
||||
RESTORING = _enum_auto()
|
||||
|
||||
|
||||
class K8sTechStatus(str, _AutoNameEnum):
|
||||
STARTED = _enum_auto()
|
||||
STARTING = _enum_auto()
|
||||
STOPPED = _enum_auto()
|
||||
STOPPING = _enum_auto()
|
||||
|
||||
|
||||
class DPDKNetStatus(str, _AutoNameEnum):
|
||||
CREATED = _enum_auto()
|
||||
DESTROYED = _enum_auto()
|
||||
DISABLED = _enum_auto()
|
||||
ENABLED = _enum_auto()
|
||||
|
||||
|
||||
class VFPoolStatus(str, _AutoNameEnum):
|
||||
CREATED = _enum_auto()
|
||||
DESTROYED = _enum_auto()
|
||||
DISABLED = _enum_auto()
|
||||
ENABLED = _enum_auto()
|
||||
|
||||
|
||||
class LinkState(str, _AutoNameEnum):
|
||||
ON = 'on'
|
||||
OFF = 'off'
|
||||
|
||||
|
||||
class ZoneStatus(str, _AutoNameEnum):
|
||||
CREATED = _enum_auto()
|
||||
DESTROYED = _enum_auto()
|
||||
|
||||
|
||||
class LoggingLevel(str, _AutoNameEnum):
|
||||
CRITICAL = _enum_auto()
|
||||
ERROR = _enum_auto()
|
||||
WARNING = _enum_auto()
|
||||
NOTICE = _enum_auto()
|
||||
INFO = _enum_auto()
|
||||
DEBUG = _enum_auto()
|
||||
|
||||
|
||||
class SDRSMode(str, _AutoNameEnum):
|
||||
AUTO = 'auto'
|
||||
MANUAL = 'manual'
|
||||
|
||||
|
||||
class TrafficDirection(str, _AutoNameEnum):
|
||||
INBOUND = 'inbound'
|
||||
OUTBOUND = 'outbound'
|
||||
|
||||
|
||||
class SGRuleEthertype(str, _AutoNameEnum):
|
||||
IPV4 = 'IPv4'
|
||||
IPV6 = 'IPv6'
|
||||
|
||||
|
||||
class SGRuleProtocol(str, _AutoNameEnum):
|
||||
ICMP = 'icmp'
|
||||
TCP = 'tcp'
|
||||
UDP = 'udp'
|
||||
|
||||
|
||||
class TrunkStatus(str, _AutoNameEnum):
|
||||
CREATED = _enum_auto()
|
||||
DESTROYED = _enum_auto()
|
||||
DESTROYING = _enum_auto()
|
||||
DISABLED = _enum_auto()
|
||||
ENABLED = _enum_auto()
|
||||
ENABLING = _enum_auto()
|
||||
MODELED = _enum_auto()
|
||||
|
||||
|
||||
class StoragePolicyStatus(str, _AutoNameEnum):
|
||||
DESTROYED = _enum_auto()
|
||||
DISABLED = _enum_auto()
|
||||
ENABLED = _enum_auto()
|
||||
|
||||
|
||||
class ReplicationType(str, _AutoNameEnum):
|
||||
SYNC = 'sync'
|
||||
ASYNC = 'async'
|
||||
|
||||
|
||||
class ReplicationProfileScheduleType(str, _AutoNameEnum):
|
||||
INTERVAL = 'interval'
|
||||
CALENDAR = 'calendar'
|
||||
MANUAL_SYNC = 'manualSync'
|
||||
|
||||
|
||||
class NetworkQosPolicyStatus(str, _AutoNameEnum):
|
||||
DESTROYED = _enum_auto()
|
||||
DISABLED = _enum_auto()
|
||||
ENABLED = _enum_auto()
|
||||
|
||||
|
||||
class NetworkQosPolicyRuleDirection(str, _AutoNameEnum):
|
||||
OUTBOUND = 'outbound'
|
||||
|
||||
|
||||
class NetworkQosPolicyRuleProtocol(str, _AutoNameEnum):
|
||||
ICMP = 'icmp'
|
||||
TCP = 'tcp'
|
||||
UDP = 'udp'
|
||||
|
||||
|
||||
class JobStatus(str, _AutoNameEnum):
|
||||
ABORTED = _enum_auto()
|
||||
CLEANUPED = _enum_auto()
|
||||
ERROR = _enum_auto()
|
||||
OK = _enum_auto()
|
||||
PROCESSING = _enum_auto()
|
||||
SCHEDULED = _enum_auto()
|
||||
|
||||
|
||||
class PGPUProcessorType(str, _AutoNameEnum):
|
||||
NVIDIA = _enum_auto()
|
||||
DUMMY = _enum_auto()
|
||||
|
||||
|
||||
class PGPUMode(str, _AutoNameEnum):
|
||||
PASSTHROUGH = _enum_auto()
|
||||
|
||||
|
||||
class VGPUStatus(str, _AutoNameEnum):
|
||||
CREATED = _enum_auto()
|
||||
DESTROYED = _enum_auto()
|
||||
ERROR = _enum_auto()
|
||||
|
||||
|
||||
class NetMapSourceType(str, _AutoNameEnum):
|
||||
NETWORK = 'network'
|
||||
BRIDGE = 'bridge'
|
||||
|
||||
|
||||
class DiskMigrateJobType(int, Enum):
|
||||
PULL = 1
|
||||
COPY = 2
|
||||
COMMIT = 3
|
||||
|
||||
|
||||
class PCIDeviceStatus(str, _AutoNameEnum):
|
||||
CLAIMED = _enum_auto()
|
||||
CLAIMING = _enum_auto()
|
||||
DESTROYED = _enum_auto()
|
||||
DISABLED = _enum_auto()
|
||||
ENABLED = _enum_auto()
|
||||
ERROR = _enum_auto()
|
||||
|
||||
|
||||
class CPUAllocationMode(str, _AutoNameEnum):
|
||||
STRICT = 'strict'
|
||||
LOOSE = 'loose'
|
||||
|
||||
|
||||
class SEPTechStatus(str, _AutoNameEnum):
|
||||
DISABLED = _enum_auto()
|
||||
ENABLED = _enum_auto()
|
||||
|
||||
|
||||
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'
|
||||
NONE = ''
|
||||
|
||||
|
||||
class ClockSyncMode(str, _AutoNameEnum):
|
||||
DEFAULT = 'default'
|
||||
LINUX = 'linux'
|
||||
WINDOWS = 'windows'
|
||||
NONE = 'none'
|
||||
|
||||
|
||||
class DiskDiscard(str, _AutoNameEnum):
|
||||
UNMAP = 'unmap'
|
||||
IGNORE = 'ignore'
|
||||
|
||||
|
||||
class VMFolderStatus(str, _AutoNameEnum):
|
||||
CREATED = _enum_auto()
|
||||
DESTROYED = _enum_auto()
|
||||
|
||||
|
||||
class PrometheusMetricID(str, _AutoNameEnum):
|
||||
COMPUTE_CPU_LOAD = 'computeCPUload'
|
||||
COMPUTE_MEMORY_USAGE = 'computeMemoryUsage'
|
||||
COMPUTE_MEMORY_USABLE = 'computeMemoryUsable'
|
||||
COMPUTE_MEMORY_UNUSED = 'computeMemoryUnused'
|
||||
COMPUTE_MEMORY_USED = 'computeMemoryUsed'
|
||||
COMPUTE_MEMORY_AVAILABLE = 'computeMemoryAvailable'
|
||||
COMPUTE_READ_BYTES = 'computeReadBytes'
|
||||
COMPUTE_READ_REQUESTS = 'computeReadRequests'
|
||||
COMPUTE_RECEIVE_BYTES = 'computeReceiveBytes'
|
||||
COMPUTE_TRANSMIT_BYTES = 'computeTransmitBytes'
|
||||
COMPUTE_TRANSMIT_PACKETS = 'computeTransmitPackets'
|
||||
COMPUTE_WRITE_BYTES = 'computeWriteBytes'
|
||||
COMPUTE_WRITE_REQUESTS = 'computeWriteRequests'
|
||||
COMPUTE_RECEIVE_PACKETS = 'computeReceivePackets'
|
||||
@@ -1,3 +1,5 @@
|
||||
from pydantic import Field
|
||||
|
||||
import dynamix_sdk.base as _base
|
||||
from . import enums as _enums
|
||||
|
||||
@@ -5,22 +7,114 @@ from . import enums as _enums
|
||||
class DiskAPIParamsNM(_base.BaseAPIParamsNestedModel):
|
||||
name: str
|
||||
size_gb: int
|
||||
storage_policy_id: int
|
||||
|
||||
description: None | str = None
|
||||
image_id: None | int = None
|
||||
sep_id: None | int = None
|
||||
sep_pool_name: None | str = None
|
||||
read_only: bool = False
|
||||
|
||||
|
||||
class InterfaceAPIParamsNM(_base.BaseAPIParamsNestedModel):
|
||||
enabled: bool = True
|
||||
net_id: int
|
||||
net_prefix: None | int = None
|
||||
net_type: _enums.NetType
|
||||
sdn_logical_port_id: None | str = None
|
||||
security_group_ids: None | list[int] = None
|
||||
security_group_mode: bool = False
|
||||
sdn_segment_id: None | str = None
|
||||
sdn_object_group_id: None | str = None
|
||||
sdn_logical_port_display_name: None | str = None
|
||||
sdn_logical_port_description: None | str = None
|
||||
qos_policies: list[int] | None = None
|
||||
|
||||
ip_addr: None | str = None
|
||||
mac: None | str = None
|
||||
mtu: None | int = None
|
||||
|
||||
|
||||
class CloudbrokerKvmx86CreateDataDiskAPIParamsNM(
|
||||
_base.BaseAPIParamsNestedModel,
|
||||
):
|
||||
disk_name: str
|
||||
size: int
|
||||
storage_policy_id: int
|
||||
sep_id: int | None = None
|
||||
pool: str | None = None
|
||||
desc: str | None = None
|
||||
image_id: int | None = None
|
||||
cache: _enums.DiskCacheMode | None = None
|
||||
discard: _enums.DiskDiscard | None = None
|
||||
read_only: bool = False
|
||||
|
||||
|
||||
class CloudbrokerKvmx86CreateInterfaceAPIParamsNM(
|
||||
_base.BaseAPIParamsNestedModel,
|
||||
):
|
||||
net_type: _enums.NetType
|
||||
net_id: int
|
||||
ip_addr: str | None = None
|
||||
net_mask: int | None = None
|
||||
mtu: int | None = None
|
||||
mac: str | None = None
|
||||
sdn_interface_id: str | None = None
|
||||
sdn_segment_id: str | None = None
|
||||
sdn_object_group_ids: list[str] | None = None
|
||||
sdn_logical_port_display_name: str | None = None
|
||||
sdn_logical_port_description: str | None = None
|
||||
enable_default_gateway: bool = True
|
||||
security_groups: list[int] | None = None
|
||||
enable_secgroups: bool = False
|
||||
enabled: bool = True
|
||||
qos_policies: list[int] | None = None
|
||||
|
||||
|
||||
class RouteAPIParamsNM(_base.BaseAPIParamsNestedModel):
|
||||
dst_net_ip: str
|
||||
dst_net_mask: str
|
||||
gateway: str
|
||||
|
||||
|
||||
class CloudbrokerVinsCreateRouteAPIParamsNM(
|
||||
_base.BaseAPIParamsNestedModel,
|
||||
):
|
||||
destination: str
|
||||
netmask: str
|
||||
gateway: str
|
||||
|
||||
|
||||
class StoragePolicyQuotasAPIParamsNM(_base.BaseAPIParamsNestedModel):
|
||||
id: int
|
||||
storage_size_gb: int
|
||||
|
||||
|
||||
class SEPPoolsAPIParamsNM(_base.BaseAPIParamsNestedModel):
|
||||
pool_names: list[str]
|
||||
sep_id: int
|
||||
|
||||
|
||||
class OSUserAPIParamsNM(_base.BaseAPIParamsNestedModel):
|
||||
guid: str
|
||||
login: str
|
||||
password: str
|
||||
ssh_public_key: str
|
||||
|
||||
|
||||
class NetMapConfigAPIParamsNM(_base.BaseAPIParamsNestedModel):
|
||||
target_dev: str
|
||||
source_type: _enums.NetMapSourceType
|
||||
source_value: str
|
||||
|
||||
|
||||
class BackupDiskAPIParamsNM(_base.BaseAPIParamsNestedModel):
|
||||
disk_id: int = Field(serialization_alias='diskId')
|
||||
backup_path: str = Field(serialization_alias='backupPath')
|
||||
speed: int | None = Field(serialization_alias='speed', default=None)
|
||||
|
||||
|
||||
class VFNicAPIParamsNM(_base.BaseAPIParamsNestedModel):
|
||||
fn_id: int = Field(serialization_alias='fnId')
|
||||
spoofchk: bool = True
|
||||
trust: bool = True
|
||||
+2254
-263
File diff suppressed because it is too large.
Load diff
@@ -1,34 +1,60 @@
|
||||
import dynamix_sdk.base as _base
|
||||
from .account import *
|
||||
from .audit import *
|
||||
from .bservice import *
|
||||
from .compute import *
|
||||
from .disks import *
|
||||
from .dpdknet import *
|
||||
from .extnet import *
|
||||
from .flipgroup import *
|
||||
from .image import *
|
||||
from .k8ci import *
|
||||
from .k8s import *
|
||||
from .kvmx86 import *
|
||||
from .lb import *
|
||||
from .locations import *
|
||||
from .network_qos_policy import *
|
||||
from .pcidevice import *
|
||||
from .rg import *
|
||||
from .stack import *
|
||||
from .security_group import *
|
||||
from .sep import *
|
||||
from .storage_policy import *
|
||||
from .tasks import *
|
||||
from .trunk import *
|
||||
from .user import *
|
||||
from .vfpool import *
|
||||
from .vgpu import *
|
||||
from .vins import *
|
||||
from .vmfolder import *
|
||||
from .zone import *
|
||||
|
||||
|
||||
class CloudapiAPI(_base.BaseAPI):
|
||||
account: CloudapiAccountAPI
|
||||
audit: CloudapiAuditAPI
|
||||
bservice: CloudapiBserviceAPI
|
||||
compute: CloudapiComputeAPI
|
||||
disks: CloudapiDisksAPI
|
||||
dpdknet: CloudapiDpdknetAPI
|
||||
extnet: CloudapiExtnetAPI
|
||||
flipgroup: CloudapiFlipgroupAPI
|
||||
image: CloudapiImageAPI
|
||||
k8ci: CloudapiK8ciAPI
|
||||
k8s: CloudapiK8sAPI
|
||||
kvmx86: CloudapiKvmx86API
|
||||
lb: CloudapiLbAPI
|
||||
locations: CloudapiLocationsAPI
|
||||
network_qos_policy: CloudapiNetworkQosPolicyAPI
|
||||
pcidevice: CloudapiPcideviceAPI
|
||||
rg: CloudapiRgAPI
|
||||
stack: CloudapiStackAPI
|
||||
security_group: CloudapiSecurityGroupAPI
|
||||
sep: CloudapiSepAPI
|
||||
storage_policy: CloudapiStoragePolicyAPI
|
||||
tasks: CloudapiTasksAPI
|
||||
trunk: CloudapiTrunkAPI
|
||||
user: CloudapiUserAPI
|
||||
vfpool: CloudapiVfpoolAPI
|
||||
vgpu: CloudapiVgpuAPI
|
||||
vins: CloudapiVinsAPI
|
||||
vmfolder: CloudapiVmfolderAPI
|
||||
zone: CloudapiZoneAPI
|
||||
@@ -1,29 +1,30 @@
|
||||
import dynamix_sdk.base as _base
|
||||
from .add_acl_access import *
|
||||
from .add_user import *
|
||||
from .delete import *
|
||||
from .del_acl_access import *
|
||||
from .delete_user import *
|
||||
from .disable import *
|
||||
from .enable import *
|
||||
from .get import *
|
||||
from .get_resource_consumption import *
|
||||
from .list import *
|
||||
from .list_deleted import *
|
||||
from .restore import *
|
||||
from .update import *
|
||||
from .update_acl_access import *
|
||||
from .update_user import *
|
||||
|
||||
|
||||
class CloudapiAccountAPI(
|
||||
_base.BaseAPI,
|
||||
CloudapiAccountAddUserProtocol,
|
||||
CloudapiAccountDeleteProtocol,
|
||||
CloudapiAccountDeleteUserProtocol,
|
||||
CloudapiAccountDisableProtocol,
|
||||
CloudapiAccountEnableProtocol,
|
||||
CloudapiAccountGetProtocol,
|
||||
CloudapiAccountListDeletedProtocol,
|
||||
CloudapiAccountListProtocol,
|
||||
CloudapiAccountRestoreProtocol,
|
||||
CloudapiAccountUpdateProtocol,
|
||||
CloudapiAccountUpdateUserProtocol,
|
||||
):
|
||||
pass
|
||||
add_acl_access: CloudapiAccountAddAclAccessImpl
|
||||
add_user: CloudapiAccountAddUserImpl
|
||||
del_acl_access: CloudapiAccountDelAclAccessImpl
|
||||
restore: CloudapiAccountRestoreImpl
|
||||
delete_user: CloudapiAccountDeleteUserImpl
|
||||
list: CloudapiAccountListImpl
|
||||
update_user: CloudapiAccountUpdateUserImpl
|
||||
get: CloudapiAccountGetImpl
|
||||
get_resource_consumption: CloudapiAccountGetResourceConsumptionImpl
|
||||
update: CloudapiAccountUpdateImpl
|
||||
update_acl_access: CloudapiAccountUpdateAclAccessImpl
|
||||
list_deleted: CloudapiAccountListDeletedImpl
|
||||
@@ -0,0 +1,17 @@
|
||||
import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiAccountAddAclAccessImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
id: int,
|
||||
accesstype: _nested.AccessTypeForSet,
|
||||
apiaccesses: list[int] | None = None,
|
||||
usernames: list[str] | None = None,
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
@@ -2,16 +2,15 @@ import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiAccountAddUserResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
class CloudapiAccountAddUserImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiAccountAddUserProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def add_user(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
account_id: int,
|
||||
access_type: _nested.AccessTypeForSet,
|
||||
user_id: str,
|
||||
) -> CloudapiAccountAddUserResultBool:
|
||||
...
|
||||
user_name: str,
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
@@ -0,0 +1,15 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiAccountDelAclAccessImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
id: int,
|
||||
apiaccesses: list[int] | None = None,
|
||||
usernames: list[str] | None = None,
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
@@ -1,15 +0,0 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiAccountDeleteResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiAccountDeleteProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def delete(
|
||||
self,
|
||||
*,
|
||||
account_id: int,
|
||||
permanently: bool = False,
|
||||
) -> CloudapiAccountDeleteResultBool:
|
||||
...
|
||||
@@ -1,15 +1,14 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiAccountDeleteUserResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
class CloudapiAccountDeleteUserImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiAccountDeleteUserProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def delete_user(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
account_id: int,
|
||||
user_id: str,
|
||||
) -> CloudapiAccountDeleteUserResultBool:
|
||||
...
|
||||
user_name: str,
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
@@ -1,14 +0,0 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiAccountDisableResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiAccountDisableProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def disable(
|
||||
self,
|
||||
*,
|
||||
account_id: int,
|
||||
) -> CloudapiAccountDisableResultBool:
|
||||
...
|
||||
@@ -1,14 +0,0 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiAccountEnableResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiAccountEnableProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def enable(
|
||||
self,
|
||||
*,
|
||||
account_id: int,
|
||||
) -> CloudapiAccountEnableResultBool:
|
||||
...
|
||||
@@ -2,38 +2,62 @@ import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiAccountGetResultModel(
|
||||
_base.BaseAPIResultModel,
|
||||
_nested.AccountAPIResultNM,
|
||||
):
|
||||
company: str
|
||||
class CloudapiAccountGetResultModel(_base.ResultModel):
|
||||
acc_lvl_vins_ids: list[int]
|
||||
acl: list[_nested.AccessAPIResultNM]
|
||||
company_url: str
|
||||
company: str
|
||||
cpu_allocation_parameter: str
|
||||
cpu_allocation_ratio: int
|
||||
created_by: str
|
||||
created_timestamp: int
|
||||
dc_location: str
|
||||
deactivation_timestamp: int
|
||||
default_zone_id: int
|
||||
deleted_by: str
|
||||
deleted_timestamp: int
|
||||
description: str
|
||||
display_name: str
|
||||
guid: int
|
||||
id: int
|
||||
name: str
|
||||
quotas: _nested.TenantQuotasAPIResultNM
|
||||
resource_types: list[_nested.AccountResourceType]
|
||||
send_access_emails: bool
|
||||
uniq_pools: list[str]
|
||||
status: _nested.AccountStatus
|
||||
storage_policy_ids: list[int]
|
||||
sep_pools: list[str]
|
||||
updated_by: str
|
||||
updated_timestamp: int
|
||||
version: int
|
||||
vins_count: int
|
||||
acc_lvl_vins_ids: list[int]
|
||||
vm_counts: _nested.VMCountsAPIResultNM
|
||||
vm_features: list[_nested.VMFeature]
|
||||
zones: list[_nested.ZoneAPIResultNM]
|
||||
|
||||
@property
|
||||
def deactivation_datetime(self):
|
||||
@_base.computed_field
|
||||
def created_datetime(self) -> _base.datetime | None:
|
||||
return self._get_datetime_from_timestamp(self.created_timestamp)
|
||||
|
||||
@_base.computed_field
|
||||
def deactivation_datetime(self) -> _base.datetime | None:
|
||||
return self._get_datetime_from_timestamp(self.deactivation_timestamp)
|
||||
|
||||
@_base.computed_field
|
||||
def deleted_datetime(self) -> _base.datetime | None:
|
||||
return self._get_datetime_from_timestamp(self.deleted_timestamp)
|
||||
|
||||
class CloudapiAccountGetProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def get(
|
||||
@_base.computed_field
|
||||
def updated_datetime(self) -> _base.datetime | None:
|
||||
return self._get_datetime_from_timestamp(self.updated_timestamp)
|
||||
|
||||
|
||||
class CloudapiAccountGetImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
account_id: int,
|
||||
) -> CloudapiAccountGetResultModel:
|
||||
...
|
||||
raise NotImplementedError
|
||||
@@ -0,0 +1,24 @@
|
||||
import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiAccountGetResourceConsumptionResultModel(
|
||||
_base.ResultModel,
|
||||
):
|
||||
id: int
|
||||
consumed: _nested.ResourceCountersAPIResultNM
|
||||
reserved: _nested.ResourceCountersAPIResultNM
|
||||
quotas: _nested.TenantQuotasForResourceConsumptionAPIResultNM
|
||||
|
||||
|
||||
class CloudapiAccountGetResourceConsumptionImpl(
|
||||
_base.APIFunctionImpl,
|
||||
):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
account_id: int,
|
||||
) -> CloudapiAccountGetResourceConsumptionResultModel:
|
||||
raise NotImplementedError
|
||||
@@ -2,21 +2,24 @@ import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiAccountListResultModel(_base.BaseAPIResultModel):
|
||||
data: list[_nested.AccountAPIResultNM]
|
||||
class CloudapiAccountListResultModel(_base.ResultModel):
|
||||
data: list[_nested.AccountForCAAPIResultNM]
|
||||
entry_count: int
|
||||
|
||||
|
||||
class CloudapiAccountListProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def list(
|
||||
class CloudapiAccountListImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
access_type: None | _nested.AccessType = None,
|
||||
id: None | int = None,
|
||||
name: None | str = None,
|
||||
page_number: None | int = None,
|
||||
page_size: None | int = None,
|
||||
zone_id: None | int = None,
|
||||
page_number: int = 1,
|
||||
page_size: int = 100,
|
||||
sort_by: None | str = None,
|
||||
status: None | _nested.AccountStatus = None,
|
||||
) -> CloudapiAccountListResultModel:
|
||||
...
|
||||
raise NotImplementedError
|
||||
@@ -2,20 +2,22 @@ import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiAccountListDeletedResultModel(_base.BaseAPIResultModel):
|
||||
data: list[_nested.AccountAPIResultNM]
|
||||
class CloudapiAccountListDeletedResultModel(_base.ResultModel):
|
||||
data: list[_nested.AccountForCAAPIResultNM]
|
||||
entry_count: int
|
||||
|
||||
|
||||
class CloudapiAccountListDeletedProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def list_deleted(
|
||||
class CloudapiAccountListDeletedImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
access_type: None | _nested.AccessType = None,
|
||||
id: None | int = None,
|
||||
name: None | str = None,
|
||||
page_number: None | int = None,
|
||||
page_size: None | int = None,
|
||||
page_number: int = 1,
|
||||
page_size: int = 100,
|
||||
sort_by: None | str = None,
|
||||
) -> CloudapiAccountListDeletedResultModel:
|
||||
...
|
||||
raise NotImplementedError
|
||||
@@ -1,14 +1,13 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiAccountRestoreResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
class CloudapiAccountRestoreImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiAccountRestoreProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def restore(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
account_id: int,
|
||||
) -> CloudapiAccountRestoreResultBool:
|
||||
...
|
||||
async_mode: bool = True,
|
||||
) -> str:
|
||||
raise NotImplementedError
|
||||
@@ -1,23 +1,23 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiAccountUpdateResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
class CloudapiAccountUpdateImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiAccountUpdateProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def update(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
account_id: int,
|
||||
cpu_count_quota: None | int = None,
|
||||
ext_traffic_quota: None | int = None,
|
||||
gpu_count_quota: None | int = None,
|
||||
name: None | str = None,
|
||||
public_ip_count_quota: None | int = None,
|
||||
ext_ip_count_quota: None | int = None,
|
||||
ram_size_quota_mb: None | int = None,
|
||||
send_access_emails: None | bool = None,
|
||||
send_access_emails: bool | None = None,
|
||||
storage_size_quota_gb: None | int = None,
|
||||
uniq_pools: None | list[str] = None,
|
||||
) -> CloudapiAccountUpdateResultBool:
|
||||
...
|
||||
sep_pools: None | list[str] = None,
|
||||
description: str | None = None,
|
||||
default_zone_id: int | None = None,
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
@@ -0,0 +1,17 @@
|
||||
import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiAccountUpdateAclAccessImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
id: int,
|
||||
accesstype: _nested.AccessTypeForSet,
|
||||
apiaccesses: list[int] | None = None,
|
||||
usernames: list[str] | None = None,
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
@@ -2,16 +2,15 @@ import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiAccountUpdateUserResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
class CloudapiAccountUpdateUserImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiAccountUpdateUserProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def update_user(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
account_id: int,
|
||||
access_type: _nested.AccessTypeForSet,
|
||||
user_id: str,
|
||||
) -> CloudapiAccountUpdateUserResultBool:
|
||||
...
|
||||
user_name: str,
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
File renamed without changes.
+3
-4
@@ -3,9 +3,8 @@ from .get import *
|
||||
from .list import *
|
||||
|
||||
|
||||
class CloudapiStackAPI(
|
||||
class CloudapiAuditAPI(
|
||||
_base.BaseAPI,
|
||||
CloudapiStackGetProtocol,
|
||||
CloudapiStackListProtocol,
|
||||
):
|
||||
pass
|
||||
list: CloudapiAuditListImpl
|
||||
get: CloudapiAuditGetImpl
|
||||
@@ -0,0 +1,19 @@
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiAuditGetResultModel(
|
||||
_nested.AuditAPIResultNM,
|
||||
):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiAuditGetImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
audit_guid: str,
|
||||
) -> CloudapiAuditGetResultModel:
|
||||
raise NotImplementedError
|
||||
@@ -0,0 +1,44 @@
|
||||
from pydantic import Field
|
||||
|
||||
import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiAuditListResultModel(_base.ResultModel):
|
||||
data: list[_nested.AuditAPIResultNM]
|
||||
entry_count: int
|
||||
|
||||
|
||||
class CloudapiAuditListImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
account_id: int | None = None,
|
||||
api_url_path: str | None = None,
|
||||
bservice_id: int | None = None,
|
||||
exclude_audit_lines: bool = False,
|
||||
flip_group_id: int | None = None,
|
||||
request_id: str | None = None,
|
||||
k8s_id: int | None = None,
|
||||
lb_id: int | None = None,
|
||||
max_status_code: int | None = None,
|
||||
min_status_code: int | None = None,
|
||||
page_number: int = 1,
|
||||
page_size: int = 100,
|
||||
public_session_id: str | None = None,
|
||||
request_timestamp_end: int | None = None,
|
||||
request_timestamp_start: int | None = None,
|
||||
rg_id: int | None = None,
|
||||
sep_id: int | None = None,
|
||||
sort_by: str | None = None,
|
||||
user_name: str | None = None,
|
||||
vins_id: int | None = None,
|
||||
vm_id: int | None = None,
|
||||
disk_id: int | None = Field(
|
||||
serialization_alias='disk_id', default=None,
|
||||
),
|
||||
vmfolder_id: int | None = None,
|
||||
) -> CloudapiAuditListResultModel:
|
||||
raise NotImplementedError
|
||||
@@ -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 *
|
||||
@@ -18,34 +17,42 @@ from .group_update_extnet import *
|
||||
from .group_update_vins import *
|
||||
from .list import *
|
||||
from .list_deleted import *
|
||||
from .migrate_to_zone import *
|
||||
from .restore import *
|
||||
from .snapshot_create import *
|
||||
from .snapshot_delete import *
|
||||
from .snapshot_list import *
|
||||
from .snapshot_rollback import *
|
||||
from .start import *
|
||||
from .stop import *
|
||||
|
||||
|
||||
class CloudapiBserviceAPI(
|
||||
_base.BaseAPI,
|
||||
CloudapiBserviceCreateProtocol,
|
||||
CloudapiBserviceDeleteProtocol,
|
||||
CloudapiBserviceDisableProtocol,
|
||||
CloudapiBserviceEnableProtocol,
|
||||
CloudapiBserviceGetProtocol,
|
||||
CloudapiBserviceGroupAddProtocol,
|
||||
CloudapiBserviceGroupComputeRemoveProtocol,
|
||||
CloudapiBserviceGroupGetProtocol,
|
||||
CloudapiBserviceGroupParentAddProtocol,
|
||||
CloudapiBserviceGroupParentRemoveProtocol,
|
||||
CloudapiBserviceGroupRemoveProtocol,
|
||||
CloudapiBserviceGroupResizeProtocol,
|
||||
CloudapiBserviceGroupStartProtocol,
|
||||
CloudapiBserviceGroupStopProtocol,
|
||||
CloudapiBserviceGroupUpdateExtnetProtocol,
|
||||
CloudapiBserviceGroupUpdateProtocol,
|
||||
CloudapiBserviceGroupUpdateVinsProtocol,
|
||||
CloudapiBserviceListDeletedProtocol,
|
||||
CloudapiBserviceListProtocol,
|
||||
CloudapiBserviceRestoreProtocol,
|
||||
CloudapiBserviceStartProtocol,
|
||||
CloudapiBserviceStopProtocol,
|
||||
):
|
||||
pass
|
||||
group_start: CloudapiBserviceGroupStartImpl
|
||||
restore: CloudapiBserviceRestoreImpl
|
||||
delete: CloudapiBserviceDeleteImpl
|
||||
disable: CloudapiBserviceDisableImpl
|
||||
group_update: CloudapiBserviceGroupUpdateImpl
|
||||
snapshot_delete: CloudapiBserviceSnapshotDeleteImpl
|
||||
create: CloudapiBserviceCreateImpl
|
||||
stop: CloudapiBserviceStopImpl
|
||||
group_update_vins: CloudapiBserviceGroupUpdateVinsImpl
|
||||
list: CloudapiBserviceListImpl
|
||||
group_get: CloudapiBserviceGroupGetImpl
|
||||
snapshot_rollback: CloudapiBserviceSnapshotRollbackImpl
|
||||
start: CloudapiBserviceStartImpl
|
||||
snapshot_create: CloudapiBserviceSnapshotCreateImpl
|
||||
get: CloudapiBserviceGetImpl
|
||||
group_remove: CloudapiBserviceGroupRemoveImpl
|
||||
snapshot_list: CloudapiBserviceSnapshotListImpl
|
||||
group_add: CloudapiBserviceGroupAddImpl
|
||||
migrate_to_zone: CloudapiBserviceMigrateToZoneImpl
|
||||
group_parent_remove: CloudapiBserviceGroupParentRemoveImpl
|
||||
list_deleted: CloudapiBserviceListDeletedImpl
|
||||
group_stop: CloudapiBserviceGroupStopImpl
|
||||
group_update_extnet: CloudapiBserviceGroupUpdateExtnetImpl
|
||||
group_compute_remove: CloudapiBserviceGroupComputeRemoveImpl
|
||||
group_parent_add: CloudapiBserviceGroupParentAddImpl
|
||||
enable: CloudapiBserviceEnableImpl
|
||||
@@ -1,17 +1,16 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceCreateResultInt(_base.BaseAPIResultInt):
|
||||
pass
|
||||
class CloudapiBserviceCreateImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiBserviceCreateProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def create(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
name: str,
|
||||
rg_id: int,
|
||||
ssh_user: str | None = None,
|
||||
ssh_key: str | None = None,
|
||||
) -> CloudapiBserviceCreateResultInt:
|
||||
...
|
||||
ssh_user_name: str | None = None,
|
||||
ssh_public_key: str | None = None,
|
||||
zone_id: int | None = None,
|
||||
) -> int:
|
||||
raise NotImplementedError
|
||||
@@ -1,15 +1,13 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceDeleteResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
class CloudapiBserviceDeleteImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiBserviceDeleteProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def delete(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
permanently: bool = False,
|
||||
) -> CloudapiBserviceDeleteResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,14 +1,12 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceDisableResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
class CloudapiBserviceDisableImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiBserviceDisableProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def disable(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
) -> CloudapiBserviceDisableResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,14 +1,12 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceEnableResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
class CloudapiBserviceEnableImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiBserviceEnableProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def enable(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
) -> CloudapiBserviceEnableResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -2,24 +2,57 @@ import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiBserviceGetResultModel(
|
||||
_base.BaseAPIResultModel,
|
||||
_nested.BaseBServiceAPIResultNM,
|
||||
):
|
||||
class CloudapiBserviceGetResultModel(_base.ResultModel):
|
||||
account_id: int
|
||||
account_name: str
|
||||
base_domain: str
|
||||
cpu_count_total: int
|
||||
created_by: str
|
||||
created_timestamp: int
|
||||
deleted_by: str
|
||||
deleted_timestamp: int
|
||||
disk_size_total_gb: int
|
||||
grid_id: int
|
||||
groups: list[_nested.BServiceGroupAPIResultNM]
|
||||
guid: int
|
||||
id: int
|
||||
milestones: int
|
||||
name: str
|
||||
parent_service_id: int
|
||||
parent_service_type: str
|
||||
ram_size_total_mb: int
|
||||
rg_id: int
|
||||
rg_name: str
|
||||
snapshots: list[_nested.BServiceSnapshotAPIResultNM]
|
||||
ssh_key: str
|
||||
ssh_public_key: str
|
||||
ssh_user_name: str
|
||||
status: _nested.BServiceStatus
|
||||
tech_status: _nested.BServiceTechStatus
|
||||
updated_by: str
|
||||
updated_timestamp: int
|
||||
user_managed: bool
|
||||
vms: list[_nested.BServiceVMAPIResultNM]
|
||||
zone_id: int
|
||||
|
||||
@_base.computed_field
|
||||
def created_datetime(self) -> _base.datetime | None:
|
||||
return self._get_datetime_from_timestamp(self.created_timestamp)
|
||||
|
||||
@_base.computed_field
|
||||
def deleted_datetime(self) -> _base.datetime | None:
|
||||
return self._get_datetime_from_timestamp(self.deleted_timestamp)
|
||||
|
||||
@_base.computed_field
|
||||
def updated_datetime(self) -> _base.datetime | None:
|
||||
return self._get_datetime_from_timestamp(self.updated_timestamp)
|
||||
|
||||
|
||||
class CloudapiBserviceGetProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def get(
|
||||
class CloudapiBserviceGetImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
) -> CloudapiBserviceGetResultModel:
|
||||
...
|
||||
raise NotImplementedError
|
||||
@@ -2,28 +2,27 @@ import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiBserviceGroupAddResultInt(_base.BaseAPIResultInt):
|
||||
pass
|
||||
class CloudapiBserviceGroupAddImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiBserviceGroupAddProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def group_add(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
vm_count: int,
|
||||
cpu_count: int,
|
||||
boot_disk_size_gb: int,
|
||||
driver: _nested.Driver,
|
||||
image_id: int,
|
||||
name: str,
|
||||
ram_size_mb: int,
|
||||
ci_user_data: str | None = None,
|
||||
storage_policy_id: int | None = None,
|
||||
ci_user_data: str | dict | None = None,
|
||||
extnet_ids: list[int] | None = None,
|
||||
role: str | None = None,
|
||||
sep_id: int | None = None,
|
||||
sep_pool_name: str | None = None,
|
||||
start_timeout: int | None = None,
|
||||
vins_ids: list[int] | None = None,
|
||||
) -> CloudapiBserviceGroupAddResultInt:
|
||||
...
|
||||
chipset: _nested.Chipset = _nested.Chipset.Q35,
|
||||
) -> int:
|
||||
raise NotImplementedError
|
||||
@@ -1,18 +1,16 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceGroupComputeRemoveResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiBserviceGroupComputeRemoveProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
class CloudapiBserviceGroupComputeRemoveImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
def group_compute_remove(
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
bsgroup_id: int,
|
||||
vm_id: int,
|
||||
) -> CloudapiBserviceGroupComputeRemoveResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -3,7 +3,7 @@ import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiBserviceGroupGetResultModel(
|
||||
_base.BaseAPIResultModel,
|
||||
_base.ResultModel,
|
||||
):
|
||||
account_id: int
|
||||
account_name: str
|
||||
@@ -29,7 +29,7 @@ class CloudapiBserviceGroupGetResultModel(
|
||||
rg_name: str
|
||||
role: str
|
||||
sep_id: int
|
||||
sep_pool_name: str
|
||||
sep_pool_name: str | None
|
||||
seq_no: int
|
||||
status: _nested.BServiceGroupStatus
|
||||
tech_status: _nested.BServiceGroupTechStatus
|
||||
@@ -39,23 +39,25 @@ class CloudapiBserviceGroupGetResultModel(
|
||||
vins_ids: list[int]
|
||||
vms: list[_nested.BServiceGroupVMAPIResultNM]
|
||||
|
||||
@property
|
||||
def created_datetime(self):
|
||||
@_base.computed_field
|
||||
def created_datetime(self) -> _base.datetime | None:
|
||||
return self._get_datetime_from_timestamp(self.created_timestamp)
|
||||
|
||||
@property
|
||||
def deleted_datetime(self):
|
||||
@_base.computed_field
|
||||
def deleted_datetime(self) -> _base.datetime | None:
|
||||
return self._get_datetime_from_timestamp(self.deleted_timestamp)
|
||||
|
||||
@property
|
||||
def updated_datetime(self):
|
||||
@_base.computed_field
|
||||
def updated_datetime(self) -> _base.datetime | None:
|
||||
return self._get_datetime_from_timestamp(self.updated_timestamp)
|
||||
|
||||
|
||||
class CloudapiBserviceGroupGetProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def group_get(
|
||||
class CloudapiBserviceGroupGetImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self, *,
|
||||
bservice_id: int,
|
||||
bsgroup_id: int
|
||||
) -> CloudapiBserviceGroupGetResultModel:
|
||||
...
|
||||
raise NotImplementedError
|
||||
@@ -1,18 +1,16 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceGroupParentAddResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiBserviceGroupParentAddProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
class CloudapiBserviceGroupParentAddImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
def group_parent_add(
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
bsgroup_id: int,
|
||||
child_id: int,
|
||||
parent_id: int,
|
||||
) -> CloudapiBserviceGroupParentAddResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,18 +1,16 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceGroupParentRemoveResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiBserviceGroupParentRemoveProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
class CloudapiBserviceGroupParentRemoveImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
def group_parent_remove(
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
bsgroup_id: int,
|
||||
child_id: int,
|
||||
parent_id: int,
|
||||
) -> CloudapiBserviceGroupParentRemoveResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,14 +1,12 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceGroupRemoveResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
class CloudapiBserviceGroupRemoveImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiBserviceGroupRemoveProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def group_remove(
|
||||
def __call__(
|
||||
self, *,
|
||||
bservice_id: int,
|
||||
bsgroup_id: int
|
||||
) -> CloudapiBserviceGroupRemoveResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,20 +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,
|
||||
vm_count: int,
|
||||
count_change_mode: _nested.CountChangeMode,
|
||||
) -> CloudapiBserviceGroupResizeResultInt:
|
||||
...
|
||||
@@ -1,15 +1,13 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceGroupStartResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
class CloudapiBserviceGroupStartImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiBserviceGroupStartProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def group_start(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
bsgroup_id: int,
|
||||
) -> CloudapiBserviceGroupStartResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,16 +1,14 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceGroupStopResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
class CloudapiBserviceGroupStopImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiBserviceGroupStopProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def group_stop(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
bsgroup_id: int,
|
||||
force: bool = False,
|
||||
) -> CloudapiBserviceGroupStopResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,14 +1,12 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceGroupUpdateResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiBserviceGroupUpdateProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
class CloudapiBserviceGroupUpdateImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
def group_update(
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
@@ -19,5 +17,5 @@ class CloudapiBserviceGroupUpdateProtocol(
|
||||
name: str | None = None,
|
||||
ram_size_mb: int | None = None,
|
||||
role: str | None = None,
|
||||
) -> CloudapiBserviceGroupUpdateResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,18 +1,16 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceGroupUpdateExtnetResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiBserviceGroupUpdateExtnetProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
class CloudapiBserviceGroupUpdateExtnetImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
def group_update_extnet(
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
bsgroup_id: int,
|
||||
extnet_ids: list[int] | None = None,
|
||||
) -> CloudapiBserviceGroupUpdateExtnetResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,18 +1,16 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceGroupUpdateVinsResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiBserviceGroupUpdateVinsProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
class CloudapiBserviceGroupUpdateVinsImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
def group_update_vins(
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
bsgroup_id: int,
|
||||
vins_ids: list[int] | None = None,
|
||||
) -> CloudapiBserviceGroupUpdateVinsResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -2,25 +2,28 @@ import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiBserviceListResultModel(_base.BaseAPIResultModel):
|
||||
data: list[_nested.BServiceForListAPIResultNM]
|
||||
class CloudapiBserviceListResultModel(_base.ResultModel):
|
||||
data: list[_nested.BServiceAPIResultNM]
|
||||
entry_count: int
|
||||
|
||||
|
||||
class CloudapiBserviceListProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def list(
|
||||
class CloudapiBserviceListImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
account_id: int | None = None,
|
||||
account_name: str | None = None,
|
||||
id: int | None = None,
|
||||
name: str | None = None,
|
||||
page_number: int | None = None,
|
||||
page_size: int | None = None,
|
||||
zone_id: int | None = None,
|
||||
page_number: int = 1,
|
||||
page_size: int = 100,
|
||||
rg_id: int | None = None,
|
||||
rg_name: str | None = None,
|
||||
sort_by: str | None = None,
|
||||
status: _nested.BServiceStatus | None = None,
|
||||
tech_status: _nested.BServiceTechStatus | None = None,
|
||||
) -> CloudapiBserviceListResultModel:
|
||||
...
|
||||
raise NotImplementedError
|
||||
@@ -2,19 +2,21 @@ import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiBserviceListDeletedResultModel(_base.BaseAPIResultModel):
|
||||
data: list[_nested.BServiceForListAPIResultNM]
|
||||
class CloudapiBserviceListDeletedResultModel(_base.ResultModel):
|
||||
data: list[_nested.BServiceAPIResultNM]
|
||||
entry_count: int
|
||||
|
||||
|
||||
class CloudapiBserviceListDeletedProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def list_deleted(
|
||||
class CloudapiBserviceListDeletedImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
account_id: int | None = None,
|
||||
page_number: int | None = None,
|
||||
page_size: int | None = None,
|
||||
page_number: int = 1,
|
||||
page_size: int = 100,
|
||||
rg_id: int | None = None,
|
||||
sort_by: str | None = None,
|
||||
) -> CloudapiBserviceListDeletedResultModel:
|
||||
...
|
||||
raise NotImplementedError
|
||||
@@ -0,0 +1,13 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceMigrateToZoneImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
zone_id: int,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,14 +1,12 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceRestoreResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
class CloudapiBserviceRestoreImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiBserviceRestoreProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def restore(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
) -> CloudapiBserviceRestoreResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -0,0 +1,15 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceSnapshotCreateImpl(
|
||||
_base.APIFunctionImpl,
|
||||
):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
label: str,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -0,0 +1,15 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceSnapshotDeleteImpl(
|
||||
_base.APIFunctionImpl,
|
||||
):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
label: str,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -0,0 +1,18 @@
|
||||
import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiBserviceSnapshotListResultModel(_base.ResultModel):
|
||||
data: list[_nested.BServiceSnapshotAPIResultNM]
|
||||
entry_count: int
|
||||
|
||||
|
||||
class CloudapiBserviceSnapshotListImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
) -> CloudapiBserviceSnapshotListResultModel:
|
||||
raise NotImplementedError
|
||||
@@ -0,0 +1,15 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceSnapshotRollbackImpl(
|
||||
_base.APIFunctionImpl,
|
||||
):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
label: str,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,14 +1,12 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceStartResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
class CloudapiBserviceStartImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiBserviceStartProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def start(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
) -> CloudapiBserviceStartResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,14 +1,12 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceStopResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
class CloudapiBserviceStopImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiBserviceStopProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def stop(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
) -> CloudapiBserviceStopResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,4 +1,6 @@
|
||||
import dynamix_sdk.base as _base
|
||||
from .abort_shared_snapshot_merge import *
|
||||
from .add_acl_access import *
|
||||
from .affinity_label_remove import *
|
||||
from .affinity_label_set import *
|
||||
from .affinity_relations import *
|
||||
@@ -8,30 +10,60 @@ from .affinity_rules_clear import *
|
||||
from .anti_affinity_rule_add import *
|
||||
from .anti_affinity_rule_remove import *
|
||||
from .anti_affinity_rules_clear import *
|
||||
from .attach_gpu import *
|
||||
from .attach_pci_device import *
|
||||
from .boot_disk_set import *
|
||||
from .cd_eject import *
|
||||
from .cd_insert import *
|
||||
from .change_ip import *
|
||||
from .change_link_state import *
|
||||
from .change_mac import *
|
||||
from .change_mtu import *
|
||||
from .change_qos_policies import *
|
||||
from .change_security_groups import *
|
||||
from .clone import *
|
||||
from .create_template import *
|
||||
from .del_acl_access import *
|
||||
from .delete import *
|
||||
from .delete_custom_fields import *
|
||||
from .delete_cpu_alignment_profile import *
|
||||
from .detach_gpu import *
|
||||
from .detach_pci_device import *
|
||||
from .disable import *
|
||||
from .disk_add import *
|
||||
from .disk_attach import *
|
||||
from .disk_migrate import *
|
||||
from .disk_del import *
|
||||
from .disk_detach import *
|
||||
from .disk_resize import *
|
||||
from .disk_switch_to_replication import *
|
||||
from .enable import *
|
||||
from .get import *
|
||||
from .get_acl_access import *
|
||||
from .get_console_url import *
|
||||
from .get_cpu_alignment_profile import *
|
||||
from .guest_agent_disable import *
|
||||
from .guest_agent_enable import *
|
||||
from .guest_agent_execute import *
|
||||
from .guest_agent_feature_update import *
|
||||
from .list import *
|
||||
from .list_deleted import *
|
||||
from .migrate_to_zone import *
|
||||
from .move_to_rg import *
|
||||
from .net_attach import *
|
||||
from .net_detach import *
|
||||
from .pause import *
|
||||
from .pfw_add import *
|
||||
from .pfw_del import *
|
||||
from .pfw_list import *
|
||||
from .pin_to_stack import *
|
||||
from .pin_to_node import *
|
||||
from .power_cycle import *
|
||||
from .reboot import *
|
||||
from .redeploy import *
|
||||
from .reset import *
|
||||
from .resize import *
|
||||
from .restore import *
|
||||
from .resume import *
|
||||
from .set_cpu_alignment_profile import *
|
||||
from .set_custom_fields import *
|
||||
from .snapshot_create import *
|
||||
from .snapshot_list import *
|
||||
@@ -40,8 +72,9 @@ from .start import *
|
||||
from .stop import *
|
||||
from .tag_add import *
|
||||
from .tag_remove import *
|
||||
from .unpin_from_stack import *
|
||||
from .unpin_from_node import *
|
||||
from .update import *
|
||||
from .update_acl_access import *
|
||||
from .user_grant import *
|
||||
from .user_list import *
|
||||
from .user_revoke import *
|
||||
@@ -50,52 +83,84 @@ from .user_update import *
|
||||
|
||||
class CloudapiComputeAPI(
|
||||
_base.BaseAPI,
|
||||
CloudapiComputeAffinityLabelRemoveProtocol,
|
||||
CloudapiComputeAffinityLabelSetProtocol,
|
||||
CloudapiComputeAffinityRelationsProtocol,
|
||||
CloudapiComputeAffinityRuleAddProtocol,
|
||||
CloudapiComputeAffinityRuleRemoveProtocol,
|
||||
CloudapiComputeAffinityRulesClearProtocol,
|
||||
CloudapiComputeAntiAffinityRuleAddProtocol,
|
||||
CloudapiComputeAntiAffinityRuleRemoveProtocol,
|
||||
CloudapiComputeAntiAffinityRulesClearProtocol,
|
||||
CloudapiComputeCdEjectProtocol,
|
||||
CloudapiComputeCdInsertProtocol,
|
||||
CloudapiComputeChangeIpProtocol,
|
||||
CloudapiComputeCloneProtocol,
|
||||
CloudapiComputeDeleteCustomFieldsProtocol,
|
||||
CloudapiComputeDeleteProtocol,
|
||||
CloudapiComputeDiskAddProtocol,
|
||||
CloudapiComputeDiskAttachProtocol,
|
||||
CloudapiComputeDiskDelProtocol,
|
||||
CloudapiComputeDiskDetachProtocol,
|
||||
CloudapiComputeDiskResizeProtocol,
|
||||
CloudapiComputeGetProtocol,
|
||||
CloudapiComputeListProtocol,
|
||||
CloudapiComputeNetAttachProtocol,
|
||||
CloudapiComputeNetDetachProtocol,
|
||||
CloudapiComputePauseProtocol,
|
||||
CloudapiComputePfwAddProtocol,
|
||||
CloudapiComputePfwDelProtocol,
|
||||
CloudapiComputePfwListProtocol,
|
||||
CloudapiComputePinToStackProtocol,
|
||||
CloudapiComputeRebootProtocol,
|
||||
CloudapiComputeRedeployProtocol,
|
||||
CloudapiComputeResizeProtocol,
|
||||
CloudapiComputeResumeProtocol,
|
||||
CloudapiComputeSetCustomFieldsProtocol,
|
||||
CloudapiComputeSnapshotCreateProtocol,
|
||||
CloudapiComputeSnapshotListProtocol,
|
||||
CloudapiComputeSnapshotRollbackProtocol,
|
||||
CloudapiComputeStartProtocol,
|
||||
CloudapiComputeStopProtocol,
|
||||
CloudapiComputeTagAddProtocol,
|
||||
CloudapiComputeTagRemoveProtocol,
|
||||
CloudapiComputeUnpinFromStackProtocol,
|
||||
CloudapiComputeUpdateProtocol,
|
||||
CloudapiComputeUserGrantProtocol,
|
||||
CloudapiComputeUserListProtocol,
|
||||
CloudapiComputeUserRevokeProtocol,
|
||||
CloudapiComputeUserUpdateProtocol,
|
||||
):
|
||||
pass
|
||||
get: CloudapiComputeGetImpl
|
||||
get_acl_access: CloudapiComputeGetAclAccessImpl
|
||||
redeploy: CloudapiComputeRedeployImpl
|
||||
disk_switch_to_replication: CloudapiComputeDiskSwitchToReplicationImpl
|
||||
pin_to_node: CloudapiComputePinToNodeImpl
|
||||
change_ip: CloudapiComputeChangeIpImpl
|
||||
anti_affinity_rules_clear: CloudapiComputeAntiAffinityRulesClearImpl
|
||||
power_cycle: CloudapiComputePowerCycleImpl
|
||||
pfw_del: CloudapiComputePfwDelImpl
|
||||
restore: CloudapiComputeRestoreImpl
|
||||
change_mtu: CloudapiComputeChangeMtuImpl
|
||||
del_acl_access: CloudapiComputeDelAclAccessImpl
|
||||
delete: CloudapiComputeDeleteImpl
|
||||
pfw_add: CloudapiComputePfwAddImpl
|
||||
affinity_label_set: CloudapiComputeAffinityLabelSetImpl
|
||||
disable: CloudapiComputeDisableImpl
|
||||
pfw_list: CloudapiComputePfwListImpl
|
||||
net_attach: CloudapiComputeNetAttachImpl
|
||||
user_revoke: CloudapiComputeUserRevokeImpl
|
||||
reset: CloudapiComputeResetImpl
|
||||
user_grant: CloudapiComputeUserGrantImpl
|
||||
anti_affinity_rule_add: CloudapiComputeAntiAffinityRuleAddImpl
|
||||
disk_del: CloudapiComputeDiskDelImpl
|
||||
change_link_state: CloudapiComputeChangeLinkStateImpl
|
||||
clone: CloudapiComputeCloneImpl
|
||||
guest_agent_feature_update: CloudapiComputeGuestAgentFeatureUpdateImpl
|
||||
pause: CloudapiComputePauseImpl
|
||||
change_mac: CloudapiComputeChangeMacImpl
|
||||
detach_pci_device: CloudapiComputeDetachPciDeviceImpl
|
||||
attach_pci_device: CloudapiComputeAttachPciDeviceImpl
|
||||
user_update: CloudapiComputeUserUpdateImpl
|
||||
abort_shared_snapshot_merge: CloudapiComputeAbortSharedSnapshotMergeImpl
|
||||
cd_insert: CloudapiComputeCdInsertImpl
|
||||
user_list: CloudapiComputeUserListImpl
|
||||
guest_agent_disable: CloudapiComputeGuestAgentDisableImpl
|
||||
unpin_from_node: CloudapiComputeUnpinFromNodeImpl
|
||||
cd_eject: CloudapiComputeCdEjectImpl
|
||||
detach_gpu: CloudapiComputeDetachGpuImpl
|
||||
move_to_rg: CloudapiComputeMoveToRgImpl
|
||||
stop: CloudapiComputeStopImpl
|
||||
affinity_relations: CloudapiComputeAffinityRelationsImpl
|
||||
boot_disk_set: CloudapiComputeBootDiskSetImpl
|
||||
disk_migrate: CloudapiComputeDiskMigrateImpl
|
||||
disk_detach: CloudapiComputeDiskDetachImpl
|
||||
affinity_label_remove: CloudapiComputeAffinityLabelRemoveImpl
|
||||
list: CloudapiComputeListImpl
|
||||
resume: CloudapiComputeResumeImpl
|
||||
resize: CloudapiComputeResizeImpl
|
||||
affinity_rule_add: CloudapiComputeAffinityRuleAddImpl
|
||||
snapshot_rollback: CloudapiComputeSnapshotRollbackImpl
|
||||
guest_agent_execute: CloudapiComputeGuestAgentExecuteImpl
|
||||
start: CloudapiComputeStartImpl
|
||||
snapshot_create: CloudapiComputeSnapshotCreateImpl
|
||||
tag_add: CloudapiComputeTagAddImpl
|
||||
net_detach: CloudapiComputeNetDetachImpl
|
||||
anti_affinity_rule_remove: CloudapiComputeAntiAffinityRuleRemoveImpl
|
||||
change_security_groups: CloudapiComputeChangeSecurityGroupsImpl
|
||||
change_qos_policies: CloudapiComputeChangeQosPoliciesImpl
|
||||
snapshot_list: CloudapiComputeSnapshotListImpl
|
||||
update: CloudapiComputeUpdateImpl
|
||||
update_acl_access: CloudapiComputeUpdateAclAccessImpl
|
||||
get_console_url: CloudapiComputeGetConsoleUrlImpl
|
||||
disk_attach: CloudapiComputeDiskAttachImpl
|
||||
tag_remove: CloudapiComputeTagRemoveImpl
|
||||
disk_add: CloudapiComputeDiskAddImpl
|
||||
attach_gpu: CloudapiComputeAttachGpuImpl
|
||||
affinity_rule_remove: CloudapiComputeAffinityRuleRemoveImpl
|
||||
migrate_to_zone: CloudapiComputeMigrateToZoneImpl
|
||||
affinity_rules_clear: CloudapiComputeAffinityRulesClearImpl
|
||||
reboot: CloudapiComputeRebootImpl
|
||||
delete_custom_fields: CloudapiComputeDeleteCustomFieldsImpl
|
||||
set_custom_fields: CloudapiComputeSetCustomFieldsImpl
|
||||
list_deleted: CloudapiComputeListDeletedImpl
|
||||
create_template: CloudapiComputeCreateTemplateImpl
|
||||
guest_agent_enable: CloudapiComputeGuestAgentEnableImpl
|
||||
enable: CloudapiComputeEnableImpl
|
||||
get_cpu_alignment_profile: CloudapiComputeGetCpuAlignmentProfileImpl
|
||||
set_cpu_alignment_profile: CloudapiComputeSetCpuAlignmentProfileImpl
|
||||
delete_cpu_alignment_profile: CloudapiComputeDeleteCpuAlignmentProfileImpl
|
||||
add_acl_access: CloudapiComputeAddAclAccessImpl
|
||||
@@ -0,0 +1,16 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeAbortSharedSnapshotMergeImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
label: str,
|
||||
async_mode: bool = False,
|
||||
) -> str:
|
||||
raise NotImplementedError
|
||||
@@ -0,0 +1,16 @@
|
||||
import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiComputeAddAclAccessImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
id: int,
|
||||
accesstype: _nested.AccessTypeForSet,
|
||||
apiaccesses: list[int] | None = None,
|
||||
usernames: list[str] | None = None,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,16 +1,14 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeAffinityLabelRemoveResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeAffinityLabelRemoveProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
class CloudapiComputeAffinityLabelRemoveImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
def affinity_label_remove(
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
) -> CloudapiComputeAffinityLabelRemoveResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,17 +1,15 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeAffinityLabelSetResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeAffinityLabelSetProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
class CloudapiComputeAffinityLabelSetImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
def affinity_label_set(
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
affinity_label: str,
|
||||
) -> CloudapiComputeAffinityLabelSetResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -3,18 +3,19 @@ from dynamix_sdk.api import _nested
|
||||
|
||||
|
||||
class CloudapiComputeAffinityRelationsResultModel(
|
||||
_base.BaseAPIResultModel,
|
||||
_nested.AffinityRelationsAPIResultNM,
|
||||
):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeAffinityRelationsProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
class CloudapiComputeAffinityRelationsImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
def affinity_relations(
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
) -> CloudapiComputeAffinityRelationsResultModel:
|
||||
...
|
||||
raise NotImplementedError
|
||||
@@ -2,14 +2,18 @@ import dynamix_sdk.base as _base
|
||||
from dynamix_sdk.api import _nested
|
||||
|
||||
|
||||
class CloudapiComputeAffinityRuleAddResultBool(_base.BaseAPIResultBool):
|
||||
class CloudapiComputeAffinityRuleAddResultModel(
|
||||
_nested.ComputeAffinityRuleApplyResultAPIResultNM,
|
||||
):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeAffinityRuleAddProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
class CloudapiComputeAffinityRuleAddImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
def affinity_rule_add(
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
@@ -18,5 +22,7 @@ class CloudapiComputeAffinityRuleAddProtocol(
|
||||
mode: _nested.AffinityMode,
|
||||
key: str,
|
||||
value: str,
|
||||
) -> CloudapiComputeAffinityRuleAddResultBool:
|
||||
...
|
||||
async_mode: bool = False,
|
||||
migrate: bool = False,
|
||||
) -> bool | str | CloudapiComputeAffinityRuleAddResultModel:
|
||||
raise NotImplementedError
|
||||
@@ -2,14 +2,12 @@ import dynamix_sdk.base as _base
|
||||
from dynamix_sdk.api import _nested
|
||||
|
||||
|
||||
class CloudapiComputeAffinityRuleRemoveResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeAffinityRuleRemoveProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
class CloudapiComputeAffinityRuleRemoveImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
def affinity_rule_remove(
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
@@ -18,5 +16,5 @@ class CloudapiComputeAffinityRuleRemoveProtocol(
|
||||
mode: _nested.AffinityMode,
|
||||
key: str,
|
||||
value: str,
|
||||
) -> CloudapiComputeAffinityRuleRemoveResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,16 +1,14 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeAffinityRulesClearResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeAffinityRulesClearProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
class CloudapiComputeAffinityRulesClearImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
def affinity_rules_clear(
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
) -> CloudapiComputeAffinityRulesClearResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -2,14 +2,18 @@ import dynamix_sdk.base as _base
|
||||
from dynamix_sdk.api import _nested
|
||||
|
||||
|
||||
class CloudapiComputeAntiAffinityRuleAddResultBool(_base.BaseAPIResultBool):
|
||||
class CloudapiComputeAntiAffinityRuleAddResultModel(
|
||||
_nested.ComputeAffinityRuleApplyResultAPIResultNM,
|
||||
):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeAntiAffinityRuleAddProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
class CloudapiComputeAntiAffinityRuleAddImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
def anti_affinity_rule_add(
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
@@ -18,5 +22,7 @@ class CloudapiComputeAntiAffinityRuleAddProtocol(
|
||||
mode: _nested.AffinityMode,
|
||||
key: str,
|
||||
value: str,
|
||||
) -> CloudapiComputeAntiAffinityRuleAddResultBool:
|
||||
...
|
||||
async_mode: bool = False,
|
||||
migrate: bool = False,
|
||||
) -> bool | str | CloudapiComputeAntiAffinityRuleAddResultModel:
|
||||
raise NotImplementedError
|
||||
@@ -2,14 +2,12 @@ import dynamix_sdk.base as _base
|
||||
from dynamix_sdk.api import _nested
|
||||
|
||||
|
||||
class CloudapiComputeAntiAffinityRuleRemoveResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeAntiAffinityRuleRemoveProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
class CloudapiComputeAntiAffinityRuleRemoveImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
def anti_affinity_rule_remove(
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
@@ -18,5 +16,5 @@ class CloudapiComputeAntiAffinityRuleRemoveProtocol(
|
||||
mode: _nested.AffinityMode,
|
||||
key: str,
|
||||
value: str,
|
||||
) -> CloudapiComputeAntiAffinityRuleRemoveResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,16 +1,14 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeAntiAffinityRulesClearResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeAntiAffinityRulesClearProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
class CloudapiComputeAntiAffinityRulesClearImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
def anti_affinity_rules_clear(
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
) -> CloudapiComputeAntiAffinityRulesClearResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -0,0 +1,13 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeAttachGpuImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
vgpu_id: int,
|
||||
) -> int:
|
||||
raise NotImplementedError
|
||||
@@ -0,0 +1,15 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeAttachPciDeviceImpl(
|
||||
_base.APIFunctionImpl,
|
||||
):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
pci_device_id: int,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -0,0 +1,13 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeBootDiskSetImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
disk_id: int,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,14 +1,13 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeCdEjectResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
class CloudapiComputeCdEjectImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiComputeCdEjectProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def cd_eject(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
) -> CloudapiComputeCdEjectResultBool:
|
||||
...
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
@@ -1,15 +1,14 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeCdInsertResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
class CloudapiComputeCdInsertImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiComputeCdInsertProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def cd_insert(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
cdrom_image_id: int,
|
||||
) -> CloudapiComputeCdInsertResultBool:
|
||||
...
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
@@ -2,17 +2,16 @@ import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiComputeChangeIpResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
class CloudapiComputeChangeIpImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiComputeChangeIpProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def change_ip(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
ip_addr: str,
|
||||
net_id: int,
|
||||
net_type: _nested.NetTypeForChangeIP,
|
||||
vm_id: int,
|
||||
) -> CloudapiComputeChangeIpResultBool:
|
||||
...
|
||||
net_type: _nested.NetTypeForChangeIP,
|
||||
net_id: int,
|
||||
ip_addr: str,
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
@@ -0,0 +1,18 @@
|
||||
import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiComputeChangeLinkStateImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
interface: str,
|
||||
state: _nested.LinkState,
|
||||
vm_id: int,
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
@@ -0,0 +1,14 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeChangeMacImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
current_mac: str,
|
||||
new_mac: str,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -0,0 +1,17 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeChangeMtuImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
interface: str,
|
||||
mtu: int,
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
@@ -0,0 +1,17 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeChangeQosPoliciesImpl(
|
||||
_base.APIFunctionImpl,
|
||||
):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
compute_id: int,
|
||||
interface: str,
|
||||
qos_policy_ids: list[int] | None = None,
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
@@ -0,0 +1,18 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeChangeSecurityGroupsImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
interface: str,
|
||||
security_group_ids: list[int] | None = None,
|
||||
security_group_mode: bool | None = None,
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
@@ -1,18 +1,20 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeCloneResultInt(_base.BaseAPIResultInt):
|
||||
pass
|
||||
class CloudapiComputeCloneImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiComputeCloneProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def clone(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
name: str,
|
||||
force: bool = False,
|
||||
storage_policy_id: int,
|
||||
snapshot_timestamp: int | None = None,
|
||||
snapshot_name: str | None = None,
|
||||
) -> CloudapiComputeCloneResultInt:
|
||||
...
|
||||
sep_pool_name: str | None = None,
|
||||
sep_id: int | None = None,
|
||||
async_mode: bool = True,
|
||||
) -> str | int:
|
||||
raise NotImplementedError
|
||||
@@ -0,0 +1,14 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeCreateTemplateImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
name: str,
|
||||
async_mode: bool = True,
|
||||
) -> str | int:
|
||||
raise NotImplementedError
|
||||
@@ -0,0 +1,14 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeDelAclAccessImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
id: int,
|
||||
apiaccesses: list[int] | None = None,
|
||||
usernames: list[str] | None = None,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,16 +1,15 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeDeleteResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
class CloudapiComputeDeleteImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiComputeDeleteProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def delete(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
detach_disks: bool = False,
|
||||
permanently: bool = False,
|
||||
) -> CloudapiComputeDeleteResultBool:
|
||||
...
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
@@ -0,0 +1,12 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeDeleteCpuAlignmentProfileImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_ids: list[int],
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,16 +1,14 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeDeleteCustomFieldsResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeDeleteCustomFieldsProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
class CloudapiComputeDeleteCustomFieldsImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
def delete_custom_fields(
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
) -> CloudapiComputeDeleteCustomFieldsResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -0,0 +1,13 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeDetachGpuImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
vgpu_id: int | None = None,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -0,0 +1,15 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeDetachPciDeviceImpl(
|
||||
_base.APIFunctionImpl,
|
||||
):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
pci_device_id: int,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -0,0 +1,15 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeDisableImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
@@ -1,23 +1,23 @@
|
||||
import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiComputeDiskAddResultInt(_base.BaseAPIResultInt):
|
||||
pass
|
||||
class CloudapiComputeDiskAddImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiComputeDiskAddProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def disk_add(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
name: str,
|
||||
disk_size_gb: int,
|
||||
disk_type: _nested.DiskType = _nested.DiskType.D,
|
||||
storage_policy_id: int,
|
||||
sep_id: int | None = None,
|
||||
sep_pool_name: str | None = None,
|
||||
description: str | None = None,
|
||||
image_id: int | None = None,
|
||||
|
||||
) -> CloudapiComputeDiskAddResultInt:
|
||||
...
|
||||
pci_slot_num_hex: str | None = None,
|
||||
bus_num_hex: str | None = None,
|
||||
async_mode: bool = False,
|
||||
read_only_mode: bool = False,
|
||||
) -> int | str:
|
||||
raise NotImplementedError
|
||||
@@ -1,17 +1,17 @@
|
||||
import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiComputeDiskAttachResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
class CloudapiComputeDiskAttachImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiComputeDiskAttachProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def disk_attach(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
disk_id: int,
|
||||
disk_type: _nested.DiskType = _nested.DiskType.D,
|
||||
) -> CloudapiComputeDiskAttachResultBool:
|
||||
...
|
||||
pci_slot_num_hex: str | None = None,
|
||||
bus_num_hex: str | None = None,
|
||||
async_mode: bool = False,
|
||||
read_only_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
@@ -1,16 +1,15 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeDiskDelResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
class CloudapiComputeDiskDelImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiComputeDiskDelProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def disk_del(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
disk_id: int,
|
||||
permanently: bool = True,
|
||||
) -> CloudapiComputeDiskDelResultBool:
|
||||
...
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
@@ -1,15 +1,14 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeDiskDetachResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
class CloudapiComputeDiskDetachImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiComputeDiskDetachProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def disk_detach(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
disk_id: int,
|
||||
) -> CloudapiComputeDiskDetachResultBool:
|
||||
...
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
@@ -0,0 +1,17 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeDiskMigrateImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
disk_id: int,
|
||||
target_disk_id: int,
|
||||
mode: int = 1,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,16 +0,0 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeDiskResizeResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeDiskResizeProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def disk_resize(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
disk_id: int,
|
||||
disk_size_gb: int,
|
||||
) -> CloudapiComputeDiskResizeResultBool:
|
||||
...
|
||||
@@ -0,0 +1,18 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeDiskSwitchToReplicationImpl(
|
||||
_base.APIFunctionImpl,
|
||||
):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
disk_id: int,
|
||||
stop_replication: bool = False,
|
||||
planned: bool = True,
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
@@ -0,0 +1,12 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeEnableImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -2,18 +2,89 @@ import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiComputeGetResultModel(
|
||||
_base.BaseAPIResultModel,
|
||||
_nested.BaseVMAPIResultNM,
|
||||
):
|
||||
acl: _nested.VMACLForComputeGetAPIResultNM
|
||||
class CloudapiComputeGetResultModel(_base.ResultModel):
|
||||
account_id: int
|
||||
account_name: str
|
||||
acl: _nested.VMACLAPIResultNM
|
||||
affinity_label: str
|
||||
affinity_rules: list[_nested.AffinityRuleAPIResultNM]
|
||||
affinity_weight: int
|
||||
anti_affinity_rules: list[_nested.AffinityRuleAPIResultNM]
|
||||
arch: str
|
||||
auto_start: bool
|
||||
boot_disk_size_gb: int
|
||||
boot_image_id: int
|
||||
boot_loader_metaiso: _nested.BootLoaderMetaisoAPIResultNM | None
|
||||
boot_loader_type: _nested.BootLoaderType
|
||||
boot_mode: _nested.BootMode
|
||||
boot_order: list[_nested.BootDevice]
|
||||
cdrom_image_id: int
|
||||
chipset: _nested.Chipset
|
||||
ci_user_data: dict
|
||||
clock_sync_mode: _nested.ClockSyncMode
|
||||
clone_ids: list[int]
|
||||
clone_reference: int
|
||||
cpu_alignment_profile: _nested.CPUAlignmentProfileAPIResultNM | dict
|
||||
cpu_count: int
|
||||
cpu_pin: bool
|
||||
created_by: str
|
||||
created_timestamp: int
|
||||
custom_fields: dict
|
||||
deleted_by: str
|
||||
deleted_timestamp: int
|
||||
description: str
|
||||
pci_devices: dict[str, int]
|
||||
disks: list[_nested.DiskForCAComputeGetAPIResultNM]
|
||||
driver: _nested.Driver
|
||||
folder_id: int | None = None
|
||||
grid_id: int
|
||||
guid: int
|
||||
hot_resize: bool
|
||||
hp_backed: bool
|
||||
id: int
|
||||
image_id: None | int
|
||||
image_name: None | str
|
||||
interfaces: list[_nested.InterfaceForComputeGetAPIResultNM]
|
||||
live_migration_job_id: int
|
||||
lock_status: _nested.LockStatus
|
||||
manager_id: int
|
||||
manager_type: str
|
||||
memory_balloon_mode: _nested.MemoryBalloonMode
|
||||
migration_job_id: int
|
||||
milestones: int
|
||||
name: str
|
||||
need_reboot: bool
|
||||
network_interface_naming: _nested.NetIfaceNamingTemplate
|
||||
numa_affinity: _nested.NumaAffinity
|
||||
numa_node_id: int
|
||||
os_users: list[_nested.OSUserAPIResultNM]
|
||||
virtual_image_name: None | str
|
||||
os_version: str
|
||||
pinned_to_node: bool
|
||||
preferred_cpu_cores: list[int]
|
||||
ram_size_mb: int
|
||||
read_only: bool
|
||||
reference_id: str
|
||||
res_name: str
|
||||
reserved_cpu_cores: list[int]
|
||||
resized_online: bool
|
||||
rg_id: int
|
||||
rg_name: str
|
||||
snapshot_sets: list[_nested.SnapshotSetAPIResultNM]
|
||||
stateless_sep_id: int | None = None
|
||||
stateless_sep_type: str | None = None
|
||||
status: _nested.VMStatus
|
||||
tags: dict
|
||||
tech_status: _nested.VMTechStatus
|
||||
updated_by: str
|
||||
updated_timestamp: int
|
||||
user_managed: bool
|
||||
vgpus: list[_nested.VGPUAPIResultNM]
|
||||
vm_ci_id: int
|
||||
vnc_password: str
|
||||
guest_agent: _nested.GuestAgentAPIResultNM
|
||||
watchdog_action: _nested.WatchdogAction
|
||||
weight: int
|
||||
zone_id: int
|
||||
|
||||
natable_vins_id: int = 0
|
||||
natable_vins_ip: str = ''
|
||||
@@ -21,11 +92,25 @@ class CloudapiComputeGetResultModel(
|
||||
natable_vins_network: str = ''
|
||||
natable_vins_network_name: str = ''
|
||||
|
||||
@_base.computed_field
|
||||
def created_datetime(self) -> _base.datetime | None:
|
||||
return self._get_datetime_from_timestamp(self.created_timestamp)
|
||||
|
||||
class CloudapiComputeGetProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def get(
|
||||
@_base.computed_field
|
||||
def deleted_datetime(self) -> _base.datetime | None:
|
||||
return self._get_datetime_from_timestamp(self.deleted_timestamp)
|
||||
|
||||
@_base.computed_field
|
||||
def updated_datetime(self) -> _base.datetime | None:
|
||||
return self._get_datetime_from_timestamp(self.updated_timestamp)
|
||||
|
||||
|
||||
class CloudapiComputeGetImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
) -> CloudapiComputeGetResultModel:
|
||||
...
|
||||
raise NotImplementedError
|
||||
Loaded 100 of 1009 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user