from a10sdk.common.A10BaseClass import A10BaseClass


class UsableNatPorts(A10BaseClass):
    
    """This class does not support CRUD Operations please use parent.

    :param usable_start_port: {"description": "Start Port of Usable NAT Ports", "minimum": 1024, "type": "number", "maximum": 65535, "format": "number"}
    :param usable_end_port: {"description": "End Port of Usable NAT Ports", "minimum": 1024, "type": "number", "maximum": 65535, "format": "number"}
    :param DeviceProxy: The device proxy for REST operations and session handling. Refer to `common/device_proxy.py`

    

    
    """
    def __init__(self, **kwargs):
        self.ERROR_MSG = ""
        
        self.b_key = "usable-nat-ports"
        self.DeviceProxy = ""
        self.usable_start_port = ""
        self.usable_end_port = ""

        for keys, value in kwargs.items():
            setattr(self,keys, value)


class Offset(A10BaseClass):
    
    """This class does not support CRUD Operations please use parent.

    :param numeric_offset: {"description": "Configure a numeric offset to the first NAT IP address", "format": "number", "default": 0, "maximum": 1024000, "minimum": 0, "not": "random", "type": "number"}
    :param random: {"default": 0, "not": "numeric-offset", "type": "number", "description": "Randomly choose the first NAT IP address", "format": "flag"}
    :param DeviceProxy: The device proxy for REST operations and session handling. Refer to `common/device_proxy.py`

    

    
    """
    def __init__(self, **kwargs):
        self.ERROR_MSG = ""
        
        self.b_key = "offset"
        self.DeviceProxy = ""
        self.numeric_offset = ""
        self.random = ""

        for keys, value in kwargs.items():
            setattr(self,keys, value)


class Ipv6Address(A10BaseClass):
    
    """Class Description::
    Configure Fixed NAT.

    Class ipv6address supports CRUD Operations and inherits from `common/A10BaseClass`.
    This class is the `"PARENT"` class for this module.`

    :param ports_per_user: {"description": "Configure Ports per Inside User (ports-per-user)", "format": "number", "type": "number", "maximum": 64512, "minimum": 1, "optional": true}
    :param vrid: {"description": "VRRP-A vrid (Specify ha VRRP-A vrid)", "format": "number", "type": "number", "maximum": 31, "minimum": 1, "optional": true}
    :param inside_netmask: {"description": "Inside User IPv6 Netmask", "format": "number", "type": "number", "maximum": 128, "minimum": 64, "optional": false}
    :param uuid: {"description": "uuid of the object", "format": "string", "minLength": 1, "modify-not-allowed": 1, "optional": true, "maxLength": 64, "type": "string"}
    :param nat_end_address: {"optional": true, "type": "string", "description": "IPv6 End NAT Address", "format": "ipv4-address"}
    :param partition: {"description": "Inside User Partition (Partition Name)", "partition-visibility": "shared", "minLength": 1, "format": "string", "optional": false, "maxLength": 63, "type": "string"}
    :param nat_netmask: {"optional": true, "type": "string", "description": "NAT Addresses IP Netmask", "format": "ipv4-netmask-brief"}
    :param session_quota: {"description": "Configure per user quota on sessions", "format": "number", "type": "number", "maximum": 2147483647, "minimum": 1, "optional": true}
    :param method: {"description": "'use-all-nat-ips': Use all the NAT IP addresses configured; 'use-least-nat-ips': Use the least number of NAT IP addresses required (default); ", "format": "enum", "default": "use-least-nat-ips", "type": "string", "enum": ["use-all-nat-ips", "use-least-nat-ips"], "optional": true}
    :param inside_start_address: {"optional": false, "type": "string", "description": "IPv6 Inside User Start Address", "format": "ipv6-address"}
    :param nat_start_address: {"optional": true, "type": "string", "description": "Start NAT Address", "format": "ipv4-address"}
    :param nat_ip_list: {"description": "Name of IP List used to specify NAT addresses", "format": "string-rlx", "minLength": 1, "optional": true, "maxLength": 63, "type": "string"}
    :param respond_to_user_mac: {"default": 0, "optional": true, "type": "number", "description": "Use the user's source MAC for the next hop rather than the routing table (Default: off)", "format": "flag"}
    :param inside_end_address: {"optional": false, "type": "string", "description": "IPv6 Inside User End Address", "format": "ipv6-address"}
    :param dest_rule_list: {"description": "Bind destination based Rule-List (Fixed NAT Rule-List Name)", "format": "string", "minLength": 1, "optional": true, "maxLength": 63, "type": "string"}
    :param dynamic_pool_size: {"description": "Configure size of Dynamic pool (Default: 0)", "format": "number", "default": 0, "optional": true, "maximum": 64511, "minimum": 0, "type": "number"}
    :param DeviceProxy: The device proxy for REST operations and session handling. Refer to `common/device_proxy.py`

    

    URL for this object::
    `https://<Hostname|Ip address>//axapi/v3/cgnv6/fixed-nat/inside/ipv6address/{inside_start_address}+{inside_end_address}+{inside_netmask}+{partition}`.

    

    
    """
    def __init__(self, **kwargs):
        self.ERROR_MSG = ""
        self.required = [ "inside_start_address","inside_end_address","inside_netmask","partition"]

        self.b_key = "ipv6address"
        self.a10_url="/axapi/v3/cgnv6/fixed-nat/inside/ipv6address/{inside_start_address}+{inside_end_address}+{inside_netmask}+{partition}"
        self.DeviceProxy = ""
        self.ports_per_user = ""
        self.vrid = ""
        self.inside_netmask = ""
        self.uuid = ""
        self.nat_end_address = ""
        self.usable_nat_ports = {}
        self.partition = ""
        self.nat_netmask = ""
        self.session_quota = ""
        self.method = ""
        self.inside_start_address = ""
        self.nat_start_address = ""
        self.nat_ip_list = ""
        self.offset = {}
        self.respond_to_user_mac = ""
        self.inside_end_address = ""
        self.dest_rule_list = ""
        self.dynamic_pool_size = ""

        for keys, value in kwargs.items():
            setattr(self,keys, value)


