from a10sdk.common.A10BaseClass import A10BaseClass


class DestinationIp(A10BaseClass):
    
    """Class Description::
    Destination IP persistence.

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

    :param netmask6: {"description": "IPV6 subnet mask", "format": "number", "default": 128, "optional": true, "maximum": 128, "minimum": 1, "type": "number"}
    :param scan_all_members: {"default": 0, "optional": true, "type": "number", "description": "Persist with SCAN of all members", "format": "flag"}
    :param name: {"description": "Destination IP persistence template name", "format": "string", "minLength": 1, "optional": false, "maxLength": 63, "type": "string"}
    :param dont_honor_conn_rules: {"default": 0, "optional": true, "type": "number", "description": "Do not observe connection rate rules", "format": "flag"}
    :param netmask: {"default": "255.255.255.255", "optional": true, "type": "string", "description": "IP subnet mask", "format": "ipv4-netmask"}
    :param server: {"description": "Persist to the same server, default is port", "format": "flag", "default": 0, "optional": true, "not": "service-group", "type": "number"}
    :param service_group: {"description": "Persist within the same service group", "format": "flag", "default": 0, "optional": true, "not": "server", "type": "number"}
    :param timeout: {"description": "Persistence timeout (in minutes)", "format": "number", "default": 5, "optional": true, "maximum": 2000, "minimum": 1, "type": "number"}
    :param hash_persist: {"default": 0, "optional": true, "type": "number", "description": "Use hash value of destination IP address", "format": "flag"}
    :param match_type: {"default": 0, "optional": true, "type": "number", "description": "Persistence type", "format": "flag"}
    :param uuid: {"description": "uuid of the object", "format": "string", "minLength": 1, "modify-not-allowed": 1, "optional": true, "maxLength": 64, "type": "string"}
    :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/slb/template/persist/destination-ip/{name}`.

    

    
    """
    def __init__(self, **kwargs):
        self.ERROR_MSG = ""
        self.required = [ "name"]

        self.b_key = "destination-ip"
        self.a10_url="/axapi/v3/slb/template/persist/destination-ip/{name}"
        self.DeviceProxy = ""
        self.netmask6 = ""
        self.scan_all_members = ""
        self.name = ""
        self.dont_honor_conn_rules = ""
        self.netmask = ""
        self.server = ""
        self.service_group = ""
        self.timeout = ""
        self.hash_persist = ""
        self.match_type = ""
        self.uuid = ""

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


