1.0.1
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
import dynamix_sdk.base as _base
|
||||
from .create import *
|
||||
from .create_blank import *
|
||||
|
||||
|
||||
class CloudapiKvmx86API(
|
||||
_base.BaseAPI,
|
||||
CloudapiKvmx86CreateProtocol,
|
||||
CloudapiKvmx86CreateBlankProtocol,
|
||||
):
|
||||
pass
|
||||
|
||||
@@ -10,11 +10,11 @@ class CloudapiKvmx86CreateProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def create(
|
||||
self,
|
||||
*,
|
||||
cpu: int,
|
||||
cpu_count: int,
|
||||
name: str,
|
||||
ram: int,
|
||||
ram_size_mb: int,
|
||||
rg_id: int,
|
||||
boot_disk_size: None | int = None,
|
||||
boot_disk_size_gb: None | int = None,
|
||||
chipset: _nested.Chipset = _nested.Chipset.i440fx,
|
||||
ci_user_data: None | dict = None,
|
||||
cpu_pin: bool = False,
|
||||
|
||||
28
src/dynamix_sdk/api/cloudapi/kvmx86/create_blank.py
Normal file
28
src/dynamix_sdk/api/cloudapi/kvmx86/create_blank.py
Normal file
@@ -0,0 +1,28 @@
|
||||
import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiKvmx86CreateBlankResultInt(_base.BaseAPIResultInt):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiKvmx86CreateBlankProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def create_blank(
|
||||
self,
|
||||
*,
|
||||
cpu_count: int,
|
||||
name: str,
|
||||
ram_size_mb: int,
|
||||
rg_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,
|
||||
sep_pool_name: None | str = None,
|
||||
without_boot_disk: bool = False,
|
||||
) -> CloudapiKvmx86CreateBlankResultInt:
|
||||
...
|
||||
Reference in New Issue
Block a user