o
    ëÉ¶dfP  ã                   @   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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ed-d.„ ƒZejd/d.„ ƒZed0d1„ ƒZejd2d1„ ƒZed3d4„ ƒZejd5d4„ ƒZed6d7„ ƒZejd8d7„ ƒZd9d:„ Zd;d<„ Zd=d>„ Z d?S )@ÚDkimz,
    The properties that define a DKIM.
    ÚACTIVEÚCREATINGÚDELETINGÚDELETEDÚFAILEDÚINACTIVEÚNEEDS_ATTENTIONÚ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| _d| _d| _d| _d| _	d| _
d| _d| _d| _d| _d| _d| _dS )a8
  
        Initializes a new Dkim object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

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

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

        :param email_domain_id:
            The value to assign to the email_domain_id property of this Dkim.
        :type email_domain_id: str

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

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

        :param lifecycle_details:
            The value to assign to the lifecycle_details property of this Dkim.
        :type lifecycle_details: str

        :param description:
            The value to assign to the description property of this Dkim.
        :type description: str

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

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

        :param dns_subdomain_name:
            The value to assign to the dns_subdomain_name property of this Dkim.
        :type dns_subdomain_name: str

        :param cname_record_value:
            The value to assign to the cname_record_value property of this Dkim.
        :type cname_record_value: str

        :param txt_record_value:
            The value to assign to the txt_record_value property of this Dkim.
        :type txt_record_value: str

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

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

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

        ÚstrÚdatetimezdict(str, str)zdict(str, dict(str, object)))ÚnameÚidÚemail_domain_idÚcompartment_idÚlifecycle_stateÚlifecycle_detailsÚdescriptionÚtime_createdÚtime_updatedÚdns_subdomain_nameÚcname_record_valueÚtxt_record_valueÚfreeform_tagsÚdefined_tagsÚsystem_tagsr   r   ZemailDomainIdZcompartmentIdZlifecycleStateZlifecycleDetailsr   ZtimeCreatedZtimeUpdatedZdnsSubdomainNameZcnameRecordValueZtxtRecordValueZfreeformTagsZdefinedTagsZ
systemTagsN)Zswagger_typesZattribute_mapÚ_nameÚ_idÚ_email_domain_idÚ_compartment_idÚ_lifecycle_stateÚ_lifecycle_detailsÚ_descriptionÚ_time_createdÚ_time_updatedÚ_dns_subdomain_nameÚ_cname_record_valueÚ_txt_record_valueÚ_freeform_tagsÚ_defined_tagsÚ_system_tags)ÚselfÚkwargs© r1   ú9usr/lib/python3.10/site-packages/oci/email/models/dkim.pyÚ__init__2   s^   Eññ
zDkim.__init__c                 C   ó   | j S )zþ
        **[Required]** Gets the name of this Dkim.
        The DKIM selector.
        If the same domain is managed in more than one region, each region must use different selectors.


        :return: The name of this Dkim.
        :rtype: str
        ©r    ©r/   r1   r1   r2   r   ª   ó   z	Dkim.namec                 C   ó
   || _ dS )zò
        Sets the name of this Dkim.
        The DKIM selector.
        If the same domain is managed in more than one region, each region must use different selectors.


        :param name: The name of this Dkim.
        :type: str
        Nr5   )r/   r   r1   r1   r2   r   ·   ó   
c                 C   r4   )zð
        **[Required]** Gets the id of this Dkim.
        The `OCID`__ of the DKIM.

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


        :return: The id of this Dkim.
        :rtype: str
        ©r!   r6   r1   r1   r2   r   Ä   ó   zDkim.idc                 C   r8   )zâ
        Sets the id of this Dkim.
        The `OCID`__ of the DKIM.

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


        :param id: The id of this Dkim.
        :type: str
        Nr:   )r/   r   r1   r1   r2   r   Ò   ó   
c                 C   r4   )a4  
        **[Required]** Gets the email_domain_id of this Dkim.
        The `OCID`__ of the email domain
        that this DKIM belongs to.

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


        :return: The email_domain_id of this Dkim.
        :rtype: str
        ©r"   r6   r1   r1   r2   r   à   ó   zDkim.email_domain_idc                 C   r8   )a3  
        Sets the email_domain_id of this Dkim.
        The `OCID`__ of the email domain
        that this DKIM belongs to.

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


        :param email_domain_id: The email_domain_id of this Dkim.
        :type: str
        Nr=   )r/   r   r1   r1   r2   r   ï   ó   
