Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4b0f4bb0a0 | ||
|
|
d28e890f39 |
No files matched your search
+4
-26
@@ -1,33 +1,11 @@
|
|||||||
# Список изменений в версии 2.1.1
|
# Список изменений в версии 1.5.5
|
||||||
|
|
||||||
## Изменено
|
## Изменено
|
||||||
|
|
||||||
## Добавлено
|
|
||||||
| Идентификатор<br>задачи | Описание |
|
| Идентификатор<br>задачи | Описание |
|
||||||
| --- | --- |
|
| --- | --- |
|
||||||
| BPYS-2428 | Добавлена функция `cloudbroker.zone.get_cpu_alignment_profile`. |
|
| BPYS-2328 | Закреплена минорная версия Python `3.12` и версии зависимостей: `requests==2.32.3`, `pydantic==2.10.5`, `pyyaml==6.0.2`. |
|
||||||
| BPYS-2429 | Добавлена функция `cloudbroker.zone.list_cpu_alignment_profile`. |
|
|
||||||
| BPYS-2430 | Добавлена функция `cloudbroker.zone.update_cpu_alignment_profile`. |
|
## Добавлено
|
||||||
| BPYS-2431 | Добавлена функция `cloudbroker.zone.test_cpu_alignment_profile`. |
|
|
||||||
| BPYS-2432 | Добавлена функция `cloudbroker.zone.set_resources_limit`. |
|
|
||||||
| 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`. |
|
|
||||||
| BPYS-2447 | Добавлена функция `cloudbroker.grid.rename`. |
|
|
||||||
| BPYS-2450 | Добавлена функция `cloudbroker.grid.set_resources_limit`. |
|
|
||||||
| BPYS-2451 | Добавлена функция `cloudbroker.grid.status`. |
|
|
||||||
| BPYS-2453 | Добавлена функция `cloudbroker.bservice.group_get`. |
|
|
||||||
| BPYS-2455 | Добавлена функция `cloudbroker.bservice.group_parent_add`. |
|
|
||||||
| BPYS-2456 | Добавлена функция `cloudbroker.bservice.group_parent_remove`. |
|
|
||||||
| BPYS-2457 | Добавлена функция `cloudbroker.bservice.group_remove`. |
|
|
||||||
| BPYS-2458 | Добавлена функция `cloudbroker.bservice.group_resize`. |
|
|
||||||
| BPYS-2442 | Добавлена функция `cloudbroker.grid.get_resource_consumption`. |
|
|
||||||
| BPYS-2449 | Добавлена функция `cloudbroker.grid.set_cpu_allocation_parameter`. |
|
|
||||||
| BPYS-2452 | Добавлена функция `cloudbroker.grid.set_cpu_allocation_ratio`. |
|
|
||||||
| BPYS-2454 | Добавлена функция `cloudbroker.grid.set_cpu_allocation_ratio_for_vm`. |
|
|
||||||
| BPYS-2464 | Добавлена функция `cloudbroker.grid.set_mem_allocation_ratio`. |
|
|
||||||
| BPYS-2465 | Добавлена функция `cloudbroker.grid.set_password_policy`. |
|
|
||||||
|
|
||||||
## Удалено
|
## Удалено
|
||||||
|
|
||||||
|
|||||||
@@ -35,8 +35,6 @@
|
|||||||
|
|
||||||
| Версия платформы | Версия SDK |
|
| Версия платформы | Версия SDK |
|
||||||
| --- | --- |
|
| --- | --- |
|
||||||
| 4.8.0 | 2.1.x |
|
|
||||||
| 4.7.0 | 2.0.x |
|
|
||||||
| 4.6.0 | 1.5.x |
|
| 4.6.0 | 1.5.x |
|
||||||
| 4.5.0 | 1.4.x |
|
| 4.5.0 | 1.4.x |
|
||||||
| 4.4.0 | 1.3.x |
|
| 4.4.0 | 1.3.x |
|
||||||
@@ -228,7 +226,7 @@ Dynamix(
|
|||||||
|
|
||||||
### Функциональный интерфейс
|
### Функциональный интерфейс
|
||||||
|
|
||||||
Функциональный интерфейс предоставляет функциональные объекты, каждый из которых является реализацией соответствующей функции API платформы. Для упрощения изложения в данном руководстве вместо термина **функциональный объект** будет использоваться термин **функция**, если это позволяет контекст.
|
Функциональный интерфейс предоставляет функции, соответствующие функциям API платформы.
|
||||||
|
|
||||||
#### Вызов функции
|
#### Вызов функции
|
||||||
|
|
||||||
@@ -306,7 +304,7 @@ new_vm_id = dx.api.cloudapi.kvmx86.create(
|
|||||||
|
|
||||||
Тип данных, возвращаемый функцией API SDK зависит от типа данных, возвращаемого соответствующей функцией API платформы.
|
Тип данных, возвращаемый функцией API SDK зависит от типа данных, возвращаемого соответствующей функцией API платформы.
|
||||||
|
|
||||||
Если в результате функции API платформы присутствует структура данных в виде набора пар ключ/значение с заранее известными ключами, то в результате функции API SDK эта структура будет представлена в виде модели Pydantic. Остальные типы данных будут представлены соответствующими встроенными типами данных Python.
|
Если функция API платформы возвращает структуру данных в виде набора пар ключ/значение (с заранее известными ключами), то функция API SDK возвращает модель Pydantic, которая описывает эту структуру.
|
||||||
|
|
||||||
<details><summary>Модель</summary>
|
<details><summary>Модель</summary>
|
||||||
|
|
||||||
@@ -380,23 +378,6 @@ vm_disk1_id = dx.api.cloudapi.compute.get(vm_id=1).disks[0].id
|
|||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
<details><summary>Обращение к дополнительным полям через model_extra</summary>
|
|
||||||
|
|
||||||
В моделях с заранее неизвестным набором полей используется настройка `model_config = ConfigDict(extra='allow')`. Дополнительные поля таких моделей доступны через словарь `model_extra`:
|
|
||||||
|
|
||||||
```python
|
|
||||||
from dynamix_sdk import Dynamix
|
|
||||||
|
|
||||||
|
|
||||||
dx = Dynamix(...)
|
|
||||||
|
|
||||||
custom_fields = dx.api.cloudbroker.compute.get_custom_fields(compute_id=1)
|
|
||||||
|
|
||||||
field_value = custom_fields.model_extra.get('field_name')
|
|
||||||
```
|
|
||||||
|
|
||||||
</details>
|
|
||||||
|
|
||||||
Некоторые поля моделей автоматически генерируются на основе полученных данных от API платформы.<br>
|
Некоторые поля моделей автоматически генерируются на основе полученных данных от API платформы.<br>
|
||||||
Например, при наличии в модели поля, содержащего временную метку (timestamp), для удобства генерируется поле, содержащее дату и время в виде `datetime`.
|
Например, при наличии в модели поля, содержащего временную метку (timestamp), для удобства генерируется поле, содержащее дату и время в виде `datetime`.
|
||||||
|
|
||||||
@@ -421,22 +402,67 @@ print(type(get_result.created_datetime)) # <class 'datetime.datetime'>
|
|||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
<br>Все функциональные объекты, реализующие функции API платформы, обладают общими атрибутами:
|
Если функция API платформы возвращает примитивный тип данных (строка, число), то функция API SDK возвращает экземпляр класса, наследуемый от класса этого типа данных.
|
||||||
|
|
||||||
|
<details><summary>Класс, наследуемый от примитивного типа данных</summary>
|
||||||
|
|
||||||
|
```python
|
||||||
|
from dynamix_sdk import Dynamix
|
||||||
|
|
||||||
|
|
||||||
|
dx = Dynamix(...)
|
||||||
|
|
||||||
|
# /cloudapi/kvmx86/create
|
||||||
|
new_vm_id = dx.api.cloudapi.kvmx86.create(...)
|
||||||
|
|
||||||
|
print(type(new_vm_id)) # <class '....CloudapiKvmx86CreateResultInt'>
|
||||||
|
|
||||||
|
print(isinstance(new_vm_id, int)) # True
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
|
Исключением является булев тип данных. Так как наследование от класса `bool` в Python недопустимо, функция API SDK возвращает экземпляр класса, который обладает функциональностью для использования в булевых выражениях (реализован метод `__bool__`), но само булево значение хранится в атрибуте `value`:
|
||||||
|
|
||||||
|
<details><summary>Класс с булевым значением</summary>
|
||||||
|
|
||||||
|
```python
|
||||||
|
from dynamix_sdk import Dynamix
|
||||||
|
|
||||||
|
|
||||||
|
dx = Dynamix(...)
|
||||||
|
|
||||||
|
# /cloudapi/compute/delete
|
||||||
|
delete_result = dx.api.cloudapi.compute.delete(vm_id=1)
|
||||||
|
|
||||||
|
print(type(delete_result)) # <class '....CloudapiComputeDeleteResultBool'>
|
||||||
|
print(type(delete_result.value)) # <class 'bool'>
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
Использование в булевом выражении:
|
||||||
|
|
||||||
|
```python
|
||||||
|
from dynamix_sdk import Dynamix
|
||||||
|
|
||||||
|
|
||||||
|
dx = Dynamix(...)
|
||||||
|
|
||||||
|
# /cloudapi/compute/delete
|
||||||
|
if dx.api.cloudapi.compute.delete(vm_id=1):
|
||||||
|
print('The VM has been deleted.')
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
|
Все объекты, возвращаемые функциями API SDK, обладают общими специальными атрибутами:
|
||||||
|
|
||||||
| Атрибут | Описание |
|
| Атрибут | Описание |
|
||||||
| --- | --- |
|
| --- | --- |
|
||||||
| `api_path` | API URL path. |
|
| `_api_params` | Модель Pydantic, описывающая параметры, переданные в функцию. |
|
||||||
| `config` | Конфигурации SDK. |
|
| `_http_response` | HTTP-ответ API платформы в виде экземпляра класса `requests.Response`. |
|
||||||
| `func_name` | Название функции API SDK в формате <code>cloudapi.compute.get</code> |
|
|
||||||
| `http_method` | HTTP-метод. |
|
|
||||||
| `last_http_resp` | Экзепляр класса <code>requests.Response</code>, полученный при последнем вызове ФО. |
|
|
||||||
| `last_params_model` | Модель Pydantic, содержащая параметры, переданные в последний вызов ФО. |
|
|
||||||
| `name_mapping_dict` | Таблица соответствия названий параметров функций и полей возвращаемых данных. |
|
|
||||||
| `params_model_type` | Класс модели Pydantic для параметров вызова ФО. |
|
|
||||||
| `path_mapping_dict` | Таблица соответствия названий частей API URL path. |
|
|
||||||
| `post_json` | Используется ли JSON в POST-запросах. |
|
|
||||||
| `result_type` | Аннотация типа результата вызова ФО. |
|
|
||||||
| `signature` | Сигнатура вызова ФО. |
|
|
||||||
|
|
||||||
#### Соответствие названий
|
#### Соответствие названий
|
||||||
|
|
||||||
@@ -450,11 +476,10 @@ print(type(get_result.created_datetime)) # <class 'datetime.datetime'>
|
|||||||
- [api/name_mapping.yml](/src/dynamix_sdk/api/name_mapping.yml) - таблица соответствия названий параметров функций и полей возвращаемых данных.
|
- [api/name_mapping.yml](/src/dynamix_sdk/api/name_mapping.yml) - таблица соответствия названий параметров функций и полей возвращаемых данных.
|
||||||
<br>Данная таблица содержит все названия, в том числе и те, которые совпадают с названиями в API платформы.
|
<br>Данная таблица содержит все названия, в том числе и те, которые совпадают с названиями в API платформы.
|
||||||
<br>Кроме общих соответствий, данная таблица также содержит индивидуальные соответствия, которые применяются только к классу модели, указанному в формате `sdk_name__model_class_name`.
|
<br>Кроме общих соответствий, данная таблица также содержит индивидуальные соответствия, которые применяются только к классу модели, указанному в формате `sdk_name__model_class_name`.
|
||||||
<br>Если у поля модели или параметра функции задан алиас непосредственно с помощью `Field`, то таблица соответствия названий для него игнорируется.
|
|
||||||
|
|
||||||
### Типы данных SDK
|
### Типы данных SDK
|
||||||
|
|
||||||
Все типы данных (классы) SDK, которые могут пригодиться при разработке ПО с использованием SDK, доступны через модуль `dynamix_sdk.types` и модуль используемой функции.
|
Все типы данных (классы) SDK, которые могут пригодиться при разработке ПО с использованием SDK, доступны через модуль `dynamix_sdk.types`.
|
||||||
|
|
||||||
### Ошибки и исключения (exceptions)
|
### Ошибки и исключения (exceptions)
|
||||||
|
|
||||||
@@ -548,17 +573,17 @@ class RequestException(Exception):
|
|||||||
|
|
||||||
<details><summary>account</summary>
|
<details><summary>account</summary>
|
||||||
|
|
||||||
- /cloudapi/account/add_acl_access
|
|
||||||
- /cloudapi/account/addUser
|
- /cloudapi/account/addUser
|
||||||
- /cloudapi/account/del_acl_access
|
- /cloudapi/account/delete
|
||||||
- /cloudapi/account/deleteUser
|
- /cloudapi/account/deleteUser
|
||||||
|
- /cloudapi/account/disable
|
||||||
|
- /cloudapi/account/enable
|
||||||
- /cloudapi/account/get
|
- /cloudapi/account/get
|
||||||
- /cloudapi/account/getResourceConsumption
|
- /cloudapi/account/getResourceConsumption
|
||||||
- /cloudapi/account/list
|
- /cloudapi/account/list
|
||||||
- /cloudapi/account/listDeleted
|
- /cloudapi/account/listDeleted
|
||||||
- /cloudapi/account/restore
|
- /cloudapi/account/restore
|
||||||
- /cloudapi/account/update
|
- /cloudapi/account/update
|
||||||
- /cloudapi/account/update_acl_access
|
|
||||||
- /cloudapi/account/updateUser
|
- /cloudapi/account/updateUser
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
@@ -604,7 +629,6 @@ class RequestException(Exception):
|
|||||||
<details><summary>compute</summary>
|
<details><summary>compute</summary>
|
||||||
|
|
||||||
- /cloudapi/compute/abort_shared_snapshot_merge
|
- /cloudapi/compute/abort_shared_snapshot_merge
|
||||||
- /cloudapi/compute/add_acl_access
|
|
||||||
- /cloudapi/compute/affinityLabelRemove
|
- /cloudapi/compute/affinityLabelRemove
|
||||||
- /cloudapi/compute/affinityLabelSet
|
- /cloudapi/compute/affinityLabelSet
|
||||||
- /cloudapi/compute/affinityRelations
|
- /cloudapi/compute/affinityRelations
|
||||||
@@ -626,10 +650,8 @@ class RequestException(Exception):
|
|||||||
- /cloudapi/compute/changeLinkState
|
- /cloudapi/compute/changeLinkState
|
||||||
- /cloudapi/compute/clone
|
- /cloudapi/compute/clone
|
||||||
- /cloudapi/compute/createTemplate
|
- /cloudapi/compute/createTemplate
|
||||||
- /cloudapi/compute/del_acl_access
|
|
||||||
- /cloudapi/compute/delete
|
- /cloudapi/compute/delete
|
||||||
- /cloudapi/compute/deleteCustomFields
|
- /cloudapi/compute/deleteCustomFields
|
||||||
- /cloudapi/compute/delete_cpu_alignment_profile
|
|
||||||
- /cloudapi/compute/detachGpu
|
- /cloudapi/compute/detachGpu
|
||||||
- /cloudapi/compute/detachPciDevice
|
- /cloudapi/compute/detachPciDevice
|
||||||
- /cloudapi/compute/disable
|
- /cloudapi/compute/disable
|
||||||
@@ -641,9 +663,7 @@ class RequestException(Exception):
|
|||||||
- /cloudapi/compute/diskSwitchToReplication
|
- /cloudapi/compute/diskSwitchToReplication
|
||||||
- /cloudapi/compute/enable
|
- /cloudapi/compute/enable
|
||||||
- /cloudapi/compute/get
|
- /cloudapi/compute/get
|
||||||
- /cloudapi/compute/get_acl_access
|
|
||||||
- /cloudapi/compute/getConsoleUrl
|
- /cloudapi/compute/getConsoleUrl
|
||||||
- /cloudapi/compute/get_cpu_alignment_profile
|
|
||||||
- /cloudapi/compute/guest_agent_disable
|
- /cloudapi/compute/guest_agent_disable
|
||||||
- /cloudapi/compute/guest_agent_enable
|
- /cloudapi/compute/guest_agent_enable
|
||||||
- /cloudapi/compute/guest_agent_execute
|
- /cloudapi/compute/guest_agent_execute
|
||||||
@@ -667,7 +687,6 @@ class RequestException(Exception):
|
|||||||
- /cloudapi/compute/restore
|
- /cloudapi/compute/restore
|
||||||
- /cloudapi/compute/resume
|
- /cloudapi/compute/resume
|
||||||
- /cloudapi/compute/setCustomFields
|
- /cloudapi/compute/setCustomFields
|
||||||
- /cloudapi/compute/set_cpu_alignment_profile
|
|
||||||
- /cloudapi/compute/snapshotCreate
|
- /cloudapi/compute/snapshotCreate
|
||||||
- /cloudapi/compute/snapshotList
|
- /cloudapi/compute/snapshotList
|
||||||
- /cloudapi/compute/snapshotRollback
|
- /cloudapi/compute/snapshotRollback
|
||||||
@@ -677,7 +696,6 @@ class RequestException(Exception):
|
|||||||
- /cloudapi/compute/tagRemove
|
- /cloudapi/compute/tagRemove
|
||||||
- /cloudapi/compute/unpin_from_node
|
- /cloudapi/compute/unpin_from_node
|
||||||
- /cloudapi/compute/update
|
- /cloudapi/compute/update
|
||||||
- /cloudapi/compute/update_acl_access
|
|
||||||
- /cloudapi/compute/userGrant
|
- /cloudapi/compute/userGrant
|
||||||
- /cloudapi/compute/userList
|
- /cloudapi/compute/userList
|
||||||
- /cloudapi/compute/userRevoke
|
- /cloudapi/compute/userRevoke
|
||||||
@@ -697,8 +715,6 @@ class RequestException(Exception):
|
|||||||
- /cloudapi/disks/listDeleted
|
- /cloudapi/disks/listDeleted
|
||||||
- /cloudapi/disks/listUnattached
|
- /cloudapi/disks/listUnattached
|
||||||
- /cloudapi/disks/rename
|
- /cloudapi/disks/rename
|
||||||
- /cloudapi/disks/replication_disable_schedule
|
|
||||||
- /cloudapi/disks/replication_manual_sync
|
|
||||||
- /cloudapi/disks/resize2
|
- /cloudapi/disks/resize2
|
||||||
- /cloudapi/disks/restore
|
- /cloudapi/disks/restore
|
||||||
- /cloudapi/disks/share
|
- /cloudapi/disks/share
|
||||||
@@ -739,7 +755,6 @@ class RequestException(Exception):
|
|||||||
|
|
||||||
- /cloudapi/image/change_storage_policy
|
- /cloudapi/image/change_storage_policy
|
||||||
- /cloudapi/image/create
|
- /cloudapi/image/create
|
||||||
- /cloudapi/image/create_from_disk
|
|
||||||
- /cloudapi/image/createVirtual
|
- /cloudapi/image/createVirtual
|
||||||
- /cloudapi/image/delete
|
- /cloudapi/image/delete
|
||||||
- /cloudapi/image/get
|
- /cloudapi/image/get
|
||||||
@@ -832,18 +847,6 @@ class RequestException(Exception):
|
|||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
<details><summary>network_qos_policy</summary>
|
|
||||||
|
|
||||||
- /cloudapi/network_qos_policy/create
|
|
||||||
- /cloudapi/network_qos_policy/create_rule
|
|
||||||
- /cloudapi/network_qos_policy/delete
|
|
||||||
- /cloudapi/network_qos_policy/delete_rule
|
|
||||||
- /cloudapi/network_qos_policy/get
|
|
||||||
- /cloudapi/network_qos_policy/list
|
|
||||||
- /cloudapi/network_qos_policy/update
|
|
||||||
|
|
||||||
</details>
|
|
||||||
|
|
||||||
<details><summary>pcidevice</summary>
|
<details><summary>pcidevice</summary>
|
||||||
|
|
||||||
- /cloudapi/pcidevice/list
|
- /cloudapi/pcidevice/list
|
||||||
@@ -854,16 +857,13 @@ class RequestException(Exception):
|
|||||||
|
|
||||||
- /cloudapi/rg/accessGrant
|
- /cloudapi/rg/accessGrant
|
||||||
- /cloudapi/rg/accessRevoke
|
- /cloudapi/rg/accessRevoke
|
||||||
- /cloudapi/rg/add_acl_access
|
|
||||||
- /cloudapi/rg/add_storage_policy
|
- /cloudapi/rg/add_storage_policy
|
||||||
- /cloudapi/rg/create
|
- /cloudapi/rg/create
|
||||||
- /cloudapi/rg/del_acl_access
|
|
||||||
- /cloudapi/rg/del_storage_policy
|
- /cloudapi/rg/del_storage_policy
|
||||||
- /cloudapi/rg/delete
|
- /cloudapi/rg/delete
|
||||||
- /cloudapi/rg/disable
|
- /cloudapi/rg/disable
|
||||||
- /cloudapi/rg/enable
|
- /cloudapi/rg/enable
|
||||||
- /cloudapi/rg/get
|
- /cloudapi/rg/get
|
||||||
- /cloudapi/rg/get_acl_access
|
|
||||||
- /cloudapi/rg/getResourceConsumption
|
- /cloudapi/rg/getResourceConsumption
|
||||||
- /cloudapi/rg/list
|
- /cloudapi/rg/list
|
||||||
- /cloudapi/rg/listDeleted
|
- /cloudapi/rg/listDeleted
|
||||||
@@ -871,7 +871,6 @@ class RequestException(Exception):
|
|||||||
- /cloudapi/rg/restore
|
- /cloudapi/rg/restore
|
||||||
- /cloudapi/rg/setDefNet
|
- /cloudapi/rg/setDefNet
|
||||||
- /cloudapi/rg/update
|
- /cloudapi/rg/update
|
||||||
- /cloudapi/rg/update_acl_access
|
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
@@ -896,9 +895,7 @@ class RequestException(Exception):
|
|||||||
<details><summary>storage_policy</summary>
|
<details><summary>storage_policy</summary>
|
||||||
|
|
||||||
- /cloudapi/storage_policy/get
|
- /cloudapi/storage_policy/get
|
||||||
- /cloudapi/storage_policy/get_replication_profile
|
|
||||||
- /cloudapi/storage_policy/list
|
- /cloudapi/storage_policy/list
|
||||||
- /cloudapi/storage_policy/list_replication_profile
|
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
@@ -939,12 +936,6 @@ class RequestException(Exception):
|
|||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
<details><summary>vmfolder</summary>
|
|
||||||
|
|
||||||
- /cloudapi/vmfolder/create
|
|
||||||
|
|
||||||
</details>
|
|
||||||
|
|
||||||
<details><summary>vins</summary>
|
<details><summary>vins</summary>
|
||||||
|
|
||||||
- /cloudapi/vins/createInAccount
|
- /cloudapi/vins/createInAccount
|
||||||
@@ -975,19 +966,6 @@ class RequestException(Exception):
|
|||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
<details><summary>vmfolder</summary>
|
|
||||||
|
|
||||||
- /cloudapi/vmfolder/list
|
|
||||||
- /cloudapi/vmfolder/add_acl_access
|
|
||||||
- /cloudapi/vmfolder/computes_move
|
|
||||||
- /cloudapi/vmfolder/del_acl_access
|
|
||||||
- /cloudapi/vmfolder/delete
|
|
||||||
- /cloudapi/vmfolder/get
|
|
||||||
- /cloudapi/vmfolder/move
|
|
||||||
- /cloudapi/vmfolder/rename
|
|
||||||
|
|
||||||
</details>
|
|
||||||
|
|
||||||
<details><summary>zone</summary>
|
<details><summary>zone</summary>
|
||||||
|
|
||||||
- /cloudapi/zone/get
|
- /cloudapi/zone/get
|
||||||
@@ -999,32 +977,27 @@ class RequestException(Exception):
|
|||||||
|
|
||||||
<details><summary>account</summary>
|
<details><summary>account</summary>
|
||||||
|
|
||||||
- /cloudbroker/account/add_acl_access
|
|
||||||
- /cloudbroker/account/add_storage_policy
|
- /cloudbroker/account/add_storage_policy
|
||||||
- /cloudbroker/account/addUser
|
- /cloudbroker/account/addUser
|
||||||
- /cloudbroker/account/addZone
|
- /cloudbroker/account/addZone
|
||||||
- /cloudbroker/account/create
|
- /cloudbroker/account/create
|
||||||
- /cloudbroker/account/del_acl_access
|
|
||||||
- /cloudbroker/account/del_storage_policy
|
- /cloudbroker/account/del_storage_policy
|
||||||
- /cloudbroker/account/delete
|
- /cloudbroker/account/delete
|
||||||
- /cloudbroker/account/deleteAccounts
|
- /cloudbroker/account/deleteAccounts
|
||||||
- /cloudbroker/account/deleteUser
|
- /cloudbroker/account/deleteUser
|
||||||
|
- /cloudbroker/account/disable
|
||||||
- /cloudbroker/account/disableAccounts
|
- /cloudbroker/account/disableAccounts
|
||||||
|
- /cloudbroker/account/enable
|
||||||
- /cloudbroker/account/enableAccounts
|
- /cloudbroker/account/enableAccounts
|
||||||
- /cloudbroker/account/get
|
- /cloudbroker/account/get
|
||||||
- /cloudbroker/account/getResourceConsumption
|
- /cloudbroker/account/getResourceConsumption
|
||||||
- /cloudbroker/account/grantAccessTemplates
|
|
||||||
- /cloudbroker/account/list
|
- /cloudbroker/account/list
|
||||||
- /cloudbroker/account/listAvailableTemplates
|
|
||||||
- /cloudbroker/account/listDeleted
|
- /cloudbroker/account/listDeleted
|
||||||
- /cloudbroker/account/listResourceConsumption
|
|
||||||
- /cloudbroker/account/removeZone
|
- /cloudbroker/account/removeZone
|
||||||
- /cloudbroker/account/restore
|
- /cloudbroker/account/restore
|
||||||
- /cloudbroker/account/revokeAccessTemplates
|
|
||||||
- /cloudbroker/account/setCpuAllocationParameter
|
- /cloudbroker/account/setCpuAllocationParameter
|
||||||
- /cloudbroker/account/setCpuAllocationRatio
|
- /cloudbroker/account/setCpuAllocationRatio
|
||||||
- /cloudbroker/account/update
|
- /cloudbroker/account/update
|
||||||
- /cloudbroker/account/update_acl_access
|
|
||||||
- /cloudbroker/account/updateComputeFeatures
|
- /cloudbroker/account/updateComputeFeatures
|
||||||
- /cloudbroker/account/updateResourceTypes
|
- /cloudbroker/account/updateResourceTypes
|
||||||
- /cloudbroker/account/updateUser
|
- /cloudbroker/account/updateUser
|
||||||
@@ -1037,355 +1010,30 @@ class RequestException(Exception):
|
|||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
<details><summary>bservice</summary>
|
|
||||||
|
|
||||||
- /cloudbroker/bservice/create
|
|
||||||
- /cloudbroker/bservice/delete
|
|
||||||
- /cloudbroker/bservice/disable
|
|
||||||
- /cloudbroker/bservice/enable
|
|
||||||
- /cloudbroker/bservice/get
|
|
||||||
- /cloudbroker/bservice/groupAdd
|
|
||||||
- /cloudbroker/bservice/groupComputeRemove
|
|
||||||
- /cloudbroker/bservice/groupGet
|
|
||||||
- /cloudbroker/bservice/groupParentAdd
|
|
||||||
- /cloudbroker/bservice/groupParentRemove
|
|
||||||
- /cloudbroker/bservice/groupRemove
|
|
||||||
- /cloudbroker/bservice/groupResize
|
|
||||||
|
|
||||||
</details>
|
|
||||||
|
|
||||||
<details><summary>compute</summary>
|
<details><summary>compute</summary>
|
||||||
|
|
||||||
- /cloudbroker/compute/abort_shared_snapshot_merge
|
|
||||||
- /cloudbroker/compute/add_acl_access
|
|
||||||
- /cloudbroker/compute/affinityLabelRemove
|
|
||||||
- /cloudbroker/compute/affinityLabelSet
|
|
||||||
- /cloudbroker/compute/affinityRelations
|
|
||||||
- /cloudbroker/compute/affinityRuleAdd
|
|
||||||
- /cloudbroker/compute/affinityRuleRemove
|
|
||||||
- /cloudbroker/compute/affinityRulesClear
|
|
||||||
- /cloudbroker/compute/antiAffinityRuleAdd
|
|
||||||
- /cloudbroker/compute/antiAffinityRuleRemove
|
|
||||||
- /cloudbroker/compute/antiAffinityRulesClear
|
|
||||||
- /cloudbroker/compute/attachGpu
|
|
||||||
- /cloudbroker/compute/attachPciDevice
|
|
||||||
- /cloudbroker/compute/bootDiskSet
|
|
||||||
- /cloudbroker/compute/bootOrderGet
|
|
||||||
- /cloudbroker/compute/bootOrderSet
|
|
||||||
- /cloudbroker/compute/cdEject
|
|
||||||
- /cloudbroker/compute/cdInsert
|
|
||||||
- /cloudbroker/compute/changeIp
|
|
||||||
- /cloudbroker/compute/changeMac
|
|
||||||
- /cloudbroker/compute/change_mtu
|
|
||||||
- /cloudbroker/compute/change_qos_policies
|
|
||||||
- /cloudbroker/compute/change_read_only
|
- /cloudbroker/compute/change_read_only
|
||||||
- /cloudbroker/compute/change_security_groups
|
- /cloudbroker/compute/change_security_groups
|
||||||
- /cloudbroker/compute/changeLinkState
|
|
||||||
- /cloudbroker/compute/check_compute_placement
|
|
||||||
- /cloudbroker/compute/clone
|
- /cloudbroker/compute/clone
|
||||||
- /cloudbroker/compute/clone_abort
|
|
||||||
- /cloudbroker/compute/clone_status
|
|
||||||
- /cloudbroker/compute/createTemplate
|
|
||||||
- /cloudbroker/compute/createTemplateFromBlank
|
|
||||||
- /cloudbroker/compute/del_acl_access
|
|
||||||
- /cloudbroker/compute/delete
|
|
||||||
- /cloudbroker/compute/delete_cpu_alignment_profile
|
|
||||||
- /cloudbroker/compute/deleteCustomFields
|
|
||||||
- /cloudbroker/compute/detachGpu
|
|
||||||
- /cloudbroker/compute/detachPciDevice
|
|
||||||
- /cloudbroker/compute/disable
|
|
||||||
- /cloudbroker/compute/diskAdd
|
|
||||||
- /cloudbroker/compute/diskAttach
|
|
||||||
- /cloudbroker/compute/diskDel
|
|
||||||
- /cloudbroker/compute/diskDetach
|
|
||||||
- /cloudbroker/compute/diskMigrate
|
|
||||||
- /cloudbroker/compute/diskSwitchToReplication
|
|
||||||
- /cloudbroker/compute/enable
|
|
||||||
- /cloudbroker/compute/get
|
|
||||||
- /cloudbroker/compute/getCustomFields
|
|
||||||
- /cloudbroker/compute/get_acl_access
|
|
||||||
- /cloudbroker/compute/getConsoleUrl
|
|
||||||
- /cloudbroker/compute/get_cpu_alignment_profile
|
|
||||||
- /cloudbroker/compute/guest_agent_disable
|
|
||||||
- /cloudbroker/compute/guest_agent_enable
|
|
||||||
- /cloudbroker/compute/guest_agent_execute
|
|
||||||
- /cloudbroker/compute/guest_agent_feature_get
|
|
||||||
- /cloudbroker/compute/guest_agent_feature_update
|
|
||||||
- /cloudbroker/compute/list
|
|
||||||
- /cloudbroker/compute/listDeleted
|
|
||||||
- /cloudbroker/compute/massDelete
|
|
||||||
- /cloudbroker/compute/massReboot
|
|
||||||
- /cloudbroker/compute/massStart
|
|
||||||
- /cloudbroker/compute/massStop
|
|
||||||
- /cloudbroker/compute/mass_pin_to_node
|
|
||||||
- /cloudbroker/compute/migrate
|
|
||||||
- /cloudbroker/compute/migrateStorage
|
|
||||||
- /cloudbroker/compute/migrateStorageAbort
|
|
||||||
- /cloudbroker/compute/migrateStorageCleanup
|
|
||||||
- /cloudbroker/compute/migrateStorageInfo
|
|
||||||
- /cloudbroker/compute/migrate_abort
|
|
||||||
- /cloudbroker/compute/migrate_storage_list
|
- /cloudbroker/compute/migrate_storage_list
|
||||||
- /cloudbroker/compute/migrateToZone
|
|
||||||
- /cloudbroker/compute/migrate_v2
|
|
||||||
- /cloudbroker/compute/migrate_v2_abort
|
|
||||||
- /cloudbroker/compute/migrate_v2_cleanup
|
|
||||||
- /cloudbroker/compute/migrate_v2_get
|
|
||||||
- /cloudbroker/compute/migrate_v2_list
|
|
||||||
- /cloudbroker/compute/migrate_v2_resolve
|
|
||||||
- /cloudbroker/compute/moveToRg
|
|
||||||
- /cloudbroker/compute/netAttach
|
|
||||||
- /cloudbroker/compute/netDetach
|
|
||||||
- /cloudbroker/compute/netQos
|
|
||||||
- /cloudbroker/compute/pause
|
|
||||||
- /cloudbroker/compute/pfwAdd
|
|
||||||
- /cloudbroker/compute/pfwDel
|
|
||||||
- /cloudbroker/compute/pfwList
|
|
||||||
- /cloudbroker/compute/pin_to_node
|
|
||||||
- /cloudbroker/compute/powerCycle
|
|
||||||
- /cloudbroker/compute/raiseDown
|
|
||||||
- /cloudbroker/compute/reboot
|
|
||||||
- /cloudbroker/compute/redeploy
|
|
||||||
- /cloudbroker/compute/reset
|
|
||||||
- /cloudbroker/compute/resume
|
|
||||||
- /cloudbroker/compute/resize
|
|
||||||
- /cloudbroker/compute/restore
|
|
||||||
- /cloudbroker/compute/setCustomFields
|
|
||||||
- /cloudbroker/compute/setNetConfig
|
|
||||||
- /cloudbroker/compute/set_cpu_alignment_profile
|
|
||||||
- /cloudbroker/compute/shared_snapshot_merge_status
|
|
||||||
- /cloudbroker/compute/snapshotCreate
|
|
||||||
- /cloudbroker/compute/snapshotDelete
|
|
||||||
- /cloudbroker/compute/snapshotEvictDisk
|
|
||||||
- /cloudbroker/compute/snapshotList
|
|
||||||
- /cloudbroker/compute/snapshotRollback
|
|
||||||
- /cloudbroker/compute/snapshotUsage
|
|
||||||
- /cloudbroker/compute/start
|
|
||||||
- /cloudbroker/compute/start_migration_in
|
- /cloudbroker/compute/start_migration_in
|
||||||
- /cloudbroker/compute/start_migration_out
|
- /cloudbroker/compute/start_migration_out
|
||||||
- /cloudbroker/compute/stop
|
|
||||||
- /cloudbroker/compute/stop_migration_in
|
- /cloudbroker/compute/stop_migration_in
|
||||||
- /cloudbroker/compute/stop_migration_out
|
- /cloudbroker/compute/stop_migration_out
|
||||||
- /cloudbroker/compute/tagAdd
|
|
||||||
- /cloudbroker/compute/tagRemove
|
|
||||||
- /cloudbroker/compute/unpin_from_node
|
|
||||||
- /cloudbroker/compute/update_acl_access
|
|
||||||
- /cloudbroker/compute/update
|
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
<details><summary>disks</summary>
|
<details><summary>disks</summary>
|
||||||
|
|
||||||
- /cloudbroker/disks/change_disk_storage_policy
|
|
||||||
- /cloudbroker/disks/create
|
|
||||||
- /cloudbroker/disks/delete
|
|
||||||
- /cloudbroker/disks/deleteDisks
|
|
||||||
- /cloudbroker/disks/depresent
|
|
||||||
- /cloudbroker/disks/fromPlatformDisk
|
|
||||||
- /cloudbroker/disks/get
|
|
||||||
- /cloudbroker/disks/limitIO
|
|
||||||
- /cloudbroker/disks/list
|
|
||||||
- /cloudbroker/disks/listDeleted
|
|
||||||
- /cloudbroker/disks/listUnattached
|
|
||||||
- /cloudbroker/disks/migrate
|
- /cloudbroker/disks/migrate
|
||||||
- /cloudbroker/disks/migrate_abort
|
- /cloudbroker/disks/migrate_abort
|
||||||
- /cloudbroker/disks/migrate_status
|
- /cloudbroker/disks/migrate_status
|
||||||
- /cloudbroker/disks/update
|
|
||||||
|
|
||||||
</details>
|
|
||||||
|
|
||||||
<details><summary>dpdknet</summary>
|
|
||||||
|
|
||||||
- /cloudbroker/dpdknet/create
|
|
||||||
- /cloudbroker/dpdknet/delete
|
|
||||||
- /cloudbroker/dpdknet/disable
|
|
||||||
- /cloudbroker/dpdknet/enable
|
|
||||||
- /cloudbroker/dpdknet/get
|
|
||||||
- /cloudbroker/dpdknet/list
|
|
||||||
- /cloudbroker/dpdknet/update
|
|
||||||
|
|
||||||
</details>
|
|
||||||
|
|
||||||
<details><summary>extnet</summary>
|
|
||||||
|
|
||||||
- /cloudbroker/extnet/accessAdd
|
|
||||||
- /cloudbroker/extnet/accessRemove
|
|
||||||
- /cloudbroker/extnet/addReservedIp
|
|
||||||
- /cloudbroker/extnet/create
|
|
||||||
- /cloudbroker/extnet/defaultQosUpdate
|
|
||||||
- /cloudbroker/extnet/delReservedIp
|
|
||||||
- /cloudbroker/extnet/destroy
|
|
||||||
- /cloudbroker/extnet/deviceDeploy
|
|
||||||
- /cloudbroker/extnet/deviceMigrate
|
|
||||||
- /cloudbroker/extnet/deviceRemove
|
|
||||||
- /cloudbroker/extnet/deviceRestart
|
|
||||||
- /cloudbroker/extnet/disable
|
|
||||||
- /cloudbroker/extnet/dnsApply
|
|
||||||
- /cloudbroker/extnet/enable
|
|
||||||
- /cloudbroker/extnet/get
|
|
||||||
- /cloudbroker/extnet/getDefault
|
|
||||||
- /cloudbroker/extnet/getReservedIp
|
|
||||||
- /cloudbroker/extnet/ipsExclude
|
|
||||||
- /cloudbroker/extnet/ipsExcludeRange
|
|
||||||
- /cloudbroker/extnet/ipsInclude
|
|
||||||
- /cloudbroker/extnet/ipsIncludeRange
|
|
||||||
- /cloudbroker/extnet/list
|
|
||||||
- /cloudbroker/extnet/migrateToZone
|
|
||||||
- /cloudbroker/extnet/ntpApply
|
|
||||||
- /cloudbroker/extnet/raiseDown
|
|
||||||
- /cloudbroker/extnet/set_highly_available
|
|
||||||
- /cloudbroker/extnet/setDefault
|
|
||||||
- /cloudbroker/extnet/staticRouteAccessGrant
|
|
||||||
- /cloudbroker/extnet/staticRouteAccessRevoke
|
|
||||||
- /cloudbroker/extnet/staticRouteAdd
|
|
||||||
- /cloudbroker/extnet/staticRouteDel
|
|
||||||
- /cloudbroker/extnet/staticRouteList
|
|
||||||
- /cloudbroker/extnet/update
|
|
||||||
|
|
||||||
</details>
|
|
||||||
|
|
||||||
<details><summary>flipgroup</summary>
|
|
||||||
|
|
||||||
- /cloudbroker/flipgroup/computeAdd
|
|
||||||
- /cloudbroker/flipgroup/computeRemove
|
|
||||||
- /cloudbroker/flipgroup/create
|
|
||||||
- /cloudbroker/flipgroup/delete
|
|
||||||
- /cloudbroker/flipgroup/edit
|
|
||||||
- /cloudbroker/flipgroup/get
|
|
||||||
- /cloudbroker/flipgroup/list
|
|
||||||
|
|
||||||
</details>
|
|
||||||
|
|
||||||
<details><summary>grid</summary>
|
|
||||||
|
|
||||||
- /cloudbroker/grid/addCustomBackupPath
|
|
||||||
- /cloudbroker/grid/changeSettings
|
|
||||||
- /cloudbroker/grid/get
|
|
||||||
- /cloudbroker/grid/getResourceConsumption
|
|
||||||
- /cloudbroker/grid/getSettings
|
|
||||||
- /cloudbroker/grid/list
|
|
||||||
- /cloudbroker/grid/listResourceConsumption
|
|
||||||
- /cloudbroker/grid/purgeLogs
|
|
||||||
- /cloudbroker/grid/removeCustomBackupPath
|
|
||||||
- /cloudbroker/grid/rename
|
|
||||||
- /cloudbroker/grid/set_resources_limit
|
|
||||||
- /cloudbroker/grid/setCpuAllocationParameter
|
|
||||||
- /cloudbroker/grid/setCpuAllocationRatio
|
|
||||||
- /cloudbroker/grid/setCpuAllocationRatioForVM
|
|
||||||
- /cloudbroker/grid/setMemAllocationRatio
|
|
||||||
- /cloudbroker/grid/setPasswordPolicy
|
|
||||||
- /cloudbroker/grid/status
|
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
<details><summary>image</summary>
|
<details><summary>image</summary>
|
||||||
|
|
||||||
- /cloudbroker/image/change_storage_policy
|
- /cloudbroker/image/change_storage_policy
|
||||||
- /cloudbroker/image/createCDROMImage
|
|
||||||
- /cloudbroker/image/createImage
|
|
||||||
- /cloudbroker/image/createVirtual
|
|
||||||
- /cloudbroker/image/create_multi_image
|
|
||||||
- /cloudbroker/image/delete
|
|
||||||
- /cloudbroker/image/deleteCDROMImage
|
|
||||||
- /cloudbroker/image/deleteImages
|
|
||||||
- /cloudbroker/image/disable
|
|
||||||
- /cloudbroker/image/edit
|
|
||||||
- /cloudbroker/image/enable
|
|
||||||
- /cloudbroker/image/get
|
|
||||||
- /cloudbroker/image/grantAccess
|
|
||||||
- /cloudbroker/image/link
|
|
||||||
- /cloudbroker/image/list
|
|
||||||
- /cloudbroker/image/multi_image_add_links
|
|
||||||
- /cloudbroker/image/multi_image_del_links
|
|
||||||
- /cloudbroker/image/multi_image_export
|
|
||||||
- /cloudbroker/image/rename
|
|
||||||
- /cloudbroker/image/revokeAccess
|
|
||||||
- /cloudbroker/image/share
|
|
||||||
- /cloudbroker/image/uploadImageFile
|
|
||||||
|
|
||||||
</details>
|
|
||||||
|
|
||||||
<details><summary>k8ci</summary>
|
|
||||||
|
|
||||||
- /cloudbroker/k8ci/accessAdd
|
|
||||||
- /cloudbroker/k8ci/accessRemove
|
|
||||||
- /cloudbroker/k8ci/create
|
|
||||||
- /cloudbroker/k8ci/delete
|
|
||||||
- /cloudbroker/k8ci/disable
|
|
||||||
- /cloudbroker/k8ci/enable
|
|
||||||
- /cloudbroker/k8ci/get
|
|
||||||
- /cloudbroker/k8ci/list
|
|
||||||
- /cloudbroker/k8ci/listDeleted
|
|
||||||
- /cloudbroker/k8ci/restore
|
|
||||||
|
|
||||||
</details>
|
|
||||||
|
|
||||||
<details><summary>k8s</summary>
|
|
||||||
|
|
||||||
- /cloudbroker/k8s/create
|
|
||||||
- /cloudbroker/k8s/delete
|
|
||||||
- /cloudbroker/k8s/deleteMasterFromGroup
|
|
||||||
- /cloudbroker/k8s/deleteWorkerFromGroup
|
|
||||||
- /cloudbroker/k8s/disable
|
|
||||||
- /cloudbroker/k8s/enable
|
|
||||||
- /cloudbroker/k8s/findGroupByLabel
|
|
||||||
- /cloudbroker/k8s/get
|
|
||||||
- /cloudbroker/k8s/getConfig
|
|
||||||
- /cloudbroker/k8s/getNodeAnnotations
|
|
||||||
- /cloudbroker/k8s/getNodeLabels
|
|
||||||
- /cloudbroker/k8s/getNodeTaints
|
|
||||||
- /cloudbroker/k8s/getWorkerNodesMetaData
|
|
||||||
- /cloudbroker/k8s/list
|
|
||||||
- /cloudbroker/k8s/migrateToZone
|
|
||||||
- /cloudbroker/k8s/restore
|
|
||||||
- /cloudbroker/k8s/start
|
|
||||||
- /cloudbroker/k8s/stop
|
|
||||||
- /cloudbroker/k8s/update
|
|
||||||
- /cloudbroker/k8s/updateWorkerNodesMetaData
|
|
||||||
- /cloudbroker/k8s/workerAdd
|
|
||||||
- /cloudbroker/k8s/workerRestart
|
|
||||||
- /cloudbroker/k8s/workerReset
|
|
||||||
- /cloudbroker/k8s/workersGroupAdd
|
|
||||||
- /cloudbroker/k8s/workersGroupDelete
|
|
||||||
- /cloudbroker/k8s/workersGroupGetByName
|
|
||||||
|
|
||||||
</details>
|
|
||||||
|
|
||||||
<details><summary>kvmx86</summary>
|
|
||||||
|
|
||||||
- /cloudbroker/kvmx86/create
|
|
||||||
- /cloudbroker/kvmx86/createBlank
|
|
||||||
- /cloudbroker/kvmx86/massCreate
|
|
||||||
|
|
||||||
</details>
|
|
||||||
|
|
||||||
<details><summary>lb</summary>
|
|
||||||
|
|
||||||
- /cloudbroker/lb/backendCreate
|
|
||||||
- /cloudbroker/lb/backendDelete
|
|
||||||
- /cloudbroker/lb/backendServerAdd
|
|
||||||
- /cloudbroker/lb/backendServerDelete
|
|
||||||
- /cloudbroker/lb/backendServerUpdate
|
|
||||||
- /cloudbroker/lb/backendUpdate
|
|
||||||
- /cloudbroker/lb/configReset
|
|
||||||
- /cloudbroker/lb/create
|
|
||||||
- /cloudbroker/lb/delete
|
|
||||||
- /cloudbroker/lb/disable
|
|
||||||
- /cloudbroker/lb/enable
|
|
||||||
- /cloudbroker/lb/frontendBind
|
|
||||||
- /cloudbroker/lb/frontendBindDelete
|
|
||||||
- /cloudbroker/lb/frontendBindingUpdate
|
|
||||||
- /cloudbroker/lb/frontendCreate
|
|
||||||
- /cloudbroker/lb/frontendDelete
|
|
||||||
- /cloudbroker/lb/get
|
|
||||||
- /cloudbroker/lb/list
|
|
||||||
- /cloudbroker/lb/makeHighlyAvailable
|
|
||||||
- /cloudbroker/lb/migrateToZone
|
|
||||||
- /cloudbroker/lb/restart
|
|
||||||
- /cloudbroker/lb/restore
|
|
||||||
- /cloudbroker/lb/start
|
|
||||||
- /cloudbroker/lb/stop
|
|
||||||
- /cloudbroker/lb/update
|
|
||||||
- /cloudbroker/lb/updateSysctlParams
|
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
@@ -1393,55 +1041,14 @@ class RequestException(Exception):
|
|||||||
|
|
||||||
- /cloudbroker/node/add_ssh_identity
|
- /cloudbroker/node/add_ssh_identity
|
||||||
- /cloudbroker/node/get_ssh_identity
|
- /cloudbroker/node/get_ssh_identity
|
||||||
- /cloudbroker/node/list
|
|
||||||
- /cloudbroker/node/update_description
|
- /cloudbroker/node/update_description
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
<details><summary>prometheus</summary>
|
|
||||||
|
|
||||||
- /cloudbroker/prometheus/computes
|
|
||||||
|
|
||||||
</details>
|
|
||||||
|
|
||||||
<details><summary>resmon</summary>
|
|
||||||
|
|
||||||
- /cloudbroker/resmon/getByComputes
|
|
||||||
|
|
||||||
</details>
|
|
||||||
|
|
||||||
<details><summary>rg</summary>
|
<details><summary>rg</summary>
|
||||||
|
|
||||||
- /cloudbroker/rg/add_acl_access
|
|
||||||
- /cloudbroker/rg/add_storage_policy
|
- /cloudbroker/rg/add_storage_policy
|
||||||
- /cloudbroker/rg/affinityGroupComputes
|
|
||||||
- /cloudbroker/rg/affinityGroupsGet
|
|
||||||
- /cloudbroker/rg/affinityGroupsList
|
|
||||||
- /cloudbroker/rg/create
|
|
||||||
- /cloudbroker/rg/del_acl_access
|
|
||||||
- /cloudbroker/rg/del_storage_policy
|
- /cloudbroker/rg/del_storage_policy
|
||||||
- /cloudbroker/rg/delete
|
|
||||||
- /cloudbroker/rg/disable
|
|
||||||
- /cloudbroker/rg/enable
|
|
||||||
- /cloudbroker/rg/get
|
|
||||||
- /cloudbroker/rg/get_acl_access
|
|
||||||
- /cloudbroker/rg/getResourceConsumption
|
|
||||||
- /cloudbroker/rg/list
|
|
||||||
- /cloudbroker/rg/listDeleted
|
|
||||||
- /cloudbroker/rg/listResourceConsumption
|
|
||||||
- /cloudbroker/rg/massDelete
|
|
||||||
- /cloudbroker/rg/massDisable
|
|
||||||
- /cloudbroker/rg/massEnable
|
|
||||||
- /cloudbroker/rg/removeDefNet
|
|
||||||
- /cloudbroker/rg/restore
|
|
||||||
- /cloudbroker/rg/setCpuAllocationParameter
|
|
||||||
- /cloudbroker/rg/setCpuAllocationRatio
|
|
||||||
- /cloudbroker/rg/setDefNet
|
|
||||||
- /cloudbroker/rg/update
|
|
||||||
- /cloudbroker/rg/update_acl_access
|
|
||||||
- /cloudbroker/rg/updateComputeFeatures
|
|
||||||
- /cloudbroker/rg/updateResourceTypes
|
|
||||||
- /cloudbroker/rg/usage
|
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
@@ -1457,13 +1064,6 @@ class RequestException(Exception):
|
|||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
<details><summary>sep</summary>
|
|
||||||
|
|
||||||
- /cloudbroker/sep/consumption
|
|
||||||
- /cloudbroker/sep/list
|
|
||||||
|
|
||||||
</details>
|
|
||||||
|
|
||||||
<details><summary>storage_policy</summary>
|
<details><summary>storage_policy</summary>
|
||||||
|
|
||||||
- /cloudbroker/storage_policy/add_pool
|
- /cloudbroker/storage_policy/add_pool
|
||||||
@@ -1478,20 +1078,6 @@ class RequestException(Exception):
|
|||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
<details><summary>trunk</summary>
|
|
||||||
|
|
||||||
- /cloudbroker/trunk/access_grant
|
|
||||||
- /cloudbroker/trunk/access_revoke
|
|
||||||
- /cloudbroker/trunk/create
|
|
||||||
- /cloudbroker/trunk/destroy
|
|
||||||
- /cloudbroker/trunk/disable
|
|
||||||
- /cloudbroker/trunk/enable
|
|
||||||
- /cloudbroker/trunk/get
|
|
||||||
- /cloudbroker/trunk/list
|
|
||||||
- /cloudbroker/trunk/update
|
|
||||||
|
|
||||||
</details>
|
|
||||||
|
|
||||||
<details><summary>user</summary>
|
<details><summary>user</summary>
|
||||||
|
|
||||||
- /cloudbroker/user/block
|
- /cloudbroker/user/block
|
||||||
@@ -1502,52 +1088,8 @@ class RequestException(Exception):
|
|||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
<details><summary>vgpu</summary>
|
|
||||||
|
|
||||||
- /cloudbroker/vgpu/create
|
|
||||||
- /cloudbroker/vgpu/destroy
|
|
||||||
- /cloudbroker/vgpu/edit
|
|
||||||
- /cloudbroker/vgpu/list
|
|
||||||
|
|
||||||
</details>
|
|
||||||
|
|
||||||
<details><summary>vins</summary>
|
<details><summary>vins</summary>
|
||||||
|
|
||||||
- /cloudbroker/vins/createInAccount
|
|
||||||
- /cloudbroker/vins/createInRG
|
|
||||||
- /cloudbroker/vins/defaultQosUpdate
|
|
||||||
- /cloudbroker/vins/delete
|
|
||||||
- /cloudbroker/vins/disable
|
|
||||||
- /cloudbroker/vins/dnsApply
|
|
||||||
- /cloudbroker/vins/enable
|
|
||||||
- /cloudbroker/vins/extNetConnect
|
|
||||||
- /cloudbroker/vins/extNetDisconnect
|
|
||||||
- /cloudbroker/vins/extNetList
|
|
||||||
- /cloudbroker/vins/get
|
|
||||||
- /cloudbroker/vins/ipList
|
|
||||||
- /cloudbroker/vins/ipRelease
|
|
||||||
- /cloudbroker/vins/ipReserve
|
|
||||||
- /cloudbroker/vins/list
|
|
||||||
- /cloudbroker/vins/listDeleted
|
|
||||||
- /cloudbroker/vins/massDelete
|
|
||||||
- /cloudbroker/vins/massDisable
|
|
||||||
- /cloudbroker/vins/massEnable
|
|
||||||
- /cloudbroker/vins/migrateToZone
|
|
||||||
- /cloudbroker/vins/natRuleAdd
|
|
||||||
- /cloudbroker/vins/natRuleDel
|
|
||||||
- /cloudbroker/vins/natRuleList
|
|
||||||
- /cloudbroker/vins/netQos
|
|
||||||
- /cloudbroker/vins/raiseDown
|
|
||||||
- /cloudbroker/vins/restore
|
|
||||||
- /cloudbroker/vins/search
|
|
||||||
- /cloudbroker/vins/staticRouteAdd
|
|
||||||
- /cloudbroker/vins/staticRouteDel
|
|
||||||
- /cloudbroker/vins/staticRouteList
|
|
||||||
- /cloudbroker/vins/vnfdevRedeploy
|
|
||||||
- /cloudbroker/vins/vnfdevReset
|
|
||||||
- /cloudbroker/vins/vnfdevRestart
|
|
||||||
- /cloudbroker/vins/vnfdevStart
|
|
||||||
- /cloudbroker/vins/vnfdevStop
|
|
||||||
- /cloudbroker/vins/update
|
- /cloudbroker/vins/update
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
@@ -1558,26 +1100,6 @@ class RequestException(Exception):
|
|||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
<details><summary>zone</summary>
|
|
||||||
|
|
||||||
- /cloudbroker/zone/add_cpu_alignment_profile
|
|
||||||
- /cloudbroker/zone/addNode
|
|
||||||
- /cloudbroker/zone/create
|
|
||||||
- /cloudbroker/zone/delete
|
|
||||||
- /cloudbroker/zone/delete_cpu_alignment_profile
|
|
||||||
- /cloudbroker/zone/delNode
|
|
||||||
- /cloudbroker/zone/get
|
|
||||||
- /cloudbroker/zone/get_cpu_alignment_profile
|
|
||||||
- /cloudbroker/zone/list
|
|
||||||
- /cloudbroker/zone/list_cpu_alignment_profile
|
|
||||||
- /cloudbroker/zone/node_autostart
|
|
||||||
- /cloudbroker/zone/set_resources_limit
|
|
||||||
- /cloudbroker/zone/test_cpu_alignment_profile
|
|
||||||
- /cloudbroker/zone/update
|
|
||||||
- /cloudbroker/zone/update_cpu_alignment_profile
|
|
||||||
|
|
||||||
</details>
|
|
||||||
|
|
||||||
#### System
|
#### System
|
||||||
|
|
||||||
<details><summary>info</summary>
|
<details><summary>info</summary>
|
||||||
|
|||||||
+2
-2
@@ -5,7 +5,7 @@ authors = [
|
|||||||
{name = "Vladislav Nesterov"},
|
{name = "Vladislav Nesterov"},
|
||||||
{name = "Stanislav Karimov"},
|
{name = "Stanislav Karimov"},
|
||||||
]
|
]
|
||||||
version = "2.1.1"
|
version = "1.5.5"
|
||||||
|
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
|
||||||
@@ -13,7 +13,7 @@ requires-python = "==3.12.*"
|
|||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"requests==2.32.3",
|
"requests==2.32.3",
|
||||||
"pydantic==2.13.5",
|
"pydantic==2.10.5",
|
||||||
"pyyaml==6.0.2",
|
"pyyaml==6.0.2",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
@@ -13,16 +13,6 @@ class AccessType(str, _AutoNameEnum):
|
|||||||
R = _enum_auto()
|
R = _enum_auto()
|
||||||
|
|
||||||
|
|
||||||
class ACLType(str, _AutoNameEnum):
|
|
||||||
U = _enum_auto()
|
|
||||||
G = _enum_auto()
|
|
||||||
|
|
||||||
|
|
||||||
class ACLStatus(str, _AutoNameEnum):
|
|
||||||
INVITED = _enum_auto()
|
|
||||||
CONFIRMED = _enum_auto()
|
|
||||||
|
|
||||||
|
|
||||||
class AffinityMode(str, _AutoNameEnum):
|
class AffinityMode(str, _AutoNameEnum):
|
||||||
ANY = _enum_auto()
|
ANY = _enum_auto()
|
||||||
EQ = _enum_auto()
|
EQ = _enum_auto()
|
||||||
@@ -39,25 +29,6 @@ class AffinityTopology(str, _AutoNameEnum):
|
|||||||
NODE = 'node'
|
NODE = 'node'
|
||||||
|
|
||||||
|
|
||||||
class ComputeAffinityRuleMigrationStatus(str, _AutoNameEnum):
|
|
||||||
MIGRATED = 'migrated'
|
|
||||||
SKIPPED = 'skipped'
|
|
||||||
NOT_STARTED = 'not_started'
|
|
||||||
NOT_COMPLETED = 'not_completed'
|
|
||||||
|
|
||||||
|
|
||||||
class ComputeMigrateV2Mode(str, _AutoNameEnum):
|
|
||||||
COMPUTE = 'compute'
|
|
||||||
DISKS = 'disks'
|
|
||||||
COMPUTE_AND_DISKS = 'compute_and_disks'
|
|
||||||
|
|
||||||
|
|
||||||
class ComputeMigrateV2AbortStatus(str, _AutoNameEnum):
|
|
||||||
ACCEPTED = 'accepted'
|
|
||||||
REJECTED = 'rejected'
|
|
||||||
UNKNOWN = 'unknown'
|
|
||||||
|
|
||||||
|
|
||||||
class BootDevice(str, _AutoNameEnum):
|
class BootDevice(str, _AutoNameEnum):
|
||||||
CDROM = 'cdrom'
|
CDROM = 'cdrom'
|
||||||
HD = 'hd'
|
HD = 'hd'
|
||||||
@@ -131,32 +102,16 @@ class LockStatus(str, _AutoNameEnum):
|
|||||||
UNLOCKED = _enum_auto()
|
UNLOCKED = _enum_auto()
|
||||||
|
|
||||||
|
|
||||||
class MemoryBalloonMode(str, _AutoNameEnum):
|
|
||||||
AUTO = 'auto'
|
|
||||||
LEGACY = 'legacy'
|
|
||||||
NONE = 'none'
|
|
||||||
|
|
||||||
|
|
||||||
class VMFeature(str, _AutoNameEnum):
|
class VMFeature(str, _AutoNameEnum):
|
||||||
CHANGEMAC = 'changemac'
|
CHANGEMAC = 'changemac'
|
||||||
CPUPIN = 'cpupin'
|
CPUPIN = 'cpupin'
|
||||||
DPDK = 'dpdk'
|
DPDK = 'dpdk'
|
||||||
HUGEPAGES = 'hugepages'
|
HUGEPAGES = 'hugepages'
|
||||||
NUMA = 'numa'
|
NUMA = 'numa'
|
||||||
PCIDEVICE = 'pcidevice'
|
|
||||||
TRUNK = 'trunk'
|
TRUNK = 'trunk'
|
||||||
VGPU = 'vgpu'
|
|
||||||
VFNIC = 'vfnic'
|
VFNIC = 'vfnic'
|
||||||
|
|
||||||
|
|
||||||
class WatchdogAction(str, _AutoNameEnum):
|
|
||||||
RESET = 'reset'
|
|
||||||
SHUTDOWN = 'shutdown'
|
|
||||||
POWEROFF = 'poweroff'
|
|
||||||
PAUSE = 'pause'
|
|
||||||
NONE = 'none'
|
|
||||||
|
|
||||||
|
|
||||||
class RGDefaultNetTypeForSet(str, _AutoNameEnum):
|
class RGDefaultNetTypeForSet(str, _AutoNameEnum):
|
||||||
PRIVATE = _enum_auto()
|
PRIVATE = _enum_auto()
|
||||||
PUBLIC = _enum_auto()
|
PUBLIC = _enum_auto()
|
||||||
@@ -265,7 +220,6 @@ class ImageType(str, _AutoNameEnum):
|
|||||||
UNKNOWN = 'unknown'
|
UNKNOWN = 'unknown'
|
||||||
VIRTUAL = 'virtual'
|
VIRTUAL = 'virtual'
|
||||||
WINDOWS = 'windows'
|
WINDOWS = 'windows'
|
||||||
MEMORY_DUMP = 'memorydump'
|
|
||||||
|
|
||||||
|
|
||||||
class NetIfaceNamingTemplate(str, _AutoNameEnum):
|
class NetIfaceNamingTemplate(str, _AutoNameEnum):
|
||||||
@@ -401,17 +355,6 @@ class SEPType(str, _AutoNameEnum):
|
|||||||
DORADO = _enum_auto()
|
DORADO = _enum_auto()
|
||||||
SHARED = _enum_auto()
|
SHARED = _enum_auto()
|
||||||
USTOR = _enum_auto()
|
USTOR = _enum_auto()
|
||||||
AERODISK = _enum_auto()
|
|
||||||
|
|
||||||
|
|
||||||
class ImageListSEPType(str, _AutoNameEnum):
|
|
||||||
HITACHI = _enum_auto()
|
|
||||||
DES = _enum_auto()
|
|
||||||
LOCAL = _enum_auto()
|
|
||||||
TATLIN = _enum_auto()
|
|
||||||
DORADO = _enum_auto()
|
|
||||||
SHARED = _enum_auto()
|
|
||||||
USTOR = _enum_auto()
|
|
||||||
|
|
||||||
|
|
||||||
class ExtNetStatus(str, _AutoNameEnum):
|
class ExtNetStatus(str, _AutoNameEnum):
|
||||||
@@ -451,11 +394,6 @@ class PoolDiskType(str, _AutoNameEnum):
|
|||||||
ANY = _enum_auto()
|
ANY = _enum_auto()
|
||||||
|
|
||||||
|
|
||||||
class TatlinPoolType(str, _AutoNameEnum):
|
|
||||||
DIRECT = 'direct'
|
|
||||||
INDIRECT = 'indirect'
|
|
||||||
|
|
||||||
|
|
||||||
class CountChangeMode(str, _AutoNameEnum):
|
class CountChangeMode(str, _AutoNameEnum):
|
||||||
ABSOLUTE = _enum_auto()
|
ABSOLUTE = _enum_auto()
|
||||||
RELATIVE = _enum_auto()
|
RELATIVE = _enum_auto()
|
||||||
@@ -533,13 +471,6 @@ class K8sNetworkPlugin(str, _AutoNameEnum):
|
|||||||
WEAVENET = 'weavenet'
|
WEAVENET = 'weavenet'
|
||||||
|
|
||||||
|
|
||||||
class NetworkMode(str, _AutoNameEnum):
|
|
||||||
OVS = 'ovs'
|
|
||||||
BRIDGE = 'bridge'
|
|
||||||
DPDK = 'dpdk'
|
|
||||||
SDN = 'sdn'
|
|
||||||
|
|
||||||
|
|
||||||
class K8CIStatus(str, _AutoNameEnum):
|
class K8CIStatus(str, _AutoNameEnum):
|
||||||
CREATED = _enum_auto()
|
CREATED = _enum_auto()
|
||||||
DELETED = _enum_auto()
|
DELETED = _enum_auto()
|
||||||
@@ -595,20 +526,6 @@ class ZoneStatus(str, _AutoNameEnum):
|
|||||||
DESTROYED = _enum_auto()
|
DESTROYED = _enum_auto()
|
||||||
|
|
||||||
|
|
||||||
class LoggingLevel(str, _AutoNameEnum):
|
|
||||||
CRITICAL = _enum_auto()
|
|
||||||
ERROR = _enum_auto()
|
|
||||||
WARNING = _enum_auto()
|
|
||||||
NOTICE = _enum_auto()
|
|
||||||
INFO = _enum_auto()
|
|
||||||
DEBUG = _enum_auto()
|
|
||||||
|
|
||||||
|
|
||||||
class SDRSMode(str, _AutoNameEnum):
|
|
||||||
AUTO = 'auto'
|
|
||||||
MANUAL = 'manual'
|
|
||||||
|
|
||||||
|
|
||||||
class TrafficDirection(str, _AutoNameEnum):
|
class TrafficDirection(str, _AutoNameEnum):
|
||||||
INBOUND = 'inbound'
|
INBOUND = 'inbound'
|
||||||
OUTBOUND = 'outbound'
|
OUTBOUND = 'outbound'
|
||||||
@@ -641,33 +558,6 @@ class StoragePolicyStatus(str, _AutoNameEnum):
|
|||||||
ENABLED = _enum_auto()
|
ENABLED = _enum_auto()
|
||||||
|
|
||||||
|
|
||||||
class ReplicationType(str, _AutoNameEnum):
|
|
||||||
SYNC = 'sync'
|
|
||||||
ASYNC = 'async'
|
|
||||||
|
|
||||||
|
|
||||||
class ReplicationProfileScheduleType(str, _AutoNameEnum):
|
|
||||||
INTERVAL = 'interval'
|
|
||||||
CALENDAR = 'calendar'
|
|
||||||
MANUAL_SYNC = 'manualSync'
|
|
||||||
|
|
||||||
|
|
||||||
class NetworkQosPolicyStatus(str, _AutoNameEnum):
|
|
||||||
DESTROYED = _enum_auto()
|
|
||||||
DISABLED = _enum_auto()
|
|
||||||
ENABLED = _enum_auto()
|
|
||||||
|
|
||||||
|
|
||||||
class NetworkQosPolicyRuleDirection(str, _AutoNameEnum):
|
|
||||||
OUTBOUND = 'outbound'
|
|
||||||
|
|
||||||
|
|
||||||
class NetworkQosPolicyRuleProtocol(str, _AutoNameEnum):
|
|
||||||
ICMP = 'icmp'
|
|
||||||
TCP = 'tcp'
|
|
||||||
UDP = 'udp'
|
|
||||||
|
|
||||||
|
|
||||||
class JobStatus(str, _AutoNameEnum):
|
class JobStatus(str, _AutoNameEnum):
|
||||||
ABORTED = _enum_auto()
|
ABORTED = _enum_auto()
|
||||||
CLEANUPED = _enum_auto()
|
CLEANUPED = _enum_auto()
|
||||||
@@ -687,7 +577,13 @@ class PGPUMode(str, _AutoNameEnum):
|
|||||||
|
|
||||||
|
|
||||||
class VGPUStatus(str, _AutoNameEnum):
|
class VGPUStatus(str, _AutoNameEnum):
|
||||||
|
ALLOCATED = _enum_auto()
|
||||||
|
ALLOCATING = _enum_auto()
|
||||||
|
CLAIMED = _enum_auto()
|
||||||
|
CLAIMING = _enum_auto()
|
||||||
CREATED = _enum_auto()
|
CREATED = _enum_auto()
|
||||||
|
DEALLOCATED = _enum_auto()
|
||||||
|
DEALLOCATING = _enum_auto()
|
||||||
DESTROYED = _enum_auto()
|
DESTROYED = _enum_auto()
|
||||||
ERROR = _enum_auto()
|
ERROR = _enum_auto()
|
||||||
|
|
||||||
@@ -747,38 +643,3 @@ class DiskProvisionType(str, _AutoNameEnum):
|
|||||||
class DRSDXSSOType(str, _AutoNameEnum):
|
class DRSDXSSOType(str, _AutoNameEnum):
|
||||||
BVS = 'bvs'
|
BVS = 'bvs'
|
||||||
DECS3O = 'decs3o'
|
DECS3O = 'decs3o'
|
||||||
NONE = ''
|
|
||||||
|
|
||||||
|
|
||||||
class ClockSyncMode(str, _AutoNameEnum):
|
|
||||||
DEFAULT = 'default'
|
|
||||||
LINUX = 'linux'
|
|
||||||
WINDOWS = 'windows'
|
|
||||||
NONE = 'none'
|
|
||||||
|
|
||||||
|
|
||||||
class DiskDiscard(str, _AutoNameEnum):
|
|
||||||
UNMAP = 'unmap'
|
|
||||||
IGNORE = 'ignore'
|
|
||||||
|
|
||||||
|
|
||||||
class VMFolderStatus(str, _AutoNameEnum):
|
|
||||||
CREATED = _enum_auto()
|
|
||||||
DESTROYED = _enum_auto()
|
|
||||||
|
|
||||||
|
|
||||||
class PrometheusMetricID(str, _AutoNameEnum):
|
|
||||||
COMPUTE_CPU_LOAD = 'computeCPUload'
|
|
||||||
COMPUTE_MEMORY_USAGE = 'computeMemoryUsage'
|
|
||||||
COMPUTE_MEMORY_USABLE = 'computeMemoryUsable'
|
|
||||||
COMPUTE_MEMORY_UNUSED = 'computeMemoryUnused'
|
|
||||||
COMPUTE_MEMORY_USED = 'computeMemoryUsed'
|
|
||||||
COMPUTE_MEMORY_AVAILABLE = 'computeMemoryAvailable'
|
|
||||||
COMPUTE_READ_BYTES = 'computeReadBytes'
|
|
||||||
COMPUTE_READ_REQUESTS = 'computeReadRequests'
|
|
||||||
COMPUTE_RECEIVE_BYTES = 'computeReceiveBytes'
|
|
||||||
COMPUTE_TRANSMIT_BYTES = 'computeTransmitBytes'
|
|
||||||
COMPUTE_TRANSMIT_PACKETS = 'computeTransmitPackets'
|
|
||||||
COMPUTE_WRITE_BYTES = 'computeWriteBytes'
|
|
||||||
COMPUTE_WRITE_REQUESTS = 'computeWriteRequests'
|
|
||||||
COMPUTE_RECEIVE_PACKETS = 'computeReceivePackets'
|
|
||||||
@@ -11,7 +11,6 @@ class DiskAPIParamsNM(_base.BaseAPIParamsNestedModel):
|
|||||||
image_id: None | int = None
|
image_id: None | int = None
|
||||||
sep_id: None | int = None
|
sep_id: None | int = None
|
||||||
sep_pool_name: None | str = None
|
sep_pool_name: None | str = None
|
||||||
read_only: bool = False
|
|
||||||
|
|
||||||
|
|
||||||
class InterfaceAPIParamsNM(_base.BaseAPIParamsNestedModel):
|
class InterfaceAPIParamsNM(_base.BaseAPIParamsNestedModel):
|
||||||
@@ -26,63 +25,18 @@ class InterfaceAPIParamsNM(_base.BaseAPIParamsNestedModel):
|
|||||||
sdn_object_group_id: None | str = None
|
sdn_object_group_id: None | str = None
|
||||||
sdn_logical_port_display_name: None | str = None
|
sdn_logical_port_display_name: None | str = None
|
||||||
sdn_logical_port_description: None | str = None
|
sdn_logical_port_description: None | str = None
|
||||||
qos_policies: list[int] | None = None
|
|
||||||
|
|
||||||
ip_addr: None | str = None
|
ip_addr: None | str = None
|
||||||
mac: None | str = None
|
mac: None | str = None
|
||||||
mtu: None | int = None
|
mtu: None | int = None
|
||||||
|
|
||||||
|
|
||||||
class CloudbrokerKvmx86CreateDataDiskAPIParamsNM(
|
|
||||||
_base.BaseAPIParamsNestedModel,
|
|
||||||
):
|
|
||||||
disk_name: str
|
|
||||||
size: int
|
|
||||||
storage_policy_id: int
|
|
||||||
sep_id: int | None = None
|
|
||||||
pool: str | None = None
|
|
||||||
desc: str | None = None
|
|
||||||
image_id: int | None = None
|
|
||||||
cache: _enums.DiskCacheMode | None = None
|
|
||||||
discard: _enums.DiskDiscard | None = None
|
|
||||||
read_only: bool = False
|
|
||||||
|
|
||||||
|
|
||||||
class CloudbrokerKvmx86CreateInterfaceAPIParamsNM(
|
|
||||||
_base.BaseAPIParamsNestedModel,
|
|
||||||
):
|
|
||||||
net_type: _enums.NetType
|
|
||||||
net_id: int
|
|
||||||
ip_addr: str | None = None
|
|
||||||
net_mask: int | None = None
|
|
||||||
mtu: int | None = None
|
|
||||||
mac: str | None = None
|
|
||||||
sdn_interface_id: str | None = None
|
|
||||||
sdn_segment_id: str | None = None
|
|
||||||
sdn_object_group_ids: list[str] | None = None
|
|
||||||
sdn_logical_port_display_name: str | None = None
|
|
||||||
sdn_logical_port_description: str | None = None
|
|
||||||
enable_default_gateway: bool = True
|
|
||||||
security_groups: list[int] | None = None
|
|
||||||
enable_secgroups: bool = False
|
|
||||||
enabled: bool = True
|
|
||||||
qos_policies: list[int] | None = None
|
|
||||||
|
|
||||||
|
|
||||||
class RouteAPIParamsNM(_base.BaseAPIParamsNestedModel):
|
class RouteAPIParamsNM(_base.BaseAPIParamsNestedModel):
|
||||||
dst_net_ip: str
|
dst_net_ip: str
|
||||||
dst_net_mask: str
|
dst_net_mask: str
|
||||||
gateway: str
|
gateway: str
|
||||||
|
|
||||||
|
|
||||||
class CloudbrokerVinsCreateRouteAPIParamsNM(
|
|
||||||
_base.BaseAPIParamsNestedModel,
|
|
||||||
):
|
|
||||||
destination: str
|
|
||||||
netmask: str
|
|
||||||
gateway: str
|
|
||||||
|
|
||||||
|
|
||||||
class StoragePolicyQuotasAPIParamsNM(_base.BaseAPIParamsNestedModel):
|
class StoragePolicyQuotasAPIParamsNM(_base.BaseAPIParamsNestedModel):
|
||||||
id: int
|
id: int
|
||||||
storage_size_gb: int
|
storage_size_gb: int
|
||||||
|
|||||||
File diff suppressed because it is too large.
Load diff
@@ -13,7 +13,6 @@ from .k8s import *
|
|||||||
from .kvmx86 import *
|
from .kvmx86 import *
|
||||||
from .lb import *
|
from .lb import *
|
||||||
from .locations import *
|
from .locations import *
|
||||||
from .network_qos_policy import *
|
|
||||||
from .pcidevice import *
|
from .pcidevice import *
|
||||||
from .rg import *
|
from .rg import *
|
||||||
from .security_group import *
|
from .security_group import *
|
||||||
@@ -25,7 +24,6 @@ from .user import *
|
|||||||
from .vfpool import *
|
from .vfpool import *
|
||||||
from .vgpu import *
|
from .vgpu import *
|
||||||
from .vins import *
|
from .vins import *
|
||||||
from .vmfolder import *
|
|
||||||
from .zone import *
|
from .zone import *
|
||||||
|
|
||||||
|
|
||||||
@@ -44,7 +42,6 @@ class CloudapiAPI(_base.BaseAPI):
|
|||||||
kvmx86: CloudapiKvmx86API
|
kvmx86: CloudapiKvmx86API
|
||||||
lb: CloudapiLbAPI
|
lb: CloudapiLbAPI
|
||||||
locations: CloudapiLocationsAPI
|
locations: CloudapiLocationsAPI
|
||||||
network_qos_policy: CloudapiNetworkQosPolicyAPI
|
|
||||||
pcidevice: CloudapiPcideviceAPI
|
pcidevice: CloudapiPcideviceAPI
|
||||||
rg: CloudapiRgAPI
|
rg: CloudapiRgAPI
|
||||||
security_group: CloudapiSecurityGroupAPI
|
security_group: CloudapiSecurityGroupAPI
|
||||||
@@ -56,5 +53,4 @@ class CloudapiAPI(_base.BaseAPI):
|
|||||||
vfpool: CloudapiVfpoolAPI
|
vfpool: CloudapiVfpoolAPI
|
||||||
vgpu: CloudapiVgpuAPI
|
vgpu: CloudapiVgpuAPI
|
||||||
vins: CloudapiVinsAPI
|
vins: CloudapiVinsAPI
|
||||||
vmfolder: CloudapiVmfolderAPI
|
|
||||||
zone: CloudapiZoneAPI
|
zone: CloudapiZoneAPI
|
||||||
@@ -1,30 +1,31 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
from .add_acl_access import *
|
|
||||||
from .add_user import *
|
from .add_user import *
|
||||||
from .del_acl_access import *
|
from .delete import *
|
||||||
from .delete_user import *
|
from .delete_user import *
|
||||||
|
from .disable import *
|
||||||
|
from .enable import *
|
||||||
from .get import *
|
from .get import *
|
||||||
from .get_resource_consumption import *
|
from .get_resource_consumption import *
|
||||||
from .list import *
|
from .list import *
|
||||||
from .list_deleted import *
|
from .list_deleted import *
|
||||||
from .restore import *
|
from .restore import *
|
||||||
from .update import *
|
from .update import *
|
||||||
from .update_acl_access import *
|
|
||||||
from .update_user import *
|
from .update_user import *
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAccountAPI(
|
class CloudapiAccountAPI(
|
||||||
_base.BaseAPI,
|
_base.BaseAPI,
|
||||||
|
CloudapiAccountAddUserProtocol,
|
||||||
|
CloudapiAccountDeleteProtocol,
|
||||||
|
CloudapiAccountDeleteUserProtocol,
|
||||||
|
CloudapiAccountDisableProtocol,
|
||||||
|
CloudapiAccountEnableProtocol,
|
||||||
|
CloudapiAccountGetProtocol,
|
||||||
|
CloudapiAccountGetResourceConsumptionProtocol,
|
||||||
|
CloudapiAccountListDeletedProtocol,
|
||||||
|
CloudapiAccountListProtocol,
|
||||||
|
CloudapiAccountRestoreProtocol,
|
||||||
|
CloudapiAccountUpdateProtocol,
|
||||||
|
CloudapiAccountUpdateUserProtocol,
|
||||||
):
|
):
|
||||||
add_acl_access: CloudapiAccountAddAclAccessImpl
|
pass
|
||||||
add_user: CloudapiAccountAddUserImpl
|
|
||||||
del_acl_access: CloudapiAccountDelAclAccessImpl
|
|
||||||
restore: CloudapiAccountRestoreImpl
|
|
||||||
delete_user: CloudapiAccountDeleteUserImpl
|
|
||||||
list: CloudapiAccountListImpl
|
|
||||||
update_user: CloudapiAccountUpdateUserImpl
|
|
||||||
get: CloudapiAccountGetImpl
|
|
||||||
get_resource_consumption: CloudapiAccountGetResourceConsumptionImpl
|
|
||||||
update: CloudapiAccountUpdateImpl
|
|
||||||
update_acl_access: CloudapiAccountUpdateAclAccessImpl
|
|
||||||
list_deleted: CloudapiAccountListDeletedImpl
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
import dynamix_sdk.base as _base
|
|
||||||
import dynamix_sdk.api._nested as _nested
|
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAccountAddAclAccessImpl(_base.APIFunctionImpl):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
self,
|
|
||||||
*,
|
|
||||||
id: int,
|
|
||||||
accesstype: _nested.AccessTypeForSet,
|
|
||||||
apiaccesses: list[int] | None = None,
|
|
||||||
usernames: list[str] | None = None,
|
|
||||||
async_mode: bool = False,
|
|
||||||
) -> bool | str:
|
|
||||||
raise NotImplementedError
|
|
||||||
@@ -2,15 +2,16 @@ import dynamix_sdk.base as _base
|
|||||||
import dynamix_sdk.api._nested as _nested
|
import dynamix_sdk.api._nested as _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAccountAddUserImpl(_base.APIFunctionImpl):
|
class CloudapiAccountAddUserResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiAccountAddUserProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def add_user(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
account_id: int,
|
account_id: int,
|
||||||
access_type: _nested.AccessTypeForSet,
|
access_type: _nested.AccessTypeForSet,
|
||||||
user_name: str,
|
user_name: str,
|
||||||
async_mode: bool = False,
|
) -> CloudapiAccountAddUserResultBool:
|
||||||
) -> bool | str:
|
...
|
||||||
raise NotImplementedError
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
import dynamix_sdk.base as _base
|
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAccountDelAclAccessImpl(_base.APIFunctionImpl):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
self,
|
|
||||||
*,
|
|
||||||
id: int,
|
|
||||||
apiaccesses: list[int] | None = None,
|
|
||||||
usernames: list[str] | None = None,
|
|
||||||
async_mode: bool = False,
|
|
||||||
) -> bool | str:
|
|
||||||
raise NotImplementedError
|
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class CloudapiAccountDeleteResultStr(_base.BaseAPIResultStr):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class CloudapiAccountDeleteProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def delete(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
account_id: int,
|
||||||
|
permanently: bool = False,
|
||||||
|
) -> CloudapiAccountDeleteResultStr:
|
||||||
|
...
|
||||||
@@ -1,14 +1,15 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAccountDeleteUserImpl(_base.APIFunctionImpl):
|
class CloudapiAccountDeleteUserResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiAccountDeleteUserProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def delete_user(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
account_id: int,
|
account_id: int,
|
||||||
user_name: str,
|
user_name: str,
|
||||||
async_mode: bool = False,
|
) -> CloudapiAccountDeleteUserResultBool:
|
||||||
) -> bool | str:
|
...
|
||||||
raise NotImplementedError
|
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class CloudapiAccountDisableResultBool(_base.BaseAPIResultBool):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class CloudapiAccountDisableProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def disable(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
account_id: int,
|
||||||
|
) -> CloudapiAccountDisableResultBool:
|
||||||
|
...
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class CloudapiAccountEnableResultBool(_base.BaseAPIResultBool):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class CloudapiAccountEnableProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def enable(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
account_id: int,
|
||||||
|
) -> CloudapiAccountEnableResultBool:
|
||||||
|
...
|
||||||
@@ -2,7 +2,7 @@ import dynamix_sdk.base as _base
|
|||||||
import dynamix_sdk.api._nested as _nested
|
import dynamix_sdk.api._nested as _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAccountGetResultModel(_base.ResultModel):
|
class CloudapiAccountGetResultModel(_base.BaseAPIResultModel):
|
||||||
acc_lvl_vins_ids: list[int]
|
acc_lvl_vins_ids: list[int]
|
||||||
acl: list[_nested.AccessAPIResultNM]
|
acl: list[_nested.AccessAPIResultNM]
|
||||||
company_url: str
|
company_url: str
|
||||||
@@ -52,12 +52,10 @@ class CloudapiAccountGetResultModel(_base.ResultModel):
|
|||||||
return self._get_datetime_from_timestamp(self.updated_timestamp)
|
return self._get_datetime_from_timestamp(self.updated_timestamp)
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAccountGetImpl(_base.APIFunctionImpl):
|
class CloudapiAccountGetProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
http_method = _base.HTTPMethod.POST
|
def get(
|
||||||
|
|
||||||
def __call__(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
account_id: int,
|
account_id: int,
|
||||||
) -> CloudapiAccountGetResultModel:
|
) -> CloudapiAccountGetResultModel:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -3,7 +3,7 @@ import dynamix_sdk.api._nested as _nested
|
|||||||
|
|
||||||
|
|
||||||
class CloudapiAccountGetResourceConsumptionResultModel(
|
class CloudapiAccountGetResourceConsumptionResultModel(
|
||||||
_base.ResultModel,
|
_base.BaseAPIResultModel,
|
||||||
):
|
):
|
||||||
id: int
|
id: int
|
||||||
consumed: _nested.ResourceCountersAPIResultNM
|
consumed: _nested.ResourceCountersAPIResultNM
|
||||||
@@ -11,14 +11,11 @@ class CloudapiAccountGetResourceConsumptionResultModel(
|
|||||||
quotas: _nested.TenantQuotasForResourceConsumptionAPIResultNM
|
quotas: _nested.TenantQuotasForResourceConsumptionAPIResultNM
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAccountGetResourceConsumptionImpl(
|
class CloudapiAccountGetResourceConsumptionProtocol(
|
||||||
_base.APIFunctionImpl,
|
_base.BasePostAPIFunctionProtocol,
|
||||||
):
|
):
|
||||||
http_method = _base.HTTPMethod.POST
|
def get_resource_consumption(
|
||||||
|
|
||||||
def __call__(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
account_id: int,
|
account_id: int,
|
||||||
) -> CloudapiAccountGetResourceConsumptionResultModel:
|
) -> CloudapiAccountGetResourceConsumptionResultModel: ...
|
||||||
raise NotImplementedError
|
|
||||||
@@ -2,24 +2,22 @@ import dynamix_sdk.base as _base
|
|||||||
import dynamix_sdk.api._nested as _nested
|
import dynamix_sdk.api._nested as _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAccountListResultModel(_base.ResultModel):
|
class CloudapiAccountListResultModel(_base.BaseAPIResultModel):
|
||||||
data: list[_nested.AccountForCAAPIResultNM]
|
data: list[_nested.AccountForCAAPIResultNM]
|
||||||
entry_count: int
|
entry_count: int
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAccountListImpl(_base.APIFunctionImpl):
|
class CloudapiAccountListProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
http_method = _base.HTTPMethod.POST
|
def list(
|
||||||
|
|
||||||
def __call__(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
access_type: None | _nested.AccessType = None,
|
access_type: None | _nested.AccessType = None,
|
||||||
id: None | int = None,
|
id: None | int = None,
|
||||||
name: None | str = None,
|
name: None | str = None,
|
||||||
zone_id: None | int = None,
|
zone_id: None | int = None,
|
||||||
page_number: int = 1,
|
page_number: None | int = None,
|
||||||
page_size: int = 100,
|
page_size: None | int = None,
|
||||||
sort_by: None | str = None,
|
sort_by: None | str = None,
|
||||||
status: None | _nested.AccountStatus = None,
|
status: None | _nested.AccountStatus = None,
|
||||||
) -> CloudapiAccountListResultModel:
|
) -> CloudapiAccountListResultModel:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -2,22 +2,20 @@ import dynamix_sdk.base as _base
|
|||||||
import dynamix_sdk.api._nested as _nested
|
import dynamix_sdk.api._nested as _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAccountListDeletedResultModel(_base.ResultModel):
|
class CloudapiAccountListDeletedResultModel(_base.BaseAPIResultModel):
|
||||||
data: list[_nested.AccountForCAAPIResultNM]
|
data: list[_nested.AccountForCAAPIResultNM]
|
||||||
entry_count: int
|
entry_count: int
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAccountListDeletedImpl(_base.APIFunctionImpl):
|
class CloudapiAccountListDeletedProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
http_method = _base.HTTPMethod.POST
|
def list_deleted(
|
||||||
|
|
||||||
def __call__(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
access_type: None | _nested.AccessType = None,
|
access_type: None | _nested.AccessType = None,
|
||||||
id: None | int = None,
|
id: None | int = None,
|
||||||
name: None | str = None,
|
name: None | str = None,
|
||||||
page_number: int = 1,
|
page_number: None | int = None,
|
||||||
page_size: int = 100,
|
page_size: None | int = None,
|
||||||
sort_by: None | str = None,
|
sort_by: None | str = None,
|
||||||
) -> CloudapiAccountListDeletedResultModel:
|
) -> CloudapiAccountListDeletedResultModel:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,13 +1,14 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAccountRestoreImpl(_base.APIFunctionImpl):
|
class CloudapiAccountRestoreResultStr(_base.BaseAPIResultStr):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiAccountRestoreProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def restore(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
account_id: int,
|
account_id: int,
|
||||||
async_mode: bool = True,
|
) -> CloudapiAccountRestoreResultStr:
|
||||||
) -> str:
|
...
|
||||||
raise NotImplementedError
|
|
||||||
@@ -1,10 +1,12 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAccountUpdateImpl(_base.APIFunctionImpl):
|
class CloudapiAccountUpdateResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiAccountUpdateProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def update(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
account_id: int,
|
account_id: int,
|
||||||
@@ -18,6 +20,5 @@ class CloudapiAccountUpdateImpl(_base.APIFunctionImpl):
|
|||||||
sep_pools: None | list[str] = None,
|
sep_pools: None | list[str] = None,
|
||||||
description: str | None = None,
|
description: str | None = None,
|
||||||
default_zone_id: int | None = None,
|
default_zone_id: int | None = None,
|
||||||
async_mode: bool = False,
|
) -> CloudapiAccountUpdateResultBool:
|
||||||
) -> bool | str:
|
...
|
||||||
raise NotImplementedError
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
import dynamix_sdk.base as _base
|
|
||||||
import dynamix_sdk.api._nested as _nested
|
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAccountUpdateAclAccessImpl(_base.APIFunctionImpl):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
self,
|
|
||||||
*,
|
|
||||||
id: int,
|
|
||||||
accesstype: _nested.AccessTypeForSet,
|
|
||||||
apiaccesses: list[int] | None = None,
|
|
||||||
usernames: list[str] | None = None,
|
|
||||||
async_mode: bool = False,
|
|
||||||
) -> bool | str:
|
|
||||||
raise NotImplementedError
|
|
||||||
@@ -2,15 +2,16 @@ import dynamix_sdk.base as _base
|
|||||||
import dynamix_sdk.api._nested as _nested
|
import dynamix_sdk.api._nested as _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAccountUpdateUserImpl(_base.APIFunctionImpl):
|
class CloudapiAccountUpdateUserResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiAccountUpdateUserProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def update_user(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
account_id: int,
|
account_id: int,
|
||||||
access_type: _nested.AccessTypeForSet,
|
access_type: _nested.AccessTypeForSet,
|
||||||
user_name: str,
|
user_name: str,
|
||||||
async_mode: bool = False,
|
) -> CloudapiAccountUpdateUserResultBool:
|
||||||
) -> bool | str:
|
...
|
||||||
raise NotImplementedError
|
|
||||||
@@ -5,6 +5,7 @@ from .list import *
|
|||||||
|
|
||||||
class CloudapiAuditAPI(
|
class CloudapiAuditAPI(
|
||||||
_base.BaseAPI,
|
_base.BaseAPI,
|
||||||
|
CloudapiAuditGetProtocol,
|
||||||
|
CloudapiAuditListProtocol,
|
||||||
):
|
):
|
||||||
list: CloudapiAuditListImpl
|
pass
|
||||||
get: CloudapiAuditGetImpl
|
|
||||||
@@ -3,17 +3,16 @@ import dynamix_sdk.base as _base
|
|||||||
|
|
||||||
|
|
||||||
class CloudapiAuditGetResultModel(
|
class CloudapiAuditGetResultModel(
|
||||||
|
_base.BaseAPIResultModel,
|
||||||
_nested.AuditAPIResultNM,
|
_nested.AuditAPIResultNM,
|
||||||
):
|
):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAuditGetImpl(_base.APIFunctionImpl):
|
class CloudapiAuditGetProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
http_method = _base.HTTPMethod.POST
|
def get(
|
||||||
|
|
||||||
def __call__(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
audit_guid: str,
|
audit_guid: str,
|
||||||
) -> CloudapiAuditGetResultModel:
|
) -> CloudapiAuditGetResultModel:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,18 +1,14 @@
|
|||||||
from pydantic import Field
|
|
||||||
|
|
||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
import dynamix_sdk.api._nested as _nested
|
import dynamix_sdk.api._nested as _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAuditListResultModel(_base.ResultModel):
|
class CloudapiAuditListResultModel(_base.BaseAPIResultModel):
|
||||||
data: list[_nested.AuditAPIResultNM]
|
data: list[_nested.AuditAPIResultNM]
|
||||||
entry_count: int
|
entry_count: int
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAuditListImpl(_base.APIFunctionImpl):
|
class CloudapiAuditListProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
http_method = _base.HTTPMethod.POST
|
def list(
|
||||||
|
|
||||||
def __call__(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
account_id: int | None = None,
|
account_id: int | None = None,
|
||||||
@@ -27,7 +23,6 @@ class CloudapiAuditListImpl(_base.APIFunctionImpl):
|
|||||||
min_status_code: int | None = None,
|
min_status_code: int | None = None,
|
||||||
page_number: int = 1,
|
page_number: int = 1,
|
||||||
page_size: int = 100,
|
page_size: int = 100,
|
||||||
public_session_id: str | None = None,
|
|
||||||
request_timestamp_end: int | None = None,
|
request_timestamp_end: int | None = None,
|
||||||
request_timestamp_start: int | None = None,
|
request_timestamp_start: int | None = None,
|
||||||
rg_id: int | None = None,
|
rg_id: int | None = None,
|
||||||
@@ -36,9 +31,5 @@ class CloudapiAuditListImpl(_base.APIFunctionImpl):
|
|||||||
user_name: str | None = None,
|
user_name: str | None = None,
|
||||||
vins_id: int | None = None,
|
vins_id: int | None = None,
|
||||||
vm_id: int | None = None,
|
vm_id: int | None = None,
|
||||||
disk_id: int | None = Field(
|
|
||||||
serialization_alias='disk_id', default=None,
|
|
||||||
),
|
|
||||||
vmfolder_id: int | None = None,
|
|
||||||
) -> CloudapiAuditListResultModel:
|
) -> CloudapiAuditListResultModel:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -29,30 +29,31 @@ from .stop import *
|
|||||||
|
|
||||||
class CloudapiBserviceAPI(
|
class CloudapiBserviceAPI(
|
||||||
_base.BaseAPI,
|
_base.BaseAPI,
|
||||||
|
CloudapiBserviceCreateProtocol,
|
||||||
|
CloudapiBserviceDeleteProtocol,
|
||||||
|
CloudapiBserviceDisableProtocol,
|
||||||
|
CloudapiBserviceEnableProtocol,
|
||||||
|
CloudapiBserviceGetProtocol,
|
||||||
|
CloudapiBserviceGroupAddProtocol,
|
||||||
|
CloudapiBserviceGroupComputeRemoveProtocol,
|
||||||
|
CloudapiBserviceGroupGetProtocol,
|
||||||
|
CloudapiBserviceGroupParentAddProtocol,
|
||||||
|
CloudapiBserviceGroupParentRemoveProtocol,
|
||||||
|
CloudapiBserviceGroupRemoveProtocol,
|
||||||
|
CloudapiBserviceGroupStartProtocol,
|
||||||
|
CloudapiBserviceGroupStopProtocol,
|
||||||
|
CloudapiBserviceGroupUpdateExtnetProtocol,
|
||||||
|
CloudapiBserviceGroupUpdateProtocol,
|
||||||
|
CloudapiBserviceGroupUpdateVinsProtocol,
|
||||||
|
CloudapiBserviceListDeletedProtocol,
|
||||||
|
CloudapiBserviceListProtocol,
|
||||||
|
CloudapiBserviceMigrateToZoneProtocol,
|
||||||
|
CloudapiBserviceRestoreProtocol,
|
||||||
|
CloudapiBserviceSnapshotCreateProtocol,
|
||||||
|
CloudapiBserviceSnapshotDeleteProtocol,
|
||||||
|
CloudapiBserviceSnapshotListProtocol,
|
||||||
|
CloudapiBserviceSnapshotRollbackProtocol,
|
||||||
|
CloudapiBserviceStartProtocol,
|
||||||
|
CloudapiBserviceStopProtocol,
|
||||||
):
|
):
|
||||||
group_start: CloudapiBserviceGroupStartImpl
|
pass
|
||||||
restore: CloudapiBserviceRestoreImpl
|
|
||||||
delete: CloudapiBserviceDeleteImpl
|
|
||||||
disable: CloudapiBserviceDisableImpl
|
|
||||||
group_update: CloudapiBserviceGroupUpdateImpl
|
|
||||||
snapshot_delete: CloudapiBserviceSnapshotDeleteImpl
|
|
||||||
create: CloudapiBserviceCreateImpl
|
|
||||||
stop: CloudapiBserviceStopImpl
|
|
||||||
group_update_vins: CloudapiBserviceGroupUpdateVinsImpl
|
|
||||||
list: CloudapiBserviceListImpl
|
|
||||||
group_get: CloudapiBserviceGroupGetImpl
|
|
||||||
snapshot_rollback: CloudapiBserviceSnapshotRollbackImpl
|
|
||||||
start: CloudapiBserviceStartImpl
|
|
||||||
snapshot_create: CloudapiBserviceSnapshotCreateImpl
|
|
||||||
get: CloudapiBserviceGetImpl
|
|
||||||
group_remove: CloudapiBserviceGroupRemoveImpl
|
|
||||||
snapshot_list: CloudapiBserviceSnapshotListImpl
|
|
||||||
group_add: CloudapiBserviceGroupAddImpl
|
|
||||||
migrate_to_zone: CloudapiBserviceMigrateToZoneImpl
|
|
||||||
group_parent_remove: CloudapiBserviceGroupParentRemoveImpl
|
|
||||||
list_deleted: CloudapiBserviceListDeletedImpl
|
|
||||||
group_stop: CloudapiBserviceGroupStopImpl
|
|
||||||
group_update_extnet: CloudapiBserviceGroupUpdateExtnetImpl
|
|
||||||
group_compute_remove: CloudapiBserviceGroupComputeRemoveImpl
|
|
||||||
group_parent_add: CloudapiBserviceGroupParentAddImpl
|
|
||||||
enable: CloudapiBserviceEnableImpl
|
|
||||||
@@ -1,10 +1,12 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceCreateImpl(_base.APIFunctionImpl):
|
class CloudapiBserviceCreateResultInt(_base.BaseAPIResultInt):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiBserviceCreateProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def create(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
name: str,
|
name: str,
|
||||||
@@ -12,5 +14,5 @@ class CloudapiBserviceCreateImpl(_base.APIFunctionImpl):
|
|||||||
ssh_user_name: str | None = None,
|
ssh_user_name: str | None = None,
|
||||||
ssh_public_key: str | None = None,
|
ssh_public_key: str | None = None,
|
||||||
zone_id: int | None = None,
|
zone_id: int | None = None,
|
||||||
) -> int:
|
) -> CloudapiBserviceCreateResultInt:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,13 +1,15 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceDeleteImpl(_base.APIFunctionImpl):
|
class CloudapiBserviceDeleteResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiBserviceDeleteProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def delete(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
permanently: bool = False,
|
permanently: bool = False,
|
||||||
) -> bool:
|
) -> CloudapiBserviceDeleteResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,12 +1,14 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceDisableImpl(_base.APIFunctionImpl):
|
class CloudapiBserviceDisableResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiBserviceDisableProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def disable(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
) -> bool:
|
) -> CloudapiBserviceDisableResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,12 +1,14 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceEnableImpl(_base.APIFunctionImpl):
|
class CloudapiBserviceEnableResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiBserviceEnableProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def enable(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
) -> bool:
|
) -> CloudapiBserviceEnableResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -2,7 +2,7 @@ import dynamix_sdk.base as _base
|
|||||||
import dynamix_sdk.api._nested as _nested
|
import dynamix_sdk.api._nested as _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceGetResultModel(_base.ResultModel):
|
class CloudapiBserviceGetResultModel(_base.BaseAPIResultModel):
|
||||||
account_id: int
|
account_id: int
|
||||||
account_name: str
|
account_name: str
|
||||||
base_domain: str
|
base_domain: str
|
||||||
@@ -47,12 +47,10 @@ class CloudapiBserviceGetResultModel(_base.ResultModel):
|
|||||||
return self._get_datetime_from_timestamp(self.updated_timestamp)
|
return self._get_datetime_from_timestamp(self.updated_timestamp)
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceGetImpl(_base.APIFunctionImpl):
|
class CloudapiBserviceGetProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
http_method = _base.HTTPMethod.POST
|
def get(
|
||||||
|
|
||||||
def __call__(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
) -> CloudapiBserviceGetResultModel:
|
) -> CloudapiBserviceGetResultModel:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -2,10 +2,12 @@ import dynamix_sdk.base as _base
|
|||||||
import dynamix_sdk.api._nested as _nested
|
import dynamix_sdk.api._nested as _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceGroupAddImpl(_base.APIFunctionImpl):
|
class CloudapiBserviceGroupAddResultInt(_base.BaseAPIResultInt):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiBserviceGroupAddProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def group_add(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
@@ -16,7 +18,7 @@ class CloudapiBserviceGroupAddImpl(_base.APIFunctionImpl):
|
|||||||
name: str,
|
name: str,
|
||||||
ram_size_mb: int,
|
ram_size_mb: int,
|
||||||
storage_policy_id: int | None = None,
|
storage_policy_id: int | None = None,
|
||||||
ci_user_data: str | dict | None = None,
|
ci_user_data: str | None = None,
|
||||||
extnet_ids: list[int] | None = None,
|
extnet_ids: list[int] | None = None,
|
||||||
role: str | None = None,
|
role: str | None = None,
|
||||||
sep_id: int | None = None,
|
sep_id: int | None = None,
|
||||||
@@ -24,5 +26,5 @@ class CloudapiBserviceGroupAddImpl(_base.APIFunctionImpl):
|
|||||||
start_timeout: int | None = None,
|
start_timeout: int | None = None,
|
||||||
vins_ids: list[int] | None = None,
|
vins_ids: list[int] | None = None,
|
||||||
chipset: _nested.Chipset = _nested.Chipset.Q35,
|
chipset: _nested.Chipset = _nested.Chipset.Q35,
|
||||||
) -> int:
|
) -> CloudapiBserviceGroupAddResultInt:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,16 +1,18 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceGroupComputeRemoveImpl(
|
class CloudapiBserviceGroupComputeRemoveResultBool(_base.BaseAPIResultBool):
|
||||||
_base.APIFunctionImpl
|
pass
|
||||||
):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiBserviceGroupComputeRemoveProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol
|
||||||
|
):
|
||||||
|
def group_compute_remove(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
bsgroup_id: int,
|
bsgroup_id: int,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
) -> bool:
|
) -> CloudapiBserviceGroupComputeRemoveResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -3,7 +3,7 @@ import dynamix_sdk.api._nested as _nested
|
|||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceGroupGetResultModel(
|
class CloudapiBserviceGroupGetResultModel(
|
||||||
_base.ResultModel,
|
_base.BaseAPIResultModel,
|
||||||
):
|
):
|
||||||
account_id: int
|
account_id: int
|
||||||
account_name: str
|
account_name: str
|
||||||
@@ -29,7 +29,7 @@ class CloudapiBserviceGroupGetResultModel(
|
|||||||
rg_name: str
|
rg_name: str
|
||||||
role: str
|
role: str
|
||||||
sep_id: int
|
sep_id: int
|
||||||
sep_pool_name: str | None
|
sep_pool_name: str
|
||||||
seq_no: int
|
seq_no: int
|
||||||
status: _nested.BServiceGroupStatus
|
status: _nested.BServiceGroupStatus
|
||||||
tech_status: _nested.BServiceGroupTechStatus
|
tech_status: _nested.BServiceGroupTechStatus
|
||||||
@@ -52,12 +52,10 @@ class CloudapiBserviceGroupGetResultModel(
|
|||||||
return self._get_datetime_from_timestamp(self.updated_timestamp)
|
return self._get_datetime_from_timestamp(self.updated_timestamp)
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceGroupGetImpl(_base.APIFunctionImpl):
|
class CloudapiBserviceGroupGetProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
http_method = _base.HTTPMethod.POST
|
def group_get(
|
||||||
|
|
||||||
def __call__(
|
|
||||||
self, *,
|
self, *,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
bsgroup_id: int
|
bsgroup_id: int
|
||||||
) -> CloudapiBserviceGroupGetResultModel:
|
) -> CloudapiBserviceGroupGetResultModel:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,16 +1,18 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceGroupParentAddImpl(
|
class CloudapiBserviceGroupParentAddResultBool(_base.BaseAPIResultBool):
|
||||||
_base.APIFunctionImpl
|
pass
|
||||||
):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiBserviceGroupParentAddProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol
|
||||||
|
):
|
||||||
|
def group_parent_add(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
child_id: int,
|
child_id: int,
|
||||||
parent_id: int,
|
parent_id: int,
|
||||||
) -> bool:
|
) -> CloudapiBserviceGroupParentAddResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,16 +1,18 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceGroupParentRemoveImpl(
|
class CloudapiBserviceGroupParentRemoveResultBool(_base.BaseAPIResultBool):
|
||||||
_base.APIFunctionImpl
|
pass
|
||||||
):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiBserviceGroupParentRemoveProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol
|
||||||
|
):
|
||||||
|
def group_parent_remove(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
child_id: int,
|
child_id: int,
|
||||||
parent_id: int,
|
parent_id: int,
|
||||||
) -> bool:
|
) -> CloudapiBserviceGroupParentRemoveResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,12 +1,14 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceGroupRemoveImpl(_base.APIFunctionImpl):
|
class CloudapiBserviceGroupRemoveResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiBserviceGroupRemoveProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def group_remove(
|
||||||
self, *,
|
self, *,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
bsgroup_id: int
|
bsgroup_id: int
|
||||||
) -> bool:
|
) -> CloudapiBserviceGroupRemoveResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,13 +1,15 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceGroupStartImpl(_base.APIFunctionImpl):
|
class CloudapiBserviceGroupStartResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiBserviceGroupStartProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def group_start(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
bsgroup_id: int,
|
bsgroup_id: int,
|
||||||
) -> bool:
|
) -> CloudapiBserviceGroupStartResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,14 +1,16 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceGroupStopImpl(_base.APIFunctionImpl):
|
class CloudapiBserviceGroupStopResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiBserviceGroupStopProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def group_stop(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
bsgroup_id: int,
|
bsgroup_id: int,
|
||||||
force: bool = False,
|
force: bool = False,
|
||||||
) -> bool:
|
) -> CloudapiBserviceGroupStopResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,12 +1,14 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceGroupUpdateImpl(
|
class CloudapiBserviceGroupUpdateResultBool(_base.BaseAPIResultBool):
|
||||||
_base.APIFunctionImpl
|
pass
|
||||||
):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiBserviceGroupUpdateProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol
|
||||||
|
):
|
||||||
|
def group_update(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
@@ -17,5 +19,5 @@ class CloudapiBserviceGroupUpdateImpl(
|
|||||||
name: str | None = None,
|
name: str | None = None,
|
||||||
ram_size_mb: int | None = None,
|
ram_size_mb: int | None = None,
|
||||||
role: str | None = None,
|
role: str | None = None,
|
||||||
) -> bool:
|
) -> CloudapiBserviceGroupUpdateResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,16 +1,18 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceGroupUpdateExtnetImpl(
|
class CloudapiBserviceGroupUpdateExtnetResultBool(_base.BaseAPIResultBool):
|
||||||
_base.APIFunctionImpl
|
pass
|
||||||
):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiBserviceGroupUpdateExtnetProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol
|
||||||
|
):
|
||||||
|
def group_update_extnet(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
bsgroup_id: int,
|
bsgroup_id: int,
|
||||||
extnet_ids: list[int] | None = None,
|
extnet_ids: list[int] | None = None,
|
||||||
) -> bool:
|
) -> CloudapiBserviceGroupUpdateExtnetResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,16 +1,18 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceGroupUpdateVinsImpl(
|
class CloudapiBserviceGroupUpdateVinsResultBool(_base.BaseAPIResultBool):
|
||||||
_base.APIFunctionImpl
|
pass
|
||||||
):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiBserviceGroupUpdateVinsProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol
|
||||||
|
):
|
||||||
|
def group_update_vins(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
bsgroup_id: int,
|
bsgroup_id: int,
|
||||||
vins_ids: list[int] | None = None,
|
vins_ids: list[int] | None = None,
|
||||||
) -> bool:
|
) -> CloudapiBserviceGroupUpdateVinsResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -2,15 +2,13 @@ import dynamix_sdk.base as _base
|
|||||||
import dynamix_sdk.api._nested as _nested
|
import dynamix_sdk.api._nested as _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceListResultModel(_base.ResultModel):
|
class CloudapiBserviceListResultModel(_base.BaseAPIResultModel):
|
||||||
data: list[_nested.BServiceAPIResultNM]
|
data: list[_nested.BServiceAPIResultNM]
|
||||||
entry_count: int
|
entry_count: int
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceListImpl(_base.APIFunctionImpl):
|
class CloudapiBserviceListProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
http_method = _base.HTTPMethod.POST
|
def list(
|
||||||
|
|
||||||
def __call__(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
account_id: int | None = None,
|
account_id: int | None = None,
|
||||||
@@ -18,12 +16,12 @@ class CloudapiBserviceListImpl(_base.APIFunctionImpl):
|
|||||||
id: int | None = None,
|
id: int | None = None,
|
||||||
name: str | None = None,
|
name: str | None = None,
|
||||||
zone_id: int | None = None,
|
zone_id: int | None = None,
|
||||||
page_number: int = 1,
|
page_number: int | None = None,
|
||||||
page_size: int = 100,
|
page_size: int | None = None,
|
||||||
rg_id: int | None = None,
|
rg_id: int | None = None,
|
||||||
rg_name: str | None = None,
|
rg_name: str | None = None,
|
||||||
sort_by: str | None = None,
|
sort_by: str | None = None,
|
||||||
status: _nested.BServiceStatus | None = None,
|
status: _nested.BServiceStatus | None = None,
|
||||||
tech_status: _nested.BServiceTechStatus | None = None,
|
tech_status: _nested.BServiceTechStatus | None = None,
|
||||||
) -> CloudapiBserviceListResultModel:
|
) -> CloudapiBserviceListResultModel:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -2,21 +2,19 @@ import dynamix_sdk.base as _base
|
|||||||
import dynamix_sdk.api._nested as _nested
|
import dynamix_sdk.api._nested as _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceListDeletedResultModel(_base.ResultModel):
|
class CloudapiBserviceListDeletedResultModel(_base.BaseAPIResultModel):
|
||||||
data: list[_nested.BServiceAPIResultNM]
|
data: list[_nested.BServiceAPIResultNM]
|
||||||
entry_count: int
|
entry_count: int
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceListDeletedImpl(_base.APIFunctionImpl):
|
class CloudapiBserviceListDeletedProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
http_method = _base.HTTPMethod.POST
|
def list_deleted(
|
||||||
|
|
||||||
def __call__(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
account_id: int | None = None,
|
account_id: int | None = None,
|
||||||
page_number: int = 1,
|
page_number: int | None = None,
|
||||||
page_size: int = 100,
|
page_size: int | None = None,
|
||||||
rg_id: int | None = None,
|
rg_id: int | None = None,
|
||||||
sort_by: str | None = None,
|
sort_by: str | None = None,
|
||||||
) -> CloudapiBserviceListDeletedResultModel:
|
) -> CloudapiBserviceListDeletedResultModel:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,13 +1,15 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceMigrateToZoneImpl(_base.APIFunctionImpl):
|
class CloudapiBserviceMigrateToZoneResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiBserviceMigrateToZoneProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def migrate_to_zone(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
zone_id: int,
|
zone_id: int,
|
||||||
) -> bool:
|
) -> CloudapiBserviceMigrateToZoneResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,12 +1,14 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceRestoreImpl(_base.APIFunctionImpl):
|
class CloudapiBserviceRestoreResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiBserviceRestoreProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def restore(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
) -> bool:
|
) -> CloudapiBserviceRestoreResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,15 +1,17 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceSnapshotCreateImpl(
|
class CloudapiBserviceSnapshotCreateResultBool(_base.BaseAPIResultBool):
|
||||||
_base.APIFunctionImpl,
|
pass
|
||||||
):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiBserviceSnapshotCreateProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol,
|
||||||
|
):
|
||||||
|
def snapshot_create(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
label: str,
|
label: str,
|
||||||
) -> bool:
|
) -> CloudapiBserviceSnapshotCreateResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,15 +1,17 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceSnapshotDeleteImpl(
|
class CloudapiBserviceSnapshotDeleteResultBool(_base.BaseAPIResultBool):
|
||||||
_base.APIFunctionImpl,
|
pass
|
||||||
):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiBserviceSnapshotDeleteProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol,
|
||||||
|
):
|
||||||
|
def snapshot_delete(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
label: str,
|
label: str,
|
||||||
) -> bool:
|
) -> CloudapiBserviceSnapshotDeleteResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -2,17 +2,15 @@ import dynamix_sdk.base as _base
|
|||||||
import dynamix_sdk.api._nested as _nested
|
import dynamix_sdk.api._nested as _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceSnapshotListResultModel(_base.ResultModel):
|
class CloudapiBserviceSnapshotListResultModel(_base.BaseAPIResultModel):
|
||||||
data: list[_nested.BServiceSnapshotAPIResultNM]
|
data: list[_nested.BServiceSnapshotAPIResultNM]
|
||||||
entry_count: int
|
entry_count: int
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceSnapshotListImpl(_base.APIFunctionImpl):
|
class CloudapiBserviceSnapshotListProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
http_method = _base.HTTPMethod.POST
|
def snapshot_list(
|
||||||
|
|
||||||
def __call__(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
) -> CloudapiBserviceSnapshotListResultModel:
|
) -> CloudapiBserviceSnapshotListResultModel:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,15 +1,17 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceSnapshotRollbackImpl(
|
class CloudapiBserviceSnapshotRollbackResultBool(_base.BaseAPIResultBool):
|
||||||
_base.APIFunctionImpl,
|
pass
|
||||||
):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiBserviceSnapshotRollbackProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol,
|
||||||
|
):
|
||||||
|
def snapshot_rollback(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
label: str,
|
label: str,
|
||||||
) -> bool:
|
) -> CloudapiBserviceSnapshotRollbackResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,12 +1,14 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceStartImpl(_base.APIFunctionImpl):
|
class CloudapiBserviceStartResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiBserviceStartProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def start(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
) -> bool:
|
) -> CloudapiBserviceStartResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,12 +1,14 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceStopImpl(_base.APIFunctionImpl):
|
class CloudapiBserviceStopResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiBserviceStopProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def stop(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
) -> bool:
|
) -> CloudapiBserviceStopResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
from .abort_shared_snapshot_merge import *
|
from .abort_shared_snapshot_merge import *
|
||||||
from .add_acl_access import *
|
|
||||||
from .affinity_label_remove import *
|
from .affinity_label_remove import *
|
||||||
from .affinity_label_set import *
|
from .affinity_label_set import *
|
||||||
from .affinity_relations import *
|
from .affinity_relations import *
|
||||||
@@ -19,14 +18,11 @@ from .change_ip import *
|
|||||||
from .change_link_state import *
|
from .change_link_state import *
|
||||||
from .change_mac import *
|
from .change_mac import *
|
||||||
from .change_mtu import *
|
from .change_mtu import *
|
||||||
from .change_qos_policies import *
|
|
||||||
from .change_security_groups import *
|
from .change_security_groups import *
|
||||||
from .clone import *
|
from .clone import *
|
||||||
from .create_template import *
|
from .create_template import *
|
||||||
from .del_acl_access import *
|
|
||||||
from .delete import *
|
from .delete import *
|
||||||
from .delete_custom_fields import *
|
from .delete_custom_fields import *
|
||||||
from .delete_cpu_alignment_profile import *
|
|
||||||
from .detach_gpu import *
|
from .detach_gpu import *
|
||||||
from .detach_pci_device import *
|
from .detach_pci_device import *
|
||||||
from .disable import *
|
from .disable import *
|
||||||
@@ -38,9 +34,7 @@ from .disk_detach import *
|
|||||||
from .disk_switch_to_replication import *
|
from .disk_switch_to_replication import *
|
||||||
from .enable import *
|
from .enable import *
|
||||||
from .get import *
|
from .get import *
|
||||||
from .get_acl_access import *
|
|
||||||
from .get_console_url import *
|
from .get_console_url import *
|
||||||
from .get_cpu_alignment_profile import *
|
|
||||||
from .guest_agent_disable import *
|
from .guest_agent_disable import *
|
||||||
from .guest_agent_enable import *
|
from .guest_agent_enable import *
|
||||||
from .guest_agent_execute import *
|
from .guest_agent_execute import *
|
||||||
@@ -63,7 +57,6 @@ from .reset import *
|
|||||||
from .resize import *
|
from .resize import *
|
||||||
from .restore import *
|
from .restore import *
|
||||||
from .resume import *
|
from .resume import *
|
||||||
from .set_cpu_alignment_profile import *
|
|
||||||
from .set_custom_fields import *
|
from .set_custom_fields import *
|
||||||
from .snapshot_create import *
|
from .snapshot_create import *
|
||||||
from .snapshot_list import *
|
from .snapshot_list import *
|
||||||
@@ -74,7 +67,6 @@ from .tag_add import *
|
|||||||
from .tag_remove import *
|
from .tag_remove import *
|
||||||
from .unpin_from_node import *
|
from .unpin_from_node import *
|
||||||
from .update import *
|
from .update import *
|
||||||
from .update_acl_access import *
|
|
||||||
from .user_grant import *
|
from .user_grant import *
|
||||||
from .user_list import *
|
from .user_list import *
|
||||||
from .user_revoke import *
|
from .user_revoke import *
|
||||||
@@ -83,84 +75,77 @@ from .user_update import *
|
|||||||
|
|
||||||
class CloudapiComputeAPI(
|
class CloudapiComputeAPI(
|
||||||
_base.BaseAPI,
|
_base.BaseAPI,
|
||||||
|
CloudapiComputeAbortSharedSnapshotMergeProtocol,
|
||||||
|
CloudapiComputeAffinityLabelRemoveProtocol,
|
||||||
|
CloudapiComputeAffinityLabelSetProtocol,
|
||||||
|
CloudapiComputeAffinityRelationsProtocol,
|
||||||
|
CloudapiComputeAffinityRuleAddProtocol,
|
||||||
|
CloudapiComputeAffinityRuleRemoveProtocol,
|
||||||
|
CloudapiComputeAffinityRulesClearProtocol,
|
||||||
|
CloudapiComputeAntiAffinityRuleAddProtocol,
|
||||||
|
CloudapiComputeAntiAffinityRuleRemoveProtocol,
|
||||||
|
CloudapiComputeAntiAffinityRulesClearProtocol,
|
||||||
|
CloudapiComputeAttachGpuProtocol,
|
||||||
|
CloudapiComputeAttachPciDeviceProtocol,
|
||||||
|
CloudapiComputeBootDiskSetProtocol,
|
||||||
|
CloudapiComputeCdEjectProtocol,
|
||||||
|
CloudapiComputeCdInsertProtocol,
|
||||||
|
CloudapiComputeChangeIpProtocol,
|
||||||
|
CloudapiComputeChangeLinkStateProtocol,
|
||||||
|
CloudapiComputeChangeMacProtocol,
|
||||||
|
CloudapiComputeChangeMtuProtocol,
|
||||||
|
CloudapiComputeChangeSecurityGroupsProtocol,
|
||||||
|
CloudapiComputeCloneProtocol,
|
||||||
|
CloudapiComputeCreateTemplateProtocol,
|
||||||
|
CloudapiComputeDeleteCustomFieldsProtocol,
|
||||||
|
CloudapiComputeDeleteProtocol,
|
||||||
|
CloudapiComputeDetachGpuProtocol,
|
||||||
|
CloudapiComputeDetachPciDeviceProtocol,
|
||||||
|
CloudapiComputeDisableProtocol,
|
||||||
|
CloudapiComputeDiskAddProtocol,
|
||||||
|
CloudapiComputeDiskAttachProtocol,
|
||||||
|
CloudapiComputeDiskDelProtocol,
|
||||||
|
CloudapiComputeDiskDetachProtocol,
|
||||||
|
CloudapiComputeDiskMigrateProtocol,
|
||||||
|
CloudapiComputeDiskSwitchToReplicationProtocol,
|
||||||
|
CloudapiComputeEnableProtocol,
|
||||||
|
CloudapiComputeGetConsoleUrlProtocol,
|
||||||
|
CloudapiComputeGetProtocol,
|
||||||
|
CloudapiComputeGuestAgentDisableProtocol,
|
||||||
|
CloudapiComputeGuestAgentEnableProtocol,
|
||||||
|
CloudapiComputeGuestAgentExecuteProtocol,
|
||||||
|
CloudapiComputeGuestAgentFeatureUpdateProtocol,
|
||||||
|
CloudapiComputeListProtocol,
|
||||||
|
CloudapiComputeListDeletedProtocol,
|
||||||
|
CloudapiComputeMigrateToZoneProtocol,
|
||||||
|
CloudapiComputeMoveToRgProtocol,
|
||||||
|
CloudapiComputeNetAttachProtocol,
|
||||||
|
CloudapiComputeNetDetachProtocol,
|
||||||
|
CloudapiComputePauseProtocol,
|
||||||
|
CloudapiComputePfwAddProtocol,
|
||||||
|
CloudapiComputePfwDelProtocol,
|
||||||
|
CloudapiComputePfwListProtocol,
|
||||||
|
CloudapiComputePinToNodeProtocol,
|
||||||
|
CloudapiComputePowerCycleProtocol,
|
||||||
|
CloudapiComputeRebootProtocol,
|
||||||
|
CloudapiComputeRedeployProtocol,
|
||||||
|
CloudapiComputeResetProtocol,
|
||||||
|
CloudapiComputeResizeProtocol,
|
||||||
|
CloudapiComputeRestoreProtocol,
|
||||||
|
CloudapiComputeResumeProtocol,
|
||||||
|
CloudapiComputeSetCustomFieldsProtocol,
|
||||||
|
CloudapiComputeSnapshotCreateProtocol,
|
||||||
|
CloudapiComputeSnapshotListProtocol,
|
||||||
|
CloudapiComputeSnapshotRollbackProtocol,
|
||||||
|
CloudapiComputeStartProtocol,
|
||||||
|
CloudapiComputeStopProtocol,
|
||||||
|
CloudapiComputeTagAddProtocol,
|
||||||
|
CloudapiComputeTagRemoveProtocol,
|
||||||
|
CloudapiComputeUnpinFromNodeProtocol,
|
||||||
|
CloudapiComputeUpdateProtocol,
|
||||||
|
CloudapiComputeUserGrantProtocol,
|
||||||
|
CloudapiComputeUserListProtocol,
|
||||||
|
CloudapiComputeUserRevokeProtocol,
|
||||||
|
CloudapiComputeUserUpdateProtocol,
|
||||||
):
|
):
|
||||||
get: CloudapiComputeGetImpl
|
pass
|
||||||
get_acl_access: CloudapiComputeGetAclAccessImpl
|
|
||||||
redeploy: CloudapiComputeRedeployImpl
|
|
||||||
disk_switch_to_replication: CloudapiComputeDiskSwitchToReplicationImpl
|
|
||||||
pin_to_node: CloudapiComputePinToNodeImpl
|
|
||||||
change_ip: CloudapiComputeChangeIpImpl
|
|
||||||
anti_affinity_rules_clear: CloudapiComputeAntiAffinityRulesClearImpl
|
|
||||||
power_cycle: CloudapiComputePowerCycleImpl
|
|
||||||
pfw_del: CloudapiComputePfwDelImpl
|
|
||||||
restore: CloudapiComputeRestoreImpl
|
|
||||||
change_mtu: CloudapiComputeChangeMtuImpl
|
|
||||||
del_acl_access: CloudapiComputeDelAclAccessImpl
|
|
||||||
delete: CloudapiComputeDeleteImpl
|
|
||||||
pfw_add: CloudapiComputePfwAddImpl
|
|
||||||
affinity_label_set: CloudapiComputeAffinityLabelSetImpl
|
|
||||||
disable: CloudapiComputeDisableImpl
|
|
||||||
pfw_list: CloudapiComputePfwListImpl
|
|
||||||
net_attach: CloudapiComputeNetAttachImpl
|
|
||||||
user_revoke: CloudapiComputeUserRevokeImpl
|
|
||||||
reset: CloudapiComputeResetImpl
|
|
||||||
user_grant: CloudapiComputeUserGrantImpl
|
|
||||||
anti_affinity_rule_add: CloudapiComputeAntiAffinityRuleAddImpl
|
|
||||||
disk_del: CloudapiComputeDiskDelImpl
|
|
||||||
change_link_state: CloudapiComputeChangeLinkStateImpl
|
|
||||||
clone: CloudapiComputeCloneImpl
|
|
||||||
guest_agent_feature_update: CloudapiComputeGuestAgentFeatureUpdateImpl
|
|
||||||
pause: CloudapiComputePauseImpl
|
|
||||||
change_mac: CloudapiComputeChangeMacImpl
|
|
||||||
detach_pci_device: CloudapiComputeDetachPciDeviceImpl
|
|
||||||
attach_pci_device: CloudapiComputeAttachPciDeviceImpl
|
|
||||||
user_update: CloudapiComputeUserUpdateImpl
|
|
||||||
abort_shared_snapshot_merge: CloudapiComputeAbortSharedSnapshotMergeImpl
|
|
||||||
cd_insert: CloudapiComputeCdInsertImpl
|
|
||||||
user_list: CloudapiComputeUserListImpl
|
|
||||||
guest_agent_disable: CloudapiComputeGuestAgentDisableImpl
|
|
||||||
unpin_from_node: CloudapiComputeUnpinFromNodeImpl
|
|
||||||
cd_eject: CloudapiComputeCdEjectImpl
|
|
||||||
detach_gpu: CloudapiComputeDetachGpuImpl
|
|
||||||
move_to_rg: CloudapiComputeMoveToRgImpl
|
|
||||||
stop: CloudapiComputeStopImpl
|
|
||||||
affinity_relations: CloudapiComputeAffinityRelationsImpl
|
|
||||||
boot_disk_set: CloudapiComputeBootDiskSetImpl
|
|
||||||
disk_migrate: CloudapiComputeDiskMigrateImpl
|
|
||||||
disk_detach: CloudapiComputeDiskDetachImpl
|
|
||||||
affinity_label_remove: CloudapiComputeAffinityLabelRemoveImpl
|
|
||||||
list: CloudapiComputeListImpl
|
|
||||||
resume: CloudapiComputeResumeImpl
|
|
||||||
resize: CloudapiComputeResizeImpl
|
|
||||||
affinity_rule_add: CloudapiComputeAffinityRuleAddImpl
|
|
||||||
snapshot_rollback: CloudapiComputeSnapshotRollbackImpl
|
|
||||||
guest_agent_execute: CloudapiComputeGuestAgentExecuteImpl
|
|
||||||
start: CloudapiComputeStartImpl
|
|
||||||
snapshot_create: CloudapiComputeSnapshotCreateImpl
|
|
||||||
tag_add: CloudapiComputeTagAddImpl
|
|
||||||
net_detach: CloudapiComputeNetDetachImpl
|
|
||||||
anti_affinity_rule_remove: CloudapiComputeAntiAffinityRuleRemoveImpl
|
|
||||||
change_security_groups: CloudapiComputeChangeSecurityGroupsImpl
|
|
||||||
change_qos_policies: CloudapiComputeChangeQosPoliciesImpl
|
|
||||||
snapshot_list: CloudapiComputeSnapshotListImpl
|
|
||||||
update: CloudapiComputeUpdateImpl
|
|
||||||
update_acl_access: CloudapiComputeUpdateAclAccessImpl
|
|
||||||
get_console_url: CloudapiComputeGetConsoleUrlImpl
|
|
||||||
disk_attach: CloudapiComputeDiskAttachImpl
|
|
||||||
tag_remove: CloudapiComputeTagRemoveImpl
|
|
||||||
disk_add: CloudapiComputeDiskAddImpl
|
|
||||||
attach_gpu: CloudapiComputeAttachGpuImpl
|
|
||||||
affinity_rule_remove: CloudapiComputeAffinityRuleRemoveImpl
|
|
||||||
migrate_to_zone: CloudapiComputeMigrateToZoneImpl
|
|
||||||
affinity_rules_clear: CloudapiComputeAffinityRulesClearImpl
|
|
||||||
reboot: CloudapiComputeRebootImpl
|
|
||||||
delete_custom_fields: CloudapiComputeDeleteCustomFieldsImpl
|
|
||||||
set_custom_fields: CloudapiComputeSetCustomFieldsImpl
|
|
||||||
list_deleted: CloudapiComputeListDeletedImpl
|
|
||||||
create_template: CloudapiComputeCreateTemplateImpl
|
|
||||||
guest_agent_enable: CloudapiComputeGuestAgentEnableImpl
|
|
||||||
enable: CloudapiComputeEnableImpl
|
|
||||||
get_cpu_alignment_profile: CloudapiComputeGetCpuAlignmentProfileImpl
|
|
||||||
set_cpu_alignment_profile: CloudapiComputeSetCpuAlignmentProfileImpl
|
|
||||||
delete_cpu_alignment_profile: CloudapiComputeDeleteCpuAlignmentProfileImpl
|
|
||||||
add_acl_access: CloudapiComputeAddAclAccessImpl
|
|
||||||
@@ -1,16 +1,19 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAbortSharedSnapshotMergeImpl(
|
class CloudapiComputeAbortSharedSnapshotMergeResultStr(
|
||||||
_base.APIFunctionImpl
|
_base.BaseAPIResultStr,
|
||||||
):
|
):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeAbortSharedSnapshotMergeProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol
|
||||||
|
):
|
||||||
|
def abort_shared_snapshot_merge(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
label: str,
|
label: str,
|
||||||
async_mode: bool = False,
|
) -> CloudapiComputeAbortSharedSnapshotMergeResultStr:
|
||||||
) -> str:
|
...
|
||||||
raise NotImplementedError
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
import dynamix_sdk.base as _base
|
|
||||||
import dynamix_sdk.api._nested as _nested
|
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAddAclAccessImpl(_base.APIFunctionImpl):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
self,
|
|
||||||
*,
|
|
||||||
id: int,
|
|
||||||
accesstype: _nested.AccessTypeForSet,
|
|
||||||
apiaccesses: list[int] | None = None,
|
|
||||||
usernames: list[str] | None = None,
|
|
||||||
) -> bool:
|
|
||||||
raise NotImplementedError
|
|
||||||
@@ -1,14 +1,16 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAffinityLabelRemoveImpl(
|
class CloudapiComputeAffinityLabelRemoveResultBool(_base.BaseAPIResultBool):
|
||||||
_base.APIFunctionImpl
|
pass
|
||||||
):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeAffinityLabelRemoveProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol
|
||||||
|
):
|
||||||
|
def affinity_label_remove(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
) -> bool:
|
) -> CloudapiComputeAffinityLabelRemoveResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,15 +1,17 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAffinityLabelSetImpl(
|
class CloudapiComputeAffinityLabelSetResultBool(_base.BaseAPIResultBool):
|
||||||
_base.APIFunctionImpl
|
pass
|
||||||
):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeAffinityLabelSetProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol
|
||||||
|
):
|
||||||
|
def affinity_label_set(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
affinity_label: str,
|
affinity_label: str,
|
||||||
) -> bool:
|
) -> CloudapiComputeAffinityLabelSetResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -3,19 +3,18 @@ from dynamix_sdk.api import _nested
|
|||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAffinityRelationsResultModel(
|
class CloudapiComputeAffinityRelationsResultModel(
|
||||||
|
_base.BaseAPIResultModel,
|
||||||
_nested.AffinityRelationsAPIResultNM,
|
_nested.AffinityRelationsAPIResultNM,
|
||||||
):
|
):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAffinityRelationsImpl(
|
class CloudapiComputeAffinityRelationsProtocol(
|
||||||
_base.APIFunctionImpl
|
_base.BasePostAPIFunctionProtocol
|
||||||
):
|
):
|
||||||
http_method = _base.HTTPMethod.POST
|
def affinity_relations(
|
||||||
|
|
||||||
def __call__(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
) -> CloudapiComputeAffinityRelationsResultModel:
|
) -> CloudapiComputeAffinityRelationsResultModel:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -2,18 +2,14 @@ import dynamix_sdk.base as _base
|
|||||||
from dynamix_sdk.api import _nested
|
from dynamix_sdk.api import _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAffinityRuleAddResultModel(
|
class CloudapiComputeAffinityRuleAddResultBool(_base.BaseAPIResultBool):
|
||||||
_nested.ComputeAffinityRuleApplyResultAPIResultNM,
|
|
||||||
):
|
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAffinityRuleAddImpl(
|
class CloudapiComputeAffinityRuleAddProtocol(
|
||||||
_base.APIFunctionImpl
|
_base.BasePostAPIFunctionProtocol
|
||||||
):
|
):
|
||||||
http_method = _base.HTTPMethod.POST
|
def affinity_rule_add(
|
||||||
|
|
||||||
def __call__(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
@@ -22,7 +18,5 @@ class CloudapiComputeAffinityRuleAddImpl(
|
|||||||
mode: _nested.AffinityMode,
|
mode: _nested.AffinityMode,
|
||||||
key: str,
|
key: str,
|
||||||
value: str,
|
value: str,
|
||||||
async_mode: bool = False,
|
) -> CloudapiComputeAffinityRuleAddResultBool:
|
||||||
migrate: bool = False,
|
...
|
||||||
) -> bool | str | CloudapiComputeAffinityRuleAddResultModel:
|
|
||||||
raise NotImplementedError
|
|
||||||
@@ -2,12 +2,14 @@ import dynamix_sdk.base as _base
|
|||||||
from dynamix_sdk.api import _nested
|
from dynamix_sdk.api import _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAffinityRuleRemoveImpl(
|
class CloudapiComputeAffinityRuleRemoveResultBool(_base.BaseAPIResultBool):
|
||||||
_base.APIFunctionImpl
|
pass
|
||||||
):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeAffinityRuleRemoveProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol
|
||||||
|
):
|
||||||
|
def affinity_rule_remove(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
@@ -16,5 +18,5 @@ class CloudapiComputeAffinityRuleRemoveImpl(
|
|||||||
mode: _nested.AffinityMode,
|
mode: _nested.AffinityMode,
|
||||||
key: str,
|
key: str,
|
||||||
value: str,
|
value: str,
|
||||||
) -> bool:
|
) -> CloudapiComputeAffinityRuleRemoveResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,14 +1,16 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAffinityRulesClearImpl(
|
class CloudapiComputeAffinityRulesClearResultBool(_base.BaseAPIResultBool):
|
||||||
_base.APIFunctionImpl
|
pass
|
||||||
):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeAffinityRulesClearProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol
|
||||||
|
):
|
||||||
|
def affinity_rules_clear(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
) -> bool:
|
) -> CloudapiComputeAffinityRulesClearResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -2,18 +2,14 @@ import dynamix_sdk.base as _base
|
|||||||
from dynamix_sdk.api import _nested
|
from dynamix_sdk.api import _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAntiAffinityRuleAddResultModel(
|
class CloudapiComputeAntiAffinityRuleAddResultBool(_base.BaseAPIResultBool):
|
||||||
_nested.ComputeAffinityRuleApplyResultAPIResultNM,
|
|
||||||
):
|
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAntiAffinityRuleAddImpl(
|
class CloudapiComputeAntiAffinityRuleAddProtocol(
|
||||||
_base.APIFunctionImpl
|
_base.BasePostAPIFunctionProtocol
|
||||||
):
|
):
|
||||||
http_method = _base.HTTPMethod.POST
|
def anti_affinity_rule_add(
|
||||||
|
|
||||||
def __call__(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
@@ -22,7 +18,5 @@ class CloudapiComputeAntiAffinityRuleAddImpl(
|
|||||||
mode: _nested.AffinityMode,
|
mode: _nested.AffinityMode,
|
||||||
key: str,
|
key: str,
|
||||||
value: str,
|
value: str,
|
||||||
async_mode: bool = False,
|
) -> CloudapiComputeAntiAffinityRuleAddResultBool:
|
||||||
migrate: bool = False,
|
...
|
||||||
) -> bool | str | CloudapiComputeAntiAffinityRuleAddResultModel:
|
|
||||||
raise NotImplementedError
|
|
||||||
@@ -2,12 +2,14 @@ import dynamix_sdk.base as _base
|
|||||||
from dynamix_sdk.api import _nested
|
from dynamix_sdk.api import _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAntiAffinityRuleRemoveImpl(
|
class CloudapiComputeAntiAffinityRuleRemoveResultBool(_base.BaseAPIResultBool):
|
||||||
_base.APIFunctionImpl
|
pass
|
||||||
):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeAntiAffinityRuleRemoveProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol
|
||||||
|
):
|
||||||
|
def anti_affinity_rule_remove(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
@@ -16,5 +18,5 @@ class CloudapiComputeAntiAffinityRuleRemoveImpl(
|
|||||||
mode: _nested.AffinityMode,
|
mode: _nested.AffinityMode,
|
||||||
key: str,
|
key: str,
|
||||||
value: str,
|
value: str,
|
||||||
) -> bool:
|
) -> CloudapiComputeAntiAffinityRuleRemoveResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,14 +1,16 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAntiAffinityRulesClearImpl(
|
class CloudapiComputeAntiAffinityRulesClearResultBool(_base.BaseAPIResultBool):
|
||||||
_base.APIFunctionImpl
|
pass
|
||||||
):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeAntiAffinityRulesClearProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol
|
||||||
|
):
|
||||||
|
def anti_affinity_rules_clear(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
) -> bool:
|
) -> CloudapiComputeAntiAffinityRulesClearResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,13 +1,15 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAttachGpuImpl(_base.APIFunctionImpl):
|
class CloudapiComputeAttachGpuResultInt(_base.BaseAPIResultInt):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeAttachGpuProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def attach_gpu(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
vgpu_id: int,
|
vgpu_id: int,
|
||||||
) -> int:
|
) -> CloudapiComputeAttachGpuResultInt:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,15 +1,17 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAttachPciDeviceImpl(
|
class CloudapiComputeAttachPciDeviceResultBool(_base.BaseAPIResultBool):
|
||||||
_base.APIFunctionImpl,
|
pass
|
||||||
):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeAttachPciDeviceProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol,
|
||||||
|
):
|
||||||
|
def attach_pci_device(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
pci_device_id: int,
|
pci_device_id: int,
|
||||||
) -> bool:
|
) -> CloudapiComputeAttachPciDeviceResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,13 +1,15 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeBootDiskSetImpl(_base.APIFunctionImpl):
|
class CloudapiComputeBootDiskSetResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeBootDiskSetProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def boot_disk_set(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
disk_id: int,
|
disk_id: int,
|
||||||
) -> bool:
|
) -> CloudapiComputeBootDiskSetResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,13 +1,14 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeCdEjectImpl(_base.APIFunctionImpl):
|
class CloudapiComputeCdEjectResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeCdEjectProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def cd_eject(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
async_mode: bool = False,
|
) -> CloudapiComputeCdEjectResultBool:
|
||||||
) -> bool | str:
|
...
|
||||||
raise NotImplementedError
|
|
||||||
@@ -1,14 +1,15 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeCdInsertImpl(_base.APIFunctionImpl):
|
class CloudapiComputeCdInsertResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeCdInsertProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def cd_insert(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
cdrom_image_id: int,
|
cdrom_image_id: int,
|
||||||
async_mode: bool = False,
|
) -> CloudapiComputeCdInsertResultBool:
|
||||||
) -> bool | str:
|
...
|
||||||
raise NotImplementedError
|
|
||||||
@@ -2,16 +2,17 @@ import dynamix_sdk.base as _base
|
|||||||
import dynamix_sdk.api._nested as _nested
|
import dynamix_sdk.api._nested as _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeChangeIpImpl(_base.APIFunctionImpl):
|
class CloudapiComputeChangeIpResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeChangeIpProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def change_ip(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
net_type: _nested.NetTypeForChangeIP,
|
net_type: _nested.NetTypeForChangeIP,
|
||||||
net_id: int,
|
net_id: int,
|
||||||
ip_addr: str,
|
ip_addr: str,
|
||||||
async_mode: bool = False,
|
) -> CloudapiComputeChangeIpResultBool:
|
||||||
) -> bool | str:
|
...
|
||||||
raise NotImplementedError
|
|
||||||
@@ -2,17 +2,18 @@ import dynamix_sdk.base as _base
|
|||||||
import dynamix_sdk.api._nested as _nested
|
import dynamix_sdk.api._nested as _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeChangeLinkStateImpl(
|
class CloudapiComputeChangeLinkStateResultBool(_base.BaseAPIResultBool):
|
||||||
_base.APIFunctionImpl
|
pass
|
||||||
):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeChangeLinkStateProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol
|
||||||
|
):
|
||||||
|
def change_link_state(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
interface: str,
|
interface: str,
|
||||||
state: _nested.LinkState,
|
state: _nested.LinkState,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
async_mode: bool = False,
|
) -> CloudapiComputeChangeLinkStateResultBool:
|
||||||
) -> bool | str:
|
...
|
||||||
raise NotImplementedError
|
|
||||||
@@ -1,14 +1,16 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeChangeMacImpl(_base.APIFunctionImpl):
|
class CloudapiComputeChangeMacResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeChangeMacProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def change_mac(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
current_mac: str,
|
current_mac: str,
|
||||||
new_mac: str,
|
new_mac: str,
|
||||||
) -> bool:
|
) -> CloudapiComputeChangeMacResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,17 +1,18 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeChangeMtuImpl(
|
class CloudapiComputeChangeMtuResultBool(_base.BaseAPIResultBool):
|
||||||
_base.APIFunctionImpl
|
pass
|
||||||
):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeChangeMtuProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol
|
||||||
|
):
|
||||||
|
def change_mtu(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
interface: str,
|
interface: str,
|
||||||
mtu: int,
|
mtu: int,
|
||||||
async_mode: bool = False,
|
) -> CloudapiComputeChangeMtuResultBool:
|
||||||
) -> bool | str:
|
...
|
||||||
raise NotImplementedError
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
import dynamix_sdk.base as _base
|
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeChangeQosPoliciesImpl(
|
|
||||||
_base.APIFunctionImpl,
|
|
||||||
):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
self,
|
|
||||||
*,
|
|
||||||
compute_id: int,
|
|
||||||
interface: str,
|
|
||||||
qos_policy_ids: list[int] | None = None,
|
|
||||||
async_mode: bool = False,
|
|
||||||
) -> bool | str:
|
|
||||||
raise NotImplementedError
|
|
||||||
@@ -1,18 +1,19 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeChangeSecurityGroupsImpl(
|
class CloudapiComputeChangeSecurityGroupsResultBool(_base.BaseAPIResultBool):
|
||||||
_base.APIFunctionImpl
|
pass
|
||||||
):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeChangeSecurityGroupsProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol
|
||||||
|
):
|
||||||
|
def change_security_groups(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
interface: str,
|
interface: str,
|
||||||
security_group_ids: list[int] | None = None,
|
security_group_ids: list[int] | None = None,
|
||||||
security_group_mode: bool | None = None,
|
security_group_mode: bool | None = None,
|
||||||
async_mode: bool = False,
|
) -> CloudapiComputeChangeSecurityGroupsResultBool:
|
||||||
) -> bool | str:
|
...
|
||||||
raise NotImplementedError
|
|
||||||
@@ -1,10 +1,12 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeCloneImpl(_base.APIFunctionImpl):
|
class CloudapiComputeCloneResultStr(_base.BaseAPIResultStr):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeCloneProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def clone(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
@@ -15,6 +17,5 @@ class CloudapiComputeCloneImpl(_base.APIFunctionImpl):
|
|||||||
snapshot_name: str | None = None,
|
snapshot_name: str | None = None,
|
||||||
sep_pool_name: str | None = None,
|
sep_pool_name: str | None = None,
|
||||||
sep_id: int | None = None,
|
sep_id: int | None = None,
|
||||||
async_mode: bool = True,
|
) -> CloudapiComputeCloneResultStr:
|
||||||
) -> str | int:
|
...
|
||||||
raise NotImplementedError
|
|
||||||
@@ -1,14 +1,15 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeCreateTemplateImpl(_base.APIFunctionImpl):
|
class CloudapiComputeCreateTemplateResultStr(_base.BaseAPIResultStr):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeCreateTemplateProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def create_template(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
name: str,
|
name: str
|
||||||
async_mode: bool = True,
|
) -> CloudapiComputeCreateTemplateResultStr:
|
||||||
) -> str | int:
|
...
|
||||||
raise NotImplementedError
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
import dynamix_sdk.base as _base
|
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeDelAclAccessImpl(_base.APIFunctionImpl):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
self,
|
|
||||||
*,
|
|
||||||
id: int,
|
|
||||||
apiaccesses: list[int] | None = None,
|
|
||||||
usernames: list[str] | None = None,
|
|
||||||
) -> bool:
|
|
||||||
raise NotImplementedError
|
|
||||||
@@ -1,15 +1,16 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeDeleteImpl(_base.APIFunctionImpl):
|
class CloudapiComputeDeleteResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeDeleteProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def delete(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
detach_disks: bool = False,
|
detach_disks: bool = False,
|
||||||
permanently: bool = False,
|
permanently: bool = False,
|
||||||
async_mode: bool = False,
|
) -> CloudapiComputeDeleteResultBool:
|
||||||
) -> bool | str:
|
...
|
||||||
raise NotImplementedError
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
import dynamix_sdk.base as _base
|
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeDeleteCpuAlignmentProfileImpl(_base.APIFunctionImpl):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
self,
|
|
||||||
*,
|
|
||||||
vm_ids: list[int],
|
|
||||||
) -> bool:
|
|
||||||
raise NotImplementedError
|
|
||||||
@@ -1,14 +1,16 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeDeleteCustomFieldsImpl(
|
class CloudapiComputeDeleteCustomFieldsResultBool(_base.BaseAPIResultBool):
|
||||||
_base.APIFunctionImpl
|
pass
|
||||||
):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeDeleteCustomFieldsProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol
|
||||||
|
):
|
||||||
|
def delete_custom_fields(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
) -> bool:
|
) -> CloudapiComputeDeleteCustomFieldsResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,13 +1,15 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeDetachGpuImpl(_base.APIFunctionImpl):
|
class CloudapiComputeDetachGpuResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeDetachGpuProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def detach_gpu(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
vgpu_id: int | None = None,
|
vgpu_id: int | None = None,
|
||||||
) -> bool:
|
) -> CloudapiComputeDetachGpuResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,15 +1,17 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeDetachPciDeviceImpl(
|
class CloudapiComputeDetachPciDeviceResultBool(_base.BaseAPIResultBool):
|
||||||
_base.APIFunctionImpl,
|
pass
|
||||||
):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeDetachPciDeviceProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol,
|
||||||
|
):
|
||||||
|
def detach_pci_device(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
pci_device_id: int,
|
pci_device_id: int,
|
||||||
) -> bool:
|
) -> CloudapiComputeDetachPciDeviceResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,15 +1,16 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeDisableImpl(
|
class CloudapiComputeDisableResultBool(_base.BaseAPIResultBool):
|
||||||
_base.APIFunctionImpl
|
pass
|
||||||
):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeDisableProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol
|
||||||
|
):
|
||||||
|
def disable(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
async_mode: bool = False,
|
) -> CloudapiComputeDisableResultBool:
|
||||||
) -> bool | str:
|
...
|
||||||
raise NotImplementedError
|
|
||||||
@@ -1,10 +1,12 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeDiskAddImpl(_base.APIFunctionImpl):
|
class CloudapiComputeDiskAddResultInt(_base.BaseAPIResultInt):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeDiskAddProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def disk_add(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
@@ -17,7 +19,5 @@ class CloudapiComputeDiskAddImpl(_base.APIFunctionImpl):
|
|||||||
image_id: int | None = None,
|
image_id: int | None = None,
|
||||||
pci_slot_num_hex: str | None = None,
|
pci_slot_num_hex: str | None = None,
|
||||||
bus_num_hex: str | None = None,
|
bus_num_hex: str | None = None,
|
||||||
async_mode: bool = False,
|
) -> CloudapiComputeDiskAddResultInt:
|
||||||
read_only_mode: bool = False,
|
...
|
||||||
) -> int | str:
|
|
||||||
raise NotImplementedError
|
|
||||||
@@ -1,17 +1,17 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeDiskAttachImpl(_base.APIFunctionImpl):
|
class CloudapiComputeDiskAttachResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeDiskAttachProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def disk_attach(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
disk_id: int,
|
disk_id: int,
|
||||||
pci_slot_num_hex: str | None = None,
|
pci_slot_num_hex: str | None = None,
|
||||||
bus_num_hex: str | None = None,
|
bus_num_hex: str | None = None,
|
||||||
async_mode: bool = False,
|
) -> CloudapiComputeDiskAttachResultBool:
|
||||||
read_only_mode: bool = False,
|
...
|
||||||
) -> bool | str:
|
|
||||||
raise NotImplementedError
|
|
||||||
@@ -1,15 +1,16 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeDiskDelImpl(_base.APIFunctionImpl):
|
class CloudapiComputeDiskDelResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeDiskDelProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def disk_del(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
disk_id: int,
|
disk_id: int,
|
||||||
permanently: bool = True,
|
permanently: bool = True,
|
||||||
async_mode: bool = False,
|
) -> CloudapiComputeDiskDelResultBool:
|
||||||
) -> bool | str:
|
...
|
||||||
raise NotImplementedError
|
|
||||||
@@ -1,14 +1,15 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeDiskDetachImpl(_base.APIFunctionImpl):
|
class CloudapiComputeDiskDetachResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeDiskDetachProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def disk_detach(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
disk_id: int,
|
disk_id: int,
|
||||||
async_mode: bool = False,
|
) -> CloudapiComputeDiskDetachResultBool:
|
||||||
) -> bool | str:
|
...
|
||||||
raise NotImplementedError
|
|
||||||
@@ -1,17 +1,19 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeDiskMigrateImpl(
|
class CloudapiComputeDiskMigrateResultBool(_base.BaseAPIResultBool):
|
||||||
_base.APIFunctionImpl
|
pass
|
||||||
):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeDiskMigrateProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol
|
||||||
|
):
|
||||||
|
def disk_migrate(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
disk_id: int,
|
disk_id: int,
|
||||||
target_disk_id: int,
|
target_disk_id: int,
|
||||||
mode: int = 1,
|
mode: int = 1,
|
||||||
) -> bool:
|
) -> CloudapiComputeDiskMigrateResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,18 +1,20 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeDiskSwitchToReplicationImpl(
|
class CloudapiComputeDiskSwitchToReplicationResultBool(
|
||||||
_base.APIFunctionImpl,
|
_base.BaseAPIResultBool,
|
||||||
):
|
):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeDiskSwitchToReplicationProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol,
|
||||||
|
):
|
||||||
|
def disk_switch_to_replication(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
disk_id: int,
|
disk_id: int,
|
||||||
stop_replication: bool = False,
|
stop_replication: bool = False,
|
||||||
planned: bool = True,
|
) -> CloudapiComputeDiskSwitchToReplicationResultBool:
|
||||||
async_mode: bool = False,
|
...
|
||||||
) -> bool | str:
|
|
||||||
raise NotImplementedError
|
|
||||||
@@ -1,12 +1,14 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeEnableImpl(_base.APIFunctionImpl):
|
class CloudapiComputeEnableResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeEnableProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def enable(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
) -> bool:
|
) -> CloudapiComputeEnableResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -2,7 +2,7 @@ import dynamix_sdk.base as _base
|
|||||||
import dynamix_sdk.api._nested as _nested
|
import dynamix_sdk.api._nested as _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeGetResultModel(_base.ResultModel):
|
class CloudapiComputeGetResultModel(_base.BaseAPIResultModel):
|
||||||
account_id: int
|
account_id: int
|
||||||
account_name: str
|
account_name: str
|
||||||
acl: _nested.VMACLAPIResultNM
|
acl: _nested.VMACLAPIResultNM
|
||||||
@@ -21,10 +21,8 @@ class CloudapiComputeGetResultModel(_base.ResultModel):
|
|||||||
cdrom_image_id: int
|
cdrom_image_id: int
|
||||||
chipset: _nested.Chipset
|
chipset: _nested.Chipset
|
||||||
ci_user_data: dict
|
ci_user_data: dict
|
||||||
clock_sync_mode: _nested.ClockSyncMode
|
|
||||||
clone_ids: list[int]
|
clone_ids: list[int]
|
||||||
clone_reference: int
|
clone_reference: int
|
||||||
cpu_alignment_profile: _nested.CPUAlignmentProfileAPIResultNM | dict
|
|
||||||
cpu_count: int
|
cpu_count: int
|
||||||
cpu_pin: bool
|
cpu_pin: bool
|
||||||
created_by: str
|
created_by: str
|
||||||
@@ -36,7 +34,6 @@ class CloudapiComputeGetResultModel(_base.ResultModel):
|
|||||||
pci_devices: dict[str, int]
|
pci_devices: dict[str, int]
|
||||||
disks: list[_nested.DiskForCAComputeGetAPIResultNM]
|
disks: list[_nested.DiskForCAComputeGetAPIResultNM]
|
||||||
driver: _nested.Driver
|
driver: _nested.Driver
|
||||||
folder_id: int | None = None
|
|
||||||
grid_id: int
|
grid_id: int
|
||||||
guid: int
|
guid: int
|
||||||
hot_resize: bool
|
hot_resize: bool
|
||||||
@@ -49,7 +46,6 @@ class CloudapiComputeGetResultModel(_base.ResultModel):
|
|||||||
lock_status: _nested.LockStatus
|
lock_status: _nested.LockStatus
|
||||||
manager_id: int
|
manager_id: int
|
||||||
manager_type: str
|
manager_type: str
|
||||||
memory_balloon_mode: _nested.MemoryBalloonMode
|
|
||||||
migration_job_id: int
|
migration_job_id: int
|
||||||
milestones: int
|
milestones: int
|
||||||
name: str
|
name: str
|
||||||
@@ -66,7 +62,6 @@ class CloudapiComputeGetResultModel(_base.ResultModel):
|
|||||||
reference_id: str
|
reference_id: str
|
||||||
res_name: str
|
res_name: str
|
||||||
reserved_cpu_cores: list[int]
|
reserved_cpu_cores: list[int]
|
||||||
resized_online: bool
|
|
||||||
rg_id: int
|
rg_id: int
|
||||||
rg_name: str
|
rg_name: str
|
||||||
snapshot_sets: list[_nested.SnapshotSetAPIResultNM]
|
snapshot_sets: list[_nested.SnapshotSetAPIResultNM]
|
||||||
@@ -82,7 +77,6 @@ class CloudapiComputeGetResultModel(_base.ResultModel):
|
|||||||
vm_ci_id: int
|
vm_ci_id: int
|
||||||
vnc_password: str
|
vnc_password: str
|
||||||
guest_agent: _nested.GuestAgentAPIResultNM
|
guest_agent: _nested.GuestAgentAPIResultNM
|
||||||
watchdog_action: _nested.WatchdogAction
|
|
||||||
weight: int
|
weight: int
|
||||||
zone_id: int
|
zone_id: int
|
||||||
|
|
||||||
@@ -105,12 +99,10 @@ class CloudapiComputeGetResultModel(_base.ResultModel):
|
|||||||
return self._get_datetime_from_timestamp(self.updated_timestamp)
|
return self._get_datetime_from_timestamp(self.updated_timestamp)
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeGetImpl(_base.APIFunctionImpl):
|
class CloudapiComputeGetProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
http_method = _base.HTTPMethod.POST
|
def get(
|
||||||
|
|
||||||
def __call__(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
) -> CloudapiComputeGetResultModel:
|
) -> CloudapiComputeGetResultModel:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
import dynamix_sdk.base as _base
|
|
||||||
import dynamix_sdk.api._nested as _nested
|
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeGetAclAccessResultModel(_base.ResultModel):
|
|
||||||
data: _nested.VMACLAPIResultNM
|
|
||||||
entry_count: int
|
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeGetAclAccessImpl(_base.APIFunctionImpl):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
self,
|
|
||||||
*,
|
|
||||||
id: int,
|
|
||||||
) -> CloudapiComputeGetAclAccessResultModel:
|
|
||||||
raise NotImplementedError
|
|
||||||
@@ -1,12 +1,14 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeGetConsoleUrlImpl(_base.APIFunctionImpl):
|
class CloudapiComputeGetConsoleUrlResultStr(_base.BaseAPIResultStr):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeGetConsoleUrlProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def get_console_url(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
) -> str:
|
) -> CloudapiComputeGetConsoleUrlResultStr:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
import dynamix_sdk.base as _base
|
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeGetCpuAlignmentProfileResultModel(_base.ResultModel):
|
|
||||||
name: str | None = None
|
|
||||||
vendor: str | None = None
|
|
||||||
model: str | None = None
|
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeGetCpuAlignmentProfileImpl(_base.APIFunctionImpl):
|
|
||||||
http_method = _base.HTTPMethod.GET
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
self,
|
|
||||||
*,
|
|
||||||
vm_id: int,
|
|
||||||
) -> CloudapiComputeGetCpuAlignmentProfileResultModel:
|
|
||||||
raise NotImplementedError
|
|
||||||
@@ -1,15 +1,16 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeGuestAgentDisableImpl(
|
class CloudapiComputeGuestAgentDisableResultBool(_base.BaseAPIResultBool):
|
||||||
_base.APIFunctionImpl
|
pass
|
||||||
):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeGuestAgentDisableProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol
|
||||||
|
):
|
||||||
|
def guest_agent_disable(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
async_mode: bool = False,
|
) -> CloudapiComputeGuestAgentDisableResultBool:
|
||||||
) -> bool | str:
|
...
|
||||||
raise NotImplementedError
|
|
||||||
@@ -1,15 +1,16 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeGuestAgentEnableImpl(
|
class CloudapiComputeGuestAgentEnableResultBool(_base.BaseAPIResultBool):
|
||||||
_base.APIFunctionImpl
|
pass
|
||||||
):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeGuestAgentEnableProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol
|
||||||
|
):
|
||||||
|
def guest_agent_enable(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
async_mode: bool = False,
|
) -> CloudapiComputeGuestAgentEnableResultBool:
|
||||||
) -> bool | str:
|
...
|
||||||
raise NotImplementedError
|
|
||||||
@@ -3,22 +3,19 @@ import dynamix_sdk.base as _base
|
|||||||
|
|
||||||
|
|
||||||
class CloudapiComputeGuestAgentExecuteResultModel(
|
class CloudapiComputeGuestAgentExecuteResultModel(
|
||||||
_base.ResultModel,
|
_base.BaseAPIResultModel,
|
||||||
):
|
):
|
||||||
exec_result: dict
|
exec_result: dict
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeGuestAgentExecuteImpl(
|
class CloudapiComputeGuestAgentExecuteProtocol(
|
||||||
_base.APIFunctionImpl
|
_base.BasePostAPIFunctionProtocol
|
||||||
):
|
):
|
||||||
http_method = _base.HTTPMethod.POST
|
def guest_agent_execute(
|
||||||
|
|
||||||
def __call__(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
cmd: str,
|
cmd: str,
|
||||||
args: dict[str, _typing.Any],
|
args: dict[str, _typing.Any],
|
||||||
async_mode: bool = False,
|
) -> CloudapiComputeGuestAgentExecuteResultModel:
|
||||||
) -> CloudapiComputeGuestAgentExecuteResultModel | str:
|
...
|
||||||
raise NotImplementedError
|
|
||||||
@@ -1,15 +1,18 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeGuestAgentFeatureUpdateImpl(
|
class CloudapiComputeGuestAgentFeatureUpdateResultBool(
|
||||||
_base.APIFunctionImpl
|
_base.BaseAPIResultBool,
|
||||||
):
|
):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeGuestAgentFeatureUpdateProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol
|
||||||
|
):
|
||||||
|
def guest_agent_feature_update(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
async_mode: bool = False,
|
) -> CloudapiComputeGuestAgentFeatureUpdateResultBool:
|
||||||
) -> bool | str:
|
...
|
||||||
raise NotImplementedError
|
|
||||||
Loaded 100 of 849 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user