Compare commits
14
Commits
1.3.0
..
2.1.latest
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c198850849 | ||
|
|
00fa013feb | ||
|
|
68064479d2 | ||
|
|
ea196f03a0 | ||
|
|
6ffea46b8a | ||
|
|
1ee16914bc | ||
|
|
a52ec3f1bb | ||
|
|
04f9c28eb0 | ||
|
|
cd6422373e | ||
|
|
69be98db48 | ||
|
|
7df3848866 | ||
|
|
66601495dd | ||
|
|
fac66abef6 | ||
|
|
56db28cb37 |
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
|
|
||||||
+51
-367
@@ -1,376 +1,60 @@
|
|||||||
# Список изменений в версии 1.3.0
|
# Список изменений в версии 2.1.4
|
||||||
|
|
||||||
|
## Изменено
|
||||||
|
|
||||||
## Добавлено
|
## Добавлено
|
||||||
|
|
||||||
| Идентификатор<br>задачи | Описание |
|
| Идентификатор<br>задачи | Описание |
|
||||||
| --- | --- |
|
| --- | --- |
|
||||||
| BPYS-89 | Добавлены функции `cloudapi.vfpool.get`, `cloudapi.vfpool.list`. |
|
| BPYS-2628 | Добавлена функция `cloudbroker.disks.replication_promote`. |
|
||||||
| BPYS-314 | Функция `cloudapi.compute.get`: тип атрибута `CloudapiComputeGetResultModel.stateless_sep_id` изменен с `int` на `int \| None`. |
|
| BPYS-2629 | Добавлена функция `cloudbroker.disks.replication_set_copy_rate`. |
|
||||||
| BPYS-315 | Функция `cloudapi.compute.get`: тип атрибута `CloudapiComputeGetResultModel.stateless_sep_type` изменен с `str` на `str \| None`. |
|
| BPYS-2633 | Добавлена функция `cloudbroker.disks.replication_suspend`. |
|
||||||
| BPYS-174 | Добавлена функция `cloudapi.compute.get_console_url`. |
|
| BPYS-2615 | Добавлена функция `cloudbroker.disks.migrate_v2_cleanup`. |
|
||||||
| BPYS-168 | Добавлена функция `cloudapi.lb.config_reset`. |
|
| BPYS-2625 | Добавлена функция `cloudbroker.disks.resize2`. |
|
||||||
| BPYS-166 | Добавлена функция `cloudapi.lb.update`. |
|
| BPYS-2616 | Добавлена функция `cloudbroker.disks.migrate_v2_get`. |
|
||||||
| BPYS-164 | Добавлены функции `cloudapi.lb.start`, `cloudapi.lb.stop`. |
|
| BPYS-2630 | Добавлена функция `cloudbroker.disks.replication_resume`. |
|
||||||
| BPYS-333 | Функция `cloudapi.compute.list`: тип атрибута `CloudapiComputeListResultModel.data.stateless_sep_id` изменен с `int` на `int \| None`. |
|
| BPYS-2631 | Добавлена функция `cloudbroker.disks.replication_reverse`. |
|
||||||
| BPYS-334 | Функция `cloudapi.compute.list`: тип атрибута `CloudapiComputeListResultModel.data.stateless_sep_type` изменен с `str` на `str \| None`. |
|
| BPYS-2637 | Добавлена функция `cloudbroker.disks.unshare`. |
|
||||||
| BPYS-324 | Функция `cloudapi.k8s.list`: у атрибута `CloudapiK8sListResultModel.data` изменен тип с `K8sListAPIResultNM` на `K8sAPIResultNM`. |
|
| BPYS-2617 | Добавлена функция `cloudbroker.disks.migrate_v2_list`. |
|
||||||
| BPYS-324 | Функция `cloudapi.k8s.list_deleted`: у атрибута `CloudapiK8sListDeletedResultModel.data` изменен тип с `K8sListDeletedAPIResultNM` на `K8sAPIResultNM`. |
|
| BPYS-2618 | Добавлена функция `cloudbroker.disks.migrate_v2_resolve`. |
|
||||||
| BPYS-188 | Добавлены функции `cloudapi.k8s.delete_master_from_group`, `cloudapi.k8s.delete_worker_from_group`. |
|
| BPYS-2632 | Добавлена функция `cloudbroker.disks.replication_status`. |
|
||||||
| BPYS-359 | Функция `cloudapi.account.get`: добавлен атрибут `CloudapiAccountGetResultModel.quotas.ext_ip_count` в связи с переименованием из `public_ip_count`. |
|
| BPYS-2627 | Добавлена функция `cloudbroker.pcidevice.list`. |
|
||||||
| BPYS-359 | Функция `cloudapi.account.update`: добавлен параметр `ext_ip_count_quota` в связи с переименованием из `public_ip_count_quota`. |
|
| BPYS-2652 | Добавлена функция `cloudbroker.pcidevice.create`. |
|
||||||
| BPYS-359 | Функция `cloudapi.rg.create`: добавлен параметр `ext_ip_count_quota` в связи с переименованием из `public_ip_count_quota`. |
|
| BPYS-2654 | Добавлена функция `cloudbroker.pcidevice.enable`. |
|
||||||
| BPYS-359 | Функция `cloudapi.rg.get`: добавлен атрибут `CloudapiRgGetResultModel.quotas.ext_ip_count` в связи с переименованием из `public_ip_count`. |
|
| BPYS-2655 | Добавлена функция `cloudbroker.pcidevice.disable`. |
|
||||||
| BPYS-359 | Функция `cloudapi.rg.list`: добавлен атрибут `CloudapiRgListResultModel.data.quotas.ext_ip_count` в связи с переименованием из `public_ip_count`. |
|
| BPYS-2658 | Добавлена функция `cloudbroker.network_qos_policy.create`. |
|
||||||
| BPYS-359 | Функция `cloudapi.rg.update`: добавлен параметр `ext_ip_count_quota` в связи с переименованием из `public_ip_count_quota`. |
|
| BPYS-2659 | Добавлена функция `cloudbroker.network_qos_policy.create_rule`. |
|
||||||
| BPYS-359 | Функция `cloudbroker.account.create`: добавлен параметр `ext_ip_count_quota` в связи с переименованием из `public_ip_count_quota`. |
|
| BPYS-2660 | Добавлена функция `cloudbroker.network_qos_policy.delete`. |
|
||||||
| BPYS-150 | Добавлены функции `cloudapi.vins.nat_rule_add`, `cloudapi.vins.nat_rule_del`, `cloudapi.vins.nat_rule_list`. |
|
| BPYS-2661 | Добавлена функция `cloudbroker.network_qos_policy.delete_rule`. |
|
||||||
| BPYS-176 | Добавлена функция `cloudapi.compute.power_cycle`. |
|
| BPYS-2663 | Добавлена функция `cloudbroker.network_qos_policy.list`. |
|
||||||
| BPYS-374 | Функция `cloudapi.image.create`: добавлен параметр `storage_policy_id`. |
|
| BPYS-2662 | Добавлена функция `cloudbroker.network_qos_policy.get`. |
|
||||||
| BPYS-379 | Функция `cloudapi.kvmx86.create`: добавлен параметр `storage_policy_id`. |
|
| BPYS-2664 | Добавлена функция `cloudbroker.network_qos_policy.update`. |
|
||||||
| BPYS-380 | Функция `cloudapi.kvmx86.create_blank`: добавлен параметр `storage_policy_id`. |
|
| BPYS-2626 | Добавлена функция `cloudbroker.disks.restore`. |
|
||||||
| BPYS-370 | Функция `cloudapi.compute.disk_add`: добавлен параметр `storage_policy_id`. |
|
| BPYS-2636 | Добавлена функция `cloudbroker.disks.share`. |
|
||||||
| BPYS-372 | Функция `cloudapi.disks.create`: добавлен параметр `storage_policy_id`. |
|
| BPYS-2638 | Добавлена функция `cloudbroker.disks.snapshot_delete`. |
|
||||||
| BPYS-376 | Функция `cloudapi.k8s.create`: добавлен параметр `storage_policy_id`. |
|
| BPYS-2653 | Добавлена функция `cloudbroker.pcidevice.delete`. |
|
||||||
| BPYS-378 | Функция `cloudapi.k8s.workers_group_add`: добавлен параметр `storage_policy_id`. |
|
| BPYS-2656 | Добавлена функция `cloudbroker.pcidevice.access_grant`. |
|
||||||
| BPYS-368 | Функция `cloudapi.bservice.group_add`: добавлен параметр `storage_policy_id`. |
|
| BPYS-2657 | Добавлена функция `cloudbroker.pcidevice.access_revoke`. |
|
||||||
| BPYS-177 | Добавлена функция `cloudapi.compute.reset`. |
|
| BPYS-2639 | Добавлена функция `cloudbroker.disks.snapshot_rollback`. |
|
||||||
| BPYS-192 | Добавлена функция `cloudapi.k8s.enable`, `cloudapi.k8s.disable`. |
|
| BPYS-2668 | Добавлена функция `cloudbroker.vfpool.create`. |
|
||||||
| BPYS-193 | Добавлена функция `cloudapi.k8s.update`. |
|
| BPYS-2670 | Добавлена функция `cloudbroker.vfpool.disable`. |
|
||||||
| BPYS-194 | Добавлена функция `cloudapi.k8s.start`, `cloudapi.k8s.stop`. |
|
| BPYS-2650 | Добавлена функция `cloudbroker.milestones.list`. |
|
||||||
| BPYS-170 | Добавлена функция `cloudapi.lb.restart`. |
|
| BPYS-2675 | Добавлена функция `cloudbroker.storage_policy.add_access_replication_profile`. |
|
||||||
| BPYS-169 | Добавлена функция `cloudapi.lb.restore`. |
|
| BPYS-2676 | Добавлена функция `cloudbroker.storage_policy.create_replication_profile`. |
|
||||||
| BPYS-175 | Добавлена функция `cloudapi.compute.change_link_state`. |
|
| BPYS-2677 | Добавлена функция `cloudbroker.storage_policy.delete_replication_profile`. |
|
||||||
| BPYS-139 | Добавлена функция `cloudapi.compute.abort_shared_snapshot_merge`. |
|
| BPYS-2678 | Добавлена функция `cloudbroker.storage_policy.get_replication_profile`. |
|
||||||
| BPYS-173 | Добавлена функция `cloudapi.lb.update_syscl_params`. |
|
| BPYS-2679 | Добавлена функция `cloudbroker.storage_policy.list_replication_profile`. |
|
||||||
| BPYS-389 | Функция `cloudapi.account.get`: добавлен атрибут `CloudapiAccountGetResultModel.storage_policy_ids`. |
|
| BPYS-2669 | Добавлена функция `cloudbroker.vfpool.delete`. |
|
||||||
| BPYS-414 | Функция `cloudapi.account.get`: добавлен атрибут `CloudapiAccountGetResultModel.quotas.storage_policies`. |
|
| BPYS-2671 | Добавлена функция `cloudbroker.vfpool.enable`. |
|
||||||
| BPYS-414 | Функция `cloudapi.rg.get`: добавлен атрибут `CloudapiRgGetResultModel.quotas.storage_policies`. |
|
| BPYS-2674 | Добавлена функция `cloudbroker.vfpool.update`. |
|
||||||
| BPYS-414 | Функция `cloudapi.rg.list`: добавлен атрибут `CloudapiRgListResultModel.data.quotas.storage_policies`. |
|
| BPYS-2672 | Добавлена функция `cloudbroker.vfpool.get`. |
|
||||||
| BPYS-385 | Функция `cloudapi.compute.redeploy`: добавлен параметр `storage_policy_id`. |
|
| BPYS-2651 | Добавлена функция `cloudbroker.vnfdev.add_mgmt_addr`. |
|
||||||
| BPYS-386 | Функция `cloudapi.disks.get`: добавлен атрибут `CloudapiDisksGetResultModel.storage_policy_id`. |
|
| BPYS-2684 | Добавлена функция `cloudbroker.vnfdev.apply_config`. |
|
||||||
| BPYS-387 | Функция `cloudapi.disks.list`: добавлен атрибут `CloudapiDisksListResultModel.data.storage_policy_id`. |
|
| BPYS-2687 | Добавлена функция `cloudbroker.vnfdev.config_save`. |
|
||||||
| BPYS-387 | Функция `cloudapi.disks.list_deleted`: добавлен атрибут `CloudapiDisksListDeletedResultModel.data.storage_policy_id`. |
|
| BPYS-2692 | Добавлена функция `cloudbroker.vnfdev.iface_remove`. |
|
||||||
| BPYS-391 | Функция `cloudapi.rg.get`: добавлен атрибут `CloudapiRgGetResultModel.storage_policy_ids`. |
|
| BPYS-2690 | Добавлена функция `cloudbroker.vnfdev.list`. |
|
||||||
| BPYS-181 | Добавлена функция `cloudapi.vins.dns_apply`. |
|
| BPYS-2697 | Добавлена функция `cloudbroker.vnfdev.migrate`. |
|
||||||
| BPYS-388 | Функция `cloudapi.compute.get`: добавлен атрибут `CloudapiComputeGetResultModel.disks.storage_policy_id`. |
|
|
||||||
| BPYS-417 | Функция `cloudapi.compute.get`: добавлен атрибут `CloudapiComputeGetResultModel.interfaces.security_group_ids`. |
|
|
||||||
| BPYS-418 | Функция `cloudapi.compute.get`: добавлен атрибут `CloudapiComputeGetResultModel.interfaces.security_group_mode`. |
|
|
||||||
| BPYS-418 | Функция `cloudapi.compute.net_attach`: добавлен атрибут `CloudapiComputeNetAttachResultModel.interfaces.security_group_ids`. |
|
|
||||||
| BPYS-418 | Функция `cloudapi.compute.net_attach`: добавлен атрибут `CloudapiComputeNetAttachResultModel.interfaces.security_group_mode`. |
|
|
||||||
| BPYS-155 | Добавлены функции `cloudbroker.user.block`, `cloudbroker.user.unblock`. |
|
|
||||||
| BPYS-308 | Функция `cloudapi.image.create_virtual`: добавлен параметр `account_id`. |
|
|
||||||
| BPYS-422 | Функция `cloudapi.compute.list`: добавлен атрибут `CloudapiComputeListResultModel.data.interfaces.security_group_ids`. |
|
|
||||||
| BPYS-423 | Функция `cloudapi.compute.list`: добавлен атрибут `CloudapiComputeListResultModel.data.interfaces.security_group_mode`. |
|
|
||||||
| BPYS-156 | Функция `cloudapi.compute.user_list`: у атрибута `CloudapiComputeUserListResultModel.data.account.explicit` изменен тип с `bool \| str` на `bool`. |
|
|
||||||
| BPYS-156 | Функция `cloudapi.compute.user_list`: у атрибута `CloudapiComputeUserListResultModel.data.vm.explicit` изменен тип с `bool \| str` на `bool`. |
|
|
||||||
| BPYS-156 | Функция `cloudapi.compute.user_list`: у атрибута `CloudapiComputeUserListResultModel.data.rg.explicit` изменен тип с `bool \| str` на `bool`. |
|
|
||||||
| BPYS-156 | Функция `cloudapi.compute.get`: у атрибута `CloudapiComputeGetResultModel.acl.account.explicit` изменен тип с `bool \| str` на `bool`. |
|
|
||||||
| BPYS-156 | Функция `cloudapi.compute.get`: у атрибута `CloudapiComputeGetResultModel.acl.vm.explicit` изменен тип с `bool \| str` на `bool`. |
|
|
||||||
| BPYS-156 | Функция `cloudapi.compute.get`: у атрибута `CloudapiComputeGetResultModel.acl.rg.explicit` изменен тип с `bool \| str` на `bool`. |
|
|
||||||
| BPYS-100 | Добавлены функции `cloudapi.zone.get`, `cloudapi.zone.list`. |
|
|
||||||
| BPYS-141 | Добавлены функции `cloudapi.compute.guest_agent_disable`, `cloudapi.compute.guest_agent_enable`, `cloudapi.compute.guest_agent_execute`, `cloudapi.compute.guest_agent_feature_update`. |
|
|
||||||
| BPYS-436 | Функция `cloudapi.disks.list`: добавлен параметр `storage_policy_id`. |
|
|
||||||
| BPYS-427 | Функция `cloudapi.kvmx86.create`: добавлен параметр `interfaces.security_group_mode`. |
|
|
||||||
| BPYS-428 | Функция `cloudapi.kvmx86.create`: добавлен параметр `interfaces.security_group_ids`. |
|
|
||||||
| BPYS-428 | Функция `cloudapi.kvmx86.create_blank`: добавлен параметр `interfaces.security_group_mode`. |
|
|
||||||
| BPYS-428 | Функция `cloudapi.kvmx86.create_blank`: добавлен параметр `interfaces.security_group_ids`. |
|
|
||||||
| BPYS-433 | Функция `cloudapi.compute.net_attach`: добавлен параметр `security_group_mode`. |
|
|
||||||
| BPYS-434 | Функция `cloudapi.compute.net_attach`: добавлен параметр `security_group_ids`. |
|
|
||||||
| BPYS-447 | Добавлена функция `cloudapi.image.change_storage_policy`. |
|
|
||||||
| BPYS-459 | Функция `cloudapi.rg.update`: добавлен параметр `storage_policies`. |
|
|
||||||
| BPYS-101 | Добавлены функции `cloudapi.bservice.migrate_to_zone`, `cloudapi.compute.migrate_to_zone`, `cloudapi.k8s.migrate_to_zone`, `cloudapi.lb.migrate_to_zone`, `cloudapi.vins.migrate_to_zone`. |
|
|
||||||
| BPYS-446 | Добавлена функция `cloudapi.security_group.update`. |
|
|
||||||
| BPYS-251 | Добавлена функция `cloudapi.compute.change_mtu`. |
|
|
||||||
| BPYS-439 | Добавлена функция `cloudapi.compute.change_security_groups`. |
|
|
||||||
| BPYS-217 | Добавлены функции `cloudapi.trunk.get`, `cloudapi.trunk.list`. |
|
|
||||||
| BPYS-462 | Функция `cloudapi.kvmx86.create_blank`: добавлен параметр `data_disks.storage_policy_id`. |
|
|
||||||
| BPYS-462 | Функция `cloudapi.kvmx86.create`: добавлен параметр `data_disks.storage_policy_id`. |
|
|
||||||
| BPYS-464 | Функция `cloudapi.user.get_audit`: в параметре `sort_by` изменено значение по умолчанию с `-Time` на `-timestamp`. |
|
|
||||||
| BPYS-470 | Функция `cloudapi.bservice.list`: добавлен параметр `zone_id`. |
|
|
||||||
| BPYS-496 | Функция `cloudapi.account.list`: добавлен атрибут `CloudapiAccountListResultModel.data.zone_ids`. |
|
|
||||||
| BPYS-496 | Функция `cloudapi.account.list_deleted`: добавлен атрибут `CloudapiAccountListDeletedResultModel.data.zone_ids`. |
|
|
||||||
| BPYS-468 | Функция `cloudapi.account.list`: добавлен параметр `zone_id`. |
|
|
||||||
| BPYS-492 | Функция `cloudapi.kvmx86.create`: добавлен параметр `interfaces.enabled`. |
|
|
||||||
| BPYS-492 | Функция `cloudapi.kvmx86.create_blank`: добавлен параметр `interfaces.enabled`. |
|
|
||||||
| BPYS-480 | Функция `cloudapi.vins.list`: добавлен параметр `zone_id`. |
|
|
||||||
| BPYS-397 | Добавлена функция `cloudapi.storage_policy.get`. |
|
|
||||||
| BPYS-472 | Функция `cloudapi.compute.list`: добавлен параметр `zone_id`. |
|
|
||||||
| BPYS-474 | Функция `cloudapi.extnet.list`: добавлен параметр `zone_id`. |
|
|
||||||
| BPYS-476 | Функция `cloudapi.k8s.list`: добавлен параметр `zone_id`. |
|
|
||||||
| BPYS-478 | Функция `cloudapi.lb.list`: добавлен параметр `zone_id`. |
|
|
||||||
| BPYS-493 | Функция `cloudapi.compute.net_attach`: добавлен параметр `enabled`. |
|
|
||||||
| BPYS-180 | Добавлены функции `cloudapi.vins.ext_net_list`, `cloudapi.vins.ext_net_connect`, `cloudapi.vins.ext_net_disconnect`. |
|
|
||||||
| BPYS-445 | Добавлена функция `cloudapi.security_group.list`. |
|
|
||||||
| BPYS-442 | Добавлена функция `cloudapi.security_group.delete`. |
|
|
||||||
| BPYS-440 | Добавлена функция `cloudapi.security_group.create`. |
|
|
||||||
| BPYS-441 | Добавлена функция `cloudapi.security_group.create_rule`. |
|
|
||||||
| BPYS-398 | Добавлена функция `cloudapi.storage_policy.list`. |
|
|
||||||
| BPYS-443 | Добавлена функция `cloudapi.security_group.delete_rule`. |
|
|
||||||
| BPYS-400 | Добавлена функция `cloudbroker.storage_policy.create`. |
|
|
||||||
| BPYS-403 | Добавлена функция `cloudbroker.account.add_storage_policy`. |
|
|
||||||
| BPYS-404 | Добавлена функция `cloudbroker.account.del_storage_policy`. |
|
|
||||||
| BPYS-405 | Добавлена функция `cloudbroker.rg.add_storage_policy`. |
|
|
||||||
| BPYS-448 | Добавлена функция `cloudbroker.image.change_storage_policy`. |
|
|
||||||
| BPYS-396 | Функция `cloudbroker.account.create`: добавлен параметр `storage_policy_quotas`. |
|
|
||||||
| BPYS-444 | Добавлена функция `cloudapi.security_group.get`. |
|
|
||||||
| BPYS-449 | Добавлена функция `cloudbroker.compute.change_security_groups`. |
|
|
||||||
| BPYS-450 | Добавлена функция `cloudbroker.vins.update`. |
|
|
||||||
| BPYS-505 | Функция `cloudapi.compute.get`: добавлен атрибут `CloudapiComputeGetResultModel.disks.to_clean`. |
|
|
||||||
| BPYS-515 | Функция `cloudapi.compute.get`: добавлен атрибут `CloudapiComputeGetResultModel.os_version`. |
|
|
||||||
| BPYS-518 | Функция `cloudapi.compute.get`: у атрибута `CloudapiComputeGetResultModel.image_id` изменен тип с `int` на `None \| int`. |
|
|
||||||
| BPYS-504 | Функция `cloudapi.disks.list`: добавлен атрибут `CloudapiDisksListResultModel.data.to_clean`. |
|
|
||||||
| BPYS-504 | Функция `cloudapi.disks.list_deleted`: добавлен атрибут `CloudapiDisksListDeletedResultModel.data.to_clean`. |
|
|
||||||
| BPYS-503 | Функция `cloudapi.disks.get`: добавлен атрибут `CloudapiDisksGetResultModel.to_clean`. |
|
|
||||||
| BPYS-406 | Добавлена функция `cloudbroker.rg.del_storage_policy`. |
|
|
||||||
| BPYS-438 | Функция `cloudapi.rg.create`: добавлен параметр `storage_policy_quotas`. |
|
|
||||||
| BPYS-514 | Функция `cloudapi.kvmx86.create`: добавлен параметр `os_version`. |
|
|
||||||
| BPYS-521 | Функция `cloudapi.compute.list`: добавлен атрибут `CloudapiComputeListResultModel.data.os_version`. |
|
|
||||||
| BPYS-513 | Функция `cloudapi.kvmx86.create_blank`: добавлен параметр `os_version`. |
|
|
||||||
| BPYS-512 | Функция `cloudapi.compute.update`: добавлен параметр `os_version`. |
|
|
||||||
| BPYS-409 | Добавлена функция `cloudbroker.storage_policy.disable`. |
|
|
||||||
| BPYS-402 | Добавлена функция `cloudbroker.storage_policy.update`. |
|
|
||||||
| BPYS-407 | Добавлена функция `cloudbroker.storage_policy.add_pool`. |
|
|
||||||
| BPYS-410 | Добавлена функция `cloudbroker.storage_policy.enable`. |
|
|
||||||
| BPYS-532 | Функция `cloudapi.vins.get`: добавлен атрибут `CloudapiVinsGetResultModel.vnfdev.interfaces.security_group_ids`. |
|
|
||||||
| BPYS-533 | Функция `cloudapi.vins.get`: добавлен атрибут `CloudapiVinsGetResultModel.vnfdev.interfaces.security_group_mode`. |
|
|
||||||
| BPYS-534 | Функция `cloudapi.vins.get`: добавлен атрибут `CloudapiVinsGetResultModel.security_group_mode`. |
|
|
||||||
| BPYS-531 | Функция `cloudapi.image.get`: добавлен атрибут `CloudapiImageGetResultModel.storage_policy_id`. |
|
|
||||||
| BPYS-529 | Функция `cloudapi.extnet.get`: добавлен атрибут `CloudapiExtnetGetResultModel.security_group_mode`. |
|
|
||||||
| BPYS-528 | Функция `cloudapi.dpdknet.get`: добавлен атрибут `CloudapiDpdknetGetResultModel.security_group_mode`. |
|
|
||||||
| BPYS-528 | Функция `cloudapi.dpdknet.list`: добавлен атрибут `CloudapiDpdknetListResultModel.data.security_group_mode`. |
|
|
||||||
| BPYS-524 | Функция `cloudapi.audit.get`: добавлен атрибут `CloudapiAuditGetResultModel.correlation_id`. |
|
|
||||||
| BPYS-411 | Добавлена функция `cloudbroker.storage_policy.get`. |
|
|
||||||
| BPYS-451 | Добавлена функция `cloudbroker.security_group.create`. |
|
|
||||||
| BPYS-412 | Добавлена функция `cloudbroker.storage_policy.list`. |
|
|
||||||
| BPYS-452 | Добавлена функция `cloudbroker.security_group.create_rule`. |
|
|
||||||
| BPYS-542 | Функция `cloudapi.disks.list_unattached`: добавлен параметр `storage_policy_id`. |
|
|
||||||
| BPYS-408 | Добавлена функция `cloudbroker.storage_policy.delete_pool`. |
|
|
||||||
| BPYS-453 | Добавлена функция `cloudbroker.security_group.delete`. |
|
|
||||||
| BPYS-455 | Добавлена функция `cloudbroker.security_group.get`. |
|
|
||||||
| BPYS-456 | Добавлена функция `cloudbroker.security_group.list`. |
|
|
||||||
| BPYS-457 | Добавлена функция `cloudbroker.security_group.update`. |
|
|
||||||
| BPYS-564 | Функция `cloudapi.image.list`: добавлен параметр `storage_policy_id`. |
|
|
||||||
| BPYS-562 | Функция `cloudapi.compute.redeploy`: добавлен параметр `os_version`. |
|
|
||||||
| BPYS-570 | Функция `cloudapi.storage_policy.get`: добавлен атрибут `CloudapiStoragePolicyGetResultModel.sep_pools.sep_name`. |
|
|
||||||
| BPYS-570 | Функция `cloudapi.storage_policy.list`: добавлен атрибут `CloudapiStoragePolicyListResultModel.data.sep_pools.sep_name`. |
|
|
||||||
| BPYS-570 | Функция `cloudbroker.storage_policy.add_pool`: добавлен атрибут `CloudbrokerStoragePolicyAddPoolResultModel.sep_pools.sep_name`. |
|
|
||||||
| BPYS-570 | Функция `cloudbroker.storage_policy.delete_pool`: добавлен атрибут `CloudbrokerStoragePolicyDeletePoolResultModel.sep_pools.sep_name`. |
|
|
||||||
| BPYS-570 | Функция `cloudbroker.storage_policy.get`: добавлен атрибут `CloudbrokerStoragePolicyGetResultModel.sep_pools.sep_name`. |
|
|
||||||
| BPYS-570 | Функция `cloudbroker.storage_policy.list`: добавлен атрибут `CloudbrokerStoragePolicyListResultModel.data.sep_pools.sep_name`. |
|
|
||||||
| BPYS-570 | Функция `cloudbroker.storage_policy.update`: добавлен атрибут `CloudbrokerStoragePolicyUpdateResultModel.sep_pools.sep_name`. |
|
|
||||||
| BPYS-550 | Добавлена функция `cloudbroker.node.get_ssh_identity`. |
|
|
||||||
| BPYS-566 | Добавлена функция `cloudbroker.compute.start_migration_in`. |
|
|
||||||
| BPYS-581 | Функция `cloudapi.compute.get`: добавлен атрибут `CloudapiComputeGetResultModel.boot_loader_metaiso`. |
|
|
||||||
| BPYS-582 | Функция `cloudapi.compute.get`: добавлен атрибут `CloudapiComputeGetResultModel.disks.device_name`. |
|
|
||||||
| BPYS-580 | Функция `cloudapi.image.list`: добавлен атрибут `CloudapiImageListResultModel.data.storage_policy_id`. |
|
|
||||||
| BPYS-567 | Добавлена функция `cloudbroker.compute.stop_migration_in`. |
|
|
||||||
| BPYS-556 | Функция `cloudapi.compute.disk_add`: добавлен параметр `pci_slot_num_hex`. |
|
|
||||||
| BPYS-557 | Функция `cloudapi.compute.disk_add`: добавлен параметр `bus_num_hex`. |
|
|
||||||
| BPYS-559 | Функция `cloudapi.compute.disk_attach`: добавлен параметр `pci_slot_num_hex`. |
|
|
||||||
| BPYS-560 | Функция `cloudapi.compute.disk_attach`: добавлен параметр `bus_num_hex`. |
|
|
||||||
| BPYS-565 | Добавлена функция `cloudbroker.compute.migrate_storage_list`. |
|
|
||||||
| BPYS-553 | Функция `cloudapi.k8s.create`: тип параметра `lb_sysctl_params` изменен с `list[dict]` на `list[dict[str, str]]`. |
|
|
||||||
| BPYS-552 | Функция `cloudapi.lb.update_sysctl_params`: тип параметра `sysctl_params` изменен с `list[dict]` на `list[dict[str, str]]`. |
|
|
||||||
| BPYS-497 | Функция `cloudapi.compute.get`: добавлен атрибут `CloudapiComputeGetResultModel.interfaces.net_prefix` в связи с переименованием из `net_mask`. |
|
|
||||||
| BPYS-497 | Функция `cloudapi.compute.list`: добавлен атрибут `CloudapiComputeListResultModel.data.interfaces.net_prefix` в связи с переименованием из `net_mask`. |
|
|
||||||
| BPYS-497 | Функция `cloudapi.compute.net_attach`: добавлен атрибут `CloudapiComputeNetAttachResultModel.net_prefix` в связи с переименованием из `net_mask`. |
|
|
||||||
| BPYS-497 | Функция `cloudapi.flipgroup.create`: добавлен атрибут `CloudapiFlipgroupCreateResultModel.net_prefix` в связи с переименованием из `net_mask`. |
|
|
||||||
| BPYS-497 | Функция `cloudapi.flipgroup.list`: добавлен атрибут `CloudapiFlipgroupListResultModel.data.net_prefix` в связи с переименованием из `net_mask`. |
|
|
||||||
| BPYS-497 | Функция `cloudapi.extnet.get`: добавлен атрибут `CloudapiExtnetGetResultModel.net_prefix` в связи с переименованием из `net_mask`. |
|
|
||||||
| BPYS-497 | Функция `cloudapi.vins.get`: добавлен атрибут `CloudapiVinsGetResultModel.net_prefix` в связи с переименованием из `net_mask`. |
|
|
||||||
| BPYS-497 | Функция `cloudapi.vins.get`: добавлен атрибут `CloudapiVinsGetResultModel.vnfdev.interfaces.net_prefix` в связи с переименованием из `net_mask`. |
|
|
||||||
| BPYS-497 | Функция `cloudapi.vins.get`: добавлен атрибут `CloudapiVinsGetResultModel.vnfs.dhcp.config.net_prefix` в связи с переименованием из `net_mask`. |
|
|
||||||
| BPYS-497 | Функция `cloudapi.vins.get`: добавлен атрибут `CloudapiVinsGetResultModel.vnfs.gw.config.ext_net_prefix` в связи с переименованием из `ext_net_mask`. |
|
|
||||||
| BPYS-497 | Функция `cloudapi.vins.get`: добавлен атрибут `CloudapiVinsGetResultModel.vnfs.nat.config.net_prefix` в связи с переименованием из `net_mask`. |
|
|
||||||
| BPYS-587 | Функция `cloudapi.audit.get`: добавлен атрибут `CloudapiAuditGetResultModel.account_id`. |
|
|
||||||
| BPYS-588 | Функция `cloudapi.audit.get`: добавлен атрибут `CloudapiAuditGetResultModel.vm_id`. |
|
|
||||||
| BPYS-589 | Функция `cloudapi.audit.get`: добавлен атрибут `CloudapiAuditGetResultModel.rg_id`. |
|
|
||||||
| BPYS-590 | Функция `cloudapi.audit.get`: добавлен атрибут `CloudapiAuditGetResultModel.vins_id`. |
|
|
||||||
| BPYS-591 | Функция `cloudapi.audit.get`: добавлен атрибут `CloudapiAuditGetResultModel.bservice_id`. |
|
|
||||||
| BPYS-592 | Функция `cloudapi.audit.get`: добавлен атрибут `CloudapiAuditGetResultModel.k8s_id`. |
|
|
||||||
| BPYS-593 | Функция `cloudapi.audit.get`: добавлен атрибут `CloudapiAuditGetResultModel.flip_group_id`. |
|
|
||||||
| BPYS-594 | Функция `cloudapi.audit.get`: добавлен атрибут `CloudapiAuditGetResultModel.lb_id`. |
|
|
||||||
| BPYS-595 | Функция `cloudapi.audit.get`: добавлен атрибут `CloudapiAuditGetResultModel.sep_id`. |
|
|
||||||
| BPYS-596 | Функция `cloudapi.audit.get`: добавлен атрибут `CloudapiAuditGetResultModel.node_ids`. |
|
|
||||||
| BPYS-597 | Функция `cloudapi.audit.get`: добавлен атрибут `CloudapiAuditGetResultModel.apitask`. |
|
|
||||||
| BPYS-575 | Добавлена функция `cloudapi.compute.create_template`. |
|
|
||||||
| BPYS-195 | Добавлены функции `cloudapi.k8s.get_node_annotations`, `cloudapi.k8s.get_node_labels`, `cloudapi.k8s.get_node_taints`. |
|
|
||||||
| BPYS-189 | Добавлена функция `cloudapi.k8s.update_worker_nodes_meta_data`. |
|
|
||||||
| BPYS-579 | Функция `cloudapi.compute.get`: добавлен атрибут `CloudapiComputeGetResultModel.disks.bus_num` в связи с переименованием из `bus_number`. |
|
|
||||||
| BPYS-579 | Функция `cloudapi.compute.get`: добавлен атрибут `CloudapiComputeGetResultModel.interfaces.bus_num` в связи с переименованием из `bus_number`. |
|
|
||||||
| BPYS-579 | Функция `cloudapi.compute.list`: добавлен атрибут `CloudapiComputeListResultModel.data.interfaces.bus_num` в связи с переименованием из `bus_number`. |
|
|
||||||
| BPYS-579 | Функция `cloudapi.vins.get`: добавлен атрибут `CloudapiVinsGetResultModel.vnfdev.interfaces.bus_num` в связи с переименованием из `bus_number`. |
|
|
||||||
| BPYS-578 | Функция `cloudapi.compute.get`: добавлен атрибут `CloudapiComputeGetResultModel.disks.pci_slot_num` в связи с переименованием из `pci_slot`. |
|
|
||||||
| BPYS-578 | Функция `cloudapi.compute.get`: добавлен атрибут `CloudapiComputeGetResultModel.interfaces.pci_slot_num` в связи с переименованием из `pci_slot`. |
|
|
||||||
| BPYS-578 | Функция `cloudapi.compute.list`: добавлен атрибут `CloudapiComputeListResultModel.data.interfaces.pci_slot_num` в связи с переименованием из `pci_slot`. |
|
|
||||||
| BPYS-578 | Функция `cloudapi.vins.get`: добавлен атрибут `CloudapiVinsGetResultModel.vnfdev.interfaces.pci_slot_num` в связи с переименованием из `pci_slot`. |
|
|
||||||
| BPYS-586 | Добавлена функция `cloudapi.audit.list`. |
|
|
||||||
| BPYS-601 | Добавлена функция `cloudbroker.audit.list`. |
|
|
||||||
| BPYS-607 | Функция `cloudapi.compute.clone`: добавлен параметр `storage_policy_id`. |
|
|
||||||
| BPYS-617 | Функция `cloudapi.compute.clone`: изменен тип возвращаемого функцией значения с `int` на `str`. |
|
|
||||||
| BPYS-621 | Функция `cloudbroker.storage_policy.update`: добавлен параметр `sep_pools`. |
|
|
||||||
| BPYS-603 | Функция `cloudapi.compute.list`: добавлен атрибут `CloudapiComputeListResultModel.data.vgpu_ids` в связи с переименованием из `vgpus`. |
|
|
||||||
| BPYS-127 | Функция `cloudapi.compute.get`: у атрибута `CloudapiComputeGetResultModel.vgpus` изменен тип с `list[dict[str, _typing.Any]]` на `list[VGPUAPIResultNM]`. |
|
|
||||||
| BPYS-604 | Функция `cloudapi.compute.get`: добавлен атрибут `CloudapiComputeGetResultModel.migration_job_id` в связи с переименованием из `migration_job`. |
|
|
||||||
| BPYS-604 | Функция `cloudapi.compute.list`: добавлен атрибут `CloudapiComputeListResultModel.data.migration_job_id` в связи с переименованием из `migration_job`. |
|
|
||||||
| BPYS-609 | Функция `cloudapi.compute.clone`: добавлен параметр `sep_pool_name`. |
|
|
||||||
| BPYS-610 | Функция `cloudapi.compute.clone`: добавлен параметр `sep_id`. |
|
|
||||||
| BPYS-549 | Добавлена функция `cloudbroker.node.add_ssh_identity`. |
|
|
||||||
| BPYS-401 | Добавлена функция `cloudbroker.storage_policy.delete`. |
|
|
||||||
| BPYS-454 | Добавлена функция `cloudbroker.security_group.delete_rule`. |
|
|
||||||
| BPYS-154 | Добавлена функция `cloudbroker.user.create`. |
|
|
||||||
| BPYS-576 | Добавлена функция `cloudbroker.compute.start_migration_out`. |
|
|
||||||
| BPYS-577 | Добавлена функция `cloudbroker.compute.stop_migration_out`. |
|
|
||||||
| BPYS-613 | Добавлена функция `cloudbroker.compute.clone`. |
|
|
||||||
| BPYS-612 | Добавлена функция `cloudbroker.compute.clone_abort`. |
|
|
||||||
| BPYS-618 | Добавлена функция `cloudapi.compute.clone_abort`. |
|
|
||||||
| BPYS-614 | Добавлена функция `cloudbroker.disks.migrate`. |
|
|
||||||
| BPYS-615 | Добавлена функция `cloudbroker.disks.migrate_abort`. |
|
|
||||||
| BPYS-623 | Функция `cloudapi.compute.get`: добавлен атрибут `CloudapiComputeGetResultModel.boot_image_id`. |
|
|
||||||
| BPYS-625 | Функция `cloudapi.compute.list`: добавлен атрибут `CloudapiComputeListResultModel.data.boot_image_id`. |
|
|
||||||
| BPYS-634 | Функция `cloudapi.vins.get`: добавлен атрибут `CloudapiVinsGetResultModel.vnfdev.live_migration_job_id`. |
|
|
||||||
| BPYS-643 | Функции `cloudapi.bservice.get`, `cloudapi.compute.get`, `cloudapi.compute.list`, `cloudapi.k8s.get`: в перечисляемый тип `VMTechStatus` добавлено значение `MIGRATING_IN`. |
|
|
||||||
| BPYS-644 | Функции `cloudapi.bservice.get`, `cloudapi.compute.get`, `cloudapi.compute.list`, `cloudapi.k8s.get`: в перечисляемый тип `VMTechStatus` добавлено значение `MIGRATING_OUT`. |
|
|
||||||
| BPYS-215 | Добавлены функции `cloudbroker.user.get`, `cloudbroker.user.list`. |
|
|
||||||
| BPYS-399 | Добавлена функция `cloudapi.disks.change_disk_storage_policy`. |
|
|
||||||
| BPYS-616 | Добавлена функция `cloudbroker.disks.migrate_status`. |
|
|
||||||
| BPYS-660 | Функция `cloudapi.image.get`: добавлен атрибут `CloudapiImageGetResultModel.to_clean`. |
|
|
||||||
| BPYS-641 | Добавлена функция `cloudapi.rg.del_storage_policy`. |
|
|
||||||
| BPYS-640 | Добавлена функция `cloudapi.rg.add_storage_policy`. |
|
|
||||||
| BPYS-642 | Функция `cloudapi.compute.get`: добавлен атрибут `CloudapiComputeGetResultModel.os_users.ssh_public_key` в связи с переименованием из `pub_key`. |
|
|
||||||
| BPYS-642 | Функция `cloudbroker.compute.stop_migration_in`: добавлен параметр `os_users.ssh_public_key` в связи с переименованием из `pub_key`. |
|
|
||||||
| BPYS-629 | Добавлена функция `cloudbroker.node.update_description`. |
|
|
||||||
| BPYS-630 | Добавлена функция `cloudbroker.vnfdev.migrate_abort`. |
|
|
||||||
| BPYS-668 | Функция `cloudapi.bservice.create`: добавлен параметр `ssh_public_key` в связи с переименованием из `ssh_key`. |
|
|
||||||
| BPYS-668 | Функция `cloudapi.bservice.get`: добавлен атрибут `CloudapiBserviceGetResultModel.ssh_public_key` в связи с переименованием из `ssh_key`. |
|
|
||||||
| BPYS-668 | Функция `cloudapi.vins.get`: добавлен атрибут `CloudapiVinsGetResultModel.vnfdev.config.mgmt.ssh_public_key` в связи с переименованием из `ssh_key`. |
|
|
||||||
| BPYS-667 | Функция `cloudapi.bservice.create`: добавлен параметр `ssh_user_name` в связи с переименованием из `ssh_user`. |
|
|
||||||
| BPYS-667 | Функция `cloudapi.bservice.get`: добавлен атрибут `CloudapiBserviceGetResultModel.ssh_user_name` в связи с переименованием из `ssh_user`. |
|
|
||||||
| BPYS-667 | Функция `cloudapi.bservice.list`: добавлен атрибут `CloudapiBserviceListResultModel.data.ssh_user_name` в связи с переименованием из `ssh_user`. |
|
|
||||||
| BPYS-667 | Функция `cloudapi.bservice.list_delete`: добавлен атрибут `CloudapiBserviceListDeleteResultModel.data.ssh_user_name` в связи с переименованием из `ssh_user`. |
|
|
||||||
| BPYS-676 | Добавлена функция `system.info.version`. |
|
|
||||||
| BPYS-681 | Добавлена функция `cloudapi.bservice.snapshot_rollback`. |
|
|
||||||
| BPYS-680 | Добавлена функция `cloudapi.bservice.snapshot_delete`. |
|
|
||||||
| BPYS-679 | Добавлена функция `cloudapi.bservice.snapshot_create`. |
|
|
||||||
| BPYS-684 | Добавлена функция `cloudapi.compute.attach_pci_device`. |
|
|
||||||
| BPYS-682 | Добавлена функция `cloudapi.bservice.snapshot_list`. |
|
|
||||||
| BPYS-683 | Добавлена функция `cloudapi.compute.attach_gpu`. |
|
|
||||||
| BPYS-687 | Добавлена функция `cloudapi.compute.detach_gpu`. |
|
|
||||||
| BPYS-686 | Добавлена функция `cloudapi.compute.boot_disk_set`. |
|
|
||||||
| BPYS-677 | Добавлена функция `cloudapi.account.get_resource_consumption`. |
|
|
||||||
| BPYS-688 | Добавлена функция `cloudapi.compute.detach_pci_device`. |
|
|
||||||
| BPYS-689 | Добавлена функция `cloudapi.compute.disable`. |
|
|
||||||
| BPYS-690 | Добавлена функция `cloudapi.compute.disk_migrate`. |
|
|
||||||
| BPYS-694 | Добавлена функция `cloudapi.compute.disk_switch_to_replication`. |
|
|
||||||
| BPYS-695 | Добавлена функция `cloudapi.compute.enable`. |
|
|
||||||
| BPYS-697 | Добавлена функция `cloudapi.compute.move_to_rg`. |
|
|
||||||
| BPYS-698 | Добавлена функция `cloudapi.compute.restore`. |
|
|
||||||
| BPYS-699 | Добавлена функция `cloudapi.compute.change_mac`. |
|
|
||||||
| BPYS-658 | Добавлена проверка совместимости с API и соответствующий параметр `ignore_api_compatibility` в конструктор класса `Dynamix`. |
|
|
||||||
| BPYS-708 | Добавлена функция `cloudapi.k8s.worker_add`. |
|
|
||||||
| BPYS-692 | Добавлен тип исключения `dynamix_sdk.exceptions.RequestException`. В конструкторы классов `Dynamix`, `DECS3OAuth`, `BVSAuth` добавлен параметр `wrap_request_exceptions`, позволяющий заменить исключения библиотеки requests на новый тип исключения, который кроме оригинального исключения содержит название функции SDK и переданные в неё параметры. |
|
|
||||||
| BPYS-693 | В конструкторы классов `Dynamix`, `DECS3OAuth`, `BVSAuth` добавлен параметр `f_decorators`, позволяющий задать список декораторов, которые будут применяться к каждой вызываемой функции SDK. |
|
|
||||||
| BPYS-709 | Добавлена функция `cloudapi.pcidevice.list`. |
|
|
||||||
| BPYS-711 | Добавлена функция `cloudapi.rg.get_resource_consumption`. |
|
|
||||||
| BPYS-713 | Добавлена функция `cloudapi.sep.list_available_sep_and_pools`. |
|
|
||||||
| BPYS-722 | Добавлена функция `cloudapi.user.set_data`. |
|
|
||||||
| BPYS-716 | Добавлена функция `cloudapi.vgpu.list`. |
|
|
||||||
| BPYS-724 | Добавлена функция `cloudbroker.account.get`. |
|
|
||||||
| BPYS-726 | Добавлена функция `cloudbroker.account.add_user`. |
|
|
||||||
| BPYS-696 | Добавлена функция `cloudapi.compute.list_deleted`. |
|
|
||||||
| BPYS-712 | Добавлена функция `cloudapi.rg.list_deleted`. |
|
|
||||||
| BPYS-714 | Добавлена функция `cloudapi.user.brief`. |
|
|
||||||
| BPYS-725 | Добавлена функция `cloudbroker.account.list`. |
|
|
||||||
| BPYS-727 | Добавлена функция `cloudbroker.account.add_zone`. |
|
|
||||||
| BPYS-734 | Добавлена функция `cloudbroker.account.delete_accounts`. |
|
|
||||||
| BPYS-735 | Добавлена функция `cloudbroker.account.delete_user`. |
|
|
||||||
| BPYS-736 | Добавлена функция `cloudbroker.account.disable`. |
|
|
||||||
| BPYS-737 | Добавлена функция `cloudbroker.account.disable_accounts`. |
|
|
||||||
| BPYS-738 | Добавлена функция `cloudbroker.account.enable`. |
|
|
||||||
| BPYS-728 | Добавлена функция `cloudbroker.account.delete`. |
|
|
||||||
| BPYS-715 | Добавлена функция `cloudapi.user.get_resource_consumption`. |
|
|
||||||
| BPYS-739 | Добавлена функция `cloudbroker.account.enable_accounts`. |
|
|
||||||
| BPYS-741 | Добавлена функция `cloudbroker.account.get_resource_consumption`. |
|
|
||||||
| BPYS-745 | Добавлена функция `cloudbroker.account.list_deleted`. |
|
|
||||||
| BPYS-746 | Добавлена функция `cloudbroker.account.restore`. |
|
|
||||||
| BPYS-747 | Добавлена функция `cloudbroker.account.remove_zone`. |
|
|
||||||
|
|
||||||
## Удалено
|
## Удалено
|
||||||
|
|
||||||
| Идентификатор<br>задачи | Описание |
|
|
||||||
| --- | --- |
|
|
||||||
| BPYS-322 | Функция `cloudapi.k8ci.list`: удален параметр `worker_node_driver`. |
|
|
||||||
| BPYS-323 | Функция `cloudapi.k8ci.list`: удален параметр `master_node_driver`. |
|
|
||||||
| BPYS-331 | Функция `cloudapi.kvmx86.create_blank`: удален параметр `driver`. |
|
|
||||||
| BPYS-329 | Функция `cloudapi.kvmx86.create`: удален параметр `driver`. |
|
|
||||||
| BPYS-326 | Функция `cloudapi.k8ci.list_deleted`: удален параметр `worker_node_driver`. |
|
|
||||||
| BPYS-327 | Функция `cloudapi.k8ci.list_deleted`: удален параметр `master_node_driver`. |
|
|
||||||
| BPYS-359 | Функция `cloudapi.account.get`: удален атрибут `CloudapiAccountGetResultModel.quotas.public_ip_count` в связи с переименованием в `ext_ip_count`. |
|
|
||||||
| BPYS-359 | Функция `cloudapi.account.update`: удален параметр `public_ip_count_quota` в связи с переименованием в `ext_ip_count_quota`. |
|
|
||||||
| BPYS-359 | Функция `cloudapi.rg.create`: удален параметр `public_ip_count_quota` в связи с переименованием в `ext_ip_count_quota`. |
|
|
||||||
| BPYS-359 | Функция `cloudapi.rg.get`: удален атрибут `CloudapiRgGetResultModel.quotas.public_ip_count` в связи с переименованием в `ext_ip_count`. |
|
|
||||||
| BPYS-359 | Функция `cloudapi.rg.list`: удален атрибут `CloudapiRgListResultModel.data.quotas.public_ip_count` в связи с переименованием в `ext_ip_count`. |
|
|
||||||
| BPYS-359 | Функция `cloudapi.rg.update`: удален параметр `public_ip_count_quota` в связи с переименованием в `ext_ip_count_quota`. |
|
|
||||||
| BPYS-359 | Функция `cloudbroker.account.create`: удален параметр `public_ip_count_quota` в связи с переименованием в `ext_ip_count_quota`. |
|
|
||||||
| BPYS-318 | Функция `cloudapi.image.create`: удален параметр `drivers`. |
|
|
||||||
| BPYS-372 | Функция `cloudapi.disks.create`: удален параметр `iops`. |
|
|
||||||
| BPYS-516 | Функция `cloudapi.compute.get`: удален атрибут `CloudapiComputeGetResultModel.virtual_image_id`. |
|
|
||||||
| BPYS-517 | Функция `cloudapi.compute.get`: удален атрибут `CloudapiComputeGetResultModel.virtual_image_name`. |
|
|
||||||
| BPYS-519 | Функция `cloudapi.compute.list`: удален атрибут `CloudapiComputeListResultModel.data.image_id`. |
|
|
||||||
| BPYS-520 | Функция `cloudapi.compute.list`: удален атрибут `CloudapiComputeListResultModel.data.virtual_image_id`. |
|
|
||||||
| BPYS-569 | Функция `cloudapi.storage_policy.get`: удален атрибут `CloudapiStoragePolicyGetResultModel.sep_pools.name`. |
|
|
||||||
| BPYS-569 | Функция `cloudapi.storage_policy.list`: удален атрибут `CloudapiStoragePolicyListResultModel.data.sep_pools.name`. |
|
|
||||||
| BPYS-569 | Функция `cloudbroker.storage_policy.add_pool`: удален атрибут `CloudbrokerStoragePolicyAddPoolResultModel.sep_pools.name`. |
|
|
||||||
| BPYS-569 | Функция `cloudbroker.storage_policy.delete_pool`: удален атрибут `CloudbrokerStoragePolicyDeletePoolResultModel.sep_pools.name`. |
|
|
||||||
| BPYS-569 | Функция `cloudbroker.storage_policy.get`: удален атрибут `CloudbrokerStoragePolicyGetResultModel.sep_pools.name`. |
|
|
||||||
| BPYS-569 | Функция `cloudbroker.storage_policy.list`: удален атрибут `CloudbrokerStoragePolicyListResultModel.data.sep_pools.name`. |
|
|
||||||
| BPYS-569 | Функция `cloudbroker.storage_policy.update`: удален атрибут `CloudbrokerStoragePolicyUpdateResultModel.sep_pools.name`. |
|
|
||||||
| BPYS-497 | Функция `cloudapi.compute.get`: удален атрибут `CloudapiComputeGetResultModel.interfaces.net_mask` в связи с переименованием в `net_prefix`. |
|
|
||||||
| BPYS-497 | Функция `cloudapi.compute.list`: удален атрибут `CloudapiComputeListResultModel.data.interfaces.net_mask` в связи с переименованием в `net_prefix`. |
|
|
||||||
| BPYS-497 | Функция `cloudapi.compute.net_attach`: удален атрибут `CloudapiComputeNetAttachResultModel.net_mask` в связи с переименованием в `net_prefix`. |
|
|
||||||
| BPYS-497 | Функция `cloudapi.extnet.get`: удален атрибут `CloudapiExtnetGetResultModel.net_mask` в связи с переименованием в `net_prefix`. |
|
|
||||||
| BPYS-497 | Функция `cloudapi.flipgroup.create`: удален атрибут `CloudapiFlipgroupCreateResultModel.net_mask` в связи с переименованием в `net_prefix`. |
|
|
||||||
| BPYS-497 | Функция `cloudapi.flipgroup.list`: удален атрибут `CloudapiFlipgroupListResultModel.data.net_mask` в связи с переименованием в `net_prefix`. |
|
|
||||||
| BPYS-497 | Функция `cloudapi.vins.get`: удален атрибут `CloudapiVinsGetResultModel.net_mask` в связи с переименованием в `net_prefix`. |
|
|
||||||
| BPYS-497 | Функция `cloudapi.vins.get`: удален атрибут `CloudapiVinsGetResultModel.vnfdev.interfaces.net_mask` в связи с переименованием в `net_prefix`. |
|
|
||||||
| BPYS-497 | Функция `cloudapi.vins.get`: удален атрибут `CloudapiVinsGetResultModel.vnfs.dhcp.config.net_mask` в связи с переименованием в `net_prefix`. |
|
|
||||||
| BPYS-497 | Функция `cloudapi.vins.get`: удален атрибут `CloudapiVinsGetResultModel.vnfs.gw.config.ext_net_mask` в связи с переименованием в `ext_net_prefix`. |
|
|
||||||
| BPYS-497 | Функция `cloudapi.vins.get`: удален атрибут `CloudapiVinsGetResultModel.vnfs.nat.config.net_mask` в связи с переименованием в `net_prefix`. |
|
|
||||||
| BPYS-579 | Функция `cloudapi.compute.get`: удален атрибут `CloudapiComputeGetResultModel.disks.bus_number` в связи с переименованием в `bus_num`. |
|
|
||||||
| BPYS-579 | Функция `cloudapi.compute.get`: удален атрибут `CloudapiComputeGetResultModel.interfaces.bus_number` в связи с переименованием в `bus_num`. |
|
|
||||||
| BPYS-579 | Функция `cloudapi.compute.list`: удален атрибут `CloudapiComputeListResultModel.data.interfaces.bus_number` в связи с переименованием в `bus_num`. |
|
|
||||||
| BPYS-579 | Функция `cloudapi.vins.get`: удален атрибут `CloudapiVinsGetResultModel.vnfdev.interfaces.bus_number` в связи с переименованием в `bus_num`. |
|
|
||||||
| BPYS-578 | Функция `cloudapi.compute.get`: удален атрибут `CloudapiComputeGetResultModel.disks.pci_slot` в связи с переименованием в `pci_slot_num`. |
|
|
||||||
| BPYS-578 | Функция `cloudapi.compute.get`: удален атрибут `CloudapiComputeGetResultModel.interfaces.pci_slot` в связи с переименованием в `pci_slot_num`. |
|
|
||||||
| BPYS-578 | Функция `cloudapi.compute.list`: удален атрибут `CloudapiComputeListResultModel.data.interfaces.pci_slot` в связи с переименованием в `pci_slot_num`. |
|
|
||||||
| BPYS-578 | Функция `cloudapi.vins.get`: удален атрибут `CloudapiVinsGetResultModel.vnfdev.interfaces.pci_slot` в связи с переименованием в `pci_slot_num`. |
|
|
||||||
| BPYS-603 | Функция `cloudapi.compute.list`: удален атрибут `CloudapiComputeListResultModel.data.vgpus` в связи с переименованием в `vgpu_ids`. |
|
|
||||||
| BPYS-604 | Функция `cloudapi.compute.get`: удален атрибут `CloudapiComputeGetResultModel.migration_job` в связи с переименованием в `migration_job_id`. |
|
|
||||||
| BPYS-604 | Функция `cloudapi.compute.list`: удален атрибут `CloudapiComputeListResultModel.data.migration_job` в связи с переименованием в `migration_job_id`. |
|
|
||||||
| BPYS-651 | Удалена функция `cloudapi.user.get_audit`. |
|
|
||||||
| BPYS-642 | Функция `cloudapi.compute.get`: удален атрибут `CloudapiComputeGetResultModel.os_users.pub_key` в связи с переименованием в `ssh_public_key`. |
|
|
||||||
| BPYS-642 | Функция `cloudbroker.compute.stop_migration_in`: удален параметр `os_users.pub_key` в связи с переименованием в `ssh_public_key`. |
|
|
||||||
| BPYS-668 | Функция `cloudapi.bservice.create`: удален параметр `ssh_key` в связи с переименованием в `ssh_public_key`. |
|
|
||||||
| BPYS-668 | Функция `cloudapi.bservice.get`: удален атрибут `CloudapiBserviceGetResultModel.ssh_key` в связи с переименованием в `ssh_public_key`. |
|
|
||||||
| BPYS-668 | Функция `cloudapi.vins.get`: удален атрибут `CloudapiVinsGetResultModel.vnfdev.config.mgmt.ssh_key` в связи с переименованием в `ssh_public_key`. |
|
|
||||||
| BPYS-667 | Функция `cloudapi.bservice.create`: удален параметр `ssh_user` в связи с переименованием в `ssh_user_name`. |
|
|
||||||
| BPYS-667 | Функция `cloudapi.bservice.get`: удален атрибут `CloudapiBserviceGetResultModel.ssh_user` в связи с переименованием в `ssh_user_name`. |
|
|
||||||
| BPYS-667 | Функция `cloudapi.bservice.list`: удален атрибут `CloudapiBserviceListResultModel.data.ssh_user` в связи с переименованием в `ssh_user_name`. |
|
|
||||||
| BPYS-667 | Функция `cloudapi.bservice.list_delete`: удален атрибут `CloudapiBserviceListDeleteResultModel.data.ssh_user` в связи с переименованием в `ssh_user_name`. |
|
|
||||||
| BPYS-723 | Удалена функция `cloudapi.compute.disk_resize`: в связи с тем, что аналогичный функционал доступен через функцию `cloudapi.disks.resize2`. |
|
|
||||||
|
|
||||||
## Исправлено
|
## Исправлено
|
||||||
|
|
||||||
| Идентификатор<br>задачи | Описание |
|
|
||||||
| --- | --- |
|
|
||||||
| BPYS-358 | Функция `cloudapi.k8s.get`: в некоторых случаях вызов функции завершался ошибкой валидации полей `k8sGroups.masters.detailedInfo.0.externalip` и `k8sGroups.workers.0.detailedInfo.0.externalip`. |
|
|
||||||
| BPYS-357 | Функция `cloudapi.k8s.list`: был неверно аннотирован тип элементов списка `data.acl`. |
|
|
||||||
| BPYS-357 | Функция `cloudapi.k8s.list_deleted`: был неверно аннотирован тип элементов списка `data.acl`. |
|
|
||||||
| BPYS-551 | Функция `cloudapi.lb.create`: при передаче корректного значения в параметр `sysctl_params` выполнение функции завершалось ошибкой валидации типа параметра. |
|
|
||||||
| BPYS-602 | Функция `cloudapi.compute.list`: выполнение функции завершалось ошибкой валидации при наличии элементов в списке `CloudapiComputeListResultModel.data.vgpus`. |
|
|
||||||
| BPYS-649 | Функция `cloudapi.account.update`: отсутствовало значение по умолчанию у параметра `send_access_emails`. |
|
|
||||||
| BPYS-654 | Функция `cloudapi.image.get`: отсутствовало значение `unknown` в перечисляемом типе `ImageType` у атрибута `CloudapiImageGetResultModel.type`, что приводило к ошибке валидации. |
|
|
||||||
| BPYS-654 | Функция `cloudapi.image.list`: отсутствовало значение `unknown` в перечисляемом типе `ImageType` у параметра `type` и атрибута `CloudapiImageListResultModel.data.type`, что приводило к ошибке валидации. |
|
|
||||||
| BPYS-654 | Функция `cloudapi.image.get`: было лишнее значение `other` в перечисляемом типе `ImageType` у атрибута `CloudapiImageGetResultModel.type`, что приводило к ошибке валидации. |
|
|
||||||
| BPYS-654 | Функция `cloudapi.image.list`: было лишнее значение `other` в перечисляемом типе `ImageType` у параметра `type` и атрибута `CloudapiImageListResultModel.data.type`, что приводило к ошибке валидации. |
|
|
||||||
| BPYS-670 | Функция `cloudapi.bservice.group_get`: вызов функции завершался ошибкой валидации поля `computes.0.chipset`. |
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
dev:
|
|
||||||
pip install -e .
|
|
||||||
pip install -r requirements-dev.txt
|
|
||||||
pre-commit install
|
|
||||||
+11
-5
@@ -5,16 +5,22 @@ authors = [
|
|||||||
{name = "Vladislav Nesterov"},
|
{name = "Vladislav Nesterov"},
|
||||||
{name = "Stanislav Karimov"},
|
{name = "Stanislav Karimov"},
|
||||||
]
|
]
|
||||||
version = "1.3.0"
|
version = "2.1.4"
|
||||||
|
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
|
||||||
requires-python = ">=3.12"
|
requires-python = ">=3.12, <3.15"
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"requests>=2.32.3",
|
"requests==2.34.2",
|
||||||
"pydantic==2.10.5",
|
"pydantic==2.13.5",
|
||||||
"pyyaml>=6.0.2",
|
"pyyaml==6.0.3",
|
||||||
|
]
|
||||||
|
|
||||||
|
[dependency-groups]
|
||||||
|
dev = [
|
||||||
|
"pre-commit==4.6.2",
|
||||||
|
"pytest==9.1.1",
|
||||||
]
|
]
|
||||||
|
|
||||||
[project.urls]
|
[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
|
cloudapi: CloudapiAPI
|
||||||
cloudbroker: CloudbrokerAPI
|
cloudbroker: CloudbrokerAPI
|
||||||
system: SystemAPI
|
system: SystemAPI
|
||||||
|
|
||||||
|
@property
|
||||||
|
def ca(self):
|
||||||
|
return self.cloudapi
|
||||||
|
|
||||||
|
@property
|
||||||
|
def cb(self):
|
||||||
|
return self.cloudbroker
|
||||||
|
|
||||||
|
@property
|
||||||
|
def sys(self):
|
||||||
|
return self.system
|
||||||
@@ -13,6 +13,16 @@ class AccessType(str, _AutoNameEnum):
|
|||||||
R = _enum_auto()
|
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):
|
class AffinityMode(str, _AutoNameEnum):
|
||||||
ANY = _enum_auto()
|
ANY = _enum_auto()
|
||||||
EQ = _enum_auto()
|
EQ = _enum_auto()
|
||||||
@@ -25,19 +35,38 @@ class AffinityPolicy(str, _AutoNameEnum):
|
|||||||
|
|
||||||
|
|
||||||
class AffinityTopology(str, _AutoNameEnum):
|
class AffinityTopology(str, _AutoNameEnum):
|
||||||
vm = 'compute'
|
VM = 'compute'
|
||||||
node = _enum_auto()
|
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):
|
class BootDevice(str, _AutoNameEnum):
|
||||||
cdrom = _enum_auto()
|
CDROM = 'cdrom'
|
||||||
hd = _enum_auto()
|
HD = 'hd'
|
||||||
network = _enum_auto()
|
NETWORK = 'network'
|
||||||
|
|
||||||
|
|
||||||
class Chipset(str, _AutoNameEnum):
|
class Chipset(str, _AutoNameEnum):
|
||||||
Q35 = _enum_auto()
|
Q35 = _enum_auto()
|
||||||
i440fx = _enum_auto()
|
I440FX = 'i440fx'
|
||||||
|
|
||||||
|
|
||||||
class Driver(str, _AutoNameEnum):
|
class Driver(str, _AutoNameEnum):
|
||||||
@@ -61,27 +90,27 @@ class NetTypeForChangeIP(str, _AutoNameEnum):
|
|||||||
|
|
||||||
|
|
||||||
class NumaAffinity(str, _AutoNameEnum):
|
class NumaAffinity(str, _AutoNameEnum):
|
||||||
none = _enum_auto()
|
NONE = 'none'
|
||||||
strict = _enum_auto()
|
STRICT = 'strict'
|
||||||
loose = _enum_auto()
|
LOOSE = 'loose'
|
||||||
|
|
||||||
|
|
||||||
class TXMode(str, _AutoNameEnum):
|
class TXMode(str, _AutoNameEnum):
|
||||||
iothread = _enum_auto()
|
IOTHREAD = 'iothread'
|
||||||
selected_by_hypervisor = 'selected by hypervisor'
|
SELECTED_BY_HYPERVISOR = 'selected by hypervisor'
|
||||||
timer = _enum_auto()
|
TIMER = 'timer'
|
||||||
|
|
||||||
|
|
||||||
class Ioeventfd(str, _AutoNameEnum):
|
class Ioeventfd(str, _AutoNameEnum):
|
||||||
off = _enum_auto()
|
OFF = 'off'
|
||||||
on = _enum_auto()
|
ON = 'on'
|
||||||
selected_by_hypervisor = 'selected by hypervisor'
|
SELECTED_BY_HYPERVISOR = 'selected by hypervisor'
|
||||||
|
|
||||||
|
|
||||||
class EventIdx(str, _AutoNameEnum):
|
class EventIdx(str, _AutoNameEnum):
|
||||||
off = _enum_auto()
|
OFF = 'off'
|
||||||
on = _enum_auto()
|
ON = 'on'
|
||||||
selected_by_hypervisor = 'selected by hypervisor'
|
SELECTED_BY_HYPERVISOR = 'selected by hypervisor'
|
||||||
|
|
||||||
|
|
||||||
class ResourceGroupStatus(str, _AutoNameEnum):
|
class ResourceGroupStatus(str, _AutoNameEnum):
|
||||||
@@ -102,14 +131,30 @@ class LockStatus(str, _AutoNameEnum):
|
|||||||
UNLOCKED = _enum_auto()
|
UNLOCKED = _enum_auto()
|
||||||
|
|
||||||
|
|
||||||
|
class MemoryBalloonMode(str, _AutoNameEnum):
|
||||||
|
AUTO = 'auto'
|
||||||
|
LEGACY = 'legacy'
|
||||||
|
NONE = 'none'
|
||||||
|
|
||||||
|
|
||||||
class VMFeature(str, _AutoNameEnum):
|
class VMFeature(str, _AutoNameEnum):
|
||||||
changemac = _enum_auto()
|
CHANGEMAC = 'changemac'
|
||||||
cpupin = _enum_auto()
|
CPUPIN = 'cpupin'
|
||||||
dpdk = _enum_auto()
|
DPDK = 'dpdk'
|
||||||
hugepages = _enum_auto()
|
HUGEPAGES = 'hugepages'
|
||||||
numa = _enum_auto()
|
NUMA = 'numa'
|
||||||
trunk = _enum_auto()
|
PCIDEVICE = 'pcidevice'
|
||||||
vfnic = _enum_auto()
|
TRUNK = 'trunk'
|
||||||
|
VGPU = 'vgpu'
|
||||||
|
VFNIC = 'vfnic'
|
||||||
|
|
||||||
|
|
||||||
|
class WatchdogAction(str, _AutoNameEnum):
|
||||||
|
RESET = 'reset'
|
||||||
|
SHUTDOWN = 'shutdown'
|
||||||
|
POWEROFF = 'poweroff'
|
||||||
|
PAUSE = 'pause'
|
||||||
|
NONE = 'none'
|
||||||
|
|
||||||
|
|
||||||
class RGDefaultNetTypeForSet(str, _AutoNameEnum):
|
class RGDefaultNetTypeForSet(str, _AutoNameEnum):
|
||||||
@@ -124,10 +169,10 @@ class RGDefaultNetType(str, _AutoNameEnum):
|
|||||||
|
|
||||||
|
|
||||||
class RGResourceType(str, _AutoNameEnum):
|
class RGResourceType(str, _AutoNameEnum):
|
||||||
vm = 'compute'
|
VM = 'compute'
|
||||||
k8s = _enum_auto()
|
K8S = 'k8s'
|
||||||
lb = _enum_auto()
|
LB = 'lb'
|
||||||
vins = _enum_auto()
|
VINS = 'vins'
|
||||||
|
|
||||||
|
|
||||||
class DiskStatus(str, _AutoNameEnum):
|
class DiskStatus(str, _AutoNameEnum):
|
||||||
@@ -184,11 +229,6 @@ class VMTechStatus(str, _AutoNameEnum):
|
|||||||
STOPPING = _enum_auto()
|
STOPPING = _enum_auto()
|
||||||
|
|
||||||
|
|
||||||
class DiskType(str, _AutoNameEnum):
|
|
||||||
B = _enum_auto()
|
|
||||||
D = _enum_auto()
|
|
||||||
|
|
||||||
|
|
||||||
class AccountStatus(str, _AutoNameEnum):
|
class AccountStatus(str, _AutoNameEnum):
|
||||||
CONFIRMED = _enum_auto()
|
CONFIRMED = _enum_auto()
|
||||||
DISABLED = _enum_auto()
|
DISABLED = _enum_auto()
|
||||||
@@ -198,11 +238,11 @@ class AccountStatus(str, _AutoNameEnum):
|
|||||||
|
|
||||||
|
|
||||||
class AccountResourceType(str, _AutoNameEnum):
|
class AccountResourceType(str, _AutoNameEnum):
|
||||||
vm = 'compute'
|
VM = 'compute'
|
||||||
k8s = _enum_auto()
|
K8S = 'k8s'
|
||||||
lb = _enum_auto()
|
LB = 'lb'
|
||||||
vins = _enum_auto()
|
VINS = 'vins'
|
||||||
flipgroup = _enum_auto()
|
FLIPGROUP = 'flipgroup'
|
||||||
|
|
||||||
|
|
||||||
class ImageTechStatus(str, _AutoNameEnum):
|
class ImageTechStatus(str, _AutoNameEnum):
|
||||||
@@ -219,16 +259,18 @@ class ImageStatus(str, _AutoNameEnum):
|
|||||||
|
|
||||||
|
|
||||||
class ImageType(str, _AutoNameEnum):
|
class ImageType(str, _AutoNameEnum):
|
||||||
cdrom = _enum_auto()
|
CDROM = 'cdrom'
|
||||||
linux = _enum_auto()
|
LINUX = 'linux'
|
||||||
unknown = _enum_auto()
|
MULTI = 'multi'
|
||||||
virtual = _enum_auto()
|
UNKNOWN = 'unknown'
|
||||||
windows = _enum_auto()
|
VIRTUAL = 'virtual'
|
||||||
|
WINDOWS = 'windows'
|
||||||
|
MEMORY_DUMP = 'memorydump'
|
||||||
|
|
||||||
|
|
||||||
class NetIfaceNamingTemplate(str, _AutoNameEnum):
|
class NetIfaceNamingTemplate(str, _AutoNameEnum):
|
||||||
ens = _enum_auto()
|
ENS = 'ens'
|
||||||
eth = _enum_auto()
|
ETH = 'eth'
|
||||||
|
|
||||||
|
|
||||||
class VINSStatus(str, _AutoNameEnum):
|
class VINSStatus(str, _AutoNameEnum):
|
||||||
@@ -290,17 +332,17 @@ class VINSInterfaceType(str, _AutoNameEnum):
|
|||||||
|
|
||||||
|
|
||||||
class NATRuleProtocol(str, _AutoNameEnum):
|
class NATRuleProtocol(str, _AutoNameEnum):
|
||||||
tcp = _enum_auto()
|
TCP = 'tcp'
|
||||||
udp = _enum_auto()
|
UDP = 'udp'
|
||||||
|
|
||||||
|
|
||||||
class VNFDevType(str, _AutoNameEnum):
|
class VNFDevType(str, _AutoNameEnum):
|
||||||
vyos = _enum_auto()
|
VYOS = 'vyos'
|
||||||
|
|
||||||
|
|
||||||
class BootMode(str, _AutoNameEnum):
|
class BootMode(str, _AutoNameEnum):
|
||||||
bios = _enum_auto()
|
BIOS = 'bios'
|
||||||
uefi = _enum_auto()
|
UEFI = 'uefi'
|
||||||
|
|
||||||
|
|
||||||
class BServiceStatus(str, _AutoNameEnum):
|
class BServiceStatus(str, _AutoNameEnum):
|
||||||
@@ -358,6 +400,18 @@ class SEPType(str, _AutoNameEnum):
|
|||||||
TATLIN = _enum_auto()
|
TATLIN = _enum_auto()
|
||||||
DORADO = _enum_auto()
|
DORADO = _enum_auto()
|
||||||
SHARED = _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):
|
class ExtNetStatus(str, _AutoNameEnum):
|
||||||
@@ -372,9 +426,9 @@ class ExtNetStatus(str, _AutoNameEnum):
|
|||||||
|
|
||||||
|
|
||||||
class BootLoaderType(str, _AutoNameEnum):
|
class BootLoaderType(str, _AutoNameEnum):
|
||||||
linux = _enum_auto()
|
LINUX = 'linux'
|
||||||
unknown = _enum_auto()
|
UNKNOWN = 'unknown'
|
||||||
windows = _enum_auto()
|
WINDOWS = 'windows'
|
||||||
|
|
||||||
|
|
||||||
class FlipGroupClientType(str, _AutoNameEnum):
|
class FlipGroupClientType(str, _AutoNameEnum):
|
||||||
@@ -392,11 +446,16 @@ class FlipGroupNetType(str, _AutoNameEnum):
|
|||||||
|
|
||||||
|
|
||||||
class PoolDiskType(str, _AutoNameEnum):
|
class PoolDiskType(str, _AutoNameEnum):
|
||||||
B = _enum_auto()
|
BOOT = 'B'
|
||||||
D = _enum_auto()
|
DATA = 'D'
|
||||||
ANY = _enum_auto()
|
ANY = _enum_auto()
|
||||||
|
|
||||||
|
|
||||||
|
class TatlinPoolType(str, _AutoNameEnum):
|
||||||
|
DIRECT = 'direct'
|
||||||
|
INDIRECT = 'indirect'
|
||||||
|
|
||||||
|
|
||||||
class CountChangeMode(str, _AutoNameEnum):
|
class CountChangeMode(str, _AutoNameEnum):
|
||||||
ABSOLUTE = _enum_auto()
|
ABSOLUTE = _enum_auto()
|
||||||
RELATIVE = _enum_auto()
|
RELATIVE = _enum_auto()
|
||||||
@@ -447,16 +506,6 @@ class DataDisksChangeMode(str, _AutoNameEnum):
|
|||||||
KEEP = _enum_auto()
|
KEEP = _enum_auto()
|
||||||
|
|
||||||
|
|
||||||
class PhysicalNodeStatus(str, _AutoNameEnum):
|
|
||||||
DECOMMISSIONED = _enum_auto()
|
|
||||||
DECOMMISSIONING = _enum_auto()
|
|
||||||
ENABLED = _enum_auto()
|
|
||||||
ERROR = _enum_auto()
|
|
||||||
INSTALLING = _enum_auto()
|
|
||||||
MAINTENANCE = _enum_auto()
|
|
||||||
RESTRICTED = _enum_auto()
|
|
||||||
|
|
||||||
|
|
||||||
class AuthBroker(str, _AutoNameEnum):
|
class AuthBroker(str, _AutoNameEnum):
|
||||||
DECS3O = 'decs3o'
|
DECS3O = 'decs3o'
|
||||||
BVS = 'bvs'
|
BVS = 'bvs'
|
||||||
@@ -484,6 +533,13 @@ class K8sNetworkPlugin(str, _AutoNameEnum):
|
|||||||
WEAVENET = 'weavenet'
|
WEAVENET = 'weavenet'
|
||||||
|
|
||||||
|
|
||||||
|
class NetworkMode(str, _AutoNameEnum):
|
||||||
|
OVS = 'ovs'
|
||||||
|
BRIDGE = 'bridge'
|
||||||
|
DPDK = 'dpdk'
|
||||||
|
SDN = 'sdn'
|
||||||
|
|
||||||
|
|
||||||
class K8CIStatus(str, _AutoNameEnum):
|
class K8CIStatus(str, _AutoNameEnum):
|
||||||
CREATED = _enum_auto()
|
CREATED = _enum_auto()
|
||||||
DELETED = _enum_auto()
|
DELETED = _enum_auto()
|
||||||
@@ -530,8 +586,8 @@ class VFPoolStatus(str, _AutoNameEnum):
|
|||||||
|
|
||||||
|
|
||||||
class LinkState(str, _AutoNameEnum):
|
class LinkState(str, _AutoNameEnum):
|
||||||
on = _enum_auto()
|
ON = 'on'
|
||||||
off = _enum_auto()
|
OFF = 'off'
|
||||||
|
|
||||||
|
|
||||||
class ZoneStatus(str, _AutoNameEnum):
|
class ZoneStatus(str, _AutoNameEnum):
|
||||||
@@ -539,6 +595,20 @@ class ZoneStatus(str, _AutoNameEnum):
|
|||||||
DESTROYED = _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):
|
class TrafficDirection(str, _AutoNameEnum):
|
||||||
INBOUND = 'inbound'
|
INBOUND = 'inbound'
|
||||||
OUTBOUND = 'outbound'
|
OUTBOUND = 'outbound'
|
||||||
@@ -566,10 +636,38 @@ class TrunkStatus(str, _AutoNameEnum):
|
|||||||
|
|
||||||
|
|
||||||
class StoragePolicyStatus(str, _AutoNameEnum):
|
class StoragePolicyStatus(str, _AutoNameEnum):
|
||||||
|
DESTROYED = _enum_auto()
|
||||||
DISABLED = _enum_auto()
|
DISABLED = _enum_auto()
|
||||||
ENABLED = _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):
|
class JobStatus(str, _AutoNameEnum):
|
||||||
ABORTED = _enum_auto()
|
ABORTED = _enum_auto()
|
||||||
CLEANUPED = _enum_auto()
|
CLEANUPED = _enum_auto()
|
||||||
@@ -589,13 +687,7 @@ class PGPUMode(str, _AutoNameEnum):
|
|||||||
|
|
||||||
|
|
||||||
class VGPUStatus(str, _AutoNameEnum):
|
class VGPUStatus(str, _AutoNameEnum):
|
||||||
ALLOCATED = _enum_auto()
|
|
||||||
ALLOCATING = _enum_auto()
|
|
||||||
CLAIMED = _enum_auto()
|
|
||||||
CLAIMING = _enum_auto()
|
|
||||||
CREATED = _enum_auto()
|
CREATED = _enum_auto()
|
||||||
DEALLOCATED = _enum_auto()
|
|
||||||
DEALLOCATING = _enum_auto()
|
|
||||||
DESTROYED = _enum_auto()
|
DESTROYED = _enum_auto()
|
||||||
ERROR = _enum_auto()
|
ERROR = _enum_auto()
|
||||||
|
|
||||||
@@ -618,3 +710,75 @@ class PCIDeviceStatus(str, _AutoNameEnum):
|
|||||||
DISABLED = _enum_auto()
|
DISABLED = _enum_auto()
|
||||||
ENABLED = _enum_auto()
|
ENABLED = _enum_auto()
|
||||||
ERROR = _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
|
import dynamix_sdk.base as _base
|
||||||
from . import enums as _enums
|
from . import enums as _enums
|
||||||
|
|
||||||
@@ -11,27 +13,78 @@ class DiskAPIParamsNM(_base.BaseAPIParamsNestedModel):
|
|||||||
image_id: None | int = None
|
image_id: None | int = None
|
||||||
sep_id: None | int = None
|
sep_id: None | int = None
|
||||||
sep_pool_name: None | str = None
|
sep_pool_name: None | str = None
|
||||||
|
read_only: bool = False
|
||||||
|
|
||||||
|
|
||||||
class InterfaceAPIParamsNM(_base.BaseAPIParamsNestedModel):
|
class InterfaceAPIParamsNM(_base.BaseAPIParamsNestedModel):
|
||||||
enabled: bool = True
|
enabled: bool = True
|
||||||
net_id: int
|
net_id: int
|
||||||
|
net_prefix: None | int = None
|
||||||
net_type: _enums.NetType
|
net_type: _enums.NetType
|
||||||
sdn_logical_port_id: str
|
sdn_logical_port_id: None | str = None
|
||||||
security_group_ids: None | list[int] = None
|
security_group_ids: None | list[int] = None
|
||||||
security_group_mode: bool = False
|
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
|
ip_addr: None | str = None
|
||||||
mac: None | str = None
|
mac: None | str = None
|
||||||
mtu: None | int = 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):
|
class RouteAPIParamsNM(_base.BaseAPIParamsNestedModel):
|
||||||
dst_net_ip: str
|
dst_net_ip: str
|
||||||
dst_net_mask: str
|
dst_net_mask: str
|
||||||
gateway: str
|
gateway: str
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerVinsCreateRouteAPIParamsNM(
|
||||||
|
_base.BaseAPIParamsNestedModel,
|
||||||
|
):
|
||||||
|
destination: str
|
||||||
|
netmask: str
|
||||||
|
gateway: str
|
||||||
|
|
||||||
|
|
||||||
class StoragePolicyQuotasAPIParamsNM(_base.BaseAPIParamsNestedModel):
|
class StoragePolicyQuotasAPIParamsNM(_base.BaseAPIParamsNestedModel):
|
||||||
id: int
|
id: int
|
||||||
storage_size_gb: int
|
storage_size_gb: int
|
||||||
@@ -53,3 +106,15 @@ class NetMapConfigAPIParamsNM(_base.BaseAPIParamsNestedModel):
|
|||||||
target_dev: str
|
target_dev: str
|
||||||
source_type: _enums.NetMapSourceType
|
source_type: _enums.NetMapSourceType
|
||||||
source_value: str
|
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
|
||||||
+1444
-255
File diff suppressed because it is too large.
Load diff
@@ -13,11 +13,11 @@ from .k8s import *
|
|||||||
from .kvmx86 import *
|
from .kvmx86 import *
|
||||||
from .lb import *
|
from .lb import *
|
||||||
from .locations import *
|
from .locations import *
|
||||||
|
from .network_qos_policy import *
|
||||||
from .pcidevice import *
|
from .pcidevice import *
|
||||||
from .rg import *
|
from .rg import *
|
||||||
from .security_group import *
|
from .security_group import *
|
||||||
from .sep import *
|
from .sep import *
|
||||||
from .stack import *
|
|
||||||
from .storage_policy import *
|
from .storage_policy import *
|
||||||
from .tasks import *
|
from .tasks import *
|
||||||
from .trunk import *
|
from .trunk import *
|
||||||
@@ -25,6 +25,7 @@ from .user import *
|
|||||||
from .vfpool import *
|
from .vfpool import *
|
||||||
from .vgpu import *
|
from .vgpu import *
|
||||||
from .vins import *
|
from .vins import *
|
||||||
|
from .vmfolder import *
|
||||||
from .zone import *
|
from .zone import *
|
||||||
|
|
||||||
|
|
||||||
@@ -43,11 +44,11 @@ class CloudapiAPI(_base.BaseAPI):
|
|||||||
kvmx86: CloudapiKvmx86API
|
kvmx86: CloudapiKvmx86API
|
||||||
lb: CloudapiLbAPI
|
lb: CloudapiLbAPI
|
||||||
locations: CloudapiLocationsAPI
|
locations: CloudapiLocationsAPI
|
||||||
|
network_qos_policy: CloudapiNetworkQosPolicyAPI
|
||||||
pcidevice: CloudapiPcideviceAPI
|
pcidevice: CloudapiPcideviceAPI
|
||||||
rg: CloudapiRgAPI
|
rg: CloudapiRgAPI
|
||||||
security_group: CloudapiSecurityGroupAPI
|
security_group: CloudapiSecurityGroupAPI
|
||||||
sep: CloudapiSepAPI
|
sep: CloudapiSepAPI
|
||||||
stack: CloudapiStackAPI
|
|
||||||
storage_policy: CloudapiStoragePolicyAPI
|
storage_policy: CloudapiStoragePolicyAPI
|
||||||
tasks: CloudapiTasksAPI
|
tasks: CloudapiTasksAPI
|
||||||
trunk: CloudapiTrunkAPI
|
trunk: CloudapiTrunkAPI
|
||||||
@@ -55,4 +56,5 @@ class CloudapiAPI(_base.BaseAPI):
|
|||||||
vfpool: CloudapiVfpoolAPI
|
vfpool: CloudapiVfpoolAPI
|
||||||
vgpu: CloudapiVgpuAPI
|
vgpu: CloudapiVgpuAPI
|
||||||
vins: CloudapiVinsAPI
|
vins: CloudapiVinsAPI
|
||||||
|
vmfolder: CloudapiVmfolderAPI
|
||||||
zone: CloudapiZoneAPI
|
zone: CloudapiZoneAPI
|
||||||
@@ -1,31 +1,30 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
from .add_acl_access import *
|
||||||
from .add_user import *
|
from .add_user import *
|
||||||
from .delete import *
|
from .del_acl_access import *
|
||||||
from .delete_user import *
|
from .delete_user import *
|
||||||
from .disable import *
|
|
||||||
from .enable import *
|
|
||||||
from .get import *
|
from .get import *
|
||||||
from .get_resource_consumption import *
|
from .get_resource_consumption import *
|
||||||
from .list import *
|
from .list import *
|
||||||
from .list_deleted import *
|
from .list_deleted import *
|
||||||
from .restore import *
|
from .restore import *
|
||||||
from .update import *
|
from .update import *
|
||||||
|
from .update_acl_access import *
|
||||||
from .update_user import *
|
from .update_user import *
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAccountAPI(
|
class CloudapiAccountAPI(
|
||||||
_base.BaseAPI,
|
_base.BaseAPI,
|
||||||
CloudapiAccountAddUserProtocol,
|
|
||||||
CloudapiAccountDeleteProtocol,
|
|
||||||
CloudapiAccountDeleteUserProtocol,
|
|
||||||
CloudapiAccountDisableProtocol,
|
|
||||||
CloudapiAccountEnableProtocol,
|
|
||||||
CloudapiAccountGetProtocol,
|
|
||||||
CloudapiAccountGetResourceConsumptionProtocol,
|
|
||||||
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
|
import dynamix_sdk.api._nested as _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAccountAddUserResultBool(_base.BaseAPIResultBool):
|
class CloudapiAccountAddUserImpl(_base.APIFunctionImpl):
|
||||||
pass
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
class CloudapiAccountAddUserProtocol(_base.BasePostAPIFunctionProtocol):
|
|
||||||
def add_user(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
account_id: int,
|
account_id: int,
|
||||||
access_type: _nested.AccessTypeForSet,
|
access_type: _nested.AccessTypeForSet,
|
||||||
user_name: str,
|
user_name: str,
|
||||||
) -> CloudapiAccountAddUserResultBool:
|
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 CloudapiAccountDeleteResultStr(_base.BaseAPIResultStr):
|
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAccountDeleteProtocol(_base.BasePostAPIFunctionProtocol):
|
|
||||||
def delete(
|
|
||||||
self,
|
|
||||||
*,
|
|
||||||
account_id: int,
|
|
||||||
permanently: bool = False,
|
|
||||||
) -> CloudapiAccountDeleteResultStr:
|
|
||||||
...
|
|
||||||
@@ -1,15 +1,14 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAccountDeleteUserResultBool(_base.BaseAPIResultBool):
|
class CloudapiAccountDeleteUserImpl(_base.APIFunctionImpl):
|
||||||
pass
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
class CloudapiAccountDeleteUserProtocol(_base.BasePostAPIFunctionProtocol):
|
|
||||||
def delete_user(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
account_id: int,
|
account_id: int,
|
||||||
user_name: str,
|
user_name: str,
|
||||||
) -> CloudapiAccountDeleteUserResultBool:
|
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,7 +2,7 @@ import dynamix_sdk.base as _base
|
|||||||
import dynamix_sdk.api._nested as _nested
|
import dynamix_sdk.api._nested as _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAccountGetResultModel(_base.BaseAPIResultModel):
|
class CloudapiAccountGetResultModel(_base.ResultModel):
|
||||||
acc_lvl_vins_ids: list[int]
|
acc_lvl_vins_ids: list[int]
|
||||||
acl: list[_nested.AccessAPIResultNM]
|
acl: list[_nested.AccessAPIResultNM]
|
||||||
company_url: str
|
company_url: str
|
||||||
@@ -26,7 +26,8 @@ class CloudapiAccountGetResultModel(_base.BaseAPIResultModel):
|
|||||||
send_access_emails: bool
|
send_access_emails: bool
|
||||||
status: _nested.AccountStatus
|
status: _nested.AccountStatus
|
||||||
storage_policy_ids: list[int]
|
storage_policy_ids: list[int]
|
||||||
uniq_pools: list[str]
|
sep_pools: list[str]
|
||||||
|
updated_by: str
|
||||||
updated_timestamp: int
|
updated_timestamp: int
|
||||||
version: int
|
version: int
|
||||||
vins_count: int
|
vins_count: int
|
||||||
@@ -34,27 +35,29 @@ class CloudapiAccountGetResultModel(_base.BaseAPIResultModel):
|
|||||||
vm_features: list[_nested.VMFeature]
|
vm_features: list[_nested.VMFeature]
|
||||||
zones: list[_nested.ZoneAPIResultNM]
|
zones: list[_nested.ZoneAPIResultNM]
|
||||||
|
|
||||||
@property
|
@_base.computed_field
|
||||||
def created_datetime(self):
|
def created_datetime(self) -> _base.datetime | None:
|
||||||
return self._get_datetime_from_timestamp(self.created_timestamp)
|
return self._get_datetime_from_timestamp(self.created_timestamp)
|
||||||
|
|
||||||
@property
|
@_base.computed_field
|
||||||
def deactivation_datetime(self):
|
def deactivation_datetime(self) -> _base.datetime | None:
|
||||||
return self._get_datetime_from_timestamp(self.deactivation_timestamp)
|
return self._get_datetime_from_timestamp(self.deactivation_timestamp)
|
||||||
|
|
||||||
@property
|
@_base.computed_field
|
||||||
def deleted_datetime(self):
|
def deleted_datetime(self) -> _base.datetime | None:
|
||||||
return self._get_datetime_from_timestamp(self.deleted_timestamp)
|
return self._get_datetime_from_timestamp(self.deleted_timestamp)
|
||||||
|
|
||||||
@property
|
@_base.computed_field
|
||||||
def updated_datetime(self):
|
def updated_datetime(self) -> _base.datetime | None:
|
||||||
return self._get_datetime_from_timestamp(self.updated_timestamp)
|
return self._get_datetime_from_timestamp(self.updated_timestamp)
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAccountGetProtocol(_base.BasePostAPIFunctionProtocol):
|
class CloudapiAccountGetImpl(_base.APIFunctionImpl):
|
||||||
def get(
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
account_id: int,
|
account_id: int,
|
||||||
) -> CloudapiAccountGetResultModel:
|
) -> CloudapiAccountGetResultModel:
|
||||||
...
|
raise NotImplementedError
|
||||||
@@ -3,7 +3,7 @@ import dynamix_sdk.api._nested as _nested
|
|||||||
|
|
||||||
|
|
||||||
class CloudapiAccountGetResourceConsumptionResultModel(
|
class CloudapiAccountGetResourceConsumptionResultModel(
|
||||||
_base.BaseAPIResultModel,
|
_base.ResultModel,
|
||||||
):
|
):
|
||||||
id: int
|
id: int
|
||||||
consumed: _nested.ResourceCountersAPIResultNM
|
consumed: _nested.ResourceCountersAPIResultNM
|
||||||
@@ -11,11 +11,14 @@ class CloudapiAccountGetResourceConsumptionResultModel(
|
|||||||
quotas: _nested.TenantQuotasForResourceConsumptionAPIResultNM
|
quotas: _nested.TenantQuotasForResourceConsumptionAPIResultNM
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAccountGetResourceConsumptionProtocol(
|
class CloudapiAccountGetResourceConsumptionImpl(
|
||||||
_base.BasePostAPIFunctionProtocol,
|
_base.APIFunctionImpl,
|
||||||
):
|
):
|
||||||
def get_resource_consumption(
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
account_id: int,
|
account_id: int,
|
||||||
) -> CloudapiAccountGetResourceConsumptionResultModel: ...
|
) -> CloudapiAccountGetResourceConsumptionResultModel:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -2,22 +2,24 @@ import dynamix_sdk.base as _base
|
|||||||
import dynamix_sdk.api._nested as _nested
|
import dynamix_sdk.api._nested as _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAccountListResultModel(_base.BaseAPIResultModel):
|
class CloudapiAccountListResultModel(_base.ResultModel):
|
||||||
data: list[_nested.AccountForCAAPIResultNM]
|
data: list[_nested.AccountForCAAPIResultNM]
|
||||||
entry_count: int
|
entry_count: int
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAccountListProtocol(_base.BasePostAPIFunctionProtocol):
|
class CloudapiAccountListImpl(_base.APIFunctionImpl):
|
||||||
def list(
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
access_type: None | _nested.AccessType = None,
|
access_type: None | _nested.AccessType = None,
|
||||||
id: None | int = None,
|
id: None | int = None,
|
||||||
name: None | str = None,
|
name: None | str = None,
|
||||||
zone_id: None | int = None,
|
zone_id: None | int = None,
|
||||||
page_number: None | int = None,
|
page_number: int = 1,
|
||||||
page_size: None | int = None,
|
page_size: int = 100,
|
||||||
sort_by: None | str = None,
|
sort_by: None | str = None,
|
||||||
status: None | _nested.AccountStatus = None,
|
status: None | _nested.AccountStatus = None,
|
||||||
) -> CloudapiAccountListResultModel:
|
) -> CloudapiAccountListResultModel:
|
||||||
...
|
raise NotImplementedError
|
||||||
@@ -2,20 +2,22 @@ import dynamix_sdk.base as _base
|
|||||||
import dynamix_sdk.api._nested as _nested
|
import dynamix_sdk.api._nested as _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAccountListDeletedResultModel(_base.BaseAPIResultModel):
|
class CloudapiAccountListDeletedResultModel(_base.ResultModel):
|
||||||
data: list[_nested.AccountForCAAPIResultNM]
|
data: list[_nested.AccountForCAAPIResultNM]
|
||||||
entry_count: int
|
entry_count: int
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAccountListDeletedProtocol(_base.BasePostAPIFunctionProtocol):
|
class CloudapiAccountListDeletedImpl(_base.APIFunctionImpl):
|
||||||
def list_deleted(
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
access_type: None | _nested.AccessType = None,
|
access_type: None | _nested.AccessType = None,
|
||||||
id: None | int = None,
|
id: None | int = None,
|
||||||
name: None | str = None,
|
name: None | str = None,
|
||||||
page_number: None | int = None,
|
page_number: int = 1,
|
||||||
page_size: None | int = None,
|
page_size: int = 100,
|
||||||
sort_by: None | str = None,
|
sort_by: None | str = None,
|
||||||
) -> CloudapiAccountListDeletedResultModel:
|
) -> CloudapiAccountListDeletedResultModel:
|
||||||
...
|
raise NotImplementedError
|
||||||
@@ -1,14 +1,13 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAccountRestoreResultStr(_base.BaseAPIResultStr):
|
class CloudapiAccountRestoreImpl(_base.APIFunctionImpl):
|
||||||
pass
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
class CloudapiAccountRestoreProtocol(_base.BasePostAPIFunctionProtocol):
|
|
||||||
def restore(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
account_id: int,
|
account_id: int,
|
||||||
) -> CloudapiAccountRestoreResultStr:
|
async_mode: bool = True,
|
||||||
...
|
) -> str:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -1,25 +1,23 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAccountUpdateResultBool(_base.BaseAPIResultBool):
|
class CloudapiAccountUpdateImpl(_base.APIFunctionImpl):
|
||||||
pass
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
class CloudapiAccountUpdateProtocol(_base.BasePostAPIFunctionProtocol):
|
|
||||||
def update(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
account_id: int,
|
account_id: int,
|
||||||
cpu_count_quota: None | int = None,
|
cpu_count_quota: None | int = None,
|
||||||
ext_traffic_quota: None | int = None,
|
|
||||||
gpu_count_quota: None | int = None,
|
gpu_count_quota: None | int = None,
|
||||||
name: None | str = None,
|
name: None | str = None,
|
||||||
ext_ip_count_quota: None | int = None,
|
ext_ip_count_quota: None | int = None,
|
||||||
ram_size_quota_mb: None | int = None,
|
ram_size_quota_mb: None | int = None,
|
||||||
send_access_emails: bool = False,
|
send_access_emails: bool | None = None,
|
||||||
storage_size_quota_gb: None | int = None,
|
storage_size_quota_gb: None | int = None,
|
||||||
uniq_pools: None | list[str] = None,
|
sep_pools: None | list[str] = None,
|
||||||
description: str | None = None,
|
description: str | None = None,
|
||||||
default_zone_id: int | None = None,
|
default_zone_id: int | None = None,
|
||||||
) -> CloudapiAccountUpdateResultBool:
|
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
|
import dynamix_sdk.api._nested as _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAccountUpdateUserResultBool(_base.BaseAPIResultBool):
|
class CloudapiAccountUpdateUserImpl(_base.APIFunctionImpl):
|
||||||
pass
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
class CloudapiAccountUpdateUserProtocol(_base.BasePostAPIFunctionProtocol):
|
|
||||||
def update_user(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
account_id: int,
|
account_id: int,
|
||||||
access_type: _nested.AccessTypeForSet,
|
access_type: _nested.AccessTypeForSet,
|
||||||
user_name: str,
|
user_name: str,
|
||||||
) -> CloudapiAccountUpdateUserResultBool:
|
async_mode: bool = False,
|
||||||
...
|
) -> bool | str:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -5,7 +5,6 @@ from .list import *
|
|||||||
|
|
||||||
class CloudapiAuditAPI(
|
class CloudapiAuditAPI(
|
||||||
_base.BaseAPI,
|
_base.BaseAPI,
|
||||||
CloudapiAuditGetProtocol,
|
|
||||||
CloudapiAuditListProtocol,
|
|
||||||
):
|
):
|
||||||
pass
|
list: CloudapiAuditListImpl
|
||||||
|
get: CloudapiAuditGetImpl
|
||||||
@@ -3,16 +3,17 @@ import dynamix_sdk.base as _base
|
|||||||
|
|
||||||
|
|
||||||
class CloudapiAuditGetResultModel(
|
class CloudapiAuditGetResultModel(
|
||||||
_base.BaseAPIResultModel,
|
|
||||||
_nested.AuditAPIResultNM,
|
_nested.AuditAPIResultNM,
|
||||||
):
|
):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAuditGetProtocol(_base.BasePostAPIFunctionProtocol):
|
class CloudapiAuditGetImpl(_base.APIFunctionImpl):
|
||||||
def get(
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
audit_guid: str,
|
audit_guid: str,
|
||||||
) -> CloudapiAuditGetResultModel:
|
) -> CloudapiAuditGetResultModel:
|
||||||
...
|
raise NotImplementedError
|
||||||
@@ -1,14 +1,18 @@
|
|||||||
|
from pydantic import Field
|
||||||
|
|
||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
import dynamix_sdk.api._nested as _nested
|
import dynamix_sdk.api._nested as _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAuditListResultModel(_base.BaseAPIResultModel):
|
class CloudapiAuditListResultModel(_base.ResultModel):
|
||||||
data: list[_nested.AuditAPIResultNM]
|
data: list[_nested.AuditAPIResultNM]
|
||||||
entry_count: int
|
entry_count: int
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAuditListProtocol(_base.BasePostAPIFunctionProtocol):
|
class CloudapiAuditListImpl(_base.APIFunctionImpl):
|
||||||
def list(
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
account_id: int | None = None,
|
account_id: int | None = None,
|
||||||
@@ -23,6 +27,7 @@ class CloudapiAuditListProtocol(_base.BasePostAPIFunctionProtocol):
|
|||||||
min_status_code: int | None = None,
|
min_status_code: int | None = None,
|
||||||
page_number: int = 1,
|
page_number: int = 1,
|
||||||
page_size: int = 100,
|
page_size: int = 100,
|
||||||
|
public_session_id: str | None = None,
|
||||||
request_timestamp_end: int | None = None,
|
request_timestamp_end: int | None = None,
|
||||||
request_timestamp_start: int | None = None,
|
request_timestamp_start: int | None = None,
|
||||||
rg_id: int | None = None,
|
rg_id: int | None = None,
|
||||||
@@ -31,5 +36,9 @@ class CloudapiAuditListProtocol(_base.BasePostAPIFunctionProtocol):
|
|||||||
user_name: str | None = None,
|
user_name: str | None = None,
|
||||||
vins_id: int | None = None,
|
vins_id: int | None = None,
|
||||||
vm_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:
|
) -> CloudapiAuditListResultModel:
|
||||||
...
|
raise NotImplementedError
|
||||||
@@ -10,7 +10,6 @@ from .group_get import *
|
|||||||
from .group_parent_add import *
|
from .group_parent_add import *
|
||||||
from .group_parent_remove import *
|
from .group_parent_remove import *
|
||||||
from .group_remove import *
|
from .group_remove import *
|
||||||
from .group_resize import *
|
|
||||||
from .group_start import *
|
from .group_start import *
|
||||||
from .group_stop import *
|
from .group_stop import *
|
||||||
from .group_update import *
|
from .group_update import *
|
||||||
@@ -30,32 +29,30 @@ from .stop import *
|
|||||||
|
|
||||||
class CloudapiBserviceAPI(
|
class CloudapiBserviceAPI(
|
||||||
_base.BaseAPI,
|
_base.BaseAPI,
|
||||||
CloudapiBserviceCreateProtocol,
|
|
||||||
CloudapiBserviceDeleteProtocol,
|
|
||||||
CloudapiBserviceDisableProtocol,
|
|
||||||
CloudapiBserviceEnableProtocol,
|
|
||||||
CloudapiBserviceGetProtocol,
|
|
||||||
CloudapiBserviceGroupAddProtocol,
|
|
||||||
CloudapiBserviceGroupComputeRemoveProtocol,
|
|
||||||
CloudapiBserviceGroupGetProtocol,
|
|
||||||
CloudapiBserviceGroupParentAddProtocol,
|
|
||||||
CloudapiBserviceGroupParentRemoveProtocol,
|
|
||||||
CloudapiBserviceGroupRemoveProtocol,
|
|
||||||
CloudapiBserviceGroupResizeProtocol,
|
|
||||||
CloudapiBserviceGroupStartProtocol,
|
|
||||||
CloudapiBserviceGroupStopProtocol,
|
|
||||||
CloudapiBserviceGroupUpdateExtnetProtocol,
|
|
||||||
CloudapiBserviceGroupUpdateProtocol,
|
|
||||||
CloudapiBserviceGroupUpdateVinsProtocol,
|
|
||||||
CloudapiBserviceListDeletedProtocol,
|
|
||||||
CloudapiBserviceListProtocol,
|
|
||||||
CloudapiBserviceMigrateToZoneProtocol,
|
|
||||||
CloudapiBserviceRestoreProtocol,
|
|
||||||
CloudapiBserviceSnapshotCreateProtocol,
|
|
||||||
CloudapiBserviceSnapshotDeleteProtocol,
|
|
||||||
CloudapiBserviceSnapshotListProtocol,
|
|
||||||
CloudapiBserviceSnapshotRollbackProtocol,
|
|
||||||
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,12 +1,10 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceCreateResultInt(_base.BaseAPIResultInt):
|
class CloudapiBserviceCreateImpl(_base.APIFunctionImpl):
|
||||||
pass
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
class CloudapiBserviceCreateProtocol(_base.BasePostAPIFunctionProtocol):
|
|
||||||
def create(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
name: str,
|
name: str,
|
||||||
@@ -14,5 +12,5 @@ class CloudapiBserviceCreateProtocol(_base.BasePostAPIFunctionProtocol):
|
|||||||
ssh_user_name: str | None = None,
|
ssh_user_name: str | None = None,
|
||||||
ssh_public_key: str | None = None,
|
ssh_public_key: str | None = None,
|
||||||
zone_id: int | None = None,
|
zone_id: int | None = None,
|
||||||
) -> CloudapiBserviceCreateResultInt:
|
) -> int:
|
||||||
...
|
raise NotImplementedError
|
||||||
@@ -1,15 +1,13 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceDeleteResultBool(_base.BaseAPIResultBool):
|
class CloudapiBserviceDeleteImpl(_base.APIFunctionImpl):
|
||||||
pass
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
class CloudapiBserviceDeleteProtocol(_base.BasePostAPIFunctionProtocol):
|
|
||||||
def delete(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
permanently: bool = False,
|
permanently: bool = False,
|
||||||
) -> CloudapiBserviceDeleteResultBool:
|
) -> bool:
|
||||||
...
|
raise NotImplementedError
|
||||||
@@ -1,14 +1,12 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceDisableResultBool(_base.BaseAPIResultBool):
|
class CloudapiBserviceDisableImpl(_base.APIFunctionImpl):
|
||||||
pass
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
class CloudapiBserviceDisableProtocol(_base.BasePostAPIFunctionProtocol):
|
|
||||||
def disable(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
) -> CloudapiBserviceDisableResultBool:
|
) -> bool:
|
||||||
...
|
raise NotImplementedError
|
||||||
@@ -1,14 +1,12 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceEnableResultBool(_base.BaseAPIResultBool):
|
class CloudapiBserviceEnableImpl(_base.APIFunctionImpl):
|
||||||
pass
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
class CloudapiBserviceEnableProtocol(_base.BasePostAPIFunctionProtocol):
|
|
||||||
def enable(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
) -> CloudapiBserviceEnableResultBool:
|
) -> bool:
|
||||||
...
|
raise NotImplementedError
|
||||||
@@ -2,7 +2,7 @@ import dynamix_sdk.base as _base
|
|||||||
import dynamix_sdk.api._nested as _nested
|
import dynamix_sdk.api._nested as _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceGetResultModel(_base.BaseAPIResultModel):
|
class CloudapiBserviceGetResultModel(_base.ResultModel):
|
||||||
account_id: int
|
account_id: int
|
||||||
account_name: str
|
account_name: str
|
||||||
base_domain: str
|
base_domain: str
|
||||||
@@ -34,23 +34,25 @@ class CloudapiBserviceGetResultModel(_base.BaseAPIResultModel):
|
|||||||
vms: list[_nested.BServiceVMAPIResultNM]
|
vms: list[_nested.BServiceVMAPIResultNM]
|
||||||
zone_id: int
|
zone_id: int
|
||||||
|
|
||||||
@property
|
@_base.computed_field
|
||||||
def created_datetime(self):
|
def created_datetime(self) -> _base.datetime | None:
|
||||||
return self._get_datetime_from_timestamp(self.created_timestamp)
|
return self._get_datetime_from_timestamp(self.created_timestamp)
|
||||||
|
|
||||||
@property
|
@_base.computed_field
|
||||||
def deleted_datetime(self):
|
def deleted_datetime(self) -> _base.datetime | None:
|
||||||
return self._get_datetime_from_timestamp(self.deleted_timestamp)
|
return self._get_datetime_from_timestamp(self.deleted_timestamp)
|
||||||
|
|
||||||
@property
|
@_base.computed_field
|
||||||
def updated_datetime(self):
|
def updated_datetime(self) -> _base.datetime | None:
|
||||||
return self._get_datetime_from_timestamp(self.updated_timestamp)
|
return self._get_datetime_from_timestamp(self.updated_timestamp)
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceGetProtocol(_base.BasePostAPIFunctionProtocol):
|
class CloudapiBserviceGetImpl(_base.APIFunctionImpl):
|
||||||
def get(
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
) -> CloudapiBserviceGetResultModel:
|
) -> CloudapiBserviceGetResultModel:
|
||||||
...
|
raise NotImplementedError
|
||||||
@@ -2,12 +2,10 @@ import dynamix_sdk.base as _base
|
|||||||
import dynamix_sdk.api._nested as _nested
|
import dynamix_sdk.api._nested as _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceGroupAddResultInt(_base.BaseAPIResultInt):
|
class CloudapiBserviceGroupAddImpl(_base.APIFunctionImpl):
|
||||||
pass
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
class CloudapiBserviceGroupAddProtocol(_base.BasePostAPIFunctionProtocol):
|
|
||||||
def group_add(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
@@ -15,17 +13,16 @@ class CloudapiBserviceGroupAddProtocol(_base.BasePostAPIFunctionProtocol):
|
|||||||
cpu_count: int,
|
cpu_count: int,
|
||||||
boot_disk_size_gb: int,
|
boot_disk_size_gb: int,
|
||||||
image_id: int,
|
image_id: int,
|
||||||
driver: _nested.Driver,
|
|
||||||
name: str,
|
name: str,
|
||||||
ram_size_mb: int,
|
ram_size_mb: int,
|
||||||
storage_policy_id: int | None = None,
|
storage_policy_id: int | None = None,
|
||||||
ci_user_data: str | None = None,
|
ci_user_data: str | dict | None = None,
|
||||||
extnet_ids: list[int] | None = None,
|
extnet_ids: list[int] | None = None,
|
||||||
role: str | None = None,
|
role: str | None = None,
|
||||||
sep_id: int | None = None,
|
sep_id: int | None = None,
|
||||||
sep_pool_name: str | None = None,
|
sep_pool_name: str | None = None,
|
||||||
start_timeout: int | None = None,
|
start_timeout: int | None = None,
|
||||||
vins_ids: list[int] | None = None,
|
vins_ids: list[int] | None = None,
|
||||||
chipset: _nested.Chipset = _nested.Chipset.i440fx,
|
chipset: _nested.Chipset = _nested.Chipset.Q35,
|
||||||
) -> CloudapiBserviceGroupAddResultInt:
|
) -> int:
|
||||||
...
|
raise NotImplementedError
|
||||||
@@ -1,18 +1,16 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceGroupComputeRemoveResultBool(_base.BaseAPIResultBool):
|
class CloudapiBserviceGroupComputeRemoveImpl(
|
||||||
pass
|
_base.APIFunctionImpl
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceGroupComputeRemoveProtocol(
|
|
||||||
_base.BasePostAPIFunctionProtocol
|
|
||||||
):
|
):
|
||||||
def group_compute_remove(
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
bsgroup_id: int,
|
bsgroup_id: int,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
) -> CloudapiBserviceGroupComputeRemoveResultBool:
|
) -> bool:
|
||||||
...
|
raise NotImplementedError
|
||||||
@@ -3,7 +3,7 @@ import dynamix_sdk.api._nested as _nested
|
|||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceGroupGetResultModel(
|
class CloudapiBserviceGroupGetResultModel(
|
||||||
_base.BaseAPIResultModel,
|
_base.ResultModel,
|
||||||
):
|
):
|
||||||
account_id: int
|
account_id: int
|
||||||
account_name: str
|
account_name: str
|
||||||
@@ -29,7 +29,7 @@ class CloudapiBserviceGroupGetResultModel(
|
|||||||
rg_name: str
|
rg_name: str
|
||||||
role: str
|
role: str
|
||||||
sep_id: int
|
sep_id: int
|
||||||
sep_pool_name: str
|
sep_pool_name: str | None
|
||||||
seq_no: int
|
seq_no: int
|
||||||
status: _nested.BServiceGroupStatus
|
status: _nested.BServiceGroupStatus
|
||||||
tech_status: _nested.BServiceGroupTechStatus
|
tech_status: _nested.BServiceGroupTechStatus
|
||||||
@@ -39,23 +39,25 @@ class CloudapiBserviceGroupGetResultModel(
|
|||||||
vins_ids: list[int]
|
vins_ids: list[int]
|
||||||
vms: list[_nested.BServiceGroupVMAPIResultNM]
|
vms: list[_nested.BServiceGroupVMAPIResultNM]
|
||||||
|
|
||||||
@property
|
@_base.computed_field
|
||||||
def created_datetime(self):
|
def created_datetime(self) -> _base.datetime | None:
|
||||||
return self._get_datetime_from_timestamp(self.created_timestamp)
|
return self._get_datetime_from_timestamp(self.created_timestamp)
|
||||||
|
|
||||||
@property
|
@_base.computed_field
|
||||||
def deleted_datetime(self):
|
def deleted_datetime(self) -> _base.datetime | None:
|
||||||
return self._get_datetime_from_timestamp(self.deleted_timestamp)
|
return self._get_datetime_from_timestamp(self.deleted_timestamp)
|
||||||
|
|
||||||
@property
|
@_base.computed_field
|
||||||
def updated_datetime(self):
|
def updated_datetime(self) -> _base.datetime | None:
|
||||||
return self._get_datetime_from_timestamp(self.updated_timestamp)
|
return self._get_datetime_from_timestamp(self.updated_timestamp)
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceGroupGetProtocol(_base.BasePostAPIFunctionProtocol):
|
class CloudapiBserviceGroupGetImpl(_base.APIFunctionImpl):
|
||||||
def group_get(
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
self, *,
|
self, *,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
bsgroup_id: int
|
bsgroup_id: int
|
||||||
) -> CloudapiBserviceGroupGetResultModel:
|
) -> CloudapiBserviceGroupGetResultModel:
|
||||||
...
|
raise NotImplementedError
|
||||||
@@ -1,18 +1,16 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceGroupParentAddResultBool(_base.BaseAPIResultBool):
|
class CloudapiBserviceGroupParentAddImpl(
|
||||||
pass
|
_base.APIFunctionImpl
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceGroupParentAddProtocol(
|
|
||||||
_base.BasePostAPIFunctionProtocol
|
|
||||||
):
|
):
|
||||||
def group_parent_add(
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
bsgroup_id: int,
|
child_id: int,
|
||||||
parent_id: int,
|
parent_id: int,
|
||||||
) -> CloudapiBserviceGroupParentAddResultBool:
|
) -> bool:
|
||||||
...
|
raise NotImplementedError
|
||||||
@@ -1,18 +1,16 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceGroupParentRemoveResultBool(_base.BaseAPIResultBool):
|
class CloudapiBserviceGroupParentRemoveImpl(
|
||||||
pass
|
_base.APIFunctionImpl
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceGroupParentRemoveProtocol(
|
|
||||||
_base.BasePostAPIFunctionProtocol
|
|
||||||
):
|
):
|
||||||
def group_parent_remove(
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
bsgroup_id: int,
|
child_id: int,
|
||||||
parent_id: int,
|
parent_id: int,
|
||||||
) -> CloudapiBserviceGroupParentRemoveResultBool:
|
) -> bool:
|
||||||
...
|
raise NotImplementedError
|
||||||
@@ -1,14 +1,12 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceGroupRemoveResultBool(_base.BaseAPIResultBool):
|
class CloudapiBserviceGroupRemoveImpl(_base.APIFunctionImpl):
|
||||||
pass
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
class CloudapiBserviceGroupRemoveProtocol(_base.BasePostAPIFunctionProtocol):
|
|
||||||
def group_remove(
|
|
||||||
self, *,
|
self, *,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
bsgroup_id: int
|
bsgroup_id: int
|
||||||
) -> CloudapiBserviceGroupRemoveResultBool:
|
) -> bool:
|
||||||
...
|
raise NotImplementedError
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
import dynamix_sdk.base as _base
|
|
||||||
import dynamix_sdk.api._nested as _nested
|
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceGroupResizeResultInt(_base.BaseAPIResultInt):
|
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceGroupResizeProtocol(
|
|
||||||
_base.BasePostAPIFunctionProtocol
|
|
||||||
):
|
|
||||||
def group_resize(
|
|
||||||
self,
|
|
||||||
*,
|
|
||||||
bservice_id: int,
|
|
||||||
bsgroup_id: int,
|
|
||||||
chipset: _nested.Chipset = _nested.Chipset.i440fx,
|
|
||||||
count_change_mode: _nested.CountChangeMode = (
|
|
||||||
_nested.CountChangeMode.RELATIVE
|
|
||||||
),
|
|
||||||
vm_count: int,
|
|
||||||
) -> CloudapiBserviceGroupResizeResultInt:
|
|
||||||
...
|
|
||||||
@@ -1,15 +1,13 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceGroupStartResultBool(_base.BaseAPIResultBool):
|
class CloudapiBserviceGroupStartImpl(_base.APIFunctionImpl):
|
||||||
pass
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
class CloudapiBserviceGroupStartProtocol(_base.BasePostAPIFunctionProtocol):
|
|
||||||
def group_start(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
bsgroup_id: int,
|
bsgroup_id: int,
|
||||||
) -> CloudapiBserviceGroupStartResultBool:
|
) -> bool:
|
||||||
...
|
raise NotImplementedError
|
||||||
@@ -1,16 +1,14 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceGroupStopResultBool(_base.BaseAPIResultBool):
|
class CloudapiBserviceGroupStopImpl(_base.APIFunctionImpl):
|
||||||
pass
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
class CloudapiBserviceGroupStopProtocol(_base.BasePostAPIFunctionProtocol):
|
|
||||||
def group_stop(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
bsgroup_id: int,
|
bsgroup_id: int,
|
||||||
force: bool = False,
|
force: bool = False,
|
||||||
) -> CloudapiBserviceGroupStopResultBool:
|
) -> bool:
|
||||||
...
|
raise NotImplementedError
|
||||||
@@ -1,14 +1,12 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceGroupUpdateResultBool(_base.BaseAPIResultBool):
|
class CloudapiBserviceGroupUpdateImpl(
|
||||||
pass
|
_base.APIFunctionImpl
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceGroupUpdateProtocol(
|
|
||||||
_base.BasePostAPIFunctionProtocol
|
|
||||||
):
|
):
|
||||||
def group_update(
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
@@ -19,5 +17,5 @@ class CloudapiBserviceGroupUpdateProtocol(
|
|||||||
name: str | None = None,
|
name: str | None = None,
|
||||||
ram_size_mb: int | None = None,
|
ram_size_mb: int | None = None,
|
||||||
role: str | None = None,
|
role: str | None = None,
|
||||||
) -> CloudapiBserviceGroupUpdateResultBool:
|
) -> bool:
|
||||||
...
|
raise NotImplementedError
|
||||||
@@ -1,18 +1,16 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceGroupUpdateExtnetResultBool(_base.BaseAPIResultBool):
|
class CloudapiBserviceGroupUpdateExtnetImpl(
|
||||||
pass
|
_base.APIFunctionImpl
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceGroupUpdateExtnetProtocol(
|
|
||||||
_base.BasePostAPIFunctionProtocol
|
|
||||||
):
|
):
|
||||||
def group_update_extnet(
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
bsgroup_id: int,
|
bsgroup_id: int,
|
||||||
extnet_ids: list[int] | None = None,
|
extnet_ids: list[int] | None = None,
|
||||||
) -> CloudapiBserviceGroupUpdateExtnetResultBool:
|
) -> bool:
|
||||||
...
|
raise NotImplementedError
|
||||||
@@ -1,18 +1,16 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceGroupUpdateVinsResultBool(_base.BaseAPIResultBool):
|
class CloudapiBserviceGroupUpdateVinsImpl(
|
||||||
pass
|
_base.APIFunctionImpl
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceGroupUpdateVinsProtocol(
|
|
||||||
_base.BasePostAPIFunctionProtocol
|
|
||||||
):
|
):
|
||||||
def group_update_vins(
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
bsgroup_id: int,
|
bsgroup_id: int,
|
||||||
vins_ids: list[int] | None = None,
|
vins_ids: list[int] | None = None,
|
||||||
) -> CloudapiBserviceGroupUpdateVinsResultBool:
|
) -> bool:
|
||||||
...
|
raise NotImplementedError
|
||||||
@@ -2,13 +2,15 @@ import dynamix_sdk.base as _base
|
|||||||
import dynamix_sdk.api._nested as _nested
|
import dynamix_sdk.api._nested as _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceListResultModel(_base.BaseAPIResultModel):
|
class CloudapiBserviceListResultModel(_base.ResultModel):
|
||||||
data: list[_nested.BServiceAPIResultNM]
|
data: list[_nested.BServiceAPIResultNM]
|
||||||
entry_count: int
|
entry_count: int
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceListProtocol(_base.BasePostAPIFunctionProtocol):
|
class CloudapiBserviceListImpl(_base.APIFunctionImpl):
|
||||||
def list(
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
account_id: int | None = None,
|
account_id: int | None = None,
|
||||||
@@ -16,12 +18,12 @@ class CloudapiBserviceListProtocol(_base.BasePostAPIFunctionProtocol):
|
|||||||
id: int | None = None,
|
id: int | None = None,
|
||||||
name: str | None = None,
|
name: str | None = None,
|
||||||
zone_id: int | None = None,
|
zone_id: int | None = None,
|
||||||
page_number: int | None = None,
|
page_number: int = 1,
|
||||||
page_size: int | None = None,
|
page_size: int = 100,
|
||||||
rg_id: int | None = None,
|
rg_id: int | None = None,
|
||||||
rg_name: str | None = None,
|
rg_name: str | None = None,
|
||||||
sort_by: str | None = None,
|
sort_by: str | None = None,
|
||||||
status: _nested.BServiceStatus | None = None,
|
status: _nested.BServiceStatus | None = None,
|
||||||
tech_status: _nested.BServiceTechStatus | None = None,
|
tech_status: _nested.BServiceTechStatus | None = None,
|
||||||
) -> CloudapiBserviceListResultModel:
|
) -> CloudapiBserviceListResultModel:
|
||||||
...
|
raise NotImplementedError
|
||||||
@@ -2,19 +2,21 @@ import dynamix_sdk.base as _base
|
|||||||
import dynamix_sdk.api._nested as _nested
|
import dynamix_sdk.api._nested as _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceListDeletedResultModel(_base.BaseAPIResultModel):
|
class CloudapiBserviceListDeletedResultModel(_base.ResultModel):
|
||||||
data: list[_nested.BServiceAPIResultNM]
|
data: list[_nested.BServiceAPIResultNM]
|
||||||
entry_count: int
|
entry_count: int
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceListDeletedProtocol(_base.BasePostAPIFunctionProtocol):
|
class CloudapiBserviceListDeletedImpl(_base.APIFunctionImpl):
|
||||||
def list_deleted(
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
account_id: int | None = None,
|
account_id: int | None = None,
|
||||||
page_number: int | None = None,
|
page_number: int = 1,
|
||||||
page_size: int | None = None,
|
page_size: int = 100,
|
||||||
rg_id: int | None = None,
|
rg_id: int | None = None,
|
||||||
sort_by: str | None = None,
|
sort_by: str | None = None,
|
||||||
) -> CloudapiBserviceListDeletedResultModel:
|
) -> CloudapiBserviceListDeletedResultModel:
|
||||||
...
|
raise NotImplementedError
|
||||||
@@ -1,15 +1,13 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceMigrateToZoneResultBool(_base.BaseAPIResultBool):
|
class CloudapiBserviceMigrateToZoneImpl(_base.APIFunctionImpl):
|
||||||
pass
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
class CloudapiBserviceMigrateToZoneProtocol(_base.BasePostAPIFunctionProtocol):
|
|
||||||
def migrate_to_zone(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
zone_id: int,
|
zone_id: int,
|
||||||
) -> CloudapiBserviceMigrateToZoneResultBool:
|
) -> bool:
|
||||||
...
|
raise NotImplementedError
|
||||||
@@ -1,14 +1,12 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceRestoreResultBool(_base.BaseAPIResultBool):
|
class CloudapiBserviceRestoreImpl(_base.APIFunctionImpl):
|
||||||
pass
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
class CloudapiBserviceRestoreProtocol(_base.BasePostAPIFunctionProtocol):
|
|
||||||
def restore(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
) -> CloudapiBserviceRestoreResultBool:
|
) -> bool:
|
||||||
...
|
raise NotImplementedError
|
||||||
@@ -1,17 +1,15 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceSnapshotCreateResultBool(_base.BaseAPIResultBool):
|
class CloudapiBserviceSnapshotCreateImpl(
|
||||||
pass
|
_base.APIFunctionImpl,
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceSnapshotCreateProtocol(
|
|
||||||
_base.BasePostAPIFunctionProtocol,
|
|
||||||
):
|
):
|
||||||
def snapshot_create(
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
label: str,
|
label: str,
|
||||||
) -> CloudapiBserviceSnapshotCreateResultBool:
|
) -> bool:
|
||||||
...
|
raise NotImplementedError
|
||||||
@@ -1,17 +1,15 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceSnapshotDeleteResultBool(_base.BaseAPIResultBool):
|
class CloudapiBserviceSnapshotDeleteImpl(
|
||||||
pass
|
_base.APIFunctionImpl,
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceSnapshotDeleteProtocol(
|
|
||||||
_base.BasePostAPIFunctionProtocol,
|
|
||||||
):
|
):
|
||||||
def snapshot_delete(
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
label: str,
|
label: str,
|
||||||
) -> CloudapiBserviceSnapshotDeleteResultBool:
|
) -> bool:
|
||||||
...
|
raise NotImplementedError
|
||||||
@@ -2,15 +2,17 @@ import dynamix_sdk.base as _base
|
|||||||
import dynamix_sdk.api._nested as _nested
|
import dynamix_sdk.api._nested as _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceSnapshotListResultModel(_base.BaseAPIResultModel):
|
class CloudapiBserviceSnapshotListResultModel(_base.ResultModel):
|
||||||
data: list[_nested.BServiceSnapshotAPIResultNM]
|
data: list[_nested.BServiceSnapshotAPIResultNM]
|
||||||
entry_count: int
|
entry_count: int
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceSnapshotListProtocol(_base.BasePostAPIFunctionProtocol):
|
class CloudapiBserviceSnapshotListImpl(_base.APIFunctionImpl):
|
||||||
def snapshot_list(
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
) -> CloudapiBserviceSnapshotListResultModel:
|
) -> CloudapiBserviceSnapshotListResultModel:
|
||||||
...
|
raise NotImplementedError
|
||||||
@@ -1,17 +1,15 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceSnapshotRollbackResultBool(_base.BaseAPIResultBool):
|
class CloudapiBserviceSnapshotRollbackImpl(
|
||||||
pass
|
_base.APIFunctionImpl,
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceSnapshotRollbackProtocol(
|
|
||||||
_base.BasePostAPIFunctionProtocol,
|
|
||||||
):
|
):
|
||||||
def snapshot_rollback(
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
label: str,
|
label: str,
|
||||||
) -> CloudapiBserviceSnapshotRollbackResultBool:
|
) -> bool:
|
||||||
...
|
raise NotImplementedError
|
||||||
@@ -1,14 +1,12 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceStartResultBool(_base.BaseAPIResultBool):
|
class CloudapiBserviceStartImpl(_base.APIFunctionImpl):
|
||||||
pass
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
class CloudapiBserviceStartProtocol(_base.BasePostAPIFunctionProtocol):
|
|
||||||
def start(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
) -> CloudapiBserviceStartResultBool:
|
) -> bool:
|
||||||
...
|
raise NotImplementedError
|
||||||
@@ -1,14 +1,12 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceStopResultBool(_base.BaseAPIResultBool):
|
class CloudapiBserviceStopImpl(_base.APIFunctionImpl):
|
||||||
pass
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
class CloudapiBserviceStopProtocol(_base.BasePostAPIFunctionProtocol):
|
|
||||||
def stop(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
) -> CloudapiBserviceStopResultBool:
|
) -> bool:
|
||||||
...
|
raise NotImplementedError
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
from .abort_shared_snapshot_merge import *
|
from .abort_shared_snapshot_merge import *
|
||||||
|
from .add_acl_access import *
|
||||||
from .affinity_label_remove import *
|
from .affinity_label_remove import *
|
||||||
from .affinity_label_set import *
|
from .affinity_label_set import *
|
||||||
from .affinity_relations import *
|
from .affinity_relations import *
|
||||||
@@ -18,12 +19,14 @@ from .change_ip import *
|
|||||||
from .change_link_state import *
|
from .change_link_state import *
|
||||||
from .change_mac import *
|
from .change_mac import *
|
||||||
from .change_mtu import *
|
from .change_mtu import *
|
||||||
|
from .change_qos_policies import *
|
||||||
from .change_security_groups import *
|
from .change_security_groups import *
|
||||||
from .clone import *
|
from .clone import *
|
||||||
from .clone_abort import *
|
|
||||||
from .create_template import *
|
from .create_template import *
|
||||||
|
from .del_acl_access import *
|
||||||
from .delete import *
|
from .delete import *
|
||||||
from .delete_custom_fields import *
|
from .delete_custom_fields import *
|
||||||
|
from .delete_cpu_alignment_profile import *
|
||||||
from .detach_gpu import *
|
from .detach_gpu import *
|
||||||
from .detach_pci_device import *
|
from .detach_pci_device import *
|
||||||
from .disable import *
|
from .disable import *
|
||||||
@@ -35,7 +38,9 @@ from .disk_detach import *
|
|||||||
from .disk_switch_to_replication import *
|
from .disk_switch_to_replication import *
|
||||||
from .enable import *
|
from .enable import *
|
||||||
from .get import *
|
from .get import *
|
||||||
|
from .get_acl_access import *
|
||||||
from .get_console_url import *
|
from .get_console_url import *
|
||||||
|
from .get_cpu_alignment_profile import *
|
||||||
from .guest_agent_disable import *
|
from .guest_agent_disable import *
|
||||||
from .guest_agent_enable import *
|
from .guest_agent_enable import *
|
||||||
from .guest_agent_execute import *
|
from .guest_agent_execute import *
|
||||||
@@ -50,7 +55,7 @@ from .pause import *
|
|||||||
from .pfw_add import *
|
from .pfw_add import *
|
||||||
from .pfw_del import *
|
from .pfw_del import *
|
||||||
from .pfw_list import *
|
from .pfw_list import *
|
||||||
from .pin_to_stack import *
|
from .pin_to_node import *
|
||||||
from .power_cycle import *
|
from .power_cycle import *
|
||||||
from .reboot import *
|
from .reboot import *
|
||||||
from .redeploy import *
|
from .redeploy import *
|
||||||
@@ -58,6 +63,7 @@ from .reset import *
|
|||||||
from .resize import *
|
from .resize import *
|
||||||
from .restore import *
|
from .restore import *
|
||||||
from .resume import *
|
from .resume import *
|
||||||
|
from .set_cpu_alignment_profile import *
|
||||||
from .set_custom_fields import *
|
from .set_custom_fields import *
|
||||||
from .snapshot_create import *
|
from .snapshot_create import *
|
||||||
from .snapshot_list import *
|
from .snapshot_list import *
|
||||||
@@ -66,8 +72,9 @@ from .start import *
|
|||||||
from .stop import *
|
from .stop import *
|
||||||
from .tag_add import *
|
from .tag_add import *
|
||||||
from .tag_remove import *
|
from .tag_remove import *
|
||||||
from .unpin_from_stack import *
|
from .unpin_from_node import *
|
||||||
from .update import *
|
from .update import *
|
||||||
|
from .update_acl_access import *
|
||||||
from .user_grant import *
|
from .user_grant import *
|
||||||
from .user_list import *
|
from .user_list import *
|
||||||
from .user_revoke import *
|
from .user_revoke import *
|
||||||
@@ -76,78 +83,84 @@ from .user_update import *
|
|||||||
|
|
||||||
class CloudapiComputeAPI(
|
class CloudapiComputeAPI(
|
||||||
_base.BaseAPI,
|
_base.BaseAPI,
|
||||||
CloudapiComputeAbortSharedSnapshotMergeProtocol,
|
|
||||||
CloudapiComputeAffinityLabelRemoveProtocol,
|
|
||||||
CloudapiComputeAffinityLabelSetProtocol,
|
|
||||||
CloudapiComputeAffinityRelationsProtocol,
|
|
||||||
CloudapiComputeAffinityRuleAddProtocol,
|
|
||||||
CloudapiComputeAffinityRuleRemoveProtocol,
|
|
||||||
CloudapiComputeAffinityRulesClearProtocol,
|
|
||||||
CloudapiComputeAntiAffinityRuleAddProtocol,
|
|
||||||
CloudapiComputeAntiAffinityRuleRemoveProtocol,
|
|
||||||
CloudapiComputeAntiAffinityRulesClearProtocol,
|
|
||||||
CloudapiComputeAttachGpuProtocol,
|
|
||||||
CloudapiComputeAttachPciDeviceProtocol,
|
|
||||||
CloudapiComputeBootDiskSetProtocol,
|
|
||||||
CloudapiComputeCdEjectProtocol,
|
|
||||||
CloudapiComputeCdInsertProtocol,
|
|
||||||
CloudapiComputeChangeIpProtocol,
|
|
||||||
CloudapiComputeChangeLinkStateProtocol,
|
|
||||||
CloudapiComputeChangeMacProtocol,
|
|
||||||
CloudapiComputeChangeMtuProtocol,
|
|
||||||
CloudapiComputeChangeSecurityGroupsProtocol,
|
|
||||||
CloudapiComputeCloneAbortProtocol,
|
|
||||||
CloudapiComputeCloneProtocol,
|
|
||||||
CloudapiComputeCreateTemplateProtocol,
|
|
||||||
CloudapiComputeDeleteCustomFieldsProtocol,
|
|
||||||
CloudapiComputeDeleteProtocol,
|
|
||||||
CloudapiComputeDetachGpuProtocol,
|
|
||||||
CloudapiComputeDetachPciDeviceProtocol,
|
|
||||||
CloudapiComputeDisableProtocol,
|
|
||||||
CloudapiComputeDiskAddProtocol,
|
|
||||||
CloudapiComputeDiskAttachProtocol,
|
|
||||||
CloudapiComputeDiskDelProtocol,
|
|
||||||
CloudapiComputeDiskDetachProtocol,
|
|
||||||
CloudapiComputeDiskMigrateProtocol,
|
|
||||||
CloudapiComputeDiskSwitchToReplicationProtocol,
|
|
||||||
CloudapiComputeEnableProtocol,
|
|
||||||
CloudapiComputeGetConsoleUrlProtocol,
|
|
||||||
CloudapiComputeGetProtocol,
|
|
||||||
CloudapiComputeGuestAgentDisableProtocol,
|
|
||||||
CloudapiComputeGuestAgentEnableProtocol,
|
|
||||||
CloudapiComputeGuestAgentExecuteProtocol,
|
|
||||||
CloudapiComputeGuestAgentFeatureUpdateProtocol,
|
|
||||||
CloudapiComputeListProtocol,
|
|
||||||
CloudapiComputeListDeletedProtocol,
|
|
||||||
CloudapiComputeMigrateToZoneProtocol,
|
|
||||||
CloudapiComputeMoveToRgProtocol,
|
|
||||||
CloudapiComputeNetAttachProtocol,
|
|
||||||
CloudapiComputeNetDetachProtocol,
|
|
||||||
CloudapiComputePauseProtocol,
|
|
||||||
CloudapiComputePfwAddProtocol,
|
|
||||||
CloudapiComputePfwDelProtocol,
|
|
||||||
CloudapiComputePfwListProtocol,
|
|
||||||
CloudapiComputePinToStackProtocol,
|
|
||||||
CloudapiComputePowerCycleProtocol,
|
|
||||||
CloudapiComputeRebootProtocol,
|
|
||||||
CloudapiComputeRedeployProtocol,
|
|
||||||
CloudapiComputeResetProtocol,
|
|
||||||
CloudapiComputeResizeProtocol,
|
|
||||||
CloudapiComputeRestoreProtocol,
|
|
||||||
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
|
||||||
@@ -1,19 +1,16 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAbortSharedSnapshotMergeResultBool(
|
class CloudapiComputeAbortSharedSnapshotMergeImpl(
|
||||||
_base.BaseAPIResultBool,
|
_base.APIFunctionImpl
|
||||||
):
|
):
|
||||||
pass
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
class CloudapiComputeAbortSharedSnapshotMergeProtocol(
|
|
||||||
_base.BasePostAPIFunctionProtocol
|
|
||||||
):
|
|
||||||
def abort_shared_snapshot_merge(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
label: str,
|
label: str,
|
||||||
) -> CloudapiComputeAbortSharedSnapshotMergeResultBool:
|
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
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAffinityLabelRemoveResultBool(_base.BaseAPIResultBool):
|
class CloudapiComputeAffinityLabelRemoveImpl(
|
||||||
pass
|
_base.APIFunctionImpl
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAffinityLabelRemoveProtocol(
|
|
||||||
_base.BasePostAPIFunctionProtocol
|
|
||||||
):
|
):
|
||||||
def affinity_label_remove(
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
) -> CloudapiComputeAffinityLabelRemoveResultBool:
|
) -> bool:
|
||||||
...
|
raise NotImplementedError
|
||||||
@@ -1,17 +1,15 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAffinityLabelSetResultBool(_base.BaseAPIResultBool):
|
class CloudapiComputeAffinityLabelSetImpl(
|
||||||
pass
|
_base.APIFunctionImpl
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAffinityLabelSetProtocol(
|
|
||||||
_base.BasePostAPIFunctionProtocol
|
|
||||||
):
|
):
|
||||||
def affinity_label_set(
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
affinity_label: str,
|
affinity_label: str,
|
||||||
) -> CloudapiComputeAffinityLabelSetResultBool:
|
) -> bool:
|
||||||
...
|
raise NotImplementedError
|
||||||
@@ -3,18 +3,19 @@ from dynamix_sdk.api import _nested
|
|||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAffinityRelationsResultModel(
|
class CloudapiComputeAffinityRelationsResultModel(
|
||||||
_base.BaseAPIResultModel,
|
|
||||||
_nested.AffinityRelationsAPIResultNM,
|
_nested.AffinityRelationsAPIResultNM,
|
||||||
):
|
):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAffinityRelationsProtocol(
|
class CloudapiComputeAffinityRelationsImpl(
|
||||||
_base.BasePostAPIFunctionProtocol
|
_base.APIFunctionImpl
|
||||||
):
|
):
|
||||||
def affinity_relations(
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
) -> CloudapiComputeAffinityRelationsResultModel:
|
) -> CloudapiComputeAffinityRelationsResultModel:
|
||||||
...
|
raise NotImplementedError
|
||||||
@@ -2,14 +2,18 @@ import dynamix_sdk.base as _base
|
|||||||
from dynamix_sdk.api import _nested
|
from dynamix_sdk.api import _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAffinityRuleAddResultBool(_base.BaseAPIResultBool):
|
class CloudapiComputeAffinityRuleAddResultModel(
|
||||||
|
_nested.ComputeAffinityRuleApplyResultAPIResultNM,
|
||||||
|
):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAffinityRuleAddProtocol(
|
class CloudapiComputeAffinityRuleAddImpl(
|
||||||
_base.BasePostAPIFunctionProtocol
|
_base.APIFunctionImpl
|
||||||
):
|
):
|
||||||
def affinity_rule_add(
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
@@ -18,5 +22,7 @@ class CloudapiComputeAffinityRuleAddProtocol(
|
|||||||
mode: _nested.AffinityMode,
|
mode: _nested.AffinityMode,
|
||||||
key: str,
|
key: str,
|
||||||
value: 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
|
from dynamix_sdk.api import _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAffinityRuleRemoveResultBool(_base.BaseAPIResultBool):
|
class CloudapiComputeAffinityRuleRemoveImpl(
|
||||||
pass
|
_base.APIFunctionImpl
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAffinityRuleRemoveProtocol(
|
|
||||||
_base.BasePostAPIFunctionProtocol
|
|
||||||
):
|
):
|
||||||
def affinity_rule_remove(
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
@@ -18,5 +16,5 @@ class CloudapiComputeAffinityRuleRemoveProtocol(
|
|||||||
mode: _nested.AffinityMode,
|
mode: _nested.AffinityMode,
|
||||||
key: str,
|
key: str,
|
||||||
value: str,
|
value: str,
|
||||||
) -> CloudapiComputeAffinityRuleRemoveResultBool:
|
) -> bool:
|
||||||
...
|
raise NotImplementedError
|
||||||
@@ -1,16 +1,14 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAffinityRulesClearResultBool(_base.BaseAPIResultBool):
|
class CloudapiComputeAffinityRulesClearImpl(
|
||||||
pass
|
_base.APIFunctionImpl
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAffinityRulesClearProtocol(
|
|
||||||
_base.BasePostAPIFunctionProtocol
|
|
||||||
):
|
):
|
||||||
def affinity_rules_clear(
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
) -> CloudapiComputeAffinityRulesClearResultBool:
|
) -> bool:
|
||||||
...
|
raise NotImplementedError
|
||||||
@@ -2,14 +2,18 @@ import dynamix_sdk.base as _base
|
|||||||
from dynamix_sdk.api import _nested
|
from dynamix_sdk.api import _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAntiAffinityRuleAddResultBool(_base.BaseAPIResultBool):
|
class CloudapiComputeAntiAffinityRuleAddResultModel(
|
||||||
|
_nested.ComputeAffinityRuleApplyResultAPIResultNM,
|
||||||
|
):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAntiAffinityRuleAddProtocol(
|
class CloudapiComputeAntiAffinityRuleAddImpl(
|
||||||
_base.BasePostAPIFunctionProtocol
|
_base.APIFunctionImpl
|
||||||
):
|
):
|
||||||
def anti_affinity_rule_add(
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
@@ -18,5 +22,7 @@ class CloudapiComputeAntiAffinityRuleAddProtocol(
|
|||||||
mode: _nested.AffinityMode,
|
mode: _nested.AffinityMode,
|
||||||
key: str,
|
key: str,
|
||||||
value: 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
|
from dynamix_sdk.api import _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAntiAffinityRuleRemoveResultBool(_base.BaseAPIResultBool):
|
class CloudapiComputeAntiAffinityRuleRemoveImpl(
|
||||||
pass
|
_base.APIFunctionImpl
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAntiAffinityRuleRemoveProtocol(
|
|
||||||
_base.BasePostAPIFunctionProtocol
|
|
||||||
):
|
):
|
||||||
def anti_affinity_rule_remove(
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
@@ -18,5 +16,5 @@ class CloudapiComputeAntiAffinityRuleRemoveProtocol(
|
|||||||
mode: _nested.AffinityMode,
|
mode: _nested.AffinityMode,
|
||||||
key: str,
|
key: str,
|
||||||
value: str,
|
value: str,
|
||||||
) -> CloudapiComputeAntiAffinityRuleRemoveResultBool:
|
) -> bool:
|
||||||
...
|
raise NotImplementedError
|
||||||
@@ -1,16 +1,14 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAntiAffinityRulesClearResultBool(_base.BaseAPIResultBool):
|
class CloudapiComputeAntiAffinityRulesClearImpl(
|
||||||
pass
|
_base.APIFunctionImpl
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAntiAffinityRulesClearProtocol(
|
|
||||||
_base.BasePostAPIFunctionProtocol
|
|
||||||
):
|
):
|
||||||
def anti_affinity_rules_clear(
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
) -> CloudapiComputeAntiAffinityRulesClearResultBool:
|
) -> bool:
|
||||||
...
|
raise NotImplementedError
|
||||||
@@ -1,15 +1,13 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAttachGpuResultInt(_base.BaseAPIResultInt):
|
class CloudapiComputeAttachGpuImpl(_base.APIFunctionImpl):
|
||||||
pass
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
class CloudapiComputeAttachGpuProtocol(_base.BasePostAPIFunctionProtocol):
|
|
||||||
def attach_gpu(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
vgpu_id: int,
|
vgpu_id: int,
|
||||||
) -> CloudapiComputeAttachGpuResultInt:
|
) -> int:
|
||||||
...
|
raise NotImplementedError
|
||||||
@@ -1,17 +1,15 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAttachPciDeviceResultBool(_base.BaseAPIResultBool):
|
class CloudapiComputeAttachPciDeviceImpl(
|
||||||
pass
|
_base.APIFunctionImpl,
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAttachPciDeviceProtocol(
|
|
||||||
_base.BasePostAPIFunctionProtocol,
|
|
||||||
):
|
):
|
||||||
def attach_pci_device(
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
pci_device_id: int,
|
pci_device_id: int,
|
||||||
) -> CloudapiComputeAttachPciDeviceResultBool:
|
) -> bool:
|
||||||
...
|
raise NotImplementedError
|
||||||
@@ -1,15 +1,13 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeBootDiskSetResultBool(_base.BaseAPIResultBool):
|
class CloudapiComputeBootDiskSetImpl(_base.APIFunctionImpl):
|
||||||
pass
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
class CloudapiComputeBootDiskSetProtocol(_base.BasePostAPIFunctionProtocol):
|
|
||||||
def boot_disk_set(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
disk_id: int,
|
disk_id: int,
|
||||||
) -> CloudapiComputeBootDiskSetResultBool:
|
) -> bool:
|
||||||
...
|
raise NotImplementedError
|
||||||
@@ -1,14 +1,13 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeCdEjectResultBool(_base.BaseAPIResultBool):
|
class CloudapiComputeCdEjectImpl(_base.APIFunctionImpl):
|
||||||
pass
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
class CloudapiComputeCdEjectProtocol(_base.BasePostAPIFunctionProtocol):
|
|
||||||
def cd_eject(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
) -> CloudapiComputeCdEjectResultBool:
|
async_mode: bool = False,
|
||||||
...
|
) -> bool | str:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -1,15 +1,14 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeCdInsertResultBool(_base.BaseAPIResultBool):
|
class CloudapiComputeCdInsertImpl(_base.APIFunctionImpl):
|
||||||
pass
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
class CloudapiComputeCdInsertProtocol(_base.BasePostAPIFunctionProtocol):
|
|
||||||
def cd_insert(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
cdrom_image_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
|
import dynamix_sdk.api._nested as _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeChangeIpResultBool(_base.BaseAPIResultBool):
|
class CloudapiComputeChangeIpImpl(_base.APIFunctionImpl):
|
||||||
pass
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
class CloudapiComputeChangeIpProtocol(_base.BasePostAPIFunctionProtocol):
|
|
||||||
def change_ip(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
net_type: _nested.NetTypeForChangeIP,
|
net_type: _nested.NetTypeForChangeIP,
|
||||||
net_id: int,
|
net_id: int,
|
||||||
ip_addr: str,
|
ip_addr: str,
|
||||||
) -> CloudapiComputeChangeIpResultBool:
|
async_mode: bool = False,
|
||||||
...
|
) -> bool | str:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -2,18 +2,17 @@ import dynamix_sdk.base as _base
|
|||||||
import dynamix_sdk.api._nested as _nested
|
import dynamix_sdk.api._nested as _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeChangeLinkStateResultBool(_base.BaseAPIResultBool):
|
class CloudapiComputeChangeLinkStateImpl(
|
||||||
pass
|
_base.APIFunctionImpl
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeChangeLinkStateProtocol(
|
|
||||||
_base.BasePostAPIFunctionProtocol
|
|
||||||
):
|
):
|
||||||
def change_link_state(
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
interface: str,
|
interface: str,
|
||||||
state: _nested.LinkState,
|
state: _nested.LinkState,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
) -> CloudapiComputeChangeLinkStateResultBool:
|
async_mode: bool = False,
|
||||||
...
|
) -> bool | str:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -1,16 +1,14 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeChangeMacResultBool(_base.BaseAPIResultBool):
|
class CloudapiComputeChangeMacImpl(_base.APIFunctionImpl):
|
||||||
pass
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
class CloudapiComputeChangeMacProtocol(_base.BasePostAPIFunctionProtocol):
|
|
||||||
def change_mac(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
current_mac: str,
|
current_mac: str,
|
||||||
new_mac: str,
|
new_mac: str,
|
||||||
) -> CloudapiComputeChangeMacResultBool:
|
) -> bool:
|
||||||
...
|
raise NotImplementedError
|
||||||
@@ -1,18 +1,17 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeChangeMtuResultBool(_base.BaseAPIResultBool):
|
class CloudapiComputeChangeMtuImpl(
|
||||||
pass
|
_base.APIFunctionImpl
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeChangeMtuProtocol(
|
|
||||||
_base.BasePostAPIFunctionProtocol
|
|
||||||
):
|
):
|
||||||
def change_mtu(
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
interface: str,
|
interface: str,
|
||||||
mtu: int,
|
mtu: int,
|
||||||
) -> CloudapiComputeChangeMtuResultBool:
|
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
|
||||||
@@ -1,19 +1,18 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeChangeSecurityGroupsResultBool(_base.BaseAPIResultBool):
|
class CloudapiComputeChangeSecurityGroupsImpl(
|
||||||
pass
|
_base.APIFunctionImpl
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeChangeSecurityGroupsProtocol(
|
|
||||||
_base.BasePostAPIFunctionProtocol
|
|
||||||
):
|
):
|
||||||
def change_security_groups(
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
interface: str,
|
interface: str,
|
||||||
security_group_ids: list[int] | None = None,
|
security_group_ids: list[int] | None = None,
|
||||||
security_group_mode: bool | None = None,
|
security_group_mode: bool | None = None,
|
||||||
) -> CloudapiComputeChangeSecurityGroupsResultBool:
|
async_mode: bool = False,
|
||||||
...
|
) -> bool | str:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -1,12 +1,10 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeCloneResultStr(_base.BaseAPIResultStr):
|
class CloudapiComputeCloneImpl(_base.APIFunctionImpl):
|
||||||
pass
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
class CloudapiComputeCloneProtocol(_base.BasePostAPIFunctionProtocol):
|
|
||||||
def clone(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
@@ -17,5 +15,6 @@ class CloudapiComputeCloneProtocol(_base.BasePostAPIFunctionProtocol):
|
|||||||
snapshot_name: str | None = None,
|
snapshot_name: str | None = None,
|
||||||
sep_pool_name: str | None = None,
|
sep_pool_name: str | None = None,
|
||||||
sep_id: int | None = None,
|
sep_id: int | None = None,
|
||||||
) -> CloudapiComputeCloneResultStr:
|
async_mode: bool = True,
|
||||||
...
|
) -> str | int:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
import dynamix_sdk.base as _base
|
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeCloneAbortResultBool(
|
|
||||||
_base.BaseAPIResultBool,
|
|
||||||
):
|
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeCloneAbortProtocol(
|
|
||||||
_base.BasePostAPIFunctionProtocol
|
|
||||||
):
|
|
||||||
def clone_abort(
|
|
||||||
self,
|
|
||||||
*,
|
|
||||||
vm_id: int,
|
|
||||||
) -> CloudapiComputeCloneAbortResultBool:
|
|
||||||
...
|
|
||||||
@@ -1,15 +1,14 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeCreateTemplateResultStr(_base.BaseAPIResultStr):
|
class CloudapiComputeCreateTemplateImpl(_base.APIFunctionImpl):
|
||||||
pass
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
class CloudapiComputeCreateTemplateProtocol(_base.BasePostAPIFunctionProtocol):
|
|
||||||
def create_template(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
name: str
|
name: str,
|
||||||
) -> CloudapiComputeCreateTemplateResultStr:
|
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
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeDeleteResultBool(_base.BaseAPIResultBool):
|
class CloudapiComputeDeleteImpl(_base.APIFunctionImpl):
|
||||||
pass
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
class CloudapiComputeDeleteProtocol(_base.BasePostAPIFunctionProtocol):
|
|
||||||
def delete(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
detach_disks: bool = False,
|
detach_disks: bool = False,
|
||||||
permanently: 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
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeDeleteCustomFieldsResultBool(_base.BaseAPIResultBool):
|
class CloudapiComputeDeleteCustomFieldsImpl(
|
||||||
pass
|
_base.APIFunctionImpl
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeDeleteCustomFieldsProtocol(
|
|
||||||
_base.BasePostAPIFunctionProtocol
|
|
||||||
):
|
):
|
||||||
def delete_custom_fields(
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
) -> CloudapiComputeDeleteCustomFieldsResultBool:
|
) -> bool:
|
||||||
...
|
raise NotImplementedError
|
||||||
@@ -1,15 +1,13 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeDetachGpuResultBool(_base.BaseAPIResultBool):
|
class CloudapiComputeDetachGpuImpl(_base.APIFunctionImpl):
|
||||||
pass
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
class CloudapiComputeDetachGpuProtocol(_base.BasePostAPIFunctionProtocol):
|
|
||||||
def detach_gpu(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
vgpu_id: int | None = None,
|
vgpu_id: int | None = None,
|
||||||
) -> CloudapiComputeDetachGpuResultBool:
|
) -> bool:
|
||||||
...
|
raise NotImplementedError
|
||||||
@@ -1,17 +1,15 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeDetachPciDeviceResultBool(_base.BaseAPIResultBool):
|
class CloudapiComputeDetachPciDeviceImpl(
|
||||||
pass
|
_base.APIFunctionImpl,
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeDetachPciDeviceProtocol(
|
|
||||||
_base.BasePostAPIFunctionProtocol,
|
|
||||||
):
|
):
|
||||||
def detach_pci_device(
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
pci_device_id: int,
|
pci_device_id: int,
|
||||||
) -> CloudapiComputeDetachPciDeviceResultBool:
|
) -> bool:
|
||||||
...
|
raise NotImplementedError
|
||||||
@@ -1,16 +1,15 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeDisableResultBool(_base.BaseAPIResultBool):
|
class CloudapiComputeDisableImpl(
|
||||||
pass
|
_base.APIFunctionImpl
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeDisableProtocol(
|
|
||||||
_base.BasePostAPIFunctionProtocol
|
|
||||||
):
|
):
|
||||||
def disable(
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
) -> CloudapiComputeDisableResultBool:
|
async_mode: bool = False,
|
||||||
...
|
) -> bool | str:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -1,25 +1,23 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
import dynamix_sdk.api._nested as _nested
|
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeDiskAddResultInt(_base.BaseAPIResultInt):
|
class CloudapiComputeDiskAddImpl(_base.APIFunctionImpl):
|
||||||
pass
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
class CloudapiComputeDiskAddProtocol(_base.BasePostAPIFunctionProtocol):
|
|
||||||
def disk_add(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
name: str,
|
name: str,
|
||||||
disk_size_gb: int,
|
disk_size_gb: int,
|
||||||
storage_policy_id: int,
|
storage_policy_id: int,
|
||||||
disk_type: _nested.DiskType = _nested.DiskType.D,
|
|
||||||
sep_id: int | None = None,
|
sep_id: int | None = None,
|
||||||
sep_pool_name: str | None = None,
|
sep_pool_name: str | None = None,
|
||||||
description: str | None = None,
|
description: str | None = None,
|
||||||
image_id: int | None = None,
|
image_id: int | None = None,
|
||||||
pci_slot_num_hex: str | None = None,
|
pci_slot_num_hex: str | None = None,
|
||||||
bus_num_hex: str | None = None,
|
bus_num_hex: str | None = None,
|
||||||
) -> CloudapiComputeDiskAddResultInt:
|
async_mode: bool = False,
|
||||||
...
|
read_only_mode: bool = False,
|
||||||
|
) -> int | str:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -1,19 +1,17 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
import dynamix_sdk.api._nested as _nested
|
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeDiskAttachResultBool(_base.BaseAPIResultBool):
|
class CloudapiComputeDiskAttachImpl(_base.APIFunctionImpl):
|
||||||
pass
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
class CloudapiComputeDiskAttachProtocol(_base.BasePostAPIFunctionProtocol):
|
|
||||||
def disk_attach(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
disk_id: int,
|
disk_id: int,
|
||||||
disk_type: _nested.DiskType = _nested.DiskType.D,
|
|
||||||
pci_slot_num_hex: str | None = None,
|
pci_slot_num_hex: str | None = None,
|
||||||
bus_num_hex: str | None = None,
|
bus_num_hex: str | None = None,
|
||||||
) -> CloudapiComputeDiskAttachResultBool:
|
async_mode: bool = False,
|
||||||
...
|
read_only_mode: bool = False,
|
||||||
|
) -> bool | str:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -1,16 +1,15 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeDiskDelResultBool(_base.BaseAPIResultBool):
|
class CloudapiComputeDiskDelImpl(_base.APIFunctionImpl):
|
||||||
pass
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
class CloudapiComputeDiskDelProtocol(_base.BasePostAPIFunctionProtocol):
|
|
||||||
def disk_del(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
disk_id: int,
|
disk_id: int,
|
||||||
permanently: bool = True,
|
permanently: bool = True,
|
||||||
) -> CloudapiComputeDiskDelResultBool:
|
async_mode: bool = False,
|
||||||
...
|
) -> bool | str:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -1,15 +1,14 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeDiskDetachResultBool(_base.BaseAPIResultBool):
|
class CloudapiComputeDiskDetachImpl(_base.APIFunctionImpl):
|
||||||
pass
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
class CloudapiComputeDiskDetachProtocol(_base.BasePostAPIFunctionProtocol):
|
|
||||||
def disk_detach(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
disk_id: int,
|
disk_id: int,
|
||||||
) -> CloudapiComputeDiskDetachResultBool:
|
async_mode: bool = False,
|
||||||
...
|
) -> bool | str:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -1,19 +1,17 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeDiskMigrateResultBool(_base.BaseAPIResultBool):
|
class CloudapiComputeDiskMigrateImpl(
|
||||||
pass
|
_base.APIFunctionImpl
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeDiskMigrateProtocol(
|
|
||||||
_base.BasePostAPIFunctionProtocol
|
|
||||||
):
|
):
|
||||||
def disk_migrate(
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
disk_id: int,
|
disk_id: int,
|
||||||
target_disk_id: int,
|
target_disk_id: int,
|
||||||
mode: int = 1,
|
mode: int = 1,
|
||||||
) -> CloudapiComputeDiskMigrateResultBool:
|
) -> bool:
|
||||||
...
|
raise NotImplementedError
|
||||||
@@ -1,20 +1,18 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeDiskSwitchToReplicationResultBool(
|
class CloudapiComputeDiskSwitchToReplicationImpl(
|
||||||
_base.BaseAPIResultBool,
|
_base.APIFunctionImpl,
|
||||||
):
|
):
|
||||||
pass
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
class CloudapiComputeDiskSwitchToReplicationProtocol(
|
|
||||||
_base.BasePostAPIFunctionProtocol,
|
|
||||||
):
|
|
||||||
def disk_switch_to_replication(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
disk_id: int,
|
disk_id: int,
|
||||||
stop_replication: bool = False,
|
stop_replication: bool = False,
|
||||||
) -> CloudapiComputeDiskSwitchToReplicationResultBool:
|
planned: bool = True,
|
||||||
...
|
async_mode: bool = False,
|
||||||
|
) -> bool | str:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -1,14 +1,12 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeEnableResultBool(_base.BaseAPIResultBool):
|
class CloudapiComputeEnableImpl(_base.APIFunctionImpl):
|
||||||
pass
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
class CloudapiComputeEnableProtocol(_base.BasePostAPIFunctionProtocol):
|
|
||||||
def enable(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
) -> CloudapiComputeEnableResultBool:
|
) -> bool:
|
||||||
...
|
raise NotImplementedError
|
||||||
@@ -2,7 +2,7 @@ import dynamix_sdk.base as _base
|
|||||||
import dynamix_sdk.api._nested as _nested
|
import dynamix_sdk.api._nested as _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeGetResultModel(_base.BaseAPIResultModel):
|
class CloudapiComputeGetResultModel(_base.ResultModel):
|
||||||
account_id: int
|
account_id: int
|
||||||
account_name: str
|
account_name: str
|
||||||
acl: _nested.VMACLAPIResultNM
|
acl: _nested.VMACLAPIResultNM
|
||||||
@@ -21,8 +21,10 @@ class CloudapiComputeGetResultModel(_base.BaseAPIResultModel):
|
|||||||
cdrom_image_id: int
|
cdrom_image_id: int
|
||||||
chipset: _nested.Chipset
|
chipset: _nested.Chipset
|
||||||
ci_user_data: dict
|
ci_user_data: dict
|
||||||
|
clock_sync_mode: _nested.ClockSyncMode
|
||||||
clone_ids: list[int]
|
clone_ids: list[int]
|
||||||
clone_reference: int
|
clone_reference: int
|
||||||
|
cpu_alignment_profile: _nested.CPUAlignmentProfileAPIResultNM | dict
|
||||||
cpu_count: int
|
cpu_count: int
|
||||||
cpu_pin: bool
|
cpu_pin: bool
|
||||||
created_by: str
|
created_by: str
|
||||||
@@ -31,9 +33,10 @@ class CloudapiComputeGetResultModel(_base.BaseAPIResultModel):
|
|||||||
deleted_by: str
|
deleted_by: str
|
||||||
deleted_timestamp: int
|
deleted_timestamp: int
|
||||||
description: str
|
description: str
|
||||||
devices: dict
|
pci_devices: dict[str, int]
|
||||||
disks: list[_nested.DiskForCAComputeGetAPIResultNM]
|
disks: list[_nested.DiskForCAComputeGetAPIResultNM]
|
||||||
driver: _nested.Driver
|
driver: _nested.Driver
|
||||||
|
folder_id: int | None = None
|
||||||
grid_id: int
|
grid_id: int
|
||||||
guid: int
|
guid: int
|
||||||
hot_resize: bool
|
hot_resize: bool
|
||||||
@@ -46,6 +49,7 @@ class CloudapiComputeGetResultModel(_base.BaseAPIResultModel):
|
|||||||
lock_status: _nested.LockStatus
|
lock_status: _nested.LockStatus
|
||||||
manager_id: int
|
manager_id: int
|
||||||
manager_type: str
|
manager_type: str
|
||||||
|
memory_balloon_mode: _nested.MemoryBalloonMode
|
||||||
migration_job_id: int
|
migration_job_id: int
|
||||||
milestones: int
|
milestones: int
|
||||||
name: str
|
name: str
|
||||||
@@ -55,12 +59,14 @@ class CloudapiComputeGetResultModel(_base.BaseAPIResultModel):
|
|||||||
numa_node_id: int
|
numa_node_id: int
|
||||||
os_users: list[_nested.OSUserAPIResultNM]
|
os_users: list[_nested.OSUserAPIResultNM]
|
||||||
os_version: str
|
os_version: str
|
||||||
pinned_to_stack: bool
|
pinned_to_node: bool
|
||||||
preferred_cpu_cores: list[int]
|
preferred_cpu_cores: list[int]
|
||||||
ram_size_mb: int
|
ram_size_mb: int
|
||||||
|
read_only: bool
|
||||||
reference_id: str
|
reference_id: str
|
||||||
res_name: str
|
res_name: str
|
||||||
reserved_cpu_cores: list[int]
|
reserved_cpu_cores: list[int]
|
||||||
|
resized_online: bool
|
||||||
rg_id: int
|
rg_id: int
|
||||||
rg_name: str
|
rg_name: str
|
||||||
snapshot_sets: list[_nested.SnapshotSetAPIResultNM]
|
snapshot_sets: list[_nested.SnapshotSetAPIResultNM]
|
||||||
@@ -76,6 +82,8 @@ class CloudapiComputeGetResultModel(_base.BaseAPIResultModel):
|
|||||||
vm_ci_id: int
|
vm_ci_id: int
|
||||||
vnc_password: str
|
vnc_password: str
|
||||||
guest_agent: _nested.GuestAgentAPIResultNM
|
guest_agent: _nested.GuestAgentAPIResultNM
|
||||||
|
watchdog_action: _nested.WatchdogAction
|
||||||
|
weight: int
|
||||||
zone_id: int
|
zone_id: int
|
||||||
|
|
||||||
natable_vins_id: int = 0
|
natable_vins_id: int = 0
|
||||||
@@ -84,23 +92,25 @@ class CloudapiComputeGetResultModel(_base.BaseAPIResultModel):
|
|||||||
natable_vins_network: str = ''
|
natable_vins_network: str = ''
|
||||||
natable_vins_network_name: str = ''
|
natable_vins_network_name: str = ''
|
||||||
|
|
||||||
@property
|
@_base.computed_field
|
||||||
def created_datetime(self):
|
def created_datetime(self) -> _base.datetime | None:
|
||||||
return self._get_datetime_from_timestamp(self.created_timestamp)
|
return self._get_datetime_from_timestamp(self.created_timestamp)
|
||||||
|
|
||||||
@property
|
@_base.computed_field
|
||||||
def deleted_datetime(self):
|
def deleted_datetime(self) -> _base.datetime | None:
|
||||||
return self._get_datetime_from_timestamp(self.deleted_timestamp)
|
return self._get_datetime_from_timestamp(self.deleted_timestamp)
|
||||||
|
|
||||||
@property
|
@_base.computed_field
|
||||||
def updated_datetime(self):
|
def updated_datetime(self) -> _base.datetime | None:
|
||||||
return self._get_datetime_from_timestamp(self.updated_timestamp)
|
return self._get_datetime_from_timestamp(self.updated_timestamp)
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeGetProtocol(_base.BasePostAPIFunctionProtocol):
|
class CloudapiComputeGetImpl(_base.APIFunctionImpl):
|
||||||
def get(
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
) -> CloudapiComputeGetResultModel:
|
) -> CloudapiComputeGetResultModel:
|
||||||
...
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
import dynamix_sdk.base as _base
|
||||||
|
import dynamix_sdk.api._nested as _nested
|
||||||
|
|
||||||
|
|
||||||
|
class CloudapiComputeGetAclAccessResultModel(_base.ResultModel):
|
||||||
|
data: _nested.VMACLAPIResultNM
|
||||||
|
entry_count: int
|
||||||
|
|
||||||
|
|
||||||
|
class CloudapiComputeGetAclAccessImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
id: int,
|
||||||
|
) -> CloudapiComputeGetAclAccessResultModel:
|
||||||
|
raise NotImplementedError
|
||||||
Loaded 100 of 1044 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user