1.3.0
This commit is contained in:
1
src/dynamix_sdk/api/cloudapi/security_group/__init__.py
Normal file
1
src/dynamix_sdk/api/cloudapi/security_group/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from ._api import *
|
||||
21
src/dynamix_sdk/api/cloudapi/security_group/_api.py
Normal file
21
src/dynamix_sdk/api/cloudapi/security_group/_api.py
Normal file
@@ -0,0 +1,21 @@
|
||||
import dynamix_sdk.base as _base
|
||||
from .create import *
|
||||
from .create_rule import *
|
||||
from .delete import *
|
||||
from .delete_rule import *
|
||||
from .get import *
|
||||
from .list import *
|
||||
from .update import *
|
||||
|
||||
|
||||
class CloudapiSecurityGroupAPI(
|
||||
_base.BaseAPI,
|
||||
CloudapiSecurityGroupCreateProtocol,
|
||||
CloudapiSecurityGroupCreateRuleProtocol,
|
||||
CloudapiSecurityGroupDeleteProtocol,
|
||||
CloudapiSecurityGroupDeleteRuleProtocol,
|
||||
CloudapiSecurityGroupGetProtocol,
|
||||
CloudapiSecurityGroupListProtocol,
|
||||
CloudapiSecurityGroupUpdateProtocol,
|
||||
):
|
||||
pass
|
||||
16
src/dynamix_sdk/api/cloudapi/security_group/create.py
Normal file
16
src/dynamix_sdk/api/cloudapi/security_group/create.py
Normal file
@@ -0,0 +1,16 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiSecurityGroupCreateResultInt(_base.BaseAPIResultInt):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiSecurityGroupCreateProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def create(
|
||||
self,
|
||||
*,
|
||||
account_id: int,
|
||||
name: str,
|
||||
description: str | None = None,
|
||||
) -> CloudapiSecurityGroupCreateResultInt:
|
||||
...
|
||||
23
src/dynamix_sdk/api/cloudapi/security_group/create_rule.py
Normal file
23
src/dynamix_sdk/api/cloudapi/security_group/create_rule.py
Normal file
@@ -0,0 +1,23 @@
|
||||
import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiSecurityGroupCreateRuleResultInt(_base.BaseAPIResultInt):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiSecurityGroupCreateRuleProtocol(
|
||||
_base.BasePostAPIFunctionProtocol,
|
||||
):
|
||||
def create_rule(
|
||||
self,
|
||||
*,
|
||||
security_group_id: int,
|
||||
traffic_direction: _nested.TrafficDirection,
|
||||
ethertype: _nested.SGRuleEthertype = _nested.SGRuleEthertype.IPV4,
|
||||
protocol: _nested.SGRuleProtocol | None = None,
|
||||
port_range_max: int | None = None,
|
||||
port_range_min: int | None = None,
|
||||
remote_ip_prefix: str | None = None,
|
||||
) -> CloudapiSecurityGroupCreateRuleResultInt:
|
||||
...
|
||||
14
src/dynamix_sdk/api/cloudapi/security_group/delete.py
Normal file
14
src/dynamix_sdk/api/cloudapi/security_group/delete.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiSecurityGroupDeleteResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiSecurityGroupDeleteProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def delete(
|
||||
self,
|
||||
*,
|
||||
security_group_id: int,
|
||||
) -> CloudapiSecurityGroupDeleteResultBool:
|
||||
...
|
||||
17
src/dynamix_sdk/api/cloudapi/security_group/delete_rule.py
Normal file
17
src/dynamix_sdk/api/cloudapi/security_group/delete_rule.py
Normal file
@@ -0,0 +1,17 @@
|
||||
import dynamix_sdk.base as _base
|
||||
|
||||
|
||||
class CloudapiSecurityGroupDeleteRuleResultBool(_base.BaseAPIResultBool):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiSecurityGroupDeleteRuleProtocol(
|
||||
_base.BasePostAPIFunctionProtocol,
|
||||
):
|
||||
def delete_rule(
|
||||
self,
|
||||
*,
|
||||
security_group_id: int,
|
||||
rule_id: int,
|
||||
) -> CloudapiSecurityGroupDeleteRuleResultBool:
|
||||
...
|
||||
18
src/dynamix_sdk/api/cloudapi/security_group/get.py
Normal file
18
src/dynamix_sdk/api/cloudapi/security_group/get.py
Normal file
@@ -0,0 +1,18 @@
|
||||
import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiSecurityGroupGetResultModel(
|
||||
_base.BaseAPIResultModel,
|
||||
_nested.SecurityGroupAPIResultNM,
|
||||
):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiSecurityGroupGetProtocol(_base.BaseGetAPIFunctionProtocol):
|
||||
def get(
|
||||
self,
|
||||
*,
|
||||
security_group_id: int,
|
||||
) -> CloudapiSecurityGroupGetResultModel:
|
||||
...
|
||||
26
src/dynamix_sdk/api/cloudapi/security_group/list.py
Normal file
26
src/dynamix_sdk/api/cloudapi/security_group/list.py
Normal file
@@ -0,0 +1,26 @@
|
||||
import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiSecurityGroupListResultModel(_base.BaseAPIResultModel):
|
||||
data: list[_nested.SecurityGroupAPIResultNM]
|
||||
entry_count: int
|
||||
|
||||
|
||||
class CloudapiSecurityGroupListProtocol(_base.BaseGetAPIFunctionProtocol):
|
||||
def list(
|
||||
self,
|
||||
*,
|
||||
account_id: int | None = None,
|
||||
created_after_timestamp: int | None = None,
|
||||
created_before_timestamp: int | None = None,
|
||||
description: str | None = None,
|
||||
id: int | None = None,
|
||||
name: str | None = None,
|
||||
page_number: int | None = None,
|
||||
page_size: int | None = None,
|
||||
sort_by: str | None = None,
|
||||
updated_after_timestamp: int | None = None,
|
||||
updated_before_timestamp: int | None = None,
|
||||
) -> CloudapiSecurityGroupListResultModel:
|
||||
...
|
||||
20
src/dynamix_sdk/api/cloudapi/security_group/update.py
Normal file
20
src/dynamix_sdk/api/cloudapi/security_group/update.py
Normal file
@@ -0,0 +1,20 @@
|
||||
import dynamix_sdk.base as _base
|
||||
import dynamix_sdk.api._nested as _nested
|
||||
|
||||
|
||||
class CloudapiSecurityGroupUpdateResultModel(
|
||||
_base.BaseAPIResultModel,
|
||||
_nested.SecurityGroupAPIResultNM,
|
||||
):
|
||||
pass
|
||||
|
||||
|
||||
class CloudapiSecurityGroupUpdateProtocol(_base.BasePostAPIFunctionProtocol):
|
||||
def update(
|
||||
self,
|
||||
*,
|
||||
security_group_id: int,
|
||||
name: str | None = None,
|
||||
description: str | None = None,
|
||||
) -> CloudapiSecurityGroupUpdateResultModel:
|
||||
...
|
||||
Reference in New Issue
Block a user