c                 C   r4   )a  
        Gets the compartment_id of this Dkim.
        The `OCID`__ of the compartment that contains this DKIM.

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


        :return: The compartment_id of this Dkim.
        :rtype: str
        ©r#   r6   r1   r1   r2   r   þ   r;   zDkim.compartment_idc                 C   r8   )a%  
        Sets the compartment_id of this Dkim.
        The `OCID`__ of the compartment that contains this DKIM.

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


        :param compartment_id: The compartment_id of this Dkim.
        :type: str
        Nr@   )r/   r   r1   r1   r2   r     r<   c                 C   r4   )a­  
        Gets the lifecycle_state of this Dkim.
        The current state of the DKIM.

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


        :return: The lifecycle_state of this Dkim.
        :rtype: str
        )r$   r6   r1   r1   r2   r     r>   zDkim.lifecycle_statec                 C   s    g d¢}t ||ƒsd}|| _dS )z¶
        Sets the lifecycle_state of this Dkim.
        The current state of the DKIM.


        :param lifecycle_state: The lifecycle_state of this Dkim.
        :type: str
        )r   r   r	   r
   r   r   r   r   ZUNKNOWN_ENUM_VALUEN)r   r$   )r/   r   Zallowed_valuesr1   r1   r2   r   )  s   


c                 C   r4   )a  
        Gets the lifecycle_details of this Dkim.
        A message describing the current state in more detail.
        For example, can be used to provide actionable information for a resource.


        :return: The lifecycle_details of this Dkim.
        :rtype: str
        ©r%   r6   r1   r1   r2   r   8  r7   zDkim.lifecycle_detailsc                 C   r8   )a'  
        Sets the lifecycle_details of this Dkim.
        A message describing the current state in more detail.
        For example, can be used to provide actionable information for a resource.


        :param lifecycle_details: The lifecycle_details of this Dkim.
        :type: str
        NrA   )r/   r   r1   r1   r2   r   E  r9   c                 C   r4   )zÇ
        Gets the description of this Dkim.
        The description of the DKIM. Avoid entering confidential information.


        :return: The description of this Dkim.
        :rtype: str
        ©r&   r6   r1   r1   r2   r   R  ó   
zDkim.descriptionc                 C   r8   )zÑ
        Sets the description of this Dkim.
        The description of the DKIM. Avoid entering confidential information.


        :param description: The description of this Dkim.
        :type: str
        NrB   )r/   r   r1   r1   r2   r   ^  ó   

c                 C   r4   )a_  
        Gets the time_created of this Dkim.
        The time the DKIM was created.
        Times are expressed in `RFC 3339`__
        timestamp format, "YYYY-MM-ddThh:mmZ".

        Example: `2021-02-12T22:47:12.613Z`

        __ https://tools.ietf.org/html/rfc3339


        :return: The time_created of this Dkim.
        :rtype: datetime
        ©r'   r6   r1   r1   r2   r   j  s   zDkim.time_createdc                 C   r8   )aj  
        Sets the time_created of this Dkim.
        The time the DKIM was created.
        Times are expressed in `RFC 3339`__
        timestamp format, "YYYY-MM-ddThh:mmZ".

        Example: `2021-02-12T22:47:12.613Z`

        __ https://tools.ietf.org/html/rfc3339


        :param time_created: The time_created of this Dkim.
        :type: datetime
        NrE   )r/   r   r1   r1   r2   r   |  s   
c                 C   r4   )a€  
        Gets the time_updated of this Dkim.
        The time of the last change to the DKIM configuration, due to a state change or
        an update operation.
        Times are expressed in `RFC 3339`__
        timestamp format, "YYYY-MM-ddThh:mmZ".

        __ https://tools.ietf.org/html/rfc3339


        :return: The time_updated of this Dkim.
        :rtype: datetime
        ©r(   r6   r1   r1   r2   r   Ž  ó   zDkim.time_updatedc                 C   r8   )a‹  
        Sets the time_updated of this Dkim.
        The time of the last change to the DKIM configuration, due to a state change or
        an update operation.
        Times are expressed in `RFC 3339`__
        timestamp format, "YYYY-MM-ddThh:mmZ".

        __ https://tools.ietf.org/html/rfc3339


        :param time_updated: The time_updated of this Dkim.
        :type: datetime
        NrF   )r/   r   r1   r1   r2   r   Ÿ  ó   
