Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d28e890f39 |
No files matched your search
+7
-52
@@ -1,60 +1,15 @@
|
|||||||
# Список изменений в версии 2.1.4
|
# Список изменений в версии 1.5.4
|
||||||
|
|
||||||
## Изменено
|
|
||||||
|
|
||||||
## Добавлено
|
## Добавлено
|
||||||
|
|
||||||
| Идентификатор<br>задачи | Описание |
|
| Идентификатор<br>задачи | Описание |
|
||||||
| --- | --- |
|
| --- | --- |
|
||||||
| BPYS-2628 | Добавлена функция `cloudbroker.disks.replication_promote`. |
|
|
||||||
| BPYS-2629 | Добавлена функция `cloudbroker.disks.replication_set_copy_rate`. |
|
|
||||||
| BPYS-2633 | Добавлена функция `cloudbroker.disks.replication_suspend`. |
|
|
||||||
| BPYS-2615 | Добавлена функция `cloudbroker.disks.migrate_v2_cleanup`. |
|
|
||||||
| BPYS-2625 | Добавлена функция `cloudbroker.disks.resize2`. |
|
|
||||||
| BPYS-2616 | Добавлена функция `cloudbroker.disks.migrate_v2_get`. |
|
|
||||||
| BPYS-2630 | Добавлена функция `cloudbroker.disks.replication_resume`. |
|
|
||||||
| BPYS-2631 | Добавлена функция `cloudbroker.disks.replication_reverse`. |
|
|
||||||
| BPYS-2637 | Добавлена функция `cloudbroker.disks.unshare`. |
|
|
||||||
| BPYS-2617 | Добавлена функция `cloudbroker.disks.migrate_v2_list`. |
|
|
||||||
| BPYS-2618 | Добавлена функция `cloudbroker.disks.migrate_v2_resolve`. |
|
|
||||||
| BPYS-2632 | Добавлена функция `cloudbroker.disks.replication_status`. |
|
|
||||||
| BPYS-2627 | Добавлена функция `cloudbroker.pcidevice.list`. |
|
|
||||||
| BPYS-2652 | Добавлена функция `cloudbroker.pcidevice.create`. |
|
|
||||||
| BPYS-2654 | Добавлена функция `cloudbroker.pcidevice.enable`. |
|
|
||||||
| BPYS-2655 | Добавлена функция `cloudbroker.pcidevice.disable`. |
|
|
||||||
| BPYS-2658 | Добавлена функция `cloudbroker.network_qos_policy.create`. |
|
|
||||||
| BPYS-2659 | Добавлена функция `cloudbroker.network_qos_policy.create_rule`. |
|
|
||||||
| BPYS-2660 | Добавлена функция `cloudbroker.network_qos_policy.delete`. |
|
|
||||||
| BPYS-2661 | Добавлена функция `cloudbroker.network_qos_policy.delete_rule`. |
|
|
||||||
| BPYS-2663 | Добавлена функция `cloudbroker.network_qos_policy.list`. |
|
|
||||||
| BPYS-2662 | Добавлена функция `cloudbroker.network_qos_policy.get`. |
|
|
||||||
| BPYS-2664 | Добавлена функция `cloudbroker.network_qos_policy.update`. |
|
|
||||||
| BPYS-2626 | Добавлена функция `cloudbroker.disks.restore`. |
|
|
||||||
| BPYS-2636 | Добавлена функция `cloudbroker.disks.share`. |
|
|
||||||
| BPYS-2638 | Добавлена функция `cloudbroker.disks.snapshot_delete`. |
|
|
||||||
| BPYS-2653 | Добавлена функция `cloudbroker.pcidevice.delete`. |
|
|
||||||
| BPYS-2656 | Добавлена функция `cloudbroker.pcidevice.access_grant`. |
|
|
||||||
| BPYS-2657 | Добавлена функция `cloudbroker.pcidevice.access_revoke`. |
|
|
||||||
| BPYS-2639 | Добавлена функция `cloudbroker.disks.snapshot_rollback`. |
|
|
||||||
| BPYS-2668 | Добавлена функция `cloudbroker.vfpool.create`. |
|
|
||||||
| BPYS-2670 | Добавлена функция `cloudbroker.vfpool.disable`. |
|
|
||||||
| BPYS-2650 | Добавлена функция `cloudbroker.milestones.list`. |
|
|
||||||
| BPYS-2675 | Добавлена функция `cloudbroker.storage_policy.add_access_replication_profile`. |
|
|
||||||
| BPYS-2676 | Добавлена функция `cloudbroker.storage_policy.create_replication_profile`. |
|
|
||||||
| BPYS-2677 | Добавлена функция `cloudbroker.storage_policy.delete_replication_profile`. |
|
|
||||||
| BPYS-2678 | Добавлена функция `cloudbroker.storage_policy.get_replication_profile`. |
|
|
||||||
| BPYS-2679 | Добавлена функция `cloudbroker.storage_policy.list_replication_profile`. |
|
|
||||||
| BPYS-2669 | Добавлена функция `cloudbroker.vfpool.delete`. |
|
|
||||||
| BPYS-2671 | Добавлена функция `cloudbroker.vfpool.enable`. |
|
|
||||||
| BPYS-2674 | Добавлена функция `cloudbroker.vfpool.update`. |
|
|
||||||
| BPYS-2672 | Добавлена функция `cloudbroker.vfpool.get`. |
|
|
||||||
| BPYS-2651 | Добавлена функция `cloudbroker.vnfdev.add_mgmt_addr`. |
|
|
||||||
| BPYS-2684 | Добавлена функция `cloudbroker.vnfdev.apply_config`. |
|
|
||||||
| BPYS-2687 | Добавлена функция `cloudbroker.vnfdev.config_save`. |
|
|
||||||
| BPYS-2692 | Добавлена функция `cloudbroker.vnfdev.iface_remove`. |
|
|
||||||
| BPYS-2690 | Добавлена функция `cloudbroker.vnfdev.list`. |
|
|
||||||
| BPYS-2697 | Добавлена функция `cloudbroker.vnfdev.migrate`. |
|
|
||||||
|
|
||||||
## Удалено
|
## Удалено
|
||||||
|
| Идентификатор<br>задачи | Описание |
|
||||||
|
| --- | --- |
|
||||||
|
|
||||||
## Исправлено
|
## Исправлено
|
||||||
|
| Идентификатор<br>задачи | Описание |
|
||||||
|
| --- | --- |
|
||||||
|
| BPYS-2075 | Функция `cloudapi.vins.nat_rule_list`: вызов функции завершался ошибкой валидации поля `data.local_port`, если API возвращал для него `null`. В модели результата тип поля `data.local_port` изменён с `int` на `int \| None`. |
|
||||||
|
| BPYS-2074 | Функция `cloudapi.vins.get`: вызов завершался ошибкой валидации поля `vnfs.nat.config.rules.local_port`, если API возвращал для него `null`. В модели результата тип поля `vnfs.nat.config.rules.local_port` изменён с `int` на `int \| None`. |
|
||||||
+5
-11
@@ -5,22 +5,16 @@ authors = [
|
|||||||
{name = "Vladislav Nesterov"},
|
{name = "Vladislav Nesterov"},
|
||||||
{name = "Stanislav Karimov"},
|
{name = "Stanislav Karimov"},
|
||||||
]
|
]
|
||||||
version = "2.1.4"
|
version = "1.5.4"
|
||||||
|
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
|
||||||
requires-python = ">=3.12, <3.15"
|
requires-python = ">=3.12"
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"requests==2.34.2",
|
"requests>=2.32.3",
|
||||||
"pydantic==2.13.5",
|
"pydantic==2.10.5",
|
||||||
"pyyaml==6.0.3",
|
"pyyaml>=6.0.2",
|
||||||
]
|
|
||||||
|
|
||||||
[dependency-groups]
|
|
||||||
dev = [
|
|
||||||
"pre-commit==4.6.2",
|
|
||||||
"pytest==9.1.1",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[project.urls]
|
[project.urls]
|
||||||
|
|||||||
@@ -13,16 +13,6 @@ class AccessType(str, _AutoNameEnum):
|
|||||||
R = _enum_auto()
|
R = _enum_auto()
|
||||||
|
|
||||||
|
|
||||||
class ACLType(str, _AutoNameEnum):
|
|
||||||
U = _enum_auto()
|
|
||||||
G = _enum_auto()
|
|
||||||
|
|
||||||
|
|
||||||
class ACLStatus(str, _AutoNameEnum):
|
|
||||||
INVITED = _enum_auto()
|
|
||||||
CONFIRMED = _enum_auto()
|
|
||||||
|
|
||||||
|
|
||||||
class AffinityMode(str, _AutoNameEnum):
|
class AffinityMode(str, _AutoNameEnum):
|
||||||
ANY = _enum_auto()
|
ANY = _enum_auto()
|
||||||
EQ = _enum_auto()
|
EQ = _enum_auto()
|
||||||
@@ -39,25 +29,6 @@ class AffinityTopology(str, _AutoNameEnum):
|
|||||||
NODE = 'node'
|
NODE = 'node'
|
||||||
|
|
||||||
|
|
||||||
class ComputeAffinityRuleMigrationStatus(str, _AutoNameEnum):
|
|
||||||
MIGRATED = 'migrated'
|
|
||||||
SKIPPED = 'skipped'
|
|
||||||
NOT_STARTED = 'not_started'
|
|
||||||
NOT_COMPLETED = 'not_completed'
|
|
||||||
|
|
||||||
|
|
||||||
class ComputeMigrateV2Mode(str, _AutoNameEnum):
|
|
||||||
COMPUTE = 'compute'
|
|
||||||
DISKS = 'disks'
|
|
||||||
COMPUTE_AND_DISKS = 'compute_and_disks'
|
|
||||||
|
|
||||||
|
|
||||||
class ComputeMigrateV2AbortStatus(str, _AutoNameEnum):
|
|
||||||
ACCEPTED = 'accepted'
|
|
||||||
REJECTED = 'rejected'
|
|
||||||
UNKNOWN = 'unknown'
|
|
||||||
|
|
||||||
|
|
||||||
class BootDevice(str, _AutoNameEnum):
|
class BootDevice(str, _AutoNameEnum):
|
||||||
CDROM = 'cdrom'
|
CDROM = 'cdrom'
|
||||||
HD = 'hd'
|
HD = 'hd'
|
||||||
@@ -131,32 +102,16 @@ class LockStatus(str, _AutoNameEnum):
|
|||||||
UNLOCKED = _enum_auto()
|
UNLOCKED = _enum_auto()
|
||||||
|
|
||||||
|
|
||||||
class MemoryBalloonMode(str, _AutoNameEnum):
|
|
||||||
AUTO = 'auto'
|
|
||||||
LEGACY = 'legacy'
|
|
||||||
NONE = 'none'
|
|
||||||
|
|
||||||
|
|
||||||
class VMFeature(str, _AutoNameEnum):
|
class VMFeature(str, _AutoNameEnum):
|
||||||
CHANGEMAC = 'changemac'
|
CHANGEMAC = 'changemac'
|
||||||
CPUPIN = 'cpupin'
|
CPUPIN = 'cpupin'
|
||||||
DPDK = 'dpdk'
|
DPDK = 'dpdk'
|
||||||
HUGEPAGES = 'hugepages'
|
HUGEPAGES = 'hugepages'
|
||||||
NUMA = 'numa'
|
NUMA = 'numa'
|
||||||
PCIDEVICE = 'pcidevice'
|
|
||||||
TRUNK = 'trunk'
|
TRUNK = 'trunk'
|
||||||
VGPU = 'vgpu'
|
|
||||||
VFNIC = 'vfnic'
|
VFNIC = 'vfnic'
|
||||||
|
|
||||||
|
|
||||||
class WatchdogAction(str, _AutoNameEnum):
|
|
||||||
RESET = 'reset'
|
|
||||||
SHUTDOWN = 'shutdown'
|
|
||||||
POWEROFF = 'poweroff'
|
|
||||||
PAUSE = 'pause'
|
|
||||||
NONE = 'none'
|
|
||||||
|
|
||||||
|
|
||||||
class RGDefaultNetTypeForSet(str, _AutoNameEnum):
|
class RGDefaultNetTypeForSet(str, _AutoNameEnum):
|
||||||
PRIVATE = _enum_auto()
|
PRIVATE = _enum_auto()
|
||||||
PUBLIC = _enum_auto()
|
PUBLIC = _enum_auto()
|
||||||
@@ -265,7 +220,6 @@ class ImageType(str, _AutoNameEnum):
|
|||||||
UNKNOWN = 'unknown'
|
UNKNOWN = 'unknown'
|
||||||
VIRTUAL = 'virtual'
|
VIRTUAL = 'virtual'
|
||||||
WINDOWS = 'windows'
|
WINDOWS = 'windows'
|
||||||
MEMORY_DUMP = 'memorydump'
|
|
||||||
|
|
||||||
|
|
||||||
class NetIfaceNamingTemplate(str, _AutoNameEnum):
|
class NetIfaceNamingTemplate(str, _AutoNameEnum):
|
||||||
@@ -401,17 +355,6 @@ class SEPType(str, _AutoNameEnum):
|
|||||||
DORADO = _enum_auto()
|
DORADO = _enum_auto()
|
||||||
SHARED = _enum_auto()
|
SHARED = _enum_auto()
|
||||||
USTOR = _enum_auto()
|
USTOR = _enum_auto()
|
||||||
AERODISK = _enum_auto()
|
|
||||||
|
|
||||||
|
|
||||||
class ImageListSEPType(str, _AutoNameEnum):
|
|
||||||
HITACHI = _enum_auto()
|
|
||||||
DES = _enum_auto()
|
|
||||||
LOCAL = _enum_auto()
|
|
||||||
TATLIN = _enum_auto()
|
|
||||||
DORADO = _enum_auto()
|
|
||||||
SHARED = _enum_auto()
|
|
||||||
USTOR = _enum_auto()
|
|
||||||
|
|
||||||
|
|
||||||
class ExtNetStatus(str, _AutoNameEnum):
|
class ExtNetStatus(str, _AutoNameEnum):
|
||||||
@@ -451,11 +394,6 @@ class PoolDiskType(str, _AutoNameEnum):
|
|||||||
ANY = _enum_auto()
|
ANY = _enum_auto()
|
||||||
|
|
||||||
|
|
||||||
class TatlinPoolType(str, _AutoNameEnum):
|
|
||||||
DIRECT = 'direct'
|
|
||||||
INDIRECT = 'indirect'
|
|
||||||
|
|
||||||
|
|
||||||
class CountChangeMode(str, _AutoNameEnum):
|
class CountChangeMode(str, _AutoNameEnum):
|
||||||
ABSOLUTE = _enum_auto()
|
ABSOLUTE = _enum_auto()
|
||||||
RELATIVE = _enum_auto()
|
RELATIVE = _enum_auto()
|
||||||
@@ -533,13 +471,6 @@ class K8sNetworkPlugin(str, _AutoNameEnum):
|
|||||||
WEAVENET = 'weavenet'
|
WEAVENET = 'weavenet'
|
||||||
|
|
||||||
|
|
||||||
class NetworkMode(str, _AutoNameEnum):
|
|
||||||
OVS = 'ovs'
|
|
||||||
BRIDGE = 'bridge'
|
|
||||||
DPDK = 'dpdk'
|
|
||||||
SDN = 'sdn'
|
|
||||||
|
|
||||||
|
|
||||||
class K8CIStatus(str, _AutoNameEnum):
|
class K8CIStatus(str, _AutoNameEnum):
|
||||||
CREATED = _enum_auto()
|
CREATED = _enum_auto()
|
||||||
DELETED = _enum_auto()
|
DELETED = _enum_auto()
|
||||||
@@ -595,20 +526,6 @@ class ZoneStatus(str, _AutoNameEnum):
|
|||||||
DESTROYED = _enum_auto()
|
DESTROYED = _enum_auto()
|
||||||
|
|
||||||
|
|
||||||
class LoggingLevel(str, _AutoNameEnum):
|
|
||||||
CRITICAL = _enum_auto()
|
|
||||||
ERROR = _enum_auto()
|
|
||||||
WARNING = _enum_auto()
|
|
||||||
NOTICE = _enum_auto()
|
|
||||||
INFO = _enum_auto()
|
|
||||||
DEBUG = _enum_auto()
|
|
||||||
|
|
||||||
|
|
||||||
class SDRSMode(str, _AutoNameEnum):
|
|
||||||
AUTO = 'auto'
|
|
||||||
MANUAL = 'manual'
|
|
||||||
|
|
||||||
|
|
||||||
class TrafficDirection(str, _AutoNameEnum):
|
class TrafficDirection(str, _AutoNameEnum):
|
||||||
INBOUND = 'inbound'
|
INBOUND = 'inbound'
|
||||||
OUTBOUND = 'outbound'
|
OUTBOUND = 'outbound'
|
||||||
@@ -641,33 +558,6 @@ class StoragePolicyStatus(str, _AutoNameEnum):
|
|||||||
ENABLED = _enum_auto()
|
ENABLED = _enum_auto()
|
||||||
|
|
||||||
|
|
||||||
class ReplicationType(str, _AutoNameEnum):
|
|
||||||
SYNC = 'sync'
|
|
||||||
ASYNC = 'async'
|
|
||||||
|
|
||||||
|
|
||||||
class ReplicationProfileScheduleType(str, _AutoNameEnum):
|
|
||||||
INTERVAL = 'interval'
|
|
||||||
CALENDAR = 'calendar'
|
|
||||||
MANUAL_SYNC = 'manualSync'
|
|
||||||
|
|
||||||
|
|
||||||
class NetworkQosPolicyStatus(str, _AutoNameEnum):
|
|
||||||
DESTROYED = _enum_auto()
|
|
||||||
DISABLED = _enum_auto()
|
|
||||||
ENABLED = _enum_auto()
|
|
||||||
|
|
||||||
|
|
||||||
class NetworkQosPolicyRuleDirection(str, _AutoNameEnum):
|
|
||||||
OUTBOUND = 'outbound'
|
|
||||||
|
|
||||||
|
|
||||||
class NetworkQosPolicyRuleProtocol(str, _AutoNameEnum):
|
|
||||||
ICMP = 'icmp'
|
|
||||||
TCP = 'tcp'
|
|
||||||
UDP = 'udp'
|
|
||||||
|
|
||||||
|
|
||||||
class JobStatus(str, _AutoNameEnum):
|
class JobStatus(str, _AutoNameEnum):
|
||||||
ABORTED = _enum_auto()
|
ABORTED = _enum_auto()
|
||||||
CLEANUPED = _enum_auto()
|
CLEANUPED = _enum_auto()
|
||||||
@@ -687,7 +577,13 @@ class PGPUMode(str, _AutoNameEnum):
|
|||||||
|
|
||||||
|
|
||||||
class VGPUStatus(str, _AutoNameEnum):
|
class VGPUStatus(str, _AutoNameEnum):
|
||||||
|
ALLOCATED = _enum_auto()
|
||||||
|
ALLOCATING = _enum_auto()
|
||||||
|
CLAIMED = _enum_auto()
|
||||||
|
CLAIMING = _enum_auto()
|
||||||
CREATED = _enum_auto()
|
CREATED = _enum_auto()
|
||||||
|
DEALLOCATED = _enum_auto()
|
||||||
|
DEALLOCATING = _enum_auto()
|
||||||
DESTROYED = _enum_auto()
|
DESTROYED = _enum_auto()
|
||||||
ERROR = _enum_auto()
|
ERROR = _enum_auto()
|
||||||
|
|
||||||
@@ -747,38 +643,3 @@ class DiskProvisionType(str, _AutoNameEnum):
|
|||||||
class DRSDXSSOType(str, _AutoNameEnum):
|
class DRSDXSSOType(str, _AutoNameEnum):
|
||||||
BVS = 'bvs'
|
BVS = 'bvs'
|
||||||
DECS3O = 'decs3o'
|
DECS3O = 'decs3o'
|
||||||
NONE = ''
|
|
||||||
|
|
||||||
|
|
||||||
class ClockSyncMode(str, _AutoNameEnum):
|
|
||||||
DEFAULT = 'default'
|
|
||||||
LINUX = 'linux'
|
|
||||||
WINDOWS = 'windows'
|
|
||||||
NONE = 'none'
|
|
||||||
|
|
||||||
|
|
||||||
class DiskDiscard(str, _AutoNameEnum):
|
|
||||||
UNMAP = 'unmap'
|
|
||||||
IGNORE = 'ignore'
|
|
||||||
|
|
||||||
|
|
||||||
class VMFolderStatus(str, _AutoNameEnum):
|
|
||||||
CREATED = _enum_auto()
|
|
||||||
DESTROYED = _enum_auto()
|
|
||||||
|
|
||||||
|
|
||||||
class PrometheusMetricID(str, _AutoNameEnum):
|
|
||||||
COMPUTE_CPU_LOAD = 'computeCPUload'
|
|
||||||
COMPUTE_MEMORY_USAGE = 'computeMemoryUsage'
|
|
||||||
COMPUTE_MEMORY_USABLE = 'computeMemoryUsable'
|
|
||||||
COMPUTE_MEMORY_UNUSED = 'computeMemoryUnused'
|
|
||||||
COMPUTE_MEMORY_USED = 'computeMemoryUsed'
|
|
||||||
COMPUTE_MEMORY_AVAILABLE = 'computeMemoryAvailable'
|
|
||||||
COMPUTE_READ_BYTES = 'computeReadBytes'
|
|
||||||
COMPUTE_READ_REQUESTS = 'computeReadRequests'
|
|
||||||
COMPUTE_RECEIVE_BYTES = 'computeReceiveBytes'
|
|
||||||
COMPUTE_TRANSMIT_BYTES = 'computeTransmitBytes'
|
|
||||||
COMPUTE_TRANSMIT_PACKETS = 'computeTransmitPackets'
|
|
||||||
COMPUTE_WRITE_BYTES = 'computeWriteBytes'
|
|
||||||
COMPUTE_WRITE_REQUESTS = 'computeWriteRequests'
|
|
||||||
COMPUTE_RECEIVE_PACKETS = 'computeReceivePackets'
|
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
from pydantic import Field
|
|
||||||
|
|
||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
from . import enums as _enums
|
from . import enums as _enums
|
||||||
|
|
||||||
@@ -13,7 +11,6 @@ class DiskAPIParamsNM(_base.BaseAPIParamsNestedModel):
|
|||||||
image_id: None | int = None
|
image_id: None | int = None
|
||||||
sep_id: None | int = None
|
sep_id: None | int = None
|
||||||
sep_pool_name: None | str = None
|
sep_pool_name: None | str = None
|
||||||
read_only: bool = False
|
|
||||||
|
|
||||||
|
|
||||||
class InterfaceAPIParamsNM(_base.BaseAPIParamsNestedModel):
|
class InterfaceAPIParamsNM(_base.BaseAPIParamsNestedModel):
|
||||||
@@ -28,63 +25,18 @@ class InterfaceAPIParamsNM(_base.BaseAPIParamsNestedModel):
|
|||||||
sdn_object_group_id: None | str = None
|
sdn_object_group_id: None | str = None
|
||||||
sdn_logical_port_display_name: None | str = None
|
sdn_logical_port_display_name: None | str = None
|
||||||
sdn_logical_port_description: None | str = None
|
sdn_logical_port_description: None | str = None
|
||||||
qos_policies: list[int] | None = None
|
|
||||||
|
|
||||||
ip_addr: None | str = None
|
ip_addr: None | str = None
|
||||||
mac: None | str = None
|
mac: None | str = None
|
||||||
mtu: None | int = None
|
mtu: None | int = None
|
||||||
|
|
||||||
|
|
||||||
class CloudbrokerKvmx86CreateDataDiskAPIParamsNM(
|
|
||||||
_base.BaseAPIParamsNestedModel,
|
|
||||||
):
|
|
||||||
disk_name: str
|
|
||||||
size: int
|
|
||||||
storage_policy_id: int
|
|
||||||
sep_id: int | None = None
|
|
||||||
pool: str | None = None
|
|
||||||
desc: str | None = None
|
|
||||||
image_id: int | None = None
|
|
||||||
cache: _enums.DiskCacheMode | None = None
|
|
||||||
discard: _enums.DiskDiscard | None = None
|
|
||||||
read_only: bool = False
|
|
||||||
|
|
||||||
|
|
||||||
class CloudbrokerKvmx86CreateInterfaceAPIParamsNM(
|
|
||||||
_base.BaseAPIParamsNestedModel,
|
|
||||||
):
|
|
||||||
net_type: _enums.NetType
|
|
||||||
net_id: int
|
|
||||||
ip_addr: str | None = None
|
|
||||||
net_mask: int | None = None
|
|
||||||
mtu: int | None = None
|
|
||||||
mac: str | None = None
|
|
||||||
sdn_interface_id: str | None = None
|
|
||||||
sdn_segment_id: str | None = None
|
|
||||||
sdn_object_group_ids: list[str] | None = None
|
|
||||||
sdn_logical_port_display_name: str | None = None
|
|
||||||
sdn_logical_port_description: str | None = None
|
|
||||||
enable_default_gateway: bool = True
|
|
||||||
security_groups: list[int] | None = None
|
|
||||||
enable_secgroups: bool = False
|
|
||||||
enabled: bool = True
|
|
||||||
qos_policies: list[int] | None = None
|
|
||||||
|
|
||||||
|
|
||||||
class RouteAPIParamsNM(_base.BaseAPIParamsNestedModel):
|
class RouteAPIParamsNM(_base.BaseAPIParamsNestedModel):
|
||||||
dst_net_ip: str
|
dst_net_ip: str
|
||||||
dst_net_mask: str
|
dst_net_mask: str
|
||||||
gateway: str
|
gateway: str
|
||||||
|
|
||||||
|
|
||||||
class CloudbrokerVinsCreateRouteAPIParamsNM(
|
|
||||||
_base.BaseAPIParamsNestedModel,
|
|
||||||
):
|
|
||||||
destination: str
|
|
||||||
netmask: str
|
|
||||||
gateway: str
|
|
||||||
|
|
||||||
|
|
||||||
class StoragePolicyQuotasAPIParamsNM(_base.BaseAPIParamsNestedModel):
|
class StoragePolicyQuotasAPIParamsNM(_base.BaseAPIParamsNestedModel):
|
||||||
id: int
|
id: int
|
||||||
storage_size_gb: int
|
storage_size_gb: int
|
||||||
@@ -106,15 +58,3 @@ class NetMapConfigAPIParamsNM(_base.BaseAPIParamsNestedModel):
|
|||||||
target_dev: str
|
target_dev: str
|
||||||
source_type: _enums.NetMapSourceType
|
source_type: _enums.NetMapSourceType
|
||||||
source_value: str
|
source_value: str
|
||||||
|
|
||||||
|
|
||||||
class BackupDiskAPIParamsNM(_base.BaseAPIParamsNestedModel):
|
|
||||||
disk_id: int = Field(serialization_alias='diskId')
|
|
||||||
backup_path: str = Field(serialization_alias='backupPath')
|
|
||||||
speed: int | None = Field(serialization_alias='speed', default=None)
|
|
||||||
|
|
||||||
|
|
||||||
class VFNicAPIParamsNM(_base.BaseAPIParamsNestedModel):
|
|
||||||
fn_id: int = Field(serialization_alias='fnId')
|
|
||||||
spoofchk: bool = True
|
|
||||||
trust: bool = True
|
|
||||||
File diff suppressed because it is too large.
Load diff
@@ -13,7 +13,6 @@ from .k8s import *
|
|||||||
from .kvmx86 import *
|
from .kvmx86 import *
|
||||||
from .lb import *
|
from .lb import *
|
||||||
from .locations import *
|
from .locations import *
|
||||||
from .network_qos_policy import *
|
|
||||||
from .pcidevice import *
|
from .pcidevice import *
|
||||||
from .rg import *
|
from .rg import *
|
||||||
from .security_group import *
|
from .security_group import *
|
||||||
@@ -25,7 +24,6 @@ from .user import *
|
|||||||
from .vfpool import *
|
from .vfpool import *
|
||||||
from .vgpu import *
|
from .vgpu import *
|
||||||
from .vins import *
|
from .vins import *
|
||||||
from .vmfolder import *
|
|
||||||
from .zone import *
|
from .zone import *
|
||||||
|
|
||||||
|
|
||||||
@@ -44,7 +42,6 @@ class CloudapiAPI(_base.BaseAPI):
|
|||||||
kvmx86: CloudapiKvmx86API
|
kvmx86: CloudapiKvmx86API
|
||||||
lb: CloudapiLbAPI
|
lb: CloudapiLbAPI
|
||||||
locations: CloudapiLocationsAPI
|
locations: CloudapiLocationsAPI
|
||||||
network_qos_policy: CloudapiNetworkQosPolicyAPI
|
|
||||||
pcidevice: CloudapiPcideviceAPI
|
pcidevice: CloudapiPcideviceAPI
|
||||||
rg: CloudapiRgAPI
|
rg: CloudapiRgAPI
|
||||||
security_group: CloudapiSecurityGroupAPI
|
security_group: CloudapiSecurityGroupAPI
|
||||||
@@ -56,5 +53,4 @@ class CloudapiAPI(_base.BaseAPI):
|
|||||||
vfpool: CloudapiVfpoolAPI
|
vfpool: CloudapiVfpoolAPI
|
||||||
vgpu: CloudapiVgpuAPI
|
vgpu: CloudapiVgpuAPI
|
||||||
vins: CloudapiVinsAPI
|
vins: CloudapiVinsAPI
|
||||||
vmfolder: CloudapiVmfolderAPI
|
|
||||||
zone: CloudapiZoneAPI
|
zone: CloudapiZoneAPI
|
||||||
@@ -1,30 +1,31 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
from .add_acl_access import *
|
|
||||||
from .add_user import *
|
from .add_user import *
|
||||||
from .del_acl_access import *
|
from .delete import *
|
||||||
from .delete_user import *
|
from .delete_user import *
|
||||||
|
from .disable import *
|
||||||
|
from .enable import *
|
||||||
from .get import *
|
from .get import *
|
||||||
from .get_resource_consumption import *
|
from .get_resource_consumption import *
|
||||||
from .list import *
|
from .list import *
|
||||||
from .list_deleted import *
|
from .list_deleted import *
|
||||||
from .restore import *
|
from .restore import *
|
||||||
from .update import *
|
from .update import *
|
||||||
from .update_acl_access import *
|
|
||||||
from .update_user import *
|
from .update_user import *
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAccountAPI(
|
class CloudapiAccountAPI(
|
||||||
_base.BaseAPI,
|
_base.BaseAPI,
|
||||||
|
CloudapiAccountAddUserProtocol,
|
||||||
|
CloudapiAccountDeleteProtocol,
|
||||||
|
CloudapiAccountDeleteUserProtocol,
|
||||||
|
CloudapiAccountDisableProtocol,
|
||||||
|
CloudapiAccountEnableProtocol,
|
||||||
|
CloudapiAccountGetProtocol,
|
||||||
|
CloudapiAccountGetResourceConsumptionProtocol,
|
||||||
|
CloudapiAccountListDeletedProtocol,
|
||||||
|
CloudapiAccountListProtocol,
|
||||||
|
CloudapiAccountRestoreProtocol,
|
||||||
|
CloudapiAccountUpdateProtocol,
|
||||||
|
CloudapiAccountUpdateUserProtocol,
|
||||||
):
|
):
|
||||||
add_acl_access: CloudapiAccountAddAclAccessImpl
|
pass
|
||||||
add_user: CloudapiAccountAddUserImpl
|
|
||||||
del_acl_access: CloudapiAccountDelAclAccessImpl
|
|
||||||
restore: CloudapiAccountRestoreImpl
|
|
||||||
delete_user: CloudapiAccountDeleteUserImpl
|
|
||||||
list: CloudapiAccountListImpl
|
|
||||||
update_user: CloudapiAccountUpdateUserImpl
|
|
||||||
get: CloudapiAccountGetImpl
|
|
||||||
get_resource_consumption: CloudapiAccountGetResourceConsumptionImpl
|
|
||||||
update: CloudapiAccountUpdateImpl
|
|
||||||
update_acl_access: CloudapiAccountUpdateAclAccessImpl
|
|
||||||
list_deleted: CloudapiAccountListDeletedImpl
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
import dynamix_sdk.base as _base
|
|
||||||
import dynamix_sdk.api._nested as _nested
|
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAccountAddAclAccessImpl(_base.APIFunctionImpl):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
self,
|
|
||||||
*,
|
|
||||||
id: int,
|
|
||||||
accesstype: _nested.AccessTypeForSet,
|
|
||||||
apiaccesses: list[int] | None = None,
|
|
||||||
usernames: list[str] | None = None,
|
|
||||||
async_mode: bool = False,
|
|
||||||
) -> bool | str:
|
|
||||||
raise NotImplementedError
|
|
||||||
@@ -2,15 +2,16 @@ import dynamix_sdk.base as _base
|
|||||||
import dynamix_sdk.api._nested as _nested
|
import dynamix_sdk.api._nested as _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAccountAddUserImpl(_base.APIFunctionImpl):
|
class CloudapiAccountAddUserResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiAccountAddUserProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def add_user(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
account_id: int,
|
account_id: int,
|
||||||
access_type: _nested.AccessTypeForSet,
|
access_type: _nested.AccessTypeForSet,
|
||||||
user_name: str,
|
user_name: str,
|
||||||
async_mode: bool = False,
|
) -> CloudapiAccountAddUserResultBool:
|
||||||
) -> bool | str:
|
...
|
||||||
raise NotImplementedError
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
import dynamix_sdk.base as _base
|
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAccountDelAclAccessImpl(_base.APIFunctionImpl):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
self,
|
|
||||||
*,
|
|
||||||
id: int,
|
|
||||||
apiaccesses: list[int] | None = None,
|
|
||||||
usernames: list[str] | None = None,
|
|
||||||
async_mode: bool = False,
|
|
||||||
) -> bool | str:
|
|
||||||
raise NotImplementedError
|
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class CloudapiAccountDeleteResultStr(_base.BaseAPIResultStr):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class CloudapiAccountDeleteProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def delete(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
account_id: int,
|
||||||
|
permanently: bool = False,
|
||||||
|
) -> CloudapiAccountDeleteResultStr:
|
||||||
|
...
|
||||||
@@ -1,14 +1,15 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAccountDeleteUserImpl(_base.APIFunctionImpl):
|
class CloudapiAccountDeleteUserResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiAccountDeleteUserProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def delete_user(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
account_id: int,
|
account_id: int,
|
||||||
user_name: str,
|
user_name: str,
|
||||||
async_mode: bool = False,
|
) -> CloudapiAccountDeleteUserResultBool:
|
||||||
) -> bool | str:
|
...
|
||||||
raise NotImplementedError
|
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class CloudapiAccountDisableResultBool(_base.BaseAPIResultBool):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class CloudapiAccountDisableProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def disable(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
account_id: int,
|
||||||
|
) -> CloudapiAccountDisableResultBool:
|
||||||
|
...
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
|
class CloudapiAccountEnableResultBool(_base.BaseAPIResultBool):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class CloudapiAccountEnableProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def enable(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
account_id: int,
|
||||||
|
) -> CloudapiAccountEnableResultBool:
|
||||||
|
...
|
||||||
@@ -2,7 +2,7 @@ import dynamix_sdk.base as _base
|
|||||||
import dynamix_sdk.api._nested as _nested
|
import dynamix_sdk.api._nested as _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAccountGetResultModel(_base.ResultModel):
|
class CloudapiAccountGetResultModel(_base.BaseAPIResultModel):
|
||||||
acc_lvl_vins_ids: list[int]
|
acc_lvl_vins_ids: list[int]
|
||||||
acl: list[_nested.AccessAPIResultNM]
|
acl: list[_nested.AccessAPIResultNM]
|
||||||
company_url: str
|
company_url: str
|
||||||
@@ -52,12 +52,10 @@ class CloudapiAccountGetResultModel(_base.ResultModel):
|
|||||||
return self._get_datetime_from_timestamp(self.updated_timestamp)
|
return self._get_datetime_from_timestamp(self.updated_timestamp)
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAccountGetImpl(_base.APIFunctionImpl):
|
class CloudapiAccountGetProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
http_method = _base.HTTPMethod.POST
|
def get(
|
||||||
|
|
||||||
def __call__(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
account_id: int,
|
account_id: int,
|
||||||
) -> CloudapiAccountGetResultModel:
|
) -> CloudapiAccountGetResultModel:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -3,7 +3,7 @@ import dynamix_sdk.api._nested as _nested
|
|||||||
|
|
||||||
|
|
||||||
class CloudapiAccountGetResourceConsumptionResultModel(
|
class CloudapiAccountGetResourceConsumptionResultModel(
|
||||||
_base.ResultModel,
|
_base.BaseAPIResultModel,
|
||||||
):
|
):
|
||||||
id: int
|
id: int
|
||||||
consumed: _nested.ResourceCountersAPIResultNM
|
consumed: _nested.ResourceCountersAPIResultNM
|
||||||
@@ -11,14 +11,11 @@ class CloudapiAccountGetResourceConsumptionResultModel(
|
|||||||
quotas: _nested.TenantQuotasForResourceConsumptionAPIResultNM
|
quotas: _nested.TenantQuotasForResourceConsumptionAPIResultNM
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAccountGetResourceConsumptionImpl(
|
class CloudapiAccountGetResourceConsumptionProtocol(
|
||||||
_base.APIFunctionImpl,
|
_base.BasePostAPIFunctionProtocol,
|
||||||
):
|
):
|
||||||
http_method = _base.HTTPMethod.POST
|
def get_resource_consumption(
|
||||||
|
|
||||||
def __call__(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
account_id: int,
|
account_id: int,
|
||||||
) -> CloudapiAccountGetResourceConsumptionResultModel:
|
) -> CloudapiAccountGetResourceConsumptionResultModel: ...
|
||||||
raise NotImplementedError
|
|
||||||
@@ -2,24 +2,22 @@ import dynamix_sdk.base as _base
|
|||||||
import dynamix_sdk.api._nested as _nested
|
import dynamix_sdk.api._nested as _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAccountListResultModel(_base.ResultModel):
|
class CloudapiAccountListResultModel(_base.BaseAPIResultModel):
|
||||||
data: list[_nested.AccountForCAAPIResultNM]
|
data: list[_nested.AccountForCAAPIResultNM]
|
||||||
entry_count: int
|
entry_count: int
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAccountListImpl(_base.APIFunctionImpl):
|
class CloudapiAccountListProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
http_method = _base.HTTPMethod.POST
|
def list(
|
||||||
|
|
||||||
def __call__(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
access_type: None | _nested.AccessType = None,
|
access_type: None | _nested.AccessType = None,
|
||||||
id: None | int = None,
|
id: None | int = None,
|
||||||
name: None | str = None,
|
name: None | str = None,
|
||||||
zone_id: None | int = None,
|
zone_id: None | int = None,
|
||||||
page_number: int = 1,
|
page_number: None | int = None,
|
||||||
page_size: int = 100,
|
page_size: None | int = None,
|
||||||
sort_by: None | str = None,
|
sort_by: None | str = None,
|
||||||
status: None | _nested.AccountStatus = None,
|
status: None | _nested.AccountStatus = None,
|
||||||
) -> CloudapiAccountListResultModel:
|
) -> CloudapiAccountListResultModel:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -2,22 +2,20 @@ import dynamix_sdk.base as _base
|
|||||||
import dynamix_sdk.api._nested as _nested
|
import dynamix_sdk.api._nested as _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAccountListDeletedResultModel(_base.ResultModel):
|
class CloudapiAccountListDeletedResultModel(_base.BaseAPIResultModel):
|
||||||
data: list[_nested.AccountForCAAPIResultNM]
|
data: list[_nested.AccountForCAAPIResultNM]
|
||||||
entry_count: int
|
entry_count: int
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAccountListDeletedImpl(_base.APIFunctionImpl):
|
class CloudapiAccountListDeletedProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
http_method = _base.HTTPMethod.POST
|
def list_deleted(
|
||||||
|
|
||||||
def __call__(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
access_type: None | _nested.AccessType = None,
|
access_type: None | _nested.AccessType = None,
|
||||||
id: None | int = None,
|
id: None | int = None,
|
||||||
name: None | str = None,
|
name: None | str = None,
|
||||||
page_number: int = 1,
|
page_number: None | int = None,
|
||||||
page_size: int = 100,
|
page_size: None | int = None,
|
||||||
sort_by: None | str = None,
|
sort_by: None | str = None,
|
||||||
) -> CloudapiAccountListDeletedResultModel:
|
) -> CloudapiAccountListDeletedResultModel:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,13 +1,14 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAccountRestoreImpl(_base.APIFunctionImpl):
|
class CloudapiAccountRestoreResultStr(_base.BaseAPIResultStr):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiAccountRestoreProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def restore(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
account_id: int,
|
account_id: int,
|
||||||
async_mode: bool = True,
|
) -> CloudapiAccountRestoreResultStr:
|
||||||
) -> str:
|
...
|
||||||
raise NotImplementedError
|
|
||||||
@@ -1,10 +1,12 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAccountUpdateImpl(_base.APIFunctionImpl):
|
class CloudapiAccountUpdateResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiAccountUpdateProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def update(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
account_id: int,
|
account_id: int,
|
||||||
@@ -18,6 +20,5 @@ class CloudapiAccountUpdateImpl(_base.APIFunctionImpl):
|
|||||||
sep_pools: None | list[str] = None,
|
sep_pools: None | list[str] = None,
|
||||||
description: str | None = None,
|
description: str | None = None,
|
||||||
default_zone_id: int | None = None,
|
default_zone_id: int | None = None,
|
||||||
async_mode: bool = False,
|
) -> CloudapiAccountUpdateResultBool:
|
||||||
) -> bool | str:
|
...
|
||||||
raise NotImplementedError
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
import dynamix_sdk.base as _base
|
|
||||||
import dynamix_sdk.api._nested as _nested
|
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAccountUpdateAclAccessImpl(_base.APIFunctionImpl):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
self,
|
|
||||||
*,
|
|
||||||
id: int,
|
|
||||||
accesstype: _nested.AccessTypeForSet,
|
|
||||||
apiaccesses: list[int] | None = None,
|
|
||||||
usernames: list[str] | None = None,
|
|
||||||
async_mode: bool = False,
|
|
||||||
) -> bool | str:
|
|
||||||
raise NotImplementedError
|
|
||||||
@@ -2,15 +2,16 @@ import dynamix_sdk.base as _base
|
|||||||
import dynamix_sdk.api._nested as _nested
|
import dynamix_sdk.api._nested as _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAccountUpdateUserImpl(_base.APIFunctionImpl):
|
class CloudapiAccountUpdateUserResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiAccountUpdateUserProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def update_user(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
account_id: int,
|
account_id: int,
|
||||||
access_type: _nested.AccessTypeForSet,
|
access_type: _nested.AccessTypeForSet,
|
||||||
user_name: str,
|
user_name: str,
|
||||||
async_mode: bool = False,
|
) -> CloudapiAccountUpdateUserResultBool:
|
||||||
) -> bool | str:
|
...
|
||||||
raise NotImplementedError
|
|
||||||
@@ -5,6 +5,7 @@ from .list import *
|
|||||||
|
|
||||||
class CloudapiAuditAPI(
|
class CloudapiAuditAPI(
|
||||||
_base.BaseAPI,
|
_base.BaseAPI,
|
||||||
|
CloudapiAuditGetProtocol,
|
||||||
|
CloudapiAuditListProtocol,
|
||||||
):
|
):
|
||||||
list: CloudapiAuditListImpl
|
pass
|
||||||
get: CloudapiAuditGetImpl
|
|
||||||
@@ -3,17 +3,16 @@ import dynamix_sdk.base as _base
|
|||||||
|
|
||||||
|
|
||||||
class CloudapiAuditGetResultModel(
|
class CloudapiAuditGetResultModel(
|
||||||
|
_base.BaseAPIResultModel,
|
||||||
_nested.AuditAPIResultNM,
|
_nested.AuditAPIResultNM,
|
||||||
):
|
):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAuditGetImpl(_base.APIFunctionImpl):
|
class CloudapiAuditGetProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
http_method = _base.HTTPMethod.POST
|
def get(
|
||||||
|
|
||||||
def __call__(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
audit_guid: str,
|
audit_guid: str,
|
||||||
) -> CloudapiAuditGetResultModel:
|
) -> CloudapiAuditGetResultModel:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,18 +1,14 @@
|
|||||||
from pydantic import Field
|
|
||||||
|
|
||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
import dynamix_sdk.api._nested as _nested
|
import dynamix_sdk.api._nested as _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAuditListResultModel(_base.ResultModel):
|
class CloudapiAuditListResultModel(_base.BaseAPIResultModel):
|
||||||
data: list[_nested.AuditAPIResultNM]
|
data: list[_nested.AuditAPIResultNM]
|
||||||
entry_count: int
|
entry_count: int
|
||||||
|
|
||||||
|
|
||||||
class CloudapiAuditListImpl(_base.APIFunctionImpl):
|
class CloudapiAuditListProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
http_method = _base.HTTPMethod.POST
|
def list(
|
||||||
|
|
||||||
def __call__(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
account_id: int | None = None,
|
account_id: int | None = None,
|
||||||
@@ -27,7 +23,6 @@ class CloudapiAuditListImpl(_base.APIFunctionImpl):
|
|||||||
min_status_code: int | None = None,
|
min_status_code: int | None = None,
|
||||||
page_number: int = 1,
|
page_number: int = 1,
|
||||||
page_size: int = 100,
|
page_size: int = 100,
|
||||||
public_session_id: str | None = None,
|
|
||||||
request_timestamp_end: int | None = None,
|
request_timestamp_end: int | None = None,
|
||||||
request_timestamp_start: int | None = None,
|
request_timestamp_start: int | None = None,
|
||||||
rg_id: int | None = None,
|
rg_id: int | None = None,
|
||||||
@@ -36,9 +31,5 @@ class CloudapiAuditListImpl(_base.APIFunctionImpl):
|
|||||||
user_name: str | None = None,
|
user_name: str | None = None,
|
||||||
vins_id: int | None = None,
|
vins_id: int | None = None,
|
||||||
vm_id: int | None = None,
|
vm_id: int | None = None,
|
||||||
disk_id: int | None = Field(
|
|
||||||
serialization_alias='disk_id', default=None,
|
|
||||||
),
|
|
||||||
vmfolder_id: int | None = None,
|
|
||||||
) -> CloudapiAuditListResultModel:
|
) -> CloudapiAuditListResultModel:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -29,30 +29,31 @@ from .stop import *
|
|||||||
|
|
||||||
class CloudapiBserviceAPI(
|
class CloudapiBserviceAPI(
|
||||||
_base.BaseAPI,
|
_base.BaseAPI,
|
||||||
|
CloudapiBserviceCreateProtocol,
|
||||||
|
CloudapiBserviceDeleteProtocol,
|
||||||
|
CloudapiBserviceDisableProtocol,
|
||||||
|
CloudapiBserviceEnableProtocol,
|
||||||
|
CloudapiBserviceGetProtocol,
|
||||||
|
CloudapiBserviceGroupAddProtocol,
|
||||||
|
CloudapiBserviceGroupComputeRemoveProtocol,
|
||||||
|
CloudapiBserviceGroupGetProtocol,
|
||||||
|
CloudapiBserviceGroupParentAddProtocol,
|
||||||
|
CloudapiBserviceGroupParentRemoveProtocol,
|
||||||
|
CloudapiBserviceGroupRemoveProtocol,
|
||||||
|
CloudapiBserviceGroupStartProtocol,
|
||||||
|
CloudapiBserviceGroupStopProtocol,
|
||||||
|
CloudapiBserviceGroupUpdateExtnetProtocol,
|
||||||
|
CloudapiBserviceGroupUpdateProtocol,
|
||||||
|
CloudapiBserviceGroupUpdateVinsProtocol,
|
||||||
|
CloudapiBserviceListDeletedProtocol,
|
||||||
|
CloudapiBserviceListProtocol,
|
||||||
|
CloudapiBserviceMigrateToZoneProtocol,
|
||||||
|
CloudapiBserviceRestoreProtocol,
|
||||||
|
CloudapiBserviceSnapshotCreateProtocol,
|
||||||
|
CloudapiBserviceSnapshotDeleteProtocol,
|
||||||
|
CloudapiBserviceSnapshotListProtocol,
|
||||||
|
CloudapiBserviceSnapshotRollbackProtocol,
|
||||||
|
CloudapiBserviceStartProtocol,
|
||||||
|
CloudapiBserviceStopProtocol,
|
||||||
):
|
):
|
||||||
group_start: CloudapiBserviceGroupStartImpl
|
pass
|
||||||
restore: CloudapiBserviceRestoreImpl
|
|
||||||
delete: CloudapiBserviceDeleteImpl
|
|
||||||
disable: CloudapiBserviceDisableImpl
|
|
||||||
group_update: CloudapiBserviceGroupUpdateImpl
|
|
||||||
snapshot_delete: CloudapiBserviceSnapshotDeleteImpl
|
|
||||||
create: CloudapiBserviceCreateImpl
|
|
||||||
stop: CloudapiBserviceStopImpl
|
|
||||||
group_update_vins: CloudapiBserviceGroupUpdateVinsImpl
|
|
||||||
list: CloudapiBserviceListImpl
|
|
||||||
group_get: CloudapiBserviceGroupGetImpl
|
|
||||||
snapshot_rollback: CloudapiBserviceSnapshotRollbackImpl
|
|
||||||
start: CloudapiBserviceStartImpl
|
|
||||||
snapshot_create: CloudapiBserviceSnapshotCreateImpl
|
|
||||||
get: CloudapiBserviceGetImpl
|
|
||||||
group_remove: CloudapiBserviceGroupRemoveImpl
|
|
||||||
snapshot_list: CloudapiBserviceSnapshotListImpl
|
|
||||||
group_add: CloudapiBserviceGroupAddImpl
|
|
||||||
migrate_to_zone: CloudapiBserviceMigrateToZoneImpl
|
|
||||||
group_parent_remove: CloudapiBserviceGroupParentRemoveImpl
|
|
||||||
list_deleted: CloudapiBserviceListDeletedImpl
|
|
||||||
group_stop: CloudapiBserviceGroupStopImpl
|
|
||||||
group_update_extnet: CloudapiBserviceGroupUpdateExtnetImpl
|
|
||||||
group_compute_remove: CloudapiBserviceGroupComputeRemoveImpl
|
|
||||||
group_parent_add: CloudapiBserviceGroupParentAddImpl
|
|
||||||
enable: CloudapiBserviceEnableImpl
|
|
||||||
@@ -1,10 +1,12 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceCreateImpl(_base.APIFunctionImpl):
|
class CloudapiBserviceCreateResultInt(_base.BaseAPIResultInt):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiBserviceCreateProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def create(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
name: str,
|
name: str,
|
||||||
@@ -12,5 +14,5 @@ class CloudapiBserviceCreateImpl(_base.APIFunctionImpl):
|
|||||||
ssh_user_name: str | None = None,
|
ssh_user_name: str | None = None,
|
||||||
ssh_public_key: str | None = None,
|
ssh_public_key: str | None = None,
|
||||||
zone_id: int | None = None,
|
zone_id: int | None = None,
|
||||||
) -> int:
|
) -> CloudapiBserviceCreateResultInt:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,13 +1,15 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceDeleteImpl(_base.APIFunctionImpl):
|
class CloudapiBserviceDeleteResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiBserviceDeleteProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def delete(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
permanently: bool = False,
|
permanently: bool = False,
|
||||||
) -> bool:
|
) -> CloudapiBserviceDeleteResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,12 +1,14 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceDisableImpl(_base.APIFunctionImpl):
|
class CloudapiBserviceDisableResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiBserviceDisableProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def disable(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
) -> bool:
|
) -> CloudapiBserviceDisableResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,12 +1,14 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceEnableImpl(_base.APIFunctionImpl):
|
class CloudapiBserviceEnableResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiBserviceEnableProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def enable(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
) -> bool:
|
) -> CloudapiBserviceEnableResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -2,7 +2,7 @@ import dynamix_sdk.base as _base
|
|||||||
import dynamix_sdk.api._nested as _nested
|
import dynamix_sdk.api._nested as _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceGetResultModel(_base.ResultModel):
|
class CloudapiBserviceGetResultModel(_base.BaseAPIResultModel):
|
||||||
account_id: int
|
account_id: int
|
||||||
account_name: str
|
account_name: str
|
||||||
base_domain: str
|
base_domain: str
|
||||||
@@ -47,12 +47,10 @@ class CloudapiBserviceGetResultModel(_base.ResultModel):
|
|||||||
return self._get_datetime_from_timestamp(self.updated_timestamp)
|
return self._get_datetime_from_timestamp(self.updated_timestamp)
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceGetImpl(_base.APIFunctionImpl):
|
class CloudapiBserviceGetProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
http_method = _base.HTTPMethod.POST
|
def get(
|
||||||
|
|
||||||
def __call__(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
) -> CloudapiBserviceGetResultModel:
|
) -> CloudapiBserviceGetResultModel:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -2,10 +2,12 @@ import dynamix_sdk.base as _base
|
|||||||
import dynamix_sdk.api._nested as _nested
|
import dynamix_sdk.api._nested as _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceGroupAddImpl(_base.APIFunctionImpl):
|
class CloudapiBserviceGroupAddResultInt(_base.BaseAPIResultInt):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiBserviceGroupAddProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def group_add(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
@@ -16,7 +18,7 @@ class CloudapiBserviceGroupAddImpl(_base.APIFunctionImpl):
|
|||||||
name: str,
|
name: str,
|
||||||
ram_size_mb: int,
|
ram_size_mb: int,
|
||||||
storage_policy_id: int | None = None,
|
storage_policy_id: int | None = None,
|
||||||
ci_user_data: str | dict | None = None,
|
ci_user_data: str | None = None,
|
||||||
extnet_ids: list[int] | None = None,
|
extnet_ids: list[int] | None = None,
|
||||||
role: str | None = None,
|
role: str | None = None,
|
||||||
sep_id: int | None = None,
|
sep_id: int | None = None,
|
||||||
@@ -24,5 +26,5 @@ class CloudapiBserviceGroupAddImpl(_base.APIFunctionImpl):
|
|||||||
start_timeout: int | None = None,
|
start_timeout: int | None = None,
|
||||||
vins_ids: list[int] | None = None,
|
vins_ids: list[int] | None = None,
|
||||||
chipset: _nested.Chipset = _nested.Chipset.Q35,
|
chipset: _nested.Chipset = _nested.Chipset.Q35,
|
||||||
) -> int:
|
) -> CloudapiBserviceGroupAddResultInt:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,16 +1,18 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceGroupComputeRemoveImpl(
|
class CloudapiBserviceGroupComputeRemoveResultBool(_base.BaseAPIResultBool):
|
||||||
_base.APIFunctionImpl
|
pass
|
||||||
):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiBserviceGroupComputeRemoveProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol
|
||||||
|
):
|
||||||
|
def group_compute_remove(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
bsgroup_id: int,
|
bsgroup_id: int,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
) -> bool:
|
) -> CloudapiBserviceGroupComputeRemoveResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -3,7 +3,7 @@ import dynamix_sdk.api._nested as _nested
|
|||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceGroupGetResultModel(
|
class CloudapiBserviceGroupGetResultModel(
|
||||||
_base.ResultModel,
|
_base.BaseAPIResultModel,
|
||||||
):
|
):
|
||||||
account_id: int
|
account_id: int
|
||||||
account_name: str
|
account_name: str
|
||||||
@@ -29,7 +29,7 @@ class CloudapiBserviceGroupGetResultModel(
|
|||||||
rg_name: str
|
rg_name: str
|
||||||
role: str
|
role: str
|
||||||
sep_id: int
|
sep_id: int
|
||||||
sep_pool_name: str | None
|
sep_pool_name: str
|
||||||
seq_no: int
|
seq_no: int
|
||||||
status: _nested.BServiceGroupStatus
|
status: _nested.BServiceGroupStatus
|
||||||
tech_status: _nested.BServiceGroupTechStatus
|
tech_status: _nested.BServiceGroupTechStatus
|
||||||
@@ -52,12 +52,10 @@ class CloudapiBserviceGroupGetResultModel(
|
|||||||
return self._get_datetime_from_timestamp(self.updated_timestamp)
|
return self._get_datetime_from_timestamp(self.updated_timestamp)
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceGroupGetImpl(_base.APIFunctionImpl):
|
class CloudapiBserviceGroupGetProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
http_method = _base.HTTPMethod.POST
|
def group_get(
|
||||||
|
|
||||||
def __call__(
|
|
||||||
self, *,
|
self, *,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
bsgroup_id: int
|
bsgroup_id: int
|
||||||
) -> CloudapiBserviceGroupGetResultModel:
|
) -> CloudapiBserviceGroupGetResultModel:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,16 +1,18 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceGroupParentAddImpl(
|
class CloudapiBserviceGroupParentAddResultBool(_base.BaseAPIResultBool):
|
||||||
_base.APIFunctionImpl
|
pass
|
||||||
):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiBserviceGroupParentAddProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol
|
||||||
|
):
|
||||||
|
def group_parent_add(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
child_id: int,
|
child_id: int,
|
||||||
parent_id: int,
|
parent_id: int,
|
||||||
) -> bool:
|
) -> CloudapiBserviceGroupParentAddResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,16 +1,18 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceGroupParentRemoveImpl(
|
class CloudapiBserviceGroupParentRemoveResultBool(_base.BaseAPIResultBool):
|
||||||
_base.APIFunctionImpl
|
pass
|
||||||
):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiBserviceGroupParentRemoveProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol
|
||||||
|
):
|
||||||
|
def group_parent_remove(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
child_id: int,
|
child_id: int,
|
||||||
parent_id: int,
|
parent_id: int,
|
||||||
) -> bool:
|
) -> CloudapiBserviceGroupParentRemoveResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,12 +1,14 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceGroupRemoveImpl(_base.APIFunctionImpl):
|
class CloudapiBserviceGroupRemoveResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiBserviceGroupRemoveProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def group_remove(
|
||||||
self, *,
|
self, *,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
bsgroup_id: int
|
bsgroup_id: int
|
||||||
) -> bool:
|
) -> CloudapiBserviceGroupRemoveResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,13 +1,15 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceGroupStartImpl(_base.APIFunctionImpl):
|
class CloudapiBserviceGroupStartResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiBserviceGroupStartProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def group_start(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
bsgroup_id: int,
|
bsgroup_id: int,
|
||||||
) -> bool:
|
) -> CloudapiBserviceGroupStartResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,14 +1,16 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceGroupStopImpl(_base.APIFunctionImpl):
|
class CloudapiBserviceGroupStopResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiBserviceGroupStopProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def group_stop(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
bsgroup_id: int,
|
bsgroup_id: int,
|
||||||
force: bool = False,
|
force: bool = False,
|
||||||
) -> bool:
|
) -> CloudapiBserviceGroupStopResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,12 +1,14 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceGroupUpdateImpl(
|
class CloudapiBserviceGroupUpdateResultBool(_base.BaseAPIResultBool):
|
||||||
_base.APIFunctionImpl
|
pass
|
||||||
):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiBserviceGroupUpdateProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol
|
||||||
|
):
|
||||||
|
def group_update(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
@@ -17,5 +19,5 @@ class CloudapiBserviceGroupUpdateImpl(
|
|||||||
name: str | None = None,
|
name: str | None = None,
|
||||||
ram_size_mb: int | None = None,
|
ram_size_mb: int | None = None,
|
||||||
role: str | None = None,
|
role: str | None = None,
|
||||||
) -> bool:
|
) -> CloudapiBserviceGroupUpdateResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,16 +1,18 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceGroupUpdateExtnetImpl(
|
class CloudapiBserviceGroupUpdateExtnetResultBool(_base.BaseAPIResultBool):
|
||||||
_base.APIFunctionImpl
|
pass
|
||||||
):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiBserviceGroupUpdateExtnetProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol
|
||||||
|
):
|
||||||
|
def group_update_extnet(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
bsgroup_id: int,
|
bsgroup_id: int,
|
||||||
extnet_ids: list[int] | None = None,
|
extnet_ids: list[int] | None = None,
|
||||||
) -> bool:
|
) -> CloudapiBserviceGroupUpdateExtnetResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,16 +1,18 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceGroupUpdateVinsImpl(
|
class CloudapiBserviceGroupUpdateVinsResultBool(_base.BaseAPIResultBool):
|
||||||
_base.APIFunctionImpl
|
pass
|
||||||
):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiBserviceGroupUpdateVinsProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol
|
||||||
|
):
|
||||||
|
def group_update_vins(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
bsgroup_id: int,
|
bsgroup_id: int,
|
||||||
vins_ids: list[int] | None = None,
|
vins_ids: list[int] | None = None,
|
||||||
) -> bool:
|
) -> CloudapiBserviceGroupUpdateVinsResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -2,15 +2,13 @@ import dynamix_sdk.base as _base
|
|||||||
import dynamix_sdk.api._nested as _nested
|
import dynamix_sdk.api._nested as _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceListResultModel(_base.ResultModel):
|
class CloudapiBserviceListResultModel(_base.BaseAPIResultModel):
|
||||||
data: list[_nested.BServiceAPIResultNM]
|
data: list[_nested.BServiceAPIResultNM]
|
||||||
entry_count: int
|
entry_count: int
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceListImpl(_base.APIFunctionImpl):
|
class CloudapiBserviceListProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
http_method = _base.HTTPMethod.POST
|
def list(
|
||||||
|
|
||||||
def __call__(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
account_id: int | None = None,
|
account_id: int | None = None,
|
||||||
@@ -18,12 +16,12 @@ class CloudapiBserviceListImpl(_base.APIFunctionImpl):
|
|||||||
id: int | None = None,
|
id: int | None = None,
|
||||||
name: str | None = None,
|
name: str | None = None,
|
||||||
zone_id: int | None = None,
|
zone_id: int | None = None,
|
||||||
page_number: int = 1,
|
page_number: int | None = None,
|
||||||
page_size: int = 100,
|
page_size: int | None = None,
|
||||||
rg_id: int | None = None,
|
rg_id: int | None = None,
|
||||||
rg_name: str | None = None,
|
rg_name: str | None = None,
|
||||||
sort_by: str | None = None,
|
sort_by: str | None = None,
|
||||||
status: _nested.BServiceStatus | None = None,
|
status: _nested.BServiceStatus | None = None,
|
||||||
tech_status: _nested.BServiceTechStatus | None = None,
|
tech_status: _nested.BServiceTechStatus | None = None,
|
||||||
) -> CloudapiBserviceListResultModel:
|
) -> CloudapiBserviceListResultModel:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -2,21 +2,19 @@ import dynamix_sdk.base as _base
|
|||||||
import dynamix_sdk.api._nested as _nested
|
import dynamix_sdk.api._nested as _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceListDeletedResultModel(_base.ResultModel):
|
class CloudapiBserviceListDeletedResultModel(_base.BaseAPIResultModel):
|
||||||
data: list[_nested.BServiceAPIResultNM]
|
data: list[_nested.BServiceAPIResultNM]
|
||||||
entry_count: int
|
entry_count: int
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceListDeletedImpl(_base.APIFunctionImpl):
|
class CloudapiBserviceListDeletedProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
http_method = _base.HTTPMethod.POST
|
def list_deleted(
|
||||||
|
|
||||||
def __call__(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
account_id: int | None = None,
|
account_id: int | None = None,
|
||||||
page_number: int = 1,
|
page_number: int | None = None,
|
||||||
page_size: int = 100,
|
page_size: int | None = None,
|
||||||
rg_id: int | None = None,
|
rg_id: int | None = None,
|
||||||
sort_by: str | None = None,
|
sort_by: str | None = None,
|
||||||
) -> CloudapiBserviceListDeletedResultModel:
|
) -> CloudapiBserviceListDeletedResultModel:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,13 +1,15 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceMigrateToZoneImpl(_base.APIFunctionImpl):
|
class CloudapiBserviceMigrateToZoneResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiBserviceMigrateToZoneProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def migrate_to_zone(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
zone_id: int,
|
zone_id: int,
|
||||||
) -> bool:
|
) -> CloudapiBserviceMigrateToZoneResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,12 +1,14 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceRestoreImpl(_base.APIFunctionImpl):
|
class CloudapiBserviceRestoreResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiBserviceRestoreProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def restore(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
) -> bool:
|
) -> CloudapiBserviceRestoreResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,15 +1,17 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceSnapshotCreateImpl(
|
class CloudapiBserviceSnapshotCreateResultBool(_base.BaseAPIResultBool):
|
||||||
_base.APIFunctionImpl,
|
pass
|
||||||
):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiBserviceSnapshotCreateProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol,
|
||||||
|
):
|
||||||
|
def snapshot_create(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
label: str,
|
label: str,
|
||||||
) -> bool:
|
) -> CloudapiBserviceSnapshotCreateResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,15 +1,17 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceSnapshotDeleteImpl(
|
class CloudapiBserviceSnapshotDeleteResultBool(_base.BaseAPIResultBool):
|
||||||
_base.APIFunctionImpl,
|
pass
|
||||||
):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiBserviceSnapshotDeleteProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol,
|
||||||
|
):
|
||||||
|
def snapshot_delete(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
label: str,
|
label: str,
|
||||||
) -> bool:
|
) -> CloudapiBserviceSnapshotDeleteResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -2,17 +2,15 @@ import dynamix_sdk.base as _base
|
|||||||
import dynamix_sdk.api._nested as _nested
|
import dynamix_sdk.api._nested as _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceSnapshotListResultModel(_base.ResultModel):
|
class CloudapiBserviceSnapshotListResultModel(_base.BaseAPIResultModel):
|
||||||
data: list[_nested.BServiceSnapshotAPIResultNM]
|
data: list[_nested.BServiceSnapshotAPIResultNM]
|
||||||
entry_count: int
|
entry_count: int
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceSnapshotListImpl(_base.APIFunctionImpl):
|
class CloudapiBserviceSnapshotListProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
http_method = _base.HTTPMethod.POST
|
def snapshot_list(
|
||||||
|
|
||||||
def __call__(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
) -> CloudapiBserviceSnapshotListResultModel:
|
) -> CloudapiBserviceSnapshotListResultModel:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,15 +1,17 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceSnapshotRollbackImpl(
|
class CloudapiBserviceSnapshotRollbackResultBool(_base.BaseAPIResultBool):
|
||||||
_base.APIFunctionImpl,
|
pass
|
||||||
):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiBserviceSnapshotRollbackProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol,
|
||||||
|
):
|
||||||
|
def snapshot_rollback(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
label: str,
|
label: str,
|
||||||
) -> bool:
|
) -> CloudapiBserviceSnapshotRollbackResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,12 +1,14 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceStartImpl(_base.APIFunctionImpl):
|
class CloudapiBserviceStartResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiBserviceStartProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def start(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
) -> bool:
|
) -> CloudapiBserviceStartResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,12 +1,14 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiBserviceStopImpl(_base.APIFunctionImpl):
|
class CloudapiBserviceStopResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiBserviceStopProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def stop(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
bservice_id: int,
|
bservice_id: int,
|
||||||
) -> bool:
|
) -> CloudapiBserviceStopResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
from .abort_shared_snapshot_merge import *
|
from .abort_shared_snapshot_merge import *
|
||||||
from .add_acl_access import *
|
|
||||||
from .affinity_label_remove import *
|
from .affinity_label_remove import *
|
||||||
from .affinity_label_set import *
|
from .affinity_label_set import *
|
||||||
from .affinity_relations import *
|
from .affinity_relations import *
|
||||||
@@ -19,14 +18,11 @@ from .change_ip import *
|
|||||||
from .change_link_state import *
|
from .change_link_state import *
|
||||||
from .change_mac import *
|
from .change_mac import *
|
||||||
from .change_mtu import *
|
from .change_mtu import *
|
||||||
from .change_qos_policies import *
|
|
||||||
from .change_security_groups import *
|
from .change_security_groups import *
|
||||||
from .clone import *
|
from .clone import *
|
||||||
from .create_template import *
|
from .create_template import *
|
||||||
from .del_acl_access import *
|
|
||||||
from .delete import *
|
from .delete import *
|
||||||
from .delete_custom_fields import *
|
from .delete_custom_fields import *
|
||||||
from .delete_cpu_alignment_profile import *
|
|
||||||
from .detach_gpu import *
|
from .detach_gpu import *
|
||||||
from .detach_pci_device import *
|
from .detach_pci_device import *
|
||||||
from .disable import *
|
from .disable import *
|
||||||
@@ -38,9 +34,7 @@ from .disk_detach import *
|
|||||||
from .disk_switch_to_replication import *
|
from .disk_switch_to_replication import *
|
||||||
from .enable import *
|
from .enable import *
|
||||||
from .get import *
|
from .get import *
|
||||||
from .get_acl_access import *
|
|
||||||
from .get_console_url import *
|
from .get_console_url import *
|
||||||
from .get_cpu_alignment_profile import *
|
|
||||||
from .guest_agent_disable import *
|
from .guest_agent_disable import *
|
||||||
from .guest_agent_enable import *
|
from .guest_agent_enable import *
|
||||||
from .guest_agent_execute import *
|
from .guest_agent_execute import *
|
||||||
@@ -63,7 +57,6 @@ from .reset import *
|
|||||||
from .resize import *
|
from .resize import *
|
||||||
from .restore import *
|
from .restore import *
|
||||||
from .resume import *
|
from .resume import *
|
||||||
from .set_cpu_alignment_profile import *
|
|
||||||
from .set_custom_fields import *
|
from .set_custom_fields import *
|
||||||
from .snapshot_create import *
|
from .snapshot_create import *
|
||||||
from .snapshot_list import *
|
from .snapshot_list import *
|
||||||
@@ -74,7 +67,6 @@ from .tag_add import *
|
|||||||
from .tag_remove import *
|
from .tag_remove import *
|
||||||
from .unpin_from_node import *
|
from .unpin_from_node import *
|
||||||
from .update import *
|
from .update import *
|
||||||
from .update_acl_access import *
|
|
||||||
from .user_grant import *
|
from .user_grant import *
|
||||||
from .user_list import *
|
from .user_list import *
|
||||||
from .user_revoke import *
|
from .user_revoke import *
|
||||||
@@ -83,84 +75,77 @@ from .user_update import *
|
|||||||
|
|
||||||
class CloudapiComputeAPI(
|
class CloudapiComputeAPI(
|
||||||
_base.BaseAPI,
|
_base.BaseAPI,
|
||||||
|
CloudapiComputeAbortSharedSnapshotMergeProtocol,
|
||||||
|
CloudapiComputeAffinityLabelRemoveProtocol,
|
||||||
|
CloudapiComputeAffinityLabelSetProtocol,
|
||||||
|
CloudapiComputeAffinityRelationsProtocol,
|
||||||
|
CloudapiComputeAffinityRuleAddProtocol,
|
||||||
|
CloudapiComputeAffinityRuleRemoveProtocol,
|
||||||
|
CloudapiComputeAffinityRulesClearProtocol,
|
||||||
|
CloudapiComputeAntiAffinityRuleAddProtocol,
|
||||||
|
CloudapiComputeAntiAffinityRuleRemoveProtocol,
|
||||||
|
CloudapiComputeAntiAffinityRulesClearProtocol,
|
||||||
|
CloudapiComputeAttachGpuProtocol,
|
||||||
|
CloudapiComputeAttachPciDeviceProtocol,
|
||||||
|
CloudapiComputeBootDiskSetProtocol,
|
||||||
|
CloudapiComputeCdEjectProtocol,
|
||||||
|
CloudapiComputeCdInsertProtocol,
|
||||||
|
CloudapiComputeChangeIpProtocol,
|
||||||
|
CloudapiComputeChangeLinkStateProtocol,
|
||||||
|
CloudapiComputeChangeMacProtocol,
|
||||||
|
CloudapiComputeChangeMtuProtocol,
|
||||||
|
CloudapiComputeChangeSecurityGroupsProtocol,
|
||||||
|
CloudapiComputeCloneProtocol,
|
||||||
|
CloudapiComputeCreateTemplateProtocol,
|
||||||
|
CloudapiComputeDeleteCustomFieldsProtocol,
|
||||||
|
CloudapiComputeDeleteProtocol,
|
||||||
|
CloudapiComputeDetachGpuProtocol,
|
||||||
|
CloudapiComputeDetachPciDeviceProtocol,
|
||||||
|
CloudapiComputeDisableProtocol,
|
||||||
|
CloudapiComputeDiskAddProtocol,
|
||||||
|
CloudapiComputeDiskAttachProtocol,
|
||||||
|
CloudapiComputeDiskDelProtocol,
|
||||||
|
CloudapiComputeDiskDetachProtocol,
|
||||||
|
CloudapiComputeDiskMigrateProtocol,
|
||||||
|
CloudapiComputeDiskSwitchToReplicationProtocol,
|
||||||
|
CloudapiComputeEnableProtocol,
|
||||||
|
CloudapiComputeGetConsoleUrlProtocol,
|
||||||
|
CloudapiComputeGetProtocol,
|
||||||
|
CloudapiComputeGuestAgentDisableProtocol,
|
||||||
|
CloudapiComputeGuestAgentEnableProtocol,
|
||||||
|
CloudapiComputeGuestAgentExecuteProtocol,
|
||||||
|
CloudapiComputeGuestAgentFeatureUpdateProtocol,
|
||||||
|
CloudapiComputeListProtocol,
|
||||||
|
CloudapiComputeListDeletedProtocol,
|
||||||
|
CloudapiComputeMigrateToZoneProtocol,
|
||||||
|
CloudapiComputeMoveToRgProtocol,
|
||||||
|
CloudapiComputeNetAttachProtocol,
|
||||||
|
CloudapiComputeNetDetachProtocol,
|
||||||
|
CloudapiComputePauseProtocol,
|
||||||
|
CloudapiComputePfwAddProtocol,
|
||||||
|
CloudapiComputePfwDelProtocol,
|
||||||
|
CloudapiComputePfwListProtocol,
|
||||||
|
CloudapiComputePinToNodeProtocol,
|
||||||
|
CloudapiComputePowerCycleProtocol,
|
||||||
|
CloudapiComputeRebootProtocol,
|
||||||
|
CloudapiComputeRedeployProtocol,
|
||||||
|
CloudapiComputeResetProtocol,
|
||||||
|
CloudapiComputeResizeProtocol,
|
||||||
|
CloudapiComputeRestoreProtocol,
|
||||||
|
CloudapiComputeResumeProtocol,
|
||||||
|
CloudapiComputeSetCustomFieldsProtocol,
|
||||||
|
CloudapiComputeSnapshotCreateProtocol,
|
||||||
|
CloudapiComputeSnapshotListProtocol,
|
||||||
|
CloudapiComputeSnapshotRollbackProtocol,
|
||||||
|
CloudapiComputeStartProtocol,
|
||||||
|
CloudapiComputeStopProtocol,
|
||||||
|
CloudapiComputeTagAddProtocol,
|
||||||
|
CloudapiComputeTagRemoveProtocol,
|
||||||
|
CloudapiComputeUnpinFromNodeProtocol,
|
||||||
|
CloudapiComputeUpdateProtocol,
|
||||||
|
CloudapiComputeUserGrantProtocol,
|
||||||
|
CloudapiComputeUserListProtocol,
|
||||||
|
CloudapiComputeUserRevokeProtocol,
|
||||||
|
CloudapiComputeUserUpdateProtocol,
|
||||||
):
|
):
|
||||||
get: CloudapiComputeGetImpl
|
pass
|
||||||
get_acl_access: CloudapiComputeGetAclAccessImpl
|
|
||||||
redeploy: CloudapiComputeRedeployImpl
|
|
||||||
disk_switch_to_replication: CloudapiComputeDiskSwitchToReplicationImpl
|
|
||||||
pin_to_node: CloudapiComputePinToNodeImpl
|
|
||||||
change_ip: CloudapiComputeChangeIpImpl
|
|
||||||
anti_affinity_rules_clear: CloudapiComputeAntiAffinityRulesClearImpl
|
|
||||||
power_cycle: CloudapiComputePowerCycleImpl
|
|
||||||
pfw_del: CloudapiComputePfwDelImpl
|
|
||||||
restore: CloudapiComputeRestoreImpl
|
|
||||||
change_mtu: CloudapiComputeChangeMtuImpl
|
|
||||||
del_acl_access: CloudapiComputeDelAclAccessImpl
|
|
||||||
delete: CloudapiComputeDeleteImpl
|
|
||||||
pfw_add: CloudapiComputePfwAddImpl
|
|
||||||
affinity_label_set: CloudapiComputeAffinityLabelSetImpl
|
|
||||||
disable: CloudapiComputeDisableImpl
|
|
||||||
pfw_list: CloudapiComputePfwListImpl
|
|
||||||
net_attach: CloudapiComputeNetAttachImpl
|
|
||||||
user_revoke: CloudapiComputeUserRevokeImpl
|
|
||||||
reset: CloudapiComputeResetImpl
|
|
||||||
user_grant: CloudapiComputeUserGrantImpl
|
|
||||||
anti_affinity_rule_add: CloudapiComputeAntiAffinityRuleAddImpl
|
|
||||||
disk_del: CloudapiComputeDiskDelImpl
|
|
||||||
change_link_state: CloudapiComputeChangeLinkStateImpl
|
|
||||||
clone: CloudapiComputeCloneImpl
|
|
||||||
guest_agent_feature_update: CloudapiComputeGuestAgentFeatureUpdateImpl
|
|
||||||
pause: CloudapiComputePauseImpl
|
|
||||||
change_mac: CloudapiComputeChangeMacImpl
|
|
||||||
detach_pci_device: CloudapiComputeDetachPciDeviceImpl
|
|
||||||
attach_pci_device: CloudapiComputeAttachPciDeviceImpl
|
|
||||||
user_update: CloudapiComputeUserUpdateImpl
|
|
||||||
abort_shared_snapshot_merge: CloudapiComputeAbortSharedSnapshotMergeImpl
|
|
||||||
cd_insert: CloudapiComputeCdInsertImpl
|
|
||||||
user_list: CloudapiComputeUserListImpl
|
|
||||||
guest_agent_disable: CloudapiComputeGuestAgentDisableImpl
|
|
||||||
unpin_from_node: CloudapiComputeUnpinFromNodeImpl
|
|
||||||
cd_eject: CloudapiComputeCdEjectImpl
|
|
||||||
detach_gpu: CloudapiComputeDetachGpuImpl
|
|
||||||
move_to_rg: CloudapiComputeMoveToRgImpl
|
|
||||||
stop: CloudapiComputeStopImpl
|
|
||||||
affinity_relations: CloudapiComputeAffinityRelationsImpl
|
|
||||||
boot_disk_set: CloudapiComputeBootDiskSetImpl
|
|
||||||
disk_migrate: CloudapiComputeDiskMigrateImpl
|
|
||||||
disk_detach: CloudapiComputeDiskDetachImpl
|
|
||||||
affinity_label_remove: CloudapiComputeAffinityLabelRemoveImpl
|
|
||||||
list: CloudapiComputeListImpl
|
|
||||||
resume: CloudapiComputeResumeImpl
|
|
||||||
resize: CloudapiComputeResizeImpl
|
|
||||||
affinity_rule_add: CloudapiComputeAffinityRuleAddImpl
|
|
||||||
snapshot_rollback: CloudapiComputeSnapshotRollbackImpl
|
|
||||||
guest_agent_execute: CloudapiComputeGuestAgentExecuteImpl
|
|
||||||
start: CloudapiComputeStartImpl
|
|
||||||
snapshot_create: CloudapiComputeSnapshotCreateImpl
|
|
||||||
tag_add: CloudapiComputeTagAddImpl
|
|
||||||
net_detach: CloudapiComputeNetDetachImpl
|
|
||||||
anti_affinity_rule_remove: CloudapiComputeAntiAffinityRuleRemoveImpl
|
|
||||||
change_security_groups: CloudapiComputeChangeSecurityGroupsImpl
|
|
||||||
change_qos_policies: CloudapiComputeChangeQosPoliciesImpl
|
|
||||||
snapshot_list: CloudapiComputeSnapshotListImpl
|
|
||||||
update: CloudapiComputeUpdateImpl
|
|
||||||
update_acl_access: CloudapiComputeUpdateAclAccessImpl
|
|
||||||
get_console_url: CloudapiComputeGetConsoleUrlImpl
|
|
||||||
disk_attach: CloudapiComputeDiskAttachImpl
|
|
||||||
tag_remove: CloudapiComputeTagRemoveImpl
|
|
||||||
disk_add: CloudapiComputeDiskAddImpl
|
|
||||||
attach_gpu: CloudapiComputeAttachGpuImpl
|
|
||||||
affinity_rule_remove: CloudapiComputeAffinityRuleRemoveImpl
|
|
||||||
migrate_to_zone: CloudapiComputeMigrateToZoneImpl
|
|
||||||
affinity_rules_clear: CloudapiComputeAffinityRulesClearImpl
|
|
||||||
reboot: CloudapiComputeRebootImpl
|
|
||||||
delete_custom_fields: CloudapiComputeDeleteCustomFieldsImpl
|
|
||||||
set_custom_fields: CloudapiComputeSetCustomFieldsImpl
|
|
||||||
list_deleted: CloudapiComputeListDeletedImpl
|
|
||||||
create_template: CloudapiComputeCreateTemplateImpl
|
|
||||||
guest_agent_enable: CloudapiComputeGuestAgentEnableImpl
|
|
||||||
enable: CloudapiComputeEnableImpl
|
|
||||||
get_cpu_alignment_profile: CloudapiComputeGetCpuAlignmentProfileImpl
|
|
||||||
set_cpu_alignment_profile: CloudapiComputeSetCpuAlignmentProfileImpl
|
|
||||||
delete_cpu_alignment_profile: CloudapiComputeDeleteCpuAlignmentProfileImpl
|
|
||||||
add_acl_access: CloudapiComputeAddAclAccessImpl
|
|
||||||
@@ -1,16 +1,19 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAbortSharedSnapshotMergeImpl(
|
class CloudapiComputeAbortSharedSnapshotMergeResultStr(
|
||||||
_base.APIFunctionImpl
|
_base.BaseAPIResultStr,
|
||||||
):
|
):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeAbortSharedSnapshotMergeProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol
|
||||||
|
):
|
||||||
|
def abort_shared_snapshot_merge(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
label: str,
|
label: str,
|
||||||
async_mode: bool = False,
|
) -> CloudapiComputeAbortSharedSnapshotMergeResultStr:
|
||||||
) -> str:
|
...
|
||||||
raise NotImplementedError
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
import dynamix_sdk.base as _base
|
|
||||||
import dynamix_sdk.api._nested as _nested
|
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAddAclAccessImpl(_base.APIFunctionImpl):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
self,
|
|
||||||
*,
|
|
||||||
id: int,
|
|
||||||
accesstype: _nested.AccessTypeForSet,
|
|
||||||
apiaccesses: list[int] | None = None,
|
|
||||||
usernames: list[str] | None = None,
|
|
||||||
) -> bool:
|
|
||||||
raise NotImplementedError
|
|
||||||
@@ -1,14 +1,16 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAffinityLabelRemoveImpl(
|
class CloudapiComputeAffinityLabelRemoveResultBool(_base.BaseAPIResultBool):
|
||||||
_base.APIFunctionImpl
|
pass
|
||||||
):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeAffinityLabelRemoveProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol
|
||||||
|
):
|
||||||
|
def affinity_label_remove(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
) -> bool:
|
) -> CloudapiComputeAffinityLabelRemoveResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,15 +1,17 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAffinityLabelSetImpl(
|
class CloudapiComputeAffinityLabelSetResultBool(_base.BaseAPIResultBool):
|
||||||
_base.APIFunctionImpl
|
pass
|
||||||
):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeAffinityLabelSetProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol
|
||||||
|
):
|
||||||
|
def affinity_label_set(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
affinity_label: str,
|
affinity_label: str,
|
||||||
) -> bool:
|
) -> CloudapiComputeAffinityLabelSetResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -3,19 +3,18 @@ from dynamix_sdk.api import _nested
|
|||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAffinityRelationsResultModel(
|
class CloudapiComputeAffinityRelationsResultModel(
|
||||||
|
_base.BaseAPIResultModel,
|
||||||
_nested.AffinityRelationsAPIResultNM,
|
_nested.AffinityRelationsAPIResultNM,
|
||||||
):
|
):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAffinityRelationsImpl(
|
class CloudapiComputeAffinityRelationsProtocol(
|
||||||
_base.APIFunctionImpl
|
_base.BasePostAPIFunctionProtocol
|
||||||
):
|
):
|
||||||
http_method = _base.HTTPMethod.POST
|
def affinity_relations(
|
||||||
|
|
||||||
def __call__(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
) -> CloudapiComputeAffinityRelationsResultModel:
|
) -> CloudapiComputeAffinityRelationsResultModel:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -2,18 +2,14 @@ import dynamix_sdk.base as _base
|
|||||||
from dynamix_sdk.api import _nested
|
from dynamix_sdk.api import _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAffinityRuleAddResultModel(
|
class CloudapiComputeAffinityRuleAddResultBool(_base.BaseAPIResultBool):
|
||||||
_nested.ComputeAffinityRuleApplyResultAPIResultNM,
|
|
||||||
):
|
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAffinityRuleAddImpl(
|
class CloudapiComputeAffinityRuleAddProtocol(
|
||||||
_base.APIFunctionImpl
|
_base.BasePostAPIFunctionProtocol
|
||||||
):
|
):
|
||||||
http_method = _base.HTTPMethod.POST
|
def affinity_rule_add(
|
||||||
|
|
||||||
def __call__(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
@@ -22,7 +18,5 @@ class CloudapiComputeAffinityRuleAddImpl(
|
|||||||
mode: _nested.AffinityMode,
|
mode: _nested.AffinityMode,
|
||||||
key: str,
|
key: str,
|
||||||
value: str,
|
value: str,
|
||||||
async_mode: bool = False,
|
) -> CloudapiComputeAffinityRuleAddResultBool:
|
||||||
migrate: bool = False,
|
...
|
||||||
) -> bool | str | CloudapiComputeAffinityRuleAddResultModel:
|
|
||||||
raise NotImplementedError
|
|
||||||
@@ -2,12 +2,14 @@ import dynamix_sdk.base as _base
|
|||||||
from dynamix_sdk.api import _nested
|
from dynamix_sdk.api import _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAffinityRuleRemoveImpl(
|
class CloudapiComputeAffinityRuleRemoveResultBool(_base.BaseAPIResultBool):
|
||||||
_base.APIFunctionImpl
|
pass
|
||||||
):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeAffinityRuleRemoveProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol
|
||||||
|
):
|
||||||
|
def affinity_rule_remove(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
@@ -16,5 +18,5 @@ class CloudapiComputeAffinityRuleRemoveImpl(
|
|||||||
mode: _nested.AffinityMode,
|
mode: _nested.AffinityMode,
|
||||||
key: str,
|
key: str,
|
||||||
value: str,
|
value: str,
|
||||||
) -> bool:
|
) -> CloudapiComputeAffinityRuleRemoveResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,14 +1,16 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAffinityRulesClearImpl(
|
class CloudapiComputeAffinityRulesClearResultBool(_base.BaseAPIResultBool):
|
||||||
_base.APIFunctionImpl
|
pass
|
||||||
):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeAffinityRulesClearProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol
|
||||||
|
):
|
||||||
|
def affinity_rules_clear(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
) -> bool:
|
) -> CloudapiComputeAffinityRulesClearResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -2,18 +2,14 @@ import dynamix_sdk.base as _base
|
|||||||
from dynamix_sdk.api import _nested
|
from dynamix_sdk.api import _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAntiAffinityRuleAddResultModel(
|
class CloudapiComputeAntiAffinityRuleAddResultBool(_base.BaseAPIResultBool):
|
||||||
_nested.ComputeAffinityRuleApplyResultAPIResultNM,
|
|
||||||
):
|
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAntiAffinityRuleAddImpl(
|
class CloudapiComputeAntiAffinityRuleAddProtocol(
|
||||||
_base.APIFunctionImpl
|
_base.BasePostAPIFunctionProtocol
|
||||||
):
|
):
|
||||||
http_method = _base.HTTPMethod.POST
|
def anti_affinity_rule_add(
|
||||||
|
|
||||||
def __call__(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
@@ -22,7 +18,5 @@ class CloudapiComputeAntiAffinityRuleAddImpl(
|
|||||||
mode: _nested.AffinityMode,
|
mode: _nested.AffinityMode,
|
||||||
key: str,
|
key: str,
|
||||||
value: str,
|
value: str,
|
||||||
async_mode: bool = False,
|
) -> CloudapiComputeAntiAffinityRuleAddResultBool:
|
||||||
migrate: bool = False,
|
...
|
||||||
) -> bool | str | CloudapiComputeAntiAffinityRuleAddResultModel:
|
|
||||||
raise NotImplementedError
|
|
||||||
@@ -2,12 +2,14 @@ import dynamix_sdk.base as _base
|
|||||||
from dynamix_sdk.api import _nested
|
from dynamix_sdk.api import _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAntiAffinityRuleRemoveImpl(
|
class CloudapiComputeAntiAffinityRuleRemoveResultBool(_base.BaseAPIResultBool):
|
||||||
_base.APIFunctionImpl
|
pass
|
||||||
):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeAntiAffinityRuleRemoveProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol
|
||||||
|
):
|
||||||
|
def anti_affinity_rule_remove(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
@@ -16,5 +18,5 @@ class CloudapiComputeAntiAffinityRuleRemoveImpl(
|
|||||||
mode: _nested.AffinityMode,
|
mode: _nested.AffinityMode,
|
||||||
key: str,
|
key: str,
|
||||||
value: str,
|
value: str,
|
||||||
) -> bool:
|
) -> CloudapiComputeAntiAffinityRuleRemoveResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,14 +1,16 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAntiAffinityRulesClearImpl(
|
class CloudapiComputeAntiAffinityRulesClearResultBool(_base.BaseAPIResultBool):
|
||||||
_base.APIFunctionImpl
|
pass
|
||||||
):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeAntiAffinityRulesClearProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol
|
||||||
|
):
|
||||||
|
def anti_affinity_rules_clear(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
) -> bool:
|
) -> CloudapiComputeAntiAffinityRulesClearResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,13 +1,15 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAttachGpuImpl(_base.APIFunctionImpl):
|
class CloudapiComputeAttachGpuResultInt(_base.BaseAPIResultInt):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeAttachGpuProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def attach_gpu(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
vgpu_id: int,
|
vgpu_id: int,
|
||||||
) -> int:
|
) -> CloudapiComputeAttachGpuResultInt:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,15 +1,17 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeAttachPciDeviceImpl(
|
class CloudapiComputeAttachPciDeviceResultBool(_base.BaseAPIResultBool):
|
||||||
_base.APIFunctionImpl,
|
pass
|
||||||
):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeAttachPciDeviceProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol,
|
||||||
|
):
|
||||||
|
def attach_pci_device(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
pci_device_id: int,
|
pci_device_id: int,
|
||||||
) -> bool:
|
) -> CloudapiComputeAttachPciDeviceResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,13 +1,15 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeBootDiskSetImpl(_base.APIFunctionImpl):
|
class CloudapiComputeBootDiskSetResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeBootDiskSetProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def boot_disk_set(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
disk_id: int,
|
disk_id: int,
|
||||||
) -> bool:
|
) -> CloudapiComputeBootDiskSetResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,13 +1,14 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeCdEjectImpl(_base.APIFunctionImpl):
|
class CloudapiComputeCdEjectResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeCdEjectProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def cd_eject(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
async_mode: bool = False,
|
) -> CloudapiComputeCdEjectResultBool:
|
||||||
) -> bool | str:
|
...
|
||||||
raise NotImplementedError
|
|
||||||
@@ -1,14 +1,15 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeCdInsertImpl(_base.APIFunctionImpl):
|
class CloudapiComputeCdInsertResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeCdInsertProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def cd_insert(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
cdrom_image_id: int,
|
cdrom_image_id: int,
|
||||||
async_mode: bool = False,
|
) -> CloudapiComputeCdInsertResultBool:
|
||||||
) -> bool | str:
|
...
|
||||||
raise NotImplementedError
|
|
||||||
@@ -2,16 +2,17 @@ import dynamix_sdk.base as _base
|
|||||||
import dynamix_sdk.api._nested as _nested
|
import dynamix_sdk.api._nested as _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeChangeIpImpl(_base.APIFunctionImpl):
|
class CloudapiComputeChangeIpResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeChangeIpProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def change_ip(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
net_type: _nested.NetTypeForChangeIP,
|
net_type: _nested.NetTypeForChangeIP,
|
||||||
net_id: int,
|
net_id: int,
|
||||||
ip_addr: str,
|
ip_addr: str,
|
||||||
async_mode: bool = False,
|
) -> CloudapiComputeChangeIpResultBool:
|
||||||
) -> bool | str:
|
...
|
||||||
raise NotImplementedError
|
|
||||||
@@ -2,17 +2,18 @@ import dynamix_sdk.base as _base
|
|||||||
import dynamix_sdk.api._nested as _nested
|
import dynamix_sdk.api._nested as _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeChangeLinkStateImpl(
|
class CloudapiComputeChangeLinkStateResultBool(_base.BaseAPIResultBool):
|
||||||
_base.APIFunctionImpl
|
pass
|
||||||
):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeChangeLinkStateProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol
|
||||||
|
):
|
||||||
|
def change_link_state(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
interface: str,
|
interface: str,
|
||||||
state: _nested.LinkState,
|
state: _nested.LinkState,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
async_mode: bool = False,
|
) -> CloudapiComputeChangeLinkStateResultBool:
|
||||||
) -> bool | str:
|
...
|
||||||
raise NotImplementedError
|
|
||||||
@@ -1,14 +1,16 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeChangeMacImpl(_base.APIFunctionImpl):
|
class CloudapiComputeChangeMacResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeChangeMacProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def change_mac(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
current_mac: str,
|
current_mac: str,
|
||||||
new_mac: str,
|
new_mac: str,
|
||||||
) -> bool:
|
) -> CloudapiComputeChangeMacResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,17 +1,18 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeChangeMtuImpl(
|
class CloudapiComputeChangeMtuResultBool(_base.BaseAPIResultBool):
|
||||||
_base.APIFunctionImpl
|
pass
|
||||||
):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeChangeMtuProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol
|
||||||
|
):
|
||||||
|
def change_mtu(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
interface: str,
|
interface: str,
|
||||||
mtu: int,
|
mtu: int,
|
||||||
async_mode: bool = False,
|
) -> CloudapiComputeChangeMtuResultBool:
|
||||||
) -> bool | str:
|
...
|
||||||
raise NotImplementedError
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
import dynamix_sdk.base as _base
|
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeChangeQosPoliciesImpl(
|
|
||||||
_base.APIFunctionImpl,
|
|
||||||
):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
self,
|
|
||||||
*,
|
|
||||||
compute_id: int,
|
|
||||||
interface: str,
|
|
||||||
qos_policy_ids: list[int] | None = None,
|
|
||||||
async_mode: bool = False,
|
|
||||||
) -> bool | str:
|
|
||||||
raise NotImplementedError
|
|
||||||
@@ -1,18 +1,19 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeChangeSecurityGroupsImpl(
|
class CloudapiComputeChangeSecurityGroupsResultBool(_base.BaseAPIResultBool):
|
||||||
_base.APIFunctionImpl
|
pass
|
||||||
):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeChangeSecurityGroupsProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol
|
||||||
|
):
|
||||||
|
def change_security_groups(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
interface: str,
|
interface: str,
|
||||||
security_group_ids: list[int] | None = None,
|
security_group_ids: list[int] | None = None,
|
||||||
security_group_mode: bool | None = None,
|
security_group_mode: bool | None = None,
|
||||||
async_mode: bool = False,
|
) -> CloudapiComputeChangeSecurityGroupsResultBool:
|
||||||
) -> bool | str:
|
...
|
||||||
raise NotImplementedError
|
|
||||||
@@ -1,10 +1,12 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeCloneImpl(_base.APIFunctionImpl):
|
class CloudapiComputeCloneResultStr(_base.BaseAPIResultStr):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeCloneProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def clone(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
@@ -15,6 +17,5 @@ class CloudapiComputeCloneImpl(_base.APIFunctionImpl):
|
|||||||
snapshot_name: str | None = None,
|
snapshot_name: str | None = None,
|
||||||
sep_pool_name: str | None = None,
|
sep_pool_name: str | None = None,
|
||||||
sep_id: int | None = None,
|
sep_id: int | None = None,
|
||||||
async_mode: bool = True,
|
) -> CloudapiComputeCloneResultStr:
|
||||||
) -> str | int:
|
...
|
||||||
raise NotImplementedError
|
|
||||||
@@ -1,14 +1,15 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeCreateTemplateImpl(_base.APIFunctionImpl):
|
class CloudapiComputeCreateTemplateResultStr(_base.BaseAPIResultStr):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeCreateTemplateProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def create_template(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
name: str,
|
name: str
|
||||||
async_mode: bool = True,
|
) -> CloudapiComputeCreateTemplateResultStr:
|
||||||
) -> str | int:
|
...
|
||||||
raise NotImplementedError
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
import dynamix_sdk.base as _base
|
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeDelAclAccessImpl(_base.APIFunctionImpl):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
self,
|
|
||||||
*,
|
|
||||||
id: int,
|
|
||||||
apiaccesses: list[int] | None = None,
|
|
||||||
usernames: list[str] | None = None,
|
|
||||||
) -> bool:
|
|
||||||
raise NotImplementedError
|
|
||||||
@@ -1,15 +1,16 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeDeleteImpl(_base.APIFunctionImpl):
|
class CloudapiComputeDeleteResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeDeleteProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def delete(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
detach_disks: bool = False,
|
detach_disks: bool = False,
|
||||||
permanently: bool = False,
|
permanently: bool = False,
|
||||||
async_mode: bool = False,
|
) -> CloudapiComputeDeleteResultBool:
|
||||||
) -> bool | str:
|
...
|
||||||
raise NotImplementedError
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
import dynamix_sdk.base as _base
|
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeDeleteCpuAlignmentProfileImpl(_base.APIFunctionImpl):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
self,
|
|
||||||
*,
|
|
||||||
vm_ids: list[int],
|
|
||||||
) -> bool:
|
|
||||||
raise NotImplementedError
|
|
||||||
@@ -1,14 +1,16 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeDeleteCustomFieldsImpl(
|
class CloudapiComputeDeleteCustomFieldsResultBool(_base.BaseAPIResultBool):
|
||||||
_base.APIFunctionImpl
|
pass
|
||||||
):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeDeleteCustomFieldsProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol
|
||||||
|
):
|
||||||
|
def delete_custom_fields(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
) -> bool:
|
) -> CloudapiComputeDeleteCustomFieldsResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,13 +1,15 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeDetachGpuImpl(_base.APIFunctionImpl):
|
class CloudapiComputeDetachGpuResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeDetachGpuProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def detach_gpu(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
vgpu_id: int | None = None,
|
vgpu_id: int | None = None,
|
||||||
) -> bool:
|
) -> CloudapiComputeDetachGpuResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,15 +1,17 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeDetachPciDeviceImpl(
|
class CloudapiComputeDetachPciDeviceResultBool(_base.BaseAPIResultBool):
|
||||||
_base.APIFunctionImpl,
|
pass
|
||||||
):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeDetachPciDeviceProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol,
|
||||||
|
):
|
||||||
|
def detach_pci_device(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
pci_device_id: int,
|
pci_device_id: int,
|
||||||
) -> bool:
|
) -> CloudapiComputeDetachPciDeviceResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,15 +1,16 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeDisableImpl(
|
class CloudapiComputeDisableResultBool(_base.BaseAPIResultBool):
|
||||||
_base.APIFunctionImpl
|
pass
|
||||||
):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeDisableProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol
|
||||||
|
):
|
||||||
|
def disable(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
async_mode: bool = False,
|
) -> CloudapiComputeDisableResultBool:
|
||||||
) -> bool | str:
|
...
|
||||||
raise NotImplementedError
|
|
||||||
@@ -1,10 +1,12 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeDiskAddImpl(_base.APIFunctionImpl):
|
class CloudapiComputeDiskAddResultInt(_base.BaseAPIResultInt):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeDiskAddProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def disk_add(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
@@ -17,7 +19,5 @@ class CloudapiComputeDiskAddImpl(_base.APIFunctionImpl):
|
|||||||
image_id: int | None = None,
|
image_id: int | None = None,
|
||||||
pci_slot_num_hex: str | None = None,
|
pci_slot_num_hex: str | None = None,
|
||||||
bus_num_hex: str | None = None,
|
bus_num_hex: str | None = None,
|
||||||
async_mode: bool = False,
|
) -> CloudapiComputeDiskAddResultInt:
|
||||||
read_only_mode: bool = False,
|
...
|
||||||
) -> int | str:
|
|
||||||
raise NotImplementedError
|
|
||||||
@@ -1,17 +1,17 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeDiskAttachImpl(_base.APIFunctionImpl):
|
class CloudapiComputeDiskAttachResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeDiskAttachProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def disk_attach(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
disk_id: int,
|
disk_id: int,
|
||||||
pci_slot_num_hex: str | None = None,
|
pci_slot_num_hex: str | None = None,
|
||||||
bus_num_hex: str | None = None,
|
bus_num_hex: str | None = None,
|
||||||
async_mode: bool = False,
|
) -> CloudapiComputeDiskAttachResultBool:
|
||||||
read_only_mode: bool = False,
|
...
|
||||||
) -> bool | str:
|
|
||||||
raise NotImplementedError
|
|
||||||
@@ -1,15 +1,16 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeDiskDelImpl(_base.APIFunctionImpl):
|
class CloudapiComputeDiskDelResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeDiskDelProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def disk_del(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
disk_id: int,
|
disk_id: int,
|
||||||
permanently: bool = True,
|
permanently: bool = True,
|
||||||
async_mode: bool = False,
|
) -> CloudapiComputeDiskDelResultBool:
|
||||||
) -> bool | str:
|
...
|
||||||
raise NotImplementedError
|
|
||||||
@@ -1,14 +1,15 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeDiskDetachImpl(_base.APIFunctionImpl):
|
class CloudapiComputeDiskDetachResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeDiskDetachProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def disk_detach(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
disk_id: int,
|
disk_id: int,
|
||||||
async_mode: bool = False,
|
) -> CloudapiComputeDiskDetachResultBool:
|
||||||
) -> bool | str:
|
...
|
||||||
raise NotImplementedError
|
|
||||||
@@ -1,17 +1,19 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeDiskMigrateImpl(
|
class CloudapiComputeDiskMigrateResultBool(_base.BaseAPIResultBool):
|
||||||
_base.APIFunctionImpl
|
pass
|
||||||
):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeDiskMigrateProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol
|
||||||
|
):
|
||||||
|
def disk_migrate(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
disk_id: int,
|
disk_id: int,
|
||||||
target_disk_id: int,
|
target_disk_id: int,
|
||||||
mode: int = 1,
|
mode: int = 1,
|
||||||
) -> bool:
|
) -> CloudapiComputeDiskMigrateResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,18 +1,20 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeDiskSwitchToReplicationImpl(
|
class CloudapiComputeDiskSwitchToReplicationResultBool(
|
||||||
_base.APIFunctionImpl,
|
_base.BaseAPIResultBool,
|
||||||
):
|
):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeDiskSwitchToReplicationProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol,
|
||||||
|
):
|
||||||
|
def disk_switch_to_replication(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
disk_id: int,
|
disk_id: int,
|
||||||
stop_replication: bool = False,
|
stop_replication: bool = False,
|
||||||
planned: bool = True,
|
) -> CloudapiComputeDiskSwitchToReplicationResultBool:
|
||||||
async_mode: bool = False,
|
...
|
||||||
) -> bool | str:
|
|
||||||
raise NotImplementedError
|
|
||||||
@@ -1,12 +1,14 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeEnableImpl(_base.APIFunctionImpl):
|
class CloudapiComputeEnableResultBool(_base.BaseAPIResultBool):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeEnableProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def enable(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
) -> bool:
|
) -> CloudapiComputeEnableResultBool:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -2,7 +2,7 @@ import dynamix_sdk.base as _base
|
|||||||
import dynamix_sdk.api._nested as _nested
|
import dynamix_sdk.api._nested as _nested
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeGetResultModel(_base.ResultModel):
|
class CloudapiComputeGetResultModel(_base.BaseAPIResultModel):
|
||||||
account_id: int
|
account_id: int
|
||||||
account_name: str
|
account_name: str
|
||||||
acl: _nested.VMACLAPIResultNM
|
acl: _nested.VMACLAPIResultNM
|
||||||
@@ -21,10 +21,8 @@ class CloudapiComputeGetResultModel(_base.ResultModel):
|
|||||||
cdrom_image_id: int
|
cdrom_image_id: int
|
||||||
chipset: _nested.Chipset
|
chipset: _nested.Chipset
|
||||||
ci_user_data: dict
|
ci_user_data: dict
|
||||||
clock_sync_mode: _nested.ClockSyncMode
|
|
||||||
clone_ids: list[int]
|
clone_ids: list[int]
|
||||||
clone_reference: int
|
clone_reference: int
|
||||||
cpu_alignment_profile: _nested.CPUAlignmentProfileAPIResultNM | dict
|
|
||||||
cpu_count: int
|
cpu_count: int
|
||||||
cpu_pin: bool
|
cpu_pin: bool
|
||||||
created_by: str
|
created_by: str
|
||||||
@@ -36,7 +34,6 @@ class CloudapiComputeGetResultModel(_base.ResultModel):
|
|||||||
pci_devices: dict[str, int]
|
pci_devices: dict[str, int]
|
||||||
disks: list[_nested.DiskForCAComputeGetAPIResultNM]
|
disks: list[_nested.DiskForCAComputeGetAPIResultNM]
|
||||||
driver: _nested.Driver
|
driver: _nested.Driver
|
||||||
folder_id: int | None = None
|
|
||||||
grid_id: int
|
grid_id: int
|
||||||
guid: int
|
guid: int
|
||||||
hot_resize: bool
|
hot_resize: bool
|
||||||
@@ -49,7 +46,6 @@ class CloudapiComputeGetResultModel(_base.ResultModel):
|
|||||||
lock_status: _nested.LockStatus
|
lock_status: _nested.LockStatus
|
||||||
manager_id: int
|
manager_id: int
|
||||||
manager_type: str
|
manager_type: str
|
||||||
memory_balloon_mode: _nested.MemoryBalloonMode
|
|
||||||
migration_job_id: int
|
migration_job_id: int
|
||||||
milestones: int
|
milestones: int
|
||||||
name: str
|
name: str
|
||||||
@@ -66,7 +62,6 @@ class CloudapiComputeGetResultModel(_base.ResultModel):
|
|||||||
reference_id: str
|
reference_id: str
|
||||||
res_name: str
|
res_name: str
|
||||||
reserved_cpu_cores: list[int]
|
reserved_cpu_cores: list[int]
|
||||||
resized_online: bool
|
|
||||||
rg_id: int
|
rg_id: int
|
||||||
rg_name: str
|
rg_name: str
|
||||||
snapshot_sets: list[_nested.SnapshotSetAPIResultNM]
|
snapshot_sets: list[_nested.SnapshotSetAPIResultNM]
|
||||||
@@ -82,7 +77,6 @@ class CloudapiComputeGetResultModel(_base.ResultModel):
|
|||||||
vm_ci_id: int
|
vm_ci_id: int
|
||||||
vnc_password: str
|
vnc_password: str
|
||||||
guest_agent: _nested.GuestAgentAPIResultNM
|
guest_agent: _nested.GuestAgentAPIResultNM
|
||||||
watchdog_action: _nested.WatchdogAction
|
|
||||||
weight: int
|
weight: int
|
||||||
zone_id: int
|
zone_id: int
|
||||||
|
|
||||||
@@ -105,12 +99,10 @@ class CloudapiComputeGetResultModel(_base.ResultModel):
|
|||||||
return self._get_datetime_from_timestamp(self.updated_timestamp)
|
return self._get_datetime_from_timestamp(self.updated_timestamp)
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeGetImpl(_base.APIFunctionImpl):
|
class CloudapiComputeGetProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
http_method = _base.HTTPMethod.POST
|
def get(
|
||||||
|
|
||||||
def __call__(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
) -> CloudapiComputeGetResultModel:
|
) -> CloudapiComputeGetResultModel:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
import dynamix_sdk.base as _base
|
|
||||||
import dynamix_sdk.api._nested as _nested
|
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeGetAclAccessResultModel(_base.ResultModel):
|
|
||||||
data: _nested.VMACLAPIResultNM
|
|
||||||
entry_count: int
|
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeGetAclAccessImpl(_base.APIFunctionImpl):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
self,
|
|
||||||
*,
|
|
||||||
id: int,
|
|
||||||
) -> CloudapiComputeGetAclAccessResultModel:
|
|
||||||
raise NotImplementedError
|
|
||||||
@@ -1,12 +1,14 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeGetConsoleUrlImpl(_base.APIFunctionImpl):
|
class CloudapiComputeGetConsoleUrlResultStr(_base.BaseAPIResultStr):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeGetConsoleUrlProtocol(_base.BasePostAPIFunctionProtocol):
|
||||||
|
def get_console_url(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
) -> str:
|
) -> CloudapiComputeGetConsoleUrlResultStr:
|
||||||
raise NotImplementedError
|
...
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
import dynamix_sdk.base as _base
|
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeGetCpuAlignmentProfileResultModel(_base.ResultModel):
|
|
||||||
name: str | None = None
|
|
||||||
vendor: str | None = None
|
|
||||||
model: str | None = None
|
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeGetCpuAlignmentProfileImpl(_base.APIFunctionImpl):
|
|
||||||
http_method = _base.HTTPMethod.GET
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
self,
|
|
||||||
*,
|
|
||||||
vm_id: int,
|
|
||||||
) -> CloudapiComputeGetCpuAlignmentProfileResultModel:
|
|
||||||
raise NotImplementedError
|
|
||||||
@@ -1,15 +1,16 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeGuestAgentDisableImpl(
|
class CloudapiComputeGuestAgentDisableResultBool(_base.BaseAPIResultBool):
|
||||||
_base.APIFunctionImpl
|
pass
|
||||||
):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeGuestAgentDisableProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol
|
||||||
|
):
|
||||||
|
def guest_agent_disable(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
async_mode: bool = False,
|
) -> CloudapiComputeGuestAgentDisableResultBool:
|
||||||
) -> bool | str:
|
...
|
||||||
raise NotImplementedError
|
|
||||||
@@ -1,15 +1,16 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeGuestAgentEnableImpl(
|
class CloudapiComputeGuestAgentEnableResultBool(_base.BaseAPIResultBool):
|
||||||
_base.APIFunctionImpl
|
pass
|
||||||
):
|
|
||||||
http_method = _base.HTTPMethod.POST
|
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeGuestAgentEnableProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol
|
||||||
|
):
|
||||||
|
def guest_agent_enable(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
async_mode: bool = False,
|
) -> CloudapiComputeGuestAgentEnableResultBool:
|
||||||
) -> bool | str:
|
...
|
||||||
raise NotImplementedError
|
|
||||||
@@ -3,22 +3,19 @@ import dynamix_sdk.base as _base
|
|||||||
|
|
||||||
|
|
||||||
class CloudapiComputeGuestAgentExecuteResultModel(
|
class CloudapiComputeGuestAgentExecuteResultModel(
|
||||||
_base.ResultModel,
|
_base.BaseAPIResultModel,
|
||||||
):
|
):
|
||||||
exec_result: dict
|
exec_result: dict
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeGuestAgentExecuteImpl(
|
class CloudapiComputeGuestAgentExecuteProtocol(
|
||||||
_base.APIFunctionImpl
|
_base.BasePostAPIFunctionProtocol
|
||||||
):
|
):
|
||||||
http_method = _base.HTTPMethod.POST
|
def guest_agent_execute(
|
||||||
|
|
||||||
def __call__(
|
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
cmd: str,
|
cmd: str,
|
||||||
args: dict[str, _typing.Any],
|
args: dict[str, _typing.Any],
|
||||||
async_mode: bool = False,
|
) -> CloudapiComputeGuestAgentExecuteResultModel:
|
||||||
) -> CloudapiComputeGuestAgentExecuteResultModel | str:
|
...
|
||||||
raise NotImplementedError
|
|
||||||
@@ -1,15 +1,18 @@
|
|||||||
import dynamix_sdk.base as _base
|
import dynamix_sdk.base as _base
|
||||||
|
|
||||||
|
|
||||||
class CloudapiComputeGuestAgentFeatureUpdateImpl(
|
class CloudapiComputeGuestAgentFeatureUpdateResultBool(
|
||||||
_base.APIFunctionImpl
|
_base.BaseAPIResultBool,
|
||||||
):
|
):
|
||||||
http_method = _base.HTTPMethod.POST
|
pass
|
||||||
|
|
||||||
def __call__(
|
|
||||||
|
class CloudapiComputeGuestAgentFeatureUpdateProtocol(
|
||||||
|
_base.BasePostAPIFunctionProtocol
|
||||||
|
):
|
||||||
|
def guest_agent_feature_update(
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
vm_id: int,
|
vm_id: int,
|
||||||
async_mode: bool = False,
|
) -> CloudapiComputeGuestAgentFeatureUpdateResultBool:
|
||||||
) -> bool | str:
|
...
|
||||||
raise NotImplementedError
|
|
||||||
Loaded 100 of 1023 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user