o
    ëÉ¶dÿW  ã                   @   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
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/d0„ ƒZejd1d0„ ƒZed2d3„ ƒZejd4d3„ ƒZed5d6„ ƒZejd7d6„ ƒZed8d9„ ƒZejd:d9„ ƒZed;d<„ ƒZ e jd=d<„ ƒZ ed>d?„ ƒZ!e!jd@d?„ ƒZ!edAdB„ ƒZ"e"jdCdB„ ƒZ"dDdE„ Z#dFdG„ Z$dHdI„ Z%dJS )KÚZonez˜
    A DNS zone.

    **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
    ÚPRIMARYÚ	SECONDARYÚGLOBALÚPRIVATEÚACTIVEÚCREATINGÚDELETEDÚDELETINGÚFAILEDÚUPDATINGc                 K   sX  i 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i¥| _ i 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(i¥| _d)| _d)| _d)| _d)| _d)| _d)| _d)| _d)| _	d)| _
d)| _d)| _d)| _d)| _d)| _d)| _d)| _d)| _d)| _d)S )*a<  
        Initializes a new Zone 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 Zone.
        :type name: str

        :param zone_type:
            The value to assign to the zone_type property of this Zone.
            Allowed values for this property are: "PRIMARY", "SECONDARY", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type zone_type: str

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

        :param view_id:
            The value to assign to the view_id property of this Zone.
        :type view_id: str

        :param scope:
            The value to assign to the scope property of this Zone.
            Allowed values for this property are: "GLOBAL", "PRIVATE", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type scope: str

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

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

        :param external_masters:
            The value to assign to the external_masters property of this Zone.
        :type external_masters: list[oci.dns.models.ExternalMaster]

        :param external_downstreams:
            The value to assign to the external_downstreams property of this Zone.
        :type external_downstreams: list[oci.dns.models.ExternalDownstream]

        :param self_uri:
            The value to assign to the self_uri property of this Zone.
        :type self_uri: str

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

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

        :param version:
            The value to assign to the version property of this Zone.
        :type version: str

        :param serial:
            The value to assign to the serial property of this Zone.
        :type serial: int

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this Zone.
            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 is_protected:
            The value to assign to the is_protected property of this Zone.
        :type is_protected: bool

        :param nameservers:
            The value to assign to the nameservers property of this Zone.
        :type nameservers: list[oci.dns.models.Nameserver]

        :param zone_transfer_servers:
            The value to assign to the zone_transfer_servers property of this Zone.
        :type zone_transfer_servers: list[oci.dns.models.ZoneTransferServer]

        ÚnameÚstrÚ	zone_typeÚcompartment_idÚview_idÚscopeÚfreeform_tagszdict(str, str)Údefined_tagszdict(str, dict(str, object))Úexternal_masterszlist[ExternalMaster]Úexternal_downstreamszlist[ExternalDownstream]Úself_uriÚidÚtime_createdÚdatetimeÚversionÚserialÚintÚlifecycle_stateÚis_protectedÚboolÚnameserverszlist[Nameserver]Úzone_transfer_serverszlist[ZoneTransferServer]ZzoneTypeZcompartmentIdZviewIdZfreeformTagsZdefinedTagsZexternalMastersZexternalDownstreamsÚselfZtimeCreatedZlifecycleStateZisProtectedZzoneTransferServersN)Zswagger_typesZattribute_mapÚ_nameÚ
_zone_typeÚ_compartment_idÚ_view_idÚ_scopeÚ_freeform_tagsÚ_defined_tagsÚ_external_mastersÚ_external_downstreamsÚ	_self_uriÚ_idÚ_time_createdÚ_versionÚ_serialÚ_lifecycle_stateÚ_is_protectedÚ_nameserversÚ_zone_transfer_servers)r'   Úkwargs© r;   ú7usr/lib/python3.10/site-packages/oci/dns/models/zone.pyÚ__init__<   s¸   Tÿþýüûúùø	÷
öõôóòñðïîÿþýüûúùø	÷
öõôóòñðïî
zZone.__init__c                 C   ó   | j S )z˜
        **[Required]** Gets the name of this Zone.
        The name of the zone.


        :return: The name of this Zone.
        :rtype: str
        ©r(   ©r'   r;   r;   r<   r   Í   ó   
z	Zone.namec                 C   ó
   || _ dS )zŒ
        Sets the name of this Zone.
        The name of the zone.


        :param name: The name of this Zone.
        :type: str
        Nr?   )r'   r   r;   r;   r<   r   Ù   ó   