c                 C   r4   )aJ  
        Gets the dns_subdomain_name of this Dkim.
        The name of the DNS subdomain that must be provisioned to enable email recipients to verify DKIM signatures.
        It is usually created with a CNAME record set to the cnameRecordValue


        :return: The dns_subdomain_name of this Dkim.
        :rtype: str
        ©r)   r6   r1   r1   r2   r   °  r7   zDkim.dns_subdomain_namec                 C   r8   )a[  
        Sets the dns_subdomain_name of this Dkim.
        The name of the DNS subdomain that must be provisioned to enable email recipients to verify DKIM signatures.
        It is usually created with a CNAME record set to the cnameRecordValue


        :param dns_subdomain_name: The dns_subdomain_name of this Dkim.
        :type: str
        NrI   )r/   r   r1   r1   r2   r   ½  r9   c                 C   r4   )a
  
        Gets the cname_record_value of this Dkim.
        The DNS CNAME record value to provision to the DKIM DNS subdomain, when using the CNAME method for DKIM setup (preferred).


        :return: The cname_record_value of this Dkim.
        :rtype: str
        ©r*   r6   r1   r1   r2   r   Ê  rC   zDkim.cname_record_valuec                 C   r8   )a  
        Sets the cname_record_value of this Dkim.
        The DNS CNAME record value to provision to the DKIM DNS subdomain, when using the CNAME method for DKIM setup (preferred).


        :param cname_record_value: The cname_record_value of this Dkim.
        :type: str
        NrJ   )r/   r   r1   r1   r2   r   Ö  rD   c                 C   r4   )ah  
        Gets the txt_record_value of this Dkim.
        The DNS TXT record value to provision to the DKIM DNS subdomain in place of using a CNAME record.
        This is used in cases where a CNAME can not be used, such as when the cnameRecordValue would exceed the maximum length for a DNS entry.
        This can also be used by customers who have an existing procedure to directly provision TXT records for DKIM.
        Be aware that many DNS APIs will require you to break this string into segments of less than 255 characters.


        :return: The txt_record_value of this Dkim.
        :rtype: str
        ©r+   r6   r1   r1   r2   r   â  r>   zDkim.txt_record_valuec                 C   r8   )aw  
        Sets the txt_record_value of this Dkim.
        The DNS TXT record value to provision to the DKIM DNS subdomain in place of using a CNAME record.
        This is used in cases where a CNAME can not be used, such as when the cnameRecordValue would exceed the maximum length for a DNS entry.
        This can also be used by customers who have an existing procedure to directly provision TXT records for DKIM.
        Be aware that many DNS APIs will require you to break this string into segments of less than 255 characters.


        :param txt_record_value: The txt_record_value of this Dkim.
        :type: str
        NrK   )r/   r   r1   r1   r2   r   ñ  r?   c                 C   r4   )aº  
        Gets the freeform_tags of this Dkim.
        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 Dkim.
        :rtype: dict(str, str)
        ©r,   r6   r1   r1   r2   r      rG   zDkim.freeform_tagsc                 C   r8   )aÆ  
        Sets the freeform_tags of this Dkim.
        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 Dkim.
        :type: dict(str, str)
        NrL   )r/   r   r1   r1   r2   r     rH   c                 C   r4   )a°  
        Gets the defined_tags of this Dkim.
        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 Dkim.
        :rtype: dict(str, dict(str, object))
        ©r-   r6   r1   r1   r2   r   "  rG   zDkim.defined_tagsc                 C   r8   )a»  
        Sets the defined_tags of this Dkim.
        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 Dkim.
        :type: dict(str, dict(str, object))
        NrM   )r/   r   r1   r1   r2   r   3  rH   c                 C   r4   )a&  
        Gets the system_tags of this Dkim.
        Usage of system tag keys. These predefined keys are scoped to namespaces.
        Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`


        :return: The system_tags of this Dkim.
        :rtype: dict(str, dict(str, object))
        ©r.   r6   r1   r1   r2   r   D  r7   zDkim.system_tagsc                 C   r8   )a0  
        Sets the system_tags of this Dkim.
        Usage of system tag keys. These predefined keys are scoped to namespaces.
        Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`


        :param system_tags: The system_tags of this Dkim.
        :type: dict(str, dict(str, object))
        NrN   )r/   r   r1   r1   r2   r   Q  r9   c                 C   s   t | ƒS ©N)r   r6   r1   r1   r2   Ú__repr__^  s   zDkim.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r/   Úotherr1   r1   r2   Ú__eq__a  s   zDkim.__eq__c                 C   s
   | |k S rO   r1   rR   r1   r1   r2   Ú__ne__g  s   
zDkim.__ne__N)!Ú__name__Ú
__module__Ú__qualname__Ú__doc__ZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_CREATINGZLIFECYCLE_STATE_DELETINGZLIFECYCLE_STATE_DELETEDZLIFECYCLE_STATE_FAILEDZLIFECYCLE_STATE_INACTIVEZLIFECYCLE_STATE_NEEDS_ATTENTIONZLIFECYCLE_STATE_UPDATINGr3   Úpropertyr   Úsetterr   r   r   r   r   r   r   r   r   r   r   r   r   r   rP   rT   rU   r1   r1   r1   r2   r      s”    x





























r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r1   r1   r1   r2   Ú<module>   s   