import dynamix_sdk.base as _base
import dynamix_sdk.api._nested as _nested


class CloudbrokerSecurityGroupCreateRuleResultInt(_base.BaseAPIResultInt):
    pass


class CloudbrokerSecurityGroupCreateRuleProtocol(
    _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_net_cidr: str | None = None,
    ) -> CloudbrokerSecurityGroupCreateRuleResultInt:
        ...
