Compare commits
2
Commits
2.0.3
..
1.5.latest
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4b0f4bb0a0 | ||
|
|
d28e890f39 |
No files matched your search
+4
-5
@@ -1,13 +1,12 @@
|
|||||||
# Список изменений в версии 2.0.3
|
# Список изменений в версии 1.5.5
|
||||||
|
|
||||||
## Изменено
|
## Изменено
|
||||||
|
| Идентификатор<br>задачи | Описание |
|
||||||
|
| --- | --- |
|
||||||
|
| BPYS-2328 | Закреплена минорная версия Python `3.12` и версии зависимостей: `requests==2.32.3`, `pydantic==2.10.5`, `pyyaml==6.0.2`. |
|
||||||
|
|
||||||
## Добавлено
|
## Добавлено
|
||||||
|
|
||||||
## Удалено
|
## Удалено
|
||||||
|
|
||||||
## Исправлено
|
## Исправлено
|
||||||
| Идентификатор<br>задачи | Описание |
|
|
||||||
| --- | --- |
|
|
||||||
| BPYS-2075 | Функция `cloudapi.vins.nat_rule_list`: вызов функции завершался ошибкой валидации поля `data.local_port`, если API возвращал для него `null`. В модели результата тип поля `data.local_port` изменён с `int` на `int \| None`. |
|
|
||||||
| BPYS-2074 | Функции `cloudapi.vins.get`, `cloudbroker.vins.get`: вызов завершался ошибкой валидации поля `vnfs.nat.config.rules.local_port`, если API возвращал для него `null`. В модели результата тип поля `vnfs.nat.config.rules.local_port` изменён с `int` на `int \| None`. |
|
|
||||||
@@ -35,7 +35,6 @@
|
|||||||
|
|
||||||
| Версия платформы | Версия SDK |
|
| Версия платформы | Версия SDK |
|
||||||
| --- | --- |
|
| --- | --- |
|
||||||
| 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 |
|
||||||
@@ -49,8 +48,6 @@
|
|||||||
- версия Python: раздел `[project]`, ключ `requires-python`
|
- версия Python: раздел `[project]`, ключ `requires-python`
|
||||||
- библиотеки: раздел `[project]`, ключ `dependencies`
|
- библиотеки: раздел `[project]`, ключ `dependencies`
|
||||||
|
|
||||||
**Важно:** использование более поздних версий Python и/или библиотек допустимо, но работоспособность не гарантируется, так как зависит от обратной совместимости с указанными версиями.
|
|
||||||
|
|
||||||
## Установка
|
## Установка
|
||||||
|
|
||||||
Установка с помощью системы управления пакетами Python (pip), где `version` - тег с номером версии SDK (см. доступные теги в репозитории):
|
Установка с помощью системы управления пакетами Python (pip), где `version` - тег с номером версии SDK (см. доступные теги в репозитории):
|
||||||
@@ -229,7 +226,7 @@ Dynamix(
|
|||||||
|
|
||||||
### Функциональный интерфейс
|
### Функциональный интерфейс
|
||||||
|
|
||||||
Функциональный интерфейс предоставляет функциональные объекты, каждый из которых является реализацией соответствующей функции API платформы. Для упрощения изложения в данном руководстве вместо термина **функциональный объект** будет использоваться термин **функция**, если это позволяет контекст.
|
Функциональный интерфейс предоставляет функции, соответствующие функциям API платформы.
|
||||||
|
|
||||||
#### Вызов функции
|
#### Вызов функции
|
||||||
|
|
||||||
@@ -307,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>
|
||||||
|
|
||||||
@@ -405,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` | Сигнатура вызова ФО. |
|
|
||||||
|
|
||||||
#### Соответствие названий
|
#### Соответствие названий
|
||||||
|
|
||||||
@@ -610,7 +652,6 @@ class RequestException(Exception):
|
|||||||
- /cloudapi/compute/createTemplate
|
- /cloudapi/compute/createTemplate
|
||||||
- /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
|
||||||
@@ -623,7 +664,6 @@ class RequestException(Exception):
|
|||||||
- /cloudapi/compute/enable
|
- /cloudapi/compute/enable
|
||||||
- /cloudapi/compute/get
|
- /cloudapi/compute/get
|
||||||
- /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
|
||||||
@@ -647,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
|
||||||
@@ -927,20 +966,6 @@ class RequestException(Exception):
|
|||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
<details><summary>vmfolder</summary>
|
|
||||||
|
|
||||||
- /cloudapi/vmfolder/add_acl_access
|
|
||||||
- /cloudapi/vmfolder/computes_move
|
|
||||||
- /cloudapi/vmfolder/create
|
|
||||||
- /cloudapi/vmfolder/del_acl_access
|
|
||||||
- /cloudapi/vmfolder/delete
|
|
||||||
- /cloudapi/vmfolder/get
|
|
||||||
- /cloudapi/vmfolder/list
|
|
||||||
- /cloudapi/vmfolder/move
|
|
||||||
- /cloudapi/vmfolder/rename
|
|
||||||
|
|
||||||
</details>
|
|
||||||
|
|
||||||
<details><summary>zone</summary>
|
<details><summary>zone</summary>
|
||||||
|
|
||||||
- /cloudapi/zone/get
|
- /cloudapi/zone/get
|
||||||
@@ -985,26 +1010,11 @@ 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
|
|
||||||
|
|
||||||
</details>
|
|
||||||
|
|
||||||
<details><summary>compute</summary>
|
<details><summary>compute</summary>
|
||||||
|
|
||||||
- /cloudbroker/compute/affinityLabelRemove
|
|
||||||
- /cloudbroker/compute/affinityLabelSet
|
|
||||||
- /cloudbroker/compute/change_read_only
|
- /cloudbroker/compute/change_read_only
|
||||||
- /cloudbroker/compute/change_security_groups
|
- /cloudbroker/compute/change_security_groups
|
||||||
- /cloudbroker/compute/clone
|
- /cloudbroker/compute/clone
|
||||||
- /cloudbroker/compute/delete
|
|
||||||
- /cloudbroker/compute/migrate_storage_list
|
- /cloudbroker/compute/migrate_storage_list
|
||||||
- /cloudbroker/compute/start_migration_in
|
- /cloudbroker/compute/start_migration_in
|
||||||
- /cloudbroker/compute/start_migration_out
|
- /cloudbroker/compute/start_migration_out
|
||||||
@@ -1015,47 +1025,15 @@ class RequestException(Exception):
|
|||||||
|
|
||||||
<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
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
<details><summary>extnet</summary>
|
|
||||||
|
|
||||||
- /cloudbroker/extnet/create
|
|
||||||
|
|
||||||
</details>
|
|
||||||
|
|
||||||
<details><summary>image</summary>
|
<details><summary>image</summary>
|
||||||
|
|
||||||
- /cloudbroker/image/change_storage_policy
|
- /cloudbroker/image/change_storage_policy
|
||||||
- /cloudbroker/image/createImage
|
|
||||||
- /cloudbroker/image/get
|
|
||||||
- /cloudbroker/image/list
|
|
||||||
|
|
||||||
</details>
|
|
||||||
|
|
||||||
<details><summary>kvmx86</summary>
|
|
||||||
|
|
||||||
- /cloudbroker/kvmx86/create
|
|
||||||
|
|
||||||
</details>
|
|
||||||
|
|
||||||
<details><summary>kvmx86</summary>
|
|
||||||
|
|
||||||
- /cloudbroker/kvmx86/createBlank
|
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
@@ -1070,10 +1048,7 @@ class RequestException(Exception):
|
|||||||
<details><summary>rg</summary>
|
<details><summary>rg</summary>
|
||||||
|
|
||||||
- /cloudbroker/rg/add_storage_policy
|
- /cloudbroker/rg/add_storage_policy
|
||||||
- /cloudbroker/rg/create
|
|
||||||
- /cloudbroker/rg/del_storage_policy
|
- /cloudbroker/rg/del_storage_policy
|
||||||
- /cloudbroker/rg/get
|
|
||||||
- /cloudbroker/rg/list
|
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
@@ -1115,10 +1090,6 @@ class RequestException(Exception):
|
|||||||
|
|
||||||
<details><summary>vins</summary>
|
<details><summary>vins</summary>
|
||||||
|
|
||||||
- /cloudbroker/vins/createInAccount
|
|
||||||
- /cloudbroker/vins/createInRG
|
|
||||||
- /cloudbroker/vins/get
|
|
||||||
- /cloudbroker/vins/list
|
|
||||||
- /cloudbroker/vins/update
|
- /cloudbroker/vins/update
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|||||||
+4
-4
@@ -5,16 +5,16 @@ authors = [
|
|||||||
{name = "Vladislav Nesterov"},
|
{name = "Vladislav Nesterov"},
|
||||||
{name = "Stanislav Karimov"},
|
{name = "Stanislav Karimov"},
|
||||||
]
|
]
|
||||||
version = "2.0.3"
|
version = "1.5.5"
|
||||||
|
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
|
||||||
requires-python = ">=3.12"
|
requires-python = "==3.12.*"
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"requests>=2.32.3",
|
"requests==2.32.3",
|
||||||
"pydantic==2.10.5",
|
"pydantic==2.10.5",
|
||||||
"pyyaml>=6.0.2",
|
"pyyaml==6.0.2",
|
||||||
]
|
]
|
||||||
|
|
||||||
[project.urls]
|
[project.urls]
|
||||||
|
|||||||
@@ -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()
|
||||||
@@ -230,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):
|
||||||
@@ -399,11 +388,6 @@ class FlipGroupNetType(str, _AutoNameEnum):
|
|||||||
VINS = _enum_auto()
|
VINS = _enum_auto()
|
||||||
|
|
||||||
|
|
||||||
class VMFolderStatus(str, _AutoNameEnum):
|
|
||||||
CREATED = _enum_auto()
|
|
||||||
DESTROYED = _enum_auto()
|
|
||||||
|
|
||||||
|
|
||||||
class PoolDiskType(str, _AutoNameEnum):
|
class PoolDiskType(str, _AutoNameEnum):
|
||||||
BOOT = 'B'
|
BOOT = 'B'
|
||||||
DATA = 'D'
|
DATA = 'D'
|
||||||
@@ -659,16 +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'
|
|
||||||
@@ -31,54 +31,12 @@ class InterfaceAPIParamsNM(_base.BaseAPIParamsNestedModel):
|
|||||||
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
|
|
||||||
|
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
|
|
||||||
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
|
||||||
|
|||||||
@@ -41,23 +41,6 @@ class VMACLAPIResultNM(_base.BaseAPIResultNestedModel):
|
|||||||
rg: list[AccessAPIResultNM]
|
rg: list[AccessAPIResultNM]
|
||||||
|
|
||||||
|
|
||||||
class VMFolderACLAPIResultNM(_base.BaseAPIResultNestedModel):
|
|
||||||
explicit: bool
|
|
||||||
right: _enums.AccessTypeForSet
|
|
||||||
status: _enums.ACLStatus
|
|
||||||
type: _enums.ACLType
|
|
||||||
user_group_id: str
|
|
||||||
|
|
||||||
|
|
||||||
class VMFolderAPIResultNM(_base.BaseAPIResultNestedModel):
|
|
||||||
acl: list[VMFolderACLAPIResultNM]
|
|
||||||
id: int
|
|
||||||
name: str
|
|
||||||
parent_id: int
|
|
||||||
status: _enums.VMFolderStatus
|
|
||||||
vm_count: int
|
|
||||||
|
|
||||||
|
|
||||||
class LibvirtSettingsAPIResultNM(_base.BaseAPIResultNestedModel):
|
class LibvirtSettingsAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||||
event_idx: _EmptyStr | _enums.EventIdx
|
event_idx: _EmptyStr | _enums.EventIdx
|
||||||
guid: str
|
guid: str
|
||||||
@@ -73,7 +56,6 @@ class InterfaceForComputeListAPIResultNM(_base.BaseAPIResultNestedModel):
|
|||||||
conn_id: int
|
conn_id: int
|
||||||
conn_type: str
|
conn_type: str
|
||||||
default_gw: str
|
default_gw: str
|
||||||
enable_default_gateway: bool
|
|
||||||
enabled: bool
|
enabled: bool
|
||||||
flip_group_id: int
|
flip_group_id: int
|
||||||
guid: str
|
guid: str
|
||||||
@@ -102,7 +84,6 @@ class InterfaceForComputeGetAPIResultNM(_base.BaseAPIResultNestedModel):
|
|||||||
conn_id: int
|
conn_id: int
|
||||||
conn_type: str
|
conn_type: str
|
||||||
default_gw: str
|
default_gw: str
|
||||||
enable_default_gateway: bool
|
|
||||||
security_group_mode: bool
|
security_group_mode: bool
|
||||||
enabled: bool
|
enabled: bool
|
||||||
flip_group_id: int
|
flip_group_id: int
|
||||||
@@ -132,7 +113,6 @@ class VNFDevInterfaceAPIResultNM(_base.BaseAPIResultNestedModel):
|
|||||||
conn_id: int
|
conn_id: int
|
||||||
conn_type: str
|
conn_type: str
|
||||||
default_gw: str
|
default_gw: str
|
||||||
enable_default_gateway: bool
|
|
||||||
enabled: bool
|
enabled: bool
|
||||||
flip_group_id: int
|
flip_group_id: int
|
||||||
guid: str
|
guid: str
|
||||||
@@ -156,138 +136,11 @@ class VNFDevInterfaceAPIResultNM(_base.BaseAPIResultNestedModel):
|
|||||||
vnf_ids: list[int]
|
vnf_ids: list[int]
|
||||||
|
|
||||||
|
|
||||||
class GuestAgentAPIResultNM(_base.BaseAPIResultNestedModel):
|
|
||||||
enabled: bool
|
|
||||||
available_commands: list[str]
|
|
||||||
guid: str | None = None
|
|
||||||
last_update_timestamp: int
|
|
||||||
user_name: str
|
|
||||||
|
|
||||||
@_base.computed_field
|
|
||||||
def last_update_datetime(self) -> _base.datetime | None:
|
|
||||||
return self._get_datetime_from_timestamp(self.last_update_timestamp)
|
|
||||||
|
|
||||||
|
|
||||||
class VGPUAPIResultNM(_base.BaseAPIResultNestedModel):
|
|
||||||
account_id: int
|
|
||||||
bus_num: int
|
|
||||||
created_timestamp: int
|
|
||||||
deleted_timestamp: int
|
|
||||||
grid_id: int
|
|
||||||
guid: int
|
|
||||||
id: int
|
|
||||||
last_claimed_by: int
|
|
||||||
last_update_timestamp: int
|
|
||||||
pci_slot_num: int
|
|
||||||
pgpu_id: int
|
|
||||||
pgpu_mode: _enums.PGPUMode
|
|
||||||
pgpu_processor_type: _enums.PGPUProcessorType
|
|
||||||
profile_id: int | None
|
|
||||||
ram_size_mb: int
|
|
||||||
reference_id: str
|
|
||||||
rg_id: int
|
|
||||||
status: _enums.VGPUStatus
|
|
||||||
vm_id: int
|
|
||||||
|
|
||||||
@_base.computed_field
|
|
||||||
def created_datetime(self) -> _base.datetime | None:
|
|
||||||
return self._get_datetime_from_timestamp(self.created_timestamp)
|
|
||||||
|
|
||||||
@_base.computed_field
|
|
||||||
def deleted_datetime(self) -> _base.datetime | None:
|
|
||||||
return self._get_datetime_from_timestamp(self.deleted_timestamp)
|
|
||||||
|
|
||||||
@_base.computed_field
|
|
||||||
def last_update_datetime(self) -> _base.datetime | None:
|
|
||||||
return self._get_datetime_from_timestamp(self.last_update_timestamp)
|
|
||||||
|
|
||||||
|
|
||||||
class OSUserAPIResultNM(_base.BaseAPIResultNestedModel):
|
|
||||||
guid: str
|
|
||||||
login: str
|
|
||||||
password: str
|
|
||||||
ssh_public_key: str
|
|
||||||
|
|
||||||
|
|
||||||
class ComputeForSnapshotSetAPIResultNM(_base.BaseAPIResultNestedModel):
|
|
||||||
account_id: int
|
|
||||||
acl: list[_typing.Any] # BDX-7995
|
|
||||||
affinity_label: str
|
|
||||||
affinity_rules: list[AffinityRuleAPIResultNM]
|
|
||||||
affinity_weight: int
|
|
||||||
anti_affinity_rules: list[AffinityRuleAPIResultNM]
|
|
||||||
arch: str
|
|
||||||
auto_start: bool
|
|
||||||
boot_disk_size_gb: int
|
|
||||||
boot_image_id: int
|
|
||||||
boot_loader_type: _enums.BootLoaderType
|
|
||||||
boot_mode: _enums.BootMode
|
|
||||||
boot_order: list[_enums.BootDevice]
|
|
||||||
cdrom_image_id: int
|
|
||||||
chipset: _enums.Chipset
|
|
||||||
ci_user_data: dict
|
|
||||||
clock_sync_mode: _enums.ClockSyncMode
|
|
||||||
clone_ids: list[int]
|
|
||||||
clone_reference: int
|
|
||||||
cpu_alignment_profile: dict
|
|
||||||
cpu_count: int
|
|
||||||
cpu_pin: bool
|
|
||||||
custom_fields: dict
|
|
||||||
description: str
|
|
||||||
disks: list[dict[str, int]]
|
|
||||||
driver: _enums.Driver
|
|
||||||
folder_id: int | None = None
|
|
||||||
grid_id: int
|
|
||||||
guest_agent: GuestAgentAPIResultNM
|
|
||||||
guid: int
|
|
||||||
hot_resize: bool
|
|
||||||
hp_backed: bool
|
|
||||||
id: int
|
|
||||||
interfaces: list[InterfaceForComputeGetAPIResultNM]
|
|
||||||
live_migration_job_id: int
|
|
||||||
lock_status: _enums.LockStatus
|
|
||||||
manager_id: int
|
|
||||||
manager_type: str
|
|
||||||
migration_job_id: int
|
|
||||||
milestones: int
|
|
||||||
name: str
|
|
||||||
need_reboot: bool
|
|
||||||
network_interface_naming: _enums.NetIfaceNamingTemplate
|
|
||||||
node_id: int | None
|
|
||||||
numa_affinity: _enums.NumaAffinity
|
|
||||||
numa_node_id: int
|
|
||||||
os_users: list[OSUserAPIResultNM]
|
|
||||||
os_version: str
|
|
||||||
pci_devices: dict[str, int]
|
|
||||||
pinned_to_node: int
|
|
||||||
preferred_cpu_cores: list[int]
|
|
||||||
ram_size_mb: int
|
|
||||||
read_only: bool
|
|
||||||
reference_id: str
|
|
||||||
res_name: str
|
|
||||||
reserved_cpu_cores: list[int]
|
|
||||||
resized_online: bool | None = None
|
|
||||||
rg_id: int
|
|
||||||
stateless_sep_id: int
|
|
||||||
stateless_sep_type: str
|
|
||||||
status: _enums.VMStatus
|
|
||||||
tags: dict
|
|
||||||
tech_status: _enums.VMTechStatus
|
|
||||||
user_managed: bool
|
|
||||||
vgpus: list[VGPUAPIResultNM]
|
|
||||||
vm_ci_id: int
|
|
||||||
vnc_password: str
|
|
||||||
weight: int
|
|
||||||
zone_id: int
|
|
||||||
|
|
||||||
|
|
||||||
class SnapshotSetAPIResultNM(_base.BaseAPIResultNestedModel):
|
class SnapshotSetAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||||
disk_ids: list[int]
|
disk_ids: list[int]
|
||||||
guid: str
|
guid: str
|
||||||
label: str
|
label: str
|
||||||
timestamp: int
|
timestamp: int
|
||||||
memory_dump_image_id: int | None
|
|
||||||
vm: ComputeForSnapshotSetAPIResultNM
|
|
||||||
|
|
||||||
@_base.computed_field
|
@_base.computed_field
|
||||||
def datetime(self) -> _base.datetime | None:
|
def datetime(self) -> _base.datetime | None:
|
||||||
@@ -313,7 +166,6 @@ class IOTuneAPIResultNM(_base.BaseAPIResultNestedModel):
|
|||||||
class SnapshotAPIResultNM(_base.BaseAPIResultNestedModel):
|
class SnapshotAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||||
guid: str
|
guid: str
|
||||||
label: str
|
label: str
|
||||||
pool_name: str | None = None
|
|
||||||
reference_id: str
|
reference_id: str
|
||||||
res_id: str
|
res_id: str
|
||||||
snapshot_set_guid: str
|
snapshot_set_guid: str
|
||||||
@@ -341,12 +193,12 @@ class ReplicationAPIResultNM(_base.BaseAPIResultNestedModel):
|
|||||||
class DiskForCAComputeListAPIResultNM(_base.BaseAPIResultNestedModel):
|
class DiskForCAComputeListAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||||
id: int
|
id: int
|
||||||
sep_id: int | None = None
|
sep_id: int | None = None
|
||||||
read_only_mode: bool
|
|
||||||
|
|
||||||
|
|
||||||
class DiskForCAComputeGetAPIResultNM(_base.BaseAPIResultNestedModel):
|
class DiskForCAComputeGetAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||||
account_id: int
|
account_id: int
|
||||||
acl: dict
|
acl: dict
|
||||||
|
blkdiscard: bool
|
||||||
block_size: _enums.DiskBlockSize
|
block_size: _enums.DiskBlockSize
|
||||||
boot_partition: int
|
boot_partition: int
|
||||||
bus_num: int
|
bus_num: int
|
||||||
@@ -359,7 +211,6 @@ class DiskForCAComputeGetAPIResultNM(_base.BaseAPIResultNestedModel):
|
|||||||
destruction_timestamp: int
|
destruction_timestamp: int
|
||||||
device_name: str
|
device_name: str
|
||||||
disk_path: str
|
disk_path: str
|
||||||
discard: _enums.DiskDiscard
|
|
||||||
grid_id: int
|
grid_id: int
|
||||||
guid: int
|
guid: int
|
||||||
id: int
|
id: int
|
||||||
@@ -380,7 +231,6 @@ class DiskForCAComputeGetAPIResultNM(_base.BaseAPIResultNestedModel):
|
|||||||
provision: _enums.DiskProvisionType
|
provision: _enums.DiskProvisionType
|
||||||
purge_timestamp: int
|
purge_timestamp: int
|
||||||
reality_device_number: int
|
reality_device_number: int
|
||||||
read_only_mode: bool
|
|
||||||
replication: ReplicationAPIResultNM | dict
|
replication: ReplicationAPIResultNM | dict
|
||||||
res_id: str
|
res_id: str
|
||||||
role: str
|
role: str
|
||||||
@@ -424,6 +274,7 @@ class DiskForListAndListDeletedAPIResultNM(_base.BaseAPIResultNestedModel):
|
|||||||
account_id: int
|
account_id: int
|
||||||
account_name: str
|
account_name: str
|
||||||
acl: dict
|
acl: dict
|
||||||
|
blkdiscard: bool
|
||||||
block_size: _enums.DiskBlockSize
|
block_size: _enums.DiskBlockSize
|
||||||
cache_mode: _enums.DiskCacheMode
|
cache_mode: _enums.DiskCacheMode
|
||||||
created_by: str
|
created_by: str
|
||||||
@@ -433,7 +284,6 @@ class DiskForListAndListDeletedAPIResultNM(_base.BaseAPIResultNestedModel):
|
|||||||
description: str
|
description: str
|
||||||
destruction_timestamp: int
|
destruction_timestamp: int
|
||||||
device_name: str | None = None
|
device_name: str | None = None
|
||||||
discard: _enums.DiskDiscard
|
|
||||||
grid_id: int
|
grid_id: int
|
||||||
id: int
|
id: int
|
||||||
image_id: int
|
image_id: int
|
||||||
@@ -467,7 +317,6 @@ class DiskForListAndListDeletedAPIResultNM(_base.BaseAPIResultNestedModel):
|
|||||||
vm_id: int | None
|
vm_id: int | None
|
||||||
vm_name: str | None
|
vm_name: str | None
|
||||||
vms: dict[str, str]
|
vms: dict[str, str]
|
||||||
vms_with_read_only: dict[str, bool]
|
|
||||||
updated_timestamp: int = 0
|
updated_timestamp: int = 0
|
||||||
|
|
||||||
@_base.computed_field
|
@_base.computed_field
|
||||||
@@ -495,13 +344,13 @@ class DiskForListUnattachedAPIResultNM(_base.BaseAPIResultNestedModel):
|
|||||||
account_id: int
|
account_id: int
|
||||||
account_name: str
|
account_name: str
|
||||||
acl: dict
|
acl: dict
|
||||||
|
blkdiscard: bool
|
||||||
boot_partition: int
|
boot_partition: int
|
||||||
block_size: _enums.DiskBlockSize
|
block_size: _enums.DiskBlockSize
|
||||||
created_timestamp: int
|
created_timestamp: int
|
||||||
deleted_timestamp: int
|
deleted_timestamp: int
|
||||||
description: str
|
description: str
|
||||||
destruction_timestamp: int
|
destruction_timestamp: int
|
||||||
discard: _enums.DiskDiscard
|
|
||||||
disk_path: str
|
disk_path: str
|
||||||
cache_mode: _enums.DiskCacheMode
|
cache_mode: _enums.DiskCacheMode
|
||||||
grid_id: int
|
grid_id: int
|
||||||
@@ -583,7 +432,7 @@ class ResourceGroupAPIResultNM(_base.BaseAPIResultNestedModel):
|
|||||||
acl: list[AccessAPIResultNM]
|
acl: list[AccessAPIResultNM]
|
||||||
vm_features: list[_enums.VMFeature]
|
vm_features: list[_enums.VMFeature]
|
||||||
cpu_allocation_parameter: str
|
cpu_allocation_parameter: str
|
||||||
cpu_allocation_ratio: int
|
cpu_allocation_ratio: int | float
|
||||||
created_by: str
|
created_by: str
|
||||||
created_timestamp: int
|
created_timestamp: int
|
||||||
default_net_id: int
|
default_net_id: int
|
||||||
@@ -651,10 +500,50 @@ class AccountForCAAPIResultNM(_base.BaseAPIResultNestedModel):
|
|||||||
return self._get_datetime_from_timestamp(self.updated_timestamp)
|
return self._get_datetime_from_timestamp(self.updated_timestamp)
|
||||||
|
|
||||||
|
|
||||||
class CPUAlignmentProfileAPIResultNM(_base.BaseAPIResultNestedModel):
|
class GuestAgentAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||||
name: str
|
enabled: bool
|
||||||
vendor: str
|
available_commands: list[str]
|
||||||
model: str
|
guid: str | None = None
|
||||||
|
last_update_timestamp: int
|
||||||
|
user_name: str
|
||||||
|
|
||||||
|
@_base.computed_field
|
||||||
|
def last_update_datetime(self) -> _base.datetime | None:
|
||||||
|
return self._get_datetime_from_timestamp(self.last_update_timestamp)
|
||||||
|
|
||||||
|
|
||||||
|
class VGPUAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||||
|
account_id: int
|
||||||
|
bus_num: int
|
||||||
|
created_timestamp: int
|
||||||
|
deleted_timestamp: int
|
||||||
|
grid_id: int
|
||||||
|
guid: int
|
||||||
|
id: int
|
||||||
|
last_claimed_by: int
|
||||||
|
last_update_timestamp: int
|
||||||
|
pci_slot_num: int
|
||||||
|
pgpu_id: int
|
||||||
|
pgpu_mode: _enums.PGPUMode
|
||||||
|
pgpu_processor_type: _enums.PGPUProcessorType
|
||||||
|
profile_id: int | None
|
||||||
|
ram_size_mb: int
|
||||||
|
reference_id: str
|
||||||
|
rg_id: int
|
||||||
|
status: _enums.VGPUStatus
|
||||||
|
vm_id: int
|
||||||
|
|
||||||
|
@_base.computed_field
|
||||||
|
def created_datetime(self) -> _base.datetime | None:
|
||||||
|
return self._get_datetime_from_timestamp(self.created_timestamp)
|
||||||
|
|
||||||
|
@_base.computed_field
|
||||||
|
def deleted_datetime(self) -> _base.datetime | None:
|
||||||
|
return self._get_datetime_from_timestamp(self.deleted_timestamp)
|
||||||
|
|
||||||
|
@_base.computed_field
|
||||||
|
def last_update_datetime(self) -> _base.datetime | None:
|
||||||
|
return self._get_datetime_from_timestamp(self.last_update_timestamp)
|
||||||
|
|
||||||
|
|
||||||
class VMAPIResultNM(_base.BaseAPIResultNestedModel):
|
class VMAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||||
@@ -674,10 +563,8 @@ class VMAPIResultNM(_base.BaseAPIResultNestedModel):
|
|||||||
boot_order: list[_enums.BootDevice]
|
boot_order: list[_enums.BootDevice]
|
||||||
cdrom_image_id: int
|
cdrom_image_id: int
|
||||||
chipset: _enums.Chipset
|
chipset: _enums.Chipset
|
||||||
clock_sync_mode: _enums.ClockSyncMode
|
|
||||||
clone_ids: list[int]
|
clone_ids: list[int]
|
||||||
clone_reference: int
|
clone_reference: int
|
||||||
cpu_alignment_profile: CPUAlignmentProfileAPIResultNM | dict
|
|
||||||
cpu_count: int
|
cpu_count: int
|
||||||
cpu_pin: bool
|
cpu_pin: bool
|
||||||
created_by: str
|
created_by: str
|
||||||
@@ -689,7 +576,6 @@ class VMAPIResultNM(_base.BaseAPIResultNestedModel):
|
|||||||
pci_devices: dict[str, int]
|
pci_devices: dict[str, int]
|
||||||
disks: list[DiskForCAComputeListAPIResultNM]
|
disks: list[DiskForCAComputeListAPIResultNM]
|
||||||
driver: _enums.Driver
|
driver: _enums.Driver
|
||||||
folder_id: int | None = None
|
|
||||||
grid_id: int
|
grid_id: int
|
||||||
guid: int
|
guid: int
|
||||||
hot_resize: bool
|
hot_resize: bool
|
||||||
@@ -715,7 +601,6 @@ class VMAPIResultNM(_base.BaseAPIResultNestedModel):
|
|||||||
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[SnapshotSetAPIResultNM]
|
snapshot_sets: list[SnapshotSetAPIResultNM]
|
||||||
@@ -790,121 +675,11 @@ class ImageHistoryRecordAPIResultNM(_base.BaseAPIResultNestedModel):
|
|||||||
return self._get_datetime_from_timestamp(self.timestamp)
|
return self._get_datetime_from_timestamp(self.timestamp)
|
||||||
|
|
||||||
|
|
||||||
class ImageForCBListAPIResultNM(_base.BaseAPIResultNestedModel):
|
|
||||||
unc_path: str
|
|
||||||
account_id: int
|
|
||||||
acl: list[_typing.Any]
|
|
||||||
architecture: str
|
|
||||||
boot_type: str | None
|
|
||||||
bootable: bool
|
|
||||||
cd_presented_to: dict[str, list[int]]
|
|
||||||
computeci_id: int
|
|
||||||
deleted_time: int
|
|
||||||
desc: str
|
|
||||||
drivers: list[_enums.Driver]
|
|
||||||
enabled: bool
|
|
||||||
gid: int
|
|
||||||
guid: int
|
|
||||||
history: list[ImageHistoryRecordAPIResultNM]
|
|
||||||
hot_resize: bool
|
|
||||||
id: int
|
|
||||||
last_modified: int
|
|
||||||
link_to: int
|
|
||||||
milestones: int
|
|
||||||
name: str
|
|
||||||
network_interface_naming: _enums.NetIfaceNamingTemplate
|
|
||||||
password: str | None
|
|
||||||
pool: str
|
|
||||||
present_to: dict[str, int]
|
|
||||||
provider_name: str
|
|
||||||
purge_attempts: int
|
|
||||||
reference_id: str
|
|
||||||
res_id: str | None
|
|
||||||
res_name: str
|
|
||||||
rescuecd: bool
|
|
||||||
sep_id: int
|
|
||||||
shared_with: list[int]
|
|
||||||
size: int
|
|
||||||
snapshot_id: str
|
|
||||||
status: _enums.ImageStatus
|
|
||||||
storage_policy_id: int
|
|
||||||
tech_status: _enums.ImageTechStatus
|
|
||||||
to_clean: bool
|
|
||||||
type: _enums.ImageType
|
|
||||||
url: str
|
|
||||||
username: str | None
|
|
||||||
version: str
|
|
||||||
independent: bool | None = None
|
|
||||||
links_to: list[int] | None = None
|
|
||||||
virtual: bool | None = None
|
|
||||||
|
|
||||||
|
|
||||||
class VINSVMAPIResultNM(_base.BaseAPIResultNestedModel):
|
class VINSVMAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||||
id: int
|
id: int
|
||||||
name: str
|
name: str
|
||||||
|
|
||||||
|
|
||||||
class VINSVNFSForListAPIResultNM(_base.BaseAPIResultNestedModel):
|
|
||||||
dhcp: int
|
|
||||||
dns: int
|
|
||||||
fw: int
|
|
||||||
gw: int
|
|
||||||
nat: int
|
|
||||||
vpn: int
|
|
||||||
|
|
||||||
|
|
||||||
class VINSForListCBAPIResultNM(_base.BaseAPIResultNestedModel):
|
|
||||||
account_id: int
|
|
||||||
account_name: str
|
|
||||||
created_by: str
|
|
||||||
created_time: int
|
|
||||||
default_gw: str
|
|
||||||
default_qos: QOSAPIResultNM
|
|
||||||
deleted_by: str
|
|
||||||
deleted_time: int
|
|
||||||
desc: str
|
|
||||||
enable_default_gateway: bool
|
|
||||||
enable_secgroups: bool
|
|
||||||
external_ip: str
|
|
||||||
extnet_id: int
|
|
||||||
free_ips: int
|
|
||||||
gid: int
|
|
||||||
guid: int
|
|
||||||
id: int
|
|
||||||
lock_status: _enums.LockStatus
|
|
||||||
manager_id: int
|
|
||||||
manager_type: str
|
|
||||||
milestones: int
|
|
||||||
name: str
|
|
||||||
net_mask: int
|
|
||||||
network: str
|
|
||||||
pre_reservations_num: int
|
|
||||||
pri_vnf_dev_id: int
|
|
||||||
redundant: bool
|
|
||||||
rg_id: int
|
|
||||||
rg_name: str
|
|
||||||
sec_vnf_dev_id: int
|
|
||||||
status: _enums.VINSStatus
|
|
||||||
updated_by: str
|
|
||||||
updated_time: int
|
|
||||||
user_managed: bool
|
|
||||||
vnfs: VINSVNFSForListAPIResultNM
|
|
||||||
vxlan_id: int
|
|
||||||
zone_id: int
|
|
||||||
|
|
||||||
@_base.computed_field
|
|
||||||
def created_datetime(self) -> _base.datetime | None:
|
|
||||||
return self._get_datetime_from_timestamp(self.created_time)
|
|
||||||
|
|
||||||
@_base.computed_field
|
|
||||||
def deleted_datetime(self) -> _base.datetime | None:
|
|
||||||
return self._get_datetime_from_timestamp(self.deleted_time)
|
|
||||||
|
|
||||||
@_base.computed_field
|
|
||||||
def updated_datetime(self) -> _base.datetime | None:
|
|
||||||
return self._get_datetime_from_timestamp(self.updated_time)
|
|
||||||
|
|
||||||
|
|
||||||
class VINSForListAPIResultNM(_base.BaseAPIResultNestedModel):
|
class VINSForListAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||||
account_id: int
|
account_id: int
|
||||||
account_name: str
|
account_name: str
|
||||||
@@ -1006,7 +781,6 @@ class DHCPReservationAPIResultNM(_base.BaseAPIResultNestedModel):
|
|||||||
class DHCPVNFConfigAPIResultNM(_base.BaseAPIResultNestedModel):
|
class DHCPVNFConfigAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||||
default_gw: str
|
default_gw: str
|
||||||
dns_servers: list[str]
|
dns_servers: list[str]
|
||||||
enable_default_gateway: None | bool = None
|
|
||||||
ip_pool_end: str
|
ip_pool_end: str
|
||||||
ip_pool_start: str
|
ip_pool_start: str
|
||||||
lease_time: int
|
lease_time: int
|
||||||
@@ -1262,6 +1036,13 @@ class BServiceGroupOSUserAPIResultNM(_base.BaseAPIResultNestedModel):
|
|||||||
password: str
|
password: str
|
||||||
|
|
||||||
|
|
||||||
|
class OSUserAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||||
|
guid: str
|
||||||
|
login: str
|
||||||
|
password: str
|
||||||
|
ssh_public_key: str
|
||||||
|
|
||||||
|
|
||||||
class BServiceGroupVMAPIResultNM(_base.BaseAPIResultNestedModel):
|
class BServiceGroupVMAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||||
chipset: _enums.Chipset
|
chipset: _enums.Chipset
|
||||||
id: int
|
id: int
|
||||||
@@ -1275,7 +1056,6 @@ class ExtNetForListAPIResultNM(_base.BaseAPIResultNestedModel):
|
|||||||
ip_cidr: str
|
ip_cidr: str
|
||||||
name: str
|
name: str
|
||||||
status: _enums.ExtNetStatus
|
status: _enums.ExtNetStatus
|
||||||
free_ip_count: int
|
|
||||||
|
|
||||||
|
|
||||||
class FlipGroupForListAPIResultNM(_base.BaseAPIResultNestedModel):
|
class FlipGroupForListAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||||
@@ -1414,7 +1194,6 @@ class LocationAPIResultNM(_base.BaseAPIResultNestedModel):
|
|||||||
name: str
|
name: str
|
||||||
network_modes: list[str]
|
network_modes: list[str]
|
||||||
sdn_support: bool
|
sdn_support: bool
|
||||||
vm_folders_enabled: bool
|
|
||||||
zero_access_enabled: bool
|
zero_access_enabled: bool
|
||||||
bro_enabled: bool
|
bro_enabled: bool
|
||||||
|
|
||||||
@@ -1636,44 +1415,6 @@ class VFPoolAPIResultNM(_base.BaseAPIResultNestedModel):
|
|||||||
return self._get_datetime_from_timestamp(self.updated_timestamp)
|
return self._get_datetime_from_timestamp(self.updated_timestamp)
|
||||||
|
|
||||||
|
|
||||||
class ACLForVMFolderGetAPIResultNM(_base.BaseAPIResultNestedModel):
|
|
||||||
explicit: bool
|
|
||||||
right: _enums.AccessType
|
|
||||||
status: _enums.ACLStatus
|
|
||||||
type: _enums.ACLType
|
|
||||||
user_group_id: str
|
|
||||||
|
|
||||||
|
|
||||||
class VMFolderGetAPIResultNM(_base.BaseAPIResultNestedModel):
|
|
||||||
acl: list[ACLForVMFolderGetAPIResultNM]
|
|
||||||
compute_ids: list[int] | None = None
|
|
||||||
created_time: int
|
|
||||||
deleted_time: int | None = None
|
|
||||||
gid: int
|
|
||||||
id: int
|
|
||||||
name: str
|
|
||||||
parent_id: int
|
|
||||||
rg_id: int
|
|
||||||
status: _enums.VMFolderStatus
|
|
||||||
updated_time: int | None = None
|
|
||||||
|
|
||||||
@_base.computed_field
|
|
||||||
def created_datetime(self) -> _base.datetime | None:
|
|
||||||
return self._get_datetime_from_timestamp(self.created_time)
|
|
||||||
|
|
||||||
@_base.computed_field
|
|
||||||
def deleted_datetime(self) -> _base.datetime | None:
|
|
||||||
if self.deleted_time is None:
|
|
||||||
return None
|
|
||||||
return self._get_datetime_from_timestamp(self.deleted_time)
|
|
||||||
|
|
||||||
@_base.computed_field
|
|
||||||
def updated_datetime(self) -> _base.datetime | None:
|
|
||||||
if self.updated_time is None:
|
|
||||||
return None
|
|
||||||
return self._get_datetime_from_timestamp(self.updated_time)
|
|
||||||
|
|
||||||
|
|
||||||
class ZoneForListAPIResultNM(_base.BaseAPIResultNestedModel):
|
class ZoneForListAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||||
created_timestamp: int
|
created_timestamp: int
|
||||||
deletable: bool
|
deletable: bool
|
||||||
@@ -1681,7 +1422,6 @@ class ZoneForListAPIResultNM(_base.BaseAPIResultNestedModel):
|
|||||||
drs_broadcast_ip_addr: str
|
drs_broadcast_ip_addr: str
|
||||||
drs_bvs_domain: str
|
drs_bvs_domain: str
|
||||||
drs_dx_app_id: str
|
drs_dx_app_id: str
|
||||||
cpu_alignment_profiles: list[CPUAlignmentProfileAPIResultNM]
|
|
||||||
drs_dx_ssl_skip_verify: bool
|
drs_dx_ssl_skip_verify: bool
|
||||||
drs_dx_sso_type: _enums.DRSDXSSOType
|
drs_dx_sso_type: _enums.DRSDXSSOType
|
||||||
drs_dx_sso_url: str
|
drs_dx_sso_url: str
|
||||||
@@ -1696,8 +1436,6 @@ class ZoneForListAPIResultNM(_base.BaseAPIResultNestedModel):
|
|||||||
node_auto_start: bool
|
node_auto_start: bool
|
||||||
node_ids: list[int]
|
node_ids: list[int]
|
||||||
drs_ping_ip_addr: str
|
drs_ping_ip_addr: str
|
||||||
reserved_cpu: int
|
|
||||||
reserved_ram: int
|
|
||||||
status: _enums.ZoneStatus
|
status: _enums.ZoneStatus
|
||||||
updated_timestamp: int
|
updated_timestamp: int
|
||||||
|
|
||||||
@@ -1851,7 +1589,6 @@ class AuditAPIResultNM(_base.BaseAPIResultNestedModel):
|
|||||||
user_name: str
|
user_name: str
|
||||||
vins_id: int | None = None
|
vins_id: int | None = None
|
||||||
vm_id: int | None = None
|
vm_id: int | None = None
|
||||||
vmfolder_id: int | None = None
|
|
||||||
|
|
||||||
@_base.computed_field
|
@_base.computed_field
|
||||||
def request_datetime(self) -> _base.datetime | None:
|
def request_datetime(self) -> _base.datetime | None:
|
||||||
@@ -1880,6 +1617,7 @@ class UserAPIResultNM(_base.BaseAPIResultNestedModel):
|
|||||||
id: str
|
id: str
|
||||||
last_check_timestamp: int
|
last_check_timestamp: int
|
||||||
mobile: list[_typing.Any]
|
mobile: list[_typing.Any]
|
||||||
|
password: str
|
||||||
protected: bool | None = None
|
protected: bool | None = None
|
||||||
roles: list[_typing.Any]
|
roles: list[_typing.Any]
|
||||||
service_account: bool
|
service_account: bool
|
||||||
|
|||||||
@@ -24,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 *
|
||||||
|
|
||||||
|
|
||||||
@@ -54,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
|
||||||
@@ -15,16 +15,17 @@ 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_user: CloudapiAccountAddUserImpl
|
pass
|
||||||
restore: CloudapiAccountRestoreImpl
|
|
||||||
delete: CloudapiAccountDeleteImpl
|
|
||||||
disable: CloudapiAccountDisableImpl
|
|
||||||
delete_user: CloudapiAccountDeleteUserImpl
|
|
||||||
list: CloudapiAccountListImpl
|
|
||||||
update_user: CloudapiAccountUpdateUserImpl
|
|
||||||
get: CloudapiAccountGetImpl
|
|
||||||
get_resource_consumption: CloudapiAccountGetResourceConsumptionImpl
|
|
||||||
update: CloudapiAccountUpdateImpl
|
|
||||||
list_deleted: CloudapiAccountListDeletedImpl
|
|
||||||
enable: CloudapiAccountEnableImpl
|
|
||||||
@@ -2,14 +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,
|
||||||
) -> bool:
|
) -> CloudapiAccountAddUserResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,13 +1,15 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAccountDeleteImpl(_base.APIFunctionImpl):
|
class CloudapiAccountDeleteResultStr(_base.BaseAPIResultStr):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiAccountDeleteProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def delete(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
account_id: int,
|
account_id: int,
|
||||||
permanently: bool = False,
|
permanently: bool = False,
|
||||||
) -> str:
|
) -> CloudapiAccountDeleteResultStr:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,13 +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,
|
||||||
) -> bool:
|
) -> CloudapiAccountDeleteUserResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,12 +1,14 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAccountDisableImpl(_base.APIFunctionImpl):
|
class CloudapiAccountDisableResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiAccountDisableProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def disable(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
account_id: int,
|
account_id: int,
|
||||||
) -> bool:
|
) -> CloudapiAccountDisableResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,12 +1,14 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAccountEnableImpl(_base.APIFunctionImpl):
|
class CloudapiAccountEnableResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiAccountEnableProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def enable(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
account_id: int,
|
account_id: int,
|
||||||
) -> bool:
|
) -> CloudapiAccountEnableResultBool:
|
||||||
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 CloudapiAccountGetResultModel(_base.BaseModel):
|
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.BaseModel):
|
|||||||
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.BaseModel,
|
_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.BaseModel):
|
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.BaseModel):
|
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,12 +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,
|
||||||
) -> str:
|
) -> CloudapiAccountRestoreResultStr:
|
||||||
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,5 +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,
|
||||||
) -> bool:
|
) -> CloudapiAccountUpdateResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -2,14 +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,
|
||||||
) -> bool:
|
) -> CloudapiAccountUpdateUserResultBool:
|
||||||
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
|
...
|
||||||
@@ -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 CloudapiAuditListResultModel(_base.BaseModel):
|
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,
|
||||||
@@ -34,4 +32,4 @@ class CloudapiAuditListImpl(_base.APIFunctionImpl):
|
|||||||
vins_id: int | None = None,
|
vins_id: int | None = None,
|
||||||
vm_id: int | None = None,
|
vm_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.BaseModel):
|
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.BaseModel):
|
|||||||
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,
|
||||||
@@ -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.BaseModel,
|
_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.BaseModel):
|
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.BaseModel):
|
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.BaseModel):
|
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
|
...
|
||||||
@@ -23,7 +23,6 @@ from .clone import *
|
|||||||
from .create_template import *
|
from .create_template 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 *
|
||||||
@@ -36,7 +35,6 @@ from .disk_switch_to_replication import *
|
|||||||
from .enable import *
|
from .enable import *
|
||||||
from .get import *
|
from .get 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 *
|
||||||
@@ -59,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 *
|
||||||
@@ -78,79 +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
|
||||||
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
|
|
||||||
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
|
|
||||||
snapshot_list: CloudapiComputeSnapshotListImpl
|
|
||||||
update: CloudapiComputeUpdateImpl
|
|
||||||
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
|
|
||||||
@@ -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,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,12 +2,14 @@ import dynamix_sdk.base as _base
|
|||||||
from dynamix_sdk.api import _nested
|
from dynamix_sdk.api import _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAffinityRuleAddImpl(
|
class CloudapiComputeAffinityRuleAddResultBool(_base.BaseAPIResultBool):
|
||||||
_base.APIFunctionImpl
|
pass
|
||||||
):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeAffinityRuleAddProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol
|
||||||
|
):
|
||||||
|
def affinity_rule_add(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
@@ -16,5 +18,5 @@ class CloudapiComputeAffinityRuleAddImpl(
|
|||||||
mode: _nested.AffinityMode,
|
mode: _nested.AffinityMode,
|
||||||
key: str,
|
key: str,
|
||||||
value: str,
|
value: str,
|
||||||
) -> bool:
|
) -> CloudapiComputeAffinityRuleAddResultBool:
|
||||||
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,12 +2,14 @@ import dynamix_sdk.base as _base
|
|||||||
from dynamix_sdk.api import _nested
|
from dynamix_sdk.api import _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAntiAffinityRuleAddImpl(
|
class CloudapiComputeAntiAffinityRuleAddResultBool(_base.BaseAPIResultBool):
|
||||||
_base.APIFunctionImpl
|
pass
|
||||||
):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeAntiAffinityRuleAddProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol
|
||||||
|
):
|
||||||
|
def anti_affinity_rule_add(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
@@ -16,5 +18,5 @@ class CloudapiComputeAntiAffinityRuleAddImpl(
|
|||||||
mode: _nested.AffinityMode,
|
mode: _nested.AffinityMode,
|
||||||
key: str,
|
key: str,
|
||||||
value: str,
|
value: str,
|
||||||
) -> bool:
|
) -> CloudapiComputeAntiAffinityRuleAddResultBool:
|
||||||
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,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,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,17 +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,
|
||||||
async_mode: bool = False,
|
) -> CloudapiComputeDiskSwitchToReplicationResultBool:
|
||||||
) -> 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.BaseModel):
|
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.BaseModel):
|
|||||||
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.BaseModel):
|
|||||||
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
|
||||||
@@ -65,7 +62,6 @@ class CloudapiComputeGetResultModel(_base.BaseModel):
|
|||||||
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]
|
||||||
@@ -103,12 +99,10 @@ class CloudapiComputeGetResultModel(_base.BaseModel):
|
|||||||
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,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.BaseModel):
|
|
||||||
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.BaseModel,
|
_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
|
|
||||||
@@ -2,33 +2,29 @@ import dynamix_sdk.base as _base
|
|||||||
import dynamix_sdk.api._nested as _nested
|
import dynamix_sdk.api._nested as _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeListResultModel(_base.BaseModel):
|
class CloudapiComputeListResultModel(_base.BaseAPIResultModel):
|
||||||
data: list[_nested.VMAPIResultNM]
|
data: list[_nested.VMAPIResultNM]
|
||||||
entry_count: int
|
entry_count: int
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeListImpl(_base.APIFunctionImpl):
|
class CloudapiComputeListProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
http_method = _base.HTTPMethod.POST
|
def list(
|
||||||
|
|
||||||
def __call__(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
account_id: int | None = None,
|
account_id: int | None = None,
|
||||||
ext_net_id: int | None = None,
|
ext_net_id: int | None = None,
|
||||||
ext_net_name: str | None = None,
|
ext_net_name: str | None = None,
|
||||||
folder_id: int | None = None,
|
|
||||||
id: int | None = None,
|
id: int | None = None,
|
||||||
include_deleted: bool = False,
|
include_deleted: bool = False,
|
||||||
include_descendants: bool = False,
|
|
||||||
ip_addr: str | None = None,
|
ip_addr: str | 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.VMStatus | None = None,
|
status: _nested.VMStatus | None = None,
|
||||||
tech_status: _nested.VMTechStatus | None = None,
|
tech_status: _nested.VMTechStatus | None = None,
|
||||||
) -> CloudapiComputeListResultModel:
|
) -> CloudapiComputeListResultModel:
|
||||||
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 CloudapiComputeListDeletedResultModel(_base.BaseModel):
|
class CloudapiComputeListDeletedResultModel(_base.BaseAPIResultModel):
|
||||||
data: list[_nested.VMAPIResultNM]
|
data: list[_nested.VMAPIResultNM]
|
||||||
entry_count: int
|
entry_count: int
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeListDeletedImpl(_base.APIFunctionImpl):
|
class CloudapiComputeListDeletedProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
http_method = _base.HTTPMethod.POST
|
def list_deleted(
|
||||||
|
|
||||||
def __call__(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
id: int | None = None,
|
id: int | None = None,
|
||||||
@@ -22,8 +20,8 @@ class CloudapiComputeListDeletedImpl(_base.APIFunctionImpl):
|
|||||||
ip_addr: str | None = None,
|
ip_addr: str | None = None,
|
||||||
ext_net_name: str | None = None,
|
ext_net_name: str | None = None,
|
||||||
ext_net_id: int | None = None,
|
ext_net_id: int | None = None,
|
||||||
page_number: int = 1,
|
page_number: int | None = None,
|
||||||
page_size: int = 100,
|
page_size: int | None = None,
|
||||||
sort_by: str | None = None,
|
sort_by: str | None = None,
|
||||||
) -> CloudapiComputeListDeletedResultModel:
|
) -> CloudapiComputeListDeletedResultModel:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,14 +1,15 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeMigrateToZoneImpl(_base.APIFunctionImpl):
|
class CloudapiComputeMigrateToZoneResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeMigrateToZoneProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def migrate_to_zone(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
zone_id: int,
|
zone_id: int,
|
||||||
async_mode: bool = False,
|
) -> CloudapiComputeMigrateToZoneResultBool:
|
||||||
) -> bool | str:
|
...
|
||||||
raise NotImplementedError
|
|
||||||
@@ -1,10 +1,12 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeMoveToRgImpl(_base.APIFunctionImpl):
|
class CloudapiComputeMoveToRgResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeMoveToRgProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def move_to_rg(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
@@ -12,6 +14,5 @@ class CloudapiComputeMoveToRgImpl(_base.APIFunctionImpl):
|
|||||||
new_vm_name: str | None = None,
|
new_vm_name: str | None = None,
|
||||||
auto_start: bool = False,
|
auto_start: bool = False,
|
||||||
force_stop: bool = False,
|
force_stop: bool = False,
|
||||||
async_mode: bool = False,
|
) -> CloudapiComputeMoveToRgResultBool:
|
||||||
) -> bool | str:
|
...
|
||||||
raise NotImplementedError
|
|
||||||
@@ -3,15 +3,14 @@ import dynamix_sdk.api._nested as _nested
|
|||||||
|
|
||||||
|
|
||||||
class CloudapiComputeNetAttachResultModel(
|
class CloudapiComputeNetAttachResultModel(
|
||||||
|
_base.BaseAPIResultModel,
|
||||||
_nested.InterfaceForComputeGetAPIResultNM,
|
_nested.InterfaceForComputeGetAPIResultNM,
|
||||||
):
|
):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeNetAttachImpl(_base.APIFunctionImpl):
|
class CloudapiComputeNetAttachProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
http_method = _base.HTTPMethod.POST
|
def net_attach(
|
||||||
|
|
||||||
def __call__(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
@@ -26,10 +25,8 @@ class CloudapiComputeNetAttachImpl(_base.APIFunctionImpl):
|
|||||||
sdn_logical_port_id: None | str = None,
|
sdn_logical_port_id: None | str = None,
|
||||||
net_prefix: int | None = None,
|
net_prefix: int | None = None,
|
||||||
sdn_segment_id: str | None = None,
|
sdn_segment_id: str | None = None,
|
||||||
sdn_object_group_ids: list[str] | None = None,
|
sdn_object_group_id: str | None = None,
|
||||||
sdn_logical_port_display_name: str | None = None,
|
sdn_logical_port_display_name: str | None = None,
|
||||||
sdn_logical_port_description: str | None = None,
|
sdn_logical_port_description: str | None = None,
|
||||||
async_mode: bool = False,
|
) -> CloudapiComputeNetAttachResultModel:
|
||||||
enable_default_gateway: bool = True,
|
...
|
||||||
) -> CloudapiComputeNetAttachResultModel | str:
|
|
||||||
raise NotImplementedError
|
|
||||||
@@ -1,15 +1,16 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeNetDetachImpl(_base.APIFunctionImpl):
|
class CloudapiComputeNetDetachResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeNetDetachProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def net_detach(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
ip_addr: None | str = None,
|
ip_addr: None | str = None,
|
||||||
mac: None | str = None,
|
mac: None | str = None,
|
||||||
async_mode: bool = False,
|
) -> CloudapiComputeNetDetachResultBool:
|
||||||
) -> bool | str:
|
...
|
||||||
raise NotImplementedError
|
|
||||||
@@ -1,13 +1,14 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputePauseImpl(_base.APIFunctionImpl):
|
class CloudapiComputePauseResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputePauseProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def pause(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
async_mode: bool = False,
|
) -> CloudapiComputePauseResultBool:
|
||||||
) -> bool | str:
|
...
|
||||||
raise NotImplementedError
|
|
||||||
Loaded 100 of 450 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user