Files
dynamix-python-sdk/src/dynamix_sdk/api/cloudapi/k8s/create.py
T

49 lines
1.8 KiB
Python
Raw Normal View History

2025-07-21 20:27:59 +07:00
import dynamix_sdk.base as _base
import dynamix_sdk.api._nested as _nested
2026-09-18 16:06:25 +07:00
class CloudapiK8sCreateImpl(_base.APIFunctionImpl):
http_method = _base.HTTPMethod.POST
2025-07-21 20:27:59 +07:00
2026-09-18 16:06:25 +07:00
def __call__(
2025-07-21 20:27:59 +07:00
self,
*,
name: str,
rg_id: int,
k8ci_id: int,
worker_group_name: str,
network_plugin: _nested.K8sNetworkPlugin,
2025-11-25 18:09:46 +03:00
storage_policy_id: int,
2025-07-21 20:27:59 +07:00
master_node_sep_id: int | None = None,
master_node_sep_pool_name: str | None = None,
worker_node_sep_id: int | None = None,
worker_node_sep_pool_name: str | None = None,
labels: list[str] | None = None,
taints: list[str] | None = None,
annotations: list[str] | None = None,
init_config: str | None = None,
cluster_config: str | None = None,
kubelet_config: str | None = None,
kube_proxy_config: str | None = None,
join_config: str | None = None,
master_node_count: int = 1,
master_node_cpu_count: int = 2,
master_node_ram_size_mb: int = 2048,
master_node_disk_size_gb: int | None = None,
worker_node_count: int = 1,
worker_node_cpu_count: int = 1,
worker_node_ram_size_mb: int = 1024,
worker_node_disk_size_gb: int | None = None,
ext_net_id: int | None = None,
vins_id: int | None = None,
with_lb: bool = True,
lb_ha_mode: bool = False,
description: str | None = None,
extnet_only: bool = False,
2026-10-30 17:01:06 +03:00
ci_user_data: str | dict | None = None,
2025-07-21 20:27:59 +07:00
additional_sans: list[str] | None = None,
2026-02-11 12:20:55 +03:00
chipset: _nested.Chipset = _nested.Chipset.Q35,
2025-11-25 18:09:46 +03:00
lb_sysctl_params: list[dict[str, str]] | None = None,
2025-07-21 20:27:59 +07:00
zone_id: int | None = None,
2026-09-18 16:06:25 +07:00
) -> str:
raise NotImplementedError