o
    ɶdH                     @   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d8d9 Zd:d; Z d<d= Z!d>S )?ZoneSummaryz
    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   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S )a
  
        Initializes a new ZoneSummary 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 ZoneSummary.
        :type name: str

        :param zone_type:
            The value to assign to the zone_type property of this ZoneSummary.
            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 ZoneSummary.
        :type compartment_id: str

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

        :param scope:
            The value to assign to the scope property of this ZoneSummary.
            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 ZoneSummary.
        :type freeform_tags: dict(str, str)

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

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

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

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

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

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

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

        strzdict(str, str)zdict(str, dict(str, object))datetimeintbool)name	zone_typecompartment_idview_idscopefreeform_tagsdefined_tagsself_uriidtime_createdversionseriallifecycle_stateis_protectedr   ZzoneTypeZcompartmentIdZviewIdr   ZfreeformTagsZdefinedTagsselfr   ZtimeCreatedr   r    ZlifecycleStateZisProtectedN)Zswagger_typesZattribute_map_name
_zone_type_compartment_id_view_id_scope_freeform_tags_defined_tags	_self_uri_id_time_created_version_serial_lifecycle_state_is_protected)r#   kwargs r3   ?usr/lib/python3.10/site-packages/oci/dns/models/zone_summary.py__init__<   sX   E
zZoneSummary.__init__c                 C      | j S )z
        **[Required]** Gets the name of this ZoneSummary.
        The name of the zone.


        :return: The name of this ZoneSummary.
        :rtype: str
        r$   r#   r3   r3   r4   r         
zZoneSummary.namec                 C   
   || _ dS )z
        Sets the name of this ZoneSummary.
        The name of the zone.


        :param name: The name of this ZoneSummary.
        :type: str
        Nr7   )r#   r   r3   r3   r4   r         

c                 C   r6   )a  
        **[Required]** Gets the zone_type of this ZoneSummary.
        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 ZoneSummary.
        :rtype: str
        )r%   r8   r3   r3   r4   r         zZoneSummary.zone_typec                 C       ddg}t ||sd}|| _dS )a  
        Sets the zone_type of this ZoneSummary.
        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 ZoneSummary.
        :type: str
        r   r   UNKNOWN_ENUM_VALUEN)r   r%   )r#   r   allowed_valuesr3   r3   r4   r         


c                 C   r6   )z
        **[Required]** Gets the compartment_id of this ZoneSummary.
        The OCID of the compartment containing the zone.


        :return: The compartment_id of this ZoneSummary.
        :rtype: str
        r&   r8   r3   r3   r4   r      r9   zZoneSummary.compartment_idc                 C   r:   )z
        Sets the compartment_id of this ZoneSummary.
        The OCID of the compartment containing the zone.


        :param compartment_id: The compartment_id of this ZoneSummary.
        :type: str
        NrA   )r#   r   r3   r3   r4   r      r;   c                 C   r6   )a<  
        Gets the view_id of this ZoneSummary.
        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 ZoneSummary.
        :rtype: str
        r'   r8   r3   r3   r4   r         zZoneSummary.view_idc                 C   r:   )aB  
        Sets the view_id of this ZoneSummary.
        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 ZoneSummary.
        :type: str
        NrB   )r#   r   r3   r3   r4   r        
c                 C   r6   )aa  
        **[Required]** Gets the scope of this ZoneSummary.
        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 ZoneSummary.
        :rtype: str
        )r(   r8   r3   r3   r4   r     r<   zZoneSummary.scopec                 C   r=   )z
        Sets the scope of this ZoneSummary.
        The scope of the zone.


        :param scope: The scope of this ZoneSummary.
        :type: str
        r	   r
   r>   N)r   r(   )r#   r   r?   r3   r3   r4   r   *  r@   c                 C   r6   )a  
        **[Required]** Gets the freeform_tags of this ZoneSummary.
        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 ZoneSummary.
        :rtype: dict(str, str)
        r)   r8   r3   r3   r4   r   9     zZoneSummary.freeform_tagsc                 C   r:   )a  
        Sets the freeform_tags of this ZoneSummary.
        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 ZoneSummary.
        :type: dict(str, str)
        NrE   )r#   r   r3   r3   r4   r   K     
