o
    ɶdc                     @   s8   d dl mZmZmZ d dlmZ eG dd deZdS )    )formatted_flat_dictNONE_SENTINEL#value_allowed_none_or_none_sentinel)init_model_state_from_kwargsc                   @   s~   e Zd ZdZdd Zedd Zejdd Zedd Zejd	d Zed
d Z	e	jdd Z	dd Z
dd Zdd ZdS )ExternalDownstreamz
    External downstream nameserver for the zone.
    This field is currently not supported when `zoneType` is `SECONDARY` or `scope` is `PRIVATE`.
    c                 K   s2   dddd| _ dddd| _d| _d| _d| _dS )ai  
        Initializes a new ExternalDownstream object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param address:
            The value to assign to the address property of this ExternalDownstream.
        :type address: str

        :param port:
            The value to assign to the port property of this ExternalDownstream.
        :type port: int

        :param tsig_key_id:
            The value to assign to the tsig_key_id property of this ExternalDownstream.
        :type tsig_key_id: str

        strint)addressporttsig_key_idr	   r
   Z	tsigKeyIdN)Zswagger_typesZattribute_map_address_port_tsig_key_id)selfkwargs r   Fusr/lib/python3.10/site-packages/oci/dns/models/external_downstream.py__init__   s   
zExternalDownstream.__init__c                 C      | j S )z
        **[Required]** Gets the address of this ExternalDownstream.
        The server's IP address (IPv4 or IPv6).


        :return: The address of this ExternalDownstream.
        :rtype: str
        r   r   r   r   r   r	   5   s   
zExternalDownstream.addressc                 C   
   || _ dS )z
        Sets the address of this ExternalDownstream.
        The server's IP address (IPv4 or IPv6).


        :param address: The address of this ExternalDownstream.
        :type: str
        Nr   )r   r	   r   r   r   r	   A   s   

c                 C   r   )z
        Gets the port of this ExternalDownstream.
        The server's port. Port value must be a value of 53, otherwise omit
        the port value.


        :return: The port of this ExternalDownstream.
        :rtype: int
        r   r   r   r   r   r
   M      zExternalDownstream.portc                 C   r   )z
        Sets the port of this ExternalDownstream.
        The server's port. Port value must be a value of 53, otherwise omit
        the port value.


        :param port: The port of this ExternalDownstream.
        :type: int
        Nr   )r   r
   r   r   r   r
   Z      
c                 C   r   )a@  
        Gets the tsig_key_id of this ExternalDownstream.
        The OCID of the TSIG key.
        A TSIG key is used to secure DNS messages (in this case, zone transfers) between two systems that both have the (shared) secret.


        :return: The tsig_key_id of this ExternalDownstream.
        :rtype: str
        r   r   r   r   r   r   g   r   zExternalDownstream.tsig_key_idc                 C   r   )aJ  
        Sets the tsig_key_id of this ExternalDownstream.
        The OCID of the TSIG key.
        A TSIG key is used to secure DNS messages (in this case, zone transfers) between two systems that both have the (shared) secret.


        :param tsig_key_id: The tsig_key_id of this ExternalDownstream.
        :type: str
        Nr   )r   r   r   r   r   r   t   r   c                 C   s   t | S N)r   r   r   r   r   __repr__   s   zExternalDownstream.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r   otherr   r   r   __eq__   s   zExternalDownstream.__eq__c                 C   s
   | |k S r   r   r   r   r   r   __ne__   s   
zExternalDownstream.__ne__N)__name__
__module____qualname____doc__r   propertyr	   setterr
   r   r   r!   r"   r   r   r   r   r      s$    "





r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r   r   r   r   <module>   s   