Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
00fa013feb | ||
|
|
68064479d2 |
No files matched your search
+65
-25
@@ -1,33 +1,73 @@
|
|||||||
# Список изменений в версии 2.1.1
|
# Список изменений в версии 2.1.3
|
||||||
|
|
||||||
## Изменено
|
## Изменено
|
||||||
|
|
||||||
## Добавлено
|
|
||||||
| Идентификатор<br>задачи | Описание |
|
| Идентификатор<br>задачи | Описание |
|
||||||
| --- | --- |
|
| --- | --- |
|
||||||
| BPYS-2428 | Добавлена функция `cloudbroker.zone.get_cpu_alignment_profile`. |
|
| BPYS-2565 | Функции `cloudbroker.grid.set_mem_allocation_ratio`: тип параметра `ratio` изменён с `int` на `float`. |
|
||||||
| BPYS-2429 | Добавлена функция `cloudbroker.zone.list_cpu_alignment_profile`. |
|
| BPYS-2567 | Функции `cloudapi.image.get`, `cloudbroker.image.get`: в модели результата поле `type` стало необязательным. |
|
||||||
| BPYS-2430 | Добавлена функция `cloudbroker.zone.update_cpu_alignment_profile`. |
|
| BPYS-2567 | Функции `cloudapi.image.list`, `cloudbroker.image.list`: в модели результата поле `data.type` стало необязательным. |
|
||||||
| BPYS-2431 | Добавлена функция `cloudbroker.zone.test_cpu_alignment_profile`. |
|
| BPYS-2564 | Функции `cloudbroker.grid.get_settings`: в модели результата тип поля `mem_allocation_ratio` изменён с `int \| None` на `float \| None`. |
|
||||||
| BPYS-2432 | Добавлена функция `cloudbroker.zone.set_resources_limit`. |
|
| BPYS-2564 | Функции `cloudbroker.node.list`: в модели результата тип поля `data.mem_allocation_ratio` изменён с `int \| None` на `float \| None`. |
|
||||||
| BPYS-2433 | Добавлена функция `cloudbroker.zone.node_autostart`. |
|
|
||||||
| BPYS-2422 | Добавлена функция `cloudbroker.grid.get_settings`. |
|
## Добавлено
|
||||||
| BPYS-2445 | Добавлена функция `cloudbroker.grid.purge_logs`. |
|
|
||||||
| BPYS-2446 | Добавлена функция `cloudbroker.grid.remove_custom_backup_path`. |
|
| Идентификатор<br>задачи | Описание |
|
||||||
| BPYS-2447 | Добавлена функция `cloudbroker.grid.rename`. |
|
| --- | --- |
|
||||||
| BPYS-2450 | Добавлена функция `cloudbroker.grid.set_resources_limit`. |
|
| BPYS-2558 | Добавлена функция `cloudbroker.node.set_vfs_number`. |
|
||||||
| BPYS-2451 | Добавлена функция `cloudbroker.grid.status`. |
|
| BPYS-2566 | Функции `cloudapi.zone.get`, `cloudbroker.zone.get`: в модели результата добавлено поле `ttl`. |
|
||||||
| BPYS-2453 | Добавлена функция `cloudbroker.bservice.group_get`. |
|
| BPYS-2566 | Функции `cloudapi.zone.list`, `cloudbroker.zone.list`: в модели результата добавлено поле `data.ttl`. |
|
||||||
| BPYS-2455 | Добавлена функция `cloudbroker.bservice.group_parent_add`. |
|
| BPYS-2559 | Добавлена функция `cloudbroker.node.set_vfs_params`. |
|
||||||
| BPYS-2456 | Добавлена функция `cloudbroker.bservice.group_parent_remove`. |
|
| BPYS-2560 | Добавлена функция `cloudbroker.node.set_core_isolation`. |
|
||||||
| BPYS-2457 | Добавлена функция `cloudbroker.bservice.group_remove`. |
|
| BPYS-2561 | Добавлена функция `cloudbroker.node.setsriovstatus`. |
|
||||||
| BPYS-2458 | Добавлена функция `cloudbroker.bservice.group_resize`. |
|
| BPYS-2551 | Добавлена функция `cloudbroker.node.get_pci_devices`. |
|
||||||
| BPYS-2442 | Добавлена функция `cloudbroker.grid.get_resource_consumption`. |
|
| BPYS-2581 | Добавлена функция `cloudbroker.sep.add_consumer_nodes`. |
|
||||||
| BPYS-2449 | Добавлена функция `cloudbroker.grid.set_cpu_allocation_parameter`. |
|
| BPYS-2582 | Добавлена функция `cloudbroker.sep.add_pool`. |
|
||||||
| BPYS-2452 | Добавлена функция `cloudbroker.grid.set_cpu_allocation_ratio`. |
|
| BPYS-2510 | Добавлена функция `cloudbroker.apiaccess.get`. |
|
||||||
| BPYS-2454 | Добавлена функция `cloudbroker.grid.set_cpu_allocation_ratio_for_vm`. |
|
| BPYS-2191 | Добавлена функция `cloudapi.disks.replication_set_schedule`. |
|
||||||
| BPYS-2464 | Добавлена функция `cloudbroker.grid.set_mem_allocation_ratio`. |
|
| BPYS-2192 | Добавлена функция `cloudapi.disks.replication_set_copy_rate`. |
|
||||||
| BPYS-2465 | Добавлена функция `cloudbroker.grid.set_password_policy`. |
|
| BPYS-2193 | Добавлена функция `cloudapi.disks.replication_promote`. |
|
||||||
|
| BPYS-2583 | Добавлена функция `cloudbroker.sep.add_provider_nodes`. |
|
||||||
|
| BPYS-2573 | Добавлена функция `cloudbroker.node.set_resources_limit`. |
|
||||||
|
| BPYS-2571 | Добавлена функция `cloudbroker.node.set_cpu_allocation_ratio`. |
|
||||||
|
| BPYS-2492 | Добавлена функция `cloudapi.disks.replication_cancel_sync`. |
|
||||||
|
| BPYS-2584 | Добавлена функция `cloudbroker.sep.config_validate`. |
|
||||||
|
| BPYS-2550 | Добавлена функция `cloudbroker.node.remove_ssh_identity`. |
|
||||||
|
| BPYS-2587 | Добавлена функция `cloudbroker.sep.decommission`. |
|
||||||
|
| BPYS-2586 | Добавлена функция `cloudbroker.sep.config_insert`. |
|
||||||
|
| BPYS-2585 | Добавлена функция `cloudbroker.sep.create`. |
|
||||||
|
| BPYS-2572 | Добавлена функция `cloudbroker.node.set_mem_allocation_ratio`. |
|
||||||
|
| BPYS-2589 | Добавлена функция `cloudbroker.sep.del_pool`. |
|
||||||
|
| BPYS-2552 | Добавлена функция `cloudbroker.node.pci_device_driver_to_vfio`. |
|
||||||
|
| BPYS-2553 | Добавлена функция `cloudbroker.node.pci_device_driver_to_kernel`. |
|
||||||
|
| BPYS-2595 | Добавлена функция `cloudbroker.sep.get`. |
|
||||||
|
| BPYS-2596 | Добавлена функция `cloudbroker.sep.get_template`. |
|
||||||
|
| BPYS-2599 | Добавлена функция `cloudbroker.sep.update`. |
|
||||||
|
| BPYS-2600 | Добавлена функция `cloudbroker.sep.list_available_sep_and_pools`. |
|
||||||
|
| BPYS-2601 | Добавлена функция `cloudbroker.sep.shared_lock_stop`. |
|
||||||
|
| BPYS-2602 | Добавлена функция `cloudbroker.sep.shared_lock_start`. |
|
||||||
|
| BPYS-2597 | Добавлена функция `cloudbroker.sep.get_config`. |
|
||||||
|
| BPYS-2598 | Добавлена функция `cloudbroker.sep.get_pool`. |
|
||||||
|
| BPYS-2591 | Добавлена функция `cloudbroker.sep.disable`. |
|
||||||
|
| BPYS-2594 | Добавлена функция `cloudbroker.sep.enable`. |
|
||||||
|
| BPYS-2609 | Добавлена функция `cloudbroker.node.get_logical_cores_count`. |
|
||||||
|
| BPYS-2608 | Добавлена функция `cloudbroker.image.create_from_disk`. |
|
||||||
|
| BPYS-2613 | Добавлена функция `cloudbroker.disks.migrate_v2`. |
|
||||||
|
| BPYS-2619 | Добавлена функция `cloudbroker.disks.replication_start`. |
|
||||||
|
| BPYS-2621 | Добавлена функция `cloudbroker.disks.replication_sync_now`. |
|
||||||
|
| BPYS-2622 | Добавлена функция `cloudbroker.disks.replication_cancel_sync`. |
|
||||||
|
| BPYS-2606 | Добавлена функция `cloudbroker.audit.linked_jobs`. |
|
||||||
|
| BPYS-2614 | Добавлена функция `cloudbroker.disks.migrate_v2_abort`. |
|
||||||
|
| BPYS-2623 | Добавлена функция `cloudbroker.disks.replication_enable_schedule`. |
|
||||||
|
| BPYS-2624 | Добавлена функция `cloudbroker.disks.replication_disable_schedule`. |
|
||||||
|
| BPYS-2620 | Добавлена функция `cloudbroker.disks.replication_stop`. |
|
||||||
|
| BPYS-2548 | Добавлена функция `cloudbroker.node.get`. |
|
||||||
|
| BPYS-2590 | Добавлена функция `cloudbroker.sep.delete`. |
|
||||||
|
| BPYS-2593 | Добавлена функция `cloudbroker.sep.disk_list`. |
|
||||||
|
| BPYS-2603 | Добавлена функция `cloudbroker.audit.get`. |
|
||||||
|
| BPYS-2610 | Добавлена функция `cloudbroker.disks.present`. |
|
||||||
|
| BPYS-2611 | Добавлена функция `cloudbroker.disks.rename`. |
|
||||||
|
| BPYS-2612 | Добавлена функция `cloudbroker.disks.replicate`. |
|
||||||
|
|
||||||
## Удалено
|
## Удалено
|
||||||
|
|
||||||
|
|||||||
@@ -697,8 +697,12 @@ class RequestException(Exception):
|
|||||||
- /cloudapi/disks/listDeleted
|
- /cloudapi/disks/listDeleted
|
||||||
- /cloudapi/disks/listUnattached
|
- /cloudapi/disks/listUnattached
|
||||||
- /cloudapi/disks/rename
|
- /cloudapi/disks/rename
|
||||||
|
- /cloudapi/disks/replication_cancel_sync
|
||||||
- /cloudapi/disks/replication_disable_schedule
|
- /cloudapi/disks/replication_disable_schedule
|
||||||
- /cloudapi/disks/replication_manual_sync
|
- /cloudapi/disks/replication_manual_sync
|
||||||
|
- /cloudapi/disks/replication_promote
|
||||||
|
- /cloudapi/disks/replication_set_copy_rate
|
||||||
|
- /cloudapi/disks/replication_set_schedule
|
||||||
- /cloudapi/disks/resize2
|
- /cloudapi/disks/resize2
|
||||||
- /cloudapi/disks/restore
|
- /cloudapi/disks/restore
|
||||||
- /cloudapi/disks/share
|
- /cloudapi/disks/share
|
||||||
@@ -1031,12 +1035,49 @@ class RequestException(Exception):
|
|||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
<details><summary>apiaccess</summary>
|
||||||
|
|
||||||
|
- /cloudbroker/apiaccess/apiFind
|
||||||
|
- /cloudbroker/apiaccess/apisExclude
|
||||||
|
- /cloudbroker/apiaccess/apisInclude
|
||||||
|
- /cloudbroker/apiaccess/copy
|
||||||
|
- /cloudbroker/apiaccess/create
|
||||||
|
- /cloudbroker/apiaccess/delete
|
||||||
|
- /cloudbroker/apiaccess/descUpdate
|
||||||
|
- /cloudbroker/apiaccess/get
|
||||||
|
- /cloudbroker/apiaccess/getDefault
|
||||||
|
- /cloudbroker/apiaccess/getFull
|
||||||
|
- /cloudbroker/apiaccess/list
|
||||||
|
- /cloudbroker/apiaccess/setDefault
|
||||||
|
- /cloudbroker/apiaccess/subtract
|
||||||
|
- /cloudbroker/apiaccess/union
|
||||||
|
- /cloudbroker/apiaccess/update
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
<details><summary>audit</summary>
|
<details><summary>audit</summary>
|
||||||
|
|
||||||
|
- /cloudbroker/audit/get
|
||||||
|
- /cloudbroker/audit/linkedJobs
|
||||||
- /cloudbroker/audit/list
|
- /cloudbroker/audit/list
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
<details><summary>backup</summary>
|
||||||
|
|
||||||
|
- /cloudbroker/backup/abort_disks_backup
|
||||||
|
- /cloudbroker/backup/backup_disks_with_speed
|
||||||
|
- /cloudbroker/backup/createDiskBackup
|
||||||
|
- /cloudbroker/backup/createDisksBackup
|
||||||
|
- /cloudbroker/backup/deleteDiskBackup
|
||||||
|
- /cloudbroker/backup/info
|
||||||
|
- /cloudbroker/backup/listBackupPaths
|
||||||
|
- /cloudbroker/backup/restoreDiskFromBackup
|
||||||
|
- /cloudbroker/backup/restoreDisksFromBackup
|
||||||
|
- /cloudbroker/backup/set_backup_speed
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
<details><summary>bservice</summary>
|
<details><summary>bservice</summary>
|
||||||
|
|
||||||
- /cloudbroker/bservice/create
|
- /cloudbroker/bservice/create
|
||||||
@@ -1051,6 +1092,21 @@ class RequestException(Exception):
|
|||||||
- /cloudbroker/bservice/groupParentRemove
|
- /cloudbroker/bservice/groupParentRemove
|
||||||
- /cloudbroker/bservice/groupRemove
|
- /cloudbroker/bservice/groupRemove
|
||||||
- /cloudbroker/bservice/groupResize
|
- /cloudbroker/bservice/groupResize
|
||||||
|
- /cloudbroker/bservice/groupStart
|
||||||
|
- /cloudbroker/bservice/groupStop
|
||||||
|
- /cloudbroker/bservice/groupUpdate
|
||||||
|
- /cloudbroker/bservice/groupUpdateExtnet
|
||||||
|
- /cloudbroker/bservice/groupUpdateVins
|
||||||
|
- /cloudbroker/bservice/list
|
||||||
|
- /cloudbroker/bservice/listDeleted
|
||||||
|
- /cloudbroker/bservice/migrateToZone
|
||||||
|
- /cloudbroker/bservice/restore
|
||||||
|
- /cloudbroker/bservice/snapshotCreate
|
||||||
|
- /cloudbroker/bservice/snapshotDelete
|
||||||
|
- /cloudbroker/bservice/snapshotList
|
||||||
|
- /cloudbroker/bservice/snapshotRollback
|
||||||
|
- /cloudbroker/bservice/start
|
||||||
|
- /cloudbroker/bservice/stop
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
@@ -1189,6 +1245,17 @@ class RequestException(Exception):
|
|||||||
- /cloudbroker/disks/migrate
|
- /cloudbroker/disks/migrate
|
||||||
- /cloudbroker/disks/migrate_abort
|
- /cloudbroker/disks/migrate_abort
|
||||||
- /cloudbroker/disks/migrate_status
|
- /cloudbroker/disks/migrate_status
|
||||||
|
- /cloudbroker/disks/migrate_v2
|
||||||
|
- /cloudbroker/disks/migrate_v2_abort
|
||||||
|
- /cloudbroker/disks/present
|
||||||
|
- /cloudbroker/disks/rename
|
||||||
|
- /cloudbroker/disks/replicate
|
||||||
|
- /cloudbroker/disks/replication_cancel_sync
|
||||||
|
- /cloudbroker/disks/replication_sync_now
|
||||||
|
- /cloudbroker/disks/replicationStart
|
||||||
|
- /cloudbroker/disks/replication_enable_schedule
|
||||||
|
- /cloudbroker/disks/replication_disable_schedule
|
||||||
|
- /cloudbroker/disks/replicationStop
|
||||||
- /cloudbroker/disks/update
|
- /cloudbroker/disks/update
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
@@ -1277,12 +1344,19 @@ class RequestException(Exception):
|
|||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
<details><summary>group</summary>
|
||||||
|
|
||||||
|
- /cloudbroker/group/list
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
<details><summary>image</summary>
|
<details><summary>image</summary>
|
||||||
|
|
||||||
- /cloudbroker/image/change_storage_policy
|
- /cloudbroker/image/change_storage_policy
|
||||||
- /cloudbroker/image/createCDROMImage
|
- /cloudbroker/image/createCDROMImage
|
||||||
- /cloudbroker/image/createImage
|
- /cloudbroker/image/createImage
|
||||||
- /cloudbroker/image/createVirtual
|
- /cloudbroker/image/createVirtual
|
||||||
|
- /cloudbroker/image/create_from_disk
|
||||||
- /cloudbroker/image/create_multi_image
|
- /cloudbroker/image/create_multi_image
|
||||||
- /cloudbroker/image/delete
|
- /cloudbroker/image/delete
|
||||||
- /cloudbroker/image/deleteCDROMImage
|
- /cloudbroker/image/deleteCDROMImage
|
||||||
@@ -1392,8 +1466,33 @@ class RequestException(Exception):
|
|||||||
<details><summary>node</summary>
|
<details><summary>node</summary>
|
||||||
|
|
||||||
- /cloudbroker/node/add_ssh_identity
|
- /cloudbroker/node/add_ssh_identity
|
||||||
|
- /cloudbroker/node/applyIpmiAction
|
||||||
|
- /cloudbroker/node/autostart
|
||||||
|
- /cloudbroker/node/consumption
|
||||||
|
- /cloudbroker/node/decommission
|
||||||
|
- /cloudbroker/node/enable
|
||||||
|
- /cloudbroker/node/enableNodes
|
||||||
|
- /cloudbroker/node/get
|
||||||
|
- /cloudbroker/node/get_logical_cores_count
|
||||||
|
- /cloudbroker/node/get_network_info
|
||||||
|
- /cloudbroker/node/get_pci_devices
|
||||||
- /cloudbroker/node/get_ssh_identity
|
- /cloudbroker/node/get_ssh_identity
|
||||||
|
- /cloudbroker/node/install
|
||||||
- /cloudbroker/node/list
|
- /cloudbroker/node/list
|
||||||
|
- /cloudbroker/node/maintenance
|
||||||
|
- /cloudbroker/node/remove_ssh_identity
|
||||||
|
- /cloudbroker/node/pci_device_driver_to_vfio
|
||||||
|
- /cloudbroker/node/pci_device_driver_to_kernel
|
||||||
|
- /cloudbroker/node/restrict
|
||||||
|
- /cloudbroker/node/set_cpu_allocation_ratio
|
||||||
|
- /cloudbroker/node/set_mem_allocation_ratio
|
||||||
|
- /cloudbroker/node/set_resources_limit
|
||||||
|
- /cloudbroker/node/setCoreIsolation
|
||||||
|
- /cloudbroker/node/setHugePages
|
||||||
|
- /cloudbroker/node/setVFsNumber
|
||||||
|
- /cloudbroker/node/setVFsParams
|
||||||
|
- /cloudbroker/node/setsriovstatus
|
||||||
|
- /cloudbroker/node/update
|
||||||
- /cloudbroker/node/update_description
|
- /cloudbroker/node/update_description
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
@@ -1459,8 +1558,28 @@ class RequestException(Exception):
|
|||||||
|
|
||||||
<details><summary>sep</summary>
|
<details><summary>sep</summary>
|
||||||
|
|
||||||
|
- /cloudbroker/sep/addConsumerNodes
|
||||||
|
- /cloudbroker/sep/addPool
|
||||||
|
- /cloudbroker/sep/addProviderNodes
|
||||||
|
- /cloudbroker/sep/configInsert
|
||||||
|
- /cloudbroker/sep/configValidate
|
||||||
- /cloudbroker/sep/consumption
|
- /cloudbroker/sep/consumption
|
||||||
|
- /cloudbroker/sep/create
|
||||||
|
- /cloudbroker/sep/decommission
|
||||||
|
- /cloudbroker/sep/delete
|
||||||
|
- /cloudbroker/sep/delPool
|
||||||
|
- /cloudbroker/sep/disable
|
||||||
|
- /cloudbroker/sep/diskList
|
||||||
|
- /cloudbroker/sep/enable
|
||||||
|
- /cloudbroker/sep/get
|
||||||
|
- /cloudbroker/sep/getConfig
|
||||||
|
- /cloudbroker/sep/getPool
|
||||||
|
- /cloudbroker/sep/getTemplate
|
||||||
- /cloudbroker/sep/list
|
- /cloudbroker/sep/list
|
||||||
|
- /cloudbroker/sep/update
|
||||||
|
- /cloudbroker/sep/listAvailableSepAndPools
|
||||||
|
- /cloudbroker/sep/sharedLockStart
|
||||||
|
- /cloudbroker/sep/sharedLockStop
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
@@ -1494,11 +1613,19 @@ class RequestException(Exception):
|
|||||||
|
|
||||||
<details><summary>user</summary>
|
<details><summary>user</summary>
|
||||||
|
|
||||||
|
- /cloudbroker/user/apiaccessJoin
|
||||||
|
- /cloudbroker/user/apiaccessLeave
|
||||||
|
- /cloudbroker/user/apiList
|
||||||
- /cloudbroker/user/block
|
- /cloudbroker/user/block
|
||||||
- /cloudbroker/user/create
|
- /cloudbroker/user/create
|
||||||
|
- /cloudbroker/user/delete
|
||||||
|
- /cloudbroker/user/deleteByGuid
|
||||||
|
- /cloudbroker/user/deleteUsers
|
||||||
- /cloudbroker/user/get
|
- /cloudbroker/user/get
|
||||||
|
- /cloudbroker/user/getMatchingUsernames
|
||||||
- /cloudbroker/user/list
|
- /cloudbroker/user/list
|
||||||
- /cloudbroker/user/unblock
|
- /cloudbroker/user/unblock
|
||||||
|
- /cloudbroker/user/update_service_account
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
|||||||
+10
-4
@@ -5,16 +5,22 @@ authors = [
|
|||||||
{name = "Vladislav Nesterov"},
|
{name = "Vladislav Nesterov"},
|
||||||
{name = "Stanislav Karimov"},
|
{name = "Stanislav Karimov"},
|
||||||
]
|
]
|
||||||
version = "2.1.1"
|
version = "2.1.3"
|
||||||
|
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
|
||||||
requires-python = "==3.12.*"
|
requires-python = ">=3.12, <3.15"
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"requests==2.32.3",
|
"requests==2.34.2",
|
||||||
"pydantic==2.13.5",
|
"pydantic==2.13.5",
|
||||||
"pyyaml==6.0.2",
|
"pyyaml==6.0.3",
|
||||||
|
]
|
||||||
|
|
||||||
|
[dependency-groups]
|
||||||
|
dev = [
|
||||||
|
"pre-commit==4.6.2",
|
||||||
|
"pytest==9.1.1",
|
||||||
]
|
]
|
||||||
|
|
||||||
[project.urls]
|
[project.urls]
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
from pydantic import Field
|
||||||
|
|
||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
from . import enums as _enums
|
from . import enums as _enums
|
||||||
|
|
||||||
@@ -104,3 +106,15 @@ class NetMapConfigAPIParamsNM(_base.BaseAPIParamsNestedModel):
|
|||||||
target_dev: str
|
target_dev: str
|
||||||
source_type: _enums.NetMapSourceType
|
source_type: _enums.NetMapSourceType
|
||||||
source_value: str
|
source_value: str
|
||||||
|
|
||||||
|
|
||||||
|
class BackupDiskAPIParamsNM(_base.BaseAPIParamsNestedModel):
|
||||||
|
disk_id: int = Field(serialization_alias='diskId')
|
||||||
|
backup_path: str = Field(serialization_alias='backupPath')
|
||||||
|
speed: int | None = Field(serialization_alias='speed', default=None)
|
||||||
|
|
||||||
|
|
||||||
|
class VFNicAPIParamsNM(_base.BaseAPIParamsNestedModel):
|
||||||
|
fn_id: int = Field(serialization_alias='fnId')
|
||||||
|
spoofchk: bool = True
|
||||||
|
trust: bool = True
|
||||||
@@ -1082,7 +1082,7 @@ class ImageForListAPIResultNM(_base.BaseAPIResultNestedModel):
|
|||||||
size_gb: int
|
size_gb: int
|
||||||
status: _enums.ImageStatus
|
status: _enums.ImageStatus
|
||||||
storage_policy_id: int
|
storage_policy_id: int
|
||||||
type: _enums.ImageType
|
type: _enums.ImageType | None = None
|
||||||
virtual: bool | None = None
|
virtual: bool | None = None
|
||||||
links_to: list[int] | None = None
|
links_to: list[int] | None = None
|
||||||
|
|
||||||
@@ -1142,7 +1142,7 @@ class ImageForCBListAPIResultNM(_base.BaseAPIResultNestedModel):
|
|||||||
storage_policy_id: int
|
storage_policy_id: int
|
||||||
tech_status: _enums.ImageTechStatus
|
tech_status: _enums.ImageTechStatus
|
||||||
to_clean: bool
|
to_clean: bool
|
||||||
type: _enums.ImageType
|
type: _enums.ImageType | None = None
|
||||||
url: str
|
url: str
|
||||||
username: str | None
|
username: str | None
|
||||||
version: str
|
version: str
|
||||||
@@ -2307,6 +2307,7 @@ class ZoneForListAPIResultNM(_base.BaseAPIResultNestedModel):
|
|||||||
sdrs_mode: _enums.SDRSMode
|
sdrs_mode: _enums.SDRSMode
|
||||||
status: _enums.ZoneStatus
|
status: _enums.ZoneStatus
|
||||||
task_disk_timeout: str | None = None
|
task_disk_timeout: str | None = None
|
||||||
|
ttl: str
|
||||||
updated_timestamp: int
|
updated_timestamp: int
|
||||||
|
|
||||||
@_base.computed_field
|
@_base.computed_field
|
||||||
@@ -2838,7 +2839,7 @@ class NodeForCBListAPIResultNM(_base.BaseAPIResultNestedModel):
|
|||||||
machine_id: str | None = None
|
machine_id: str | None = None
|
||||||
machine_guid: str
|
machine_guid: str
|
||||||
main_board_sn: str
|
main_board_sn: str
|
||||||
mem_allocation_ratio: int | None = None
|
mem_allocation_ratio: float | None = None
|
||||||
memory: int
|
memory: int
|
||||||
milestones: int
|
milestones: int
|
||||||
model: str
|
model: str
|
||||||
|
|||||||
@@ -9,8 +9,12 @@ from .list import *
|
|||||||
from .list_deleted import *
|
from .list_deleted import *
|
||||||
from .list_unattached import *
|
from .list_unattached import *
|
||||||
from .rename import *
|
from .rename import *
|
||||||
|
from .replication_cancel_sync import CloudapiDisksReplicationCancelSyncImpl
|
||||||
from .replication_disable_schedule import *
|
from .replication_disable_schedule import *
|
||||||
from .replication_manual_sync import CloudapiDisksReplicationManualSyncImpl
|
from .replication_manual_sync import CloudapiDisksReplicationManualSyncImpl
|
||||||
|
from .replication_promote import CloudapiDisksReplicationPromoteImpl
|
||||||
|
from .replication_set_copy_rate import CloudapiDisksReplicationSetCopyRateImpl
|
||||||
|
from .replication_set_schedule import CloudapiDisksReplicationSetScheduleImpl
|
||||||
from .resize2 import *
|
from .resize2 import *
|
||||||
from .restore import *
|
from .restore import *
|
||||||
from .share import *
|
from .share import *
|
||||||
@@ -37,6 +41,10 @@ class CloudapiDisksAPI(
|
|||||||
delete_disks: CloudapiDisksDeleteDisksImpl
|
delete_disks: CloudapiDisksDeleteDisksImpl
|
||||||
unshare: CloudapiDisksUnshareImpl
|
unshare: CloudapiDisksUnshareImpl
|
||||||
list_deleted: CloudapiDisksListDeletedImpl
|
list_deleted: CloudapiDisksListDeletedImpl
|
||||||
|
replication_cancel_sync: CloudapiDisksReplicationCancelSyncImpl
|
||||||
replication_disable_schedule: CloudapiDisksReplicationDisableScheduleImpl
|
replication_disable_schedule: CloudapiDisksReplicationDisableScheduleImpl
|
||||||
resize2: CloudapiDisksResize2Impl
|
resize2: CloudapiDisksResize2Impl
|
||||||
replication_manual_sync: CloudapiDisksReplicationManualSyncImpl
|
replication_manual_sync: CloudapiDisksReplicationManualSyncImpl
|
||||||
|
replication_promote: CloudapiDisksReplicationPromoteImpl
|
||||||
|
replication_set_copy_rate: CloudapiDisksReplicationSetCopyRateImpl
|
||||||
|
replication_set_schedule: CloudapiDisksReplicationSetScheduleImpl
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
from pydantic import Field
|
||||||
|
|
||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class CloudapiDisksReplicationCancelSyncImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
disk_id: int = Field(serialization_alias='disk_id'),
|
||||||
|
) -> bool:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
from pydantic import Field
|
||||||
|
|
||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class CloudapiDisksReplicationPromoteImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
disk_id: int = Field(serialization_alias='disk_id'),
|
||||||
|
async_mode: bool = False,
|
||||||
|
) -> bool | str:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
from pydantic import Field
|
||||||
|
|
||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class CloudapiDisksReplicationSetCopyRateImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
disk_id: int = Field(serialization_alias='disk_id'),
|
||||||
|
copy_rate: int,
|
||||||
|
) -> bool:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
from pydantic import Field
|
||||||
|
|
||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class CloudapiDisksReplicationSetScheduleImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
disk_id: int = Field(serialization_alias='disk_id'),
|
||||||
|
profile_id: int,
|
||||||
|
schedule_name: str,
|
||||||
|
) -> bool:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -45,7 +45,7 @@ class CloudapiImageGetResultModel(_base.ResultModel):
|
|||||||
status: _nested.ImageStatus
|
status: _nested.ImageStatus
|
||||||
tech_status: _nested.ImageTechStatus
|
tech_status: _nested.ImageTechStatus
|
||||||
to_clean: bool
|
to_clean: bool
|
||||||
type: _nested.ImageType
|
type: _nested.ImageType | None = None
|
||||||
unc_path: str
|
unc_path: str
|
||||||
version: str
|
version: str
|
||||||
vm_ci_id: int
|
vm_ci_id: int
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ class CloudapiZoneGetResultModel(_base.ResultModel):
|
|||||||
sdrs_mode: _nested.SDRSMode
|
sdrs_mode: _nested.SDRSMode
|
||||||
status: _nested.ZoneStatus
|
status: _nested.ZoneStatus
|
||||||
task_disk_timeout: str | None = None
|
task_disk_timeout: str | None = None
|
||||||
|
ttl: str
|
||||||
updated_timestamp: int
|
updated_timestamp: int
|
||||||
vins_ids: list[int]
|
vins_ids: list[int]
|
||||||
vm_ids: list[int]
|
vm_ids: list[int]
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
from .account import *
|
from .account import *
|
||||||
|
from .apiaccess import *
|
||||||
from .audit import *
|
from .audit import *
|
||||||
|
from .backup import *
|
||||||
from .bservice import *
|
from .bservice import *
|
||||||
from .compute import *
|
from .compute import *
|
||||||
from .disks import *
|
from .disks import *
|
||||||
@@ -8,6 +10,7 @@ from .dpdknet import *
|
|||||||
from .extnet import *
|
from .extnet import *
|
||||||
from .flipgroup import *
|
from .flipgroup import *
|
||||||
from .grid import *
|
from .grid import *
|
||||||
|
from .group import *
|
||||||
from .image import *
|
from .image import *
|
||||||
from .k8ci import *
|
from .k8ci import *
|
||||||
from .k8s import *
|
from .k8s import *
|
||||||
@@ -30,7 +33,9 @@ from .zone import *
|
|||||||
|
|
||||||
class CloudbrokerAPI(_base.BaseAPI):
|
class CloudbrokerAPI(_base.BaseAPI):
|
||||||
account: CloudbrokerAccountAPI
|
account: CloudbrokerAccountAPI
|
||||||
|
apiaccess: CloudbrokerApiaccessAPI
|
||||||
audit: CloudbrokerAuditAPI
|
audit: CloudbrokerAuditAPI
|
||||||
|
backup: CloudbrokerBackupAPI
|
||||||
bservice: CloudbrokerBserviceAPI
|
bservice: CloudbrokerBserviceAPI
|
||||||
compute: CloudbrokerComputeAPI
|
compute: CloudbrokerComputeAPI
|
||||||
disks: CloudbrokerDisksAPI
|
disks: CloudbrokerDisksAPI
|
||||||
@@ -38,6 +43,7 @@ class CloudbrokerAPI(_base.BaseAPI):
|
|||||||
extnet: CloudbrokerExtnetAPI
|
extnet: CloudbrokerExtnetAPI
|
||||||
flipgroup: CloudbrokerFlipgroupAPI
|
flipgroup: CloudbrokerFlipgroupAPI
|
||||||
grid: CloudbrokerGridAPI
|
grid: CloudbrokerGridAPI
|
||||||
|
group: CloudbrokerGroupAPI
|
||||||
image: CloudbrokerImageAPI
|
image: CloudbrokerImageAPI
|
||||||
k8ci: CloudbrokerK8ciAPI
|
k8ci: CloudbrokerK8ciAPI
|
||||||
k8s: CloudbrokerK8sAPI
|
k8s: CloudbrokerK8sAPI
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
from ._api import *
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
import dynamix_sdk.base as _base
|
||||||
|
from .api_find import CloudbrokerApiaccessApiFindImpl
|
||||||
|
from .apis_exclude import CloudbrokerApiaccessApisExcludeImpl
|
||||||
|
from .apis_include import CloudbrokerApiaccessApisIncludeImpl
|
||||||
|
from .copy import CloudbrokerApiaccessCopyImpl
|
||||||
|
from .create import CloudbrokerApiaccessCreateImpl
|
||||||
|
from .delete import CloudbrokerApiaccessDeleteImpl
|
||||||
|
from .desc_update import CloudbrokerApiaccessDescUpdateImpl
|
||||||
|
from .get import CloudbrokerApiaccessGetImpl
|
||||||
|
from .get_default import CloudbrokerApiaccessGetDefaultImpl
|
||||||
|
from .get_full import CloudbrokerApiaccessGetFullImpl
|
||||||
|
from .list import CloudbrokerApiaccessListImpl
|
||||||
|
from .set_default import CloudbrokerApiaccessSetDefaultImpl
|
||||||
|
from .subtract import CloudbrokerApiaccessSubtractImpl
|
||||||
|
from .union import CloudbrokerApiaccessUnionImpl
|
||||||
|
from .update import CloudbrokerApiaccessUpdateImpl
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerApiaccessAPI(_base.BaseAPI):
|
||||||
|
api_find: CloudbrokerApiaccessApiFindImpl
|
||||||
|
apis_exclude: CloudbrokerApiaccessApisExcludeImpl
|
||||||
|
apis_include: CloudbrokerApiaccessApisIncludeImpl
|
||||||
|
copy: CloudbrokerApiaccessCopyImpl
|
||||||
|
create: CloudbrokerApiaccessCreateImpl
|
||||||
|
delete: CloudbrokerApiaccessDeleteImpl
|
||||||
|
desc_update: CloudbrokerApiaccessDescUpdateImpl
|
||||||
|
get: CloudbrokerApiaccessGetImpl
|
||||||
|
get_default: CloudbrokerApiaccessGetDefaultImpl
|
||||||
|
get_full: CloudbrokerApiaccessGetFullImpl
|
||||||
|
list: CloudbrokerApiaccessListImpl
|
||||||
|
set_default: CloudbrokerApiaccessSetDefaultImpl
|
||||||
|
subtract: CloudbrokerApiaccessSubtractImpl
|
||||||
|
union: CloudbrokerApiaccessUnionImpl
|
||||||
|
update: CloudbrokerApiaccessUpdateImpl
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
import dynamix_sdk.base as _base
|
||||||
|
from dynamix_sdk.utils import AutoNameEnum as _AutoNameEnum
|
||||||
|
|
||||||
|
|
||||||
|
class ApiGroup(str, _AutoNameEnum):
|
||||||
|
CLOUDAPI = 'cloudapi'
|
||||||
|
CLOUDBROKER = 'cloudbroker'
|
||||||
|
SYSTEM = 'system'
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerApiaccessApiFindImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
api_group: ApiGroup,
|
||||||
|
api_object: str,
|
||||||
|
api_method: str,
|
||||||
|
) -> list[int]:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class ApisAPIParamsNM(_base.BaseAPIParamsNestedModel):
|
||||||
|
model_config = _base.ConfigDict(extra='allow')
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerApiaccessApisExcludeResult(_base.ResultModel):
|
||||||
|
cloudapi: dict[str, list[str] | bool | dict] | None = None
|
||||||
|
cloudbroker: dict[str, list[str] | bool | dict] | None = None
|
||||||
|
sdn: dict[str, list[str] | bool | dict] | None = None
|
||||||
|
system: dict[str, list[str] | bool | dict] | None = None
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerApiaccessApisExcludeImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
apiaccess_id: int,
|
||||||
|
apis: ApisAPIParamsNM,
|
||||||
|
) -> CloudbrokerApiaccessApisExcludeResult:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class ApisAPIParamsNM(_base.BaseAPIParamsNestedModel):
|
||||||
|
model_config = _base.ConfigDict(extra='allow')
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerApiaccessApisIncludeResult(_base.ResultModel):
|
||||||
|
cloudapi: dict[str, list[str] | bool | dict] | None = None
|
||||||
|
cloudbroker: dict[str, list[str] | bool | dict] | None = None
|
||||||
|
sdn: dict[str, list[str] | bool | dict] | None = None
|
||||||
|
system: dict[str, list[str] | bool | dict] | None = None
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerApiaccessApisIncludeImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
apiaccess_id: int,
|
||||||
|
apis: ApisAPIParamsNM,
|
||||||
|
) -> CloudbrokerApiaccessApisIncludeResult:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerApiaccessCopyImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
apiaccess_id: int,
|
||||||
|
name: str,
|
||||||
|
) -> int:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerApiaccessCreateImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
name: str,
|
||||||
|
desc: str | None = None,
|
||||||
|
) -> int:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerApiaccessDeleteImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
apiaccess_id: int,
|
||||||
|
force: bool = False,
|
||||||
|
) -> bool:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,45 @@
|
|||||||
|
from enum import StrEnum
|
||||||
|
|
||||||
|
from pydantic import Field
|
||||||
|
|
||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class Apis(_base.ResultModel):
|
||||||
|
cloudapi: dict[str, list[str] | bool | dict] | None = None
|
||||||
|
cloudbroker: dict[str, list[str] | bool | dict] | None = None
|
||||||
|
sdn: dict[str, list[str] | bool | dict] | None = None
|
||||||
|
system: dict[str, list[str] | bool | dict] | None = None
|
||||||
|
|
||||||
|
|
||||||
|
class Status(StrEnum):
|
||||||
|
CREATED = 'CREATED'
|
||||||
|
DESTROYED = 'DESTROYED'
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerApiaccessDescUpdateResult(_base.ResultModel):
|
||||||
|
apis: Apis = Field(validation_alias='apis')
|
||||||
|
created_at: int = Field(validation_alias='created_at')
|
||||||
|
default: bool = Field(validation_alias='default')
|
||||||
|
deleted_at: int | None = Field(validation_alias='deleted_at')
|
||||||
|
desc: str = Field(validation_alias='desc')
|
||||||
|
gid: int = Field(validation_alias='gid')
|
||||||
|
guid: int = Field(validation_alias='guid')
|
||||||
|
id: int = Field(validation_alias='id')
|
||||||
|
name: str = Field(validation_alias='name')
|
||||||
|
protected: bool = Field(validation_alias='protected')
|
||||||
|
status: Status = Field(validation_alias='status')
|
||||||
|
updated_at: int | None = Field(validation_alias='updated_at')
|
||||||
|
updated: int | None = Field(validation_alias='updated', default=None)
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerApiaccessDescUpdateImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
apiaccess_id: int = Field(serialization_alias='apiaccess_id'),
|
||||||
|
desc: str = Field(serialization_alias='desc'),
|
||||||
|
) -> CloudbrokerApiaccessDescUpdateResult:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
from enum import StrEnum
|
||||||
|
|
||||||
|
from pydantic import Field
|
||||||
|
|
||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class Apis(_base.ResultModel):
|
||||||
|
cloudapi: dict[str, list[str] | bool | dict] | None = None
|
||||||
|
cloudbroker: dict[str, list[str] | bool | dict] | None = None
|
||||||
|
sdn: dict[str, list[str] | bool | dict] | None = None
|
||||||
|
system: dict[str, list[str] | bool | dict] | None = None
|
||||||
|
|
||||||
|
|
||||||
|
class Status(StrEnum):
|
||||||
|
CREATED = 'CREATED'
|
||||||
|
DESTROYED = 'DESTROYED'
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerApiaccessGetResult(_base.ResultModel):
|
||||||
|
apis: Apis = Field(validation_alias='apis')
|
||||||
|
created_at: int = Field(validation_alias='created_at')
|
||||||
|
default: bool = Field(validation_alias='default')
|
||||||
|
deleted_at: int | None = Field(validation_alias='deleted_at')
|
||||||
|
desc: str = Field(validation_alias='desc')
|
||||||
|
gid: int = Field(validation_alias='gid')
|
||||||
|
guid: int = Field(validation_alias='guid')
|
||||||
|
id: int = Field(validation_alias='id')
|
||||||
|
name: str = Field(validation_alias='name')
|
||||||
|
protected: bool = Field(validation_alias='protected')
|
||||||
|
status: Status = Field(validation_alias='status')
|
||||||
|
updated_at: int | None = Field(validation_alias='updated_at')
|
||||||
|
updated: int | None = Field(validation_alias='updated', default=None)
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerApiaccessGetImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
apiaccess_id: int = Field(serialization_alias='apiaccess_id'),
|
||||||
|
) -> CloudbrokerApiaccessGetResult:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,55 @@
|
|||||||
|
import dynamix_sdk.base as _base
|
||||||
|
from dynamix_sdk.utils import AutoNameEnum as _AutoNameEnum
|
||||||
|
|
||||||
|
|
||||||
|
class Cloudapi(_base.ResultModel):
|
||||||
|
model_config = _base.ConfigDict(extra='allow')
|
||||||
|
|
||||||
|
|
||||||
|
class Cloudbroker(_base.ResultModel):
|
||||||
|
model_config = _base.ConfigDict(extra='allow')
|
||||||
|
|
||||||
|
|
||||||
|
class System(_base.ResultModel):
|
||||||
|
model_config = _base.ConfigDict(extra='allow')
|
||||||
|
|
||||||
|
|
||||||
|
class Sdn(_base.ResultModel):
|
||||||
|
model_config = _base.ConfigDict(extra='allow')
|
||||||
|
|
||||||
|
|
||||||
|
class Apis(_base.ResultModel):
|
||||||
|
cloudapi: Cloudapi | None = None
|
||||||
|
cloudbroker: Cloudbroker | None = None
|
||||||
|
system: System | None = None
|
||||||
|
sdn: Sdn | None = None
|
||||||
|
|
||||||
|
|
||||||
|
class Status(str, _AutoNameEnum):
|
||||||
|
CREATED = 'CREATED'
|
||||||
|
DESTROYED = 'DESTROYED'
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerApiaccessGetDefaultResult(_base.ResultModel):
|
||||||
|
id: int
|
||||||
|
guid: int
|
||||||
|
gid: int
|
||||||
|
name: str
|
||||||
|
desc: str
|
||||||
|
default: bool
|
||||||
|
protected: bool
|
||||||
|
apis: Apis
|
||||||
|
status: Status
|
||||||
|
created_at: int
|
||||||
|
deleted_at: int | None = None
|
||||||
|
updated_at: int | None = None
|
||||||
|
updated: int | None = None
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerApiaccessGetDefaultImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
) -> CloudbrokerApiaccessGetDefaultResult:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerApiaccessGetFullResult(_base.ResultModel):
|
||||||
|
cloudapi: dict[str, list[str]] | None
|
||||||
|
cloudbroker: dict[str, list[str]] | None
|
||||||
|
system: dict[str, list[str]] | None
|
||||||
|
sdn: dict[str, list[str]] | None
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerApiaccessGetFullImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
) -> CloudbrokerApiaccessGetFullResult:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,73 @@
|
|||||||
|
import dynamix_sdk.base as _base
|
||||||
|
from dynamix_sdk.utils import AutoNameEnum as _AutoNameEnum
|
||||||
|
|
||||||
|
from pydantic import Field
|
||||||
|
|
||||||
|
|
||||||
|
class Cloudapi(_base.ResultModel):
|
||||||
|
model_config = _base.ConfigDict(extra='allow')
|
||||||
|
|
||||||
|
|
||||||
|
class Cloudbroker(_base.ResultModel):
|
||||||
|
model_config = _base.ConfigDict(extra='allow')
|
||||||
|
|
||||||
|
|
||||||
|
class System(_base.ResultModel):
|
||||||
|
model_config = _base.ConfigDict(extra='allow')
|
||||||
|
|
||||||
|
|
||||||
|
class Sdn(_base.ResultModel):
|
||||||
|
model_config = _base.ConfigDict(extra='allow')
|
||||||
|
|
||||||
|
|
||||||
|
class Apis(_base.ResultModel):
|
||||||
|
cloudapi: Cloudapi | None = None
|
||||||
|
cloudbroker: Cloudbroker | None = None
|
||||||
|
system: System | None = None
|
||||||
|
sdn: Sdn | None = None
|
||||||
|
|
||||||
|
|
||||||
|
class Status(str, _AutoNameEnum):
|
||||||
|
CREATED = 'CREATED'
|
||||||
|
DESTROYED = 'DESTROYED'
|
||||||
|
|
||||||
|
|
||||||
|
class DataItem(_base.ResultModel):
|
||||||
|
id: int
|
||||||
|
guid: int
|
||||||
|
gid: int
|
||||||
|
name: str
|
||||||
|
desc: str
|
||||||
|
default: bool
|
||||||
|
protected: bool
|
||||||
|
apis: Apis
|
||||||
|
status: Status
|
||||||
|
created_at: int
|
||||||
|
deleted_at: int | None = None
|
||||||
|
updated_at: int | None = None
|
||||||
|
updated: int | None = None
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerApiaccessListResult(_base.ResultModel):
|
||||||
|
data: list[DataItem]
|
||||||
|
entry_count: int = Field(validation_alias='entryCount')
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerApiaccessListImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
page: int | None = 1,
|
||||||
|
size: int | None = 100,
|
||||||
|
by_id: int | None = None,
|
||||||
|
user_id: str | None = None,
|
||||||
|
name: str | None = None,
|
||||||
|
status: Status | None = None,
|
||||||
|
desc: str | None = None,
|
||||||
|
created_after: int | None = None,
|
||||||
|
created_before: int | None = None,
|
||||||
|
sort_by: str | None = Field(serialization_alias='sort_by', default=None), # noqa E501
|
||||||
|
) -> CloudbrokerApiaccessListResult:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerApiaccessSetDefaultImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
apiaccess_id: int,
|
||||||
|
) -> bool:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class Cloudapi(_base.ResultModel):
|
||||||
|
model_config = _base.ConfigDict(extra='allow')
|
||||||
|
|
||||||
|
|
||||||
|
class Cloudbroker(_base.ResultModel):
|
||||||
|
model_config = _base.ConfigDict(extra='allow')
|
||||||
|
|
||||||
|
|
||||||
|
class System(_base.ResultModel):
|
||||||
|
model_config = _base.ConfigDict(extra='allow')
|
||||||
|
|
||||||
|
|
||||||
|
class Sdn(_base.ResultModel):
|
||||||
|
model_config = _base.ConfigDict(extra='allow')
|
||||||
|
|
||||||
|
|
||||||
|
class Apis(_base.ResultModel):
|
||||||
|
cloudapi: Cloudapi | None = None
|
||||||
|
cloudbroker: Cloudbroker | None = None
|
||||||
|
system: System | None = None
|
||||||
|
sdn: Sdn | None = None
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerApiaccessSubtractResult(_base.ResultModel):
|
||||||
|
apis: Apis | None = None
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerApiaccessSubtractImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
minuend_group_id: int,
|
||||||
|
subtrahend_group_id: int,
|
||||||
|
) -> CloudbrokerApiaccessSubtractResult:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class Cloudapi(_base.ResultModel):
|
||||||
|
model_config = _base.ConfigDict(extra='allow')
|
||||||
|
|
||||||
|
|
||||||
|
class Cloudbroker(_base.ResultModel):
|
||||||
|
model_config = _base.ConfigDict(extra='allow')
|
||||||
|
|
||||||
|
|
||||||
|
class System(_base.ResultModel):
|
||||||
|
model_config = _base.ConfigDict(extra='allow')
|
||||||
|
|
||||||
|
|
||||||
|
class Sdn(_base.ResultModel):
|
||||||
|
model_config = _base.ConfigDict(extra='allow')
|
||||||
|
|
||||||
|
|
||||||
|
class Apis(_base.ResultModel):
|
||||||
|
cloudapi: Cloudapi | None = None
|
||||||
|
cloudbroker: Cloudbroker | None = None
|
||||||
|
system: System | None = None
|
||||||
|
sdn: Sdn | None = None
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerApiaccessUnionResult(_base.ResultModel):
|
||||||
|
apis: Apis | None = None
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerApiaccessUnionImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
recipient_group_id: int,
|
||||||
|
donor_group_id: int,
|
||||||
|
) -> CloudbrokerApiaccessUnionResult:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,62 @@
|
|||||||
|
import dynamix_sdk.base as _base
|
||||||
|
from dynamix_sdk.utils import AutoNameEnum as _AutoNameEnum
|
||||||
|
|
||||||
|
|
||||||
|
class Status(str, _AutoNameEnum):
|
||||||
|
CREATED = 'CREATED'
|
||||||
|
DESTROYED = 'DESTROYED'
|
||||||
|
|
||||||
|
|
||||||
|
class Cloudapi(_base.ResultModel):
|
||||||
|
model_config = _base.ConfigDict(extra='allow')
|
||||||
|
|
||||||
|
|
||||||
|
class Cloudbroker(_base.ResultModel):
|
||||||
|
model_config = _base.ConfigDict(extra='allow')
|
||||||
|
|
||||||
|
|
||||||
|
class System(_base.ResultModel):
|
||||||
|
model_config = _base.ConfigDict(extra='allow')
|
||||||
|
|
||||||
|
|
||||||
|
class Sdn(_base.ResultModel):
|
||||||
|
model_config = _base.ConfigDict(extra='allow')
|
||||||
|
|
||||||
|
|
||||||
|
class Apis(_base.ResultModel):
|
||||||
|
cloudapi: Cloudapi | None = None
|
||||||
|
cloudbroker: Cloudbroker | None = None
|
||||||
|
system: System | None = None
|
||||||
|
sdn: Sdn | None = None
|
||||||
|
|
||||||
|
|
||||||
|
class ApisAPIParamsNM(_base.BaseAPIParamsNestedModel):
|
||||||
|
model_config = _base.ConfigDict(extra='allow')
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerApiaccessUpdateResult(_base.ResultModel):
|
||||||
|
id: int
|
||||||
|
guid: int
|
||||||
|
gid: int
|
||||||
|
name: str
|
||||||
|
desc: str
|
||||||
|
default: bool
|
||||||
|
protected: bool
|
||||||
|
apis: Apis
|
||||||
|
status: Status
|
||||||
|
created_at: int
|
||||||
|
deleted_at: int | None = None
|
||||||
|
updated_at: int | None = None
|
||||||
|
updated: int | None = None
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerApiaccessUpdateImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
apiaccess_id: int,
|
||||||
|
apis: ApisAPIParamsNM,
|
||||||
|
) -> CloudbrokerApiaccessUpdateResult:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -1,8 +1,12 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
from .get import CloudbrokerAuditGetImpl
|
||||||
|
from .linked_jobs import CloudbrokerAuditLinkedJobsImpl
|
||||||
from .list import *
|
from .list import *
|
||||||
|
|
||||||
|
|
||||||
class CloudbrokerAuditAPI(
|
class CloudbrokerAuditAPI(
|
||||||
_base.BaseAPI,
|
_base.BaseAPI,
|
||||||
):
|
):
|
||||||
|
get: CloudbrokerAuditGetImpl
|
||||||
|
linked_jobs: CloudbrokerAuditLinkedJobsImpl
|
||||||
list: CloudbrokerAuditListImpl
|
list: CloudbrokerAuditListImpl
|
||||||
@@ -0,0 +1,45 @@
|
|||||||
|
from typing import Any
|
||||||
|
from pydantic import Field
|
||||||
|
|
||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerAuditGetResult(_base.ResultModel):
|
||||||
|
account_id: int | None = Field(validation_alias='account_id', default=None)
|
||||||
|
apitask: str | None = Field(validation_alias='apitask', default=None)
|
||||||
|
args: str = Field(validation_alias='args')
|
||||||
|
call: str = Field(validation_alias='call')
|
||||||
|
compute_id: int | None = Field(validation_alias='compute_id', default=None)
|
||||||
|
correlation_id: str = Field(validation_alias='correlation_id')
|
||||||
|
disk_ids: list[int] | None = Field(validation_alias='disk_ids', default=None) # noqa E501
|
||||||
|
flipgroup_id: int | None = Field(validation_alias='flipgroup_id', default=None) # noqa E501
|
||||||
|
guid: str = Field(validation_alias='guid')
|
||||||
|
k8s_id: int | None = Field(validation_alias='k8s_id', default=None)
|
||||||
|
kwargs: str = Field(validation_alias='kwargs')
|
||||||
|
lb_id: int | None = Field(validation_alias='lb_id', default=None)
|
||||||
|
node_ids: list[int] | None = Field(validation_alias='node_ids', default=None) # noqa E501
|
||||||
|
public_session_id: str | None = Field(validation_alias='public_session_id', default=None) # noqa E501
|
||||||
|
remote_addr: str = Field(validation_alias='remote_addr')
|
||||||
|
resgroup_id: int | None = Field(validation_alias='resgroup_id', default=None) # noqa E501
|
||||||
|
responsetime: int | None = Field(validation_alias='responsetime', default=None) # noqa E501
|
||||||
|
result: str | dict[Any, Any] | None | list[dict[Any, Any]] = Field(validation_alias='result', default=None) # noqa E501
|
||||||
|
sep_id: int | None = Field(validation_alias='sep_id', default=None)
|
||||||
|
service_id: int | None = Field(validation_alias='service_id', default=None)
|
||||||
|
statuscode: int | None = Field(validation_alias='statuscode', default=None)
|
||||||
|
timestamp: int = Field(validation_alias='timestamp')
|
||||||
|
timestamp_end: int | None = Field(validation_alias='timestampEnd', default=None) # noqa E501
|
||||||
|
ttl: str | None = Field(validation_alias='_ttl', default=None)
|
||||||
|
user: str | None = Field(validation_alias='user', default=None)
|
||||||
|
vins_id: int | None = Field(validation_alias='vins_id', default=None)
|
||||||
|
vmfolder_id: int | None = Field(validation_alias='vmfolder_id', default=None) # noqa E501
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerAuditGetImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
audit_guid: str = Field(serialization_alias='audit_guid'),
|
||||||
|
) -> CloudbrokerAuditGetResult:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
from typing import Any
|
||||||
|
from pydantic import Field
|
||||||
|
|
||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerAuditLinkedJobsImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
audit_guid: str = Field(serialization_alias='audit_guid'),
|
||||||
|
) -> list[dict[Any, Any]]:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
from ._api import *
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
import dynamix_sdk.base as _base
|
||||||
|
from .abort_disks_backup import CloudbrokerBackupAbortDisksBackupImpl
|
||||||
|
from .backup_disks_with_speed import CloudbrokerBackupBackupDisksWithSpeedImpl
|
||||||
|
from .create_disk_backup import CloudbrokerBackupCreateDiskBackupImpl
|
||||||
|
from .create_disks_backup import CloudbrokerBackupCreateDisksBackupImpl
|
||||||
|
from .delete_disk_backup import CloudbrokerBackupDeleteDiskBackupImpl
|
||||||
|
from .info import CloudbrokerBackupInfoImpl
|
||||||
|
from .list_backup_paths import CloudbrokerBackupListBackupPathsImpl
|
||||||
|
from .restore_disk_from_backup import CloudbrokerBackupRestoreDiskFromBackupImpl # noqa: E501
|
||||||
|
from .restore_disks_from_backup import CloudbrokerBackupRestoreDisksFromBackupImpl # noqa: E501
|
||||||
|
from .set_backup_speed import CloudbrokerBackupSetBackupSpeedImpl
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerBackupAPI(
|
||||||
|
_base.BaseAPI,
|
||||||
|
):
|
||||||
|
abort_disks_backup: CloudbrokerBackupAbortDisksBackupImpl
|
||||||
|
backup_disks_with_speed: CloudbrokerBackupBackupDisksWithSpeedImpl
|
||||||
|
create_disk_backup: CloudbrokerBackupCreateDiskBackupImpl
|
||||||
|
create_disks_backup: CloudbrokerBackupCreateDisksBackupImpl
|
||||||
|
delete_disk_backup: CloudbrokerBackupDeleteDiskBackupImpl
|
||||||
|
info: CloudbrokerBackupInfoImpl
|
||||||
|
list_backup_paths: CloudbrokerBackupListBackupPathsImpl
|
||||||
|
restore_disk_from_backup: CloudbrokerBackupRestoreDiskFromBackupImpl
|
||||||
|
restore_disks_from_backup: CloudbrokerBackupRestoreDisksFromBackupImpl
|
||||||
|
set_backup_speed: CloudbrokerBackupSetBackupSpeedImpl
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerBackupAbortDisksBackupImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
compute_id: int,
|
||||||
|
) -> bool:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerBackupBackupDisksWithSpeedResult(_base.ResultModel):
|
||||||
|
device: str
|
||||||
|
speed: int
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerBackupBackupDisksWithSpeedImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
compute_id: int,
|
||||||
|
) -> list[CloudbrokerBackupBackupDisksWithSpeedResult]:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
from pydantic import Field
|
||||||
|
|
||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerBackupCreateDiskBackupResult(_base.ResultModel):
|
||||||
|
compute_id: int = Field(validation_alias='computeId')
|
||||||
|
disk_id: int = Field(validation_alias='diskId')
|
||||||
|
backup_path: str = Field(validation_alias='backupPath')
|
||||||
|
error: str = Field(validation_alias='error')
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerBackupCreateDiskBackupImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
compute_id: int = Field(serialization_alias='computeId'),
|
||||||
|
disk_id: int = Field(serialization_alias='diskId'),
|
||||||
|
speed: int | None = Field(serialization_alias='speed', default=None),
|
||||||
|
backup_path: str = Field(serialization_alias='backupPath'),
|
||||||
|
async_mode: bool = Field(serialization_alias='async_mode', default=True), # noqa E501
|
||||||
|
) -> str | list[CloudbrokerBackupCreateDiskBackupResult]:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
from pydantic import Field
|
||||||
|
|
||||||
|
import dynamix_sdk.base as _base
|
||||||
|
import dynamix_sdk.api._nested as _nested
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerBackupCreateDisksBackupResult(_base.ResultModel):
|
||||||
|
compute_id: int = Field(validation_alias='computeId')
|
||||||
|
disk_id: int = Field(validation_alias='diskId')
|
||||||
|
backup_path: str = Field(validation_alias='backupPath')
|
||||||
|
error: str = Field(validation_alias='error')
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerBackupCreateDisksBackupImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
compute_id: int = Field(serialization_alias='computeId'),
|
||||||
|
disks: list[_nested.BackupDiskAPIParamsNM] = Field(serialization_alias='disks'), # noqa E501
|
||||||
|
async_mode: bool = Field(serialization_alias='async_mode', default=True), # noqa E501
|
||||||
|
) -> str | list[CloudbrokerBackupCreateDisksBackupResult]:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
from pydantic import Field
|
||||||
|
|
||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerBackupDeleteDiskBackupImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
backup_path: str = Field(serialization_alias='backupPath'),
|
||||||
|
backup_file: str = Field(serialization_alias='backupFile'),
|
||||||
|
async_mode: bool = Field(serialization_alias='async_mode', default=True), # noqa E501
|
||||||
|
) -> str | bool:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerBackupInfoResult(_base.ResultModel):
|
||||||
|
type: int
|
||||||
|
time_elapsed_ms: int
|
||||||
|
time_remaining_ms: int
|
||||||
|
data_total_bytes: int
|
||||||
|
data_processed_bytes: int
|
||||||
|
data_remaining_bytes: int
|
||||||
|
mem_total_bytes: int
|
||||||
|
mem_processed_bytes: int
|
||||||
|
mem_remaining_bytes: int
|
||||||
|
file_total_bytes: int
|
||||||
|
file_processed_bytes: int
|
||||||
|
file_remaining_bytes: int
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerBackupInfoImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
compute_id: int,
|
||||||
|
) -> CloudbrokerBackupInfoResult:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
from pydantic import Field
|
||||||
|
|
||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerBackupListBackupPathsImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
grid_id: int = Field(serialization_alias='gridId'),
|
||||||
|
) -> list[str]:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
from pydantic import Field
|
||||||
|
|
||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerBackupRestoreDiskFromBackupResult(_base.ResultModel):
|
||||||
|
compute_id: int = Field(validation_alias='computeId')
|
||||||
|
disk_id: int = Field(validation_alias='diskId')
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerBackupRestoreDiskFromBackupImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
compute_id: int = Field(serialization_alias='computeId'),
|
||||||
|
disk_id: int = Field(serialization_alias='diskId'),
|
||||||
|
backup_path: str = Field(serialization_alias='backupPath'),
|
||||||
|
backup_file: str = Field(serialization_alias='backupFile'),
|
||||||
|
node_id: int | None = Field(default=None, serialization_alias='nodeId'), # noqa: E501
|
||||||
|
async_mode: bool = True,
|
||||||
|
) -> list[CloudbrokerBackupRestoreDiskFromBackupResult] | str:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
from pydantic import Field
|
||||||
|
|
||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class RestoreDiskAPIParamsNM(_base.BaseAPIParamsNestedModel):
|
||||||
|
disk_id: int = Field(serialization_alias='diskId')
|
||||||
|
backup_path: str = Field(serialization_alias='backupPath')
|
||||||
|
backup_file: str = Field(serialization_alias='backupFile')
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerBackupRestoreDisksFromBackupResult(_base.ResultModel):
|
||||||
|
compute_id: int = Field(validation_alias='computeId')
|
||||||
|
disk_id: int = Field(validation_alias='diskId')
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerBackupRestoreDisksFromBackupImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
compute_id: int = Field(serialization_alias='computeId'),
|
||||||
|
disks: list[RestoreDiskAPIParamsNM],
|
||||||
|
node_id: int | None = Field(default=None, serialization_alias='nodeId'), # noqa: E501
|
||||||
|
async_mode: bool = True,
|
||||||
|
) -> list[CloudbrokerBackupRestoreDisksFromBackupResult] | str:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerBackupSetBackupSpeedImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
compute_id: int,
|
||||||
|
device: str,
|
||||||
|
speed: int,
|
||||||
|
) -> bool:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -11,6 +11,21 @@ from .group_parent_add import CloudbrokerBserviceGroupParentAddImpl
|
|||||||
from .group_parent_remove import CloudbrokerBserviceGroupParentRemoveImpl
|
from .group_parent_remove import CloudbrokerBserviceGroupParentRemoveImpl
|
||||||
from .group_remove import CloudbrokerBserviceGroupRemoveImpl
|
from .group_remove import CloudbrokerBserviceGroupRemoveImpl
|
||||||
from .group_resize import CloudbrokerBserviceGroupResizeImpl
|
from .group_resize import CloudbrokerBserviceGroupResizeImpl
|
||||||
|
from .group_start import CloudbrokerBserviceGroupStartImpl
|
||||||
|
from .group_stop import CloudbrokerBserviceGroupStopImpl
|
||||||
|
from .group_update import CloudbrokerBserviceGroupUpdateImpl
|
||||||
|
from .group_update_extnet import CloudbrokerBserviceGroupUpdateExtnetImpl
|
||||||
|
from .group_update_vins import CloudbrokerBserviceGroupUpdateVinsImpl
|
||||||
|
from .list import CloudbrokerBserviceListImpl
|
||||||
|
from .list_deleted import CloudbrokerBserviceListDeletedImpl
|
||||||
|
from .migrate_to_zone import CloudbrokerBserviceMigrateToZoneImpl
|
||||||
|
from .restore import CloudbrokerBserviceRestoreImpl
|
||||||
|
from .snapshot_create import CloudbrokerBserviceSnapshotCreateImpl
|
||||||
|
from .snapshot_delete import CloudbrokerBserviceSnapshotDeleteImpl
|
||||||
|
from .snapshot_list import CloudbrokerBserviceSnapshotListImpl
|
||||||
|
from .snapshot_rollback import CloudbrokerBserviceSnapshotRollbackImpl
|
||||||
|
from .start import CloudbrokerBserviceStartImpl
|
||||||
|
from .stop import CloudbrokerBserviceStopImpl
|
||||||
|
|
||||||
|
|
||||||
class CloudbrokerBserviceAPI(
|
class CloudbrokerBserviceAPI(
|
||||||
@@ -28,3 +43,18 @@ class CloudbrokerBserviceAPI(
|
|||||||
group_parent_remove: CloudbrokerBserviceGroupParentRemoveImpl
|
group_parent_remove: CloudbrokerBserviceGroupParentRemoveImpl
|
||||||
group_remove: CloudbrokerBserviceGroupRemoveImpl
|
group_remove: CloudbrokerBserviceGroupRemoveImpl
|
||||||
group_resize: CloudbrokerBserviceGroupResizeImpl
|
group_resize: CloudbrokerBserviceGroupResizeImpl
|
||||||
|
group_start: CloudbrokerBserviceGroupStartImpl
|
||||||
|
group_stop: CloudbrokerBserviceGroupStopImpl
|
||||||
|
group_update_extnet: CloudbrokerBserviceGroupUpdateExtnetImpl
|
||||||
|
group_update_vins: CloudbrokerBserviceGroupUpdateVinsImpl
|
||||||
|
group_update: CloudbrokerBserviceGroupUpdateImpl
|
||||||
|
list: CloudbrokerBserviceListImpl
|
||||||
|
list_deleted: CloudbrokerBserviceListDeletedImpl
|
||||||
|
migrate_to_zone: CloudbrokerBserviceMigrateToZoneImpl
|
||||||
|
restore: CloudbrokerBserviceRestoreImpl
|
||||||
|
snapshot_create: CloudbrokerBserviceSnapshotCreateImpl
|
||||||
|
snapshot_delete: CloudbrokerBserviceSnapshotDeleteImpl
|
||||||
|
snapshot_list: CloudbrokerBserviceSnapshotListImpl
|
||||||
|
snapshot_rollback: CloudbrokerBserviceSnapshotRollbackImpl
|
||||||
|
start: CloudbrokerBserviceStartImpl
|
||||||
|
stop: CloudbrokerBserviceStopImpl
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
from pydantic import Field
|
||||||
|
|
||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerBserviceGroupStartImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
service_id: int = Field(serialization_alias='serviceId'),
|
||||||
|
compgroup_id: int = Field(serialization_alias='compgroupId'),
|
||||||
|
) -> bool:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
from pydantic import Field
|
||||||
|
|
||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerBserviceGroupStopImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
service_id: int = Field(serialization_alias='serviceId'),
|
||||||
|
compgroup_id: int = Field(serialization_alias='compgroupId'),
|
||||||
|
force: bool = False,
|
||||||
|
) -> bool:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
from pydantic import Field
|
||||||
|
|
||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerBserviceGroupUpdateImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
service_id: int = Field(serialization_alias='serviceId'),
|
||||||
|
compgroup_id: int = Field(serialization_alias='compgroupId'),
|
||||||
|
force: bool = False,
|
||||||
|
cpu: int | None = None,
|
||||||
|
disk: int | None = None,
|
||||||
|
name: str | None = None,
|
||||||
|
ram: int | None = None,
|
||||||
|
role: str | None = None,
|
||||||
|
) -> bool:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
from pydantic import Field
|
||||||
|
|
||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerBserviceGroupUpdateExtnetImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
service_id: int = Field(serialization_alias='serviceId'),
|
||||||
|
compgroup_id: int = Field(serialization_alias='compgroupId'),
|
||||||
|
extnets: list[int] | None = None,
|
||||||
|
) -> bool:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
from pydantic import Field
|
||||||
|
|
||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerBserviceGroupUpdateVinsImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
service_id: int = Field(serialization_alias='serviceId'),
|
||||||
|
compgroup_id: int = Field(serialization_alias='compgroupId'),
|
||||||
|
vinses: list[int] | None = None,
|
||||||
|
) -> bool:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,66 @@
|
|||||||
|
from pydantic import Field
|
||||||
|
|
||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class SnapshotsItem(_base.ResultModel):
|
||||||
|
guid: str | None = Field(validation_alias='guid')
|
||||||
|
label: str | None = Field(validation_alias='label')
|
||||||
|
timestamp: int | None = Field(validation_alias='timestamp')
|
||||||
|
valid: bool | None = Field(validation_alias='valid')
|
||||||
|
|
||||||
|
|
||||||
|
class DataItem(_base.ResultModel):
|
||||||
|
account_id: int = Field(validation_alias='accountId')
|
||||||
|
account_name: str = Field(validation_alias='accountName')
|
||||||
|
base_domain: str = Field(validation_alias='baseDomain')
|
||||||
|
created_by: str = Field(validation_alias='createdBy')
|
||||||
|
created_time: int = Field(validation_alias='createdTime')
|
||||||
|
deleted_by: str = Field(validation_alias='deletedBy')
|
||||||
|
deleted_time: int = Field(validation_alias='deletedTime')
|
||||||
|
gid: int = Field(validation_alias='gid')
|
||||||
|
groups: list[int] = Field(validation_alias='groups')
|
||||||
|
guid: int = Field(validation_alias='guid')
|
||||||
|
id: int = Field(validation_alias='id')
|
||||||
|
milestones: int = Field(validation_alias='milestones')
|
||||||
|
name: str = Field(validation_alias='name')
|
||||||
|
parent_srv_id: int = Field(validation_alias='parentSrvId')
|
||||||
|
parent_srv_type: str = Field(validation_alias='parentSrvType')
|
||||||
|
rg_id: int = Field(validation_alias='rgId')
|
||||||
|
rg_name: str = Field(validation_alias='rgName')
|
||||||
|
snapshots: list[SnapshotsItem] = Field(validation_alias='snapshots')
|
||||||
|
ssh_key: str = Field(validation_alias='sshKey')
|
||||||
|
ssh_user: str = Field(validation_alias='sshUser')
|
||||||
|
status: str = Field(validation_alias='status')
|
||||||
|
tech_status: str = Field(validation_alias='techStatus')
|
||||||
|
updated_by: str = Field(validation_alias='updatedBy')
|
||||||
|
updated_time: int = Field(validation_alias='updatedTime')
|
||||||
|
user_managed: bool = Field(validation_alias='userManaged')
|
||||||
|
zone_id: int = Field(validation_alias='zoneId')
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerBserviceListResult(_base.ResultModel):
|
||||||
|
data: list[DataItem] = Field(validation_alias='data')
|
||||||
|
entry_count: int = Field(validation_alias='entryCount')
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerBserviceListImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
by_id: int | None = Field(serialization_alias='by_id', default=None),
|
||||||
|
name: str | None = Field(serialization_alias='name', default=None),
|
||||||
|
account_id: int | None = Field(serialization_alias='accountId', default=None), # noqa E501
|
||||||
|
rg_id: int | None = Field(serialization_alias='rgId', default=None),
|
||||||
|
page: int = Field(serialization_alias='page', default=1),
|
||||||
|
size: int = Field(serialization_alias='size', default=100),
|
||||||
|
account_name: str | None = Field(serialization_alias='accountName', default=None), # noqa E501
|
||||||
|
rg_name: str | None = Field(serialization_alias='rgName', default=None), # noqa E501
|
||||||
|
status: str | None = Field(serialization_alias='status', default=None), # noqa E501
|
||||||
|
tech_status: str | None = Field(serialization_alias='techStatus', default=None), # noqa E501
|
||||||
|
zone_id: int | None = Field(serialization_alias='zone_id', default=None), # noqa E501
|
||||||
|
sort_by: str | None = Field(serialization_alias='sortBy', default=None), # noqa E501
|
||||||
|
) -> CloudbrokerBserviceListResult:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,59 @@
|
|||||||
|
from pydantic import Field
|
||||||
|
|
||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class SnapshotsItem(_base.ResultModel):
|
||||||
|
guid: str | None = Field(validation_alias='guid')
|
||||||
|
label: str | None = Field(validation_alias='label')
|
||||||
|
timestamp: int | None = Field(validation_alias='timestamp')
|
||||||
|
valid: bool | None = Field(validation_alias='valid')
|
||||||
|
|
||||||
|
|
||||||
|
class DataItem(_base.ResultModel):
|
||||||
|
account_id: int = Field(validation_alias='accountId')
|
||||||
|
account_name: str = Field(validation_alias='accountName')
|
||||||
|
base_domain: str = Field(validation_alias='baseDomain')
|
||||||
|
created_by: str = Field(validation_alias='createdBy')
|
||||||
|
created_time: int = Field(validation_alias='createdTime')
|
||||||
|
deleted_by: str = Field(validation_alias='deletedBy')
|
||||||
|
deleted_time: int = Field(validation_alias='deletedTime')
|
||||||
|
gid: int = Field(validation_alias='gid')
|
||||||
|
groups: list[int] = Field(validation_alias='groups')
|
||||||
|
guid: int = Field(validation_alias='guid')
|
||||||
|
id: int = Field(validation_alias='id')
|
||||||
|
milestones: int = Field(validation_alias='milestones')
|
||||||
|
name: str = Field(validation_alias='name')
|
||||||
|
parent_srv_id: int = Field(validation_alias='parentSrvId')
|
||||||
|
parent_srv_type: str = Field(validation_alias='parentSrvType')
|
||||||
|
rg_id: int = Field(validation_alias='rgId')
|
||||||
|
rg_name: str = Field(validation_alias='rgName')
|
||||||
|
snapshots: list[SnapshotsItem] = Field(validation_alias='snapshots')
|
||||||
|
ssh_key: str = Field(validation_alias='sshKey')
|
||||||
|
ssh_user: str = Field(validation_alias='sshUser')
|
||||||
|
status: str = Field(validation_alias='status')
|
||||||
|
tech_status: str = Field(validation_alias='techStatus')
|
||||||
|
updated_by: str = Field(validation_alias='updatedBy')
|
||||||
|
updated_time: int = Field(validation_alias='updatedTime')
|
||||||
|
user_managed: bool = Field(validation_alias='userManaged')
|
||||||
|
zone_id: int = Field(validation_alias='zoneId')
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerBserviceListDeletedResult(_base.ResultModel):
|
||||||
|
data: list[DataItem] = Field(validation_alias='data')
|
||||||
|
entry_count: int = Field(validation_alias='entryCount')
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerBserviceListDeletedImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
account_id: int | None = Field(serialization_alias='accountId', default=None), # noqa E501
|
||||||
|
rg_id: int | None = Field(serialization_alias='rgId', default=None),
|
||||||
|
page: int = Field(serialization_alias='page', default=1),
|
||||||
|
size: int = Field(serialization_alias='size', default=100),
|
||||||
|
sort_by: str | None = Field(serialization_alias='sortBy', default=None), # noqa E501
|
||||||
|
) -> CloudbrokerBserviceListDeletedResult:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
from pydantic import Field
|
||||||
|
|
||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerBserviceMigrateToZoneImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
service_id: int = Field(serialization_alias='serviceId'),
|
||||||
|
zone_id: int = Field(serialization_alias='zoneId'),
|
||||||
|
) -> bool:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
from pydantic import Field
|
||||||
|
|
||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerBserviceRestoreImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
service_id: int = Field(serialization_alias='serviceId'),
|
||||||
|
) -> bool:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
from pydantic import Field
|
||||||
|
|
||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerBserviceSnapshotCreateImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
service_id: int = Field(serialization_alias='serviceId'),
|
||||||
|
label: str = Field(serialization_alias='label'),
|
||||||
|
) -> bool:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
from pydantic import Field
|
||||||
|
|
||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerBserviceSnapshotDeleteImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
service_id: int = Field(serialization_alias='serviceId'),
|
||||||
|
label: str = Field(serialization_alias='label'),
|
||||||
|
) -> bool:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
from pydantic import Field
|
||||||
|
|
||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class DataItem(_base.ResultModel):
|
||||||
|
guid: str = Field(validation_alias='guid')
|
||||||
|
label: str = Field(validation_alias='label')
|
||||||
|
timestamp: int = Field(validation_alias='timestamp')
|
||||||
|
valid: bool = Field(validation_alias='valid')
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerBserviceSnapshotListResult(_base.ResultModel):
|
||||||
|
data: list[DataItem] = Field(validation_alias='data')
|
||||||
|
entry_count: int = Field(validation_alias='entryCount')
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerBserviceSnapshotListImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
service_id: int = Field(serialization_alias='serviceId'),
|
||||||
|
) -> CloudbrokerBserviceSnapshotListResult:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
from pydantic import Field
|
||||||
|
|
||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerBserviceSnapshotRollbackImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
service_id: int = Field(serialization_alias='serviceId'),
|
||||||
|
label: str = Field(serialization_alias='label'),
|
||||||
|
) -> bool:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
from pydantic import Field
|
||||||
|
|
||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerBserviceStartImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
service_id: int = Field(serialization_alias='serviceId'),
|
||||||
|
) -> bool:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
from pydantic import Field
|
||||||
|
|
||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerBserviceStopImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
service_id: int = Field(serialization_alias='serviceId'),
|
||||||
|
) -> bool:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -13,6 +13,17 @@ from .list_unattached import *
|
|||||||
from .migrate import *
|
from .migrate import *
|
||||||
from .migrate_abort import *
|
from .migrate_abort import *
|
||||||
from .migrate_status import *
|
from .migrate_status import *
|
||||||
|
from .migrate_v2 import CloudbrokerDisksMigrateV2Impl
|
||||||
|
from .migrate_v2_abort import CloudbrokerDisksMigrateV2AbortImpl
|
||||||
|
from .present import CloudbrokerDisksPresentImpl
|
||||||
|
from .rename import CloudbrokerDisksRenameImpl
|
||||||
|
from .replicate import CloudbrokerDisksReplicateImpl
|
||||||
|
from .replication_cancel_sync import CloudbrokerDisksReplicationCancelSyncImpl
|
||||||
|
from .replication_start import CloudbrokerDisksReplicationStartImpl
|
||||||
|
from .replication_sync_now import CloudbrokerDisksReplicationSyncNowImpl
|
||||||
|
from .replication_enable_schedule import CloudbrokerDisksReplicationEnableScheduleImpl # noqa: E501
|
||||||
|
from .replication_disable_schedule import CloudbrokerDisksReplicationDisableScheduleImpl # noqa: E501
|
||||||
|
from .replication_stop import CloudbrokerDisksReplicationStopImpl
|
||||||
from .update import *
|
from .update import *
|
||||||
|
|
||||||
|
|
||||||
@@ -30,7 +41,18 @@ class CloudbrokerDisksAPI(
|
|||||||
list: CloudbrokerDisksListImpl
|
list: CloudbrokerDisksListImpl
|
||||||
list_deleted: CloudbrokerDisksListDeletedImpl
|
list_deleted: CloudbrokerDisksListDeletedImpl
|
||||||
list_unattached: CloudbrokerDisksListUnattachedImpl
|
list_unattached: CloudbrokerDisksListUnattachedImpl
|
||||||
migrate: CloudbrokerDisksMigrateImpl
|
|
||||||
migrate_abort: CloudbrokerDisksMigrateAbortImpl
|
migrate_abort: CloudbrokerDisksMigrateAbortImpl
|
||||||
migrate_status: CloudbrokerDisksMigrateStatusImpl
|
migrate_status: CloudbrokerDisksMigrateStatusImpl
|
||||||
|
migrate_v2: CloudbrokerDisksMigrateV2Impl
|
||||||
|
migrate_v2_abort: CloudbrokerDisksMigrateV2AbortImpl
|
||||||
|
migrate: CloudbrokerDisksMigrateImpl
|
||||||
|
present: CloudbrokerDisksPresentImpl
|
||||||
|
rename: CloudbrokerDisksRenameImpl
|
||||||
|
replicate: CloudbrokerDisksReplicateImpl
|
||||||
|
replication_cancel_sync: CloudbrokerDisksReplicationCancelSyncImpl
|
||||||
|
replication_start: CloudbrokerDisksReplicationStartImpl
|
||||||
|
replication_sync_now: CloudbrokerDisksReplicationSyncNowImpl
|
||||||
|
replication_enable_schedule: CloudbrokerDisksReplicationEnableScheduleImpl
|
||||||
|
replication_disable_schedule: CloudbrokerDisksReplicationDisableScheduleImpl # noqa: E501
|
||||||
|
replication_stop: CloudbrokerDisksReplicationStopImpl
|
||||||
update: CloudbrokerDisksUpdateImpl
|
update: CloudbrokerDisksUpdateImpl
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
from pydantic import Field
|
||||||
|
|
||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class TargetsItemAPIParamsNM(_base.BaseAPIParamsNestedModel):
|
||||||
|
disk_ids: list[int] = Field(serialization_alias='disk_ids')
|
||||||
|
pool_name: str
|
||||||
|
sep_id: int = Field(serialization_alias='sep_id')
|
||||||
|
storage_policy_id: int | None = None
|
||||||
|
|
||||||
|
|
||||||
|
class StorageAPIParamsNM(_base.BaseAPIParamsNestedModel):
|
||||||
|
auto_cleanup: bool = True
|
||||||
|
targets: list[TargetsItemAPIParamsNM]
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerDisksMigrateV2Impl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
bandwidth_bytes_per_second: int | None = None,
|
||||||
|
copy_parallelism: int | None = None,
|
||||||
|
storage: StorageAPIParamsNM,
|
||||||
|
) -> str:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
from pydantic import Field
|
||||||
|
|
||||||
|
import dynamix_sdk.base as _base
|
||||||
|
from dynamix_sdk.utils import AutoNameEnum as _AutoNameEnum
|
||||||
|
|
||||||
|
|
||||||
|
class Status(str, _AutoNameEnum):
|
||||||
|
ACCEPTED = 'accepted'
|
||||||
|
REJECTED = 'rejected'
|
||||||
|
UNKNOWN = 'unknown'
|
||||||
|
|
||||||
|
|
||||||
|
class ResultsItem(_base.ResultModel):
|
||||||
|
workflow_job_id: str
|
||||||
|
disk_ids: list[int] = Field(validation_alias='disk_ids')
|
||||||
|
status: Status
|
||||||
|
job_id: str | None
|
||||||
|
message: str
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerDisksMigrateV2AbortResult(_base.ResultModel):
|
||||||
|
results: list[ResultsItem]
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerDisksMigrateV2AbortImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
workflow_job_ids: list[str],
|
||||||
|
) -> CloudbrokerDisksMigrateV2AbortResult:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
from pydantic import Field
|
||||||
|
|
||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerDisksPresentImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
disk_id: int = Field(serialization_alias='diskId'),
|
||||||
|
node_id: int = Field(serialization_alias='nodeId'),
|
||||||
|
async_mode: bool = Field(serialization_alias='async_mode', default=False), # noqa E501
|
||||||
|
) -> str | bool:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
from pydantic import Field
|
||||||
|
|
||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerDisksRenameImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
disk_id: int = Field(serialization_alias='diskId'),
|
||||||
|
name: str = Field(serialization_alias='name'),
|
||||||
|
async_mode: bool = Field(serialization_alias='async_mode', default=False), # noqa E501
|
||||||
|
) -> str | bool:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
from pydantic import Field
|
||||||
|
|
||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerDisksReplicateImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
disk_id: int = Field(serialization_alias='diskId'),
|
||||||
|
name: str = Field(serialization_alias='name'),
|
||||||
|
sep_id: int = Field(serialization_alias='sepId'),
|
||||||
|
pool_name: str = Field(serialization_alias='poolName'),
|
||||||
|
storage_policy_id: int = Field(serialization_alias='storage_policy_id'), # noqa E501
|
||||||
|
async_mode: bool = Field(serialization_alias='async_mode', default=False), # noqa E501
|
||||||
|
copy_rate: int | None = Field(serialization_alias='copy_rate', default=None), # noqa E501
|
||||||
|
schedule: str | None = Field(serialization_alias='schedule', default=None), # noqa E501
|
||||||
|
) -> str | int:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
from pydantic import Field
|
||||||
|
|
||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerDisksReplicationCancelSyncImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
disk_id: int = Field(serialization_alias='disk_id'),
|
||||||
|
) -> bool:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
from pydantic import Field
|
||||||
|
|
||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerDisksReplicationDisableScheduleImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
disk_id: int = Field(
|
||||||
|
serialization_alias='disk_id',
|
||||||
|
validation_alias='disk_id',
|
||||||
|
),
|
||||||
|
) -> bool:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
from pydantic import Field
|
||||||
|
|
||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerDisksReplicationEnableScheduleImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
disk_id: int = Field(serialization_alias='disk_id'),
|
||||||
|
profile_id: int,
|
||||||
|
schedule_name: str,
|
||||||
|
) -> bool:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
from pydantic import Field
|
||||||
|
|
||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerDisksReplicationStartImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
disk_id: int = Field(serialization_alias='diskId'),
|
||||||
|
target_disk_id: int = Field(serialization_alias='targetDiskId'),
|
||||||
|
async_mode: bool = False,
|
||||||
|
copy_rate: int | None = None,
|
||||||
|
schedule: str | None = None,
|
||||||
|
) -> bool | str:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
from pydantic import Field
|
||||||
|
|
||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerDisksReplicationStopImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
disk_id: int = Field(serialization_alias='diskId'),
|
||||||
|
async_mode: bool = False,
|
||||||
|
) -> bool | str:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
from pydantic import Field
|
||||||
|
|
||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerDisksReplicationSyncNowImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
disk_id: int = Field(serialization_alias='disk_id'),
|
||||||
|
) -> bool:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -87,7 +87,7 @@ class CloudbrokerGridGetSettingsResult(_base.ResultModel):
|
|||||||
limits: dict[str, Any] | None = Field(json_schema_extra={'default': None})
|
limits: dict[str, Any] | None = Field(json_schema_extra={'default': None})
|
||||||
location_url: str = Field(validation_alias='location_url')
|
location_url: str = Field(validation_alias='location_url')
|
||||||
mac_address_prefix: str = Field(validation_alias='mac_address_prefix')
|
mac_address_prefix: str = Field(validation_alias='mac_address_prefix')
|
||||||
mem_allocation_ratio: int | None = Field(
|
mem_allocation_ratio: float | None = Field(
|
||||||
validation_alias='mem_allocation_ratio', default=None,
|
validation_alias='mem_allocation_ratio', default=None,
|
||||||
)
|
)
|
||||||
net_qos: NetQos = Field(validation_alias='net_qos')
|
net_qos: NetQos = Field(validation_alias='net_qos')
|
||||||
|
|||||||
@@ -10,6 +10,6 @@ class CloudbrokerGridSetMemAllocationRatioImpl(_base.APIFunctionImpl):
|
|||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
grid_id: int = Field(serialization_alias='gridId'),
|
grid_id: int = Field(serialization_alias='gridId'),
|
||||||
ratio: int = Field(serialization_alias='ratio'),
|
ratio: float = Field(serialization_alias='ratio'),
|
||||||
) -> bool:
|
) -> bool:
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
from ._api import *
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
import dynamix_sdk.base as _base
|
||||||
|
from .list import CloudbrokerGroupListImpl
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerGroupAPI(_base.BaseAPI):
|
||||||
|
list: CloudbrokerGroupListImpl
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
from pydantic import Field
|
||||||
|
|
||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class DataItem(_base.ResultModel):
|
||||||
|
active: bool
|
||||||
|
description: str = Field(validation_alias='description')
|
||||||
|
domain: str
|
||||||
|
gid: int
|
||||||
|
guid: str
|
||||||
|
id: str
|
||||||
|
lastcheck: int
|
||||||
|
roles: list[str]
|
||||||
|
users: list[str]
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerGroupListResult(_base.ResultModel):
|
||||||
|
data: list[DataItem]
|
||||||
|
entry_count: int
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerGroupListImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
active: bool = True,
|
||||||
|
by_id: str | None = None,
|
||||||
|
page: int = 1,
|
||||||
|
size: int = 100,
|
||||||
|
sort_by: str | None = None,
|
||||||
|
user: str | None = None,
|
||||||
|
) -> CloudbrokerGroupListResult:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
from .change_storage_policy import *
|
from .change_storage_policy import *
|
||||||
from .create_cdrom_image import *
|
from .create_cdrom_image import *
|
||||||
|
from .create_from_disk import CloudbrokerImageCreateFromDiskImpl
|
||||||
from .create_image import *
|
from .create_image import *
|
||||||
from .create_multi_image import CloudbrokerImageCreateMultiImageImpl
|
from .create_multi_image import CloudbrokerImageCreateMultiImageImpl
|
||||||
from .create_virtual import *
|
from .create_virtual import *
|
||||||
@@ -28,6 +29,7 @@ class CloudbrokerImageAPI(
|
|||||||
):
|
):
|
||||||
change_storage_policy: CloudbrokerImageChangeStoragePolicyImpl
|
change_storage_policy: CloudbrokerImageChangeStoragePolicyImpl
|
||||||
create_cdrom_image: CloudbrokerImageCreateCDROMImageImpl
|
create_cdrom_image: CloudbrokerImageCreateCDROMImageImpl
|
||||||
|
create_from_disk: CloudbrokerImageCreateFromDiskImpl
|
||||||
create_image: CloudbrokerImageCreateImageImpl
|
create_image: CloudbrokerImageCreateImageImpl
|
||||||
create_multi_image: CloudbrokerImageCreateMultiImageImpl
|
create_multi_image: CloudbrokerImageCreateMultiImageImpl
|
||||||
create_virtual: CloudbrokerImageCreateVirtualImpl
|
create_virtual: CloudbrokerImageCreateVirtualImpl
|
||||||
|
|||||||
@@ -0,0 +1,44 @@
|
|||||||
|
from pydantic import Field
|
||||||
|
|
||||||
|
import dynamix_sdk.base as _base
|
||||||
|
from dynamix_sdk.utils import AutoNameEnum as _AutoNameEnum
|
||||||
|
|
||||||
|
|
||||||
|
class BootType(str, _AutoNameEnum):
|
||||||
|
BIOS = 'bios'
|
||||||
|
UEFI = 'uefi'
|
||||||
|
|
||||||
|
|
||||||
|
class ImageType(str, _AutoNameEnum):
|
||||||
|
LINUX = 'linux'
|
||||||
|
WINDOWS = 'windows'
|
||||||
|
UNKNOWN = 'unknown'
|
||||||
|
|
||||||
|
|
||||||
|
class NetworkInterfaceNaming(str, _AutoNameEnum):
|
||||||
|
ETH = 'eth'
|
||||||
|
ENS = 'ens'
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerImageCreateFromDiskImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
name: str,
|
||||||
|
disk_id: int = Field(serialization_alias='disk_id'),
|
||||||
|
boot_type: BootType,
|
||||||
|
image_type: ImageType,
|
||||||
|
storage_policy_id: int,
|
||||||
|
bootable: bool = True,
|
||||||
|
async_mode: bool = True,
|
||||||
|
hot_resize: bool = Field(default=False, serialization_alias='hot_resize'), # noqa: E501
|
||||||
|
network_interface_naming: NetworkInterfaceNaming = Field(default=NetworkInterfaceNaming.ENS, serialization_alias='network_interface_naming'), # noqa: E501
|
||||||
|
user_name: str | None = Field(default=None, serialization_alias='user_name'), # noqa: E501
|
||||||
|
password: str | None = None,
|
||||||
|
account_id: int | None = Field(default=None, serialization_alias='account_id'), # noqa: E501
|
||||||
|
sep_id: int | None = Field(default=None, serialization_alias='sep_id'),
|
||||||
|
pool_name: str | None = None,
|
||||||
|
) -> int | str:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -45,7 +45,7 @@ class CloudbrokerImageGetResultModel(_base.ResultModel):
|
|||||||
storage_policy_id: int
|
storage_policy_id: int
|
||||||
tech_status: str
|
tech_status: str
|
||||||
to_clean: bool
|
to_clean: bool
|
||||||
type: str
|
type: str | None = None
|
||||||
url: str
|
url: str
|
||||||
username: str | None
|
username: str | None
|
||||||
version: str
|
version: str
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ class CloudbrokerK8sCreateImpl(_base.APIFunctionImpl):
|
|||||||
master_ram: int = Field(default=2048, serialization_alias='masterRam'),
|
master_ram: int = Field(default=2048, serialization_alias='masterRam'),
|
||||||
master_sep_id: int | None = Field(default=None, serialization_alias='masterSepId'), # noqa: E501
|
master_sep_id: int | None = Field(default=None, serialization_alias='masterSepId'), # noqa: E501
|
||||||
master_sep_pool: str | None = Field(default=None, serialization_alias='masterSepPool'), # noqa: E501
|
master_sep_pool: str | None = Field(default=None, serialization_alias='masterSepPool'), # noqa: E501
|
||||||
oidc_certificate: str | None = Field(default=None, serialization_alias='oidcCertificate'), # noqa: E501
|
|
||||||
taints: list[str] | None = None,
|
taints: list[str] | None = None,
|
||||||
user_data: str | dict | None = Field(default=None, serialization_alias='userData'), # noqa: E501
|
user_data: str | dict | None = Field(default=None, serialization_alias='userData'), # noqa: E501
|
||||||
vins_id: int | None = Field(default=None, serialization_alias='vinsId'), # noqa: E501
|
vins_id: int | None = Field(default=None, serialization_alias='vinsId'), # noqa: E501
|
||||||
|
|||||||
@@ -1,14 +1,69 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
from .add_ssh_identity import *
|
from .add_ssh_identity import *
|
||||||
|
from .apply_ipmi_action import CloudbrokerNodeApplyIpmiActionImpl
|
||||||
|
from .autostart import CloudbrokerNodeAutostartImpl
|
||||||
|
from .consumption import CloudbrokerNodeConsumptionImpl
|
||||||
|
from .decommission import CloudbrokerNodeDecommissionImpl
|
||||||
|
from .enable import CloudbrokerNodeEnableImpl
|
||||||
|
from .enable_nodes import CloudbrokerNodeEnableNodesImpl
|
||||||
|
from .get import CloudbrokerNodeGetImpl
|
||||||
|
from .get_logical_cores_count import CloudbrokerNodeGetLogicalCoresCountImpl
|
||||||
|
from .get_network_info import CloudbrokerNodeGetNetworkInfoImpl
|
||||||
|
from .get_pci_devices import CloudbrokerNodeGetPciDevicesImpl
|
||||||
from .get_ssh_identity import *
|
from .get_ssh_identity import *
|
||||||
|
from .install import CloudbrokerNodeInstallImpl
|
||||||
from .list import *
|
from .list import *
|
||||||
|
from .maintenance import CloudbrokerNodeMaintenanceImpl
|
||||||
|
from .remove_ssh_identity import CloudbrokerNodeRemoveSshIdentityImpl
|
||||||
|
from .pci_device_driver_to_vfio import CloudbrokerNodePciDeviceDriverToVfioImpl
|
||||||
|
from .pci_device_driver_to_kernel import CloudbrokerNodePciDeviceDriverToKernelImpl # noqa: E501
|
||||||
|
from .restrict import CloudbrokerNodeRestrictImpl
|
||||||
|
from .set_core_isolation import CloudbrokerNodeSetCoreIsolationImpl
|
||||||
|
from .set_cpu_allocation_ratio import CloudbrokerNodeSetCpuAllocationRatioImpl
|
||||||
|
from .set_huge_pages import CloudbrokerNodeSetHugePagesImpl
|
||||||
|
from .set_mem_allocation_ratio import CloudbrokerNodeSetMemAllocationRatioImpl
|
||||||
|
from .set_resources_limit import CloudbrokerNodeSetResourcesLimitImpl
|
||||||
|
from .set_vfs_number import CloudbrokerNodeSetVFsNumberImpl
|
||||||
|
from .set_vfs_params import CloudbrokerNodeSetVFsParamsImpl
|
||||||
|
from .setsriovstatus import CloudbrokerNodeSetsriovstatusImpl
|
||||||
|
from .update import CloudbrokerNodeUpdateImpl
|
||||||
from .update_description import *
|
from .update_description import *
|
||||||
|
|
||||||
|
|
||||||
class CloudbrokerNodeAPI(
|
class CloudbrokerNodeAPI(
|
||||||
_base.BaseAPI,
|
_base.BaseAPI,
|
||||||
|
path_mapping_dict={
|
||||||
|
**_base.path_mapping_dict,
|
||||||
|
'set_cpu_allocation_ratio': 'set_cpu_allocation_ratio',
|
||||||
|
'set_mem_allocation_ratio': 'set_mem_allocation_ratio',
|
||||||
|
},
|
||||||
):
|
):
|
||||||
add_ssh_identity: CloudbrokerNodeAddSshIdentityImpl
|
add_ssh_identity: CloudbrokerNodeAddSshIdentityImpl
|
||||||
|
apply_ipmi_action: CloudbrokerNodeApplyIpmiActionImpl
|
||||||
|
autostart: CloudbrokerNodeAutostartImpl
|
||||||
|
consumption: CloudbrokerNodeConsumptionImpl
|
||||||
|
decommission: CloudbrokerNodeDecommissionImpl
|
||||||
|
enable: CloudbrokerNodeEnableImpl
|
||||||
|
enable_nodes: CloudbrokerNodeEnableNodesImpl
|
||||||
|
get: CloudbrokerNodeGetImpl
|
||||||
|
get_logical_cores_count: CloudbrokerNodeGetLogicalCoresCountImpl
|
||||||
|
get_network_info: CloudbrokerNodeGetNetworkInfoImpl
|
||||||
|
get_pci_devices: CloudbrokerNodeGetPciDevicesImpl
|
||||||
get_ssh_identity: CloudbrokerNodeGetSshIdentityImpl
|
get_ssh_identity: CloudbrokerNodeGetSshIdentityImpl
|
||||||
|
install: CloudbrokerNodeInstallImpl
|
||||||
list: CloudbrokerNodeListImpl
|
list: CloudbrokerNodeListImpl
|
||||||
|
maintenance: CloudbrokerNodeMaintenanceImpl
|
||||||
|
remove_ssh_identity: CloudbrokerNodeRemoveSshIdentityImpl
|
||||||
|
pci_device_driver_to_vfio: CloudbrokerNodePciDeviceDriverToVfioImpl
|
||||||
|
pci_device_driver_to_kernel: CloudbrokerNodePciDeviceDriverToKernelImpl
|
||||||
|
restrict: CloudbrokerNodeRestrictImpl
|
||||||
|
set_core_isolation: CloudbrokerNodeSetCoreIsolationImpl
|
||||||
|
set_cpu_allocation_ratio: CloudbrokerNodeSetCpuAllocationRatioImpl
|
||||||
|
set_huge_pages: CloudbrokerNodeSetHugePagesImpl
|
||||||
|
set_mem_allocation_ratio: CloudbrokerNodeSetMemAllocationRatioImpl
|
||||||
|
set_resources_limit: CloudbrokerNodeSetResourcesLimitImpl
|
||||||
|
set_vfs_number: CloudbrokerNodeSetVFsNumberImpl
|
||||||
|
set_vfs_params: CloudbrokerNodeSetVFsParamsImpl
|
||||||
|
setsriovstatus: CloudbrokerNodeSetsriovstatusImpl
|
||||||
|
update: CloudbrokerNodeUpdateImpl
|
||||||
update_description: CloudbrokerNodeUpdateDescriptionImpl
|
update_description: CloudbrokerNodeUpdateDescriptionImpl
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
from enum import StrEnum
|
||||||
|
|
||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class Action(StrEnum):
|
||||||
|
IS_POWERED = 'is_powered'
|
||||||
|
POWER_ON = 'power_on'
|
||||||
|
SHUTDOWN = 'shutdown'
|
||||||
|
FORCE_SHUTDOWN = 'force_shutdown'
|
||||||
|
REBOOT = 'reboot'
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerNodeApplyIpmiActionImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
nid: int,
|
||||||
|
action: Action,
|
||||||
|
) -> bool:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
from pydantic import Field
|
||||||
|
|
||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerNodeAutostartImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
node_id: int = Field(serialization_alias='node_id'),
|
||||||
|
autostart: bool,
|
||||||
|
) -> bool:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
from pydantic import Field
|
||||||
|
|
||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class Total(_base.ResultModel):
|
||||||
|
ram: int = Field(validation_alias='RAM')
|
||||||
|
v_cpus: int = Field(validation_alias='vCPUs')
|
||||||
|
|
||||||
|
|
||||||
|
class Reserved(_base.ResultModel):
|
||||||
|
ram: int = Field(validation_alias='RAM')
|
||||||
|
|
||||||
|
|
||||||
|
class Consumed(_base.ResultModel):
|
||||||
|
ram: int = Field(validation_alias='RAM')
|
||||||
|
v_cpu: int = Field(validation_alias='vCPU')
|
||||||
|
computes: int
|
||||||
|
routers: int
|
||||||
|
|
||||||
|
|
||||||
|
class Free(_base.ResultModel):
|
||||||
|
ram: int = Field(validation_alias='RAM')
|
||||||
|
v_cpus: int = Field(validation_alias='vCPUs')
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerNodeConsumptionResult(_base.ResultModel):
|
||||||
|
total: Total
|
||||||
|
reserved: Reserved = Field(validation_alias='reserved')
|
||||||
|
consumed: Consumed = Field(validation_alias='consumed')
|
||||||
|
free: Free
|
||||||
|
hostname: str
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerNodeConsumptionImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
nid: int,
|
||||||
|
) -> CloudbrokerNodeConsumptionResult:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerNodeDecommissionImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
nid: int,
|
||||||
|
force: bool = False,
|
||||||
|
) -> bool:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerNodeEnableImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
nid: int,
|
||||||
|
reason: str | None = None,
|
||||||
|
force: bool = False,
|
||||||
|
async_mode: bool = True,
|
||||||
|
) -> bool | str:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerNodeEnableNodesImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
nids: list[int],
|
||||||
|
reason: str | None = None,
|
||||||
|
) -> str:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,197 @@
|
|||||||
|
from pydantic import Field
|
||||||
|
|
||||||
|
import dynamix_sdk.base as _base
|
||||||
|
from dynamix_sdk.utils import AutoNameEnum as _AutoNameEnum
|
||||||
|
|
||||||
|
|
||||||
|
class Total(_base.ResultModel):
|
||||||
|
ram: int = Field(validation_alias='RAM')
|
||||||
|
vcpus: int | None = Field(validation_alias='vCPUs', default=None)
|
||||||
|
|
||||||
|
|
||||||
|
class Reserved(_base.ResultModel):
|
||||||
|
ram: int = Field(validation_alias='RAM')
|
||||||
|
|
||||||
|
|
||||||
|
class Consumed(_base.ResultModel):
|
||||||
|
computes: int = Field(validation_alias='computes')
|
||||||
|
ram: int = Field(validation_alias='RAM')
|
||||||
|
routers: int = Field(validation_alias='routers')
|
||||||
|
vcpu: int = Field(validation_alias='vCPU')
|
||||||
|
|
||||||
|
|
||||||
|
class Free(_base.ResultModel):
|
||||||
|
ram: int = Field(validation_alias='RAM')
|
||||||
|
vcpus: int | None = Field(validation_alias='vCPUs', default=None)
|
||||||
|
|
||||||
|
|
||||||
|
class Consumption(_base.ResultModel):
|
||||||
|
consumed: Consumed = Field(validation_alias='consumed')
|
||||||
|
free: Free = Field(validation_alias='free')
|
||||||
|
hostname: str = Field(validation_alias='hostname')
|
||||||
|
reserved: Reserved = Field(validation_alias='reserved')
|
||||||
|
total: Total = Field(validation_alias='total')
|
||||||
|
|
||||||
|
|
||||||
|
class CpuInfo(_base.ResultModel):
|
||||||
|
clock_speed: float | None = Field(validation_alias='clockSpeed', default=None) # noqa: E501
|
||||||
|
core_count: int | None = Field(validation_alias='coreCount', default=None)
|
||||||
|
flags: list[str] | None = Field(validation_alias='flags', default=None)
|
||||||
|
model_name: str | None = Field(validation_alias='model_name', default=None)
|
||||||
|
phys_count: int | None = Field(validation_alias='physCount', default=None)
|
||||||
|
thread_count: int | None = Field(validation_alias='threadCount', default=None) # noqa: E501
|
||||||
|
max_supported_generation: str | None = Field(validation_alias='max_supported_generation', default=None) # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
|
class Bridges(_base.ResultModel):
|
||||||
|
model_config = _base.ConfigDict(extra='allow')
|
||||||
|
interfaces: list[str] | None = Field(validation_alias='interfaces', default=None) # noqa: E501
|
||||||
|
numa_node: int | None = Field(validation_alias='numa_node', default=None)
|
||||||
|
|
||||||
|
|
||||||
|
class Dpdk(_base.ResultModel):
|
||||||
|
bridges: dict[str, Bridges] | None = Field(validation_alias='bridges', default=None) # noqa: E501
|
||||||
|
ovs_dpdk_cores: list[int] | None = Field(validation_alias='ovs_dpdk_cores', default=None) # noqa: E501
|
||||||
|
hp_memory: dict[str, int] | None = Field(validation_alias='hp_memory', default=None) # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
|
class Netaddr(_base.ResultModel):
|
||||||
|
ip: list[str] = Field(validation_alias='ip')
|
||||||
|
name: str = Field(validation_alias='name')
|
||||||
|
|
||||||
|
|
||||||
|
class VflistItem(_base.ResultModel):
|
||||||
|
model_config = _base.ConfigDict(extra='allow')
|
||||||
|
|
||||||
|
|
||||||
|
class NicInfoItem(_base.ResultModel):
|
||||||
|
driver: str = Field(validation_alias='driver')
|
||||||
|
link_speed: int | None = Field(validation_alias='linkSpeed', default=None)
|
||||||
|
link_state: str | None = Field(validation_alias='linkState', default=None)
|
||||||
|
maxvfs: int = Field(validation_alias='maxvfs')
|
||||||
|
numa_node: int = Field(validation_alias='numaNode')
|
||||||
|
numvfs: int = Field(validation_alias='numvfs')
|
||||||
|
os_name: str = Field(validation_alias='osName')
|
||||||
|
pci_slot: str = Field(validation_alias='pciSlot')
|
||||||
|
vflist: list[VflistItem] = Field(validation_alias='vflist')
|
||||||
|
|
||||||
|
|
||||||
|
class Memory(_base.ResultModel):
|
||||||
|
compute_ids: list[int] | None = Field(validation_alias='compute_ids', default=None) # noqa: E501
|
||||||
|
size_1g: int | None = Field(validation_alias='1G', default=None)
|
||||||
|
size_1g_available: int | None = Field(validation_alias='1G_available', default=None) # noqa: E501
|
||||||
|
size_1g_dpdk_reserved: int | None = Field(validation_alias='1G_dpdk_reserved', default=None) # noqa: E501
|
||||||
|
size_1g_free: int | None = Field(validation_alias='1G_free', default=None)
|
||||||
|
size_1g_reserved: int | None = Field(validation_alias='1G_reserved', default=None) # noqa: E501
|
||||||
|
size_1g_used: int | None = Field(validation_alias='1G_used', default=None)
|
||||||
|
size_2m: int | None = Field(validation_alias='2M', default=None)
|
||||||
|
size_2m_available: int | None = Field(validation_alias='2M_available', default=None) # noqa: E501
|
||||||
|
size_2m_free: int | None = Field(validation_alias='2M_free', default=None)
|
||||||
|
size_2m_reserved: int | None = Field(validation_alias='2M_reserved', default=None) # noqa: E501
|
||||||
|
size_2m_used: int | None = Field(validation_alias='2M_used', default=None)
|
||||||
|
total: int | None = Field(validation_alias='total', default=None)
|
||||||
|
|
||||||
|
|
||||||
|
class Nodes(_base.ResultModel):
|
||||||
|
cpulist: list[int] | None = Field(validation_alias='cpulist', default=None) # noqa: E501
|
||||||
|
memory: Memory | None = Field(validation_alias='memory', default=None)
|
||||||
|
|
||||||
|
|
||||||
|
class NumaTopology(_base.ResultModel):
|
||||||
|
nodes: dict[str, Nodes] | None = Field(validation_alias='nodes', default=None) # noqa: E501
|
||||||
|
nodenum: int | None = Field(validation_alias='nodenum', default=None)
|
||||||
|
|
||||||
|
|
||||||
|
class PhysicalNetStateItem(_base.ResultModel):
|
||||||
|
cidr: list[str] = Field(validation_alias='cidr')
|
||||||
|
driver: str = Field(validation_alias='driver')
|
||||||
|
ip: list[str] = Field(validation_alias='ip')
|
||||||
|
link_speed: int | None = Field(validation_alias='linkSpeed', default=None)
|
||||||
|
link_state: str | None = Field(validation_alias='linkState', default=None)
|
||||||
|
mac: str | None = Field(validation_alias='mac', default=None)
|
||||||
|
mtu: int | None = Field(validation_alias='mtu', default=None)
|
||||||
|
os_name: str = Field(validation_alias='osName')
|
||||||
|
pci_slot: str = Field(validation_alias='pciSlot')
|
||||||
|
product_name: str | None = Field(validation_alias='product_name', default=None) # noqa: E501
|
||||||
|
vendor_name: str | None = Field(validation_alias='vendor_name', default=None) # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
|
class Networkmode(str, _AutoNameEnum):
|
||||||
|
OVS = "ovs"
|
||||||
|
BRIDGE = "bridge"
|
||||||
|
DPDK = "dpdk"
|
||||||
|
SDN = "sdn"
|
||||||
|
|
||||||
|
|
||||||
|
class ToActive(_base.ResultModel):
|
||||||
|
actor: str = Field(validation_alias='actor')
|
||||||
|
reason: str = Field(validation_alias='reason')
|
||||||
|
time: int = Field(validation_alias='time')
|
||||||
|
|
||||||
|
|
||||||
|
class ToInstalling(_base.ResultModel):
|
||||||
|
actor: str = Field(validation_alias='actor')
|
||||||
|
reason: str = Field(validation_alias='reason')
|
||||||
|
time: int = Field(validation_alias='time')
|
||||||
|
|
||||||
|
|
||||||
|
class ToMaintenance(_base.ResultModel):
|
||||||
|
actor: str = Field(validation_alias='actor')
|
||||||
|
reason: str = Field(validation_alias='reason')
|
||||||
|
time: int = Field(validation_alias='time')
|
||||||
|
|
||||||
|
|
||||||
|
class ToRestricted(_base.ResultModel):
|
||||||
|
actor: str = Field(validation_alias='actor')
|
||||||
|
reason: str = Field(validation_alias='reason')
|
||||||
|
time: int = Field(validation_alias='time')
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerNodeGetResult(_base.ResultModel):
|
||||||
|
autostart: bool | None = Field(validation_alias='autostart', default=None)
|
||||||
|
autostart_count: int | None = Field(validation_alias='autostart_count', default=None) # noqa: E501
|
||||||
|
consumption: Consumption = Field(validation_alias='consumption')
|
||||||
|
cpu_allocation_ratio: int | None = Field(validation_alias='cpu_allocation_ratio', default=None) # noqa: E501
|
||||||
|
cpu_info: CpuInfo = Field(validation_alias='cpuInfo')
|
||||||
|
description: str = Field(validation_alias='description')
|
||||||
|
dpdk: Dpdk = Field(validation_alias='dpdk')
|
||||||
|
gid: int = Field(validation_alias='gid')
|
||||||
|
id: int = Field(validation_alias='id')
|
||||||
|
ipaddr: list[str] = Field(validation_alias='ipaddr')
|
||||||
|
isolated_cpus: list[int] = Field(validation_alias='isolatedCpus')
|
||||||
|
mem_allocation_ratio: int | None = Field(validation_alias='mem_allocation_ratio', default=None) # noqa: E501
|
||||||
|
name: str = Field(validation_alias='name')
|
||||||
|
need_reboot: bool = Field(validation_alias='needReboot')
|
||||||
|
netaddr: Netaddr | None = Field(validation_alias='netaddr', default=None)
|
||||||
|
networkmode: Networkmode = Field(validation_alias='networkmode')
|
||||||
|
nic_info: list[NicInfoItem] = Field(validation_alias='nicInfo')
|
||||||
|
numa_topology: NumaTopology = Field(validation_alias='numaTopology')
|
||||||
|
openvswitch_bridges: list[str] = Field(validation_alias='openvswitch_bridges') # noqa: E501
|
||||||
|
physical_net_state: list[PhysicalNetStateItem] = Field(validation_alias='physical_net_state') # noqa: E501
|
||||||
|
reserved_cpu: int | None = Field(validation_alias='reserved_cpu', default=None) # noqa: E501
|
||||||
|
reserved_cpus: list[int] = Field(validation_alias='reservedCpus')
|
||||||
|
reserved_ram: int | None = Field(validation_alias='reserved_ram', default=None) # noqa: E501
|
||||||
|
roles: list[str] = Field(validation_alias='roles')
|
||||||
|
sdn_hypervisor_name: str = Field(validation_alias='sdn_hypervisor_name')
|
||||||
|
sriov_enabled: bool = Field(validation_alias='sriovEnabled')
|
||||||
|
status: str = Field(validation_alias='status')
|
||||||
|
to_active: ToActive = Field(validation_alias='to_active')
|
||||||
|
to_installing: ToInstalling = Field(validation_alias='to_installing')
|
||||||
|
to_maintenance: ToMaintenance = Field(validation_alias='to_maintenance')
|
||||||
|
to_restricted: ToRestricted = Field(validation_alias='to_restricted')
|
||||||
|
usable_cpus: list[str] = Field(validation_alias='usable_cpus')
|
||||||
|
version: str = Field(validation_alias='version')
|
||||||
|
zone_id: int = Field(validation_alias='zoneId')
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerNodeGetImpl(
|
||||||
|
_base.APIFunctionImpl,
|
||||||
|
):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
nid: int = Field(serialization_alias='nid'),
|
||||||
|
) -> CloudbrokerNodeGetResult:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
from pydantic import Field
|
||||||
|
|
||||||
|
import dynamix_sdk.base as _base
|
||||||
|
from dynamix_sdk.utils import AutoNameEnum as _AutoNameEnum
|
||||||
|
|
||||||
|
|
||||||
|
class Target(str, _AutoNameEnum):
|
||||||
|
CORE = 'core'
|
||||||
|
NODE = 'node'
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerNodeGetLogicalCoresCountImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.GET
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
node_id: int = Field(serialization_alias='node_id'),
|
||||||
|
target: Target = Target.CORE,
|
||||||
|
) -> int:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,146 @@
|
|||||||
|
from pydantic import Field
|
||||||
|
|
||||||
|
import dynamix_sdk.base as _base
|
||||||
|
from dynamix_sdk.utils import AutoNameEnum as _AutoNameEnum
|
||||||
|
|
||||||
|
|
||||||
|
class SystemNetworksInfo(_base.ResultModel):
|
||||||
|
mtu: int | None = None
|
||||||
|
speed: int | None = None
|
||||||
|
bridge_id: str | None = None
|
||||||
|
bport_id: str | None = None
|
||||||
|
mac: str | None = None
|
||||||
|
|
||||||
|
|
||||||
|
class OvsNetworksInfoItem(_base.ResultModel):
|
||||||
|
bridge_name: str | None = None
|
||||||
|
bridge_tag: str | None = None
|
||||||
|
interface_uuid: str | None = None
|
||||||
|
interface_name: str | None = None
|
||||||
|
interface_type: str | None = None
|
||||||
|
interface_mtu: int | None = None
|
||||||
|
interface_ip: str | None = None
|
||||||
|
interface_mac: str | None = None
|
||||||
|
interface_peer: str | None = None
|
||||||
|
|
||||||
|
|
||||||
|
class LibvirtNetworksInfoItem(_base.ResultModel):
|
||||||
|
vm_name: str | None = None
|
||||||
|
interface: str | None = None
|
||||||
|
interface_type: str | None = None
|
||||||
|
interface_source: str | None = None
|
||||||
|
|
||||||
|
|
||||||
|
class InterfaceType(str, _AutoNameEnum):
|
||||||
|
PHYSICAL = 'physical'
|
||||||
|
VIRTUAL = 'virtual'
|
||||||
|
INTERNAL = 'internal'
|
||||||
|
VXLAN = 'vxlan'
|
||||||
|
PATCH = 'patch'
|
||||||
|
BRIDGE = 'bridge'
|
||||||
|
SYSTEM = 'system'
|
||||||
|
|
||||||
|
|
||||||
|
class BridgeType(str, _AutoNameEnum):
|
||||||
|
LINUX_BRIDGE = 'linux_bridge'
|
||||||
|
OVS_BRIDGE = 'ovs_bridge'
|
||||||
|
|
||||||
|
|
||||||
|
class Via(str, _AutoNameEnum):
|
||||||
|
BPORT_ID = 'bport_id'
|
||||||
|
OVS_PORT = 'ovs_port'
|
||||||
|
|
||||||
|
|
||||||
|
class ConnectionType(str, _AutoNameEnum):
|
||||||
|
DIRECT = 'direct'
|
||||||
|
VIA_BRIDGE = 'via_bridge'
|
||||||
|
|
||||||
|
|
||||||
|
class BridgeInfoType(str, _AutoNameEnum):
|
||||||
|
OVS = 'ovs'
|
||||||
|
|
||||||
|
|
||||||
|
class PortInfo(_base.ResultModel):
|
||||||
|
name: str
|
||||||
|
type: str
|
||||||
|
mtu: int | None = None
|
||||||
|
vlan: str | None = None
|
||||||
|
uuid: str
|
||||||
|
|
||||||
|
|
||||||
|
class BridgesItem(_base.ResultModel):
|
||||||
|
name: str
|
||||||
|
type: BridgeType
|
||||||
|
via: Via
|
||||||
|
bport_id: str | None = None
|
||||||
|
port_info: PortInfo | None = None
|
||||||
|
|
||||||
|
|
||||||
|
class VmsItem(_base.ResultModel):
|
||||||
|
name: str
|
||||||
|
vm_interface: str
|
||||||
|
vm_interface_type: str
|
||||||
|
connection_type: ConnectionType
|
||||||
|
via_bridge: str | None = None
|
||||||
|
|
||||||
|
|
||||||
|
class Connections(_base.ResultModel):
|
||||||
|
vms: list[VmsItem] | None = None
|
||||||
|
bridges: list[BridgesItem] | None = None
|
||||||
|
|
||||||
|
|
||||||
|
class BridgeConnectionsItem(_base.ResultModel):
|
||||||
|
name: str
|
||||||
|
via: str
|
||||||
|
vlan: str | None = None
|
||||||
|
|
||||||
|
|
||||||
|
class PortsItem(_base.ResultModel):
|
||||||
|
name: str
|
||||||
|
type: str
|
||||||
|
mtu: int | None = None
|
||||||
|
vlan: str | None = None
|
||||||
|
uuid: str
|
||||||
|
ip: str | None = None
|
||||||
|
mac: str | None = None
|
||||||
|
|
||||||
|
|
||||||
|
class BridgeInfo(_base.ResultModel):
|
||||||
|
type: BridgeInfoType
|
||||||
|
ports: list[PortsItem] | None = None
|
||||||
|
|
||||||
|
|
||||||
|
class Interfaces(_base.ResultModel):
|
||||||
|
type: InterfaceType
|
||||||
|
mtu: int | None = None
|
||||||
|
speed: int | None = None
|
||||||
|
connections: Connections | None = None
|
||||||
|
vlans: list[str | None] | None = None
|
||||||
|
connected_interfaces: list[str] | None = None
|
||||||
|
bridge_connections: list[BridgeConnectionsItem] | None = None
|
||||||
|
bridge_info: BridgeInfo | None = None
|
||||||
|
bridge_id: str | None = None
|
||||||
|
peer: str | None = None
|
||||||
|
uuid: str | None = None
|
||||||
|
|
||||||
|
|
||||||
|
class Topology(_base.ResultModel):
|
||||||
|
interfaces: dict[str, Interfaces]
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerNodeGetNetworkInfoResult(_base.ResultModel):
|
||||||
|
system_networks_info: dict[str, SystemNetworksInfo]
|
||||||
|
ovs_networks_info: list[OvsNetworksInfoItem]
|
||||||
|
libvirt_networks_info: list[LibvirtNetworksInfoItem]
|
||||||
|
topology: Topology
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerNodeGetNetworkInfoImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.GET
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
node_id: int = Field(serialization_alias='node_id'),
|
||||||
|
) -> CloudbrokerNodeGetNetworkInfoResult:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,54 @@
|
|||||||
|
from pydantic import Field
|
||||||
|
|
||||||
|
import dynamix_sdk.base as _base
|
||||||
|
from dynamix_sdk.utils import AutoNameEnum as _AutoNameEnum
|
||||||
|
|
||||||
|
|
||||||
|
class SortBy(str, _AutoNameEnum):
|
||||||
|
PLUS_HW_PATH = '+hw_path'
|
||||||
|
MINUS_HW_PATH = '-hw_path'
|
||||||
|
PLUS_CURRENT_DRIVER = '+current_driver'
|
||||||
|
MINUS_CURRENT_DRIVER = '-current_driver'
|
||||||
|
PLUS_NUMA_NODE = '+numa_node'
|
||||||
|
MINUS_NUMA_NODE = '-numa_node'
|
||||||
|
PLUS_PRODUCT_ID = '+product_id'
|
||||||
|
MINUS_PRODUCT_ID = '-product_id'
|
||||||
|
PLUS_PRODUCT_NAME = '+product_name'
|
||||||
|
MINUS_PRODUCT_NAME = '-product_name'
|
||||||
|
PLUS_VENDOR_ID = '+vendor_id'
|
||||||
|
MINUS_VENDOR_ID = '-vendor_id'
|
||||||
|
PLUS_VENDOR_NAME = '+vendor_name'
|
||||||
|
MINUS_VENDOR_NAME = '-vendor_name'
|
||||||
|
PLUS_IOMMU_GROUP = '+iommu_group'
|
||||||
|
MINUS_IOMMU_GROUP = '-iommu_group'
|
||||||
|
|
||||||
|
|
||||||
|
class DataItem(_base.ResultModel):
|
||||||
|
hw_path: str = Field(validation_alias='hw_path')
|
||||||
|
current_driver: str | None = None
|
||||||
|
numa_node: int | None = Field(default=None, validation_alias='numa_node')
|
||||||
|
product_id: str
|
||||||
|
product_name: str
|
||||||
|
vendor_id: str
|
||||||
|
vendor_name: str
|
||||||
|
iommu_group: int | None = None
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerNodeGetPciDevicesResult(_base.ResultModel):
|
||||||
|
data: list[DataItem]
|
||||||
|
entry_count: int = Field(validation_alias='entryCount')
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerNodeGetPciDevicesImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.GET
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
nid: int,
|
||||||
|
search: str | None = None,
|
||||||
|
sort_by: SortBy | None = Field(default=None, serialization_alias='sort_by'), # noqa: E501
|
||||||
|
page: int = 1,
|
||||||
|
size: int | None = 100,
|
||||||
|
) -> CloudbrokerNodeGetPciDevicesResult:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
from enum import StrEnum
|
||||||
|
|
||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class OsVersion(StrEnum):
|
||||||
|
VAL_18 = '18'
|
||||||
|
VAL_22 = '22'
|
||||||
|
VAL_24 = '24'
|
||||||
|
ASTRA1_7 = 'astra1.7'
|
||||||
|
ASTRA1_8 = 'astra1.8'
|
||||||
|
ALT10SP = 'alt10sp'
|
||||||
|
VCORE = 'vcore'
|
||||||
|
|
||||||
|
|
||||||
|
class RolesItem(StrEnum):
|
||||||
|
CPU_DES = 'cpu_des'
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerNodeInstallImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
name: str,
|
||||||
|
roles: list[RolesItem],
|
||||||
|
os_version: OsVersion,
|
||||||
|
os_user_password: str,
|
||||||
|
backplane_ip: str,
|
||||||
|
management_ip: str,
|
||||||
|
vxbackend_ip: str,
|
||||||
|
gw_mgmt_ip: str,
|
||||||
|
ipmi_address: str,
|
||||||
|
ipmi_user: str,
|
||||||
|
ipmi_password: str,
|
||||||
|
os_user: str = 'root',
|
||||||
|
) -> str:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
from enum import StrEnum
|
||||||
|
|
||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class Vmaction(StrEnum):
|
||||||
|
STOP = 'stop'
|
||||||
|
MOVE = 'move'
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerNodeMaintenanceImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
nid: int,
|
||||||
|
reason: str | None = None,
|
||||||
|
vmaction: Vmaction = Vmaction.STOP,
|
||||||
|
autostart: bool = False,
|
||||||
|
offline: bool = False,
|
||||||
|
) -> bool:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
from enum import StrEnum
|
||||||
|
|
||||||
|
from pydantic import Field
|
||||||
|
|
||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class Mode(StrEnum):
|
||||||
|
SAFE = 'safe'
|
||||||
|
UNSAFE = 'unsafe'
|
||||||
|
|
||||||
|
|
||||||
|
class Result(_base.ResultModel):
|
||||||
|
model_config = _base.ConfigDict(extra='allow')
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerNodePciDeviceDriverToKernelResult(_base.ResultModel):
|
||||||
|
success: bool
|
||||||
|
message: str
|
||||||
|
result: Result | None = None
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerNodePciDeviceDriverToKernelImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
nid: int,
|
||||||
|
hw_path: str = Field(serialization_alias='hw_path'),
|
||||||
|
mode: Mode = Mode.SAFE,
|
||||||
|
) -> CloudbrokerNodePciDeviceDriverToKernelResult:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
from pydantic import Field
|
||||||
|
|
||||||
|
import dynamix_sdk.base as _base
|
||||||
|
from dynamix_sdk.utils import AutoNameEnum as _AutoNameEnum
|
||||||
|
|
||||||
|
|
||||||
|
class Mode(str, _AutoNameEnum):
|
||||||
|
SAFE = 'safe'
|
||||||
|
UNSAFE = 'unsafe'
|
||||||
|
|
||||||
|
|
||||||
|
class Result(_base.ResultModel):
|
||||||
|
model_config = _base.ConfigDict(extra='allow')
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerNodePciDeviceDriverToVfioResult(_base.ResultModel):
|
||||||
|
success: bool
|
||||||
|
message: str
|
||||||
|
result: Result | None = None
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerNodePciDeviceDriverToVfioImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
nid: int,
|
||||||
|
hw_path: str = Field(serialization_alias='hw_path'),
|
||||||
|
mode: Mode,
|
||||||
|
) -> CloudbrokerNodePciDeviceDriverToVfioResult:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
from pydantic import Field
|
||||||
|
|
||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerNodeRemoveSshIdentityImpl(
|
||||||
|
_base.APIFunctionImpl,
|
||||||
|
):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
node_id: int = Field(serialization_alias='node_id'),
|
||||||
|
client_public_key: str,
|
||||||
|
) -> bool:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerNodeRestrictImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
nid: int,
|
||||||
|
migrate: bool = False,
|
||||||
|
) -> bool:
|
||||||
|
raise NotImplementedError
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
from pydantic import Field
|
||||||
|
|
||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class CloudbrokerNodeSetCoreIsolationImpl(_base.APIFunctionImpl):
|
||||||
|
http_method = _base.HTTPMethod.POST
|
||||||
|
|
||||||
|
def __call__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
nid: int,
|
||||||
|
core_list: list[int] | None = Field(serialization_alias='coreList', default=None), # noqa: E501
|
||||||
|
) -> bool:
|
||||||
|
raise NotImplementedError
|
||||||
Loaded 100 of 143 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user