c                 C   r6   )a  
        **[Required]** Gets the defined_tags of this ZoneSummary.
        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 ZoneSummary.
        :rtype: dict(str, dict(str, object))
        r*   r8   r3   r3   r4   r   ]  rF   zZoneSummary.defined_tagsc                 C   r:   )a  
        Sets the defined_tags of this ZoneSummary.
        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 ZoneSummary.
        :type: dict(str, dict(str, object))
        NrH   )r#   r   r3   r3   r4   r   o  rG   c                 C   r6   )z
        **[Required]** Gets the self_uri of this ZoneSummary.
        The canonical absolute URL of the resource.


        :return: The self_uri of this ZoneSummary.
        :rtype: str
        r+   r8   r3   r3   r4   r     r9   zZoneSummary.self_uric                 C   r:   )z
        Sets the self_uri of this ZoneSummary.
        The canonical absolute URL of the resource.


        :param self_uri: The self_uri of this ZoneSummary.
        :type: str
        NrI   )r#   r   r3   r3   r4   r     r;   c                 C   r6   )z
        **[Required]** Gets the id of this ZoneSummary.
        The OCID of the zone.


        :return: The id of this ZoneSummary.
        :rtype: str
        r,   r8   r3   r3   r4   r     r9   zZoneSummary.idc                 C   r:   )z
        Sets the id of this ZoneSummary.
        The OCID of the zone.


        :param id: The id of this ZoneSummary.
        :type: str
        NrJ   )r#   r   r3   r3   r4   r     r;   c                 C   r6   )aR  
        **[Required]** Gets the time_created of this ZoneSummary.
        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 ZoneSummary.
        :rtype: datetime
        r-   r8   r3   r3   r4   r     r<   zZoneSummary.time_createdc                 C   r:   )aN  
        Sets the time_created of this ZoneSummary.
        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 ZoneSummary.
        :type: datetime
        NrK   )r#   r   r3   r3   r4   r     s   
c                 C   r6   )a/  
        **[Required]** Gets the version of this ZoneSummary.
        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 ZoneSummary.
        :rtype: str
        r.   r8   r3   r3   r4   r     rC   zZoneSummary.versionc                 C   r:   )a&  
        Sets the version of this ZoneSummary.
        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 ZoneSummary.
        :type: str
        NrL   )r#   r   r3   r3   r4   r     rD   c                 C   r6   )z
        **[Required]** Gets the serial of this ZoneSummary.
        The current serial of the zone. As seen in the zone's SOA record.


        :return: The serial of this ZoneSummary.
        :rtype: int
        r/   r8   r3   r3   r4   r      r9   zZoneSummary.serialc                 C   r:   )z
        Sets the serial of this ZoneSummary.
        The current serial of the zone. As seen in the zone's SOA record.


        :param serial: The serial of this ZoneSummary.
        :type: int
        NrM   )r#   r    r3   r3   r4   r      r;   c                 C   r6   )a  
        **[Required]** Gets the lifecycle_state of this ZoneSummary.
        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 ZoneSummary.
        :rtype: str
        )r0   r8   r3   r3   r4   r!     r<   zZoneSummary.lifecycle_statec                 C   s    g d}t ||sd}|| _dS )z
        Sets the lifecycle_state of this ZoneSummary.
        The current state of the zone resource.


        :param lifecycle_state: The lifecycle_state of this ZoneSummary.
        :type: str
        )r   r   r   r   r   r   r>   N)r   r0   )r#   r!   r?   r3   r3   r4   r!     r@   c                 C   r6   )a  
        **[Required]** Gets the is_protected of this ZoneSummary.
        A Boolean flag indicating whether or not parts of the resource are unable to be explicitly managed.


        :return: The is_protected of this ZoneSummary.
        :rtype: bool
        r1   r8   r3   r3   r4   r"   !  r9   zZoneSummary.is_protectedc                 C   r:   )a  
        Sets the is_protected of this ZoneSummary.
        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 ZoneSummary.
        :type: bool
        NrN   )r#   r"   r3   r3   r4   r"   -  r;   c                 C   s   t | S N)r   r8   r3   r3   r4   __repr__9  s   zZoneSummary.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r#   otherr3   r3   r4   __eq__<  s   zZoneSummary.__eq__c                 C   s
   | |k S rO   r3   rR   r3   r3   r4   __ne__B  s   
zZoneSummary.__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_UPDATINGr5   propertyr   setterr   r   r   r   r   r   r   r   r   r   r    r!   r"   rP   rT   rU   r3   r3   r3   r4   r      s    u



























r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r3   r3   r3   r4   <module>   s   