1.3.0
This commit is contained in:
@@ -13,11 +13,19 @@ from .k8s import *
|
||||
from .kvmx86 import *
|
||||
from .lb import *
|
||||
from .locations import *
|
||||
from .pcidevice import *
|
||||
from .rg import *
|
||||
from .security_group import *
|
||||
from .sep import *
|
||||
from .stack import *
|
||||
from .storage_policy import *
|
||||
from .tasks import *
|
||||
from .trunk import *
|
||||
from .user import *
|
||||
from .vfpool import *
|
||||
from .vgpu import *
|
||||
from .vins import *
|
||||
from .zone import *
|
||||
|
||||
|
||||
class CloudapiAPI(_base.BaseAPI):
|
||||
@@ -35,8 +43,16 @@ class CloudapiAPI(_base.BaseAPI):
|
||||
kvmx86: CloudapiKvmx86API
|
||||
lb: CloudapiLbAPI
|
||||
locations: CloudapiLocationsAPI
|
||||
pcidevice: CloudapiPcideviceAPI
|
||||
rg: CloudapiRgAPI
|
||||
security_group: CloudapiSecurityGroupAPI
|
||||
sep: CloudapiSepAPI
|
||||
stack: CloudapiStackAPI
|
||||
storage_policy: CloudapiStoragePolicyAPI
|
||||
tasks: CloudapiTasksAPI
|
||||
trunk: CloudapiTrunkAPI
|
||||
user: CloudapiUserAPI
|
||||
vfpool: CloudapiVfpoolAPI
|
||||
vgpu: CloudapiVgpuAPI
|
||||
vins: CloudapiVinsAPI
|
||||
zone: CloudapiZoneAPI
|
||||
|
||||
@@ -5,6 +5,7 @@ from .delete_user import *
|
||||
from .disable import *
|
||||
from .enable import *
|
||||
from .get import *
|
||||
from .get_resource_consumption import *
|
||||
from .list import *
|
||||
from .list_deleted import *
|
||||
from .restore import *
|
||||
@@ -20,6 +21,7 @@ class CloudapiAccountAPI(
|
||||
CloudapiAccountDisableProtocol,
|
||||
CloudapiAccountEnableProtocol,
|
||||
CloudapiAccountGetProtocol,
|
||||
CloudapiAccountGetResourceConsumptionProtocol,
|
||||
CloudapiAccountListDeletedProtocol,
|
||||
CloudapiAccountListProtocol,
|
||||
CloudapiAccountRestoreProtocol,
|
||||
|
||||
@@ -25,6 +25,7 @@ class CloudapiAccountGetResultModel(_base.BaseAPIResultModel):
|
||||
resource_types: list[_nested.AccountResourceType]
|
||||
send_access_emails: bool
|
||||
status: _nested.AccountStatus
|
||||
storage_policy_ids: list[int]
|
||||
uniq_pools: list[str]
|
||||
updated_timestamp: int
|
||||
version: int
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiAccountGetResourceConsumptionResultModel(
|
||||
_base.BaseAPIResultModel,
|
||||
):
|
||||
id: int
|
||||
consumed: _nested.ResourceCountersAPIResultNM
|
||||
reserved: _nested.ResourceCountersAPIResultNM
|
||||
quotas: _nested.TenantQuotasForResourceConsumptionAPIResultNM
|
||||
|
||||
|
||||
class CloudapiAccountGetResourceConsumptionProtocol(
|
||||
_base.BasePostAPIFunctionProtocol,
|
||||
):
|
||||
def get_resource_consumption(
|
||||
self,
|
||||
*,
|
||||
account_id: int,
|
||||
) -> CloudapiAccountGetResourceConsumptionResultModel: ...
|
||||
@@ -3,7 +3,7 @@ import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiAccountListResultModel(_base.BaseAPIResultModel):
|
||||
data: list[_nested.AccountAPIResultNM]
|
||||
data: list[_nested.AccountForCAAPIResultNM]
|
||||
entry_count: int
|
||||
|
||||
|
||||
@@ -14,6 +14,7 @@ class CloudapiAccountListProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
access_type: None | _nested.AccessType = None,
|
||||
id: None | int = None,
|
||||
name: None | str = None,
|
||||
zone_id: None | int = None,
|
||||
page_number: None | int = None,
|
||||
page_size: None | int = None,
|
||||
sort_by: None | str = None,
|
||||
|
||||
@@ -3,7 +3,7 @@ import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiAccountListDeletedResultModel(_base.BaseAPIResultModel):
|
||||
data: list[_nested.AccountAPIResultNM]
|
||||
data: list[_nested.AccountForCAAPIResultNM]
|
||||
entry_count: int
|
||||
|
||||
|
||||
|
||||
@@ -14,9 +14,9 @@ class CloudapiAccountUpdateProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
ext_traffic_quota: None | int = None,
|
||||
gpu_count_quota: None | int = None,
|
||||
name: None | str = None,
|
||||
public_ip_count_quota: None | int = None,
|
||||
ext_ip_count_quota: None | int = None,
|
||||
ram_size_quota_mb: None | int = None,
|
||||
send_access_emails: None | bool = None,
|
||||
send_access_emails: bool = False,
|
||||
storage_size_quota_gb: None | int = None,
|
||||
uniq_pools: None | list[str] = None,
|
||||
description: str | None = None,
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
import dynamix_sdk.base as _base
|
||||
from .get import *
|
||||
from .list import *
|
||||
|
||||
|
||||
class CloudapiAuditAPI(
|
||||
_base.BaseAPI,
|
||||
CloudapiAuditGetProtocol,
|
||||
CloudapiAuditListProtocol,
|
||||
):
|
||||
pass
|
||||
|
||||
@@ -1,27 +1,12 @@
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiAuditGetResultModel(_base.BaseAPIResultModel):
|
||||
args: str
|
||||
api_url_path: str
|
||||
guid: str
|
||||
kwargs: str
|
||||
client_ip_addr: str
|
||||
execution_time_sec: float
|
||||
result: str
|
||||
status_code: int
|
||||
request_timestamp: float
|
||||
response_timestamp: float
|
||||
user_name: str
|
||||
request_datetime_iso8601: str
|
||||
|
||||
@property
|
||||
def request_datetime(self):
|
||||
return self._get_datetime_from_timestamp(self.request_timestamp)
|
||||
|
||||
@property
|
||||
def response_datetime(self):
|
||||
return self._get_datetime_from_timestamp(self.response_timestamp)
|
||||
class CloudapiAuditGetResultModel(
|
||||
_base.BaseAPIResultModel,
|
||||
_nested.AuditAPIResultNM,
|
||||
):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiAuditGetProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
|
||||
35
src/dynamix_sdk/api/cloudapi/audit/list.py
Normal file
35
src/dynamix_sdk/api/cloudapi/audit/list.py
Normal file
@@ -0,0 +1,35 @@
|
||||
import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiAuditListResultModel(_base.BaseAPIResultModel):
|
||||
data: list[_nested.AuditAPIResultNM]
|
||||
entry_count: int
|
||||
|
||||
|
||||
class CloudapiAuditListProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def list(
|
||||
self,
|
||||
*,
|
||||
account_id: int | None = None,
|
||||
api_url_path: str | None = None,
|
||||
bservice_id: int | None = None,
|
||||
exclude_audit_lines: bool = False,
|
||||
flip_group_id: int | None = None,
|
||||
request_id: str | None = None,
|
||||
k8s_id: int | None = None,
|
||||
lb_id: int | None = None,
|
||||
max_status_code: int | None = None,
|
||||
min_status_code: int | None = None,
|
||||
page_number: int = 1,
|
||||
page_size: int = 100,
|
||||
request_timestamp_end: int | None = None,
|
||||
request_timestamp_start: int | None = None,
|
||||
rg_id: int | None = None,
|
||||
sep_id: int | None = None,
|
||||
sort_by: str | None = None,
|
||||
user_name: str | None = None,
|
||||
vins_id: int | None = None,
|
||||
vm_id: int | None = None,
|
||||
) -> CloudapiAuditListResultModel:
|
||||
...
|
||||
@@ -18,7 +18,12 @@ from .group_update_extnet import *
|
||||
from .group_update_vins import *
|
||||
from .list import *
|
||||
from .list_deleted import *
|
||||
from .migrate_to_zone import *
|
||||
from .restore import *
|
||||
from .snapshot_create import *
|
||||
from .snapshot_delete import *
|
||||
from .snapshot_list import *
|
||||
from .snapshot_rollback import *
|
||||
from .start import *
|
||||
from .stop import *
|
||||
|
||||
@@ -44,7 +49,12 @@ class CloudapiBserviceAPI(
|
||||
CloudapiBserviceGroupUpdateVinsProtocol,
|
||||
CloudapiBserviceListDeletedProtocol,
|
||||
CloudapiBserviceListProtocol,
|
||||
CloudapiBserviceMigrateToZoneProtocol,
|
||||
CloudapiBserviceRestoreProtocol,
|
||||
CloudapiBserviceSnapshotCreateProtocol,
|
||||
CloudapiBserviceSnapshotDeleteProtocol,
|
||||
CloudapiBserviceSnapshotListProtocol,
|
||||
CloudapiBserviceSnapshotRollbackProtocol,
|
||||
CloudapiBserviceStartProtocol,
|
||||
CloudapiBserviceStopProtocol,
|
||||
):
|
||||
|
||||
@@ -11,8 +11,8 @@ class CloudapiBserviceCreateProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
*,
|
||||
name: str,
|
||||
rg_id: int,
|
||||
ssh_user: str | None = None,
|
||||
ssh_key: str | None = None,
|
||||
ssh_user_name: str | None = None,
|
||||
ssh_public_key: str | None = None,
|
||||
zone_id: int | None = None,
|
||||
) -> CloudapiBserviceCreateResultInt:
|
||||
...
|
||||
|
||||
@@ -24,8 +24,8 @@ class CloudapiBserviceGetResultModel(_base.BaseAPIResultModel):
|
||||
rg_id: int
|
||||
rg_name: str
|
||||
snapshots: list[_nested.BServiceSnapshotAPIResultNM]
|
||||
ssh_key: str
|
||||
ssh_user: str
|
||||
ssh_public_key: str
|
||||
ssh_user_name: str
|
||||
status: _nested.BServiceStatus
|
||||
tech_status: _nested.BServiceTechStatus
|
||||
updated_by: str
|
||||
|
||||
@@ -14,10 +14,11 @@ class CloudapiBserviceGroupAddProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
vm_count: int,
|
||||
cpu_count: int,
|
||||
boot_disk_size_gb: int,
|
||||
driver: _nested.Driver,
|
||||
image_id: int,
|
||||
driver: _nested.Driver,
|
||||
name: str,
|
||||
ram_size_mb: int,
|
||||
storage_policy_id: int | None = None,
|
||||
ci_user_data: str | None = None,
|
||||
extnet_ids: list[int] | None = None,
|
||||
role: str | None = None,
|
||||
|
||||
@@ -15,6 +15,7 @@ class CloudapiBserviceListProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
account_name: str | None = None,
|
||||
id: int | None = None,
|
||||
name: str | None = None,
|
||||
zone_id: int | None = None,
|
||||
page_number: int | None = None,
|
||||
page_size: int | None = None,
|
||||
rg_id: int | None = None,
|
||||
|
||||
15
src/dynamix_sdk/api/cloudapi/bservice/migrate_to_zone.py
Normal file
15
src/dynamix_sdk/api/cloudapi/bservice/migrate_to_zone.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceMigrateToZoneResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiBserviceMigrateToZoneProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def migrate_to_zone(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
zone_id: int,
|
||||
) -> CloudapiBserviceMigrateToZoneResultBool:
|
||||
...
|
||||
17
src/dynamix_sdk/api/cloudapi/bservice/snapshot_create.py
Normal file
17
src/dynamix_sdk/api/cloudapi/bservice/snapshot_create.py
Normal file
@@ -0,0 +1,17 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceSnapshotCreateResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiBserviceSnapshotCreateProtocol(
|
||||
_base.BasePostAPIFunctionProtocol,
|
||||
):
|
||||
def snapshot_create(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
label: str,
|
||||
) -> CloudapiBserviceSnapshotCreateResultBool:
|
||||
...
|
||||
17
src/dynamix_sdk/api/cloudapi/bservice/snapshot_delete.py
Normal file
17
src/dynamix_sdk/api/cloudapi/bservice/snapshot_delete.py
Normal file
@@ -0,0 +1,17 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceSnapshotDeleteResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiBserviceSnapshotDeleteProtocol(
|
||||
_base.BasePostAPIFunctionProtocol,
|
||||
):
|
||||
def snapshot_delete(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
label: str,
|
||||
) -> CloudapiBserviceSnapshotDeleteResultBool:
|
||||
...
|
||||
16
src/dynamix_sdk/api/cloudapi/bservice/snapshot_list.py
Normal file
16
src/dynamix_sdk/api/cloudapi/bservice/snapshot_list.py
Normal file
@@ -0,0 +1,16 @@
|
||||
import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiBserviceSnapshotListResultModel(_base.BaseAPIResultModel):
|
||||
data: list[_nested.BServiceSnapshotAPIResultNM]
|
||||
entry_count: int
|
||||
|
||||
|
||||
class CloudapiBserviceSnapshotListProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def snapshot_list(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
) -> CloudapiBserviceSnapshotListResultModel:
|
||||
...
|
||||
17
src/dynamix_sdk/api/cloudapi/bservice/snapshot_rollback.py
Normal file
17
src/dynamix_sdk/api/cloudapi/bservice/snapshot_rollback.py
Normal file
@@ -0,0 +1,17 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiBserviceSnapshotRollbackResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiBserviceSnapshotRollbackProtocol(
|
||||
_base.BasePostAPIFunctionProtocol,
|
||||
):
|
||||
def snapshot_rollback(
|
||||
self,
|
||||
*,
|
||||
bservice_id: int,
|
||||
label: str,
|
||||
) -> CloudapiBserviceSnapshotRollbackResultBool:
|
||||
...
|
||||
@@ -1,4 +1,5 @@
|
||||
import dynamix_sdk.base as _base
|
||||
from .abort_shared_snapshot_merge import *
|
||||
from .affinity_label_remove import *
|
||||
from .affinity_label_set import *
|
||||
from .affinity_relations import *
|
||||
@@ -8,19 +9,41 @@ from .affinity_rules_clear import *
|
||||
from .anti_affinity_rule_add import *
|
||||
from .anti_affinity_rule_remove import *
|
||||
from .anti_affinity_rules_clear import *
|
||||
from .attach_gpu import *
|
||||
from .attach_pci_device import *
|
||||
from .boot_disk_set import *
|
||||
from .cd_eject import *
|
||||
from .cd_insert import *
|
||||
from .change_ip import *
|
||||
from .change_link_state import *
|
||||
from .change_mac import *
|
||||
from .change_mtu import *
|
||||
from .change_security_groups import *
|
||||
from .clone import *
|
||||
from .clone_abort import *
|
||||
from .create_template import *
|
||||
from .delete import *
|
||||
from .delete_custom_fields import *
|
||||
from .detach_gpu import *
|
||||
from .detach_pci_device import *
|
||||
from .disable import *
|
||||
from .disk_add import *
|
||||
from .disk_attach import *
|
||||
from .disk_migrate import *
|
||||
from .disk_del import *
|
||||
from .disk_detach import *
|
||||
from .disk_resize import *
|
||||
from .disk_switch_to_replication import *
|
||||
from .enable import *
|
||||
from .get import *
|
||||
from .get_console_url import *
|
||||
from .guest_agent_disable import *
|
||||
from .guest_agent_enable import *
|
||||
from .guest_agent_execute import *
|
||||
from .guest_agent_feature_update import *
|
||||
from .list import *
|
||||
from .list_deleted import *
|
||||
from .migrate_to_zone import *
|
||||
from .move_to_rg import *
|
||||
from .net_attach import *
|
||||
from .net_detach import *
|
||||
from .pause import *
|
||||
@@ -28,9 +51,12 @@ from .pfw_add import *
|
||||
from .pfw_del import *
|
||||
from .pfw_list import *
|
||||
from .pin_to_stack import *
|
||||
from .power_cycle import *
|
||||
from .reboot import *
|
||||
from .redeploy import *
|
||||
from .reset import *
|
||||
from .resize import *
|
||||
from .restore import *
|
||||
from .resume import *
|
||||
from .set_custom_fields import *
|
||||
from .snapshot_create import *
|
||||
@@ -50,6 +76,7 @@ from .user_update import *
|
||||
|
||||
class CloudapiComputeAPI(
|
||||
_base.BaseAPI,
|
||||
CloudapiComputeAbortSharedSnapshotMergeProtocol,
|
||||
CloudapiComputeAffinityLabelRemoveProtocol,
|
||||
CloudapiComputeAffinityLabelSetProtocol,
|
||||
CloudapiComputeAffinityRelationsProtocol,
|
||||
@@ -59,19 +86,41 @@ class CloudapiComputeAPI(
|
||||
CloudapiComputeAntiAffinityRuleAddProtocol,
|
||||
CloudapiComputeAntiAffinityRuleRemoveProtocol,
|
||||
CloudapiComputeAntiAffinityRulesClearProtocol,
|
||||
CloudapiComputeAttachGpuProtocol,
|
||||
CloudapiComputeAttachPciDeviceProtocol,
|
||||
CloudapiComputeBootDiskSetProtocol,
|
||||
CloudapiComputeCdEjectProtocol,
|
||||
CloudapiComputeCdInsertProtocol,
|
||||
CloudapiComputeChangeIpProtocol,
|
||||
CloudapiComputeChangeLinkStateProtocol,
|
||||
CloudapiComputeChangeMacProtocol,
|
||||
CloudapiComputeChangeMtuProtocol,
|
||||
CloudapiComputeChangeSecurityGroupsProtocol,
|
||||
CloudapiComputeCloneAbortProtocol,
|
||||
CloudapiComputeCloneProtocol,
|
||||
CloudapiComputeCreateTemplateProtocol,
|
||||
CloudapiComputeDeleteCustomFieldsProtocol,
|
||||
CloudapiComputeDeleteProtocol,
|
||||
CloudapiComputeDetachGpuProtocol,
|
||||
CloudapiComputeDetachPciDeviceProtocol,
|
||||
CloudapiComputeDisableProtocol,
|
||||
CloudapiComputeDiskAddProtocol,
|
||||
CloudapiComputeDiskAttachProtocol,
|
||||
CloudapiComputeDiskDelProtocol,
|
||||
CloudapiComputeDiskDetachProtocol,
|
||||
CloudapiComputeDiskResizeProtocol,
|
||||
CloudapiComputeDiskMigrateProtocol,
|
||||
CloudapiComputeDiskSwitchToReplicationProtocol,
|
||||
CloudapiComputeEnableProtocol,
|
||||
CloudapiComputeGetConsoleUrlProtocol,
|
||||
CloudapiComputeGetProtocol,
|
||||
CloudapiComputeGuestAgentDisableProtocol,
|
||||
CloudapiComputeGuestAgentEnableProtocol,
|
||||
CloudapiComputeGuestAgentExecuteProtocol,
|
||||
CloudapiComputeGuestAgentFeatureUpdateProtocol,
|
||||
CloudapiComputeListProtocol,
|
||||
CloudapiComputeListDeletedProtocol,
|
||||
CloudapiComputeMigrateToZoneProtocol,
|
||||
CloudapiComputeMoveToRgProtocol,
|
||||
CloudapiComputeNetAttachProtocol,
|
||||
CloudapiComputeNetDetachProtocol,
|
||||
CloudapiComputePauseProtocol,
|
||||
@@ -79,9 +128,12 @@ class CloudapiComputeAPI(
|
||||
CloudapiComputePfwDelProtocol,
|
||||
CloudapiComputePfwListProtocol,
|
||||
CloudapiComputePinToStackProtocol,
|
||||
CloudapiComputePowerCycleProtocol,
|
||||
CloudapiComputeRebootProtocol,
|
||||
CloudapiComputeRedeployProtocol,
|
||||
CloudapiComputeResetProtocol,
|
||||
CloudapiComputeResizeProtocol,
|
||||
CloudapiComputeRestoreProtocol,
|
||||
CloudapiComputeResumeProtocol,
|
||||
CloudapiComputeSetCustomFieldsProtocol,
|
||||
CloudapiComputeSnapshotCreateProtocol,
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeAbortSharedSnapshotMergeResultBool(
|
||||
_base.BaseAPIResultBool,
|
||||
):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeAbortSharedSnapshotMergeProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
):
|
||||
def abort_shared_snapshot_merge(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
label: str,
|
||||
) -> CloudapiComputeAbortSharedSnapshotMergeResultBool:
|
||||
...
|
||||
15
src/dynamix_sdk/api/cloudapi/compute/attach_gpu.py
Normal file
15
src/dynamix_sdk/api/cloudapi/compute/attach_gpu.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeAttachGpuResultInt(_base.BaseAPIResultInt):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeAttachGpuProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def attach_gpu(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
vgpu_id: int,
|
||||
) -> CloudapiComputeAttachGpuResultInt:
|
||||
...
|
||||
17
src/dynamix_sdk/api/cloudapi/compute/attach_pci_device.py
Normal file
17
src/dynamix_sdk/api/cloudapi/compute/attach_pci_device.py
Normal file
@@ -0,0 +1,17 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeAttachPciDeviceResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeAttachPciDeviceProtocol(
|
||||
_base.BasePostAPIFunctionProtocol,
|
||||
):
|
||||
def attach_pci_device(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
pci_device_id: int,
|
||||
) -> CloudapiComputeAttachPciDeviceResultBool:
|
||||
...
|
||||
15
src/dynamix_sdk/api/cloudapi/compute/boot_disk_set.py
Normal file
15
src/dynamix_sdk/api/cloudapi/compute/boot_disk_set.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeBootDiskSetResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeBootDiskSetProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def boot_disk_set(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
disk_id: int,
|
||||
) -> CloudapiComputeBootDiskSetResultBool:
|
||||
...
|
||||
19
src/dynamix_sdk/api/cloudapi/compute/change_link_state.py
Normal file
19
src/dynamix_sdk/api/cloudapi/compute/change_link_state.py
Normal file
@@ -0,0 +1,19 @@
|
||||
import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiComputeChangeLinkStateResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeChangeLinkStateProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
):
|
||||
def change_link_state(
|
||||
self,
|
||||
*,
|
||||
interface: str,
|
||||
state: _nested.LinkState,
|
||||
vm_id: int,
|
||||
) -> CloudapiComputeChangeLinkStateResultBool:
|
||||
...
|
||||
16
src/dynamix_sdk/api/cloudapi/compute/change_mac.py
Normal file
16
src/dynamix_sdk/api/cloudapi/compute/change_mac.py
Normal file
@@ -0,0 +1,16 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeChangeMacResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeChangeMacProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def change_mac(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
current_mac: str,
|
||||
new_mac: str,
|
||||
) -> CloudapiComputeChangeMacResultBool:
|
||||
...
|
||||
18
src/dynamix_sdk/api/cloudapi/compute/change_mtu.py
Normal file
18
src/dynamix_sdk/api/cloudapi/compute/change_mtu.py
Normal file
@@ -0,0 +1,18 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeChangeMtuResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeChangeMtuProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
):
|
||||
def change_mtu(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
interface: str,
|
||||
mtu: int,
|
||||
) -> CloudapiComputeChangeMtuResultBool:
|
||||
...
|
||||
@@ -0,0 +1,19 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeChangeSecurityGroupsResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeChangeSecurityGroupsProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
):
|
||||
def change_security_groups(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
interface: str,
|
||||
security_group_ids: list[int] | None = None,
|
||||
security_group_mode: bool | None = None,
|
||||
) -> CloudapiComputeChangeSecurityGroupsResultBool:
|
||||
...
|
||||
@@ -1,7 +1,7 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeCloneResultInt(_base.BaseAPIResultInt):
|
||||
class CloudapiComputeCloneResultStr(_base.BaseAPIResultStr):
|
||||
pass
|
||||
|
||||
|
||||
@@ -12,7 +12,10 @@ class CloudapiComputeCloneProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
vm_id: int,
|
||||
name: str,
|
||||
force: bool = False,
|
||||
storage_policy_id: int,
|
||||
snapshot_timestamp: int | None = None,
|
||||
snapshot_name: str | None = None,
|
||||
) -> CloudapiComputeCloneResultInt:
|
||||
sep_pool_name: str | None = None,
|
||||
sep_id: int | None = None,
|
||||
) -> CloudapiComputeCloneResultStr:
|
||||
...
|
||||
|
||||
18
src/dynamix_sdk/api/cloudapi/compute/clone_abort.py
Normal file
18
src/dynamix_sdk/api/cloudapi/compute/clone_abort.py
Normal file
@@ -0,0 +1,18 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeCloneAbortResultBool(
|
||||
_base.BaseAPIResultBool,
|
||||
):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeCloneAbortProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
):
|
||||
def clone_abort(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
) -> CloudapiComputeCloneAbortResultBool:
|
||||
...
|
||||
15
src/dynamix_sdk/api/cloudapi/compute/create_template.py
Normal file
15
src/dynamix_sdk/api/cloudapi/compute/create_template.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeCreateTemplateResultStr(_base.BaseAPIResultStr):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeCreateTemplateProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def create_template(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
name: str
|
||||
) -> CloudapiComputeCreateTemplateResultStr:
|
||||
...
|
||||
15
src/dynamix_sdk/api/cloudapi/compute/detach_gpu.py
Normal file
15
src/dynamix_sdk/api/cloudapi/compute/detach_gpu.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeDetachGpuResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeDetachGpuProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def detach_gpu(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
vgpu_id: int | None = None,
|
||||
) -> CloudapiComputeDetachGpuResultBool:
|
||||
...
|
||||
17
src/dynamix_sdk/api/cloudapi/compute/detach_pci_device.py
Normal file
17
src/dynamix_sdk/api/cloudapi/compute/detach_pci_device.py
Normal file
@@ -0,0 +1,17 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeDetachPciDeviceResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeDetachPciDeviceProtocol(
|
||||
_base.BasePostAPIFunctionProtocol,
|
||||
):
|
||||
def detach_pci_device(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
pci_device_id: int,
|
||||
) -> CloudapiComputeDetachPciDeviceResultBool:
|
||||
...
|
||||
16
src/dynamix_sdk/api/cloudapi/compute/disable.py
Normal file
16
src/dynamix_sdk/api/cloudapi/compute/disable.py
Normal file
@@ -0,0 +1,16 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeDisableResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeDisableProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
):
|
||||
def disable(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
) -> CloudapiComputeDisableResultBool:
|
||||
...
|
||||
@@ -13,11 +13,13 @@ class CloudapiComputeDiskAddProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
vm_id: int,
|
||||
name: str,
|
||||
disk_size_gb: int,
|
||||
storage_policy_id: int,
|
||||
disk_type: _nested.DiskType = _nested.DiskType.D,
|
||||
sep_id: int | None = None,
|
||||
sep_pool_name: str | None = None,
|
||||
description: str | None = None,
|
||||
image_id: int | None = None,
|
||||
|
||||
pci_slot_num_hex: str | None = None,
|
||||
bus_num_hex: str | None = None,
|
||||
) -> CloudapiComputeDiskAddResultInt:
|
||||
...
|
||||
|
||||
@@ -13,5 +13,7 @@ class CloudapiComputeDiskAttachProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
vm_id: int,
|
||||
disk_id: int,
|
||||
disk_type: _nested.DiskType = _nested.DiskType.D,
|
||||
pci_slot_num_hex: str | None = None,
|
||||
bus_num_hex: str | None = None,
|
||||
) -> CloudapiComputeDiskAttachResultBool:
|
||||
...
|
||||
|
||||
19
src/dynamix_sdk/api/cloudapi/compute/disk_migrate.py
Normal file
19
src/dynamix_sdk/api/cloudapi/compute/disk_migrate.py
Normal file
@@ -0,0 +1,19 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeDiskMigrateResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeDiskMigrateProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
):
|
||||
def disk_migrate(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
disk_id: int,
|
||||
target_disk_id: int,
|
||||
mode: int = 1,
|
||||
) -> CloudapiComputeDiskMigrateResultBool:
|
||||
...
|
||||
@@ -1,16 +0,0 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeDiskResizeResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeDiskResizeProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def disk_resize(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
disk_id: int,
|
||||
disk_size_gb: int,
|
||||
) -> CloudapiComputeDiskResizeResultBool:
|
||||
...
|
||||
@@ -0,0 +1,20 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeDiskSwitchToReplicationResultBool(
|
||||
_base.BaseAPIResultBool,
|
||||
):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeDiskSwitchToReplicationProtocol(
|
||||
_base.BasePostAPIFunctionProtocol,
|
||||
):
|
||||
def disk_switch_to_replication(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
disk_id: int,
|
||||
stop_replication: bool = False,
|
||||
) -> CloudapiComputeDiskSwitchToReplicationResultBool:
|
||||
...
|
||||
14
src/dynamix_sdk/api/cloudapi/compute/enable.py
Normal file
14
src/dynamix_sdk/api/cloudapi/compute/enable.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeEnableResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeEnableProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def enable(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
) -> CloudapiComputeEnableResultBool:
|
||||
...
|
||||
@@ -1,5 +1,3 @@
|
||||
import typing as _typing
|
||||
|
||||
import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
@@ -15,6 +13,8 @@ class CloudapiComputeGetResultModel(_base.BaseAPIResultModel):
|
||||
arch: str
|
||||
auto_start: bool
|
||||
boot_disk_size_gb: int
|
||||
boot_image_id: int
|
||||
boot_loader_metaiso: _nested.BootLoaderMetaisoAPIResultNM | None
|
||||
boot_loader_type: _nested.BootLoaderType
|
||||
boot_mode: _nested.BootMode
|
||||
boot_order: list[_nested.BootDevice]
|
||||
@@ -39,14 +39,14 @@ class CloudapiComputeGetResultModel(_base.BaseAPIResultModel):
|
||||
hot_resize: bool
|
||||
hp_backed: bool
|
||||
id: int
|
||||
image_id: int
|
||||
image_id: None | int
|
||||
image_name: None | str
|
||||
interfaces: list[_nested.InterfaceForComputeGetAPIResultNM]
|
||||
live_migration_job_id: int
|
||||
lock_status: _nested.LockStatus
|
||||
manager_id: int
|
||||
manager_type: str
|
||||
migration_job: int
|
||||
migration_job_id: int
|
||||
milestones: int
|
||||
name: str
|
||||
need_reboot: bool
|
||||
@@ -54,6 +54,7 @@ class CloudapiComputeGetResultModel(_base.BaseAPIResultModel):
|
||||
numa_affinity: _nested.NumaAffinity
|
||||
numa_node_id: int
|
||||
os_users: list[_nested.OSUserAPIResultNM]
|
||||
os_version: str
|
||||
pinned_to_stack: bool
|
||||
preferred_cpu_cores: list[int]
|
||||
ram_size_mb: int
|
||||
@@ -63,17 +64,15 @@ class CloudapiComputeGetResultModel(_base.BaseAPIResultModel):
|
||||
rg_id: int
|
||||
rg_name: str
|
||||
snapshot_sets: list[_nested.SnapshotSetAPIResultNM]
|
||||
stateless_sep_id: int
|
||||
stateless_sep_type: str
|
||||
stateless_sep_id: int | None = None
|
||||
stateless_sep_type: str | None = None
|
||||
status: _nested.VMStatus
|
||||
tags: dict
|
||||
tech_status: _nested.VMTechStatus
|
||||
updated_by: str
|
||||
updated_timestamp: int
|
||||
user_managed: bool
|
||||
vgpus: list[dict[str, _typing.Any]]
|
||||
virtual_image_id: int
|
||||
virtual_image_name: None | str
|
||||
vgpus: list[_nested.VGPUAPIResultNM]
|
||||
vm_ci_id: int
|
||||
vnc_password: str
|
||||
guest_agent: _nested.GuestAgentAPIResultNM
|
||||
|
||||
14
src/dynamix_sdk/api/cloudapi/compute/get_console_url.py
Normal file
14
src/dynamix_sdk/api/cloudapi/compute/get_console_url.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeGetConsoleUrlResultStr(_base.BaseAPIResultStr):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeGetConsoleUrlProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def get_console_url(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
) -> CloudapiComputeGetConsoleUrlResultStr:
|
||||
...
|
||||
16
src/dynamix_sdk/api/cloudapi/compute/guest_agent_disable.py
Normal file
16
src/dynamix_sdk/api/cloudapi/compute/guest_agent_disable.py
Normal file
@@ -0,0 +1,16 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeGuestAgentDisableResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeGuestAgentDisableProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
):
|
||||
def guest_agent_disable(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
) -> CloudapiComputeGuestAgentDisableResultBool:
|
||||
...
|
||||
16
src/dynamix_sdk/api/cloudapi/compute/guest_agent_enable.py
Normal file
16
src/dynamix_sdk/api/cloudapi/compute/guest_agent_enable.py
Normal file
@@ -0,0 +1,16 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeGuestAgentEnableResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeGuestAgentEnableProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
):
|
||||
def guest_agent_enable(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
) -> CloudapiComputeGuestAgentEnableResultBool:
|
||||
...
|
||||
21
src/dynamix_sdk/api/cloudapi/compute/guest_agent_execute.py
Normal file
21
src/dynamix_sdk/api/cloudapi/compute/guest_agent_execute.py
Normal file
@@ -0,0 +1,21 @@
|
||||
import typing as _typing
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeGuestAgentExecuteResultModel(
|
||||
_base.BaseAPIResultModel,
|
||||
):
|
||||
exec_result: dict
|
||||
|
||||
|
||||
class CloudapiComputeGuestAgentExecuteProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
):
|
||||
def guest_agent_execute(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
cmd: str,
|
||||
args: dict[str, _typing.Any],
|
||||
) -> CloudapiComputeGuestAgentExecuteResultModel:
|
||||
...
|
||||
@@ -0,0 +1,18 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeGuestAgentFeatureUpdateResultBool(
|
||||
_base.BaseAPIResultBool,
|
||||
):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeGuestAgentFeatureUpdateProtocol(
|
||||
_base.BasePostAPIFunctionProtocol
|
||||
):
|
||||
def guest_agent_feature_update(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
) -> CloudapiComputeGuestAgentFeatureUpdateResultBool:
|
||||
...
|
||||
@@ -18,6 +18,7 @@ class CloudapiComputeListProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
include_deleted: bool = False,
|
||||
ip_addr: str | None = None,
|
||||
name: str | None = None,
|
||||
zone_id: int | None = None,
|
||||
page_number: int | None = None,
|
||||
page_size: int | None = None,
|
||||
rg_id: int | None = None,
|
||||
|
||||
27
src/dynamix_sdk/api/cloudapi/compute/list_deleted.py
Normal file
27
src/dynamix_sdk/api/cloudapi/compute/list_deleted.py
Normal file
@@ -0,0 +1,27 @@
|
||||
import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiComputeListDeletedResultModel(_base.BaseAPIResultModel):
|
||||
data: list[_nested.VMAPIResultNM]
|
||||
entry_count: int
|
||||
|
||||
|
||||
class CloudapiComputeListDeletedProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def list_deleted(
|
||||
self,
|
||||
*,
|
||||
id: int | None = None,
|
||||
name: str | None = None,
|
||||
account_id: int | None = None,
|
||||
rg_name: str | None = None,
|
||||
rg_id: int | None = None,
|
||||
tech_status: _nested.VMTechStatus | None = None,
|
||||
ip_addr: str | None = None,
|
||||
ext_net_name: str | None = None,
|
||||
ext_net_id: int | None = None,
|
||||
page_number: int | None = None,
|
||||
page_size: int | None = None,
|
||||
sort_by: str | None = None,
|
||||
) -> CloudapiComputeListDeletedResultModel:
|
||||
...
|
||||
15
src/dynamix_sdk/api/cloudapi/compute/migrate_to_zone.py
Normal file
15
src/dynamix_sdk/api/cloudapi/compute/migrate_to_zone.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeMigrateToZoneResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeMigrateToZoneProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def migrate_to_zone(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
zone_id: int,
|
||||
) -> CloudapiComputeMigrateToZoneResultBool:
|
||||
...
|
||||
18
src/dynamix_sdk/api/cloudapi/compute/move_to_rg.py
Normal file
18
src/dynamix_sdk/api/cloudapi/compute/move_to_rg.py
Normal file
@@ -0,0 +1,18 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeMoveToRgResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeMoveToRgProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def move_to_rg(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
rg_id: int,
|
||||
new_vm_name: str | None = None,
|
||||
auto_start: bool = False,
|
||||
force_stop: bool = False,
|
||||
) -> CloudapiComputeMoveToRgResultBool:
|
||||
...
|
||||
@@ -16,6 +16,9 @@ class CloudapiComputeNetAttachProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
vm_id: int,
|
||||
net_type: _nested.NetType,
|
||||
net_id: int,
|
||||
security_group_ids: None | list[int] = None,
|
||||
security_group_mode: bool = False,
|
||||
enabled: bool = True,
|
||||
ip_addr: None | str = None,
|
||||
mtu: None | int = None,
|
||||
mac: None | str = None,
|
||||
|
||||
14
src/dynamix_sdk/api/cloudapi/compute/power_cycle.py
Normal file
14
src/dynamix_sdk/api/cloudapi/compute/power_cycle.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputePowerCycleResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputePowerCycleProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def power_cycle(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
) -> CloudapiComputePowerCycleResultBool:
|
||||
...
|
||||
@@ -11,6 +11,7 @@ class CloudapiComputeRedeployProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
storage_policy_id: int,
|
||||
start: bool = False,
|
||||
boot_disk_size_gb: int | None = None,
|
||||
data_disks_change_mode: _nested.DataDisksChangeMode = (
|
||||
@@ -18,5 +19,6 @@ class CloudapiComputeRedeployProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
),
|
||||
force_stop: bool = False,
|
||||
image_id: int | None = None,
|
||||
os_version: str | None = None,
|
||||
) -> CloudapiComputeRedeployResultBool:
|
||||
...
|
||||
|
||||
14
src/dynamix_sdk/api/cloudapi/compute/reset.py
Normal file
14
src/dynamix_sdk/api/cloudapi/compute/reset.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeResetResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeResetProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def reset(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
) -> CloudapiComputeResetResultBool:
|
||||
...
|
||||
14
src/dynamix_sdk/api/cloudapi/compute/restore.py
Normal file
14
src/dynamix_sdk/api/cloudapi/compute/restore.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiComputeRestoreResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiComputeRestoreProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def restore(
|
||||
self,
|
||||
*,
|
||||
vm_id: int,
|
||||
) -> CloudapiComputeRestoreResultBool:
|
||||
...
|
||||
@@ -23,5 +23,6 @@ class CloudapiComputeUpdateProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
boot_mode: _nested.BootMode | None = None,
|
||||
network_interface_naming: _nested.NetIfaceNamingTemplate | None = None,
|
||||
hot_resize: bool | None = None,
|
||||
os_version: str | None = None,
|
||||
) -> CloudapiComputeUpdateResultBool:
|
||||
...
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import dynamix_sdk.base as _base
|
||||
from .change_disk_storage_policy import *
|
||||
from .create import *
|
||||
from .delete import *
|
||||
from .delete_disks import *
|
||||
@@ -19,6 +20,7 @@ from .unshare import *
|
||||
|
||||
class CloudapiDisksAPI(
|
||||
_base.BaseAPI,
|
||||
CloudapiDisksChangeDiskStoragePolicyProtocol,
|
||||
CloudapiDisksCreateProtocol,
|
||||
CloudapiDisksDeleteDisksProtocol,
|
||||
CloudapiDisksDeleteProtocol,
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiDisksChangeDiskStoragePolicyResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiDisksChangeDiskStoragePolicyProtocol(
|
||||
_base.BasePostAPIFunctionProtocol,
|
||||
):
|
||||
def change_disk_storage_policy(
|
||||
self,
|
||||
*,
|
||||
disk_id: int,
|
||||
storage_policy_id: int,
|
||||
) -> CloudapiDisksChangeDiskStoragePolicyResultBool:
|
||||
...
|
||||
@@ -12,7 +12,7 @@ class CloudapiDisksCreateProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
account_id: int,
|
||||
name: str,
|
||||
size_gb: int,
|
||||
iops: int = 2000,
|
||||
storage_policy_id: int,
|
||||
description: str | None = None,
|
||||
sep_id: int | None = None,
|
||||
sep_pool_name: str | None = None,
|
||||
|
||||
@@ -33,12 +33,13 @@ class CloudapiDisksGetResultModel(_base.BaseAPIResultModel):
|
||||
sep_type: _nested.SEPType
|
||||
shared: bool
|
||||
size_available: float
|
||||
size_available: float
|
||||
size_max_gb: int
|
||||
size_used: float
|
||||
snapshots: list[_nested.SnapshotAPIResultNM]
|
||||
status: _nested.DiskStatus
|
||||
storage_policy_id: int
|
||||
tech_status: _nested.DiskTechStatus
|
||||
to_clean: bool
|
||||
type: _nested.DiskType
|
||||
updated_by: str
|
||||
vm_id: int | None
|
||||
|
||||
@@ -23,6 +23,7 @@ class CloudapiDisksListProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
shared: bool | None = None,
|
||||
sort_by: str | None = None,
|
||||
status: _nested.DiskStatus | None = None,
|
||||
storage_policy_id: int | None = None,
|
||||
type: _nested.DiskType | None = None,
|
||||
) -> CloudapiDisksListResultModel:
|
||||
...
|
||||
|
||||
@@ -19,6 +19,7 @@ class CloudapiDisksListUnattachedProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
page_size: int | None = None,
|
||||
sep_id: int | None = None,
|
||||
sep_pool_name: str | None = None,
|
||||
storage_policy_id: int | None = None,
|
||||
sort_by: str | None = None,
|
||||
status: _nested.DiskStatus | None = None,
|
||||
type: _nested.DiskType | None = None,
|
||||
|
||||
@@ -20,7 +20,7 @@ class CloudapiExtnetGetResultModel(_base.BaseAPIResultModel):
|
||||
mtu: int
|
||||
name: str
|
||||
net_ip: str
|
||||
net_mask: int
|
||||
net_prefix: int
|
||||
network_ids: _nested.NetworkIDsAPIResultNM
|
||||
ntp_servers: list[str]
|
||||
ovs_bridge: str
|
||||
@@ -29,6 +29,7 @@ class CloudapiExtnetGetResultModel(_base.BaseAPIResultModel):
|
||||
primary_vnfdev_id: int
|
||||
redundant: bool
|
||||
secondary_vnfdev_id: int
|
||||
security_group_mode: bool
|
||||
shared_with: list[int]
|
||||
status: _nested.ExtNetStatus
|
||||
vlan_id: int
|
||||
|
||||
@@ -16,6 +16,7 @@ class CloudapiExtnetListProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
name: str | None = None,
|
||||
net_ip: str | None = None,
|
||||
ovs_bridge: str | None = None,
|
||||
zone_id: int | None = None,
|
||||
page_number: int | None = None,
|
||||
page_size: int | None = None,
|
||||
sort_by: str | None = None,
|
||||
|
||||
@@ -7,7 +7,7 @@ class CloudapiFlipgroupCreateResultModel(_base.BaseAPIResultModel):
|
||||
id: int
|
||||
ip_addr: str
|
||||
name: str
|
||||
net_mask: int
|
||||
net_prefix: int
|
||||
|
||||
|
||||
class CloudapiFlipgroupCreateProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import dynamix_sdk.base as _base
|
||||
from .change_storage_policy import *
|
||||
from .create import *
|
||||
from .create_virtual import *
|
||||
from .delete import *
|
||||
@@ -10,6 +11,7 @@ from .rename import *
|
||||
|
||||
class CloudapiImageAPI(
|
||||
_base.BaseAPI,
|
||||
CloudapiImageChangeStoragePolicyProtocol,
|
||||
CloudapiImageCreateProtocol,
|
||||
CloudapiImageCreateVirtualProtocol,
|
||||
CloudapiImageDeleteProtocol,
|
||||
|
||||
17
src/dynamix_sdk/api/cloudapi/image/change_storage_policy.py
Normal file
17
src/dynamix_sdk/api/cloudapi/image/change_storage_policy.py
Normal file
@@ -0,0 +1,17 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiImageChangeStoragePolicyResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiImageChangeStoragePolicyProtocol(
|
||||
_base.BasePostAPIFunctionProtocol,
|
||||
):
|
||||
def change_storage_policy(
|
||||
self,
|
||||
*,
|
||||
image_id: int,
|
||||
storage_policy_id: int,
|
||||
) -> CloudapiImageChangeStoragePolicyResultBool:
|
||||
...
|
||||
@@ -12,10 +12,10 @@ class CloudapiImageCreateProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
*,
|
||||
account_id: int,
|
||||
boot_mode: _nested.BootMode,
|
||||
drivers: list[_nested.Driver],
|
||||
boot_loader_type: _nested.BootLoaderType,
|
||||
name: str,
|
||||
download_url: str,
|
||||
storage_policy_id: int,
|
||||
hot_resize: bool = False,
|
||||
network_interface_naming: _nested.NetIfaceNamingTemplate = (
|
||||
_nested.NetIfaceNamingTemplate.ens
|
||||
|
||||
@@ -11,5 +11,6 @@ class CloudapiImageCreateVirtualProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
*,
|
||||
name: str,
|
||||
target_image_id: int,
|
||||
account_id: int | None = None,
|
||||
) -> CloudapiImageCreateVirtualResultInt:
|
||||
...
|
||||
|
||||
@@ -36,11 +36,13 @@ class CloudapiImageGetResultModel(_base.BaseAPIResultModel):
|
||||
rescue_cd: bool
|
||||
sep_id: int
|
||||
sep_pool_name: str
|
||||
storage_policy_id: int
|
||||
shared_with: list[int]
|
||||
size_gb: int
|
||||
snapshot_id: str = ''
|
||||
status: _nested.ImageStatus
|
||||
tech_status: _nested.ImageTechStatus
|
||||
to_clean: bool
|
||||
type: _nested.ImageType
|
||||
unc_path: str
|
||||
version: str
|
||||
|
||||
@@ -26,5 +26,6 @@ class CloudapiImageListProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
sort_by: str | None = None,
|
||||
status: _nested.ImageStatus | None = None,
|
||||
type: _nested.ImageType | None = None,
|
||||
storage_policy_id: int | None = None,
|
||||
) -> CloudapiImageListResultModel:
|
||||
...
|
||||
|
||||
@@ -13,13 +13,11 @@ class CloudapiK8ciListProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
*,
|
||||
id: int | None = None,
|
||||
include_disabled: bool = False,
|
||||
master_node_driver: _nested.Driver | None = None,
|
||||
name: str | None = None,
|
||||
network_plugin: _nested.K8sNetworkPlugin | None = None,
|
||||
page_number: int | None = None,
|
||||
page_size: int | None = None,
|
||||
sort_by: str | None = None,
|
||||
status: _nested.K8CIStatus | None = None,
|
||||
worker_node_driver: _nested.Driver | None = None,
|
||||
) -> CloudapiK8ciListResultModel:
|
||||
...
|
||||
|
||||
@@ -12,12 +12,10 @@ class CloudapiK8ciListDeletedProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
self,
|
||||
*,
|
||||
id: None | int = None,
|
||||
master_node_driver: _nested.Driver | None = None,
|
||||
name: str | None = None,
|
||||
network_plugin: _nested.K8sNetworkPlugin | None = None,
|
||||
page_number: int | None = None,
|
||||
page_size: int | None = None,
|
||||
sort_by: str | None = None,
|
||||
worker_node_driver: _nested.Driver | None = None,
|
||||
) -> CloudapiK8ciListDeletedResultModel:
|
||||
...
|
||||
|
||||
@@ -1,11 +1,24 @@
|
||||
import dynamix_sdk.base as _base
|
||||
from .create import *
|
||||
from .delete import *
|
||||
from .delete_master_from_group import *
|
||||
from .delete_worker_from_group import *
|
||||
from .disable import *
|
||||
from .enable import *
|
||||
from .get import *
|
||||
from .get_config import *
|
||||
from .get_node_annotations import *
|
||||
from .get_node_labels import *
|
||||
from .get_node_taints import *
|
||||
from .list import *
|
||||
from .list_deleted import *
|
||||
from .migrate_to_zone import *
|
||||
from .restore import *
|
||||
from .start import *
|
||||
from .stop import *
|
||||
from .update import *
|
||||
from .update_worker_nodes_meta_data import *
|
||||
from .worker_add import *
|
||||
from .worker_reset import *
|
||||
from .worker_restart import *
|
||||
from .workers_group_add import *
|
||||
@@ -16,12 +29,25 @@ from .workers_group_get_by_name import *
|
||||
class CloudapiK8sAPI(
|
||||
_base.BaseAPI,
|
||||
CloudapiK8sCreateProtocol,
|
||||
CloudapiK8sDeleteMasterFromGroupProtocol,
|
||||
CloudapiK8sDeleteProtocol,
|
||||
CloudapiK8sDeleteWorkerFromGroupProtocol,
|
||||
CloudapiK8sDisableProtocol,
|
||||
CloudapiK8sEnableProtocol,
|
||||
CloudapiK8sGetConfigProtocol,
|
||||
CloudapiK8sGetNodeAnnotationsProtocol,
|
||||
CloudapiK8sGetNodeLabelsProtocol,
|
||||
CloudapiK8sGetNodeTaintsProtocol,
|
||||
CloudapiK8sGetProtocol,
|
||||
CloudapiK8sListDeletedProtocol,
|
||||
CloudapiK8sListProtocol,
|
||||
CloudapiK8sMigrateToZoneProtocol,
|
||||
CloudapiK8sRestoreProtocol,
|
||||
CloudapiK8sStartProtocol,
|
||||
CloudapiK8sStopProtocol,
|
||||
CloudapiK8sUpdateProtocol,
|
||||
CloudapiK8sUpdateWorkerNodesMetaDataProtocol,
|
||||
CloudapiK8sWorkerAddProtocol,
|
||||
CloudapiK8sWorkerResetProtocol,
|
||||
CloudapiK8sWorkerRestartProtocol,
|
||||
CloudapiK8sWorkersGroupAddProtocol,
|
||||
|
||||
@@ -15,6 +15,7 @@ class CloudapiK8sCreateProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
k8ci_id: int,
|
||||
worker_group_name: str,
|
||||
network_plugin: _nested.K8sNetworkPlugin,
|
||||
storage_policy_id: int,
|
||||
master_node_sep_id: int | None = None,
|
||||
master_node_sep_pool_name: str | None = None,
|
||||
worker_node_sep_id: int | None = None,
|
||||
@@ -44,7 +45,7 @@ class CloudapiK8sCreateProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
ci_user_data: str | None = None,
|
||||
additional_sans: list[str] | None = None,
|
||||
chipset: _nested.Chipset = _nested.Chipset.i440fx,
|
||||
lb_sysctl_params: list[dict] | None = None,
|
||||
lb_sysctl_params: list[dict[str, str]] | None = None,
|
||||
zone_id: int | None = None,
|
||||
) -> CloudapiK8sCreateResultStr:
|
||||
...
|
||||
|
||||
18
src/dynamix_sdk/api/cloudapi/k8s/delete_master_from_group.py
Normal file
18
src/dynamix_sdk/api/cloudapi/k8s/delete_master_from_group.py
Normal file
@@ -0,0 +1,18 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiK8sDeleteMasterFromGroupResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiK8sDeleteMasterFromGroupProtocol(
|
||||
_base.BasePostAPIFunctionProtocol,
|
||||
):
|
||||
def delete_master_from_group(
|
||||
self,
|
||||
*,
|
||||
k8s_id: int,
|
||||
master_group_id: int,
|
||||
master_node_ids: list[int],
|
||||
) -> CloudapiK8sDeleteMasterFromGroupResultBool:
|
||||
...
|
||||
18
src/dynamix_sdk/api/cloudapi/k8s/delete_worker_from_group.py
Normal file
18
src/dynamix_sdk/api/cloudapi/k8s/delete_worker_from_group.py
Normal file
@@ -0,0 +1,18 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiK8sDeleteWorkerFromGroupResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiK8sDeleteWorkerFromGroupProtocol(
|
||||
_base.BasePostAPIFunctionProtocol,
|
||||
):
|
||||
def delete_worker_from_group(
|
||||
self,
|
||||
*,
|
||||
k8s_id: int,
|
||||
worker_group_id: int,
|
||||
worker_node_id: int,
|
||||
) -> CloudapiK8sDeleteWorkerFromGroupResultBool:
|
||||
...
|
||||
14
src/dynamix_sdk/api/cloudapi/k8s/disable.py
Normal file
14
src/dynamix_sdk/api/cloudapi/k8s/disable.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiK8sDisableResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiK8sDisableProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def disable(
|
||||
self,
|
||||
*,
|
||||
k8s_id: int,
|
||||
) -> CloudapiK8sDisableResultBool:
|
||||
...
|
||||
14
src/dynamix_sdk/api/cloudapi/k8s/enable.py
Normal file
14
src/dynamix_sdk/api/cloudapi/k8s/enable.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiK8sEnableResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiK8sEnableProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def enable(
|
||||
self,
|
||||
*,
|
||||
k8s_id: int,
|
||||
) -> CloudapiK8sEnableResultBool:
|
||||
...
|
||||
15
src/dynamix_sdk/api/cloudapi/k8s/get_node_annotations.py
Normal file
15
src/dynamix_sdk/api/cloudapi/k8s/get_node_annotations.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiK8sGetNodeAnnotationsResultStr(_base.BaseAPIResultStr):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiK8sGetNodeAnnotationsProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def get_node_annotations(
|
||||
self,
|
||||
*,
|
||||
k8s_id: int,
|
||||
node_id: int,
|
||||
) -> CloudapiK8sGetNodeAnnotationsResultStr:
|
||||
...
|
||||
15
src/dynamix_sdk/api/cloudapi/k8s/get_node_labels.py
Normal file
15
src/dynamix_sdk/api/cloudapi/k8s/get_node_labels.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiK8sGetNodeLabelsResultStr(_base.BaseAPIResultStr):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiK8sGetNodeLabelsProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def get_node_labels(
|
||||
self,
|
||||
*,
|
||||
k8s_id: int,
|
||||
node_id: int,
|
||||
) -> CloudapiK8sGetNodeLabelsResultStr:
|
||||
...
|
||||
15
src/dynamix_sdk/api/cloudapi/k8s/get_node_taints.py
Normal file
15
src/dynamix_sdk/api/cloudapi/k8s/get_node_taints.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiK8sGetNodeTaintsResultStr(_base.BaseAPIResultStr):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiK8sGetNodeTaintsProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def get_node_taints(
|
||||
self,
|
||||
*,
|
||||
k8s_id: int,
|
||||
node_id: int,
|
||||
) -> CloudapiK8sGetNodeTaintsResultStr:
|
||||
...
|
||||
@@ -3,7 +3,7 @@ import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiK8sListResultModel(_base.BaseAPIResultModel):
|
||||
data: list[_nested.K8sListAPIResultNM]
|
||||
data: list[_nested.K8sAPIResultNM]
|
||||
entry_count: int
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@ class CloudapiK8sListProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
rg_id: int | None = None,
|
||||
sort_by: str | None = None,
|
||||
status: _nested.K8sStatus | None = None,
|
||||
zone_id: int | None = None,
|
||||
tech_status: _nested.K8sTechStatus | None = None,
|
||||
) -> CloudapiK8sListResultModel:
|
||||
...
|
||||
|
||||
@@ -3,7 +3,7 @@ import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiK8sListDeletedResultModel(_base.BaseAPIResultModel):
|
||||
data: list[_nested.K8sListDeletedAPIResultNM]
|
||||
data: list[_nested.K8sAPIResultNM]
|
||||
entry_count: int
|
||||
|
||||
|
||||
|
||||
15
src/dynamix_sdk/api/cloudapi/k8s/migrate_to_zone.py
Normal file
15
src/dynamix_sdk/api/cloudapi/k8s/migrate_to_zone.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiK8sMigrateToZoneResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiK8sMigrateToZoneProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def migrate_to_zone(
|
||||
self,
|
||||
*,
|
||||
k8s_id: int,
|
||||
zone_id: int,
|
||||
) -> CloudapiK8sMigrateToZoneResultBool:
|
||||
...
|
||||
14
src/dynamix_sdk/api/cloudapi/k8s/start.py
Normal file
14
src/dynamix_sdk/api/cloudapi/k8s/start.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiK8sStartResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiK8sStartProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def start(
|
||||
self,
|
||||
*,
|
||||
k8s_id: int,
|
||||
) -> CloudapiK8sStartResultBool:
|
||||
...
|
||||
14
src/dynamix_sdk/api/cloudapi/k8s/stop.py
Normal file
14
src/dynamix_sdk/api/cloudapi/k8s/stop.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiK8sStopResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiK8sStopProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def stop(
|
||||
self,
|
||||
*,
|
||||
k8s_id: int,
|
||||
) -> CloudapiK8sStopResultBool:
|
||||
...
|
||||
16
src/dynamix_sdk/api/cloudapi/k8s/update.py
Normal file
16
src/dynamix_sdk/api/cloudapi/k8s/update.py
Normal file
@@ -0,0 +1,16 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiK8sUpdateResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiK8sUpdateProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def update(
|
||||
self,
|
||||
*,
|
||||
k8s_id: int,
|
||||
description: str | None = None,
|
||||
name: str | None = None,
|
||||
) -> CloudapiK8sUpdateResultBool:
|
||||
...
|
||||
@@ -0,0 +1,18 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiK8sUpdateWorkerNodesMetaDataResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiK8sUpdateWorkerNodesMetaDataProtocol(
|
||||
_base.BasePostAPIFunctionProtocol,
|
||||
):
|
||||
def update_worker_nodes_meta_data(
|
||||
self,
|
||||
*,
|
||||
k8s_id: int,
|
||||
worker_group_id: int,
|
||||
ci_user_data: str,
|
||||
) -> CloudapiK8sUpdateWorkerNodesMetaDataResultBool:
|
||||
...
|
||||
18
src/dynamix_sdk/api/cloudapi/k8s/worker_add.py
Normal file
18
src/dynamix_sdk/api/cloudapi/k8s/worker_add.py
Normal file
@@ -0,0 +1,18 @@
|
||||
import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiK8sWorkerAddResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiK8sWorkerAddProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def worker_add(
|
||||
self,
|
||||
*,
|
||||
k8s_id: int,
|
||||
worker_group_id: int,
|
||||
node_count: int = 1,
|
||||
chipset: _nested.Chipset = _nested.Chipset.i440fx,
|
||||
) -> CloudapiK8sWorkerAddResultBool:
|
||||
...
|
||||
@@ -12,6 +12,7 @@ class CloudapiK8sWorkersGroupAddProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
*,
|
||||
k8s_id: int,
|
||||
name: str,
|
||||
storage_policy_id: int,
|
||||
sep_id: int | None = None,
|
||||
sep_pool_name: str | None = None,
|
||||
labels: list[str] | None = None,
|
||||
|
||||
@@ -14,6 +14,7 @@ class CloudapiKvmx86CreateProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
name: str,
|
||||
ram_size_mb: int,
|
||||
rg_id: int,
|
||||
storage_policy_id: int,
|
||||
boot_disk_size_gb: None | int = None,
|
||||
chipset: _nested.Chipset = _nested.Chipset.i440fx,
|
||||
ci_user_data: None | dict = None,
|
||||
@@ -21,7 +22,6 @@ class CloudapiKvmx86CreateProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
custom_fields: None | str = None,
|
||||
data_disks: None | list[_nested.DiskAPIParamsNM] = None,
|
||||
description: None | str = None,
|
||||
driver: _nested.Driver = _nested.Driver.KVM_X86,
|
||||
hp_backed: bool = False,
|
||||
image_id: None | int = None,
|
||||
interfaces: None | list[_nested.InterfaceAPIParamsNM] = None,
|
||||
@@ -34,5 +34,6 @@ class CloudapiKvmx86CreateProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
system_name: None | str = None,
|
||||
without_boot_disk: bool = False,
|
||||
zone_id: None | int = None,
|
||||
os_version: None | str = None,
|
||||
) -> CloudapiKvmx86CreateResultInt:
|
||||
...
|
||||
|
||||
@@ -14,11 +14,11 @@ class CloudapiKvmx86CreateBlankProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
name: str,
|
||||
ram_size_mb: int,
|
||||
rg_id: int,
|
||||
storage_policy_id: int,
|
||||
boot_disk_size_gb: None | int = None,
|
||||
chipset: _nested.Chipset = _nested.Chipset.i440fx,
|
||||
data_disks: None | list[_nested.DiskAPIParamsNM] = None,
|
||||
description: None | str = None,
|
||||
driver: _nested.Driver = _nested.Driver.KVM_X86,
|
||||
interfaces: None | list[_nested.InterfaceAPIParamsNM] = None,
|
||||
preferred_cpu_cores: None | list[int] = None,
|
||||
sep_id: None | int = None,
|
||||
@@ -33,5 +33,6 @@ class CloudapiKvmx86CreateBlankProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
),
|
||||
hot_resize: bool = False,
|
||||
zone_id: None | int = None,
|
||||
os_version: None | str = None,
|
||||
) -> CloudapiKvmx86CreateBlankResultInt:
|
||||
...
|
||||
|
||||
@@ -5,6 +5,7 @@ from .backend_server_add import *
|
||||
from .backend_server_delete import *
|
||||
from .backend_server_update import *
|
||||
from .backend_update import *
|
||||
from .config_reset import *
|
||||
from .create import *
|
||||
from .delete import *
|
||||
from .disable import *
|
||||
@@ -18,6 +19,13 @@ from .get import *
|
||||
from .list import *
|
||||
from .list_deleted import *
|
||||
from .make_highly_available import *
|
||||
from .migrate_to_zone import *
|
||||
from .restart import *
|
||||
from .restore import *
|
||||
from .start import *
|
||||
from .stop import *
|
||||
from .update import *
|
||||
from .update_sysctl_params import *
|
||||
|
||||
|
||||
class CloudapiLbAPI(
|
||||
@@ -28,6 +36,7 @@ class CloudapiLbAPI(
|
||||
CloudapiLbBackendServerDeleteProtocol,
|
||||
CloudapiLbBackendServerUpdateProtocol,
|
||||
CloudapiLbBackendUpdateProtocol,
|
||||
CloudapiLbConfigResetProtocol,
|
||||
CloudapiLbCreateProtocol,
|
||||
CloudapiLbDeleteProtocol,
|
||||
CloudapiLbDisableProtocol,
|
||||
@@ -41,5 +50,12 @@ class CloudapiLbAPI(
|
||||
CloudapiLbListDeletedProtocol,
|
||||
CloudapiLbListProtocol,
|
||||
CloudapiLbMakeHighlyAvailableProtocol,
|
||||
CloudapiLbMigrateToZoneProtocol,
|
||||
CloudapiLbRestartProtocol,
|
||||
CloudapiLbRestoreProtocol,
|
||||
CloudapiLbStartProtocol,
|
||||
CloudapiLbStopProtocol,
|
||||
CloudapiLbUpdateProtocol,
|
||||
CloudapiLbUpdateSysctlParamsProtocol,
|
||||
):
|
||||
pass
|
||||
|
||||
14
src/dynamix_sdk/api/cloudapi/lb/config_reset.py
Normal file
14
src/dynamix_sdk/api/cloudapi/lb/config_reset.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiLbConfigResetResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiLbConfigResetProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def config_reset(
|
||||
self,
|
||||
*,
|
||||
lb_id: int,
|
||||
) -> CloudapiLbConfigResetResultBool:
|
||||
...
|
||||
@@ -16,7 +16,7 @@ class CloudapiLbCreateProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
description: None | str = None,
|
||||
ha_mode: bool = False,
|
||||
start: bool = True,
|
||||
sysctl_params: None | list[str] = None,
|
||||
sysctl_params: None | list[dict[str, str]] = None,
|
||||
zone_id: None | int = None,
|
||||
) -> CloudapiLbCreateResultInt:
|
||||
...
|
||||
|
||||
@@ -20,6 +20,7 @@ class CloudapiLbListProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
page_number: None | int = None,
|
||||
page_size: None | int = None,
|
||||
rg_id: None | int = None,
|
||||
zone_id: None | int = None,
|
||||
sort_by: None | str = None,
|
||||
status: None | _nested.LBStatus = None,
|
||||
tech_status: None | _nested.LBTechStatus = None,
|
||||
|
||||
15
src/dynamix_sdk/api/cloudapi/lb/migrate_to_zone.py
Normal file
15
src/dynamix_sdk/api/cloudapi/lb/migrate_to_zone.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiLbMigrateToZoneResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiLbMigrateToZoneProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def migrate_to_zone(
|
||||
self,
|
||||
*,
|
||||
lb_id: int,
|
||||
zone_id: int,
|
||||
) -> CloudapiLbMigrateToZoneResultBool:
|
||||
...
|
||||
15
src/dynamix_sdk/api/cloudapi/lb/restart.py
Normal file
15
src/dynamix_sdk/api/cloudapi/lb/restart.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiLbRestartResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiLbRestartProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def restart(
|
||||
self,
|
||||
*,
|
||||
lb_id: int,
|
||||
safe: bool = True,
|
||||
) -> CloudapiLbRestartResultBool:
|
||||
...
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user