Files
dynamix-python-sdk/src/dynamix_sdk/api/cloudapi/compute/net_attach.py
T

35 lines
1.1 KiB
Python
Raw Normal View History

2025-06-06 08:20:45 +03:00
import dynamix_sdk.base as _base
import dynamix_sdk.api._nested as _nested
class CloudapiComputeNetAttachResultModel(
_nested.InterfaceForComputeGetAPIResultNM,
):
pass
2026-09-18 16:06:25 +07:00
class CloudapiComputeNetAttachImpl(_base.APIFunctionImpl):
http_method = _base.HTTPMethod.POST
def __call__(
2025-06-06 08:20:45 +03:00
self,
*,
vm_id: int,
net_type: _nested.NetType,
net_id: int,
2025-11-25 18:09:46 +03:00
security_group_ids: None | list[int] = None,
security_group_mode: bool = False,
enabled: bool = True,
2025-06-06 08:20:45 +03:00
ip_addr: None | str = None,
mtu: None | int = None,
2025-06-30 15:09:41 +03:00
mac: None | str = None,
2025-07-21 20:27:59 +07:00
sdn_logical_port_id: None | str = None,
2026-02-11 12:20:55 +03:00
net_prefix: int | None = None,
sdn_segment_id: str | None = None,
2026-09-18 16:06:25 +07:00
sdn_object_group_ids: list[str] | None = None,
2026-02-11 12:20:55 +03:00
sdn_logical_port_display_name: str | None = None,
sdn_logical_port_description: str | None = None,
2026-09-18 16:06:25 +07:00
async_mode: bool = False,
enable_default_gateway: bool = True,
) -> CloudapiComputeNetAttachResultModel | str:
raise NotImplementedError