c                 C   r>   )a¶  
        **[Required]** Gets the zone_type of this Zone.
        The type of the zone. Must be either `PRIMARY` or `SECONDARY`. `SECONDARY` is only supported for GLOBAL zones.

        Allowed values for this property are: "PRIMARY", "SECONDARY", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The zone_type of this Zone.
        :rtype: str
        )r)   r@   r;   r;   r<   r   å   ó   zZone.zone_typec                 C   ó    ddg}t ||ƒsd}|| _dS )zô
        Sets the zone_type of this Zone.
        The type of the zone. Must be either `PRIMARY` or `SECONDARY`. `SECONDARY` is only supported for GLOBAL zones.


        :param zone_type: The zone_type of this Zone.
        :type: str
        r   r   ÚUNKNOWN_ENUM_VALUEN)r   r)   )r'   r   Úallowed_valuesr;   r;   r<   r   ô   ó   


c                 C   r>   )zÇ
        **[Required]** Gets the compartment_id of this Zone.
        The OCID of the compartment containing the zone.


        :return: The compartment_id of this Zone.
        :rtype: str
        ©r*   r@   r;   r;   r<   r     rA   zZone.compartment_idc                 C   rB   )zÅ
        Sets the compartment_id of this Zone.
        The OCID of the compartment containing the zone.


        :param compartment_id: The compartment_id of this Zone.
        :type: str
        NrI   )r'   r   r;   r;   r<   r     rC   c                 C   r>   )a.  
        Gets the view_id of this Zone.
        The OCID of the private view containing the zone. This value will
        be null for zones in the global DNS, which are publicly resolvable and
        not part of a private view.


        :return: The view_id of this Zone.
        :rtype: str
        ©r+   r@   r;   r;   r<   r     ó   zZone.view_idc                 C   rB   )a4  
        Sets the view_id of this Zone.
        The OCID of the private view containing the zone. This value will
        be null for zones in the global DNS, which are publicly resolvable and
        not part of a private view.


        :param view_id: The view_id of this Zone.
        :type: str
        NrJ   )r'   r   r;   r;   r<   r   )  ó   
c                 C   r>   )aS  
        **[Required]** Gets the scope of this Zone.
        The scope of the zone.

        Allowed values for this property are: "GLOBAL", "PRIVATE", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The scope of this Zone.
        :rtype: str
        )r,   r@   r;   r;   r<   r   7  rD   z
Zone.scopec                 C   rE   )z
        Sets the scope of this Zone.
        The scope of the zone.


        :param scope: The scope of this Zone.
        :type: str
        r	   r
   rF   N)r   r,   )r'   r   rG   r;   r;   r<   r   F  rH   c                 C   r>   )aÎ  
        **[Required]** Gets the freeform_tags of this Zone.
        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 Zone.
        :rtype: dict(str, str)
        ©r-   r@   r;   r;   r<   r   U  ó   zZone.freeform_tagsc                 C   rB   )aË  
        Sets the freeform_tags of this Zone.
        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 Zone.
        :type: dict(str, str)
        NrM   )r'   r   r;   r;   r<   r   g  ó   
