Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1ee16914bc |
No files matched your search
+191
-2
@@ -1,14 +1,203 @@
|
||||
# Список изменений в версии 1.5.3
|
||||
# Список изменений в версии 2.0.0
|
||||
|
||||
## Изменено
|
||||
| Идентификатор<br>задачи | Описание |
|
||||
| --- | --- |
|
||||
| BPYS-717 | • Функции SDK теперь являются функциональными объектами (функторами), которые имеют такие атрибуты как `config`, `func_name`, `api_path`, `http_method`, `last_http_response`, `last_params_model`, полный список и их описание доступны в README. <br>• Функции SDK теперь возвращают `str`, `int`, `bool` вместо `BaseAPIResultStr`, `BaseAPIResultInt`, `BaseAPIResultBool`, а модели результата не содержат атрибутов `_api_params` и `_http_response` и не наследуются от `BaseAPIResultModel`. |
|
||||
| BPYS-1401 | Функция `cloudbroker.account.set_cpu_allocation_ratio`: тип параметра `ratio` изменен с `float` на `int`. |
|
||||
| BPYS-1402 | Функция `cloudbroker.disks.migrate`: параметр `storage_policy_id` стал обязательным. |
|
||||
| BPYS-1399 | Функция `cloudapi.image.create_virtual`: параметр `account_id` стал обязательным. |
|
||||
| BPYS-1400 | Функция `cloudapi.image.list`: тип параметра `type` изменён с `str` на `list[str]`. |
|
||||
| BPYS-1501 | Функция `cloudapi.compute.disk_add`: тип результата изменён с `int` на `int \| str`. |
|
||||
| BPYS-1496 | Функция `cloudapi.compute.disable`: тип результата изменён с `bool` на `bool \| str`. |
|
||||
| BPYS-1503 | Функция `cloudapi.compute.disk_del`: тип результата изменён с `bool` на `bool \| str`. |
|
||||
| BPYS-1581 | Функция `cloudapi.compute.snapshot_rollback`: тип результата изменён с `bool` на `bool \| str`. |
|
||||
| BPYS-1510 | Функция `cloudapi.compute.migrate_to_zone`: тип результата изменён с `bool` на `bool \| str`. |
|
||||
| BPYS-1511 | Функция `cloudapi.compute.move_to_rg`: тип результата изменён с `bool` на `bool \| str`. |
|
||||
| BPYS-1509 | Функция `cloudapi.compute.net_attach`: тип результата изменён с `CloudapiComputeNetAttachResultModel` на `CloudapiComputeNetAttachResultModel \| str`. |
|
||||
| BPYS-1495 | Функция `cloudapi.compute.delete`: тип результата изменён с `bool` на `bool \| str`. |
|
||||
| BPYS-1500 | Функция `cloudapi.compute.change_security_groups`: тип результата изменён с `bool` на `bool \| str`. |
|
||||
| BPYS-1499 | Функция `cloudapi.compute.change_mtu`: тип результата изменён с `bool` на `bool \| str`. |
|
||||
| BPYS-1498 | Функция `cloudapi.compute.change_link_state`: тип результата изменён с `bool` на `bool \| str`. |
|
||||
| BPYS-1497 | Функция `cloudapi.compute.change_ip`: тип результата изменён с `bool` на `bool \| str`. |
|
||||
| BPYS-1494 | Функция `cloudapi.compute.cd_insert`: тип результата изменён с `bool` на `bool \| str`. |
|
||||
| BPYS-1493 | Функция `cloudapi.compute.cd_eject`: тип результата изменён с `bool` на `bool \| str`. |
|
||||
| BPYS-1505 | Функция `cloudapi.compute.guest_agent_execute`: тип результата изменён с `CloudapiComputeGuestAgentExecuteResultModel` на `CloudapiComputeGuestAgentExecuteResultModel \| str`. |
|
||||
| BPYS-1507 | Функция `cloudapi.compute.guest_agent_enable`: тип результата изменён с `bool` на `bool \| str`. |
|
||||
| BPYS-1508 | Функция `cloudapi.compute.guest_agent_disable`: тип результата изменён с `bool` на `bool \| str`. |
|
||||
| BPYS-1504 | Функция `cloudapi.compute.disk_switch_to_replication`: тип результата изменён с `bool` на `bool \| str`. |
|
||||
| BPYS-1502 | Функция `cloudapi.compute.disk_attach`: тип результата изменён с `bool` на `bool \| str`. |
|
||||
| BPYS-1506 | Функция `cloudapi.compute.guest_agent_feature_update`: тип результата изменён с `bool` на `bool \| str`. |
|
||||
| BPYS-1586 | Функция `cloudapi.compute.create_template`: тип результата изменён с `str` на `str \| int`. |
|
||||
| BPYS-1512 | Функция `cloudapi.compute.net_detach`: тип результата изменён с `bool` на `bool \| str`. |
|
||||
| BPYS-1513 | Функция `cloudapi.compute.pause`: тип результата изменён с `bool` на `bool \| str`. |
|
||||
| BPYS-1514 | Функция `cloudapi.compute.pfw_add`: тип результата изменён с `int` на `int \| str`. |
|
||||
| BPYS-1515 | Функция `cloudapi.compute.pfw_del`: тип результата изменён с `bool` на `bool \| str`. |
|
||||
| BPYS-1516 | Функция `cloudapi.compute.pin_to_node`: тип результата изменён с `bool` на `bool \| str`. |
|
||||
| BPYS-1517 | Функция `cloudapi.compute.power_cycle`: тип результата изменён с `bool` на `bool \| str`. |
|
||||
| BPYS-1518 | Функция `cloudapi.compute.reboot`: тип результата изменён с `bool` на `bool \| str`. |
|
||||
| BPYS-1519 | Функция `cloudapi.compute.redeploy`: тип результата изменён с `bool` на `bool \| str`. |
|
||||
| BPYS-1520 | Функция `cloudapi.compute.reset`: тип результата изменён с `bool` на `bool \| str`. |
|
||||
| BPYS-1521 | Функция `cloudapi.compute.resize`: тип результата изменён с `bool` на `bool \| str`. |
|
||||
| BPYS-1522 | Функция `cloudapi.compute.restore`: тип результата изменён с `bool` на `bool \| str`. |
|
||||
| BPYS-1523 | Функция `cloudapi.compute.resume`: тип результата изменён с `bool` на `bool \| str`. |
|
||||
| BPYS-1524 | Функция `cloudapi.compute.start`: тип результата изменён с `bool` на `bool \| str`. |
|
||||
| BPYS-1525 | Функция `cloudapi.compute.stop`: тип результата изменён с `bool` на `bool \| str`. |
|
||||
| BPYS-1526 | Функция `cloudbroker.compute.change_security_groups`: тип результата изменён с `bool` на `bool \| str`. |
|
||||
| BPYS-1580 | Функция `cloudapi.compute.disk_detach`: тип результата изменён с `bool` на `bool \| str`. |
|
||||
| BPYS-1610 | Функция `cloudapi.compute.clone`: тип результата изменён с `str` на `str \| int`. |
|
||||
| BPYS-1611 | Функция `cloudbroker.compute.clone`: тип результата изменён с `str` на `str \| int`. |
|
||||
| BPYS-1461 | Функция `cloudapi.image.create`: тип результата изменён с `int` на `int \| str`. |
|
||||
|
||||
## Добавлено
|
||||
| Идентификатор<br>задачи | Описание |
|
||||
| --- | --- |
|
||||
| BPYS-1389 | Функция `cloudapi.zone.list`: в модель результата добавлено поле `data.cpu_alignment_profiles`. |
|
||||
| BPYS-1390 | Функция `cloudapi.zone.get`: в модель результата добавлено поле `cpu_alignment_profiles`. |
|
||||
| BPYS-1392 | Функция `cloudapi.disks.get`: в модель результата добавлено поле `discard`. |
|
||||
| BPYS-1393 | Функции `cloudapi.disks.list`, `cloudapi.disks.list_deleted`: в модели результата добавлено поле `data.discard`. |
|
||||
| BPYS-1391 | Функция `cloudapi.extnet.list`: в модель результата добавлено поле `data.free_ip_count`. |
|
||||
| BPYS-1396 | Функции `cloudapi.compute.list`, `cloudapi.compute.list_deleted`: в модели результата добавлено поле `data.cpu_alignment_profile`. |
|
||||
| BPYS-1397 | Функции `cloudapi.compute.list`, `cloudapi.compute.list_deleted`: в модели результата добавлено поле `data.clock_sync_mode`. |
|
||||
| BPYS-1394 | Функция `cloudapi.compute.get`: в модель результата добавлено поле `cpu_alignment_profile`. |
|
||||
| BPYS-1395 | Функция `cloudapi.compute.get`: в модель результата добавлено поле `clock_sync_mode`. |
|
||||
| BPYS-1552 | Функции `cloudapi.compute.list`, `cloudapi.compute.list_deleted`: в модели результата добавлено поле `disks.read_only_mode`. |
|
||||
| BPYS-1536 | Функция `cloudapi.disks.list_unattached`: в модель результата добавлено поле `data.discard`. |
|
||||
| BPYS-1550 | Функция `cloudapi.disks.get`: в модель результата добавлено поле `vms_with_read_only`. |
|
||||
| BPYS-1547 | Функции `cloudapi.disks.list`, `cloudapi.disks.list_deleted`: в модели результата добавлено поле `data.vms_with_read_only`. |
|
||||
| BPYS-1559 | Функции `cloudapi.compute.list`, `cloudapi.compute.list_deleted`: в модель результата добавлено поле `snapshot_sets.memory_dump_image_id`. |
|
||||
| BPYS-1559 | Функции `cloudapi.compute.snapshot_list`: в модель результата добавлено поле `data.memory_dump_image_id`. |
|
||||
| BPYS-1558 | Функции `cloudapi.compute.list`, `cloudapi.compute.list_deleted`: в модель результата добавлено поле `snapshot_sets.vm`. |
|
||||
| BPYS-1558 | Функции `cloudapi.compute.snapshot_list`: в модель результата добавлено поле `data.vm`. |
|
||||
| BPYS-1551 | Функция `cloudapi.compute.get`: в модель результата добавлено поле `disks.read_only_mode`. |
|
||||
| BPYS-1575 | Функция `cloudapi.compute.get`: в модель результата добавлено поле `disks.discard`. |
|
||||
| BPYS-1404 | Функция `cloudapi.compute.snapshot_rollback`: добавлен параметр `with_memory`. |
|
||||
| BPYS-1465 | Функция `cloudapi.compute.snapshot_rollback`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1403 | Функция `cloudapi.compute.snapshot_create`: добавлен параметр `with_memory`. |
|
||||
| BPYS-1464 | Функция `cloudapi.compute.snapshot_create`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1383 | Добавлена функция `cloudapi.compute.get_cpu_alignment_profile`. |
|
||||
| BPYS-1405 | Функция `cloudapi.compute.update`: добавлен параметр `clock_sync_mode`. |
|
||||
| BPYS-1384 | Добавлена функция `cloudapi.compute.set_cpu_alignment_profile`. |
|
||||
| BPYS-1385 | Добавлена функция `cloudapi.compute.delete_cpu_alignment_profile`. |
|
||||
| BPYS-1415 | Функция `cloudapi.compute.abort_shared_snapshot_merge`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1417 | Функция `cloudapi.compute.cd_eject`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1419 | Функция `cloudapi.compute.cd_insert`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1421 | Функция `cloudapi.compute.change_ip`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1423 | Функция `cloudapi.compute.change_link_state`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1425 | Функция `cloudapi.compute.change_mtu`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1427 | Функция `cloudapi.compute.change_security_groups`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1429 | Функция `cloudapi.compute.clone`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1431 | Функция `cloudapi.compute.create_template`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1463 | Функция `cloudapi.compute.delete`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1467 | Функция `cloudapi.compute.disk_add`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1539 | Функция `cloudapi.compute.disk_add`: добавлен параметр `read_only_mode`. |
|
||||
| BPYS-1466 | Функция `cloudapi.compute.disable`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1469 | Функция `cloudapi.compute.disk_del`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1475 | Функция `cloudapi.compute.migrate_to_zone`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1476 | Функция `cloudapi.compute.move_to_rg`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1477 | Функция `cloudapi.compute.net_attach`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1543 | Функция `cloudapi.compute.net_attach`: добавлен параметр `sdn_object_group_ids`. |
|
||||
| BPYS-1407 | Функция `cloudapi.kvmx86.create_blank`: добавлен параметр `clock_sync_mode`. |
|
||||
| BPYS-1408 | Функция `cloudapi.kvmx86.create_blank`: добавлен параметр `cpu_alignment_profile_name`. |
|
||||
| BPYS-1406 | Функция `cloudapi.kvmx86.create`: добавлен параметр `clock_sync_mode`. |
|
||||
| BPYS-1409 | Функция `cloudapi.kvmx86.create`: добавлен параметр `cpu_alignment_profile_name`. |
|
||||
| BPYS-1473 | Функция `cloudapi.compute.guest_agent_execute`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1472 | Функция `cloudapi.compute.guest_agent_enable`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1471 | Функция `cloudapi.compute.guest_agent_disable`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1470 | Функция `cloudapi.compute.disk_switch_to_replication`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1468 | Функция `cloudapi.compute.disk_attach`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1541 | Функция `cloudapi.compute.disk_attach`: добавлен параметр `read_only_mode`. |
|
||||
| BPYS-1474 | Функция `cloudapi.compute.guest_agent_feature_update`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1571 | Функции `cloudapi.image.get`, `cloudapi.image.list`: в перечисляемый тип `type` добавлен атрибут `MEMORY_DUMP`. |
|
||||
| BPYS-1546 | Функции `cloudapi.account.list`, `cloudapi.account.list_deleted`, `cloudapi.bservice.list`, `cloudapi.bservice.list_deleted`, `cloudapi.compute.list`, `cloudapi.compute.list_deleted`, `cloudapi.disks.list`, `cloudapi.disks.list_deleted`, `cloudapi.disks.list_unattached`, `cloudapi.dpdknet.list`, `cloudapi.extnet.list`, `cloudapi.flipgroup.list`, `cloudapi.image.list`, `cloudapi.k8ci.list`, `cloudapi.k8ci.list_deleted`, `cloudapi.k8s.list`, `cloudapi.k8s.list_deleted`, `cloudapi.lb.list`, `cloudapi.lb.list_deleted`, `cloudapi.locations.list`, `cloudapi.pcidevice.list`, `cloudapi.rg.list`, `cloudapi.rg.list_deleted`, `cloudapi.storage_policy.list`, `cloudapi.trunk.list`, `cloudapi.vfpool.list`, `cloudapi.vgpu.list`, `cloudapi.vins.list`, `cloudapi.vins.list_deleted`, `cloudapi.zone.list`, `cloudbroker.account.list`, `cloudbroker.account.list_deleted`, `cloudbroker.compute.migrate_storage_list`, `cloudbroker.security_group.list`, `cloudbroker.storage_policy.list`: для параметра `page_size` добавлено значение по умолчанию `100`. |
|
||||
| BPYS-1546 | Функция `cloudapi.trunk.list`: тип параметра `page_size` изменён с `int \| None` на `int`. |
|
||||
| BPYS-1589 | Функция `cloudapi.security_group.list`: для параметра `page_number` добавлено значение по умолчанию `1`. |
|
||||
| BPYS-1588 | Функция `cloudapi.security_group.list`: для параметра `page_size` добавлено значение по умолчанию `100`. |
|
||||
| BPYS-1591 | Функции `cloudapi.locations.list`: для параметра `page_number` добавлено значение по умолчанию `1`. |
|
||||
| BPYS-1478 | Функция `cloudapi.compute.net_detach`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1479 | Функция `cloudapi.compute.pause`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1480 | Функция `cloudapi.compute.pfw_add`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1481 | Функция `cloudapi.compute.pfw_del`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1482 | Функция `cloudapi.compute.pin_to_node`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1483 | Функция `cloudapi.compute.power_cycle`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1484 | Функция `cloudapi.compute.reboot`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1485 | Функция `cloudapi.compute.redeploy`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1486 | Функция `cloudapi.compute.reset`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1487 | Функция `cloudapi.compute.resize`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1587 | Функции `cloudapi.compute.net_attach`, `cloudapi.vins.create_in_account`, `cloudapi.vins.create_in_rg`, `cloudbroker.vins.update`: добавлен параметр `enable_default_gateway`. |
|
||||
| BPYS-1592 | Функция `cloudapi.compute.get`: в модель результата добавлено поле `interfaces.enable_default_gateway`. |
|
||||
| BPYS-1594 | Функции `cloudapi.compute.list`, `cloudapi.compute.list_deleted`: в модель результата добавлено поле `interfaces.enable_default_gateway`. |
|
||||
| BPYS-1595 | Функция `cloudapi.vins.get`: в модель результата добавлено поле `vnfdev.interfaces.enable_default_gateway`. |
|
||||
| BPYS-1596 | Функция `cloudapi.vins.get`: в модель результата добавлено поле `enable_default_gateway`. |
|
||||
| BPYS-1597 | Функция `cloudapi.zone.list`: в модель результата добавлено поле `data.reserved_cpu`. |
|
||||
| BPYS-1598 | Функция `cloudapi.zone.list`: в модель результата добавлено поле `data.reserved_ram`. |
|
||||
| BPYS-1599 | Функция `cloudapi.zone.get`: в модель результата добавлено поле `reserved_cpu`. |
|
||||
| BPYS-1600 | Функция `cloudapi.zone.get`: в модель результата добавлено поле `reserved_ram`. |
|
||||
| BPYS-1488 | Функция `cloudapi.compute.restore`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1489 | Функция `cloudapi.compute.resume`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1490 | Функция `cloudapi.compute.start`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1491 | Функция `cloudapi.compute.stop`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1492 | Функция `cloudbroker.compute.change_security_groups`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1462 | Функция `cloudbroker.compute.clone`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1579 | Функция `cloudapi.compute.disk_detach`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1604 | Функция `cloudapi.vins.get`: в модель результата добавлено поле `vnfs.dhcp.config.enable_default_gateway`. |
|
||||
| BPYS-1545 | Функции `cloudapi.account.list`, `cloudapi.account.list_deleted`, `cloudapi.bservice.list`, `cloudapi.bservice.list_deleted`, `cloudapi.compute.list`, `cloudapi.compute.list_deleted`, `cloudapi.disks.list`, `cloudapi.disks.list_deleted`, `cloudapi.disks.list_unattached`, `cloudapi.dpdknet.list`, `cloudapi.extnet.list`, `cloudapi.flipgroup.list`, `cloudapi.image.list`, `cloudapi.k8ci.list`, `cloudapi.k8ci.list_deleted`, `cloudapi.k8s.list`, `cloudapi.k8s.list_deleted`, `cloudapi.lb.list`, `cloudapi.lb.list_deleted`, `cloudapi.pcidevice.list`, `cloudapi.rg.list`, `cloudapi.rg.list_deleted`, `cloudapi.storage_policy.list`, `cloudapi.trunk.list`, `cloudapi.vfpool.list`, `cloudapi.vgpu.list`, `cloudapi.vins.list`, `cloudapi.vins.list_deleted`, `cloudapi.zone.list`, `cloudbroker.account.list`, `cloudbroker.account.list_deleted`, `cloudbroker.compute.migrate_storage_list`, `cloudbroker.security_group.list`, `cloudbroker.storage_policy.list`: для параметра `page_number` добавлено значение по умолчанию `1`. |
|
||||
| BPYS-1545 | Функция `cloudapi.trunk.list`: тип параметра `page_number` изменён с `int \| None` на `int`. |
|
||||
| BPYS-1607 | Функция `cloudapi.disks.get`: в модель результата добавлено поле `snapshots.pool_name`. |
|
||||
| BPYS-1606 | Функция `cloudapi.compute.get`: в модель результата добавлено поле `disks.snapshots.pool_name`. |
|
||||
| BPYS-1461 | Функция `cloudapi.image.create`: добавлен параметр `async_mode`. |
|
||||
| BPYS-1615 | Функция `cloudapi.rg.create`: добавлен параметр `enable_default_gateway`. |
|
||||
| BPYS-1626 | Функция `cloudapi.compute.get`: в модель результата добавлено поле `resized_online`. |
|
||||
| BPYS-1627 | Функции `cloudapi.compute.list`, `cloudapi.compute.list_deleted`: в модель результата добавлено поле `data.resized_online`. |
|
||||
| BPYS-1629 | Функция `cloudapi.compute.snapshot_list`: в модель результата добавлено поле `data.vm.resized_online`. |
|
||||
| BPYS-801 | Добавлена функция `cloudbroker.compute.affinity_label_remove`. |
|
||||
| BPYS-1642 | Добавлена функция `cloudbroker.compute.affinity_label_set`. |
|
||||
| BPYS-1643 | Добавлена функция `cloudbroker.bservice.create`. |
|
||||
| BPYS-1644 | Добавлена функция `cloudbroker.bservice.delete`. |
|
||||
| BPYS-1645 | Добавлена функция `cloudbroker.bservice.disable`. |
|
||||
| BPYS-1647 | Добавлена функция `cloudbroker.bservice.enable`. |
|
||||
| BPYS-1646 | Добавлена функция `cloudbroker.disks.change_disk_storage_policy`. |
|
||||
| BPYS-1649 | Добавлена функция `cloudbroker.disks.delete`. |
|
||||
| BPYS-1650 | Добавлена функция `cloudbroker.disks.delete_disks`. |
|
||||
| BPYS-1651 | Добавлена функция `cloudbroker.disks.depresent`. |
|
||||
| BPYS-1648 | Добавлена функция `cloudbroker.disks.create`. |
|
||||
| BPYS-1655 | Добавлена функция `cloudbroker.disks.limit_io`. |
|
||||
| BPYS-1656 | Добавлена функция `cloudbroker.disks.list`. |
|
||||
| BPYS-1660 | Добавлена функция `cloudbroker.disks.list_deleted`. |
|
||||
| BPYS-1662 | Добавлена функция `cloudbroker.disks.list_unattached`. |
|
||||
| BPYS-1669 | Добавлена функция `cloudbroker.image.get`. |
|
||||
| BPYS-1654 | Добавлена функция `cloudbroker.bservice.get`. |
|
||||
| BPYS-1658 | Добавлена функция `cloudbroker.bservice.group_add`. |
|
||||
| BPYS-1661 | Добавлена функция `cloudbroker.bservice.group_compute_remove`. |
|
||||
| BPYS-1666 | Добавлена функция `cloudbroker.kvmx86.create`. |
|
||||
| BPYS-1667 | Добавлена функция `cloudbroker.kvmx86.create_blank`. |
|
||||
| BPYS-1670 | Добавлена функция `cloudbroker.image.list`. |
|
||||
| BPYS-1668 | Добавлена функция `cloudbroker.image.create_image`. |
|
||||
| BPYS-1665 | Добавлена функция `cloudbroker.rg.list`. |
|
||||
| BPYS-1663 | Добавлена функция `cloudbroker.rg.create`. |
|
||||
| BPYS-1652 | Добавлена функция `cloudbroker.disks.from_platform_disk`. |
|
||||
| BPYS-1653 | Добавлена функция `cloudbroker.disks.get`. |
|
||||
| BPYS-1664 | Добавлена функция `cloudbroker.rg.get`. |
|
||||
| BPYS-1671 | Добавлена функция `cloudbroker.vins.create_in_account`. |
|
||||
| BPYS-1672 | Добавлена функция `cloudbroker.vins.create_in_rg`. |
|
||||
| BPYS-1673 | Добавлена функция `cloudbroker.vins.get`. |
|
||||
| BPYS-1674 | Добавлена функция `cloudbroker.vins.list`. |
|
||||
| BPYS-1675 | Добавлена функция `cloudbroker.extnet.create`. |
|
||||
| BPYS-1682 | Добавлена функция `cloudbroker.compute.delete`. |
|
||||
|
||||
## Удалено
|
||||
| Идентификатор<br>задачи | Описание |
|
||||
| --- | --- |
|
||||
| BPYS-1386 | Функция `cloudbroker.user.get`: из модели результата удалено поле `password`. |
|
||||
| BPYS-1387 | Функция `cloudbroker.user.list`: из модели результата удалено поле `data.password`. |
|
||||
| BPYS-1412 | Функция `cloudapi.disks.get`: из модели результата удалено поле `blkdiscard`. |
|
||||
| BPYS-1413 | Функции `cloudapi.disks.list`, `cloudapi.disks.list_deleted`: из моделей результата удалено поле `data.blkdiscard`. |
|
||||
| BPYS-1410 | Функция `cloudapi.compute.get`: из модели результата удалено поле `blkdiscard`. |
|
||||
| BPYS-1537 | Функция `cloudapi.disks.list_unattached`: из модели результата удалено поле `data.blkdiscard`. |
|
||||
| BPYS-1542 | Функция `cloudapi.compute.net_attach`: удалён параметр `sdn_object_group_id`. |
|
||||
|
||||
## Исправлено
|
||||
| Идентификатор<br>задачи | Описание |
|
||||
| --- | --- |
|
||||
| BPYS-1544| Функции `cloudapi.rg.get`, `cloudapi.rg.list`: вызов функций завершался ошибкой валидации поля `cpu_allocation_ratio`. В модели результата тип поля `cpu_allocation_ratio` изменён с `int` на `int \| float`. |
|
||||
| BPYS-1613 | Функции `cloudapi.zone.get`, `cloudapi.zone.list`: вызов функций завершался ошибкой валидации поля `sso_type`. В перечисляемый тип `DRSDXSSOType` добавлен атрибут `NONE` с пустой строкой в значении. |
|
||||
| BPYS-1639 | Функция `cloudapi.bservice.group_get`: вызов функции завершался ошибкой валидации поля `sep_pool_name`. В модели результата тип поля `sep_pool_name` изменён с `str` на `str \| None`. |
|
||||
@@ -35,6 +35,7 @@
|
||||
|
||||
| Версия платформы | Версия SDK |
|
||||
| --- | --- |
|
||||
| 4.7.0 | 2.0.x |
|
||||
| 4.6.0 | 1.5.x |
|
||||
| 4.5.0 | 1.4.x |
|
||||
| 4.4.0 | 1.3.x |
|
||||
@@ -228,7 +229,7 @@ Dynamix(
|
||||
|
||||
### Функциональный интерфейс
|
||||
|
||||
Функциональный интерфейс предоставляет функции, соответствующие функциям API платформы.
|
||||
Функциональный интерфейс предоставляет функциональные объекты, каждый из которых является реализацией соответствующей функции API платформы. Для упрощения изложения в данном руководстве вместо термина **функциональный объект** будет использоваться термин **функция**, если это позволяет контекст.
|
||||
|
||||
#### Вызов функции
|
||||
|
||||
@@ -306,7 +307,7 @@ new_vm_id = dx.api.cloudapi.kvmx86.create(
|
||||
|
||||
Тип данных, возвращаемый функцией API SDK зависит от типа данных, возвращаемого соответствующей функцией API платформы.
|
||||
|
||||
Если функция API платформы возвращает структуру данных в виде набора пар ключ/значение (с заранее известными ключами), то функция API SDK возвращает модель Pydantic, которая описывает эту структуру.
|
||||
Если в результате функции API платформы присутствует структура данных в виде набора пар ключ/значение с заранее известными ключами, то в результате функции API SDK эта структура будет представлена в виде модели Pydantic. Остальные типы данных будут представлены соответствующими встроенными типами данных Python.
|
||||
|
||||
<details><summary>Модель</summary>
|
||||
|
||||
@@ -404,67 +405,22 @@ print(type(get_result.created_datetime)) # <class 'datetime.datetime'>
|
||||
|
||||
</details>
|
||||
|
||||
Если функция 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, обладают общими специальными атрибутами:
|
||||
<br>Все функциональные объекты, реализующие функции API платформы, обладают общими атрибутами:
|
||||
|
||||
| Атрибут | Описание |
|
||||
| --- | --- |
|
||||
| `_api_params` | Модель Pydantic, описывающая параметры, переданные в функцию. |
|
||||
| `_http_response` | HTTP-ответ API платформы в виде экземпляра класса `requests.Response`. |
|
||||
| `api_path` | API URL path. |
|
||||
| `config` | Конфигурации SDK. |
|
||||
| `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` | Сигнатура вызова ФО. |
|
||||
|
||||
#### Соответствие названий
|
||||
|
||||
@@ -654,6 +610,7 @@ class RequestException(Exception):
|
||||
- /cloudapi/compute/createTemplate
|
||||
- /cloudapi/compute/delete
|
||||
- /cloudapi/compute/deleteCustomFields
|
||||
- /cloudapi/compute/delete_cpu_alignment_profile
|
||||
- /cloudapi/compute/detachGpu
|
||||
- /cloudapi/compute/detachPciDevice
|
||||
- /cloudapi/compute/disable
|
||||
@@ -666,6 +623,7 @@ class RequestException(Exception):
|
||||
- /cloudapi/compute/enable
|
||||
- /cloudapi/compute/get
|
||||
- /cloudapi/compute/getConsoleUrl
|
||||
- /cloudapi/compute/get_cpu_alignment_profile
|
||||
- /cloudapi/compute/guest_agent_disable
|
||||
- /cloudapi/compute/guest_agent_enable
|
||||
- /cloudapi/compute/guest_agent_execute
|
||||
@@ -689,6 +647,7 @@ class RequestException(Exception):
|
||||
- /cloudapi/compute/restore
|
||||
- /cloudapi/compute/resume
|
||||
- /cloudapi/compute/setCustomFields
|
||||
- /cloudapi/compute/set_cpu_alignment_profile
|
||||
- /cloudapi/compute/snapshotCreate
|
||||
- /cloudapi/compute/snapshotList
|
||||
- /cloudapi/compute/snapshotRollback
|
||||
@@ -1012,11 +971,26 @@ class RequestException(Exception):
|
||||
|
||||
</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>
|
||||
|
||||
- /cloudbroker/compute/affinityLabelRemove
|
||||
- /cloudbroker/compute/affinityLabelSet
|
||||
- /cloudbroker/compute/change_read_only
|
||||
- /cloudbroker/compute/change_security_groups
|
||||
- /cloudbroker/compute/clone
|
||||
- /cloudbroker/compute/delete
|
||||
- /cloudbroker/compute/migrate_storage_list
|
||||
- /cloudbroker/compute/start_migration_in
|
||||
- /cloudbroker/compute/start_migration_out
|
||||
@@ -1027,15 +1001,47 @@ class RequestException(Exception):
|
||||
|
||||
<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_abort
|
||||
- /cloudbroker/disks/migrate_status
|
||||
|
||||
</details>
|
||||
|
||||
<details><summary>extnet</summary>
|
||||
|
||||
- /cloudbroker/extnet/create
|
||||
|
||||
</details>
|
||||
|
||||
<details><summary>image</summary>
|
||||
|
||||
- /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>
|
||||
|
||||
@@ -1050,7 +1056,10 @@ class RequestException(Exception):
|
||||
<details><summary>rg</summary>
|
||||
|
||||
- /cloudbroker/rg/add_storage_policy
|
||||
- /cloudbroker/rg/create
|
||||
- /cloudbroker/rg/del_storage_policy
|
||||
- /cloudbroker/rg/get
|
||||
- /cloudbroker/rg/list
|
||||
|
||||
</details>
|
||||
|
||||
@@ -1092,6 +1101,10 @@ class RequestException(Exception):
|
||||
|
||||
<details><summary>vins</summary>
|
||||
|
||||
- /cloudbroker/vins/createInAccount
|
||||
- /cloudbroker/vins/createInRG
|
||||
- /cloudbroker/vins/get
|
||||
- /cloudbroker/vins/list
|
||||
- /cloudbroker/vins/update
|
||||
|
||||
</details>
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ authors = [
|
||||
{name = "Vladislav Nesterov"},
|
||||
{name = "Stanislav Karimov"},
|
||||
]
|
||||
version = "1.5.3"
|
||||
version = "2.0.0"
|
||||
|
||||
readme = "README.md"
|
||||
|
||||
|
||||
@@ -220,6 +220,7 @@ class ImageType(str, _AutoNameEnum):
|
||||
UNKNOWN = 'unknown'
|
||||
VIRTUAL = 'virtual'
|
||||
WINDOWS = 'windows'
|
||||
MEMORY_DUMP = 'memorydump'
|
||||
|
||||
|
||||
class NetIfaceNamingTemplate(str, _AutoNameEnum):
|
||||
@@ -643,3 +644,16 @@ class DiskProvisionType(str, _AutoNameEnum):
|
||||
class DRSDXSSOType(str, _AutoNameEnum):
|
||||
BVS = 'bvs'
|
||||
DECS3O = 'decs3o'
|
||||
NONE = ''
|
||||
|
||||
|
||||
class ClockSyncMode(str, _AutoNameEnum):
|
||||
DEFAULT = 'default'
|
||||
LINUX = 'linux'
|
||||
WINDOWS = 'windows'
|
||||
NONE = 'none'
|
||||
|
||||
|
||||
class DiskDiscard(str, _AutoNameEnum):
|
||||
UNMAP = 'unmap'
|
||||
IGNORE = 'ignore'
|
||||
@@ -31,12 +31,54 @@ class InterfaceAPIParamsNM(_base.BaseAPIParamsNestedModel):
|
||||
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):
|
||||
dst_net_ip: str
|
||||
dst_net_mask: str
|
||||
gateway: str
|
||||
|
||||
|
||||
class CloudbrokerVinsCreateRouteAPIParamsNM(
|
||||
_base.BaseAPIParamsNestedModel,
|
||||
):
|
||||
destination: str
|
||||
netmask: str
|
||||
gateway: str
|
||||
|
||||
|
||||
class StoragePolicyQuotasAPIParamsNM(_base.BaseAPIParamsNestedModel):
|
||||
id: int
|
||||
storage_size_gb: int
|
||||
|
||||
@@ -56,6 +56,7 @@ class InterfaceForComputeListAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
conn_id: int
|
||||
conn_type: str
|
||||
default_gw: str
|
||||
enable_default_gateway: bool
|
||||
enabled: bool
|
||||
flip_group_id: int
|
||||
guid: str
|
||||
@@ -84,6 +85,7 @@ class InterfaceForComputeGetAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
conn_id: int
|
||||
conn_type: str
|
||||
default_gw: str
|
||||
enable_default_gateway: bool
|
||||
security_group_mode: bool
|
||||
enabled: bool
|
||||
flip_group_id: int
|
||||
@@ -113,6 +115,7 @@ class VNFDevInterfaceAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
conn_id: int
|
||||
conn_type: str
|
||||
default_gw: str
|
||||
enable_default_gateway: bool
|
||||
enabled: bool
|
||||
flip_group_id: int
|
||||
guid: str
|
||||
@@ -136,11 +139,137 @@ class VNFDevInterfaceAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
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
|
||||
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):
|
||||
disk_ids: list[int]
|
||||
guid: str
|
||||
label: str
|
||||
timestamp: int
|
||||
memory_dump_image_id: int | None
|
||||
vm: ComputeForSnapshotSetAPIResultNM
|
||||
|
||||
@_base.computed_field
|
||||
def datetime(self) -> _base.datetime | None:
|
||||
@@ -166,6 +295,7 @@ class IOTuneAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
class SnapshotAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
guid: str
|
||||
label: str
|
||||
pool_name: str | None = None
|
||||
reference_id: str
|
||||
res_id: str
|
||||
snapshot_set_guid: str
|
||||
@@ -193,12 +323,12 @@ class ReplicationAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
class DiskForCAComputeListAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
id: int
|
||||
sep_id: int | None = None
|
||||
read_only_mode: bool
|
||||
|
||||
|
||||
class DiskForCAComputeGetAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
account_id: int
|
||||
acl: dict
|
||||
blkdiscard: bool
|
||||
block_size: _enums.DiskBlockSize
|
||||
boot_partition: int
|
||||
bus_num: int
|
||||
@@ -211,6 +341,7 @@ class DiskForCAComputeGetAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
destruction_timestamp: int
|
||||
device_name: str
|
||||
disk_path: str
|
||||
discard: _enums.DiskDiscard
|
||||
grid_id: int
|
||||
guid: int
|
||||
id: int
|
||||
@@ -231,6 +362,7 @@ class DiskForCAComputeGetAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
provision: _enums.DiskProvisionType
|
||||
purge_timestamp: int
|
||||
reality_device_number: int
|
||||
read_only_mode: bool
|
||||
replication: ReplicationAPIResultNM | dict
|
||||
res_id: str
|
||||
role: str
|
||||
@@ -274,7 +406,6 @@ class DiskForListAndListDeletedAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
account_id: int
|
||||
account_name: str
|
||||
acl: dict
|
||||
blkdiscard: bool
|
||||
block_size: _enums.DiskBlockSize
|
||||
cache_mode: _enums.DiskCacheMode
|
||||
created_by: str
|
||||
@@ -284,6 +415,7 @@ class DiskForListAndListDeletedAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
description: str
|
||||
destruction_timestamp: int
|
||||
device_name: str | None = None
|
||||
discard: _enums.DiskDiscard
|
||||
grid_id: int
|
||||
id: int
|
||||
image_id: int
|
||||
@@ -317,6 +449,7 @@ class DiskForListAndListDeletedAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
vm_id: int | None
|
||||
vm_name: str | None
|
||||
vms: dict[str, str]
|
||||
vms_with_read_only: dict[str, bool]
|
||||
updated_timestamp: int = 0
|
||||
|
||||
@_base.computed_field
|
||||
@@ -344,13 +477,13 @@ class DiskForListUnattachedAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
account_id: int
|
||||
account_name: str
|
||||
acl: dict
|
||||
blkdiscard: bool
|
||||
boot_partition: int
|
||||
block_size: _enums.DiskBlockSize
|
||||
created_timestamp: int
|
||||
deleted_timestamp: int
|
||||
description: str
|
||||
destruction_timestamp: int
|
||||
discard: _enums.DiskDiscard
|
||||
disk_path: str
|
||||
cache_mode: _enums.DiskCacheMode
|
||||
grid_id: int
|
||||
@@ -432,7 +565,7 @@ class ResourceGroupAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
acl: list[AccessAPIResultNM]
|
||||
vm_features: list[_enums.VMFeature]
|
||||
cpu_allocation_parameter: str
|
||||
cpu_allocation_ratio: int | float
|
||||
cpu_allocation_ratio: int
|
||||
created_by: str
|
||||
created_timestamp: int
|
||||
default_net_id: int
|
||||
@@ -500,50 +633,10 @@ class AccountForCAAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
return self._get_datetime_from_timestamp(self.updated_timestamp)
|
||||
|
||||
|
||||
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 CPUAlignmentProfileAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
name: str
|
||||
vendor: str
|
||||
model: str
|
||||
|
||||
|
||||
class VMAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
@@ -563,8 +656,10 @@ class VMAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
boot_order: list[_enums.BootDevice]
|
||||
cdrom_image_id: int
|
||||
chipset: _enums.Chipset
|
||||
clock_sync_mode: _enums.ClockSyncMode
|
||||
clone_ids: list[int]
|
||||
clone_reference: int
|
||||
cpu_alignment_profile: CPUAlignmentProfileAPIResultNM | dict
|
||||
cpu_count: int
|
||||
cpu_pin: bool
|
||||
created_by: str
|
||||
@@ -601,6 +696,7 @@ class VMAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
reference_id: str
|
||||
res_name: str
|
||||
reserved_cpu_cores: list[int]
|
||||
resized_online: bool
|
||||
rg_id: int
|
||||
rg_name: str
|
||||
snapshot_sets: list[SnapshotSetAPIResultNM]
|
||||
@@ -675,11 +771,121 @@ class ImageHistoryRecordAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
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):
|
||||
id: int
|
||||
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):
|
||||
account_id: int
|
||||
account_name: str
|
||||
@@ -781,6 +987,7 @@ class DHCPReservationAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
class DHCPVNFConfigAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
default_gw: str
|
||||
dns_servers: list[str]
|
||||
enable_default_gateway: None | bool = None
|
||||
ip_pool_end: str
|
||||
ip_pool_start: str
|
||||
lease_time: int
|
||||
@@ -1012,13 +1219,6 @@ class BServiceGroupOSUserAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
password: str
|
||||
|
||||
|
||||
class OSUserAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
guid: str
|
||||
login: str
|
||||
password: str
|
||||
ssh_public_key: str
|
||||
|
||||
|
||||
class BServiceGroupVMAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
chipset: _enums.Chipset
|
||||
id: int
|
||||
@@ -1032,6 +1232,7 @@ class ExtNetForListAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
ip_cidr: str
|
||||
name: str
|
||||
status: _enums.ExtNetStatus
|
||||
free_ip_count: int
|
||||
|
||||
|
||||
class FlipGroupForListAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
@@ -1398,6 +1599,7 @@ class ZoneForListAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
drs_broadcast_ip_addr: str
|
||||
drs_bvs_domain: str
|
||||
drs_dx_app_id: str
|
||||
cpu_alignment_profiles: list[CPUAlignmentProfileAPIResultNM]
|
||||
drs_dx_ssl_skip_verify: bool
|
||||
drs_dx_sso_type: _enums.DRSDXSSOType
|
||||
drs_dx_sso_url: str
|
||||
@@ -1412,6 +1614,8 @@ class ZoneForListAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
node_auto_start: bool
|
||||
node_ids: list[int]
|
||||
drs_ping_ip_addr: str
|
||||
reserved_cpu: int
|
||||
reserved_ram: int
|
||||
status: _enums.ZoneStatus
|
||||
updated_timestamp: int
|
||||
|
||||
@@ -1593,7 +1797,6 @@ class UserAPIResultNM(_base.BaseAPIResultNestedModel):
|
||||
id: str
|
||||
last_check_timestamp: int
|
||||
mobile: list[_typing.Any]
|
||||
password: str
|
||||
protected: bool | None = None
|
||||
roles: list[_typing.Any]
|
||||
service_account: bool
|
||||
|
||||
@@ -15,17 +15,16 @@ from .update_user import *
|
||||
|
||||
class CloudapiAccountAPI(
|
||||
_base.BaseAPI,
|
||||
CloudapiAccountAddUserProtocol,
|
||||
CloudapiAccountDeleteProtocol,
|
||||
CloudapiAccountDeleteUserProtocol,
|
||||
CloudapiAccountDisableProtocol,
|
||||
CloudapiAccountEnableProtocol,
|
||||
CloudapiAccountGetProtocol,
|
||||
CloudapiAccountGetResourceConsumptionProtocol,
|
||||
CloudapiAccountListDeletedProtocol,
|
||||
CloudapiAccountListProtocol,
|
||||
CloudapiAccountRestoreProtocol,
|
||||
CloudapiAccountUpdateProtocol,
|
||||
CloudapiAccountUpdateUserProtocol,
|
||||
):
|
||||
pass
|
||||
add_user: CloudapiAccountAddUserImpl
|
||||
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,16 +2,14 @@ import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiAccountAddUserResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
class CloudapiAccountAddUserImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiAccountAddUserProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def add_user(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
account_id: int,
|
||||
access_type: _nested.AccessTypeForSet,
|
||||
user_name: str,
|
||||
) -> CloudapiAccountAddUserResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,15 +1,13 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiAccountDeleteResultStr(_base.BaseAPIResultStr):
|
||||
pass
|
||||
class CloudapiAccountDeleteImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiAccountDeleteProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def delete(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
account_id: int,
|
||||
permanently: bool = False,
|
||||
) -> CloudapiAccountDeleteResultStr:
|
||||
...
|
||||
) -> str:
|
||||
raise NotImplementedError
|
||||
@@ -1,15 +1,13 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiAccountDeleteUserResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
class CloudapiAccountDeleteUserImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiAccountDeleteUserProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def delete_user(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
account_id: int,
|
||||
user_name: str,
|
||||
) -> CloudapiAccountDeleteUserResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,14 +1,12 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiAccountDisableResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
class CloudapiAccountDisableImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiAccountDisableProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def disable(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
account_id: int,
|
||||
) -> CloudapiAccountDisableResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,14 +1,12 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiAccountEnableResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
class CloudapiAccountEnableImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiAccountEnableProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def enable(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
account_id: int,
|
||||
) -> CloudapiAccountEnableResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -2,7 +2,7 @@ import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiAccountGetResultModel(_base.BaseAPIResultModel):
|
||||
class CloudapiAccountGetResultModel(_base.BaseModel):
|
||||
acc_lvl_vins_ids: list[int]
|
||||
acl: list[_nested.AccessAPIResultNM]
|
||||
company_url: str
|
||||
@@ -52,10 +52,12 @@ class CloudapiAccountGetResultModel(_base.BaseAPIResultModel):
|
||||
return self._get_datetime_from_timestamp(self.updated_timestamp)
|
||||
|
||||
|
||||
class CloudapiAccountGetProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def get(
|
||||
class CloudapiAccountGetImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
account_id: int,
|
||||
) -> CloudapiAccountGetResultModel:
|
||||
...
|
||||
raise NotImplementedError
|
||||
@@ -3,7 +3,7 @@ import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiAccountGetResourceConsumptionResultModel(
|
||||
_base.BaseAPIResultModel,
|
||||
_base.BaseModel,
|
||||
):
|
||||
id: int
|
||||
consumed: _nested.ResourceCountersAPIResultNM
|
||||
@@ -11,11 +11,14 @@ class CloudapiAccountGetResourceConsumptionResultModel(
|
||||
quotas: _nested.TenantQuotasForResourceConsumptionAPIResultNM
|
||||
|
||||
|
||||
class CloudapiAccountGetResourceConsumptionProtocol(
|
||||
_base.BasePostAPIFunctionProtocol,
|
||||
class CloudapiAccountGetResourceConsumptionImpl(
|
||||
_base.APIFunctionImpl,
|
||||
):
|
||||
def get_resource_consumption(
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
account_id: int,
|
||||
) -> CloudapiAccountGetResourceConsumptionResultModel: ...
|
||||
) -> CloudapiAccountGetResourceConsumptionResultModel:
|
||||
raise NotImplementedError
|
||||
@@ -2,22 +2,24 @@ import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiAccountListResultModel(_base.BaseAPIResultModel):
|
||||
class CloudapiAccountListResultModel(_base.BaseModel):
|
||||
data: list[_nested.AccountForCAAPIResultNM]
|
||||
entry_count: int
|
||||
|
||||
|
||||
class CloudapiAccountListProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def list(
|
||||
class CloudapiAccountListImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
access_type: None | _nested.AccessType = None,
|
||||
id: None | int = None,
|
||||
name: None | str = None,
|
||||
zone_id: None | int = None,
|
||||
page_number: None | int = None,
|
||||
page_size: None | int = None,
|
||||
page_number: int = 1,
|
||||
page_size: int = 100,
|
||||
sort_by: None | str = None,
|
||||
status: None | _nested.AccountStatus = None,
|
||||
) -> CloudapiAccountListResultModel:
|
||||
...
|
||||
raise NotImplementedError
|
||||
@@ -2,20 +2,22 @@ import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiAccountListDeletedResultModel(_base.BaseAPIResultModel):
|
||||
class CloudapiAccountListDeletedResultModel(_base.BaseModel):
|
||||
data: list[_nested.AccountForCAAPIResultNM]
|
||||
entry_count: int
|
||||
|
||||
|
||||
class CloudapiAccountListDeletedProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def list_deleted(
|
||||
class CloudapiAccountListDeletedImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
access_type: None | _nested.AccessType = None,
|
||||
id: None | int = None,
|
||||
name: None | str = None,
|
||||
page_number: None | int = None,
|
||||
page_size: None | int = None,
|
||||
page_number: int = 1,
|
||||
page_size: int = 100,
|
||||
sort_by: None | str = None,
|
||||
) -> CloudapiAccountListDeletedResultModel:
|
||||
...
|
||||
raise NotImplementedError
|
||||
@@ -1,14 +1,12 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiAccountRestoreResultStr(_base.BaseAPIResultStr):
|
||||
pass
|
||||
class CloudapiAccountRestoreImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiAccountRestoreProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def restore(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
account_id: int,
|
||||
) -> CloudapiAccountRestoreResultStr:
|
||||
...
|
||||
) -> str:
|
||||
raise NotImplementedError
|
||||
@@ -1,12 +1,10 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiAccountUpdateResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
class CloudapiAccountUpdateImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiAccountUpdateProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def update(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
account_id: int,
|
||||
@@ -20,5 +18,5 @@ class CloudapiAccountUpdateProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
sep_pools: None | list[str] = None,
|
||||
description: str | None = None,
|
||||
default_zone_id: int | None = None,
|
||||
) -> CloudapiAccountUpdateResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -2,16 +2,14 @@ import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiAccountUpdateUserResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
class CloudapiAccountUpdateUserImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiAccountUpdateUserProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def update_user(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
account_id: int,
|
||||
access_type: _nested.AccessTypeForSet,
|
||||
user_name: str,
|
||||
) -> CloudapiAccountUpdateUserResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -5,7 +5,6 @@ from .list import *
|
||||
|
||||
class CloudapiAuditAPI(
|
||||
_base.BaseAPI,
|
||||
CloudapiAuditGetProtocol,
|
||||
CloudapiAuditListProtocol,
|
||||
):
|
||||
pass
|
||||
list: CloudapiAuditListImpl
|
||||
get: CloudapiAuditGetImpl
|
||||
@@ -3,16 +3,17 @@ import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiAuditGetResultModel(
|
||||
_base.BaseAPIResultModel,
|
||||
_nested.AuditAPIResultNM,
|
||||
):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiAuditGetProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def get(
|
||||
class CloudapiAuditGetImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
audit_guid: str,
|
||||
) -> CloudapiAuditGetResultModel:
|
||||
...
|
||||
raise NotImplementedError
|
||||
@@ -2,13 +2,15 @@ import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiAuditListResultModel(_base.BaseAPIResultModel):
|
||||
class CloudapiAuditListResultModel(_base.BaseModel):
|
||||
data: list[_nested.AuditAPIResultNM]
|
||||
entry_count: int
|
||||
|
||||
|
||||
class CloudapiAuditListProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def list(
|
||||
class CloudapiAuditListImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
account_id: int | None = None,
|
||||
@@ -32,4 +34,4 @@ class CloudapiAuditListProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
vins_id: int | None = None,
|
||||
vm_id: int | None = None,
|
||||
) -> CloudapiAuditListResultModel:
|
||||
...
|
||||
raise NotImplementedError
|
||||
@@ -29,31 +29,30 @@ from .stop import *
|
||||
|
||||
class CloudapiBserviceAPI(
|
||||
_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,
|
||||
):
|
||||
pass
|
||||
group_start: CloudapiBserviceGroupStartImpl
|
||||
restore: CloudapiBserviceRestoreImpl
|
||||
delete: CloudapiBserviceDeleteImpl
|
||||
disable: CloudapiBserviceDisableImpl
|
||||
group_update: CloudapiBserviceGroupUpdateImpl
|
||||
snapshot_delete: CloudapiBserviceSnapshotDeleteImpl
|
||||
create: CloudapiBserviceCreateImpl
|
||||
stop: CloudapiBserviceStopImpl
|
||||
group_update_vins: CloudapiBserviceGroupUpdateVinsImpl
|
||||
list: CloudapiBserviceListImpl
|
||||
group_get: CloudapiBserviceGroupGetImpl
|
||||
snapshot_rollback: CloudapiBserviceSnapshotRollbackImpl
|
||||
start: CloudapiBserviceStartImpl
|
||||
snapshot_create: CloudapiBserviceSnapshotCreateImpl
|
||||
get: CloudapiBserviceGetImpl
|
||||
group_remove: CloudapiBserviceGroupRemoveImpl
|
||||
snapshot_list: CloudapiBserviceSnapshotListImpl
|
||||
group_add: CloudapiBserviceGroupAddImpl
|
||||
migrate_to_zone: CloudapiBserviceMigrateToZoneImpl
|
||||
group_parent_remove: CloudapiBserviceGroupParentRemoveImpl
|
||||
list_deleted: CloudapiBserviceListDeletedImpl
|
||||
group_stop: CloudapiBserviceGroupStopImpl
|
||||
group_update_extnet: CloudapiBserviceGroupUpdateExtnetImpl
|
||||
group_compute_remove: CloudapiBserviceGroupComputeRemoveImpl
|
||||
group_parent_add: CloudapiBserviceGroupParentAddImpl
|
||||
enable: CloudapiBserviceEnableImpl
|
||||
@@ -1,12 +1,10 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceCreateResultInt(_base.BaseAPIResultInt):
|
||||
pass
|
||||
class CloudapiBserviceCreateImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiBserviceCreateProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def create(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
name: str,
|
||||
@@ -14,5 +12,5 @@ class CloudapiBserviceCreateProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
ssh_user_name: str | None = None,
|
||||
ssh_public_key: str | None = None,
|
||||
zone_id: int | None = None,
|
||||
) -> CloudapiBserviceCreateResultInt:
|
||||
...
|
||||
) -> int:
|
||||
raise NotImplementedError
|
||||
@@ -1,15 +1,13 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceDeleteResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
class CloudapiBserviceDeleteImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiBserviceDeleteProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def delete(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
permanently: bool = False,
|
||||
) -> CloudapiBserviceDeleteResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,14 +1,12 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceDisableResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
class CloudapiBserviceDisableImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiBserviceDisableProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def disable(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
) -> CloudapiBserviceDisableResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,14 +1,12 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceEnableResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
class CloudapiBserviceEnableImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiBserviceEnableProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def enable(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
) -> CloudapiBserviceEnableResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -2,7 +2,7 @@ import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiBserviceGetResultModel(_base.BaseAPIResultModel):
|
||||
class CloudapiBserviceGetResultModel(_base.BaseModel):
|
||||
account_id: int
|
||||
account_name: str
|
||||
base_domain: str
|
||||
@@ -47,10 +47,12 @@ class CloudapiBserviceGetResultModel(_base.BaseAPIResultModel):
|
||||
return self._get_datetime_from_timestamp(self.updated_timestamp)
|
||||
|
||||
|
||||
class CloudapiBserviceGetProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def get(
|
||||
class CloudapiBserviceGetImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
) -> CloudapiBserviceGetResultModel:
|
||||
...
|
||||
raise NotImplementedError
|
||||
@@ -2,12 +2,10 @@ import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiBserviceGroupAddResultInt(_base.BaseAPIResultInt):
|
||||
pass
|
||||
class CloudapiBserviceGroupAddImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiBserviceGroupAddProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def group_add(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
@@ -26,5 +24,5 @@ class CloudapiBserviceGroupAddProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
start_timeout: int | None = None,
|
||||
vins_ids: list[int] | None = None,
|
||||
chipset: _nested.Chipset = _nested.Chipset.Q35,
|
||||
) -> CloudapiBserviceGroupAddResultInt:
|
||||
...
|
||||
) -> int:
|
||||
raise NotImplementedError
|
||||
@@ -1,18 +1,16 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceGroupComputeRemoveResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiBserviceGroupComputeRemoveProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
class CloudapiBserviceGroupComputeRemoveImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
def group_compute_remove(
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
bsgroup_id: int,
|
||||
vm_id: int,
|
||||
) -> CloudapiBserviceGroupComputeRemoveResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -3,7 +3,7 @@ import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiBserviceGroupGetResultModel(
|
||||
_base.BaseAPIResultModel,
|
||||
_base.BaseModel,
|
||||
):
|
||||
account_id: int
|
||||
account_name: str
|
||||
@@ -29,7 +29,7 @@ class CloudapiBserviceGroupGetResultModel(
|
||||
rg_name: str
|
||||
role: str
|
||||
sep_id: int
|
||||
sep_pool_name: str
|
||||
sep_pool_name: str | None
|
||||
seq_no: int
|
||||
status: _nested.BServiceGroupStatus
|
||||
tech_status: _nested.BServiceGroupTechStatus
|
||||
@@ -52,10 +52,12 @@ class CloudapiBserviceGroupGetResultModel(
|
||||
return self._get_datetime_from_timestamp(self.updated_timestamp)
|
||||
|
||||
|
||||
class CloudapiBserviceGroupGetProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def group_get(
|
||||
class CloudapiBserviceGroupGetImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self, *,
|
||||
bservice_id: int,
|
||||
bsgroup_id: int
|
||||
) -> CloudapiBserviceGroupGetResultModel:
|
||||
...
|
||||
raise NotImplementedError
|
||||
@@ -1,18 +1,16 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceGroupParentAddResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiBserviceGroupParentAddProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
class CloudapiBserviceGroupParentAddImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
def group_parent_add(
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
child_id: int,
|
||||
parent_id: int,
|
||||
) -> CloudapiBserviceGroupParentAddResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,18 +1,16 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceGroupParentRemoveResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiBserviceGroupParentRemoveProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
class CloudapiBserviceGroupParentRemoveImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
def group_parent_remove(
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
child_id: int,
|
||||
parent_id: int,
|
||||
) -> CloudapiBserviceGroupParentRemoveResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,14 +1,12 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceGroupRemoveResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
class CloudapiBserviceGroupRemoveImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiBserviceGroupRemoveProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def group_remove(
|
||||
def __call__(
|
||||
self, *,
|
||||
bservice_id: int,
|
||||
bsgroup_id: int
|
||||
) -> CloudapiBserviceGroupRemoveResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,15 +1,13 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceGroupStartResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
class CloudapiBserviceGroupStartImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiBserviceGroupStartProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def group_start(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
bsgroup_id: int,
|
||||
) -> CloudapiBserviceGroupStartResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,16 +1,14 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceGroupStopResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
class CloudapiBserviceGroupStopImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiBserviceGroupStopProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def group_stop(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
bsgroup_id: int,
|
||||
force: bool = False,
|
||||
) -> CloudapiBserviceGroupStopResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,14 +1,12 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceGroupUpdateResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiBserviceGroupUpdateProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
class CloudapiBserviceGroupUpdateImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
def group_update(
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
@@ -19,5 +17,5 @@ class CloudapiBserviceGroupUpdateProtocol(
|
||||
name: str | None = None,
|
||||
ram_size_mb: int | None = None,
|
||||
role: str | None = None,
|
||||
) -> CloudapiBserviceGroupUpdateResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,18 +1,16 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceGroupUpdateExtnetResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiBserviceGroupUpdateExtnetProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
class CloudapiBserviceGroupUpdateExtnetImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
def group_update_extnet(
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
bsgroup_id: int,
|
||||
extnet_ids: list[int] | None = None,
|
||||
) -> CloudapiBserviceGroupUpdateExtnetResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,18 +1,16 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceGroupUpdateVinsResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiBserviceGroupUpdateVinsProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
class CloudapiBserviceGroupUpdateVinsImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
def group_update_vins(
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
bsgroup_id: int,
|
||||
vins_ids: list[int] | None = None,
|
||||
) -> CloudapiBserviceGroupUpdateVinsResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -2,13 +2,15 @@ import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiBserviceListResultModel(_base.BaseAPIResultModel):
|
||||
class CloudapiBserviceListResultModel(_base.BaseModel):
|
||||
data: list[_nested.BServiceAPIResultNM]
|
||||
entry_count: int
|
||||
|
||||
|
||||
class CloudapiBserviceListProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def list(
|
||||
class CloudapiBserviceListImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
account_id: int | None = None,
|
||||
@@ -16,12 +18,12 @@ class CloudapiBserviceListProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
id: int | None = None,
|
||||
name: str | None = None,
|
||||
zone_id: int | None = None,
|
||||
page_number: int | None = None,
|
||||
page_size: int | None = None,
|
||||
page_number: int = 1,
|
||||
page_size: int = 100,
|
||||
rg_id: int | None = None,
|
||||
rg_name: str | None = None,
|
||||
sort_by: str | None = None,
|
||||
status: _nested.BServiceStatus | None = None,
|
||||
tech_status: _nested.BServiceTechStatus | None = None,
|
||||
) -> CloudapiBserviceListResultModel:
|
||||
...
|
||||
raise NotImplementedError
|
||||
@@ -2,19 +2,21 @@ import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiBserviceListDeletedResultModel(_base.BaseAPIResultModel):
|
||||
class CloudapiBserviceListDeletedResultModel(_base.BaseModel):
|
||||
data: list[_nested.BServiceAPIResultNM]
|
||||
entry_count: int
|
||||
|
||||
|
||||
class CloudapiBserviceListDeletedProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def list_deleted(
|
||||
class CloudapiBserviceListDeletedImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
account_id: int | None = None,
|
||||
page_number: int | None = None,
|
||||
page_size: int | None = None,
|
||||
page_number: int = 1,
|
||||
page_size: int = 100,
|
||||
rg_id: int | None = None,
|
||||
sort_by: str | None = None,
|
||||
) -> CloudapiBserviceListDeletedResultModel:
|
||||
...
|
||||
raise NotImplementedError
|
||||
@@ -1,15 +1,13 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceMigrateToZoneResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
class CloudapiBserviceMigrateToZoneImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiBserviceMigrateToZoneProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def migrate_to_zone(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
zone_id: int,
|
||||
) -> CloudapiBserviceMigrateToZoneResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,14 +1,12 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceRestoreResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
class CloudapiBserviceRestoreImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiBserviceRestoreProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def restore(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
) -> CloudapiBserviceRestoreResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,17 +1,15 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceSnapshotCreateResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiBserviceSnapshotCreateProtocol(
|
||||
_base.BasePostAPIFunctionProtocol,
|
||||
class CloudapiBserviceSnapshotCreateImpl(
|
||||
_base.APIFunctionImpl,
|
||||
):
|
||||
def snapshot_create(
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
label: str,
|
||||
) -> CloudapiBserviceSnapshotCreateResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,17 +1,15 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceSnapshotDeleteResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiBserviceSnapshotDeleteProtocol(
|
||||
_base.BasePostAPIFunctionProtocol,
|
||||
class CloudapiBserviceSnapshotDeleteImpl(
|
||||
_base.APIFunctionImpl,
|
||||
):
|
||||
def snapshot_delete(
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
label: str,
|
||||
) -> CloudapiBserviceSnapshotDeleteResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -2,15 +2,17 @@ import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiBserviceSnapshotListResultModel(_base.BaseAPIResultModel):
|
||||
class CloudapiBserviceSnapshotListResultModel(_base.BaseModel):
|
||||
data: list[_nested.BServiceSnapshotAPIResultNM]
|
||||
entry_count: int
|
||||
|
||||
|
||||
class CloudapiBserviceSnapshotListProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def snapshot_list(
|
||||
class CloudapiBserviceSnapshotListImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
) -> CloudapiBserviceSnapshotListResultModel:
|
||||
...
|
||||
raise NotImplementedError
|
||||
@@ -1,17 +1,15 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceSnapshotRollbackResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiBserviceSnapshotRollbackProtocol(
|
||||
_base.BasePostAPIFunctionProtocol,
|
||||
class CloudapiBserviceSnapshotRollbackImpl(
|
||||
_base.APIFunctionImpl,
|
||||
):
|
||||
def snapshot_rollback(
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
label: str,
|
||||
) -> CloudapiBserviceSnapshotRollbackResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,14 +1,12 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceStartResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
class CloudapiBserviceStartImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiBserviceStartProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def start(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
) -> CloudapiBserviceStartResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,14 +1,12 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceStopResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
class CloudapiBserviceStopImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiBserviceStopProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def stop(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
) -> CloudapiBserviceStopResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -23,6 +23,7 @@ from .clone import *
|
||||
from .create_template import *
|
||||
from .delete import *
|
||||
from .delete_custom_fields import *
|
||||
from .delete_cpu_alignment_profile import *
|
||||
from .detach_gpu import *
|
||||
from .detach_pci_device import *
|
||||
from .disable import *
|
||||
@@ -35,6 +36,7 @@ from .disk_switch_to_replication import *
|
||||
from .enable import *
|
||||
from .get import *
|
||||
from .get_console_url import *
|
||||
from .get_cpu_alignment_profile import *
|
||||
from .guest_agent_disable import *
|
||||
from .guest_agent_enable import *
|
||||
from .guest_agent_execute import *
|
||||
@@ -57,6 +59,7 @@ from .reset import *
|
||||
from .resize import *
|
||||
from .restore import *
|
||||
from .resume import *
|
||||
from .set_cpu_alignment_profile import *
|
||||
from .set_custom_fields import *
|
||||
from .snapshot_create import *
|
||||
from .snapshot_list import *
|
||||
@@ -75,77 +78,79 @@ from .user_update import *
|
||||
|
||||
class CloudapiComputeAPI(
|
||||
_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,
|
||||
):
|
||||
pass
|
||||
get: CloudapiComputeGetImpl
|
||||
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,19 +1,16 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeAbortSharedSnapshotMergeResultStr(
|
||||
_base.BaseAPIResultStr,
|
||||
class CloudapiComputeAbortSharedSnapshotMergeImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
pass
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiComputeAbortSharedSnapshotMergeProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
):
|
||||
def abort_shared_snapshot_merge(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
label: str,
|
||||
) -> CloudapiComputeAbortSharedSnapshotMergeResultStr:
|
||||
...
|
||||
async_mode: bool = False,
|
||||
) -> str:
|
||||
raise NotImplementedError
|
||||
@@ -1,16 +1,14 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeAffinityLabelRemoveResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeAffinityLabelRemoveProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
class CloudapiComputeAffinityLabelRemoveImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
def affinity_label_remove(
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
) -> CloudapiComputeAffinityLabelRemoveResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,17 +1,15 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeAffinityLabelSetResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeAffinityLabelSetProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
class CloudapiComputeAffinityLabelSetImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
def affinity_label_set(
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
affinity_label: str,
|
||||
) -> CloudapiComputeAffinityLabelSetResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -3,18 +3,19 @@ from dynamix_sdk.api import _nested
|
||||
|
||||
|
||||
class CloudapiComputeAffinityRelationsResultModel(
|
||||
_base.BaseAPIResultModel,
|
||||
_nested.AffinityRelationsAPIResultNM,
|
||||
):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeAffinityRelationsProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
class CloudapiComputeAffinityRelationsImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
def affinity_relations(
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
) -> CloudapiComputeAffinityRelationsResultModel:
|
||||
...
|
||||
raise NotImplementedError
|
||||
@@ -2,14 +2,12 @@ import dynamix_sdk.base as _base
|
||||
from dynamix_sdk.api import _nested
|
||||
|
||||
|
||||
class CloudapiComputeAffinityRuleAddResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeAffinityRuleAddProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
class CloudapiComputeAffinityRuleAddImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
def affinity_rule_add(
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
@@ -18,5 +16,5 @@ class CloudapiComputeAffinityRuleAddProtocol(
|
||||
mode: _nested.AffinityMode,
|
||||
key: str,
|
||||
value: str,
|
||||
) -> CloudapiComputeAffinityRuleAddResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -2,14 +2,12 @@ import dynamix_sdk.base as _base
|
||||
from dynamix_sdk.api import _nested
|
||||
|
||||
|
||||
class CloudapiComputeAffinityRuleRemoveResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeAffinityRuleRemoveProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
class CloudapiComputeAffinityRuleRemoveImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
def affinity_rule_remove(
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
@@ -18,5 +16,5 @@ class CloudapiComputeAffinityRuleRemoveProtocol(
|
||||
mode: _nested.AffinityMode,
|
||||
key: str,
|
||||
value: str,
|
||||
) -> CloudapiComputeAffinityRuleRemoveResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,16 +1,14 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeAffinityRulesClearResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeAffinityRulesClearProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
class CloudapiComputeAffinityRulesClearImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
def affinity_rules_clear(
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
) -> CloudapiComputeAffinityRulesClearResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -2,14 +2,12 @@ import dynamix_sdk.base as _base
|
||||
from dynamix_sdk.api import _nested
|
||||
|
||||
|
||||
class CloudapiComputeAntiAffinityRuleAddResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeAntiAffinityRuleAddProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
class CloudapiComputeAntiAffinityRuleAddImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
def anti_affinity_rule_add(
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
@@ -18,5 +16,5 @@ class CloudapiComputeAntiAffinityRuleAddProtocol(
|
||||
mode: _nested.AffinityMode,
|
||||
key: str,
|
||||
value: str,
|
||||
) -> CloudapiComputeAntiAffinityRuleAddResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -2,14 +2,12 @@ import dynamix_sdk.base as _base
|
||||
from dynamix_sdk.api import _nested
|
||||
|
||||
|
||||
class CloudapiComputeAntiAffinityRuleRemoveResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeAntiAffinityRuleRemoveProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
class CloudapiComputeAntiAffinityRuleRemoveImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
def anti_affinity_rule_remove(
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
@@ -18,5 +16,5 @@ class CloudapiComputeAntiAffinityRuleRemoveProtocol(
|
||||
mode: _nested.AffinityMode,
|
||||
key: str,
|
||||
value: str,
|
||||
) -> CloudapiComputeAntiAffinityRuleRemoveResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,16 +1,14 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeAntiAffinityRulesClearResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeAntiAffinityRulesClearProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
class CloudapiComputeAntiAffinityRulesClearImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
def anti_affinity_rules_clear(
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
) -> CloudapiComputeAntiAffinityRulesClearResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,15 +1,13 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeAttachGpuResultInt(_base.BaseAPIResultInt):
|
||||
pass
|
||||
class CloudapiComputeAttachGpuImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiComputeAttachGpuProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def attach_gpu(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
vgpu_id: int,
|
||||
) -> CloudapiComputeAttachGpuResultInt:
|
||||
...
|
||||
) -> int:
|
||||
raise NotImplementedError
|
||||
@@ -1,17 +1,15 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeAttachPciDeviceResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeAttachPciDeviceProtocol(
|
||||
_base.BasePostAPIFunctionProtocol,
|
||||
class CloudapiComputeAttachPciDeviceImpl(
|
||||
_base.APIFunctionImpl,
|
||||
):
|
||||
def attach_pci_device(
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
pci_device_id: int,
|
||||
) -> CloudapiComputeAttachPciDeviceResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,15 +1,13 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeBootDiskSetResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
class CloudapiComputeBootDiskSetImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiComputeBootDiskSetProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def boot_disk_set(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
disk_id: int,
|
||||
) -> CloudapiComputeBootDiskSetResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,14 +1,13 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeCdEjectResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
class CloudapiComputeCdEjectImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiComputeCdEjectProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def cd_eject(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
) -> CloudapiComputeCdEjectResultBool:
|
||||
...
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
@@ -1,15 +1,14 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeCdInsertResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
class CloudapiComputeCdInsertImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiComputeCdInsertProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def cd_insert(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
cdrom_image_id: int,
|
||||
) -> CloudapiComputeCdInsertResultBool:
|
||||
...
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
@@ -2,17 +2,16 @@ import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiComputeChangeIpResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
class CloudapiComputeChangeIpImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiComputeChangeIpProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def change_ip(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
net_type: _nested.NetTypeForChangeIP,
|
||||
net_id: int,
|
||||
ip_addr: str,
|
||||
) -> CloudapiComputeChangeIpResultBool:
|
||||
...
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
@@ -2,18 +2,17 @@ import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiComputeChangeLinkStateResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeChangeLinkStateProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
class CloudapiComputeChangeLinkStateImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
def change_link_state(
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
interface: str,
|
||||
state: _nested.LinkState,
|
||||
vm_id: int,
|
||||
) -> CloudapiComputeChangeLinkStateResultBool:
|
||||
...
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
@@ -1,16 +1,14 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeChangeMacResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
class CloudapiComputeChangeMacImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiComputeChangeMacProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def change_mac(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
current_mac: str,
|
||||
new_mac: str,
|
||||
) -> CloudapiComputeChangeMacResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,18 +1,17 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeChangeMtuResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeChangeMtuProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
class CloudapiComputeChangeMtuImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
def change_mtu(
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
interface: str,
|
||||
mtu: int,
|
||||
) -> CloudapiComputeChangeMtuResultBool:
|
||||
...
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
@@ -1,19 +1,18 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeChangeSecurityGroupsResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeChangeSecurityGroupsProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
class CloudapiComputeChangeSecurityGroupsImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
def change_security_groups(
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
interface: str,
|
||||
security_group_ids: list[int] | None = None,
|
||||
security_group_mode: bool | None = None,
|
||||
) -> CloudapiComputeChangeSecurityGroupsResultBool:
|
||||
...
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
@@ -1,12 +1,10 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeCloneResultStr(_base.BaseAPIResultStr):
|
||||
pass
|
||||
class CloudapiComputeCloneImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiComputeCloneProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def clone(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
@@ -17,5 +15,6 @@ class CloudapiComputeCloneProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
snapshot_name: str | None = None,
|
||||
sep_pool_name: str | None = None,
|
||||
sep_id: int | None = None,
|
||||
) -> CloudapiComputeCloneResultStr:
|
||||
...
|
||||
async_mode: bool = True,
|
||||
) -> str | int:
|
||||
raise NotImplementedError
|
||||
@@ -1,15 +1,14 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeCreateTemplateResultStr(_base.BaseAPIResultStr):
|
||||
pass
|
||||
class CloudapiComputeCreateTemplateImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiComputeCreateTemplateProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def create_template(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
name: str
|
||||
) -> CloudapiComputeCreateTemplateResultStr:
|
||||
...
|
||||
name: str,
|
||||
async_mode: bool = True,
|
||||
) -> str | int:
|
||||
raise NotImplementedError
|
||||
@@ -1,16 +1,15 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeDeleteResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
class CloudapiComputeDeleteImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiComputeDeleteProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def delete(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
detach_disks: bool = False,
|
||||
permanently: bool = False,
|
||||
) -> CloudapiComputeDeleteResultBool:
|
||||
...
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
@@ -0,0 +1,12 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeDeleteCpuAlignmentProfileImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_ids: list[int],
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,16 +1,14 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeDeleteCustomFieldsResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeDeleteCustomFieldsProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
class CloudapiComputeDeleteCustomFieldsImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
def delete_custom_fields(
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
) -> CloudapiComputeDeleteCustomFieldsResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,15 +1,13 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeDetachGpuResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
class CloudapiComputeDetachGpuImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiComputeDetachGpuProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def detach_gpu(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
vgpu_id: int | None = None,
|
||||
) -> CloudapiComputeDetachGpuResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,17 +1,15 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeDetachPciDeviceResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeDetachPciDeviceProtocol(
|
||||
_base.BasePostAPIFunctionProtocol,
|
||||
class CloudapiComputeDetachPciDeviceImpl(
|
||||
_base.APIFunctionImpl,
|
||||
):
|
||||
def detach_pci_device(
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
pci_device_id: int,
|
||||
) -> CloudapiComputeDetachPciDeviceResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,16 +1,15 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeDisableResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeDisableProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
class CloudapiComputeDisableImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
def disable(
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
) -> CloudapiComputeDisableResultBool:
|
||||
...
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
@@ -1,12 +1,10 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeDiskAddResultInt(_base.BaseAPIResultInt):
|
||||
pass
|
||||
class CloudapiComputeDiskAddImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiComputeDiskAddProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def disk_add(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
@@ -19,5 +17,7 @@ class CloudapiComputeDiskAddProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
image_id: int | None = None,
|
||||
pci_slot_num_hex: str | None = None,
|
||||
bus_num_hex: str | None = None,
|
||||
) -> CloudapiComputeDiskAddResultInt:
|
||||
...
|
||||
async_mode: bool = False,
|
||||
read_only_mode: bool = False,
|
||||
) -> int | str:
|
||||
raise NotImplementedError
|
||||
@@ -1,17 +1,17 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeDiskAttachResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
class CloudapiComputeDiskAttachImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiComputeDiskAttachProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def disk_attach(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
disk_id: int,
|
||||
pci_slot_num_hex: str | None = None,
|
||||
bus_num_hex: str | None = None,
|
||||
) -> CloudapiComputeDiskAttachResultBool:
|
||||
...
|
||||
async_mode: bool = False,
|
||||
read_only_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
@@ -1,16 +1,15 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeDiskDelResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
class CloudapiComputeDiskDelImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiComputeDiskDelProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def disk_del(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
disk_id: int,
|
||||
permanently: bool = True,
|
||||
) -> CloudapiComputeDiskDelResultBool:
|
||||
...
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
@@ -1,15 +1,14 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeDiskDetachResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
class CloudapiComputeDiskDetachImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiComputeDiskDetachProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def disk_detach(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
disk_id: int,
|
||||
) -> CloudapiComputeDiskDetachResultBool:
|
||||
...
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
@@ -1,19 +1,17 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeDiskMigrateResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeDiskMigrateProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
class CloudapiComputeDiskMigrateImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
def disk_migrate(
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
disk_id: int,
|
||||
target_disk_id: int,
|
||||
mode: int = 1,
|
||||
) -> CloudapiComputeDiskMigrateResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -1,20 +1,17 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeDiskSwitchToReplicationResultBool(
|
||||
_base.BaseAPIResultBool,
|
||||
class CloudapiComputeDiskSwitchToReplicationImpl(
|
||||
_base.APIFunctionImpl,
|
||||
):
|
||||
pass
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiComputeDiskSwitchToReplicationProtocol(
|
||||
_base.BasePostAPIFunctionProtocol,
|
||||
):
|
||||
def disk_switch_to_replication(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
disk_id: int,
|
||||
stop_replication: bool = False,
|
||||
) -> CloudapiComputeDiskSwitchToReplicationResultBool:
|
||||
...
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
@@ -1,14 +1,12 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeEnableResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
class CloudapiComputeEnableImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiComputeEnableProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def enable(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
) -> CloudapiComputeEnableResultBool:
|
||||
...
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
@@ -2,7 +2,7 @@ import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiComputeGetResultModel(_base.BaseAPIResultModel):
|
||||
class CloudapiComputeGetResultModel(_base.BaseModel):
|
||||
account_id: int
|
||||
account_name: str
|
||||
acl: _nested.VMACLAPIResultNM
|
||||
@@ -21,8 +21,10 @@ class CloudapiComputeGetResultModel(_base.BaseAPIResultModel):
|
||||
cdrom_image_id: int
|
||||
chipset: _nested.Chipset
|
||||
ci_user_data: dict
|
||||
clock_sync_mode: _nested.ClockSyncMode
|
||||
clone_ids: list[int]
|
||||
clone_reference: int
|
||||
cpu_alignment_profile: _nested.CPUAlignmentProfileAPIResultNM | dict
|
||||
cpu_count: int
|
||||
cpu_pin: bool
|
||||
created_by: str
|
||||
@@ -62,6 +64,7 @@ class CloudapiComputeGetResultModel(_base.BaseAPIResultModel):
|
||||
reference_id: str
|
||||
res_name: str
|
||||
reserved_cpu_cores: list[int]
|
||||
resized_online: bool
|
||||
rg_id: int
|
||||
rg_name: str
|
||||
snapshot_sets: list[_nested.SnapshotSetAPIResultNM]
|
||||
@@ -99,10 +102,12 @@ class CloudapiComputeGetResultModel(_base.BaseAPIResultModel):
|
||||
return self._get_datetime_from_timestamp(self.updated_timestamp)
|
||||
|
||||
|
||||
class CloudapiComputeGetProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def get(
|
||||
class CloudapiComputeGetImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
) -> CloudapiComputeGetResultModel:
|
||||
...
|
||||
raise NotImplementedError
|
||||
@@ -1,14 +1,12 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeGetConsoleUrlResultStr(_base.BaseAPIResultStr):
|
||||
pass
|
||||
class CloudapiComputeGetConsoleUrlImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiComputeGetConsoleUrlProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def get_console_url(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
) -> CloudapiComputeGetConsoleUrlResultStr:
|
||||
...
|
||||
) -> str:
|
||||
raise NotImplementedError
|
||||
@@ -0,0 +1,18 @@
|
||||
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,16 +1,15 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeGuestAgentDisableResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeGuestAgentDisableProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
class CloudapiComputeGuestAgentDisableImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
def guest_agent_disable(
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
) -> CloudapiComputeGuestAgentDisableResultBool:
|
||||
...
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
@@ -1,16 +1,15 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeGuestAgentEnableResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeGuestAgentEnableProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
class CloudapiComputeGuestAgentEnableImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
def guest_agent_enable(
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
) -> CloudapiComputeGuestAgentEnableResultBool:
|
||||
...
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
@@ -3,19 +3,22 @@ import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeGuestAgentExecuteResultModel(
|
||||
_base.BaseAPIResultModel,
|
||||
_base.BaseModel,
|
||||
):
|
||||
exec_result: dict
|
||||
|
||||
|
||||
class CloudapiComputeGuestAgentExecuteProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
class CloudapiComputeGuestAgentExecuteImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
def guest_agent_execute(
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
cmd: str,
|
||||
args: dict[str, _typing.Any],
|
||||
) -> CloudapiComputeGuestAgentExecuteResultModel:
|
||||
...
|
||||
async_mode: bool = False,
|
||||
) -> CloudapiComputeGuestAgentExecuteResultModel | str:
|
||||
raise NotImplementedError
|
||||
@@ -1,18 +1,15 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeGuestAgentFeatureUpdateResultBool(
|
||||
_base.BaseAPIResultBool,
|
||||
class CloudapiComputeGuestAgentFeatureUpdateImpl(
|
||||
_base.APIFunctionImpl
|
||||
):
|
||||
pass
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiComputeGuestAgentFeatureUpdateProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
):
|
||||
def guest_agent_feature_update(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
) -> CloudapiComputeGuestAgentFeatureUpdateResultBool:
|
||||
...
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
@@ -2,13 +2,15 @@ import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiComputeListResultModel(_base.BaseAPIResultModel):
|
||||
class CloudapiComputeListResultModel(_base.BaseModel):
|
||||
data: list[_nested.VMAPIResultNM]
|
||||
entry_count: int
|
||||
|
||||
|
||||
class CloudapiComputeListProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def list(
|
||||
class CloudapiComputeListImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
account_id: int | None = None,
|
||||
@@ -19,12 +21,12 @@ class CloudapiComputeListProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
ip_addr: str | None = None,
|
||||
name: str | None = None,
|
||||
zone_id: int | None = None,
|
||||
page_number: int | None = None,
|
||||
page_size: int | None = None,
|
||||
page_number: int = 1,
|
||||
page_size: int = 100,
|
||||
rg_id: int | None = None,
|
||||
rg_name: str | None = None,
|
||||
sort_by: str | None = None,
|
||||
status: _nested.VMStatus | None = None,
|
||||
tech_status: _nested.VMTechStatus | None = None,
|
||||
) -> CloudapiComputeListResultModel:
|
||||
...
|
||||
raise NotImplementedError
|
||||
@@ -2,13 +2,15 @@ import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiComputeListDeletedResultModel(_base.BaseAPIResultModel):
|
||||
class CloudapiComputeListDeletedResultModel(_base.BaseModel):
|
||||
data: list[_nested.VMAPIResultNM]
|
||||
entry_count: int
|
||||
|
||||
|
||||
class CloudapiComputeListDeletedProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def list_deleted(
|
||||
class CloudapiComputeListDeletedImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
id: int | None = None,
|
||||
@@ -20,8 +22,8 @@ class CloudapiComputeListDeletedProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
ip_addr: str | None = None,
|
||||
ext_net_name: str | None = None,
|
||||
ext_net_id: int | None = None,
|
||||
page_number: int | None = None,
|
||||
page_size: int | None = None,
|
||||
page_number: int = 1,
|
||||
page_size: int = 100,
|
||||
sort_by: str | None = None,
|
||||
) -> CloudapiComputeListDeletedResultModel:
|
||||
...
|
||||
raise NotImplementedError
|
||||
@@ -1,15 +1,14 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeMigrateToZoneResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
class CloudapiComputeMigrateToZoneImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiComputeMigrateToZoneProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def migrate_to_zone(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
zone_id: int,
|
||||
) -> CloudapiComputeMigrateToZoneResultBool:
|
||||
...
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
@@ -1,12 +1,10 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeMoveToRgResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
class CloudapiComputeMoveToRgImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiComputeMoveToRgProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def move_to_rg(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
@@ -14,5 +12,6 @@ class CloudapiComputeMoveToRgProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
new_vm_name: str | None = None,
|
||||
auto_start: bool = False,
|
||||
force_stop: bool = False,
|
||||
) -> CloudapiComputeMoveToRgResultBool:
|
||||
...
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
@@ -3,14 +3,15 @@ import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiComputeNetAttachResultModel(
|
||||
_base.BaseAPIResultModel,
|
||||
_nested.InterfaceForComputeGetAPIResultNM,
|
||||
):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeNetAttachProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def net_attach(
|
||||
class CloudapiComputeNetAttachImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
@@ -25,8 +26,10 @@ class CloudapiComputeNetAttachProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
sdn_logical_port_id: None | str = None,
|
||||
net_prefix: int | None = None,
|
||||
sdn_segment_id: str | None = None,
|
||||
sdn_object_group_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,
|
||||
) -> CloudapiComputeNetAttachResultModel:
|
||||
...
|
||||
async_mode: bool = False,
|
||||
enable_default_gateway: bool = True,
|
||||
) -> CloudapiComputeNetAttachResultModel | str:
|
||||
raise NotImplementedError
|
||||
@@ -1,16 +1,15 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeNetDetachResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
class CloudapiComputeNetDetachImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiComputeNetDetachProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def net_detach(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
ip_addr: None | str = None,
|
||||
mac: None | str = None,
|
||||
) -> CloudapiComputeNetDetachResultBool:
|
||||
...
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
@@ -1,14 +1,13 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputePauseResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
class CloudapiComputePauseImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiComputePauseProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def pause(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
) -> CloudapiComputePauseResultBool:
|
||||
...
|
||||
async_mode: bool = False,
|
||||
) -> bool | str:
|
||||
raise NotImplementedError
|
||||
@@ -2,12 +2,10 @@ import dynamix_sdk.base as _base
|
||||
from dynamix_sdk.api import _nested
|
||||
|
||||
|
||||
class CloudapiComputePfwAddResultInt(_base.BaseAPIResultInt):
|
||||
pass
|
||||
class CloudapiComputePfwAddImpl(_base.APIFunctionImpl):
|
||||
http_method = _base.HTTPMethod.POST
|
||||
|
||||
|
||||
class CloudapiComputePfwAddProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def pfw_add(
|
||||
def __call__(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
@@ -15,5 +13,6 @@ class CloudapiComputePfwAddProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
protocol: _nested.NATRuleProtocol,
|
||||
public_port_end: int | None = None,
|
||||
local_port: int | None = None,
|
||||
) -> CloudapiComputePfwAddResultInt:
|
||||
...
|
||||
async_mode: bool = False,
|
||||
) -> int | str:
|
||||
raise NotImplementedError
|
||||
Loaded 100 of 438 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user