2025-03-21 17:47:09 +03:00
|
|
|
import dynamix_sdk.base as _base
|
|
|
|
|
import dynamix_sdk.api._nested as _nested
|
|
|
|
|
|
|
|
|
|
|
2026-09-18 16:06:25 +07:00
|
|
|
class CloudapiKvmx86CreateImpl(_base.APIFunctionImpl):
|
|
|
|
|
http_method = _base.HTTPMethod.POST
|
2025-03-21 17:47:09 +03:00
|
|
|
|
2026-09-18 16:06:25 +07:00
|
|
|
def __call__(
|
2025-03-21 17:47:09 +03:00
|
|
|
self,
|
|
|
|
|
*,
|
2025-06-06 08:20:45 +03:00
|
|
|
cpu_count: int,
|
2025-03-21 17:47:09 +03:00
|
|
|
name: str,
|
2025-06-06 08:20:45 +03:00
|
|
|
ram_size_mb: int,
|
2025-03-21 17:47:09 +03:00
|
|
|
rg_id: int,
|
2025-11-25 18:09:46 +03:00
|
|
|
storage_policy_id: int,
|
2025-06-06 08:20:45 +03:00
|
|
|
boot_disk_size_gb: None | int = None,
|
2026-02-11 12:20:55 +03:00
|
|
|
chipset: _nested.Chipset = _nested.Chipset.Q35,
|
2025-03-21 17:47:09 +03:00
|
|
|
ci_user_data: None | dict = None,
|
|
|
|
|
cpu_pin: bool = False,
|
|
|
|
|
custom_fields: None | str = None,
|
|
|
|
|
data_disks: None | list[_nested.DiskAPIParamsNM] = None,
|
|
|
|
|
description: None | str = None,
|
|
|
|
|
hp_backed: bool = False,
|
|
|
|
|
image_id: None | int = None,
|
|
|
|
|
interfaces: None | list[_nested.InterfaceAPIParamsNM] = None,
|
2026-02-11 12:20:55 +03:00
|
|
|
numa_affinity: _nested.NumaAffinity = _nested.NumaAffinity.NONE,
|
2025-03-21 17:47:09 +03:00
|
|
|
preferred_cpu_cores: None | list[int] = None,
|
|
|
|
|
sep_id: None | int = None,
|
|
|
|
|
sep_pool_name: None | str = None,
|
|
|
|
|
start: bool = True,
|
|
|
|
|
without_boot_disk: bool = False,
|
2025-07-21 20:27:59 +07:00
|
|
|
zone_id: None | int = None,
|
2025-11-25 18:09:46 +03:00
|
|
|
os_version: None | str = None,
|
2026-09-18 16:06:25 +07:00
|
|
|
clock_sync_mode: _nested.ClockSyncMode = _nested.ClockSyncMode.DEFAULT,
|
|
|
|
|
cpu_alignment_profile_name: str | None = None,
|
|
|
|
|
) -> int:
|
|
|
|
|
raise NotImplementedError
|