c                 C   r>   )aÄ  
        **[Required]** Gets the defined_tags of this Zone.
        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 Zone.
        :rtype: dict(str, dict(str, object))
        ©r.   r@   r;   r;   r<   r   y  rN   zZone.defined_tagsc                 C   rB   )aÀ  
        Sets the defined_tags of this Zone.
        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 Zone.
        :type: dict(str, dict(str, object))
        NrP   )r'   r   r;   r;   r<   r   ‹  rO   c                 C   r>   )aA  
        **[Required]** Gets the external_masters of this Zone.
        External master servers for the zone. `externalMasters` becomes a
        required parameter when the `zoneType` value is `SECONDARY`.


        :return: The external_masters of this Zone.
        :rtype: list[oci.dns.models.ExternalMaster]
        ©r/   r@   r;   r;   r<   r     ó   zZone.external_mastersc                 C   rB   )aA  
        Sets the external_masters of this Zone.
        External master servers for the zone. `externalMasters` becomes a
        required parameter when the `zoneType` value is `SECONDARY`.


        :param external_masters: The external_masters of this Zone.
        :type: list[oci.dns.models.ExternalMaster]
        NrQ   )r'   r   r;   r;   r<   r   ª  ó   
c                 C   r>   )aU  
        **[Required]** Gets the external_downstreams of this Zone.
        External secondary servers for the zone.
        This field is currently not supported when `zoneType` is `SECONDARY` or `scope` is `PRIVATE`.


        :return: The external_downstreams of this Zone.
        :rtype: list[oci.dns.models.ExternalDownstream]
        ©r0   r@   r;   r;   r<   r   ·  rR   zZone.external_downstreamsc                 C   rB   )aY  
        Sets the external_downstreams of this Zone.
        External secondary servers for the zone.
        This field is currently not supported when `zoneType` is `SECONDARY` or `scope` is `PRIVATE`.


        :param external_downstreams: The external_downstreams of this Zone.
        :type: list[oci.dns.models.ExternalDownstream]
        NrT   )r'   r   r;   r;   r<   r   Ä  rS   c                 C   r>   )z¶
        **[Required]** Gets the self_uri of this Zone.
        The canonical absolute URL of the resource.


        :return: The self_uri of this Zone.
        :rtype: str
        ©r1   r@   r;   r;   r<   r   Ñ  rA   zZone.self_uric                 C   rB   )z®
        Sets the self_uri of this Zone.
        The canonical absolute URL of the resource.


        :param self_uri: The self_uri of this Zone.
        :type: str
        NrU   )r'   r   r;   r;   r<   r   Ý  rC   c                 C   r>   )z”
        **[Required]** Gets the id of this Zone.
        The OCID of the zone.


        :return: The id of this Zone.
        :rtype: str
        ©r2   r@   r;   r;   r<   r   é  rA   zZone.idc                 C   rB   )z†
        Sets the id of this Zone.
        The OCID of the zone.


        :param id: The id of this Zone.
        :type: str
        NrV   )r'   r   r;   r;   r<   r   õ  rC   c                 C   r>   )aD  
        **[Required]** Gets the time_created of this Zone.
        The date and time the resource was created in "YYYY-MM-ddThh:mm:ssZ" format
        with a Z offset, as defined by RFC 3339.

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


        :return: The time_created of this Zone.
        :rtype: datetime
        ©r3   r@   r;   r;   r<   r     rD   zZone.time_createdc                 C   rB   )a@  
        Sets the time_created of this Zone.
        The date and time the resource was created in "YYYY-MM-ddThh:mm:ssZ" format
        with a Z offset, as defined by RFC 3339.

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


        :param time_created: The time_created of this Zone.
        :type: datetime
        NrW   )r'   r   r;   r;   r<   r     s   
