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:
        ...
