ruạṛ
a N��fvR � @ s8 d dl mZmZmZ d dlmZ eG dd� de��ZdS )� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ s e Zd ZdZdZdZdZdZdZdZ dZ d Zd ZdZ dd � Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zed d!� �Zejd"d!� �Zed#d$� �Zejd%d$� �Zed&d'� �Zejd(d'� �Zed)d*� �Zejd+d*� �Zed,d-� �Zejd.d-� �Zed/d0� �Zejd1d0� �Zed2d3� �Zejd4d3� �Zed5d6� �Zejd7d6� �Zed8d9� �Zejd:d9� �Zed;d<� �Z e jd=d<� �Z ed>d?� �Z!e!jd@d?� �Z!dAdB� Z"dCdD� Z#dEdF� Z$dGS )H�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 s� ddddddddddddddddd d �| _ ddd ddddddddddddddd �| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _ d| _d| _d| _d| _d| _dS )aw 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 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] �strzdict(str, str)zdict(str, dict(str, object))zlist[ExternalMaster]�datetime�int�boolzlist[Nameserver]zlist[ZoneTransferServer])�name� zone_type�compartment_id�view_id�scope� freeform_tags�defined_tags�external_masters�self_uri�id�time_created�version�serial�lifecycle_state�is_protected�nameservers�zone_transfer_serversr �zoneType� compartmentId�viewIdr �freeformTags�definedTags�externalMasters�selfr �timeCreatedr r! �lifecycleState�isProtectedr$ �zoneTransferServersN)� swagger_types� attribute_map�_name� _zone_type�_compartment_id�_view_id�_scope�_freeform_tags� _defined_tags�_external_masters� _self_uri�_id� _time_created�_version�_serial�_lifecycle_state� _is_protected�_nameservers�_zone_transfer_servers)r, �kwargs� rE �w/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/dns/models/zone.py�__init__: sj Q��z Zone.__init__c C s | j S )z� **[Required]** Gets the name of this Zone. The name of the zone. :return: The name of this Zone. :rtype: str �r3 �r, rE rE rF r � s z Zone.namec C s || _ dS )z� Sets the name of this Zone. The name of the zone. :param name: The name of this Zone. :type: str NrH )r, r rE rE rF r � s c C s | j S )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 )r4 rI rE rE rF r � s zZone.zone_typec C s ddg}t ||�sd}|| _dS )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 r4 )r, r �allowed_valuesrE rE rF r � s c C s | j S )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 �r5 rI rE rE rF r � s zZone.compartment_idc C s || _ dS )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 NrL )r, r rE rE rF r s c C s | j S )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 �r6 rI rE rE rF r s zZone.view_idc C s || _ dS )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 NrM )r, r rE rE rF r s c C s | j S )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 )r7 rI rE rE rF r . s z Zone.scopec C s ddg}t ||�sd}|| _dS )z� Sets the scope of this Zone. The scope of the zone. :param scope: The scope of this Zone. :type: str r r rJ N)r r7 )r, r rK rE rE rF r = s c C s | j S )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) �r8 rI rE rE rF r L s zZone.freeform_tagsc C s || _ dS )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) NrN )r, r rE rE rF r ^ s c C s | j S )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)) �r9 rI rE rE rF r p s zZone.defined_tagsc C s || _ dS )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)) NrO )r, r rE rE rF r � s c C s | j S )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: rI rE rE rF r � s zZone.external_mastersc C s || _ dS )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] NrP )r, r rE rE rF r � s c C s | j S )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 �r; rI rE rE rF r � s z Zone.self_uric C s || _ dS )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 NrQ )r, r rE rE rF r � s c C s | j S )z� **[Required]** Gets the id of this Zone. The OCID of the zone. :return: The id of this Zone. :rtype: str �r<