c                 C   r>   )a!  
        **[Required]** Gets the version of this Zone.
        Version is the never-repeating, totally-orderable, version of the
        zone, from which the serial field of the zone's SOA record is
        derived.


        :return: The version of this Zone.
        :rtype: str
        ©r4   r@   r;   r;   r<   r     rK   zZone.versionc                 C   rB   )a  
        Sets the version of this Zone.
        Version is the never-repeating, totally-orderable, version of the
        zone, from which the serial field of the zone's SOA record is
        derived.


        :param version: The version of this Zone.
        :type: str
        NrX   )r'   r   r;   r;   r<   r   -  rL   c                 C   r>   )zÈ
        **[Required]** Gets the serial of this Zone.
        The current serial of the zone. As seen in the zone's SOA record.


        :return: The serial of this Zone.
        :rtype: int
        ©r5   r@   r;   r;   r<   r    ;  rA   zZone.serialc                 C   rB   )z¾
        Sets the serial of this Zone.
        The current serial of the zone. As seen in the zone's SOA record.


        :param serial: The serial of this Zone.
        :type: int
        NrY   )r'   r    r;   r;   r<   r    G  rC   c                 C   r>   )a¦  
        **[Required]** Gets the lifecycle_state of this Zone.
        The current state of the zone 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 Zone.
        :rtype: str
        )r6   r@   r;   r;   r<   r"   S  rD   zZone.lifecycle_statec                 C   s    g d¢}t ||ƒsd}|| _dS )z¿
        Sets the lifecycle_state of this Zone.
        The current state of the zone resource.


        :param lifecycle_state: The lifecycle_state of this Zone.
        :type: str
        )r   r   r   r   r   r   rF   N)r   r6   )r'   r"   rG   r;   r;   r<   r"   b  rH   c                 C   r>   )z÷
        **[Required]** Gets the is_protected of this Zone.
        A Boolean flag indicating whether or not parts of the resource are unable to be explicitly managed.


        :return: The is_protected of this Zone.
        :rtype: bool
        ©r7   r@   r;   r;   r<   r#   q  rA   zZone.is_protectedc                 C   rB   )zó
        Sets the is_protected of this Zone.
        A Boolean flag indicating whether or not parts of the resource are unable to be explicitly managed.


        :param is_protected: The is_protected of this Zone.
        :type: bool
        NrZ   )r'   r#   r;   r;   r<   r#   }  rC   c                 C   r>   )zØ
        **[Required]** Gets the nameservers of this Zone.
        The authoritative nameservers for the zone.


        :return: The nameservers of this Zone.
        :rtype: list[oci.dns.models.Nameserver]
        ©r8   r@   r;   r;   r<   r%   ‰  rA   zZone.nameserversc                 C   rB   )zÓ
        Sets the nameservers of this Zone.
        The authoritative nameservers for the zone.


        :param nameservers: The nameservers of this Zone.
        :type: list[oci.dns.models.Nameserver]
        Nr[   )r'   r%   r;   r;   r<   r%   •  rC   c                 C   r>   )a  
        Gets the zone_transfer_servers of this Zone.
        The OCI nameservers that transfer the zone data with external nameservers.


        :return: The zone_transfer_servers of this Zone.
        :rtype: list[oci.dns.models.ZoneTransferServer]
        ©r9   r@   r;   r;   r<   r&   ¡  rA   zZone.zone_transfer_serversc                 C   rB   )a  
        Sets the zone_transfer_servers of this Zone.
        The OCI nameservers that transfer the zone data with external nameservers.


        :param zone_transfer_servers: The zone_transfer_servers of this Zone.
        :type: list[oci.dns.models.ZoneTransferServer]
        Nr\   )r'   r&   r;   r;   r<   r&   ­  rC   c                 C   s   t | ƒS ©N)r   r@   r;   r;   r<   Ú__repr__¹  s   zZone.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r'   Úotherr;   r;   r<   Ú__eq__¼  s   zZone.__eq__c                 C   s
   | |k S r]   r;   r`   r;   r;   r<   Ú__ne__Â  s   
zZone.__ne__N)&Ú__name__Ú
__module__Ú__qualname__Ú__doc__ZZONE_TYPE_PRIMARYZZONE_TYPE_SECONDARYZSCOPE_GLOBALZSCOPE_PRIVATEZ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   r   r    r"   r#   r%   r&   r^   rb   rc   r;   r;   r;   r<   r      s²     



































r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r;   r;   r;   r<   Ú<module>   s   