Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
27d7234dde |
No files matched your search
@@ -0,0 +1,32 @@
|
||||
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
|
||||
+8
-628
@@ -1,640 +1,20 @@
|
||||
# Список изменений в версии 2.1.0
|
||||
|
||||
## Изменено
|
||||
| Идентификатор<br>задачи | Описание |
|
||||
| --- | --- |
|
||||
| BPYS-1702 | Функции `cloudapi.compute.get`, `cloudapi.vgpu.list`: в модели результата переименованы поля `created_timestamp`, `deleted_timestamp`, `last_update_timestamp`, `pci_slot_num`, `pgpu_mode`, `vm_id` в `created_time`, `deleted_time`, `last_update_time`, `pci_slot`, `split_mode`, `compute_id`. |
|
||||
| BPYS-1713 | Функция `cloudapi.kvmx86.create`: тип результата изменён с `int` на `int \| str`. |
|
||||
| BPYS-1710 | Функция `cloudapi.disks.list`: тип параметра `status` изменён с `DiskStatus \| None` на `list[DiskStatus] \| None`. |
|
||||
| BPYS-1752 | Функция `cloudbroker.disks.list`: тип параметра `status` изменён с `DiskStatus \| None` на `list[DiskStatus] \| None`. |
|
||||
| BPYS-1709 | Функция `cloudapi.disks.create`: тип результата изменён с `int` на `int \| str`. |
|
||||
| BPYS-1750 | Функция `cloudbroker.disks.create`: тип результата изменён с `int` на `int \| str`. |
|
||||
| BPYS-1755 | Функция `cloudbroker.kvmx86.create`: тип результата изменён с `int` на `int \| str`. |
|
||||
| BPYS-1756 | Функция `cloudbroker.kvmx86.create`: переименован параметр `cpupin` в `cpu_pin`. |
|
||||
| BPYS-1762 | Функции `cloudapi.rg.get`, `cloudapi.rg.list`: в модели результата тип поля `sdn_access_group_id` изменён с `str` на `str \| None`. |
|
||||
| BPYS-1768 | Функция `cloudbroker.rg.list`: тип поля `data.sdn_access_group_id` изменён с `str` на `str \| None`. |
|
||||
| BPYS-1763 | Функция `cloudbroker.rg.get`: тип поля `sdn_access_group_id` изменён с `str` на `str \| None`. |
|
||||
| BPYS-1791 | Функция `cloudapi.k8s.create`: тип параметра `ci_user_data` изменён с `str \| None` на `str \| dict \| None`. |
|
||||
| BPYS-1739 | Функция `cloudapi.vgpu.list`: переименованы параметры `vm_id`, `pgpu_mode` в `compute_id`, `split_mode`. |
|
||||
| BPYS-1790 | Функция `cloudbroker.bservice.group_add`: тип параметра `user_data` изменён с `str \| None` на `str \| dict \| None`. |
|
||||
| BPYS-1792 | Функция `cloudapi.k8s.update_worker_nodes_meta_data`: тип параметра `ci_user_data` изменён с `str` на `str \| dict`. |
|
||||
| BPYS-1789 | Функция `cloudapi.bservice.group_add`: тип параметра `ci_user_data` изменён с `str \| None` на `str \| dict \| None`. |
|
||||
| BPYS-1805 | Функция `cloudapi.account.list`: в модели результата тип поля `data.acl.type` изменён с `str` на `ACLType`. |
|
||||
| BPYS-1806 | Функции `cloudapi.account.get`, `cloudapi.rg.get`, `cloudbroker.account.get`, `cloudbroker.rg.get`: в модели результата тип поля `acl.type` изменён с `str` на `ACLType`. Функции `cloudapi.account.list_deleted`, `cloudapi.rg.list_deleted`: в модели результата тип поля `data.acl.type` изменён с `str` на `ACLType`. Функция `cloudapi.compute.get`: в модели результата тип поля `acl.vm.type` изменён с `str` на `ACLType`. Функция `cloudapi.compute.user_list`: в модели результата тип полей `data.account.type`, `data.rg.type`, `data.vm.type` изменён с `str` на `ACLType`. Функция `cloudapi.k8s.get`: в модели результата тип полей `acl.account.type`, `acl.k8s.type`, `acl.rg.type` изменён с `str` на `ACLType`. |
|
||||
| BPYS-1807 | Функция `cloudapi.compute.get`: в модели результата тип поля `acl.account.type` изменён с `str` на `ACLType`. |
|
||||
| BPYS-1808 | Функция `cloudapi.compute.get`: в модели результата тип поля `acl.rg.type` изменён с `str` на `ACLType`. |
|
||||
| BPYS-1809 | Функция `cloudapi.compute.list`: в модели результата тип поля `data.acl.type` изменён с `str` на `ACLType`. |
|
||||
| BPYS-1810 | Функция `cloudapi.compute.list_deleted`: в модели результата тип поля `data.acl.type` изменён с `str` на `ACLType`. |
|
||||
| BPYS-1813 | Функция `cloudapi.rg.list`: в модели результата тип поля `data.acl.type` изменён с `str` на `ACLType`. |
|
||||
| BPYS-1814 | Функция `cloudapi.rg.list_deleted`: в модели результата тип поля `data.account_acl.type` изменён с `str` на `ACLType`. |
|
||||
| BPYS-1815 | Функция `cloudbroker.account.list`: в модели результата тип поля `data.acl.type` изменён с `str` на `ACLType`. |
|
||||
| BPYS-1816 | Функция `cloudbroker.account.list_deleted`: в модели результата тип поля `data.acl.type` изменён с `str` на `ACLType`. |
|
||||
| BPYS-1820 | Функция `cloudbroker.rg.list`: в модели результата тип поля `data.acl.type` изменён с `str` на `ACLType`. |
|
||||
| BPYS-1823 | Функции `cloudapi.account.list`, `cloudapi.account.list_deleted`, `cloudapi.rg.list`, `cloudapi.rg.list_deleted`, `cloudbroker.account.list`, `cloudbroker.account.list_deleted`, `cloudbroker.rg.list`: в модели результата тип поля `data.acl.user_name` изменён с `str` на `str \| int`. |
|
||||
| BPYS-1838 | Функция `cloudapi.disks.change_disk_storage_policy`: тип результата изменён с `bool` на `bool \| str`. |
|
||||
| BPYS-1844 | Функция `cloudapi.disks.limit_io`: тип результата изменён с `bool` на `bool \| str`. |
|
||||
| BPYS-1840 | Функция `cloudapi.disks.delete`: тип результата изменён с `bool` на `bool \| str`. |
|
||||
| BPYS-1846 | Функция `cloudapi.disks.rename`: тип результата изменён с `bool` на `bool \| str`. |
|
||||
| BPYS-1850 | Функция `cloudapi.disks.restore`: тип результата изменён с `bool` на `bool \| str`. |
|
||||
| BPYS-1842 | Функция `cloudapi.disks.delete_disks`: тип результата изменён с `bool` на `bool \| str`. |
|
||||
| BPYS-1859 | Функция `cloudapi.locations.list`: в модели результата тип поля `data.network_modes` изменён с `list[str]` на `list[NetworkMode]`. |
|
||||
| BPYS-1848 | Функция `cloudapi.disks.resize2`: тип результата изменён с `bool` на `bool \| str`. |
|
||||
| BPYS-1852 | Функция `cloudapi.disks.share`: тип результата изменён с `bool` на `bool \| str`. |
|
||||
| BPYS-1854 | Функция `cloudapi.disks.snapshot_delete`: тип результата изменён с `bool` на `bool \| str`. |
|
||||
| BPYS-1871 | Функция `cloudbroker.disks.delete_disks`: тип результата изменён с `bool` на `bool \| str`. |
|
||||
| BPYS-1873 | Функция `cloudbroker.disks.depresent`: тип результата изменён с `bool` на `bool \| str`. |
|
||||
| BPYS-1875 | Функция `cloudbroker.disks.limit_io`: тип результата изменён с `bool` на `bool \| str`. |
|
||||
| BPYS-1877 | Функция `cloudbroker.disks.migrate_abort`: тип результата изменён с `bool` на `bool \| str`. |
|
||||
| BPYS-1856 | Функция `cloudapi.disks.snapshot_rollback`: тип результата изменён с `bool` на `bool \| str`. |
|
||||
| BPYS-1889 | Функция `cloudapi.rg.list_deleted`: в модели результата тип поля `data.sdn_access_group_id` изменён с `str` на `str \| None`. |
|
||||
| BPYS-1858 | Функция `cloudapi.disks.unshare`: тип результата изменён с `bool` на `bool \| str`. |
|
||||
| BPYS-1867 | Функция `cloudbroker.disks.change_disk_storage_policy`: тип результата изменён с `bool` на `bool \| str`. |
|
||||
| BPYS-1869 | Функция `cloudbroker.disks.delete`: тип результата изменён с `bool` на `bool \| str`. |
|
||||
| BPYS-1914 | Функция `cloudapi.vins.vnfdev_redeploy`: тип результата изменён с `bool` на `bool \| str`. |
|
||||
| BPYS-1912 | Функция `cloudapi.vins.enable`: тип результата изменён с `bool` на `bool \| str`. |
|
||||
| BPYS-1910 | Функции `cloudapi.vins.create_in_rg`, `cloudbroker.vins.create_in_rg`: тип результата изменён с `int` на `int \| str`. |
|
||||
| BPYS-1908 | Функции `cloudapi.vins.create_in_account`, `cloudbroker.vins.create_in_account`: тип результата изменён с `int` на `int \| str`. |
|
||||
| BPYS-1916 | Функция `cloudapi.vins.vnfdev_restart`: тип результата изменён с `bool` на `bool \| str`. |
|
||||
| BPYS-1918 | Функция `cloudbroker.extnet.create`: тип результата изменён с `int` на `int \| str`. |
|
||||
| BPYS-1961 | Функция `cloudapi.compute.affinity_rule_add`: тип результата изменён с `bool` на `bool \| str \| CloudapiComputeAffinityRuleAddResultModel`. |
|
||||
| BPYS-1961 | Функция `cloudbroker.compute.affinity_rule_add`: тип результата изменён с `bool` на `bool \| str \| CloudbrokerComputeAffinityRuleAddResultModel`. |
|
||||
| BPYS-1962 | Функция `cloudapi.compute.anti_affinity_rule_add`: тип результата изменён с `bool` на `bool \| str \| CloudapiComputeAntiAffinityRuleAddResultModel`. |
|
||||
| BPYS-1962 | Функция `cloudbroker.compute.anti_affinity_rule_add`: тип результата изменён с `bool` на `bool \| str \| CloudbrokerComputeAntiAffinityRuleAddResultModel`. |
|
||||
| BPYS-2069 | Функция `cloudbroker.extnet.enable`: тип результата изменён с `bool` на `bool \| str`. |
|
||||
| BPYS-2275 | Функции `cloudapi.compute.pfw_list`, `cloudbroker.compute.pfw_list`: в модели результата тип поля `data.local_port` изменён с `int` на `int \| None`. |
|
||||
| BPYS-2326 | Закреплена минорная версия Python `3.12` и версии зависимостей: `requests==2.32.3`, `pydantic==2.13.5`, `pyyaml==6.0.2`. |
|
||||
| BPYS-2065 | Функция `cloudbroker.kvmx86.create`: для параметра `memory_balloon_mode` изменено значение по умолчанию с `MemoryBalloonMode.AUTO` на `MemoryBalloonMode.NONE`. |
|
||||
| BPYS-2063 | Функция `cloudapi.kvmx86.create`: для параметра `memory_balloon_mode` изменено значение по умолчанию с `MemoryBalloonMode.AUTO` на `MemoryBalloonMode.NONE`. |
|
||||
| BPYS-2066 | Функция `cloudbroker.kvmx86.create_blank`: для параметра `memory_balloon_mode` изменено значение по умолчанию с `MemoryBalloonMode.AUTO` на `MemoryBalloonMode.NONE`. |
|
||||
| BPYS-2064 | Функция `cloudapi.kvmx86.create_blank`: для параметра `memory_balloon_mode` изменено значение по умолчанию с `MemoryBalloonMode.AUTO` на `MemoryBalloonMode.NONE`. |
|
||||
| BPYS-2395 | Функция `cloudbroker.compute.migrate_v2_get`: в модели результата тип поля `progress.disks` изменён с `ProgressDisksAllCopiedDisks \| ProgressDisksCurrentDisk \| None` на `Disks \| None`. Поля `progress.observation`, `progress.memory`, `progress.disks` стали обязательными. |
|
||||
| BPYS-2397 | Функция `cloudbroker.compute.migrate_v2_get`: в модели результата тип полей `domain_name`, `domain_uuid`, `source_tech_status` изменён с `str` на `str \| None`, тип поля `source_node_id` изменён с `int` на `int \| None`. |
|
||||
| BPYS-2396 | Функция `cloudbroker.compute.migrate_v2_list`: в модели результата тип поля `data.progress.disks` изменён с `ProgressDisksAllCopiedDisks \| ProgressDisksCurrentDisk \| None` на `Disks \| None`, тип поля `data.progress.disks.disks_completed` изменён с `int` на `int \| None`. Поля `data.progress.observation`, `data.progress.memory`, `data.progress.disks` стали обязательными. |
|
||||
| BPYS-2398 | Функция `cloudbroker.compute.migrate_v2_list`: в модели результата тип полей `data.domain_name`, `data.domain_uuid`, `data.source_tech_status` изменён с `str` на `str \| None`, тип поля `data.source_node_id` изменён с `int` на `int \| None`. |
|
||||
| BPYS-2416 | Функции `cloudbroker.account.delete_accounts`, `cloudbroker.account.disable_accounts`, `cloudbroker.account.enable_accounts`: тип результата изменён с `str` на `list[int] \| str`. |
|
||||
| BPYS-2415 | Функция `cloudbroker.account.create`: тип результата изменён с `int` на `int \| str`. |
|
||||
| BPYS-2414 | Функции `cloudapi.account.add_user`, `cloudapi.account.add_acl_access`, `cloudapi.account.del_acl_access`, `cloudapi.account.delete_user`, `cloudapi.account.update`, `cloudapi.account.update_user`, `cloudapi.account.update_acl_access`, `cloudbroker.account.add_user`, `cloudbroker.account.add_zone`, `cloudbroker.account.add_acl_access`, `cloudbroker.account.add_storage_policy`, `cloudbroker.account.del_acl_access`, `cloudbroker.account.del_storage_policy`, `cloudbroker.account.delete_user`, `cloudbroker.account.grant_access_templates`, `cloudbroker.account.remove_zone`, `cloudbroker.account.revoke_access_templates`, `cloudbroker.account.set_cpu_allocation_parameter`, `cloudbroker.account.set_cpu_allocation_ratio`, `cloudbroker.account.update`, `cloudbroker.account.update_compute_features`, `cloudbroker.account.update_resource_types`, `cloudbroker.account.update_user`, `cloudbroker.account.update_acl_access`: тип результата изменён с `bool` на `bool \| str`. |
|
||||
# Список изменений в версии 1.2.3
|
||||
|
||||
## Добавлено
|
||||
|
||||
### Функциональный интерфейс
|
||||
| Идентификатор<br>задачи | Описание |
|
||||
| --- | --- |
|
||||
| BPYS-1678 | Добавлена функция `cloudbroker.compute.get`. |
|
||||
| BPYS-1679 | Добавлена функция `cloudbroker.compute.list`. |
|
||||
| BPYS-1680 | Добавлена функция `cloudbroker.compute.start`. |
|
||||
| BPYS-1681 | Добавлена функция `cloudbroker.compute.stop`. |
|
||||
| BPYS-1684 | Добавлена функция `cloudbroker.compute.enable`. |
|
||||
| BPYS-1675 | Добавлена функция `cloudbroker.compute.disable`. |
|
||||
| BPYS-1688 | Добавлена функция `cloudbroker.compute.disk_add`. |
|
||||
| BPYS-1689 | Добавлена функция `cloudbroker.compute.disk_attach`. |
|
||||
| BPYS-1690 | Добавлена функция `cloudbroker.compute.disk_del`. |
|
||||
| BPYS-1691 | Добавлена функция `cloudbroker.compute.disk_detach`. |
|
||||
| BPYS-1701 | Функция `cloudapi.compute.get`: в модель результата добавлено поле `vgpus.mdev_uuid`. |
|
||||
| BPYS-1702 | Функции `cloudapi.compute.get`, `cloudapi.vgpu.list`: в модели результата добавлены поля `account_ids`, `profile_reference`, `device_reference`, `parent_pci_address`. |
|
||||
| BPYS-1712 | Функция `cloudapi.kvmx86.create`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1698 | Функция `cloudapi.user.brief`: в модели результата добавлены поля `accounts.confirmed`, `accounts.deleted`, `accounts.destroyed`, `accounts.destroying`. |
|
||||
| BPYS-1699 | Функция `cloudapi.user.brief`: в модели результата добавлены поля `rgs.modeled`, `rgs.created`, `rgs.deleted`, `rgs.deleting`, `rgs.destroyed`, `rgs.destroying`, `rgs.disabling`, `rgs.enabling`, `rgs.restoring`. |
|
||||
| BPYS-1700 | Функция `cloudapi.user.brief`: в модели результата добавлены поля `vms.starting`, `vms.stopping`, `vms.paused`, `vms.pausing`, `vms.merge`, `vms.migrating`, `vms.migrating_in`, `vms.migrating_out`, `vms.down`, `vms.scheduled`, `vms.backup_stopped`, `vms.backup_running`, `vms.snapcreate`, `vms.cloning`, `vms.rollback`. |
|
||||
| BPYS-1725 | Функция `cloudapi.pcidevice.list`: в модель результата добавлено поле `data.account_ids`. |
|
||||
| BPYS-1727 | Функция `cloudapi.pcidevice.list`: добавлен параметр `account_id`. |
|
||||
| BPYS-1703 | Функция `cloudapi.compute.get`: в модель результата добавлено поле `watchdog_action`. |
|
||||
| BPYS-1697 | Функция `cloudapi.account.get`: в модель результата добавлены поля `vm_counts.starting`, `vm_counts.stopping`, `vm_counts.paused`, `vm_counts.pausing`, `vm_counts.merge`, `vm_counts.migrating`, `vm_counts.migrating_in`, `vm_counts.migrating_out`, `vm_counts.down`, `vm_counts.scheduled`, `vm_counts.backup_stopped`, `vm_counts.backup_running`, `vm_counts.snapcreate`, `vm_counts.cloning`, `vm_counts.rollback`. |
|
||||
| BPYS-1704 | Функция `cloudapi.compute.list`: в модель результата добавлено поле `data.disks.image_id`. |
|
||||
| BPYS-1705 | Функции `cloudapi.compute.list`, `cloudapi.compute.list_deleted`: в модель результата добавлено поле `data.watchdog_action`. |
|
||||
| BPYS-1708 | Функция `cloudapi.disks.create`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1731 | Функция `cloudapi.tasks.list`: добавлен параметр `created_time_to`. |
|
||||
| BPYS-1732 | Функция `cloudapi.tasks.list`: добавлен параметр `created_time_at`. |
|
||||
| BPYS-1744 | Функция `cloudapi.vins.list`: в модель результата добавлено поле `data.enable_default_gateway`. |
|
||||
| BPYS-1745 | Функция `cloudapi.zone.get`: в модель результата добавлены поля `logging_level`, `sdrs`, `sdrs_mode`. |
|
||||
| BPYS-1746 | Функция `cloudapi.zone.list`: в модель результата добавлены поля `data.logging_level`, `data.sdrs`, `data.sdrs_mode`. |
|
||||
| BPYS-1707 | Функция `cloudapi.compute.update`: добавлен параметр `watchdog_action`. |
|
||||
| BPYS-1782 | Функция `cloudapi.compute.snapshot_list`: в модель результата добавлено поле `data.compute.watchdog_action`. |
|
||||
| BPYS-1683 | Добавлена функция `cloudbroker.compute.restore`. |
|
||||
| BPYS-1686 | Добавлена функция `cloudbroker.compute.net_attach`. |
|
||||
| BPYS-1687 | Добавлена функция `cloudbroker.compute.net_detach`. |
|
||||
| BPYS-1676 | Добавлена функция `cloudbroker.extnet.get`. |
|
||||
| BPYS-1677 | Добавлена функция `cloudbroker.extnet.list`. |
|
||||
| BPYS-1747 | Функции `cloudapi.account.get`, `cloudapi.account.list`, `cloudapi.account.list_deleted`, `cloudapi.rg.get`, `cloudapi.rg.list`, `cloudapi.rg.list_deleted`, `cloudbroker.account.create`, `cloudbroker.account.get`, `cloudbroker.account.list`, `cloudbroker.account.list_deleted`, `cloudbroker.account.update_compute_features`, `cloudbroker.rg.create`, `cloudbroker.rg.list`: в перечисляемый тип `VMFeature` добавлен атрибут `PCIDEVICE`. |
|
||||
| BPYS-1748 | Функции `cloudapi.account.get`, `cloudapi.account.list`, `cloudapi.account.list_deleted`, `cloudapi.rg.get`, `cloudapi.rg.list`, `cloudapi.rg.list_deleted`, `cloudbroker.account.create`, `cloudbroker.account.get`, `cloudbroker.account.list`, `cloudbroker.account.list_deleted`, `cloudbroker.account.update_compute_features`, `cloudbroker.rg.create`, `cloudbroker.rg.list`: в перечисляемый тип `VMFeature` добавлен атрибут `VGPU`. |
|
||||
| BPYS-1749 | Функция `cloudbroker.disks.create`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1754 | Функция `cloudbroker.kvmx86.create`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1758 | Функция `cloudbroker.kvmx86.create`: добавлен параметр `watchdog_action`. |
|
||||
| BPYS-1773 | Функция `cloudbroker.kvmx86.create`: добавлен параметр `data_disks.read_only`. |
|
||||
| BPYS-1778 | Функция `cloudbroker.kvmx86.create`: добавлен параметр `interfaces.qos_policies`. |
|
||||
| BPYS-1706 | Функция `cloudapi.compute.netAttach`: добавлен параметр `qos_policies`. |
|
||||
| BPYS-1717 | Функция `cloudapi.locations.list`: в модель результата добавлено поле `data.budget`. |
|
||||
| BPYS-1715 | Функция `cloudapi.kvmx86.create`: добавлен параметр `watchdog_action`. |
|
||||
| BPYS-1771 | Функции `cloudapi.kvmx86.create`, `cloudapi.kvmx86.create_blank`: добавлен параметр `data_disks.read_only`. |
|
||||
| BPYS-1775 | Функции `cloudapi.kvmx86.create`, `cloudapi.kvmx86.create_blank`: добавлен параметр `interfaces.qos_policies`. |
|
||||
| BPYS-1784 | Функции `cloudapi.vins.get`, `cloudbroker.vins.get`: в модели результатов добавлены поля `vnfdev.interfaces.qos_policies`/`vnf_dev.interfaces.qos_policies`. |
|
||||
| BPYS-1753 | Функция `cloudbroker.disks.migrate`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1757 | Функция `cloudbroker.kvmx86.create_blank`: добавлен параметр `watchdog_action`. |
|
||||
| BPYS-1738 | Функция `cloudapi.vgpu.list`: добавлен параметр `node_id`. |
|
||||
| BPYS-1759 | Функция `cloudbroker.rg.create`: добавлен параметр `ipcidr`. |
|
||||
| BPYS-1766 | Добавлена функция `cloudapi.compute.change_qos_policies`. |
|
||||
| BPYS-1716 | Функция `cloudapi.kvmx86.create_blank`: добавлен параметр `watchdog_action`. |
|
||||
| BPYS-1721 | Добавлена функция `cloudapi.network_qos_policy.delete_rule`. |
|
||||
| BPYS-1722 | Добавлена функция `cloudapi.network_qos_policy.delete`. |
|
||||
| BPYS-1724 | Добавлена функция `cloudapi.network_qos_policy.create`. |
|
||||
| BPYS-1719 | Добавлена функция `cloudapi.network_qos_policy.list`. |
|
||||
| BPYS-1720 | Добавлена функция `cloudapi.network_qos_policy.get`. |
|
||||
| BPYS-1803 | Добавлена функция `cloudbroker.compute.resize`. |
|
||||
| BPYS-1799 | Добавлена функция `cloudbroker.compute.pause`. |
|
||||
| BPYS-1804 | Добавлена функция `cloudbroker.compute.redeploy`. |
|
||||
| BPYS-1800 | Добавлена функция `cloudbroker.compute.reset`. |
|
||||
| BPYS-1798 | Добавлена функция `cloudbroker.compute.reboot`. |
|
||||
| BPYS-1795 | Добавлена функция `cloudbroker.compute.boot_disk_set`. |
|
||||
| BPYS-1801 | Добавлена функция `cloudapi.account.add_acl_access`. |
|
||||
| BPYS-1802 | Добавлена функция `cloudapi.account.del_acl_access`. |
|
||||
| BPYS-1811 | Добавлена функция `cloudapi.compute.get_acl_access`. |
|
||||
| BPYS-1821 | Добавлена функция `cloudbroker.compute.affinity_rule_add`. |
|
||||
| BPYS-1822 | Добавлена функция `cloudbroker.compute.affinity_rule_remove`. |
|
||||
| BPYS-1812 | Добавлена функция `cloudapi.rg.get_acl_access`. |
|
||||
| BPYS-1860 | Добавлена функция `cloudbroker.compute.anti_affinity_rule_add`. |
|
||||
| BPYS-1831 | Функция `cloudbroker.compute.get`: в модель результата добавлено поле `memory_balloon_mode`. |
|
||||
| BPYS-1832 | Функции `cloudapi.compute.get`, `cloudbroker.compute.get`: в модель результата добавлено поле `vgpus.profile_name`. |
|
||||
| BPYS-1832 | Функция `cloudapi.vgpu.list`: в модель результата добавлено поле `data.profile_name`. |
|
||||
| BPYS-1833 | Функции `cloudapi.compute.list`, `cloudapi.compute.list_deleted`: в модель результата добавлено поле `data.memory_balloon_mode`. |
|
||||
| BPYS-1834 | Функция `cloudapi.compute.update`: добавлен параметр `memory_balloon_mode`. |
|
||||
| BPYS-1836 | Функция `cloudapi.kvmx86.create_blank`: добавлен параметр `memory_balloon_mode`. |
|
||||
| BPYS-1829 | Функция `cloudapi.compute.get`: в модель результата добавлено поле `memory_balloon_mode`. |
|
||||
| BPYS-1830 | Функция `cloudapi.compute.get`: в модель результата добавлено поле `vgpus.profile_name`. |
|
||||
| BPYS-1837 | Функция `cloudapi.disks.change_disk_storage_policy`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1843 | Функция `cloudapi.disks.limit_io`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1839 | Функция `cloudapi.disks.delete`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1845 | Функция `cloudapi.disks.rename`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1849 | Функция `cloudapi.disks.restore`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1841 | Функция `cloudapi.disks.delete_disks`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1835 | Функция `cloudapi.kvmx86.create`: добавлен параметр `memory_balloon_mode`. |
|
||||
| BPYS-1847 | Функция `cloudapi.disks.resize2`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1851 | Функция `cloudapi.disks.share`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1853 | Функция `cloudapi.disks.snapshot_delete`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1872 | Функция `cloudbroker.disks.depresent`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1874 | Функция `cloudbroker.disks.limit_io`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1876 | Функция `cloudbroker.disks.migrate_abort`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1881 | Функция `cloudapi.compute.get`: в модель результата добавлено поле `snapshot_sets.vm.memory_balloon_mode`. |
|
||||
| BPYS-1881 | Функция `cloudbroker.compute.get`: в модель результата добавлено поле `snap_sets.vm.memory_balloon_mode`. |
|
||||
| BPYS-1882 | Функция `cloudapi.compute.snapshot_list`: в модель результата добавлено поле `data.vm.memory_balloon_mode`. |
|
||||
| BPYS-1883 | Функция `cloudapi.extnet.get`: в модель результата добавлено поле `dhcp_reservations.auto_assignable`. |
|
||||
| BPYS-1884 | Функция `cloudapi.extnet.get`: в модель результата добавлено поле `dhcp_excluded_reservations.auto_assignable`. |
|
||||
| BPYS-1885 | Функция `cloudapi.extnet.get`: в модель результата добавлено поле `pre_reservations.auto_assignable`. |
|
||||
| BPYS-1886 | Функция `cloudbroker.extnet.get`: в модель результата добавлено поле `reservations.auto_assignable`. |
|
||||
| BPYS-1887 | Функция `cloudbroker.extnet.get`: в модель результата добавлено поле `excluded.auto_assignable`. |
|
||||
| BPYS-1888 | Функция `cloudbroker.extnet.get`: в модель результата добавлено поле `pre_reservations.auto_assignable`. |
|
||||
| BPYS-1855 | Функция `cloudapi.disks.snapshot_rollback`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1857 | Функция `cloudapi.disks.unshare`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1827 | Добавлена функция `cloudapi.compute.del_acl_access`. |
|
||||
| BPYS-1825 | Добавлена функция `cloudapi.account.update_acl_access`. |
|
||||
| BPYS-1866 | Функция `cloudbroker.disks.change_disk_storage_policy`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1868 | Функция `cloudbroker.disks.delete`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1841 | Функция `cloudbroker.vm.list`: в модель результата добавлено поле `data.memory_balloon_mode`. |
|
||||
| BPYS-1894 | Функция `cloudapi.audit.get`: в модель результата добавлено поле `public_session_id`. |
|
||||
| BPYS-1894 | Функция `cloudapi.audit.list`, `cloudbroker.audit.list`: в модель результата добавлено поле `data.public_session_id`. |
|
||||
| BPYS-1881 | Функции `cloudapi.compute.list`, `cloudbroker.compute.list`, `cloudapi.compute.list_deleted`: в модель результата добавлено поле `data.snapshot_sets.vm.memory_balloon_mode`. |
|
||||
| BPYS-1881 | Функции `cloudbroker.compute.list`, `cloudapi.compute.list_deleted`: в модель результата добавлено поле `snapshot_sets.vm.memory_balloon_mode`. |
|
||||
| BPYS-1886 | Функции `cloudapi.vins.get`, `cloudbroker.vins.get`: в модель результата добавлено поле `vnfs.dhcp.config.reservations.auto_assignable`. |
|
||||
| BPYS-1886 | Функция `cloudapi.vins.ip_list`: в модель результата добавлено поле `data.auto_assignable`. |
|
||||
| BPYS-1828 | Добавлена функция `cloudapi.compute.update_acl_access`. |
|
||||
| BPYS-1826 | Добавлена функция `cloudapi.compute.add_acl_access`. |
|
||||
| BPYS-1861 | Добавлена функция `cloudapi.rg.add_acl_access`. |
|
||||
| BPYS-1862 | Добавлена функция `cloudapi.rg.del_acl_access`. |
|
||||
| BPYS-1870 | Функция `cloudbroker.disks.delete_disks`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1863 | Добавлена функция `cloudapi.rg.update_acl_access`. |
|
||||
| BPYS-1897 | Функция `cloudbroker.audit.list`: добавлен параметр `public_session_id`. |
|
||||
| BPYS-1879 | Функция `cloudbroker.kvmx86.create_blank`: добавлен параметр `memory_balloon_mode`. |
|
||||
| BPYS-1896 | Функция `cloudapi.audit.list`: добавлен параметр `public_session_id`. |
|
||||
| BPYS-1907 | Добавлена функция `cloudbroker.vins.delete`. |
|
||||
| BPYS-1905 | Добавлена функция `cloudbroker.rg.update`. |
|
||||
| BPYS-1904 | Добавлена функция `cloudbroker.rg.delete`. |
|
||||
| BPYS-1878 | Функция `cloudbroker.kvmx86.create`: добавлен параметр `memory_balloon_mode`. |
|
||||
| BPYS-1906 | Функция `cloudapi.locations.list`: в модель результата добавлено поле `data.vm_folders_enabled`. |
|
||||
| BPYS-1915 | Функция `cloudapi.vins.vnfdev_redeploy`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1913 | Функция `cloudapi.vins.enable`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1911 | Функции `cloudapi.vins.create_in_rg`, `cloudbroker.vins.create_in_rg`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1909 | Функции `cloudapi.vins.create_in_account`, `cloudbroker.vins.create_in_account`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1932 | Добавлена функция `cloudbroker.extnet.destroy`. |
|
||||
| BPYS-1933 | Добавлена функция `cloudbroker.extnet.update`. |
|
||||
| BPYS-1723 | Добавлена функция `cloudapi.network_qos_policy.create_rule`. |
|
||||
| BPYS-1718 | Добавлена функция `cloudapi.network_qos_policy.update`. |
|
||||
| BPYS-1940 | Добавлена функция `cloudbroker.extnet.enable`. |
|
||||
| BPYS-1939 | Добавлена функция `cloudbroker.extnet.disable`. |
|
||||
| BPYS-1936 | Добавлена функция `cloudbroker.vins.enable`. |
|
||||
| BPYS-1917 | Функция `cloudapi.vins.vnfdev_restart`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1919 | Функция `cloudbroker.extnet.create`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1930 | Функции `cloudapi.compute.list`, `cloudapi.compute.list_deleted`: в модель результата добавлено поле `data.folder_id`. |
|
||||
| BPYS-1938 | Добавлена функция `cloudbroker.vins.disable`. |
|
||||
| BPYS-1937 | Добавлена функция `cloudbroker.dpdknet.list`. |
|
||||
| BPYS-1935 | Добавлена функция `cloudbroker.dpdknet.get`. |
|
||||
| BPYS-1934 | Добавлена функция `cloudbroker.dpdknet.create`. |
|
||||
| BPYS-1941 | Добавлена функция `cloudbroker.dpdknet.delete`. |
|
||||
| BPYS-1942 | Добавлена функция `cloudbroker.dpdknet.update`. |
|
||||
| BPYS-1947 | Добавлена функция `cloudbroker.image.edit`. |
|
||||
| BPYS-1970 | Добавлена функция `cloudbroker.trunk.enable`. |
|
||||
| BPYS-1969 | Добавлена функция `cloudbroker.trunk.disable`. |
|
||||
| BPYS-1943 | Добавлена функция `cloudbroker.grid.list`. |
|
||||
| BPYS-1944 | Добавлена функция `cloudbroker.grid.get`. |
|
||||
| BPYS-1945 | Добавлена функция `cloudbroker.kvmx86.mass_create`. |
|
||||
| BPYS-1950 | Добавлена функция `cloudbroker.trunk.destroy`. |
|
||||
| BPYS-1952 | Добавлена функция `cloudbroker.trunk.get`. |
|
||||
| BPYS-1958 | Добавлена функция `cloudbroker.trunk.update`. |
|
||||
| BPYS-1965 | Добавлена функция `cloudbroker.disks.update`. |
|
||||
| BPYS-1926 | Добавлена функция `cloudapi.vmfolder.list`. |
|
||||
| BPYS-1959 | Функции `cloudapi.compute.affinity_rule_add`, `cloudbroker.compute.affinity_rule_add`: добавлены параметры `async_mode`, `migrate`. |
|
||||
| BPYS-1951 | Функции `cloudapi.storage_policy.get`, `cloudbroker.storage_policy.get`: в модели результата добавлено поле `replication_profile_id`. |
|
||||
| BPYS-1951 | Функции `cloudapi.storage_policy.list`, `cloudbroker.storage_policy.list`: в модели результата добавлено поле `data.replication_profile_id`. |
|
||||
| BPYS-1955 | Функция `cloudbroker.storage_policy.delete_pool`: в модели результата добавлено поле `replication_profile_id`. |
|
||||
| BPYS-1957 | Функция `cloudbroker.storage_policy.update`: в модель результата добавлено поле `replication_profile_id`. |
|
||||
| BPYS-1960 | Функции `cloudapi.compute.anti_affinity_rule_add`, `cloudbroker.compute.anti_affinity_rule_add`: добавлены параметры `async_mode`, `migrate`. |
|
||||
| BPYS-1922 | Добавлена функция `cloudapi.vmfolder.create`. |
|
||||
| BPYS-1920 | Добавлена функция `cloudapi.vmfolder.add_acl_access`. |
|
||||
| BPYS-1972 | Функция `cloudbroker.compute.list`: в модель результата добавлено поле `data.folder_id`. |
|
||||
| BPYS-1921 | Добавлена функция `cloudapi.vmfolder.computes_move`. |
|
||||
| BPYS-1956 | Добавлена функция `cloudbroker.trunk.list`. |
|
||||
| BPYS-1954 | Функция `cloudbroker.storage_policy.add_pool`: в модель результата добавлено поле `replication_profile_id`. |
|
||||
| BPYS-1928 | Добавлена функция `cloudapi.vmfolder.rename`. |
|
||||
| BPYS-1927 | Добавлена функция `cloudapi.vmfolder.move`. |
|
||||
| BPYS-1977 | Добавлена функция `cloudbroker.compute.abort_shared_snapshot_merge`. |
|
||||
| BPYS-1925 | Добавлена функция `cloudapi.vmfolder.get`. |
|
||||
| BPYS-1924 | Добавлена функция `cloudapi.vmfolder.delete`. |
|
||||
| BPYS-1974 | Добавлена функция `cloudbroker.compute.update`. |
|
||||
| BPYS-1973 | Функции `cloudapi.compute.get`, `cloudbroker.compute.get`: в модель результата добавлено поле `folder_id`. |
|
||||
| BPYS-1976 | Добавлена функция `cloudbroker.compute.pfw_del`. |
|
||||
| BPYS-1975 | Добавлена функция `cloudbroker.compute.pfw_add`. |
|
||||
| BPYS-1963 | Добавлена функция `cloudapi.storage_policy.get_replication_profile`. |
|
||||
| BPYS-1923 | Добавлена функция `cloudapi.vmfolder.del_acl_access`. |
|
||||
| BPYS-1964 | Добавлена функция `cloudapi.storage_policy.list_replication_profile`. |
|
||||
| BPYS-1949 | Добавлена функция `cloudbroker.trunk.create`. |
|
||||
| BPYS-2011 | Функция `cloudapi.vgpu.list`: добавлен параметр `name`. |
|
||||
| BPYS-2012 | Функция `cloudapi.vgpu.list`: в модели результата добавлено поле `data.name`. |
|
||||
| BPYS-2015 | Функции `cloudapi.compute.affinity_rule_add`, `cloudapi.compute.anti_affinity_rule_add`, `cloudbroker.compute.affinity_rule_add`, `cloudbroker.compute.anti_affinity_rule_add`: в модели результата добавлено поле `migrations.workflow_job_id`. |
|
||||
| BPYS-2016 | Функции `cloudapi.audit.list`, `cloudbroker.audit.list`: в модель результата добавлено поле `data.disk_ids`. |
|
||||
| BPYS-2016 | Функция `cloudapi.audit.get`: в модель результата добавлено поле `disk_ids`. |
|
||||
| BPYS-2029 | Добавлена функция `cloudbroker.account.list_resource_consumption`. |
|
||||
| BPYS-2014 | Функции `cloudapi.compute.affinity_rule_add`, `cloudapi.compute.anti_affinity_rule_add`, `cloudbroker.compute.affinity_rule_add`, `cloudbroker.compute.anti_affinity_rule_add`: в перечисляемый тип `ComputeAffinityRuleMigrationStatus` добавлены атрибуты `SKIPPED`, `NOT_STARTED`, `NOT_COMPLETED`. |
|
||||
| BPYS-2028 | Функции `cloudapi.compute.list`, `cloudapi.compute.list_deleted`: в модель результата добавлено поле `data.snapshot_sets.vm.folder_id`. |
|
||||
| BPYS-2028 | Функция `cloudapi.compute.get`: в модель результата добавлено поле `snapshot_sets.vm.folder_id`. |
|
||||
| BPYS-2028 | Функция `cloudapi.compute.snapshot_list`: в модель результата добавлено поле `data.vm.folder_id`. |
|
||||
| BPYS-2028 | Функция `cloudbroker.compute.list`: в модель результата добавлено поле `data.snapshot_sets.vm.folder_id`. |
|
||||
| BPYS-2028 | Функция `cloudbroker.compute.get`: в модель результата добавлено поле `snap_sets.vm.folder_id`. |
|
||||
| BPYS-2038 | Добавлена функция `cloudbroker.rg.list_resource_consumption`. |
|
||||
| BPYS-2041 | Добавлена функция `cloudbroker.node.list`. |
|
||||
| BPYS-2044 | Добавлена функция `cloudbroker.resmon.get_by_computes`. |
|
||||
| BPYS-2039 | Добавлена функция `cloudbroker.sep.list`. |
|
||||
| BPYS-2040 | Добавлена функция `cloudbroker.sep.consumption`. |
|
||||
| BPYS-2046 | Добавлена функция `cloudbroker.prometheus.computes`. |
|
||||
| BPYS-2052 | Добавлена функция `cloudbroker.image.create_cdrom_image`. |
|
||||
| BPYS-2053 | Добавлена функция `cloudbroker.compute.pfw_list`. |
|
||||
| BPYS-1984 | Добавлена функция `cloudbroker.compute.add_acl_access`. |
|
||||
| BPYS-2056 | Добавлена функция `cloudbroker.rg.del_acl_access`. |
|
||||
| BPYS-2059 | Добавлена функция `cloudbroker.rg.get_acl_access`. |
|
||||
| BPYS-2073 | Добавлена функция `cloudbroker.rg.get_resource_consumption`. |
|
||||
| BPYS-2054 | Добавлена функция `cloudbroker.image.create_virtual`. |
|
||||
| BPYS-2042 | Добавлена функция `cloudbroker.grid.list_resource_consumption`. |
|
||||
| BPYS-2078 | Функция `cloudbroker.node.list`: в модель результата добавлено поле `data.shared_locks`. |
|
||||
| BPYS-2067 | Функция `cloudapi.vgpu.list`: в модель результата добавлено поле `data.node_id`. |
|
||||
| BPYS-2095 | Добавлена функция `cloudbroker.compute.affinity_relations`. |
|
||||
| BPYS-2092 | Добавлена функция `cloudbroker.compute.attach_gpu`. |
|
||||
| BPYS-2099 | Добавлена функция `cloudbroker.compute.cd_eject`. |
|
||||
| BPYS-2091 | Добавлена функция `cloudbroker.compute.attach_pci_device`. |
|
||||
| BPYS-2049 | Функции `cloudapi.audit.list`, `cloudbroker.audit.list`: в модель результата добавлено поле `data.vmfolder_id`. |
|
||||
| BPYS-2049 | Функция `cloudapi.audit.get`: в модель результата добавлено поле `vmfolder_id`. |
|
||||
| BPYS-2101 | Добавлена функция `cloudbroker.compute.cd_insert`. |
|
||||
| BPYS-2097 | Добавлена функция `cloudbroker.compute.boot_order_set`. |
|
||||
| BPYS-2096 | Добавлена функция `cloudbroker.compute.boot_order_get`. |
|
||||
| BPYS-2055 | Добавлена функция `cloudbroker.rg.add_acl_access`. |
|
||||
| BPYS-2058 | Добавлена функция `cloudbroker.rg.disable`. |
|
||||
| BPYS-2060 | Добавлена функция `cloudbroker.rg.enable`. |
|
||||
| BPYS-2070 | Функция `cloudbroker.extnet.enable`: добавлено поле `async_mode`. |
|
||||
| BPYS-2104 | Добавлена функция `cloudbroker.compute.change_mtu`. |
|
||||
| BPYS-2076 | Добавлена функция `cloudbroker.compute.affinity_rules_clear`. |
|
||||
| BPYS-2102 | Добавлена функция `cloudbroker.compute.clone_abort`. |
|
||||
| BPYS-2084 | Добавлена функция `cloudbroker.compute.anti_affinity_rules_clear`. |
|
||||
| BPYS-2085 | Добавлена функция `cloudbroker.compute.anti_affinity_rule_remove`. |
|
||||
| BPYS-2106 | Добавлена функция `cloudbroker.compute.change_qos_policies`. |
|
||||
| BPYS-2103 | Добавлена функция `cloudbroker.compute.clone_status`. |
|
||||
| BPYS-2112 | Добавлена функция `cloudbroker.compute.disk_migrate`. |
|
||||
| BPYS-2113 | Добавлена функция `cloudbroker.compute.disk_switch_to_replication`. |
|
||||
| BPYS-2108 | Добавлена функция `cloudbroker.compute.detach_gpu`. |
|
||||
| BPYS-2121 | Добавлена функция `cloudbroker.compute.change_ip`. |
|
||||
| BPYS-2109 | Добавлена функция `cloudbroker.compute.detach_pci_device`. |
|
||||
| BPYS-2114 | Добавлена функция `cloudbroker.compute.get_acl_access`. |
|
||||
| BPYS-2124 | Добавлена функция `cloudbroker.compute.change_mac`. |
|
||||
| BPYS-2122 | Добавлена функция `cloudbroker.compute.guest_agent_disable`. |
|
||||
| BPYS-2123 | Добавлена функция `cloudbroker.compute.guest_agent_enable`. |
|
||||
| BPYS-2120 | Добавлена функция `cloudbroker.compute.get_cpu_alignment_profile`. |
|
||||
| BPYS-2127 | Добавлена функция `cloudbroker.compute.guest_agent_feature_get`. |
|
||||
| BPYS-2118 | Добавлена функция `cloudbroker.compute.get_custom_fields`. |
|
||||
| BPYS-2128 | Добавлена функция `cloudbroker.compute.guest_agent_feature_update`. |
|
||||
| BPYS-2126 | Добавлена функция `cloudbroker.compute.check_compute_placement`. |
|
||||
| BPYS-2119 | Добавлена функция `cloudbroker.compute.get_console_url`. |
|
||||
| BPYS-2131 | Добавлена функция `cloudbroker.compute.mass_delete`. |
|
||||
| BPYS-2136 | Добавлена функция `cloudbroker.compute.migrate`. |
|
||||
| BPYS-2137 | Добавлена функция `cloudbroker.compute.delete_cpu_alignment_profile`. |
|
||||
| BPYS-2144 | Добавлена функция `cloudbroker.compute.migrate_storage`. |
|
||||
| BPYS-2135 | Добавлена функция `cloudbroker.compute.migrate_abort`. |
|
||||
| BPYS-2132 | Добавлена функция `cloudbroker.compute.mass_reboot`. |
|
||||
| BPYS-2133 | Добавлена функция `cloudbroker.compute.mass_start`. |
|
||||
| BPYS-2138 | Добавлена функция `cloudbroker.compute.migrate_v2`. |
|
||||
| BPYS-2139 | Добавлена функция `cloudbroker.compute.migrate_v2_abort`. |
|
||||
| BPYS-2140 | Добавлена функция `cloudbroker.compute.migrate_v2_cleanup`. |
|
||||
| BPYS-2145 | Добавлена функция `cloudbroker.compute.migrate_storage_abort`. |
|
||||
| BPYS-2134 | Добавлена функция `cloudbroker.compute.mass_stop`. |
|
||||
| BPYS-2141 | Добавлена функция `cloudbroker.compute.migrate_v2_list`. |
|
||||
| BPYS-2142 | Добавлена функция `cloudbroker.compute.migrate_v2_get`. |
|
||||
| BPYS-2153 | Добавлена функция `cloudbroker.compute.migrate_storage_cleanup`. |
|
||||
| BPYS-2146 | Добавлена функция `cloudbroker.compute.migrate_to_zone`. |
|
||||
| BPYS-2147 | Добавлена функция `cloudbroker.compute.move_to_rg`. |
|
||||
| BPYS-2143 | Добавлена функция `cloudbroker.compute.migrate_v2_resolve`. |
|
||||
| BPYS-2154 | Добавлена функция `cloudbroker.compute.set_custom_fields`. |
|
||||
| BPYS-2157 | Добавлена функция `cloudbroker.compute.migrate_storage_info`. |
|
||||
| BPYS-2148 | Добавлена функция `cloudbroker.compute.net_qos`. |
|
||||
| BPYS-2155 | Добавлена функция `cloudbroker.compute.set_net_config`. |
|
||||
| BPYS-2156 | Добавлена функция `cloudbroker.compute.set_cpu_alignment_profile`. |
|
||||
| BPYS-2149 | Добавлена функция `cloudbroker.compute.pin_to_node`. |
|
||||
| BPYS-2159 | Добавлена функция `cloudbroker.compute.snapshot_create`. |
|
||||
| BPYS-2150 | Добавлена функция `cloudbroker.compute.power_cycle`. |
|
||||
| BPYS-2167 | Добавлена функция `cloudbroker.compute.tag_add`. |
|
||||
| BPYS-2168 | Добавлена функция `cloudbroker.compute.tag_remove`. |
|
||||
| BPYS-2169 | Добавлена функция `cloudbroker.compute.unpin_from_node`. |
|
||||
| BPYS-2160 | Добавлена функция `cloudbroker.compute.snapshot_delete`. |
|
||||
| BPYS-2151 | Добавлена функция `cloudbroker.compute.raise_down`. |
|
||||
| BPYS-2172 | Добавлена функция `cloudbroker.compute.update_acl_access`. |
|
||||
| BPYS-2161 | Добавлена функция `cloudbroker.compute.snapshot_evict_disk`. |
|
||||
| BPYS-2152 | Добавлена функция `cloudbroker.compute.resume`. |
|
||||
| BPYS-2170 | Добавлена функция `cloudbroker.trunk.access_grant`. |
|
||||
| BPYS-2162 | Добавлена функция `cloudbroker.compute.snapshot_list`. |
|
||||
| BPYS-2176 | Добавлена функция `cloudbroker.rg.list_deleted`. |
|
||||
| BPYS-2171 | Добавлена функция `cloudbroker.trunk.access_revoke`. |
|
||||
| BPYS-2173 | Добавлена функция `cloudbroker.rg.affinity_group_computes`. |
|
||||
| BPYS-2174 | Добавлена функция `cloudbroker.rg.affinity_groups_get`. |
|
||||
| BPYS-2163 | Добавлена функция `cloudbroker.compute.snapshot_rollback`. |
|
||||
| BPYS-2110 | Добавлена функция `cloudbroker.compute.del_acl_access`. |
|
||||
| BPYS-2175 | Добавлена функция `cloudbroker.rg.affinity_groups_list`. |
|
||||
| BPYS-2105 | Добавлена функция `cloudbroker.compute.create_template`. |
|
||||
| BPYS-2100 | Добавлена функция `cloudbroker.compute.change_link_state`. |
|
||||
| BPYS-2107 | Добавлена функция `cloudbroker.compute.create_template_from_blank`. |
|
||||
| BPYS-2111 | Добавлена функция `cloudbroker.compute.delete_custom_fields`. |
|
||||
| BPYS-2198 | Добавлена функция `cloudbroker.rg.mass_delete`. |
|
||||
| BPYS-2199 | Добавлена функция `cloudbroker.rg.mass_disable`. |
|
||||
| BPYS-2201 | Добавлена функция `cloudbroker.rg.mass_enable`. |
|
||||
| BPYS-2202 | Добавлена функция `cloudbroker.rg.update_acl_access`. |
|
||||
| BPYS-2203 | Добавлена функция `cloudbroker.rg.update_compute_features`. |
|
||||
| BPYS-2204 | Добавлена функция `cloudbroker.rg.update_resource_types`. |
|
||||
| BPYS-2208 | Добавлена функция `cloudbroker.rg.usage`. |
|
||||
| BPYS-2125 | Добавлена функция `cloudbroker.compute.guest_agent_execute`. |
|
||||
| BPYS-2200 | Добавлена функция `cloudbroker.rg.restore`. |
|
||||
| BPYS-2195 | Функции `cloudapi.compute.get`, `cloudbroker.compute.get`: в модель результата добавлено поле `vgpus.name`. |
|
||||
| BPYS-2196 | Функции `cloudapi.disks.list`, `cloudapi.disks.list_deleted`, `cloudapi.disks.list_unattached`, `cloudbroker.disks.list`, `cloudbroker.disks.list_deleted`, `cloudbroker.disks.list_unattached`: в модель результата добавлено поле `data.crt_tracking`. |
|
||||
| BPYS-2196 | Функции `cloudapi.disks.get`, `cloudbroker.disks.get`: в модель результата добавлено поле `crt_tracking`. |
|
||||
| BPYS-2158 | Добавлена функция `cloudbroker.compute.shared_snapshot_merge_status`. |
|
||||
| BPYS-2164 | Добавлена функция `cloudbroker.compute.snapshot_usage`. |
|
||||
| BPYS-2209 | Добавлена функция `cloudbroker.account.list_available_templates`. |
|
||||
| BPYS-2216 | Добавлена функция `cloudbroker.image.create_multi_image`. |
|
||||
| BPYS-2210 | Добавлена функция `cloudbroker.account.update_acl_access`. |
|
||||
| BPYS-2177 | Добавлена функция `cloudbroker.rg.remove_def_net`. |
|
||||
| BPYS-2178 | Добавлена функция `cloudbroker.rg.set_def_net`. |
|
||||
| BPYS-2179 | Добавлена функция `cloudbroker.rg.set_cpu_allocation_ratio`. |
|
||||
| BPYS-2222 | Добавлена функция `cloudbroker.image.delete`. |
|
||||
| BPYS-2223 | Добавлена функция `cloudbroker.image.delete_cdrom_image`. |
|
||||
| BPYS-2224 | Добавлена функция `cloudbroker.image.delete_images`. |
|
||||
| BPYS-2225 | Добавлена функция `cloudbroker.image.disable`. |
|
||||
| BPYS-2226 | Добавлена функция `cloudbroker.image.multi_image_add_links`. |
|
||||
| BPYS-2180 | Добавлена функция `cloudbroker.rg.set_cpu_allocation_parameter`. |
|
||||
| BPYS-2212 | Добавлена функция `cloudbroker.vgpu.create`. |
|
||||
| BPYS-2213 | Добавлена функция `cloudbroker.vgpu.destroy`. |
|
||||
| BPYS-2214 | Добавлена функция `cloudbroker.vgpu.edit`. |
|
||||
| BPYS-2232 | Добавлена функция `cloudbroker.image.multi_image_del_links`. |
|
||||
| BPYS-2233 | Добавлена функция `cloudbroker.image.multi_image_export`. |
|
||||
| BPYS-2215 | Добавлена функция `cloudbroker.vgpu.list`. |
|
||||
| BPYS-2227 | Добавлена функция `cloudbroker.extnet.access_add`. |
|
||||
| BPYS-2228 | Добавлена функция `cloudbroker.extnet.access_remove`. |
|
||||
| BPYS-2230 | Добавлена функция `cloudbroker.extnet.default_qos_update`. |
|
||||
| BPYS-2229 | Добавлена функция `cloudbroker.extnet.add_reserved_ip`. |
|
||||
| BPYS-2239 | Добавлена функция `cloudbroker.image.share`. |
|
||||
| BPYS-2240 | Добавлена функция `cloudbroker.image.upload_image_file`. |
|
||||
| BPYS-2241 | Добавлена функция `cloudbroker.extnet.ips_exclude`. |
|
||||
| BPYS-2231 | Добавлена функция `cloudbroker.extnet.del_reserved_ip`. |
|
||||
| BPYS-2187 | Функция `cloudapi.locations.list`: для поля `data.vm_folders_enabled` добавлено значение по умолчанию `false`. |
|
||||
| BPYS-2206 | Добавлена функция `cloudbroker.account.del_acl_access`. |
|
||||
| BPYS-2207 | Добавлена функция `cloudbroker.account.grant_access_templates`. |
|
||||
| BPYS-2217 | Добавлена функция `cloudbroker.image.enable`. |
|
||||
| BPYS-2243 | Добавлена функция `cloudbroker.extnet.ips_exclude_range`. |
|
||||
| BPYS-2244 | Добавлена функция `cloudbroker.extnet.ips_include`. |
|
||||
| BPYS-2218 | Добавлена функция `cloudbroker.image.grant_access`. |
|
||||
| BPYS-2189 | Функции `cloudapi.compute.get`, `cloudbroker.compute.get`: в модель результата добавлено поле `disks.crt_tracking`. |
|
||||
| BPYS-2219 | Добавлена функция `cloudbroker.image.link`. |
|
||||
| BPYS-2245 | Добавлена функция `cloudbroker.extnet.ips_include_range`. |
|
||||
| BPYS-2220 | Добавлена функция `cloudbroker.image.rename`. |
|
||||
| BPYS-2221 | Добавлена функция `cloudbroker.image.revoke_access`. |
|
||||
| BPYS-2234 | Добавлена функция `cloudbroker.extnet.device_deploy`. |
|
||||
| BPYS-2246 | Добавлена функция `cloudbroker.extnet.migrate_to_zone`. |
|
||||
| BPYS-2247 | Добавлена функция `cloudbroker.extnet.ntp_apply`. |
|
||||
| BPYS-2248 | Добавлена функция `cloudbroker.extnet.raise_down`. |
|
||||
| BPYS-2249 | Добавлена функция `cloudbroker.extnet.set_highly_available`. |
|
||||
| BPYS-2251 | Добавлена функция `cloudbroker.extnet.set_default`. |
|
||||
| BPYS-749 | Добавлена функция `cloudbroker.account.revoke_access_templates`. |
|
||||
| BPYS-2236 | Добавлена функция `cloudbroker.extnet.get_reserved_ip`. |
|
||||
| BPYS-2238 | Добавлена функция `cloudbroker.extnet.dns_apply`. |
|
||||
| BPYS-2237 | Добавлена функция `cloudbroker.extnet.get_default`. |
|
||||
| BPYS-2235 | Добавлена функция `cloudbroker.extnet.device_migrate`. |
|
||||
| BPYS-2242 | Добавлена функция `cloudbroker.extnet.device_restart`. |
|
||||
| BPYS-2129 | Добавлена функция `cloudbroker.compute.list_deleted`. |
|
||||
| BPYS-2252 | Добавлена функция `cloudbroker.dpdknet.enable`. |
|
||||
| BPYS-2254 | Добавлена функция `cloudbroker.extnet.static_route_access_grant`. |
|
||||
| BPYS-2261 | Добавлена функция `cloudbroker.extnet.static_route_access_revoke`. |
|
||||
| BPYS-2262 | Добавлена функция `cloudbroker.extnet.static_route_add`. |
|
||||
| BPYS-2263 | Добавлена функция `cloudbroker.extnet.static_route_del`. |
|
||||
| BPYS-2264 | Добавлена функция `cloudbroker.extnet.static_route_list`. |
|
||||
| BPYS-2253 | Добавлена функция `cloudbroker.dpdknet.disable`. |
|
||||
| BPYS-2258 | Добавлена функция `cloudbroker.vins.ext_net_disconnect`. |
|
||||
| BPYS-2255 | Добавлена функция `cloudbroker.vins.default_qos_update`. |
|
||||
| BPYS-2256 | Добавлена функция `cloudbroker.vins.dns_apply`. |
|
||||
| BPYS-2270 | Добавлена функция `cloudbroker.vins.nat_rule_add`. |
|
||||
| BPYS-2274 | Добавлена функция `cloudbroker.vins.nat_rule_del`. |
|
||||
| BPYS-2277 | Добавлена функция `cloudbroker.vins.nat_rule_list`. |
|
||||
| BPYS-2281 | Добавлена функция `cloudbroker.vins.net_qos`. |
|
||||
| BPYS-2282 | Добавлена функция `cloudbroker.vins.raise_down`. |
|
||||
| BPYS-2291 | Добавлена функция `cloudbroker.vins.search`. |
|
||||
| BPYS-2283 | Добавлена функция `cloudbroker.vins.restore`. |
|
||||
| BPYS-2257 | Добавлена функция `cloudbroker.vins.ext_net_connect`. |
|
||||
| BPYS-2259 | Добавлена функция `cloudbroker.vins.ext_net_list`. |
|
||||
| BPYS-2290 | Добавлена функция `cloudbroker.flipgroup.create`. |
|
||||
| BPYS-2289 | Добавлена функция `cloudbroker.flipgroup.delete`. |
|
||||
| BPYS-2205 | Добавлена функция `cloudbroker.account.add_acl_access`. |
|
||||
| BPYS-2250 | Добавлена функция `cloudbroker.extnet.device_remove`. |
|
||||
| BPYS-2260 | Добавлена функция `cloudbroker.vins.ip_list`. |
|
||||
| BPYS-2265 | Добавлена функция `cloudbroker.vins.ip_reserve`. |
|
||||
| BPYS-2266 | Добавлена функция `cloudbroker.vins.ip_release`. |
|
||||
| BPYS-2268 | Добавлена функция `cloudbroker.vins.migrate_to_zone`. |
|
||||
| BPYS-2292 | Добавлена функция `cloudbroker.vins.static_route_add`. |
|
||||
| BPYS-2293 | Добавлена функция `cloudbroker.vins.static_route_del`. |
|
||||
| BPYS-2294 | Добавлена функция `cloudbroker.vins.static_route_list`. |
|
||||
| BPYS-2269 | Добавлена функция `cloudbroker.vins.mass_disable`. |
|
||||
| BPYS-2271 | Добавлена функция `cloudbroker.vins.mass_enable`. |
|
||||
| BPYS-2273 | Добавлена функция `cloudbroker.vins.mass_delete`. |
|
||||
| BPYS-2287 | Добавлена функция `cloudbroker.flipgroup.get`. |
|
||||
| BPYS-2286 | Добавлена функция `cloudbroker.flipgroup.list`. |
|
||||
| BPYS-2288 | Добавлена функция `cloudbroker.flipgroup.edit`. |
|
||||
| BPYS-2285 | Добавлена функция `cloudbroker.flipgroup.compute_add`. |
|
||||
| BPYS-2284 | Добавлена функция `cloudbroker.flipgroup.compute_remove`. |
|
||||
| BPYS-2303 | Добавлена функция `cloudbroker.vins.vnfdev_redeploy`. |
|
||||
| BPYS-2304 | Добавлена функция `cloudbroker.vins.vnfdev_reset`. |
|
||||
| BPYS-2305 | Добавлена функция `cloudbroker.vins.vnfdev_restart`. |
|
||||
| BPYS-2306 | Добавлена функция `cloudbroker.vins.vnfdev_start`. |
|
||||
| BPYS-2308 | Добавлена функция `cloudbroker.vins.vnfdev_stop`. |
|
||||
| BPYS-2312 | Добавлена функция `cloudbroker.k8s.list`. |
|
||||
| BPYS-2295 | Добавлена функция `cloudbroker.k8s.create`. |
|
||||
| BPYS-2296 | Добавлена функция `cloudbroker.k8s.delete`. |
|
||||
| BPYS-2299 | Добавлена функция `cloudbroker.k8s.disable`. |
|
||||
| BPYS-2309 | Добавлена функция `cloudbroker.k8s.find_group_by_label`. |
|
||||
| BPYS-2300 | Добавлена функция `cloudbroker.k8s.enable`. |
|
||||
| BPYS-2297 | Добавлена функция `cloudbroker.k8s.delete_master_from_group`. |
|
||||
| BPYS-2298 | Добавлена функция `cloudbroker.k8s.delete_worker_from_group`. |
|
||||
| BPYS-2315 | Добавлена функция `cloudbroker.k8s.update_worker_nodes_meta_data`. |
|
||||
| BPYS-2316 | Добавлена функция `cloudbroker.k8s.update`. |
|
||||
| BPYS-2317 | Добавлена функция `cloudbroker.k8s.stop`. |
|
||||
| BPYS-2325 | Добавлена функция `cloudbroker.k8s.get`. |
|
||||
| BPYS-2329 | Добавлена функция `cloudbroker.k8s.get_config`. |
|
||||
| BPYS-2318 | Добавлена функция `cloudbroker.k8s.start`. |
|
||||
| BPYS-2319 | Добавлена функция `cloudbroker.k8s.restore`. |
|
||||
| BPYS-2320 | Добавлена функция `cloudbroker.k8s.migrate_to_zone`. |
|
||||
| BPYS-2301 | Добавлена функция `cloudbroker.k8ci.access_add`. |
|
||||
| BPYS-2302 | Добавлена функция `cloudbroker.k8ci.access_remove`. |
|
||||
| BPYS-2278 | Добавлена функция `cloudbroker.vins.list_deleted`. |
|
||||
| BPYS-2332 | Добавлена функция `cloudbroker.k8s.worker_add`. |
|
||||
| BPYS-2307 | Добавлена функция `cloudbroker.k8ci.create`. |
|
||||
| BPYS-2310 | Добавлена функция `cloudbroker.k8ci.delete`. |
|
||||
| BPYS-2311 | Добавлена функция `cloudbroker.k8ci.disable`. |
|
||||
| BPYS-2313 | Добавлена функция `cloudbroker.k8ci.enable`. |
|
||||
| BPYS-2321 | Добавлена функция `cloudbroker.k8ci.list`. |
|
||||
| BPYS-2322 | Добавлена функция `cloudbroker.k8ci.list_deleted`. |
|
||||
| BPYS-2331 | Добавлена функция `cloudbroker.k8s.get_node_annotations`. |
|
||||
| BPYS-2342 | Добавлена функция `cloudbroker.k8s.get_node_labels`. |
|
||||
| BPYS-2343 | Добавлена функция `cloudbroker.k8s.get_node_taints`. |
|
||||
| BPYS-2344 | Добавлена функция `cloudbroker.k8s.get_worker_nodes_meta_data`. |
|
||||
| BPYS-2323 | Добавлена функция `cloudbroker.k8ci.restore`. |
|
||||
| BPYS-2335 | Добавлена функция `cloudbroker.k8s.workers_group_add`. |
|
||||
| BPYS-2336 | Добавлена функция `cloudbroker.k8s.workers_group_delete`. |
|
||||
| BPYS-2314 | Добавлена функция `cloudbroker.k8ci.get`. |
|
||||
| BPYS-2324 | Добавлена функция `cloudbroker.lb.backend_create`. |
|
||||
| BPYS-2330 | Добавлена функция `cloudbroker.lb.backend_delete`. |
|
||||
| BPYS-2338 | Добавлена функция `cloudbroker.lb.backend_server_add`. |
|
||||
| BPYS-2339 | Добавлена функция `cloudbroker.lb.backend_server_delete`. |
|
||||
| BPYS-2345 | Добавлена функция `cloudbroker.lb.backend_server_update`. |
|
||||
| BPYS-2347 | Добавлена функция `cloudbroker.lb.backend_update`. |
|
||||
| BPYS-2033 | Функция `cloudbroker.compute.list`: добавлен параметр `include_descendants`. |
|
||||
| BPYS-2007 | Функция `cloudapi.kvmx86.create`: добавлен параметр `pcidevices`. |
|
||||
| BPYS-2025 | Функции `cloudapi.kvmx86.create`, `cloudbroker.kvmx86.create`: добавлен параметр `vgpus`. |
|
||||
| BPYS-2030 | Функция `cloudapi.compute.list`: добавлен параметр `folder_id`. |
|
||||
| BPYS-2031 | Функция `cloudbroker.compute.list`: добавлен параметр `folder_id`. |
|
||||
| BPYS-2032 | Функция `cloudapi.compute.list`: добавлен параметр `include_descendants`. |
|
||||
| BPYS-2009 | Функция `cloudbroker.kvmx86.create`: добавлен параметр `pcidevices`. |
|
||||
| BPYS-2008 | Функции `cloudapi.kvmx86.create_blank`: добавлен параметр `pci_devices`. |
|
||||
| BPYS-2359 | Функция `cloudapi.locations.list`: в модель результата добавлены поля `data.bvp_web` и `data.sdn_web`. |
|
||||
| BPYS-2013 | Функция `cloudbroker.user.create`: добавлен параметр `serviceaccount`. |
|
||||
| BPYS-2010 | Функция `cloudbroker.kvmx86.create_blank`: добавлен параметр `pcidevices`. |
|
||||
| BPYS-2026 | Функции `cloudapi.kvmx86.create_blank`, `cloudbroker.kvmx86.create_blank`: добавлен параметр `vgpus`. |
|
||||
| BPYS-2348 | Добавлена функция `cloudbroker.lb.config_reset`. |
|
||||
| BPYS-2062 | Функция `cloudbroker.audit.list`: добавлены параметры `disk_id`, `vmfolder_id`. |
|
||||
| BPYS-2061 | Функция `cloudapi.audit.list`: добавлены параметры `disk_id`, `vmfolder_id`. |
|
||||
| BPYS-2349 | Добавлена функция `cloudbroker.lb.create`. |
|
||||
| BPYS-2351 | Добавлена функция `cloudbroker.lb.delete`. |
|
||||
| BPYS-2352 | Добавлена функция `cloudbroker.lb.disable`. |
|
||||
| BPYS-2353 | Добавлена функция `cloudbroker.lb.enable`. |
|
||||
| BPYS-2354 | Добавлена функция `cloudbroker.lb.frontend_bind_delete`. |
|
||||
| BPYS-2362 | Добавлена функция `cloudbroker.lb.frontend_binding_update`. |
|
||||
| BPYS-2363 | Добавлена функция `cloudbroker.lb.frontend_bind`. |
|
||||
| BPYS-2188 | Функция `cloudapi.pcidevice.list`: добавлен параметр `node_id`. |
|
||||
| BPYS-2071 | Функция `cloudbroker.user.list`: добавлен параметр `apiaccess_id`. |
|
||||
| BPYS-2369 | Добавлена функция `cloudbroker.lb.frontend_create`. |
|
||||
| BPYS-2370 | Добавлена функция `cloudbroker.lb.frontend_delete`. |
|
||||
| BPYS-2276 | Добавлена функция `cloudapi.image.create_from_disk`. |
|
||||
| BPYS-2190 | Функция `cloudapi.dpdknet.list`: добавлены параметры `account_access`, `rg_access`. |
|
||||
| BPYS-2184 | Функции `cloudapi.disks.limit_io`, `cloudbroker.disks.limit_io`: добавлены параметры `read_bytes_sec_max_length`, `read_iops_sec_max_length`, `total_bytes_sec_max_length`, `total_iops_sec_max_length`, `write_bytes_sec_max_length`, `write_iops_sec_max_length`. |
|
||||
| BPYS-2184 | Функция `cloudapi.disks.get`: в модель результата добавлены поля `io_tune.read_bytes_sec_max_length`, `io_tune.read_iops_sec_max_length`, `io_tune.total_bytes_sec_max_length`, `io_tune.total_iops_sec_max_length`, `io_tune.write_bytes_sec_max_length`, `io_tune.write_iops_sec_max_length`. |
|
||||
| BPYS-2184 | Функция `cloudbroker.disks.get`: в модель результата добавлены поля `iotune.read_bytes_sec_max_length`, `iotune.read_iops_sec_max_length`, `iotune.total_bytes_sec_max_length`, `iotune.total_iops_sec_max_length`, `iotune.write_bytes_sec_max_length`, `iotune.write_iops_sec_max_length`. |
|
||||
| BPYS-2184 | Функции `cloudapi.disks.list`, `cloudapi.disks.list_deleted`, `cloudapi.disks.list_unattached`: в модель результата добавлены поля `data.io_tune.read_bytes_sec_max_length`, `data.io_tune.read_iops_sec_max_length`, `data.io_tune.total_bytes_sec_max_length`, `data.io_tune.total_iops_sec_max_length`, `data.io_tune.write_bytes_sec_max_length`, `data.io_tune.write_iops_sec_max_length`. |
|
||||
| BPYS-2184 | Функции `cloudbroker.disks.list`, `cloudbroker.disks.list_deleted`, `cloudbroker.disks.list_unattached`: в модель результата добавлены поля `data.iotune.read_bytes_sec_max_length`, `data.iotune.read_iops_sec_max_length`, `data.iotune.total_bytes_sec_max_length`, `data.iotune.total_iops_sec_max_length`, `data.iotune.write_bytes_sec_max_length`, `data.iotune.write_iops_sec_max_length`. |
|
||||
| BPYS-2184 | Функция `cloudapi.compute.get`: в модель результата добавлены поля `disks.io_tune.read_bytes_sec_max_length`, `disks.io_tune.read_iops_sec_max_length`, `disks.io_tune.total_bytes_sec_max_length`, `disks.io_tune.total_iops_sec_max_length`, `disks.io_tune.write_bytes_sec_max_length`, `disks.io_tune.write_iops_sec_max_length`. |
|
||||
| BPYS-2184 | Функция `cloudbroker.compute.get`: в модель результата добавлены поля `disks.iotune.read_bytes_sec_max_length`, `disks.iotune.read_iops_sec_max_length`, `disks.iotune.total_bytes_sec_max_length`, `disks.iotune.total_iops_sec_max_length`, `disks.iotune.write_bytes_sec_max_length`, `disks.iotune.write_iops_sec_max_length`. |
|
||||
| BPYS-2186 | Добавлена функция `cloudapi.disks.replication_disable_schedule`. |
|
||||
| BPYS-2183 | Функции `cloudapi.disks.change_disk_storage_policy`, `cloudbroker.disks.change_disk_storage_policy`: добавлен параметр `keep_current_iotune`. |
|
||||
| BPYS-2182 | Функции `cloudapi.compute.disk_switch_to_replication`, `cloudbroker.compute.disk_switch_to_replication`: добавлен параметр `planned`. |
|
||||
| BPYS-2372 | Функции `cloudapi.disks.get`, `cloudapi.disks.list`, `cloudapi.disks.list_deleted`, `cloudbroker.disks.get`, `cloudbroker.disks.list`, `cloudbroker.disks.list_deleted`, `cloudapi.sep.list_available_sep_and_pools`: в перечисляемый тип `SEPType` добавлен атрибут `AERODISK`. |
|
||||
| BPYS-2378 | Добавлена функция `cloudbroker.lb.stop`. |
|
||||
| BPYS-2376 | Добавлена функция `cloudbroker.lb.restore`. |
|
||||
| BPYS-2382 | Добавлена функция `cloudbroker.lb.migrate_to_zone`. |
|
||||
| BPYS-2375 | Добавлена функция `cloudbroker.lb.restart`. |
|
||||
| BPYS-2377 | Добавлена функция `cloudbroker.lb.start`. |
|
||||
| BPYS-2379 | Добавлена функция `cloudbroker.lb.update`. |
|
||||
| BPYS-2381 | Добавлена функция `cloudbroker.lb.make_highly_available`. |
|
||||
| BPYS-2383 | Добавлена функция `cloudbroker.lb.list`. |
|
||||
| BPYS-2374 | Добавлена функция `cloudbroker.lb.get`. |
|
||||
| BPYS-2386 | Добавлена функция `cloudbroker.zone.add_cpu_alignment_profile`. |
|
||||
| BPYS-2387 | Добавлена функция `cloudbroker.zone.add_node`. |
|
||||
| BPYS-2402 | Добавлена функция `cloudbroker.zone.create`. |
|
||||
| BPYS-2380 | Добавлена функция `cloudbroker.lb.update_sysctl_params`. |
|
||||
| BPYS-2405 | Добавлена функция `cloudbroker.zone.delete_cpu_alignment_profile`. |
|
||||
| BPYS-2194 | Добавлена функция `cloudapi.disks.replication_manual_sync`. |
|
||||
| BPYS-2406 | Добавлена функция `cloudbroker.zone.delete`. |
|
||||
| BPYS-2407 | Добавлена функция `cloudbroker.zone.del_node`. |
|
||||
| BPYS-2365 | Функция `cloudbroker.grid.list`: в модель результата добавлены поля `data.bvp_web` и `data.sdn_web`. |
|
||||
| BPYS-2368 | Функция `cloudapi.image.list`: в модель результата добавлено поле `data.links_to`. |
|
||||
| BPYS-2391 | Функция `cloudbroker.compute.migrate_v2_get`: в модель результата добавлены поля `bandwidth_bytes_per_second`, `copy_parallelism`, `disk_plan_ready`, `execution_kind`, `offline_commit_started`, `requested_storage`, `source_disks`, `user`, `reserves_compute_resources`, `target_shadow_compute`. |
|
||||
| BPYS-2393 | Функция `cloudbroker.compute.migrate_v2_get`: в модель результата добавлены поля `disks.copy_node_id`, `disks.copy_state`, `disks.writer_stopped`. |
|
||||
| BPYS-2395 | Функция `cloudbroker.compute.migrate_v2_get`: в модель результата добавлены поля `progress.disks.items`, `progress.disks.percent_is_estimated`. |
|
||||
| BPYS-2399 | Функция `cloudbroker.compute.migrate_v2_get`: в перечисляемый тип `Status` добавлен атрибут `QUEUED`. |
|
||||
| BPYS-2392 | Функция `cloudbroker.compute.migrate_v2_list`: в модель результата добавлены поля `data.bandwidth_bytes_per_second`, `data.copy_parallelism`, `data.disk_plan_ready`, `data.execution_kind`, `data.offline_commit_started`, `data.requested_storage`, `data.source_disks`, `data.user`. |
|
||||
| BPYS-2394 | Функция `cloudbroker.compute.migrate_v2_list`: в модель результата добавлены поля `data.disks.copy_node_id`, `data.disks.copy_state`, `data.disks.writer_stopped`. |
|
||||
| BPYS-2396 | Функция `cloudbroker.compute.migrate_v2_list`: в модель результата добавлены поля `data.progress.disks.items`, `data.progress.disks.percent_is_estimated`. |
|
||||
| BPYS-2400 | Функция `cloudbroker.compute.migrate_v2_list`: в перечисляемый тип `Status`, используемый для параметра `status` и поля результата `data.status`, добавлен атрибут `QUEUED`. |
|
||||
| BPYS-2355 | Функции `cloudapi.image.list`, `cloudbroker.image.list`: добавлен параметр `account_id`. |
|
||||
| BPYS-2356 | Функции `cloudapi.image.list`, `cloudbroker.image.list`: добавлен параметр `sep_type`. |
|
||||
| BPYS-2361 | Добавлена функция `cloudbroker.compute.mass_pin_to_node`. |
|
||||
| BPYS-2366 | Функция `cloudbroker.image.list`: в модели результата добавлены поля `data._ckey`, `data._meta` и `data.real_size`. |
|
||||
| BPYS-2364 | Функция `cloudbroker.grid.get`: в модель результата добавлены поля `bvp_web` и `sdn_web`. |
|
||||
| BPYS-2390 | Функция `cloudbroker.compute.migrate_v2_list`: добавлены параметры `account_id`, `rg_id`, `user`, `user_match`, `user_is_null`, `source_node_id_is_null`, `target_node_id_is_null`. |
|
||||
| BPYS-2367 | Функции `cloudapi.image.get`, `cloudbroker.image.get`: в модель результата добавлено поле `real_size`. |
|
||||
| BPYS-2403 | Функция `cloudapi.zone.get`: в модель результата добавлено поле `task_disk_timeout`. |
|
||||
| BPYS-2404 | Функция `cloudapi.zone.list`: в модель результата добавлено поле `data.task_disk_timeout`. |
|
||||
| BPYS-2416 | Функции `cloudbroker.account.delete_accounts`, `cloudbroker.account.disable_accounts`, `cloudbroker.account.enable_accounts`: добавлен параметр `async_mode`. |
|
||||
| BPYS-2415 | Функция `cloudbroker.account.create`: добавлен параметр `async_mode`. |
|
||||
| BPYS-2333 | Добавлена функция `cloudbroker.k8s.worker_reset`. |
|
||||
| BPYS-2334 | Добавлена функция `cloudbroker.k8s.worker_restart`. |
|
||||
| BPYS-2337 | Добавлена функция `cloudbroker.k8s.workers_group_get_by_name`. |
|
||||
| BPYS-2425 | Добавлена функция `cloudbroker.zone.get`. |
|
||||
| BPYS-2427 | Добавлена функция `cloudbroker.zone.list`. |
|
||||
| BPYS-2426 | Добавлена функция `cloudbroker.zone.update`. |
|
||||
| BPYS-2389 | Функция `cloudbroker.compute.migrate_v2`: добавлен параметр `copy_parallelism`. |
|
||||
| BPYS-2388 | Функция `cloudbroker.compute.migrate_v2`: добавлен параметр `bandwidth_bytes_per_second`. |
|
||||
| BPYS-2420 | Добавлена функция `cloudbroker.grid.add_custom_backup_path`. |
|
||||
| BPYS-2417 | Функции `cloudapi.account.restore`, `cloudbroker.account.restore`, `cloudbroker.account.delete`: добавлен параметр `async_mode`. |
|
||||
| BPYS-2414 | Функции `cloudapi.account.add_user`, `cloudapi.account.add_acl_access`, `cloudapi.account.del_acl_access`, `cloudapi.account.delete_user`, `cloudapi.account.update`, `cloudapi.account.update_user`, `cloudapi.account.update_acl_access`, `cloudbroker.account.add_user`, `cloudbroker.account.add_zone`, `cloudbroker.account.add_acl_access`, `cloudbroker.account.add_storage_policy`, `cloudbroker.account.del_acl_access`, `cloudbroker.account.del_storage_policy`, `cloudbroker.account.delete_user`, `cloudbroker.account.grant_access_templates`, `cloudbroker.account.remove_zone`, `cloudbroker.account.revoke_access_templates`, `cloudbroker.account.set_cpu_allocation_parameter`, `cloudbroker.account.set_cpu_allocation_ratio`, `cloudbroker.account.update`, `cloudbroker.account.update_compute_features`, `cloudbroker.account.update_resource_types`, `cloudbroker.account.update_user`, `cloudbroker.account.update_acl_access`: добавлен параметр `async_mode`. |
|
||||
| BPYS-2421 | Добавлена функция `cloudbroker.grid.change_settings`. |
|
||||
|
||||
## Удалено
|
||||
|
||||
### Функциональный интерфейс
|
||||
| Идентификатор<br>задачи | Описание |
|
||||
| --- | --- |
|
||||
| BPYS-1694 | Удалена функция `cloudapi.account.delete`. |
|
||||
| BPYS-1695 | Удалена функция `cloudapi.account.disable`. |
|
||||
| BPYS-1696 | Удалена функция `cloudapi.account.enable`. |
|
||||
| BPYS-1702 | Функции `cloudapi.compute.get`, `cloudapi.vgpu.list`: из модели результата удалены поля `account_id`, `profile_id`, `reference_id`, `last_claimed_by`, `ram_size_mb`, `rg_id`, `pgpu_processor_type`. |
|
||||
| BPYS-1733 | Функция `cloudapi.user.brief`: из модели результата удалено поле `accounts.enabled`. |
|
||||
| BPYS-1734 | Функция `cloudapi.user.brief`: из модели результата удалено поле `rgs.enabled`. |
|
||||
| BPYS-1726 | Функция `cloudapi.pcidevice.list`: из модели результата удалено поле `data.rg_id`. |
|
||||
| BPYS-1728 | Функция `cloudapi.pcidevice.list`: удалён параметр `rg_id`. |
|
||||
| BPYS-1764 | Удалена функция `cloudbroker.account.disable`. |
|
||||
| BPYS-1765 | Удалена функция `cloudbroker.account.enable`. |
|
||||
| BPYS-1787 | Функция `cloudapi.user.brief`: из модели результата удалено поле `accounts.destroyed`. |
|
||||
| BPYS-1788 | Функция `cloudapi.user.brief`: из модели результата удалено поле `rgs.destroyed`. |
|
||||
| BPYS-1769 | Функции `cloudapi.compute.get`, `cloudapi.compute.list`, `cloudapi.compute.list_deleted`, `cloudapi.compute.snapshot_list`, `cloudapi.vgpu.list`, `cloudbroker.compute.get`, `cloudbroker.compute.list`: из перечисляемого типа `VGPUStatus` удалены атрибуты `ALLOCATED`, `ALLOCATING`, `CLAIMED`, `CLAIMING`, `DEALLOCATED`, `DEALLOCATING`. |
|
||||
| BPYS-1737 | Функция `cloudapi.vgpu.list`: удалены параметры `rg_id`, `pgpu_processor_type`. |
|
||||
| BPYS-2014 | Функции `cloudapi.compute.affinity_rule_add`, `cloudapi.compute.anti_affinity_rule_add`, `cloudbroker.compute.affinity_rule_add`, `cloudbroker.compute.anti_affinity_rule_add`: из перечисляемого типа `ComputeAffinityRuleMigrationStatus` удалены атрибуты `ALREADY_SATISFIED`, `POSTPONED`, `FAILED`, `NOT_RUNNING`, `NO_AFFINITY_LABEL`. |
|
||||
| BPYS-2395 | Функция `cloudbroker.compute.migrate_v2_get`: из модели результата удалены поля `progress.system_disk`, `progress.disks.scope`, `progress.disks.target_devs`, `progress.disks.completed_disks`, `progress.disks.current_disk`. |
|
||||
| BPYS-2396 | Функция `cloudbroker.compute.migrate_v2_list`: из модели результата удалены поля `data.progress.system_disk`, `data.progress.disks.scope`, `data.progress.disks.target_devs`, `data.progress.disks.completed_disks`, `data.progress.disks.current_disk`. |
|
||||
|
||||
## Исправлено
|
||||
|
||||
### Функциональный интерфейс
|
||||
| Идентификатор<br>задачи | Описание |
|
||||
| --- | --- |
|
||||
| BPYS-1729 | Функции `cloudapi.tasks.get`, `cloudapi.tasks.list`: значения полей модели результата `update_time`, `update_datetime` ошибочно возвращались в полях `created_timestamp`, `created_datetime`. В модель результата добавлены поля `update_time`, `update_datetime`. |
|
||||
| BPYS-2074 | Функции `cloudapi.vins.get`, `cloudbroker.vins.get`: вызов завершался ошибкой валидации поля `vnfs.nat.config.rules.local_port`, если API возвращал для него `null`. В модели результата тип поля `vnfs.nat.config.rules.local_port` изменён с `int` на `int \| None`. |
|
||||
| BPYS-2075 | Функция `cloudapi.vins.nat_rule_list`: вызов функции завершался ошибкой валидации поля `data.local_port`, если API возвращал для него `null`. В модели результата тип поля `data.local_port` изменён с `int` на `int \| None`. |
|
||||
| BPYS-990 | Функции `cloudapi.kvmx86.create`, `cloudapi.kvmx86.create_blank`: вызов функций завершался ошибкой валидации поля `sdn_logical_port_id` для модели `InterfaceAPIParamsNM` при передаче данных в параметр `interfaces`. |
|
||||
@@ -0,0 +1,4 @@
|
||||
dev:
|
||||
pip install -e .
|
||||
pip install -r requirements-dev.txt
|
||||
pre-commit install
|
||||
+5
-5
@@ -5,16 +5,16 @@ authors = [
|
||||
{name = "Vladislav Nesterov"},
|
||||
{name = "Stanislav Karimov"},
|
||||
]
|
||||
version = "2.1.0"
|
||||
version = "1.2.3"
|
||||
|
||||
readme = "README.md"
|
||||
|
||||
requires-python = "==3.12.*"
|
||||
requires-python = ">=3.12"
|
||||
|
||||
dependencies = [
|
||||
"requests==2.32.3",
|
||||
"pydantic==2.13.5",
|
||||
"pyyaml==6.0.2",
|
||||
"requests>=2.32.3",
|
||||
"pydantic>=2.10.5",
|
||||
"pyyaml>=6.0.2",
|
||||
]
|
||||
|
||||
[project.urls]
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
pre-commit==4.1.0
|
||||
pytest==8.3.5
|
||||
@@ -8,15 +8,3 @@ class API(_base.BaseAPI):
|
||||
cloudapi: CloudapiAPI
|
||||
cloudbroker: CloudbrokerAPI
|
||||
system: SystemAPI
|
||||
|
||||
@property
|
||||
def ca(self):
|
||||
return self.cloudapi
|
||||
|
||||
@property
|
||||
def cb(self):
|
||||
return self.cloudbroker
|
||||
|
||||
@property
|
||||
def sys(self):
|
||||
return self.system
|
||||
@@ -1,5 +1,3 @@
|
||||
from enum import Enum
|
||||
|
||||
from dynamix_sdk.utils import (
|
||||
AutoNameEnum as _AutoNameEnum,
|
||||
enum_auto as _enum_auto,
|
||||
@@ -13,16 +11,6 @@ class AccessType(str, _AutoNameEnum):
|
||||
R = _enum_auto()
|
||||
|
||||
|
||||
class ACLType(str, _AutoNameEnum):
|
||||
U = _enum_auto()
|
||||
G = _enum_auto()
|
||||
|
||||
|
||||
class ACLStatus(str, _AutoNameEnum):
|
||||
INVITED = _enum_auto()
|
||||
CONFIRMED = _enum_auto()
|
||||
|
||||
|
||||
class AffinityMode(str, _AutoNameEnum):
|
||||
ANY = _enum_auto()
|
||||
EQ = _enum_auto()
|
||||
@@ -35,38 +23,19 @@ class AffinityPolicy(str, _AutoNameEnum):
|
||||
|
||||
|
||||
class AffinityTopology(str, _AutoNameEnum):
|
||||
VM = 'compute'
|
||||
NODE = 'node'
|
||||
|
||||
|
||||
class ComputeAffinityRuleMigrationStatus(str, _AutoNameEnum):
|
||||
MIGRATED = 'migrated'
|
||||
SKIPPED = 'skipped'
|
||||
NOT_STARTED = 'not_started'
|
||||
NOT_COMPLETED = 'not_completed'
|
||||
|
||||
|
||||
class ComputeMigrateV2Mode(str, _AutoNameEnum):
|
||||
COMPUTE = 'compute'
|
||||
DISKS = 'disks'
|
||||
COMPUTE_AND_DISKS = 'compute_and_disks'
|
||||
|
||||
|
||||
class ComputeMigrateV2AbortStatus(str, _AutoNameEnum):
|
||||
ACCEPTED = 'accepted'
|
||||
REJECTED = 'rejected'
|
||||
UNKNOWN = 'unknown'
|
||||
vm = 'compute'
|
||||
node = _enum_auto()
|
||||
|
||||
|
||||
class BootDevice(str, _AutoNameEnum):
|
||||
CDROM = 'cdrom'
|
||||
HD = 'hd'
|
||||
NETWORK = 'network'
|
||||
cdrom = _enum_auto()
|
||||
hd = _enum_auto()
|
||||
network = _enum_auto()
|
||||
|
||||
|
||||
class Chipset(str, _AutoNameEnum):
|
||||
Q35 = _enum_auto()
|
||||
I440FX = 'i440fx'
|
||||
i440fx = _enum_auto()
|
||||
|
||||
|
||||
class Driver(str, _AutoNameEnum):
|
||||
@@ -90,27 +59,27 @@ class NetTypeForChangeIP(str, _AutoNameEnum):
|
||||
|
||||
|
||||
class NumaAffinity(str, _AutoNameEnum):
|
||||
NONE = 'none'
|
||||
STRICT = 'strict'
|
||||
LOOSE = 'loose'
|
||||
none = _enum_auto()
|
||||
strict = _enum_auto()
|
||||
loose = _enum_auto()
|
||||
|
||||
|
||||
class TXMode(str, _AutoNameEnum):
|
||||
IOTHREAD = 'iothread'
|
||||
SELECTED_BY_HYPERVISOR = 'selected by hypervisor'
|
||||
TIMER = 'timer'
|
||||
iothread = _enum_auto()
|
||||
selected_by_hypervisor = 'selected by hypervisor'
|
||||
timer = _enum_auto()
|
||||
|
||||
|
||||
class Ioeventfd(str, _AutoNameEnum):
|
||||
OFF = 'off'
|
||||
ON = 'on'
|
||||
SELECTED_BY_HYPERVISOR = 'selected by hypervisor'
|
||||
off = _enum_auto()
|
||||
on = _enum_auto()
|
||||
selected_by_hypervisor = 'selected by hypervisor'
|
||||
|
||||
|
||||
class EventIdx(str, _AutoNameEnum):
|
||||
OFF = 'off'
|
||||
ON = 'on'
|
||||
SELECTED_BY_HYPERVISOR = 'selected by hypervisor'
|
||||
off = _enum_auto()
|
||||
on = _enum_auto()
|
||||
selected_by_hypervisor = 'selected by hypervisor'
|
||||
|
||||
|
||||
class ResourceGroupStatus(str, _AutoNameEnum):
|
||||
@@ -131,30 +100,14 @@ class LockStatus(str, _AutoNameEnum):
|
||||
UNLOCKED = _enum_auto()
|
||||
|
||||
|
||||
class MemoryBalloonMode(str, _AutoNameEnum):
|
||||
AUTO = 'auto'
|
||||
LEGACY = 'legacy'
|
||||
NONE = 'none'
|
||||
|
||||
|
||||
class VMFeature(str, _AutoNameEnum):
|
||||
CHANGEMAC = 'changemac'
|
||||
CPUPIN = 'cpupin'
|
||||
DPDK = 'dpdk'
|
||||
HUGEPAGES = 'hugepages'
|
||||
NUMA = 'numa'
|
||||
PCIDEVICE = 'pcidevice'
|
||||
TRUNK = 'trunk'
|
||||
VGPU = 'vgpu'
|
||||
VFNIC = 'vfnic'
|
||||
|
||||
|
||||
class WatchdogAction(str, _AutoNameEnum):
|
||||
RESET = 'reset'
|
||||
SHUTDOWN = 'shutdown'
|
||||
POWEROFF = 'poweroff'
|
||||
PAUSE = 'pause'
|
||||
NONE = 'none'
|
||||
changemac = _enum_auto()
|
||||
cpupin = _enum_auto()
|
||||
dpdk = _enum_auto()
|
||||
hugepages = _enum_auto()
|
||||
numa = _enum_auto()
|
||||
trunk = _enum_auto()
|
||||
vfnic = _enum_auto()
|
||||
|
||||
|
||||
class RGDefaultNetTypeForSet(str, _AutoNameEnum):
|
||||
@@ -169,10 +122,10 @@ class RGDefaultNetType(str, _AutoNameEnum):
|
||||
|
||||
|
||||
class RGResourceType(str, _AutoNameEnum):
|
||||
VM = 'compute'
|
||||
K8S = 'k8s'
|
||||
LB = 'lb'
|
||||
VINS = 'vins'
|
||||
vm = 'compute'
|
||||
k8s = _enum_auto()
|
||||
lb = _enum_auto()
|
||||
vins = _enum_auto()
|
||||
|
||||
|
||||
class DiskStatus(str, _AutoNameEnum):
|
||||
@@ -216,8 +169,6 @@ class VMTechStatus(str, _AutoNameEnum):
|
||||
DOWN = _enum_auto()
|
||||
MERGE = _enum_auto()
|
||||
MIGRATING = _enum_auto()
|
||||
MIGRATING_IN = _enum_auto()
|
||||
MIGRATING_OUT = _enum_auto()
|
||||
PAUSED = _enum_auto()
|
||||
PAUSING = _enum_auto()
|
||||
ROLLBACK = _enum_auto()
|
||||
@@ -229,6 +180,11 @@ class VMTechStatus(str, _AutoNameEnum):
|
||||
STOPPING = _enum_auto()
|
||||
|
||||
|
||||
class DiskType(str, _AutoNameEnum):
|
||||
B = _enum_auto()
|
||||
D = _enum_auto()
|
||||
|
||||
|
||||
class AccountStatus(str, _AutoNameEnum):
|
||||
CONFIRMED = _enum_auto()
|
||||
DISABLED = _enum_auto()
|
||||
@@ -238,11 +194,11 @@ class AccountStatus(str, _AutoNameEnum):
|
||||
|
||||
|
||||
class AccountResourceType(str, _AutoNameEnum):
|
||||
VM = 'compute'
|
||||
K8S = 'k8s'
|
||||
LB = 'lb'
|
||||
VINS = 'vins'
|
||||
FLIPGROUP = 'flipgroup'
|
||||
vm = 'compute'
|
||||
k8s = _enum_auto()
|
||||
lb = _enum_auto()
|
||||
vins = _enum_auto()
|
||||
flipgroup = _enum_auto()
|
||||
|
||||
|
||||
class ImageTechStatus(str, _AutoNameEnum):
|
||||
@@ -259,18 +215,16 @@ class ImageStatus(str, _AutoNameEnum):
|
||||
|
||||
|
||||
class ImageType(str, _AutoNameEnum):
|
||||
CDROM = 'cdrom'
|
||||
LINUX = 'linux'
|
||||
MULTI = 'multi'
|
||||
UNKNOWN = 'unknown'
|
||||
VIRTUAL = 'virtual'
|
||||
WINDOWS = 'windows'
|
||||
MEMORY_DUMP = 'memorydump'
|
||||
cdrom = _enum_auto()
|
||||
linux = _enum_auto()
|
||||
unknown = _enum_auto()
|
||||
virtual = _enum_auto()
|
||||
windows = _enum_auto()
|
||||
|
||||
|
||||
class NetIfaceNamingTemplate(str, _AutoNameEnum):
|
||||
ENS = 'ens'
|
||||
ETH = 'eth'
|
||||
ens = _enum_auto()
|
||||
eth = _enum_auto()
|
||||
|
||||
|
||||
class VINSStatus(str, _AutoNameEnum):
|
||||
@@ -332,17 +286,17 @@ class VINSInterfaceType(str, _AutoNameEnum):
|
||||
|
||||
|
||||
class NATRuleProtocol(str, _AutoNameEnum):
|
||||
TCP = 'tcp'
|
||||
UDP = 'udp'
|
||||
tcp = _enum_auto()
|
||||
udp = _enum_auto()
|
||||
|
||||
|
||||
class VNFDevType(str, _AutoNameEnum):
|
||||
VYOS = 'vyos'
|
||||
vyos = _enum_auto()
|
||||
|
||||
|
||||
class BootMode(str, _AutoNameEnum):
|
||||
BIOS = 'bios'
|
||||
UEFI = 'uefi'
|
||||
bios = _enum_auto()
|
||||
uefi = _enum_auto()
|
||||
|
||||
|
||||
class BServiceStatus(str, _AutoNameEnum):
|
||||
@@ -400,18 +354,6 @@ class SEPType(str, _AutoNameEnum):
|
||||
TATLIN = _enum_auto()
|
||||
DORADO = _enum_auto()
|
||||
SHARED = _enum_auto()
|
||||
USTOR = _enum_auto()
|
||||
AERODISK = _enum_auto()
|
||||
|
||||
|
||||
class ImageListSEPType(str, _AutoNameEnum):
|
||||
HITACHI = _enum_auto()
|
||||
DES = _enum_auto()
|
||||
LOCAL = _enum_auto()
|
||||
TATLIN = _enum_auto()
|
||||
DORADO = _enum_auto()
|
||||
SHARED = _enum_auto()
|
||||
USTOR = _enum_auto()
|
||||
|
||||
|
||||
class ExtNetStatus(str, _AutoNameEnum):
|
||||
@@ -426,9 +368,9 @@ class ExtNetStatus(str, _AutoNameEnum):
|
||||
|
||||
|
||||
class BootLoaderType(str, _AutoNameEnum):
|
||||
LINUX = 'linux'
|
||||
UNKNOWN = 'unknown'
|
||||
WINDOWS = 'windows'
|
||||
linux = _enum_auto()
|
||||
unknown = _enum_auto()
|
||||
windows = _enum_auto()
|
||||
|
||||
|
||||
class FlipGroupClientType(str, _AutoNameEnum):
|
||||
@@ -446,16 +388,11 @@ class FlipGroupNetType(str, _AutoNameEnum):
|
||||
|
||||
|
||||
class PoolDiskType(str, _AutoNameEnum):
|
||||
BOOT = 'B'
|
||||
DATA = 'D'
|
||||
B = _enum_auto()
|
||||
D = _enum_auto()
|
||||
ANY = _enum_auto()
|
||||
|
||||
|
||||
class TatlinPoolType(str, _AutoNameEnum):
|
||||
DIRECT = 'direct'
|
||||
INDIRECT = 'indirect'
|
||||
|
||||
|
||||
class CountChangeMode(str, _AutoNameEnum):
|
||||
ABSOLUTE = _enum_auto()
|
||||
RELATIVE = _enum_auto()
|
||||
@@ -506,6 +443,16 @@ class DataDisksChangeMode(str, _AutoNameEnum):
|
||||
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):
|
||||
DECS3O = 'decs3o'
|
||||
BVS = 'bvs'
|
||||
@@ -533,13 +480,6 @@ class K8sNetworkPlugin(str, _AutoNameEnum):
|
||||
WEAVENET = 'weavenet'
|
||||
|
||||
|
||||
class NetworkMode(str, _AutoNameEnum):
|
||||
OVS = 'ovs'
|
||||
BRIDGE = 'bridge'
|
||||
DPDK = 'dpdk'
|
||||
SDN = 'sdn'
|
||||
|
||||
|
||||
class K8CIStatus(str, _AutoNameEnum):
|
||||
CREATED = _enum_auto()
|
||||
DELETED = _enum_auto()
|
||||
@@ -576,209 +516,3 @@ class DPDKNetStatus(str, _AutoNameEnum):
|
||||
DESTROYED = _enum_auto()
|
||||
DISABLED = _enum_auto()
|
||||
ENABLED = _enum_auto()
|
||||
|
||||
|
||||
class VFPoolStatus(str, _AutoNameEnum):
|
||||
CREATED = _enum_auto()
|
||||
DESTROYED = _enum_auto()
|
||||
DISABLED = _enum_auto()
|
||||
ENABLED = _enum_auto()
|
||||
|
||||
|
||||
class LinkState(str, _AutoNameEnum):
|
||||
ON = 'on'
|
||||
OFF = 'off'
|
||||
|
||||
|
||||
class ZoneStatus(str, _AutoNameEnum):
|
||||
CREATED = _enum_auto()
|
||||
DESTROYED = _enum_auto()
|
||||
|
||||
|
||||
class LoggingLevel(str, _AutoNameEnum):
|
||||
CRITICAL = _enum_auto()
|
||||
ERROR = _enum_auto()
|
||||
WARNING = _enum_auto()
|
||||
NOTICE = _enum_auto()
|
||||
INFO = _enum_auto()
|
||||
DEBUG = _enum_auto()
|
||||
|
||||
|
||||
class SDRSMode(str, _AutoNameEnum):
|
||||
AUTO = 'auto'
|
||||
MANUAL = 'manual'
|
||||
|
||||
|
||||
class TrafficDirection(str, _AutoNameEnum):
|
||||
INBOUND = 'inbound'
|
||||
OUTBOUND = 'outbound'
|
||||
|
||||
|
||||
class SGRuleEthertype(str, _AutoNameEnum):
|
||||
IPV4 = 'IPv4'
|
||||
IPV6 = 'IPv6'
|
||||
|
||||
|
||||
class SGRuleProtocol(str, _AutoNameEnum):
|
||||
ICMP = 'icmp'
|
||||
TCP = 'tcp'
|
||||
UDP = 'udp'
|
||||
|
||||
|
||||
class TrunkStatus(str, _AutoNameEnum):
|
||||
CREATED = _enum_auto()
|
||||
DESTROYED = _enum_auto()
|
||||
DESTROYING = _enum_auto()
|
||||
DISABLED = _enum_auto()
|
||||
ENABLED = _enum_auto()
|
||||
ENABLING = _enum_auto()
|
||||
MODELED = _enum_auto()
|
||||
|
||||
|
||||
class StoragePolicyStatus(str, _AutoNameEnum):
|
||||
DESTROYED = _enum_auto()
|
||||
DISABLED = _enum_auto()
|
||||
ENABLED = _enum_auto()
|
||||
|
||||
|
||||
class ReplicationType(str, _AutoNameEnum):
|
||||
SYNC = 'sync'
|
||||
ASYNC = 'async'
|
||||
|
||||
|
||||
class ReplicationProfileScheduleType(str, _AutoNameEnum):
|
||||
INTERVAL = 'interval'
|
||||
CALENDAR = 'calendar'
|
||||
MANUAL_SYNC = 'manualSync'
|
||||
|
||||
|
||||
class NetworkQosPolicyStatus(str, _AutoNameEnum):
|
||||
DESTROYED = _enum_auto()
|
||||
DISABLED = _enum_auto()
|
||||
ENABLED = _enum_auto()
|
||||
|
||||
|
||||
class NetworkQosPolicyRuleDirection(str, _AutoNameEnum):
|
||||
OUTBOUND = 'outbound'
|
||||
|
||||
|
||||
class NetworkQosPolicyRuleProtocol(str, _AutoNameEnum):
|
||||
ICMP = 'icmp'
|
||||
TCP = 'tcp'
|
||||
UDP = 'udp'
|
||||
|
||||
|
||||
class JobStatus(str, _AutoNameEnum):
|
||||
ABORTED = _enum_auto()
|
||||
CLEANUPED = _enum_auto()
|
||||
ERROR = _enum_auto()
|
||||
OK = _enum_auto()
|
||||
PROCESSING = _enum_auto()
|
||||
SCHEDULED = _enum_auto()
|
||||
|
||||
|
||||
class PGPUProcessorType(str, _AutoNameEnum):
|
||||
NVIDIA = _enum_auto()
|
||||
DUMMY = _enum_auto()
|
||||
|
||||
|
||||
class PGPUMode(str, _AutoNameEnum):
|
||||
PASSTHROUGH = _enum_auto()
|
||||
|
||||
|
||||
class VGPUStatus(str, _AutoNameEnum):
|
||||
CREATED = _enum_auto()
|
||||
DESTROYED = _enum_auto()
|
||||
ERROR = _enum_auto()
|
||||
|
||||
|
||||
class NetMapSourceType(str, _AutoNameEnum):
|
||||
NETWORK = 'network'
|
||||
BRIDGE = 'bridge'
|
||||
|
||||
|
||||
class DiskMigrateJobType(int, Enum):
|
||||
PULL = 1
|
||||
COPY = 2
|
||||
COMMIT = 3
|
||||
|
||||
|
||||
class PCIDeviceStatus(str, _AutoNameEnum):
|
||||
CLAIMED = _enum_auto()
|
||||
CLAIMING = _enum_auto()
|
||||
DESTROYED = _enum_auto()
|
||||
DISABLED = _enum_auto()
|
||||
ENABLED = _enum_auto()
|
||||
ERROR = _enum_auto()
|
||||
|
||||
|
||||
class CPUAllocationMode(str, _AutoNameEnum):
|
||||
STRICT = 'strict'
|
||||
LOOSE = 'loose'
|
||||
|
||||
|
||||
class SEPTechStatus(str, _AutoNameEnum):
|
||||
DISABLED = _enum_auto()
|
||||
ENABLED = _enum_auto()
|
||||
|
||||
|
||||
class DiskCacheMode(str, _AutoNameEnum):
|
||||
NONE = 'none'
|
||||
WRITETHROUGH = 'writethrough'
|
||||
|
||||
|
||||
class DiskBlockSize(str, _AutoNameEnum):
|
||||
VAL_512 = '512'
|
||||
VAL_512E = '512e'
|
||||
VAL_4K = '4k'
|
||||
|
||||
|
||||
class CPUAllocationParam(str, _AutoNameEnum):
|
||||
STRICT = 'strict'
|
||||
LOOSE = 'loose'
|
||||
NONE = ''
|
||||
|
||||
|
||||
class DiskProvisionType(str, _AutoNameEnum):
|
||||
THICK = 'thick'
|
||||
THIN = 'thin'
|
||||
|
||||
|
||||
class DRSDXSSOType(str, _AutoNameEnum):
|
||||
BVS = 'bvs'
|
||||
DECS3O = 'decs3o'
|
||||
NONE = ''
|
||||
|
||||
|
||||
class ClockSyncMode(str, _AutoNameEnum):
|
||||
DEFAULT = 'default'
|
||||
LINUX = 'linux'
|
||||
WINDOWS = 'windows'
|
||||
NONE = 'none'
|
||||
|
||||
|
||||
class DiskDiscard(str, _AutoNameEnum):
|
||||
UNMAP = 'unmap'
|
||||
IGNORE = 'ignore'
|
||||
|
||||
|
||||
class VMFolderStatus(str, _AutoNameEnum):
|
||||
CREATED = _enum_auto()
|
||||
DESTROYED = _enum_auto()
|
||||
|
||||
|
||||
class PrometheusMetricID(str, _AutoNameEnum):
|
||||
COMPUTE_CPU_LOAD = 'computeCPUload'
|
||||
COMPUTE_MEMORY_USAGE = 'computeMemoryUsage'
|
||||
COMPUTE_MEMORY_USABLE = 'computeMemoryUsable'
|
||||
COMPUTE_MEMORY_UNUSED = 'computeMemoryUnused'
|
||||
COMPUTE_MEMORY_USED = 'computeMemoryUsed'
|
||||
COMPUTE_MEMORY_AVAILABLE = 'computeMemoryAvailable'
|
||||
COMPUTE_READ_BYTES = 'computeReadBytes'
|
||||
COMPUTE_READ_REQUESTS = 'computeReadRequests'
|
||||
COMPUTE_RECEIVE_BYTES = 'computeReceiveBytes'
|
||||
COMPUTE_TRANSMIT_BYTES = 'computeTransmitBytes'
|
||||
COMPUTE_TRANSMIT_PACKETS = 'computeTransmitPackets'
|
||||
COMPUTE_WRITE_BYTES = 'computeWriteBytes'
|
||||
COMPUTE_WRITE_REQUESTS = 'computeWriteRequests'
|
||||
COMPUTE_RECEIVE_PACKETS = 'computeReceivePackets'
|
||||
@@ -5,102 +5,24 @@ from . import enums as _enums
|
||||
class DiskAPIParamsNM(_base.BaseAPIParamsNestedModel):
|
||||
name: str
|
||||
size_gb: int
|
||||
storage_policy_id: int
|
||||
|
||||
description: None | str = None
|
||||
image_id: None | int = None
|
||||
sep_id: None | int = None
|
||||
sep_pool_name: None | str = None
|
||||
read_only: bool = False
|
||||
|
||||
|
||||
class InterfaceAPIParamsNM(_base.BaseAPIParamsNestedModel):
|
||||
enabled: bool = True
|
||||
net_id: int
|
||||
net_prefix: None | int = None
|
||||
net_type: _enums.NetType
|
||||
sdn_logical_port_id: None | str = None
|
||||
security_group_ids: None | list[int] = None
|
||||
security_group_mode: bool = False
|
||||
sdn_segment_id: None | str = None
|
||||
sdn_object_group_id: None | str = None
|
||||
sdn_logical_port_display_name: None | str = None
|
||||
sdn_logical_port_description: None | str = None
|
||||
qos_policies: list[int] | None = None
|
||||
|
||||
ip_addr: None | str = None
|
||||
mac: None | str = None
|
||||
mtu: None | int = None
|
||||
|
||||
|
||||
class CloudbrokerKvmx86CreateDataDiskAPIParamsNM(
|
||||
_base.BaseAPIParamsNestedModel,
|
||||
):
|
||||
disk_name: str
|
||||
size: int
|
||||
storage_policy_id: int
|
||||
sep_id: int | None = None
|
||||
pool: str | None = None
|
||||
desc: str | None = None
|
||||
image_id: int | None = None
|
||||
cache: _enums.DiskCacheMode | None = None
|
||||
discard: _enums.DiskDiscard | None = None
|
||||
read_only: bool = False
|
||||
|
||||
|
||||
class CloudbrokerKvmx86CreateInterfaceAPIParamsNM(
|
||||
_base.BaseAPIParamsNestedModel,
|
||||
):
|
||||
net_type: _enums.NetType
|
||||
net_id: int
|
||||
ip_addr: str | None = None
|
||||
net_mask: int | None = None
|
||||
mtu: int | None = None
|
||||
mac: str | None = None
|
||||
sdn_interface_id: str | None = None
|
||||
sdn_segment_id: str | None = None
|
||||
sdn_object_group_ids: list[str] | None = None
|
||||
sdn_logical_port_display_name: str | None = None
|
||||
sdn_logical_port_description: str | None = None
|
||||
enable_default_gateway: bool = True
|
||||
security_groups: list[int] | None = None
|
||||
enable_secgroups: bool = False
|
||||
enabled: bool = True
|
||||
qos_policies: list[int] | None = None
|
||||
|
||||
|
||||
class RouteAPIParamsNM(_base.BaseAPIParamsNestedModel):
|
||||
dst_net_ip: str
|
||||
dst_net_mask: str
|
||||
gateway: str
|
||||
|
||||
|
||||
class CloudbrokerVinsCreateRouteAPIParamsNM(
|
||||
_base.BaseAPIParamsNestedModel,
|
||||
):
|
||||
destination: str
|
||||
netmask: str
|
||||
gateway: str
|
||||
|
||||
|
||||
class StoragePolicyQuotasAPIParamsNM(_base.BaseAPIParamsNestedModel):
|
||||
id: int
|
||||
storage_size_gb: int
|
||||
|
||||
|
||||
class SEPPoolsAPIParamsNM(_base.BaseAPIParamsNestedModel):
|
||||
pool_names: list[str]
|
||||
sep_id: int
|
||||
|
||||
|
||||
class OSUserAPIParamsNM(_base.BaseAPIParamsNestedModel):
|
||||
guid: str
|
||||
login: str
|
||||
password: str
|
||||
ssh_public_key: str
|
||||
|
||||
|
||||
class NetMapConfigAPIParamsNM(_base.BaseAPIParamsNestedModel):
|
||||
target_dev: str
|
||||
source_type: _enums.NetMapSourceType
|
||||
source_value: str
|
||||
+248
-1835
File diff suppressed because it is too large.
Load diff
@@ -13,20 +13,11 @@ from .k8s import *
|
||||
from .kvmx86 import *
|
||||
from .lb import *
|
||||
from .locations import *
|
||||
from .network_qos_policy import *
|
||||
from .pcidevice import *
|
||||
from .rg import *
|
||||
from .security_group import *
|
||||
from .sep import *
|
||||
from .storage_policy import *
|
||||
from .stack import *
|
||||
from .tasks import *
|
||||
from .trunk import *
|
||||
from .user import *
|
||||
from .vfpool import *
|
||||
from .vgpu import *
|
||||
from .vins import *
|
||||
from .vmfolder import *
|
||||
from .zone import *
|
||||
|
||||
|
||||
class CloudapiAPI(_base.BaseAPI):
|
||||
@@ -44,17 +35,8 @@ class CloudapiAPI(_base.BaseAPI):
|
||||
kvmx86: CloudapiKvmx86API
|
||||
lb: CloudapiLbAPI
|
||||
locations: CloudapiLocationsAPI
|
||||
network_qos_policy: CloudapiNetworkQosPolicyAPI
|
||||
pcidevice: CloudapiPcideviceAPI
|
||||
rg: CloudapiRgAPI
|
||||
security_group: CloudapiSecurityGroupAPI
|
||||
sep: CloudapiSepAPI
|
||||
storage_policy: CloudapiStoragePolicyAPI
|
||||
stack: CloudapiStackAPI
|
||||
tasks: CloudapiTasksAPI
|
||||
trunk: CloudapiTrunkAPI
|
||||
user: CloudapiUserAPI
|
||||
vfpool: CloudapiVfpoolAPI
|
||||
vgpu: CloudapiVgpuAPI
|
||||
vins: CloudapiVinsAPI
|
||||
vmfolder: CloudapiVmfolderAPI
|
||||
zone: CloudapiZoneAPI
|
||||
@@ -1,30 +1,29 @@
|
||||
import dynamix_sdk.base as _base
|
||||
from .add_acl_access import *
|
||||
from .add_user import *
|
||||
from .del_acl_access import *
|
||||
from .delete import *
|
||||
from .delete_user import *
|
||||
from .disable import *
|
||||
from .enable import *
|
||||
from .get import *
|
||||
from .get_resource_consumption import *
|
||||
from .list import *
|
||||
from .list_deleted import *
|
||||
from .restore import *
|
||||
from .update import *
|
||||
from .update_acl_access import *
|
||||
from .update_user import *
|
||||
|
||||
|
||||
class CloudapiAccountAPI(
|
||||
_base.BaseAPI,
|
||||
CloudapiAccountAddUserProtocol,
|
||||
CloudapiAccountDeleteProtocol,
|
||||
CloudapiAccountDeleteUserProtocol,
|
||||
CloudapiAccountDisableProtocol,
|
||||
CloudapiAccountEnableProtocol,
|
||||
CloudapiAccountGetProtocol,
|
||||
CloudapiAccountListDeletedProtocol,
|
||||
CloudapiAccountListProtocol,
|
||||
CloudapiAccountRestoreProtocol,
|
||||
CloudapiAccountUpdateProtocol,
|
||||
CloudapiAccountUpdateUserProtocol,
|
||||
):
|
||||
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
|
||||
pass
|
||||
@@ -1,17 +0,0 @@
|
||||
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,15 +2,16 @@ import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiAccountAddUserImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
class CloudapiAccountAddUserResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
def __call__(
|
||||
|
||||
class CloudapiAccountAddUserProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def add_user(
|
||||
self,
|
||||
*,
|
||||
account_id: int,
|
||||
access_type: _nested.AccessTypeForSet,
|
||||
user_name: str,
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
) -> CloudapiAccountAddUserResultBool:
|
||||
...
|
||||
@@ -1,15 +0,0 @@
|
||||
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
|
||||
@@ -0,0 +1,15 @@
|
||||
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,14 +1,15 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiAccountDeleteUserImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
class CloudapiAccountDeleteUserResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
def __call__(
|
||||
|
||||
class CloudapiAccountDeleteUserProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def delete_user(
|
||||
self,
|
||||
*,
|
||||
account_id: int,
|
||||
user_name: str,
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
) -> CloudapiAccountDeleteUserResultBool:
|
||||
...
|
||||
@@ -0,0 +1,14 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiAccountDisableResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiAccountDisableProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def disable(
|
||||
self,
|
||||
*,
|
||||
account_id: int,
|
||||
) -> CloudapiAccountDisableResultBool:
|
||||
...
|
||||
@@ -0,0 +1,14 @@
|
||||
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
|
||||
|
||||
|
||||
class CloudapiAccountGetResultModel(_base.ResultModel):
|
||||
class CloudapiAccountGetResultModel(_base.BaseAPIResultModel):
|
||||
acc_lvl_vins_ids: list[int]
|
||||
acl: list[_nested.AccessAPIResultNM]
|
||||
company_url: str
|
||||
@@ -25,9 +25,7 @@ class CloudapiAccountGetResultModel(_base.ResultModel):
|
||||
resource_types: list[_nested.AccountResourceType]
|
||||
send_access_emails: bool
|
||||
status: _nested.AccountStatus
|
||||
storage_policy_ids: list[int]
|
||||
sep_pools: list[str]
|
||||
updated_by: str
|
||||
uniq_pools: list[str]
|
||||
updated_timestamp: int
|
||||
version: int
|
||||
vins_count: int
|
||||
@@ -35,29 +33,27 @@ class CloudapiAccountGetResultModel(_base.ResultModel):
|
||||
vm_features: list[_nested.VMFeature]
|
||||
zones: list[_nested.ZoneAPIResultNM]
|
||||
|
||||
@_base.computed_field
|
||||
def created_datetime(self) -> _base.datetime | None:
|
||||
@property
|
||||
def created_datetime(self):
|
||||
return self._get_datetime_from_timestamp(self.created_timestamp)
|
||||
|
||||
@_base.computed_field
|
||||
def deactivation_datetime(self) -> _base.datetime | None:
|
||||
@property
|
||||
def deactivation_datetime(self):
|
||||
return self._get_datetime_from_timestamp(self.deactivation_timestamp)
|
||||
|
||||
@_base.computed_field
|
||||
def deleted_datetime(self) -> _base.datetime | None:
|
||||
@property
|
||||
def deleted_datetime(self):
|
||||
return self._get_datetime_from_timestamp(self.deleted_timestamp)
|
||||
|
||||
@_base.computed_field
|
||||
def updated_datetime(self) -> _base.datetime | None:
|
||||
@property
|
||||
def updated_datetime(self):
|
||||
return self._get_datetime_from_timestamp(self.updated_timestamp)
|
||||
|
||||
|
||||
class CloudapiAccountGetImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
class CloudapiAccountGetProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def get(
|
||||
self,
|
||||
*,
|
||||
account_id: int,
|
||||
) -> CloudapiAccountGetResultModel:
|
||||
raise NotImplementedError
|
||||
...
|
||||
@@ -1,24 +0,0 @@
|
||||
import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiAccountGetResourceConsumptionResultModel(
|
||||
_base.ResultModel,
|
||||
):
|
||||
id: int
|
||||
consumed: _nested.ResourceCountersAPIResultNM
|
||||
reserved: _nested.ResourceCountersAPIResultNM
|
||||
quotas: _nested.TenantQuotasForResourceConsumptionAPIResultNM
|
||||
|
||||
|
||||
class CloudapiAccountGetResourceConsumptionImpl(
|
||||
_base.APIFunctionImpl,
|
||||
):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
account_id: int,
|
||||
) -> CloudapiAccountGetResourceConsumptionResultModel:
|
||||
raise NotImplementedError
|
||||
@@ -2,24 +2,21 @@ import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiAccountListResultModel(_base.ResultModel):
|
||||
data: list[_nested.AccountForCAAPIResultNM]
|
||||
class CloudapiAccountListResultModel(_base.BaseAPIResultModel):
|
||||
data: list[_nested.AccountAPIResultNM]
|
||||
entry_count: int
|
||||
|
||||
|
||||
class CloudapiAccountListImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
class CloudapiAccountListProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def list(
|
||||
self,
|
||||
*,
|
||||
access_type: None | _nested.AccessType = None,
|
||||
id: None | int = None,
|
||||
name: None | str = None,
|
||||
zone_id: None | int = None,
|
||||
page_number: int = 1,
|
||||
page_size: int = 100,
|
||||
page_number: None | int = None,
|
||||
page_size: None | int = None,
|
||||
sort_by: None | str = None,
|
||||
status: None | _nested.AccountStatus = None,
|
||||
) -> CloudapiAccountListResultModel:
|
||||
raise NotImplementedError
|
||||
...
|
||||
@@ -2,22 +2,20 @@ import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiAccountListDeletedResultModel(_base.ResultModel):
|
||||
data: list[_nested.AccountForCAAPIResultNM]
|
||||
class CloudapiAccountListDeletedResultModel(_base.BaseAPIResultModel):
|
||||
data: list[_nested.AccountAPIResultNM]
|
||||
entry_count: int
|
||||
|
||||
|
||||
class CloudapiAccountListDeletedImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
class CloudapiAccountListDeletedProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def list_deleted(
|
||||
self,
|
||||
*,
|
||||
access_type: None | _nested.AccessType = None,
|
||||
id: None | int = None,
|
||||
name: None | str = None,
|
||||
page_number: int = 1,
|
||||
page_size: int = 100,
|
||||
page_number: None | int = None,
|
||||
page_size: None | int = None,
|
||||
sort_by: None | str = None,
|
||||
) -> CloudapiAccountListDeletedResultModel:
|
||||
raise NotImplementedError
|
||||
...
|
||||
@@ -1,13 +1,14 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiAccountRestoreImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
class CloudapiAccountRestoreResultStr(_base.BaseAPIResultStr):
|
||||
pass
|
||||
|
||||
def __call__(
|
||||
|
||||
class CloudapiAccountRestoreProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def restore(
|
||||
self,
|
||||
*,
|
||||
account_id: int,
|
||||
async_mode: bool = True,
|
||||
) -> str:
|
||||
raise NotImplementedError
|
||||
) -> CloudapiAccountRestoreResultStr:
|
||||
...
|
||||
@@ -1,23 +1,25 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiAccountUpdateImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
class CloudapiAccountUpdateResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
def __call__(
|
||||
|
||||
class CloudapiAccountUpdateProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def update(
|
||||
self,
|
||||
*,
|
||||
account_id: int,
|
||||
cpu_count_quota: None | int = None,
|
||||
ext_traffic_quota: None | int = None,
|
||||
gpu_count_quota: None | int = None,
|
||||
name: None | str = None,
|
||||
ext_ip_count_quota: None | int = None,
|
||||
public_ip_count_quota: None | int = None,
|
||||
ram_size_quota_mb: None | int = None,
|
||||
send_access_emails: bool | None = None,
|
||||
send_access_emails: None | bool = None,
|
||||
storage_size_quota_gb: None | int = None,
|
||||
sep_pools: None | list[str] = None,
|
||||
uniq_pools: None | list[str] = None,
|
||||
description: str | None = None,
|
||||
default_zone_id: int | None = None,
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
) -> CloudapiAccountUpdateResultBool:
|
||||
...
|
||||
@@ -1,17 +0,0 @@
|
||||
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,15 +2,16 @@ import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiAccountUpdateUserImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
class CloudapiAccountUpdateUserResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
def __call__(
|
||||
|
||||
class CloudapiAccountUpdateUserProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def update_user(
|
||||
self,
|
||||
*,
|
||||
account_id: int,
|
||||
access_type: _nested.AccessTypeForSet,
|
||||
user_name: str,
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
) -> CloudapiAccountUpdateUserResultBool:
|
||||
...
|
||||
@@ -1,10 +1,9 @@
|
||||
import dynamix_sdk.base as _base
|
||||
from .get import *
|
||||
from .list import *
|
||||
|
||||
|
||||
class CloudapiAuditAPI(
|
||||
_base.BaseAPI,
|
||||
CloudapiAuditGetProtocol,
|
||||
):
|
||||
list: CloudapiAuditListImpl
|
||||
get: CloudapiAuditGetImpl
|
||||
pass
|
||||
@@ -1,19 +1,33 @@
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiAuditGetResultModel(
|
||||
_nested.AuditAPIResultNM,
|
||||
):
|
||||
pass
|
||||
class CloudapiAuditGetResultModel(_base.BaseAPIResultModel):
|
||||
args: str
|
||||
api_url_path: str
|
||||
guid: str
|
||||
kwargs: str
|
||||
client_ip_addr: str
|
||||
execution_time_sec: float
|
||||
result: str
|
||||
status_code: int
|
||||
request_timestamp: float
|
||||
response_timestamp: float
|
||||
user_name: str
|
||||
request_datetime_iso8601: str
|
||||
|
||||
@property
|
||||
def request_datetime(self):
|
||||
return self._get_datetime_from_timestamp(self.request_timestamp)
|
||||
|
||||
@property
|
||||
def response_datetime(self):
|
||||
return self._get_datetime_from_timestamp(self.response_timestamp)
|
||||
|
||||
|
||||
class CloudapiAuditGetImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
class CloudapiAuditGetProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def get(
|
||||
self,
|
||||
*,
|
||||
audit_guid: str,
|
||||
) -> CloudapiAuditGetResultModel:
|
||||
raise NotImplementedError
|
||||
...
|
||||
@@ -1,44 +0,0 @@
|
||||
from pydantic import Field
|
||||
|
||||
import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiAuditListResultModel(_base.ResultModel):
|
||||
data: list[_nested.AuditAPIResultNM]
|
||||
entry_count: int
|
||||
|
||||
|
||||
class CloudapiAuditListImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
account_id: int | None = None,
|
||||
api_url_path: str | None = None,
|
||||
bservice_id: int | None = None,
|
||||
exclude_audit_lines: bool = False,
|
||||
flip_group_id: int | None = None,
|
||||
request_id: str | None = None,
|
||||
k8s_id: int | None = None,
|
||||
lb_id: int | None = None,
|
||||
max_status_code: int | None = None,
|
||||
min_status_code: int | None = None,
|
||||
page_number: int = 1,
|
||||
page_size: int = 100,
|
||||
public_session_id: str | None = None,
|
||||
request_timestamp_end: int | None = None,
|
||||
request_timestamp_start: int | None = None,
|
||||
rg_id: int | None = None,
|
||||
sep_id: int | None = None,
|
||||
sort_by: str | None = None,
|
||||
user_name: str | None = None,
|
||||
vins_id: int | None = None,
|
||||
vm_id: int | None = None,
|
||||
disk_id: int | None = Field(
|
||||
serialization_alias='disk_id', default=None,
|
||||
),
|
||||
vmfolder_id: int | None = None,
|
||||
) -> CloudapiAuditListResultModel:
|
||||
raise NotImplementedError
|
||||
@@ -10,6 +10,7 @@ from .group_get import *
|
||||
from .group_parent_add import *
|
||||
from .group_parent_remove import *
|
||||
from .group_remove import *
|
||||
from .group_resize import *
|
||||
from .group_start import *
|
||||
from .group_stop import *
|
||||
from .group_update import *
|
||||
@@ -17,42 +18,34 @@ from .group_update_extnet import *
|
||||
from .group_update_vins import *
|
||||
from .list import *
|
||||
from .list_deleted import *
|
||||
from .migrate_to_zone import *
|
||||
from .restore import *
|
||||
from .snapshot_create import *
|
||||
from .snapshot_delete import *
|
||||
from .snapshot_list import *
|
||||
from .snapshot_rollback import *
|
||||
from .start import *
|
||||
from .stop import *
|
||||
|
||||
|
||||
class CloudapiBserviceAPI(
|
||||
_base.BaseAPI,
|
||||
CloudapiBserviceCreateProtocol,
|
||||
CloudapiBserviceDeleteProtocol,
|
||||
CloudapiBserviceDisableProtocol,
|
||||
CloudapiBserviceEnableProtocol,
|
||||
CloudapiBserviceGetProtocol,
|
||||
CloudapiBserviceGroupAddProtocol,
|
||||
CloudapiBserviceGroupComputeRemoveProtocol,
|
||||
CloudapiBserviceGroupGetProtocol,
|
||||
CloudapiBserviceGroupParentAddProtocol,
|
||||
CloudapiBserviceGroupParentRemoveProtocol,
|
||||
CloudapiBserviceGroupRemoveProtocol,
|
||||
CloudapiBserviceGroupResizeProtocol,
|
||||
CloudapiBserviceGroupStartProtocol,
|
||||
CloudapiBserviceGroupStopProtocol,
|
||||
CloudapiBserviceGroupUpdateExtnetProtocol,
|
||||
CloudapiBserviceGroupUpdateProtocol,
|
||||
CloudapiBserviceGroupUpdateVinsProtocol,
|
||||
CloudapiBserviceListDeletedProtocol,
|
||||
CloudapiBserviceListProtocol,
|
||||
CloudapiBserviceRestoreProtocol,
|
||||
CloudapiBserviceStartProtocol,
|
||||
CloudapiBserviceStopProtocol,
|
||||
):
|
||||
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
|
||||
pass
|
||||
@@ -1,16 +1,18 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceCreateImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
class CloudapiBserviceCreateResultInt(_base.BaseAPIResultInt):
|
||||
pass
|
||||
|
||||
def __call__(
|
||||
|
||||
class CloudapiBserviceCreateProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def create(
|
||||
self,
|
||||
*,
|
||||
name: str,
|
||||
rg_id: int,
|
||||
ssh_user_name: str | None = None,
|
||||
ssh_public_key: str | None = None,
|
||||
ssh_user: str | None = None,
|
||||
ssh_key: str | None = None,
|
||||
zone_id: int | None = None,
|
||||
) -> int:
|
||||
raise NotImplementedError
|
||||
) -> CloudapiBserviceCreateResultInt:
|
||||
...
|
||||
@@ -1,13 +1,15 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceDeleteImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
class CloudapiBserviceDeleteResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
def __call__(
|
||||
|
||||
class CloudapiBserviceDeleteProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def delete(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
permanently: bool = False,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
) -> CloudapiBserviceDeleteResultBool:
|
||||
...
|
||||
@@ -1,12 +1,14 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceDisableImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
class CloudapiBserviceDisableResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
def __call__(
|
||||
|
||||
class CloudapiBserviceDisableProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def disable(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
) -> CloudapiBserviceDisableResultBool:
|
||||
...
|
||||
@@ -1,12 +1,14 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceEnableImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
class CloudapiBserviceEnableResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
def __call__(
|
||||
|
||||
class CloudapiBserviceEnableProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def enable(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
) -> CloudapiBserviceEnableResultBool:
|
||||
...
|
||||
@@ -2,7 +2,7 @@ import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiBserviceGetResultModel(_base.ResultModel):
|
||||
class CloudapiBserviceGetResultModel(_base.BaseAPIResultModel):
|
||||
account_id: int
|
||||
account_name: str
|
||||
base_domain: str
|
||||
@@ -24,8 +24,8 @@ class CloudapiBserviceGetResultModel(_base.ResultModel):
|
||||
rg_id: int
|
||||
rg_name: str
|
||||
snapshots: list[_nested.BServiceSnapshotAPIResultNM]
|
||||
ssh_public_key: str
|
||||
ssh_user_name: str
|
||||
ssh_key: str
|
||||
ssh_user: str
|
||||
status: _nested.BServiceStatus
|
||||
tech_status: _nested.BServiceTechStatus
|
||||
updated_by: str
|
||||
@@ -34,25 +34,23 @@ class CloudapiBserviceGetResultModel(_base.ResultModel):
|
||||
vms: list[_nested.BServiceVMAPIResultNM]
|
||||
zone_id: int
|
||||
|
||||
@_base.computed_field
|
||||
def created_datetime(self) -> _base.datetime | None:
|
||||
@property
|
||||
def created_datetime(self):
|
||||
return self._get_datetime_from_timestamp(self.created_timestamp)
|
||||
|
||||
@_base.computed_field
|
||||
def deleted_datetime(self) -> _base.datetime | None:
|
||||
@property
|
||||
def deleted_datetime(self):
|
||||
return self._get_datetime_from_timestamp(self.deleted_timestamp)
|
||||
|
||||
@_base.computed_field
|
||||
def updated_datetime(self) -> _base.datetime | None:
|
||||
@property
|
||||
def updated_datetime(self):
|
||||
return self._get_datetime_from_timestamp(self.updated_timestamp)
|
||||
|
||||
|
||||
class CloudapiBserviceGetImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
class CloudapiBserviceGetProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def get(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
) -> CloudapiBserviceGetResultModel:
|
||||
raise NotImplementedError
|
||||
...
|
||||
@@ -2,27 +2,29 @@ import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiBserviceGroupAddImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
class CloudapiBserviceGroupAddResultInt(_base.BaseAPIResultInt):
|
||||
pass
|
||||
|
||||
def __call__(
|
||||
|
||||
class CloudapiBserviceGroupAddProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def group_add(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
vm_count: int,
|
||||
cpu_count: int,
|
||||
boot_disk_size_gb: int,
|
||||
driver: _nested.Driver,
|
||||
image_id: int,
|
||||
name: str,
|
||||
ram_size_mb: int,
|
||||
storage_policy_id: int | None = None,
|
||||
ci_user_data: str | dict | None = None,
|
||||
ci_user_data: str | None = None,
|
||||
extnet_ids: list[int] | None = None,
|
||||
role: str | None = None,
|
||||
sep_id: int | None = None,
|
||||
sep_pool_name: str | None = None,
|
||||
start_timeout: int | None = None,
|
||||
vins_ids: list[int] | None = None,
|
||||
chipset: _nested.Chipset = _nested.Chipset.Q35,
|
||||
) -> int:
|
||||
raise NotImplementedError
|
||||
chipset: _nested.Chipset = _nested.Chipset.i440fx,
|
||||
) -> CloudapiBserviceGroupAddResultInt:
|
||||
...
|
||||
@@ -1,16 +1,18 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceGroupComputeRemoveImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
class CloudapiBserviceGroupComputeRemoveResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
def __call__(
|
||||
|
||||
class CloudapiBserviceGroupComputeRemoveProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
):
|
||||
def group_compute_remove(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
bsgroup_id: int,
|
||||
vm_id: int,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
) -> CloudapiBserviceGroupComputeRemoveResultBool:
|
||||
...
|
||||
@@ -3,7 +3,7 @@ import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiBserviceGroupGetResultModel(
|
||||
_base.ResultModel,
|
||||
_base.BaseAPIResultModel,
|
||||
):
|
||||
account_id: int
|
||||
account_name: str
|
||||
@@ -29,7 +29,7 @@ class CloudapiBserviceGroupGetResultModel(
|
||||
rg_name: str
|
||||
role: str
|
||||
sep_id: int
|
||||
sep_pool_name: str | None
|
||||
sep_pool_name: str
|
||||
seq_no: int
|
||||
status: _nested.BServiceGroupStatus
|
||||
tech_status: _nested.BServiceGroupTechStatus
|
||||
@@ -39,25 +39,23 @@ class CloudapiBserviceGroupGetResultModel(
|
||||
vins_ids: list[int]
|
||||
vms: list[_nested.BServiceGroupVMAPIResultNM]
|
||||
|
||||
@_base.computed_field
|
||||
def created_datetime(self) -> _base.datetime | None:
|
||||
@property
|
||||
def created_datetime(self):
|
||||
return self._get_datetime_from_timestamp(self.created_timestamp)
|
||||
|
||||
@_base.computed_field
|
||||
def deleted_datetime(self) -> _base.datetime | None:
|
||||
@property
|
||||
def deleted_datetime(self):
|
||||
return self._get_datetime_from_timestamp(self.deleted_timestamp)
|
||||
|
||||
@_base.computed_field
|
||||
def updated_datetime(self) -> _base.datetime | None:
|
||||
@property
|
||||
def updated_datetime(self):
|
||||
return self._get_datetime_from_timestamp(self.updated_timestamp)
|
||||
|
||||
|
||||
class CloudapiBserviceGroupGetImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
class CloudapiBserviceGroupGetProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def group_get(
|
||||
self, *,
|
||||
bservice_id: int,
|
||||
bsgroup_id: int
|
||||
) -> CloudapiBserviceGroupGetResultModel:
|
||||
raise NotImplementedError
|
||||
...
|
||||
@@ -1,16 +1,18 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceGroupParentAddImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
class CloudapiBserviceGroupParentAddResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
def __call__(
|
||||
|
||||
class CloudapiBserviceGroupParentAddProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
):
|
||||
def group_parent_add(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
child_id: int,
|
||||
bsgroup_id: int,
|
||||
parent_id: int,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
) -> CloudapiBserviceGroupParentAddResultBool:
|
||||
...
|
||||
@@ -1,16 +1,18 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceGroupParentRemoveImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
class CloudapiBserviceGroupParentRemoveResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
def __call__(
|
||||
|
||||
class CloudapiBserviceGroupParentRemoveProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
):
|
||||
def group_parent_remove(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
child_id: int,
|
||||
bsgroup_id: int,
|
||||
parent_id: int,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
) -> CloudapiBserviceGroupParentRemoveResultBool:
|
||||
...
|
||||
@@ -1,12 +1,14 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceGroupRemoveImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
class CloudapiBserviceGroupRemoveResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
def __call__(
|
||||
|
||||
class CloudapiBserviceGroupRemoveProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def group_remove(
|
||||
self, *,
|
||||
bservice_id: int,
|
||||
bsgroup_id: int
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
) -> CloudapiBserviceGroupRemoveResultBool:
|
||||
...
|
||||
@@ -0,0 +1,23 @@
|
||||
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,13 +1,15 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceGroupStartImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
class CloudapiBserviceGroupStartResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
def __call__(
|
||||
|
||||
class CloudapiBserviceGroupStartProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def group_start(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
bsgroup_id: int,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
) -> CloudapiBserviceGroupStartResultBool:
|
||||
...
|
||||
@@ -1,14 +1,16 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceGroupStopImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
class CloudapiBserviceGroupStopResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
def __call__(
|
||||
|
||||
class CloudapiBserviceGroupStopProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def group_stop(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
bsgroup_id: int,
|
||||
force: bool = False,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
) -> CloudapiBserviceGroupStopResultBool:
|
||||
...
|
||||
@@ -1,12 +1,14 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceGroupUpdateImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
class CloudapiBserviceGroupUpdateResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
def __call__(
|
||||
|
||||
class CloudapiBserviceGroupUpdateProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
):
|
||||
def group_update(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
@@ -17,5 +19,5 @@ class CloudapiBserviceGroupUpdateImpl(
|
||||
name: str | None = None,
|
||||
ram_size_mb: int | None = None,
|
||||
role: str | None = None,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
) -> CloudapiBserviceGroupUpdateResultBool:
|
||||
...
|
||||
@@ -1,16 +1,18 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceGroupUpdateExtnetImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
class CloudapiBserviceGroupUpdateExtnetResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
def __call__(
|
||||
|
||||
class CloudapiBserviceGroupUpdateExtnetProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
):
|
||||
def group_update_extnet(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
bsgroup_id: int,
|
||||
extnet_ids: list[int] | None = None,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
) -> CloudapiBserviceGroupUpdateExtnetResultBool:
|
||||
...
|
||||
@@ -1,16 +1,18 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceGroupUpdateVinsImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
class CloudapiBserviceGroupUpdateVinsResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
def __call__(
|
||||
|
||||
class CloudapiBserviceGroupUpdateVinsProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
):
|
||||
def group_update_vins(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
bsgroup_id: int,
|
||||
vins_ids: list[int] | None = None,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
) -> CloudapiBserviceGroupUpdateVinsResultBool:
|
||||
...
|
||||
@@ -2,28 +2,25 @@ import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiBserviceListResultModel(_base.ResultModel):
|
||||
class CloudapiBserviceListResultModel(_base.BaseAPIResultModel):
|
||||
data: list[_nested.BServiceAPIResultNM]
|
||||
entry_count: int
|
||||
|
||||
|
||||
class CloudapiBserviceListImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
class CloudapiBserviceListProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def list(
|
||||
self,
|
||||
*,
|
||||
account_id: int | None = None,
|
||||
account_name: str | None = None,
|
||||
id: int | None = None,
|
||||
name: str | None = None,
|
||||
zone_id: int | None = None,
|
||||
page_number: int = 1,
|
||||
page_size: int = 100,
|
||||
page_number: int | None = None,
|
||||
page_size: int | None = None,
|
||||
rg_id: int | None = None,
|
||||
rg_name: str | None = None,
|
||||
sort_by: str | None = None,
|
||||
status: _nested.BServiceStatus | None = None,
|
||||
tech_status: _nested.BServiceTechStatus | None = None,
|
||||
) -> CloudapiBserviceListResultModel:
|
||||
raise NotImplementedError
|
||||
...
|
||||
@@ -2,21 +2,19 @@ import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiBserviceListDeletedResultModel(_base.ResultModel):
|
||||
class CloudapiBserviceListDeletedResultModel(_base.BaseAPIResultModel):
|
||||
data: list[_nested.BServiceAPIResultNM]
|
||||
entry_count: int
|
||||
|
||||
|
||||
class CloudapiBserviceListDeletedImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
class CloudapiBserviceListDeletedProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def list_deleted(
|
||||
self,
|
||||
*,
|
||||
account_id: int | None = None,
|
||||
page_number: int = 1,
|
||||
page_size: int = 100,
|
||||
page_number: int | None = None,
|
||||
page_size: int | None = None,
|
||||
rg_id: int | None = None,
|
||||
sort_by: str | None = None,
|
||||
) -> CloudapiBserviceListDeletedResultModel:
|
||||
raise NotImplementedError
|
||||
...
|
||||
@@ -1,13 +0,0 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceMigrateToZoneImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
zone_id: int,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,12 +1,14 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceRestoreImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
class CloudapiBserviceRestoreResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
def __call__(
|
||||
|
||||
class CloudapiBserviceRestoreProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def restore(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
) -> CloudapiBserviceRestoreResultBool:
|
||||
...
|
||||
@@ -1,15 +0,0 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceSnapshotCreateImpl(
|
||||
_base.APIFunctionImpl,
|
||||
):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
label: str,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,15 +0,0 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceSnapshotDeleteImpl(
|
||||
_base.APIFunctionImpl,
|
||||
):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
label: str,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,18 +0,0 @@
|
||||
import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiBserviceSnapshotListResultModel(_base.ResultModel):
|
||||
data: list[_nested.BServiceSnapshotAPIResultNM]
|
||||
entry_count: int
|
||||
|
||||
|
||||
class CloudapiBserviceSnapshotListImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
) -> CloudapiBserviceSnapshotListResultModel:
|
||||
raise NotImplementedError
|
||||
@@ -1,15 +0,0 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceSnapshotRollbackImpl(
|
||||
_base.APIFunctionImpl,
|
||||
):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
label: str,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,12 +1,14 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceStartImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
class CloudapiBserviceStartResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
def __call__(
|
||||
|
||||
class CloudapiBserviceStartProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def start(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
) -> CloudapiBserviceStartResultBool:
|
||||
...
|
||||
@@ -1,12 +1,14 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceStopImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
class CloudapiBserviceStopResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
def __call__(
|
||||
|
||||
class CloudapiBserviceStopProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def stop(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
) -> CloudapiBserviceStopResultBool:
|
||||
...
|
||||
@@ -1,6 +1,4 @@
|
||||
import dynamix_sdk.base as _base
|
||||
from .abort_shared_snapshot_merge import *
|
||||
from .add_acl_access import *
|
||||
from .affinity_label_remove import *
|
||||
from .affinity_label_set import *
|
||||
from .affinity_relations import *
|
||||
@@ -10,60 +8,30 @@ from .affinity_rules_clear import *
|
||||
from .anti_affinity_rule_add import *
|
||||
from .anti_affinity_rule_remove import *
|
||||
from .anti_affinity_rules_clear import *
|
||||
from .attach_gpu import *
|
||||
from .attach_pci_device import *
|
||||
from .boot_disk_set import *
|
||||
from .cd_eject import *
|
||||
from .cd_insert import *
|
||||
from .change_ip import *
|
||||
from .change_link_state import *
|
||||
from .change_mac import *
|
||||
from .change_mtu import *
|
||||
from .change_qos_policies import *
|
||||
from .change_security_groups import *
|
||||
from .clone import *
|
||||
from .create_template import *
|
||||
from .del_acl_access import *
|
||||
from .delete import *
|
||||
from .delete_custom_fields import *
|
||||
from .delete_cpu_alignment_profile import *
|
||||
from .detach_gpu import *
|
||||
from .detach_pci_device import *
|
||||
from .disable import *
|
||||
from .disk_add import *
|
||||
from .disk_attach import *
|
||||
from .disk_migrate import *
|
||||
from .disk_del import *
|
||||
from .disk_detach import *
|
||||
from .disk_switch_to_replication import *
|
||||
from .enable import *
|
||||
from .disk_resize import *
|
||||
from .get import *
|
||||
from .get_acl_access import *
|
||||
from .get_console_url import *
|
||||
from .get_cpu_alignment_profile import *
|
||||
from .guest_agent_disable import *
|
||||
from .guest_agent_enable import *
|
||||
from .guest_agent_execute import *
|
||||
from .guest_agent_feature_update import *
|
||||
from .list import *
|
||||
from .list_deleted import *
|
||||
from .migrate_to_zone import *
|
||||
from .move_to_rg import *
|
||||
from .net_attach import *
|
||||
from .net_detach import *
|
||||
from .pause import *
|
||||
from .pfw_add import *
|
||||
from .pfw_del import *
|
||||
from .pfw_list import *
|
||||
from .pin_to_node import *
|
||||
from .power_cycle import *
|
||||
from .pin_to_stack import *
|
||||
from .reboot import *
|
||||
from .redeploy import *
|
||||
from .reset import *
|
||||
from .resize import *
|
||||
from .restore import *
|
||||
from .resume import *
|
||||
from .set_cpu_alignment_profile import *
|
||||
from .set_custom_fields import *
|
||||
from .snapshot_create import *
|
||||
from .snapshot_list import *
|
||||
@@ -72,9 +40,8 @@ from .start import *
|
||||
from .stop import *
|
||||
from .tag_add import *
|
||||
from .tag_remove import *
|
||||
from .unpin_from_node import *
|
||||
from .unpin_from_stack import *
|
||||
from .update import *
|
||||
from .update_acl_access import *
|
||||
from .user_grant import *
|
||||
from .user_list import *
|
||||
from .user_revoke import *
|
||||
@@ -83,84 +50,52 @@ from .user_update import *
|
||||
|
||||
class CloudapiComputeAPI(
|
||||
_base.BaseAPI,
|
||||
CloudapiComputeAffinityLabelRemoveProtocol,
|
||||
CloudapiComputeAffinityLabelSetProtocol,
|
||||
CloudapiComputeAffinityRelationsProtocol,
|
||||
CloudapiComputeAffinityRuleAddProtocol,
|
||||
CloudapiComputeAffinityRuleRemoveProtocol,
|
||||
CloudapiComputeAffinityRulesClearProtocol,
|
||||
CloudapiComputeAntiAffinityRuleAddProtocol,
|
||||
CloudapiComputeAntiAffinityRuleRemoveProtocol,
|
||||
CloudapiComputeAntiAffinityRulesClearProtocol,
|
||||
CloudapiComputeCdEjectProtocol,
|
||||
CloudapiComputeCdInsertProtocol,
|
||||
CloudapiComputeChangeIpProtocol,
|
||||
CloudapiComputeCloneProtocol,
|
||||
CloudapiComputeDeleteCustomFieldsProtocol,
|
||||
CloudapiComputeDeleteProtocol,
|
||||
CloudapiComputeDiskAddProtocol,
|
||||
CloudapiComputeDiskAttachProtocol,
|
||||
CloudapiComputeDiskDelProtocol,
|
||||
CloudapiComputeDiskDetachProtocol,
|
||||
CloudapiComputeDiskResizeProtocol,
|
||||
CloudapiComputeGetProtocol,
|
||||
CloudapiComputeListProtocol,
|
||||
CloudapiComputeNetAttachProtocol,
|
||||
CloudapiComputeNetDetachProtocol,
|
||||
CloudapiComputePauseProtocol,
|
||||
CloudapiComputePfwAddProtocol,
|
||||
CloudapiComputePfwDelProtocol,
|
||||
CloudapiComputePfwListProtocol,
|
||||
CloudapiComputePinToStackProtocol,
|
||||
CloudapiComputeRebootProtocol,
|
||||
CloudapiComputeRedeployProtocol,
|
||||
CloudapiComputeResizeProtocol,
|
||||
CloudapiComputeResumeProtocol,
|
||||
CloudapiComputeSetCustomFieldsProtocol,
|
||||
CloudapiComputeSnapshotCreateProtocol,
|
||||
CloudapiComputeSnapshotListProtocol,
|
||||
CloudapiComputeSnapshotRollbackProtocol,
|
||||
CloudapiComputeStartProtocol,
|
||||
CloudapiComputeStopProtocol,
|
||||
CloudapiComputeTagAddProtocol,
|
||||
CloudapiComputeTagRemoveProtocol,
|
||||
CloudapiComputeUnpinFromStackProtocol,
|
||||
CloudapiComputeUpdateProtocol,
|
||||
CloudapiComputeUserGrantProtocol,
|
||||
CloudapiComputeUserListProtocol,
|
||||
CloudapiComputeUserRevokeProtocol,
|
||||
CloudapiComputeUserUpdateProtocol,
|
||||
):
|
||||
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
|
||||
pass
|
||||
@@ -1,16 +0,0 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeAbortSharedSnapshotMergeImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
label: str,
|
||||
async_mode: bool = False,
|
||||
) -> str:
|
||||
raise NotImplementedError
|
||||
@@ -1,16 +0,0 @@
|
||||
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,14 +1,16 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeAffinityLabelRemoveImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
class CloudapiComputeAffinityLabelRemoveResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
def __call__(
|
||||
|
||||
class CloudapiComputeAffinityLabelRemoveProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
):
|
||||
def affinity_label_remove(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
) -> CloudapiComputeAffinityLabelRemoveResultBool:
|
||||
...
|
||||
@@ -1,15 +1,17 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeAffinityLabelSetImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
class CloudapiComputeAffinityLabelSetResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
def __call__(
|
||||
|
||||
class CloudapiComputeAffinityLabelSetProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
):
|
||||
def affinity_label_set(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
affinity_label: str,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
) -> CloudapiComputeAffinityLabelSetResultBool:
|
||||
...
|
||||
@@ -3,19 +3,18 @@ from dynamix_sdk.api import _nested
|
||||
|
||||
|
||||
class CloudapiComputeAffinityRelationsResultModel(
|
||||
_base.BaseAPIResultModel,
|
||||
_nested.AffinityRelationsAPIResultNM,
|
||||
):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeAffinityRelationsImpl(
|
||||
_base.APIFunctionImpl
|
||||
class CloudapiComputeAffinityRelationsProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
def affinity_relations(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
) -> CloudapiComputeAffinityRelationsResultModel:
|
||||
raise NotImplementedError
|
||||
...
|
||||
@@ -2,18 +2,14 @@ import dynamix_sdk.base as _base
|
||||
from dynamix_sdk.api import _nested
|
||||
|
||||
|
||||
class CloudapiComputeAffinityRuleAddResultModel(
|
||||
_nested.ComputeAffinityRuleApplyResultAPIResultNM,
|
||||
):
|
||||
class CloudapiComputeAffinityRuleAddResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeAffinityRuleAddImpl(
|
||||
_base.APIFunctionImpl
|
||||
class CloudapiComputeAffinityRuleAddProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
def affinity_rule_add(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
@@ -22,7 +18,5 @@ class CloudapiComputeAffinityRuleAddImpl(
|
||||
mode: _nested.AffinityMode,
|
||||
key: str,
|
||||
value: str,
|
||||
async_mode: bool = False,
|
||||
migrate: bool = False,
|
||||
) -> bool | str | CloudapiComputeAffinityRuleAddResultModel:
|
||||
raise NotImplementedError
|
||||
) -> CloudapiComputeAffinityRuleAddResultBool:
|
||||
...
|
||||
@@ -2,12 +2,14 @@ import dynamix_sdk.base as _base
|
||||
from dynamix_sdk.api import _nested
|
||||
|
||||
|
||||
class CloudapiComputeAffinityRuleRemoveImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
class CloudapiComputeAffinityRuleRemoveResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
def __call__(
|
||||
|
||||
class CloudapiComputeAffinityRuleRemoveProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
):
|
||||
def affinity_rule_remove(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
@@ -16,5 +18,5 @@ class CloudapiComputeAffinityRuleRemoveImpl(
|
||||
mode: _nested.AffinityMode,
|
||||
key: str,
|
||||
value: str,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
) -> CloudapiComputeAffinityRuleRemoveResultBool:
|
||||
...
|
||||
@@ -1,14 +1,16 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeAffinityRulesClearImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
class CloudapiComputeAffinityRulesClearResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
def __call__(
|
||||
|
||||
class CloudapiComputeAffinityRulesClearProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
):
|
||||
def affinity_rules_clear(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
) -> CloudapiComputeAffinityRulesClearResultBool:
|
||||
...
|
||||
@@ -2,18 +2,14 @@ import dynamix_sdk.base as _base
|
||||
from dynamix_sdk.api import _nested
|
||||
|
||||
|
||||
class CloudapiComputeAntiAffinityRuleAddResultModel(
|
||||
_nested.ComputeAffinityRuleApplyResultAPIResultNM,
|
||||
):
|
||||
class CloudapiComputeAntiAffinityRuleAddResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeAntiAffinityRuleAddImpl(
|
||||
_base.APIFunctionImpl
|
||||
class CloudapiComputeAntiAffinityRuleAddProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
def anti_affinity_rule_add(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
@@ -22,7 +18,5 @@ class CloudapiComputeAntiAffinityRuleAddImpl(
|
||||
mode: _nested.AffinityMode,
|
||||
key: str,
|
||||
value: str,
|
||||
async_mode: bool = False,
|
||||
migrate: bool = False,
|
||||
) -> bool | str | CloudapiComputeAntiAffinityRuleAddResultModel:
|
||||
raise NotImplementedError
|
||||
) -> CloudapiComputeAntiAffinityRuleAddResultBool:
|
||||
...
|
||||
@@ -2,12 +2,14 @@ import dynamix_sdk.base as _base
|
||||
from dynamix_sdk.api import _nested
|
||||
|
||||
|
||||
class CloudapiComputeAntiAffinityRuleRemoveImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
class CloudapiComputeAntiAffinityRuleRemoveResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
def __call__(
|
||||
|
||||
class CloudapiComputeAntiAffinityRuleRemoveProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
):
|
||||
def anti_affinity_rule_remove(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
@@ -16,5 +18,5 @@ class CloudapiComputeAntiAffinityRuleRemoveImpl(
|
||||
mode: _nested.AffinityMode,
|
||||
key: str,
|
||||
value: str,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
) -> CloudapiComputeAntiAffinityRuleRemoveResultBool:
|
||||
...
|
||||
@@ -1,14 +1,16 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeAntiAffinityRulesClearImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
class CloudapiComputeAntiAffinityRulesClearResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
def __call__(
|
||||
|
||||
class CloudapiComputeAntiAffinityRulesClearProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
):
|
||||
def anti_affinity_rules_clear(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
) -> CloudapiComputeAntiAffinityRulesClearResultBool:
|
||||
...
|
||||
@@ -1,13 +0,0 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeAttachGpuImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
vgpu_id: int,
|
||||
) -> int:
|
||||
raise NotImplementedError
|
||||
@@ -1,15 +0,0 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeAttachPciDeviceImpl(
|
||||
_base.APIFunctionImpl,
|
||||
):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
pci_device_id: int,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,13 +0,0 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeBootDiskSetImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
disk_id: int,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,13 +1,14 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeCdEjectImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
class CloudapiComputeCdEjectResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
def __call__(
|
||||
|
||||
class CloudapiComputeCdEjectProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def cd_eject(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
) -> CloudapiComputeCdEjectResultBool:
|
||||
...
|
||||
@@ -1,14 +1,15 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeCdInsertImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
class CloudapiComputeCdInsertResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
def __call__(
|
||||
|
||||
class CloudapiComputeCdInsertProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def cd_insert(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
cdrom_image_id: int,
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
) -> CloudapiComputeCdInsertResultBool:
|
||||
...
|
||||
@@ -2,16 +2,17 @@ import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiComputeChangeIpImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
class CloudapiComputeChangeIpResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
def __call__(
|
||||
|
||||
class CloudapiComputeChangeIpProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def change_ip(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
net_type: _nested.NetTypeForChangeIP,
|
||||
net_id: int,
|
||||
ip_addr: str,
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
) -> CloudapiComputeChangeIpResultBool:
|
||||
...
|
||||
@@ -1,18 +0,0 @@
|
||||
import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiComputeChangeLinkStateImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
interface: str,
|
||||
state: _nested.LinkState,
|
||||
vm_id: int,
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
@@ -1,14 +0,0 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeChangeMacImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
current_mac: str,
|
||||
new_mac: str,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,17 +0,0 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeChangeMtuImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
interface: str,
|
||||
mtu: int,
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
@@ -1,17 +0,0 @@
|
||||
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,18 +0,0 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeChangeSecurityGroupsImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
interface: str,
|
||||
security_group_ids: list[int] | None = None,
|
||||
security_group_mode: bool | None = None,
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
@@ -1,20 +1,18 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeCloneImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
class CloudapiComputeCloneResultInt(_base.BaseAPIResultInt):
|
||||
pass
|
||||
|
||||
def __call__(
|
||||
|
||||
class CloudapiComputeCloneProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def clone(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
name: str,
|
||||
force: bool = False,
|
||||
storage_policy_id: int,
|
||||
snapshot_timestamp: int | None = None,
|
||||
snapshot_name: str | None = None,
|
||||
sep_pool_name: str | None = None,
|
||||
sep_id: int | None = None,
|
||||
async_mode: bool = True,
|
||||
) -> str | int:
|
||||
raise NotImplementedError
|
||||
) -> CloudapiComputeCloneResultInt:
|
||||
...
|
||||
@@ -1,14 +0,0 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeCreateTemplateImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
name: str,
|
||||
async_mode: bool = True,
|
||||
) -> str | int:
|
||||
raise NotImplementedError
|
||||
@@ -1,14 +0,0 @@
|
||||
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,15 +1,16 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeDeleteImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
class CloudapiComputeDeleteResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
def __call__(
|
||||
|
||||
class CloudapiComputeDeleteProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def delete(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
detach_disks: bool = False,
|
||||
permanently: bool = False,
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
) -> CloudapiComputeDeleteResultBool:
|
||||
...
|
||||
@@ -1,12 +0,0 @@
|
||||
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,14 +1,16 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeDeleteCustomFieldsImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
class CloudapiComputeDeleteCustomFieldsResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
def __call__(
|
||||
|
||||
class CloudapiComputeDeleteCustomFieldsProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
):
|
||||
def delete_custom_fields(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
) -> CloudapiComputeDeleteCustomFieldsResultBool:
|
||||
...
|
||||
@@ -1,13 +0,0 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeDetachGpuImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
vgpu_id: int | None = None,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,15 +0,0 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeDetachPciDeviceImpl(
|
||||
_base.APIFunctionImpl,
|
||||
):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
pci_device_id: int,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,15 +0,0 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeDisableImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
@@ -1,23 +1,23 @@
|
||||
import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiComputeDiskAddImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
class CloudapiComputeDiskAddResultInt(_base.BaseAPIResultInt):
|
||||
pass
|
||||
|
||||
def __call__(
|
||||
|
||||
class CloudapiComputeDiskAddProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def disk_add(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
name: str,
|
||||
disk_size_gb: int,
|
||||
storage_policy_id: int,
|
||||
disk_type: _nested.DiskType = _nested.DiskType.D,
|
||||
sep_id: int | None = None,
|
||||
sep_pool_name: str | None = None,
|
||||
description: str | None = None,
|
||||
image_id: int | None = None,
|
||||
pci_slot_num_hex: str | None = None,
|
||||
bus_num_hex: str | None = None,
|
||||
async_mode: bool = False,
|
||||
read_only_mode: bool = False,
|
||||
) -> int | str:
|
||||
raise NotImplementedError
|
||||
|
||||
) -> CloudapiComputeDiskAddResultInt:
|
||||
...
|
||||
@@ -1,17 +1,17 @@
|
||||
import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiComputeDiskAttachImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
class CloudapiComputeDiskAttachResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
def __call__(
|
||||
|
||||
class CloudapiComputeDiskAttachProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def disk_attach(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
disk_id: int,
|
||||
pci_slot_num_hex: str | None = None,
|
||||
bus_num_hex: str | None = None,
|
||||
async_mode: bool = False,
|
||||
read_only_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
disk_type: _nested.DiskType = _nested.DiskType.D,
|
||||
) -> CloudapiComputeDiskAttachResultBool:
|
||||
...
|
||||
@@ -1,15 +1,16 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeDiskDelImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
class CloudapiComputeDiskDelResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
def __call__(
|
||||
|
||||
class CloudapiComputeDiskDelProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def disk_del(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
disk_id: int,
|
||||
permanently: bool = True,
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
) -> CloudapiComputeDiskDelResultBool:
|
||||
...
|
||||
@@ -1,14 +1,15 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeDiskDetachImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
class CloudapiComputeDiskDetachResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
def __call__(
|
||||
|
||||
class CloudapiComputeDiskDetachProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def disk_detach(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
disk_id: int,
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
) -> CloudapiComputeDiskDetachResultBool:
|
||||
...
|
||||
@@ -1,17 +0,0 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeDiskMigrateImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
disk_id: int,
|
||||
target_disk_id: int,
|
||||
mode: int = 1,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -0,0 +1,16 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeDiskResizeResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeDiskResizeProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def disk_resize(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
disk_id: int,
|
||||
disk_size_gb: int,
|
||||
) -> CloudapiComputeDiskResizeResultBool:
|
||||
...
|
||||
@@ -1,18 +0,0 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeDiskSwitchToReplicationImpl(
|
||||
_base.APIFunctionImpl,
|
||||
):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
disk_id: int,
|
||||
stop_replication: bool = False,
|
||||
planned: bool = True,
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
@@ -1,12 +0,0 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeEnableImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,8 +1,10 @@
|
||||
import typing as _typing
|
||||
|
||||
import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiComputeGetResultModel(_base.ResultModel):
|
||||
class CloudapiComputeGetResultModel(_base.BaseAPIResultModel):
|
||||
account_id: int
|
||||
account_name: str
|
||||
acl: _nested.VMACLAPIResultNM
|
||||
@@ -13,18 +15,14 @@ class CloudapiComputeGetResultModel(_base.ResultModel):
|
||||
arch: str
|
||||
auto_start: bool
|
||||
boot_disk_size_gb: int
|
||||
boot_image_id: int
|
||||
boot_loader_metaiso: _nested.BootLoaderMetaisoAPIResultNM | None
|
||||
boot_loader_type: _nested.BootLoaderType
|
||||
boot_mode: _nested.BootMode
|
||||
boot_order: list[_nested.BootDevice]
|
||||
cdrom_image_id: int
|
||||
chipset: _nested.Chipset
|
||||
ci_user_data: dict
|
||||
clock_sync_mode: _nested.ClockSyncMode
|
||||
clone_ids: list[int]
|
||||
clone_reference: int
|
||||
cpu_alignment_profile: _nested.CPUAlignmentProfileAPIResultNM | dict
|
||||
cpu_count: int
|
||||
cpu_pin: bool
|
||||
created_by: str
|
||||
@@ -33,24 +31,22 @@ class CloudapiComputeGetResultModel(_base.ResultModel):
|
||||
deleted_by: str
|
||||
deleted_timestamp: int
|
||||
description: str
|
||||
pci_devices: dict[str, int]
|
||||
devices: dict
|
||||
disks: list[_nested.DiskForCAComputeGetAPIResultNM]
|
||||
driver: _nested.Driver
|
||||
folder_id: int | None = None
|
||||
grid_id: int
|
||||
guid: int
|
||||
hot_resize: bool
|
||||
hp_backed: bool
|
||||
id: int
|
||||
image_id: None | int
|
||||
image_id: int
|
||||
image_name: None | str
|
||||
interfaces: list[_nested.InterfaceForComputeGetAPIResultNM]
|
||||
live_migration_job_id: int
|
||||
lock_status: _nested.LockStatus
|
||||
manager_id: int
|
||||
manager_type: str
|
||||
memory_balloon_mode: _nested.MemoryBalloonMode
|
||||
migration_job_id: int
|
||||
migration_job: int
|
||||
milestones: int
|
||||
name: str
|
||||
need_reboot: bool
|
||||
@@ -58,32 +54,29 @@ class CloudapiComputeGetResultModel(_base.ResultModel):
|
||||
numa_affinity: _nested.NumaAffinity
|
||||
numa_node_id: int
|
||||
os_users: list[_nested.OSUserAPIResultNM]
|
||||
os_version: str
|
||||
pinned_to_node: bool
|
||||
pinned_to_stack: bool
|
||||
preferred_cpu_cores: list[int]
|
||||
ram_size_mb: int
|
||||
read_only: bool
|
||||
reference_id: str
|
||||
res_name: str
|
||||
reserved_cpu_cores: list[int]
|
||||
resized_online: bool
|
||||
rg_id: int
|
||||
rg_name: str
|
||||
snapshot_sets: list[_nested.SnapshotSetAPIResultNM]
|
||||
stateless_sep_id: int | None = None
|
||||
stateless_sep_type: str | None = None
|
||||
stateless_sep_id: int
|
||||
stateless_sep_type: str
|
||||
status: _nested.VMStatus
|
||||
tags: dict
|
||||
tech_status: _nested.VMTechStatus
|
||||
updated_by: str
|
||||
updated_timestamp: int
|
||||
user_managed: bool
|
||||
vgpus: list[_nested.VGPUAPIResultNM]
|
||||
vgpus: list[dict[str, _typing.Any]]
|
||||
virtual_image_id: int
|
||||
virtual_image_name: None | str
|
||||
vm_ci_id: int
|
||||
vnc_password: str
|
||||
guest_agent: _nested.GuestAgentAPIResultNM
|
||||
watchdog_action: _nested.WatchdogAction
|
||||
weight: int
|
||||
zone_id: int
|
||||
|
||||
natable_vins_id: int = 0
|
||||
@@ -92,25 +85,23 @@ class CloudapiComputeGetResultModel(_base.ResultModel):
|
||||
natable_vins_network: str = ''
|
||||
natable_vins_network_name: str = ''
|
||||
|
||||
@_base.computed_field
|
||||
def created_datetime(self) -> _base.datetime | None:
|
||||
@property
|
||||
def created_datetime(self):
|
||||
return self._get_datetime_from_timestamp(self.created_timestamp)
|
||||
|
||||
@_base.computed_field
|
||||
def deleted_datetime(self) -> _base.datetime | None:
|
||||
@property
|
||||
def deleted_datetime(self):
|
||||
return self._get_datetime_from_timestamp(self.deleted_timestamp)
|
||||
|
||||
@_base.computed_field
|
||||
def updated_datetime(self) -> _base.datetime | None:
|
||||
@property
|
||||
def updated_datetime(self):
|
||||
return self._get_datetime_from_timestamp(self.updated_timestamp)
|
||||
|
||||
|
||||
class CloudapiComputeGetImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
class CloudapiComputeGetProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def get(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
) -> CloudapiComputeGetResultModel:
|
||||
raise NotImplementedError
|
||||
...
|
||||
@@ -1,18 +0,0 @@
|
||||
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 865 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user