o
    ëÉ¶dG;  ã                   @   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ÚEmailDomainzž
    The properties that define a email domain.
    A Email Domain contains configuration used to assert responsibility for emails sent from that domain.
    ÚACTIVEÚCREATINGÚDELETINGÚDELETEDÚ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 EmailDomain 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 EmailDomain.
        :type name: str

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

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

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

        :param active_dkim_id:
            The value to assign to the active_dkim_id property of this EmailDomain.
        :type active_dkim_id: str

        :param is_spf:
            The value to assign to the is_spf property of this EmailDomain.
        :type is_spf: bool

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

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

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

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

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

        ÚstrÚboolÚdatetimezdict(str, str)zdict(str, dict(str, object)))ÚnameÚidÚcompartment_idÚlifecycle_stateÚactive_dkim_idÚis_spfÚdescriptionÚtime_createdÚfreeform_tagsÚdefined_tagsÚsystem_tagsr   r   ZcompartmentIdZlifecycleStateZactiveDkimIdZisSpfr   ZtimeCreatedZfreeformTagsZdefinedTagsZ
systemTagsN)Zswagger_typesZattribute_mapÚ_nameÚ_idÚ_compartment_idÚ_lifecycle_stateÚ_active_dkim_idÚ_is_spfÚ_descriptionÚ_time_createdÚ_freeform_tagsÚ_defined_tagsÚ_system_tags)ÚselfÚkwargs© r(   úAusr/lib/python3.10/site-packages/oci/email/models/email_domain.pyÚ__init__+   sF   5õõ
zEmailDomain.__init__c                 C   ó   | j S )z÷
        **[Required]** Gets the name of this EmailDomain.
        The name of the email domain in the Internet Domain Name System (DNS).

        Example: `example.net`


        :return: The name of this EmailDomain.
        :rtype: str
        ©r   ©r&   r(   r(   r)   r   ‡   ó   zEmailDomain.namec                 C   ó
   || _ dS )zë
        Sets the name of this EmailDomain.
        The name of the email domain in the Internet Domain Name System (DNS).

        Example: `example.net`


        :param name: The name of this EmailDomain.
        :type: str
        Nr,   )r&   r   r(   r(   r)   r   •   ó   
c                 C   r+   )a  
        **[Required]** Gets the id of this EmailDomain.
        The `OCID`__ of the email domain.

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


        :return: The id of this EmailDomain.
        :rtype: str
        ©r   r-   r(   r(   r)   r   £   r.   zEmailDomain.idc                 C   r/   )zø
        Sets the id of this EmailDomain.
        The `OCID`__ of the email domain.

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


        :param id: The id of this EmailDomain.
        :type: str
        Nr1   )r&   r   r(   r(   r)   r   ±   r0   c                 C   r+   )a.  
        Gets the compartment_id of this EmailDomain.
        The `OCID`__ of the compartment that contains this email domain.

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


        :return: The compartment_id of this EmailDomain.
        :rtype: str
        ©r   r-   r(   r(   r)   r   ¿   r.   zEmailDomain.compartment_idc                 C   r/   )a;  
        Sets the compartment_id of this EmailDomain.
        The `OCID`__ of the compartment that contains this email domain.

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


        :param compartment_id: The compartment_id of this EmailDomain.
        :type: str
        Nr2   )r&   r   r(   r(   r)   r   Í   r0   c                 C   r+   )a¤  
        Gets the lifecycle_state of this EmailDomain.
        The current state of the email domain.

        Allowed values for this property are: "ACTIVE", "CREATING", "DELETING", "DELETED", "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 EmailDomain.
        :rtype: str
        )r   r-   r(   r(   r)   r   Û   ó   zEmailDomain.lifecycle_statec                 C   s    g d¢}t ||ƒsd}|| _dS )zÌ
        Sets the lifecycle_state of this EmailDomain.
        The current state of the email domain.


        :param lifecycle_state: The lifecycle_state of this EmailDomain.
        :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+   )aN  
        Gets the active_dkim_id of this EmailDomain.
        The `OCID`__ of the DKIM key
        that will be used to sign mail sent from this email domain.

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


        :return: The active_dkim_id of this EmailDomain.
        :rtype: str
        ©r   r-   r(   r(   r)   r   ù   r3   zEmailDomain.active_dkim_idc                 C   r/   )a[  
        Sets the active_dkim_id of this EmailDomain.
        The `OCID`__ of the DKIM key
        that will be used to sign mail sent from this email domain.

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


        :param active_dkim_id: The active_dkim_id of this EmailDomain.
        :type: str
        Nr4   )r&   r   r(   r(   r)   r     ó   
c                 C   r+   )aG  
        Gets the is_spf of this EmailDomain.
        Value of the SPF field. For more information about SPF, please see
        `SPF Authentication`__.

        __ https://docs.cloud.oracle.com/iaas/Content/Email/Concepts/overview.htm#components


        :return: The is_spf of this EmailDomain.
        :rtype: bool
        ©r    r-   r(   r(   r)   r     r3   zEmailDomain.is_spfc                 C   r/   )aL  
        Sets the is_spf of this EmailDomain.
        Value of the SPF field. For more information about SPF, please see
        `SPF Authentication`__.

        __ https://docs.cloud.oracle.com/iaas/Content/Email/Concepts/overview.htm#components


        :param is_spf: The is_spf of this EmailDomain.
        :type: bool
        Nr6   )r&   r   r(   r(   r)   r   &  r5   c                 C   r+   )z²
        Gets the description of this EmailDomain.
        The description of a email domain.


        :return: The description of this EmailDomain.
        :rtype: str
        ©r!   r-   r(   r(   r)   r   5  s   
zEmailDomain.descriptionc                 C   r/   )z¼
        Sets the description of this EmailDomain.
        The description of a email domain.


        :param description: The description of this EmailDomain.
        :type: str
        Nr7   )r&   r   r(   r(   r)   r   A  s   

c                 C   r+   )ac  
        Gets the time_created of this EmailDomain.
        The time the email domain was created, 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 EmailDomain.
        :rtype: datetime
        ©r"   r-   r(   r(   r)   r   M  ó   zEmailDomain.time_createdc                 C   r/   )an  
        Sets the time_created of this EmailDomain.
        The time the email domain was created, 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 EmailDomain.
        :type: datetime
        Nr8   )r&   r   r(   r(   r)   r   ^  ó   
c                 C   r+   )aÈ  
        Gets the freeform_tags of this EmailDomain.
        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 EmailDomain.
        :rtype: dict(str, str)
        ©r#   r-   r(   r(   r)   r   o  r9   zEmailDomain.freeform_tagsc                 C   r/   )aÔ  
        Sets the freeform_tags of this EmailDomain.
        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 EmailDomain.
        :type: dict(str, str)
        Nr;   )r&   r   r(   r(   r)   r   €  r:   c                 C   r+   )a¾  
        Gets the defined_tags of this EmailDomain.
        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 EmailDomain.
        :rtype: dict(str, dict(str, object))
        ©r$   r-   r(   r(   r)   r   ‘  r9   zEmailDomain.defined_tagsc                 C   r/   )aÉ  
        Sets the defined_tags of this EmailDomain.
        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 EmailDomain.
        :type: dict(str, dict(str, object))
        Nr<   )r&   r   r(   r(   r)   r   ¢  r:   c                 C   r+   )a4  
        Gets the system_tags of this EmailDomain.
        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 EmailDomain.
        :rtype: dict(str, dict(str, object))
        ©r%   r-   r(   r(   r)   r   ³  s   zEmailDomain.system_tagsc                 C   r/   )a>  
        Sets the system_tags of this EmailDomain.
        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 EmailDomain.
        :type: dict(str, dict(str, object))
        Nr=   )r&   r   r(   r(   r)   r   À  s   
c                 C   s   t | ƒS ©N)r   r-   r(   r(   r)   Ú__repr__Í  s   zEmailDomain.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r&   Úotherr(   r(   r)   Ú__eq__Ð  s   zEmailDomain.__eq__c                 C   s
   | |k S r>   r(   rA   r(   r(   r)   Ú__ne__Ö  s   
zEmailDomain.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_CREATINGZLIFECYCLE_STATE_DELETINGZLIFECYCLE_STATE_DELETEDZLIFECYCLE_STATE_FAILEDZLIFECYCLE_STATE_UPDATINGr*   Úpropertyr   Úsetterr   r   r   r   r   r   r   r   r   r   r?   rC   rD   r(   r(   r(   r)   r      sp    \





















r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r(   r(   r(   r)   Ú<module>   s   