o
    ɶd7                     @   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                   @   sf  e Zd ZdZdZdZdZd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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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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/d0 Zd1S )2TsigKeyz
    A TSIG key.
    **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
    ACTIVECREATINGDELETEDDELETINGFAILEDUPDATINGc                 K   s   dddddddddddd| _ dddd	d
ddddddd| _d| _d| _d| _d| _d| _d| _d| _d| _	d| _
d| _d| _dS )a  
        Initializes a new TsigKey object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param algorithm:
            The value to assign to the algorithm property of this TsigKey.
        :type algorithm: str

        :param name:
            The value to assign to the name property of this TsigKey.
        :type name: str

        :param compartment_id:
            The value to assign to the compartment_id property of this TsigKey.
        :type compartment_id: str

        :param secret:
            The value to assign to the secret property of this TsigKey.
        :type secret: str

        :param freeform_tags:
            The value to assign to the freeform_tags property of this TsigKey.
        :type freeform_tags: dict(str, str)

        :param defined_tags:
            The value to assign to the defined_tags property of this TsigKey.
        :type defined_tags: dict(str, dict(str, object))

        :param id:
            The value to assign to the id property of this TsigKey.
        :type id: str

        :param _self:
            The value to assign to the _self property of this TsigKey.
        :type _self: str

        :param time_created:
            The value to assign to the time_created property of this TsigKey.
        :type time_created: datetime

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this TsigKey.
            Allowed values for this property are: "ACTIVE", "CREATING", "DELETED", "DELETING", "FAILED", "UPDATING", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type lifecycle_state: str

        :param time_updated:
            The value to assign to the time_updated property of this TsigKey.
        :type time_updated: datetime

        strzdict(str, str)zdict(str, dict(str, object))datetime)	algorithmnamecompartment_idsecretfreeform_tagsdefined_tagsid_selftime_createdlifecycle_statetime_updatedr   r   ZcompartmentIdr   ZfreeformTagsZdefinedTagsr   selfZtimeCreatedZlifecycleStateZtimeUpdatedN)Zswagger_typesZattribute_map
_algorithm_name_compartment_id_secret_freeform_tags_defined_tags_id_TsigKey__self_time_created_lifecycle_state_time_updated)r   kwargs r'   ;usr/lib/python3.10/site-packages/oci/dns/models/tsig_key.py__init__+   sF   5
zTsigKey.__init__c                 C      | j S )a  
        **[Required]** Gets the algorithm of this TsigKey.
        TSIG key algorithms are encoded as domain names, but most consist of only one
        non-empty label, which is not required to be explicitly absolute.
        Applicable algorithms include: hmac-sha1, hmac-sha224, hmac-sha256,
        hmac-sha512. For more information on these algorithms, see `RFC 4635`__.

        __ https://tools.ietf.org/html/rfc4635#section-2


        :return: The algorithm of this TsigKey.
        :rtype: str
        r   r   r'   r'   r(   r      s   zTsigKey.algorithmc                 C   
   || _ dS )a  
        Sets the algorithm of this TsigKey.
        TSIG key algorithms are encoded as domain names, but most consist of only one
        non-empty label, which is not required to be explicitly absolute.
        Applicable algorithms include: hmac-sha1, hmac-sha224, hmac-sha256,
        hmac-sha512. For more information on these algorithms, see `RFC 4635`__.

        __ https://tools.ietf.org/html/rfc4635#section-2


        :param algorithm: The algorithm of this TsigKey.
        :type: str
        Nr+   )r   r   r'   r'   r(   r      s   
c                 C   r*   )z
        **[Required]** Gets the name of this TsigKey.
        A globally unique domain name identifying the key for a given pair of hosts.


        :return: The name of this TsigKey.
        :rtype: str
        r   r,   r'   r'   r(   r         
zTsigKey.namec                 C   r-   )z
        Sets the name of this TsigKey.
        A globally unique domain name identifying the key for a given pair of hosts.


        :param name: The name of this TsigKey.
        :type: str
        Nr.   )r   r   r'   r'   r(   r         

c                 C   r*   )z
        **[Required]** Gets the compartment_id of this TsigKey.
        The OCID of the compartment containing the TSIG key.


        :return: The compartment_id of this TsigKey.
        :rtype: str
        r   r,   r'   r'   r(   r      r/   zTsigKey.compartment_idc                 C   r-   )z
        Sets the compartment_id of this TsigKey.
        The OCID of the compartment containing the TSIG key.


        :param compartment_id: The compartment_id of this TsigKey.
        :type: str
        Nr1   )r   r   r'   r'   r(   r      r0   c                 C   r*   )z
        **[Required]** Gets the secret of this TsigKey.
        A base64 string encoding the binary shared secret.


        :return: The secret of this TsigKey.
        :rtype: str
        r   r,   r'   r'   r(   r      r/   zTsigKey.secretc                 C   r-   )z
        Sets the secret of this TsigKey.
        A base64 string encoding the binary shared secret.


        :param secret: The secret of this TsigKey.
        :type: str
        Nr2   )r   r   r'   r'   r(   r      r0   c                 C   r*   )a  
        **[Required]** Gets the freeform_tags of this TsigKey.
        Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
        For more information, see `Resource Tags`__.


        **Example:** `{"Department": "Finance"}`

        __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm


        :return: The freeform_tags of this TsigKey.
        :rtype: dict(str, str)
        r   r,   r'   r'   r(   r         zTsigKey.freeform_tagsc                 C   r-   )a  
        Sets the freeform_tags of this TsigKey.
        Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
        For more information, see `Resource Tags`__.


        **Example:** `{"Department": "Finance"}`

        __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm


        :param freeform_tags: The freeform_tags of this TsigKey.
        :type: dict(str, str)
        Nr3   )r   r   r'   r'   r(   r        
c                 C   r*   )a  
        **[Required]** Gets the defined_tags of this TsigKey.
        Defined tags for this resource. Each key is predefined and scoped to a namespace.
        For more information, see `Resource Tags`__.


        **Example:** `{"Operations": {"CostCenter": "42"}}`

        __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm


        :return: The defined_tags of this TsigKey.
        :rtype: dict(str, dict(str, object))
        r    r,   r'   r'   r(   r     r4   zTsigKey.defined_tagsc                 C   r-   )a  
        Sets the defined_tags of this TsigKey.
        Defined tags for this resource. Each key is predefined and scoped to a namespace.
        For more information, see `Resource Tags`__.


        **Example:** `{"Operations": {"CostCenter": "42"}}`

        __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm


        :param defined_tags: The defined_tags of this TsigKey.
        :type: dict(str, dict(str, object))
        Nr6   )r   r   r'   r'   r(   r   '  r5   c                 C   r*   )z
        **[Required]** Gets the id of this TsigKey.
        The OCID of the resource.


        :return: The id of this TsigKey.
        :rtype: str
        r!   r,   r'   r'   r(   r   9  r/   z
TsigKey.idc                 C   r-   )z
        Sets the id of this TsigKey.
        The OCID of the resource.


        :param id: The id of this TsigKey.
        :type: str
        Nr7   )r   r   r'   r'   r(   r   E  r0   c                 C   r*   )z
        **[Required]** Gets the _self of this TsigKey.
        The canonical absolute URL of the resource.


        :return: The _self of this TsigKey.
        :rtype: str
        r"   r,   r'   r'   r(   r   Q  r/   zTsigKey._selfc                 C   r-   )z
        Sets the _self of this TsigKey.
        The canonical absolute URL of the resource.


        :param _self: The _self of this TsigKey.
        :type: str
        Nr8   )r   r   r'   r'   r(   r   ]  r0   c                 C   r*   )a!  
        **[Required]** Gets the time_created of this TsigKey.
        The date and time the resource was created, expressed in RFC 3339 timestamp format.

        **Example:** `2016-07-22T17:23:59:60Z`


        :return: The time_created of this TsigKey.
        :rtype: datetime
        r#   r,   r'   r'   r(   r   i     zTsigKey.time_createdc                 C   r-   )a  
        Sets the time_created of this TsigKey.
        The date and time the resource was created, expressed in RFC 3339 timestamp format.

        **Example:** `2016-07-22T17:23:59:60Z`


        :param time_created: The time_created of this TsigKey.
        :type: datetime
        Nr9   )r   r   r'   r'   r(   r   w     
c                 C   r*   )a  
        **[Required]** Gets the lifecycle_state of this TsigKey.
        The current state of the resource.

        Allowed values for this property are: "ACTIVE", "CREATING", "DELETED", "DELETING", "FAILED", "UPDATING", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The lifecycle_state of this TsigKey.
        :rtype: str
        )r$   r,   r'   r'   r(   r     s   zTsigKey.lifecycle_statec                 C   s    g d}t ||sd}|| _dS )z
        Sets the lifecycle_state of this TsigKey.
        The current state of the resource.


        :param lifecycle_state: The lifecycle_state of this TsigKey.
        :type: str
        )r   r   r	   r
   r   r   ZUNKNOWN_ENUM_VALUEN)r   r$   )r   r   Zallowed_valuesr'   r'   r(   r     s   


c                 C   r*   )a  
        Gets the time_updated of this TsigKey.
        The date and time the resource was last updated, expressed in RFC 3339 timestamp format.

        **Example:** `2016-07-22T17:23:59:60Z`


        :return: The time_updated of this TsigKey.
        :rtype: datetime
        r%   r,   r'   r'   r(   r     r:   zTsigKey.time_updatedc                 C   r-   )a"  
        Sets the time_updated of this TsigKey.
        The date and time the resource was last updated, expressed in RFC 3339 timestamp format.

        **Example:** `2016-07-22T17:23:59:60Z`


        :param time_updated: The time_updated of this TsigKey.
        :type: datetime
        Nr<   )r   r   r'   r'   r(   r     r;   c                 C   s   t | S N)r   r,   r'   r'   r(   __repr__  s   zTsigKey.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r   otherr'   r'   r(   __eq__  s   zTsigKey.__eq__c                 C   s
   | |k S r=   r'   r@   r'   r'   r(   __ne__  s   
zTsigKey.__ne__N)__name__
__module____qualname____doc__ZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_CREATINGZLIFECYCLE_STATE_DELETEDZLIFECYCLE_STATE_DELETINGZLIFECYCLE_STATE_FAILEDZLIFECYCLE_STATE_UPDATINGr)   propertyr   setterr   r   r   r   r   r   r   r   r   r   r>   rB   rC   r'   r'   r'   r(   r      sp    \





















r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r'   r'   r'   r(   <module>   s   