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                   @   s  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ed+d, Zejd-d, Zed.d/ Zejd0d/ Zed1d2 Zejd3d2 Zed4d5 Zejd6d5 Zd7d8 Zd9d: Zd;d< Zd=S )>Resolveraa  
    An OCI DNS resolver. If the resolver has an attached VCN, the VCN will attempt to answer queries based on the
    attached views in priority order. If the query does not match any of the attached views, the query will be
    evaluated against the default view. If the default view does not match, the rules will be evaluated in
    priority order. If no rules match the query, answers come from Internet DNS. A resolver may have a maximum of 10
    resolver endpoints.

    **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
    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| _d| _d| _dS )aa
  
        Initializes a new Resolver object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

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

        :param attached_vcn_id:
            The value to assign to the attached_vcn_id property of this Resolver.
        :type attached_vcn_id: str

        :param display_name:
            The value to assign to the display_name property of this Resolver.
        :type display_name: str

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

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

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

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

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

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this Resolver.
            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 _self:
            The value to assign to the _self property of this Resolver.
        :type _self: str

        :param default_view_id:
            The value to assign to the default_view_id property of this Resolver.
        :type default_view_id: str

        :param is_protected:
            The value to assign to the is_protected property of this Resolver.
        :type is_protected: bool

        :param endpoints:
            The value to assign to the endpoints property of this Resolver.
        :type endpoints: list[oci.dns.models.ResolverEndpointSummary]

        :param attached_views:
            The value to assign to the attached_views property of this Resolver.
        :type attached_views: list[oci.dns.models.AttachedView]

        :param rules:
            The value to assign to the rules property of this Resolver.
        :type rules: list[oci.dns.models.ResolverRule]

        strzdict(str, str)zdict(str, dict(str, object))datetimeboolzlist[ResolverEndpointSummary]zlist[AttachedView]zlist[ResolverRule])compartment_idattached_vcn_iddisplay_namefreeform_tagsdefined_tagsidtime_createdtime_updatedlifecycle_state_selfdefault_view_idis_protected	endpointsattached_viewsrulesZcompartmentIdZattachedVcnIdZdisplayNameZfreeformTagsZdefinedTagsr   ZtimeCreatedZtimeUpdatedZlifecycleStateselfZdefaultViewIdZisProtectedr   ZattachedViewsr   N)Zswagger_typesZattribute_map_compartment_id_attached_vcn_id_display_name_freeform_tags_defined_tags_id_time_created_time_updated_lifecycle_state_Resolver__self_default_view_id_is_protected
_endpoints_attached_views_rules)r   kwargs r0   ;usr/lib/python3.10/site-packages/oci/dns/models/resolver.py__init__0   s^   E
zResolver.__init__c                 C      | j S )z
        **[Required]** Gets the compartment_id of this Resolver.
        The OCID of the owning compartment.


        :return: The compartment_id of this Resolver.
        :rtype: str
        r    r   r0   r0   r1   r         
zResolver.compartment_idc                 C   
   || _ dS )z
        Sets the compartment_id of this Resolver.
        The OCID of the owning compartment.


        :param compartment_id: The compartment_id of this Resolver.
        :type: str
        Nr4   )r   r   r0   r0   r1   r         

c                 C   r3   )z
        Gets the attached_vcn_id of this Resolver.
        The OCID of the attached VCN.


        :return: The attached_vcn_id of this Resolver.
        :rtype: str
        r!   r5   r0   r0   r1   r      r6   zResolver.attached_vcn_idc                 C   r7   )z
        Sets the attached_vcn_id of this Resolver.
        The OCID of the attached VCN.


        :param attached_vcn_id: The attached_vcn_id of this Resolver.
        :type: str
        Nr9   )r   r   r0   r0   r1   r      r8   c                 C   r3   )z
        **[Required]** Gets the display_name of this Resolver.
        The display name of the resolver.


        :return: The display_name of this Resolver.
        :rtype: str
        r"   r5   r0   r0   r1   r      r6   zResolver.display_namec                 C   r7   )z
        Sets the display_name of this Resolver.
        The display name of the resolver.


        :param display_name: The display_name of this Resolver.
        :type: str
        Nr:   )r   r   r0   r0   r1   r      r8   c                 C   r3   )a  
        **[Required]** Gets the freeform_tags of this Resolver.
        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 Resolver.
        :rtype: dict(str, str)
        r#   r5   r0   r0   r1   r         zResolver.freeform_tagsc                 C   r7   )a  
        Sets the freeform_tags of this Resolver.
        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 Resolver.
        :type: dict(str, str)
        Nr;   )r   r   r0   r0   r1   r        
c                 C   r3   )a  
        **[Required]** Gets the defined_tags of this Resolver.
        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 Resolver.
        :rtype: dict(str, dict(str, object))
        r$   r5   r0   r0   r1   r     r<   zResolver.defined_tagsc                 C   r7   )a  
        Sets the defined_tags of this Resolver.
        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 Resolver.
        :type: dict(str, dict(str, object))
        Nr>   )r   r   r0   r0   r1   r   &  r=   c                 C   r3   )z
        **[Required]** Gets the id of this Resolver.
        The OCID of the resolver.


        :return: The id of this Resolver.
        :rtype: str
        r%   r5   r0   r0   r1   r   8  r6   zResolver.idc                 C   r7   )z
        Sets the id of this Resolver.
        The OCID of the resolver.


        :param id: The id of this Resolver.
        :type: str
        Nr?   )r   r   r0   r0   r1   r   D  r8   c                 C   r3   )aL  
        **[Required]** Gets the time_created of this Resolver.
        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 Resolver.
        :rtype: datetime
        r&   r5   r0   r0   r1   r   P     zResolver.time_createdc                 C   r7   )aH  
        Sets the time_created of this Resolver.
        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 Resolver.
        :type: datetime
        Nr@   )r   r   r0   r0   r1   r   _     
c                 C   r3   )aQ  
        **[Required]** Gets the time_updated of this Resolver.
        The date and time the resource was last updated 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_updated of this Resolver.
        :rtype: datetime
        r'   r5   r0   r0   r1   r   n  rA   zResolver.time_updatedc                 C   r7   )aM  
        Sets the time_updated of this Resolver.
        The date and time the resource was last updated 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_updated: The time_updated of this Resolver.
        :type: datetime
        NrC   )r   r   r0   r0   r1   r   }  rB   c                 C   r3   )a  
        **[Required]** Gets the lifecycle_state of this Resolver.
        The current state of the 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 Resolver.
        :rtype: str
        )r(   r5   r0   r0   r1   r     rA   zResolver.lifecycle_statec                 C   s    g d}t ||sd}|| _dS )z
        Sets the lifecycle_state of this Resolver.
        The current state of the resource.


        :param lifecycle_state: The lifecycle_state of this Resolver.
        :type: str
        )r   r   r	   r
   r   r   ZUNKNOWN_ENUM_VALUEN)r   r(   )r   r   Zallowed_valuesr0   r0   r1   r     s   


c                 C   r3   )z
        **[Required]** Gets the _self of this Resolver.
        The canonical absolute URL of the resource.


        :return: The _self of this Resolver.
        :rtype: str
        r)   r5   r0   r0   r1   r     r6   zResolver._selfc                 C   r7   )z
        Sets the _self of this Resolver.
        The canonical absolute URL of the resource.


        :param _self: The _self of this Resolver.
        :type: str
        NrD   )r   r   r0   r0   r1   r     r8   c                 C   r3   )z
        Gets the default_view_id of this Resolver.
        The OCID of the default view.


        :return: The default_view_id of this Resolver.
        :rtype: str
        r*   r5   r0   r0   r1   r     r6   zResolver.default_view_idc                 C   r7   )z
        Sets the default_view_id of this Resolver.
        The OCID of the default view.


        :param default_view_id: The default_view_id of this Resolver.
        :type: str
        NrE   )r   r   r0   r0   r1   r     r8   c                 C   r3   )z
        **[Required]** Gets the is_protected of this Resolver.
        A Boolean flag indicating whether or not parts of the resource are unable to be explicitly managed.


        :return: The is_protected of this Resolver.
        :rtype: bool
        r+   r5   r0   r0   r1   r     r6   zResolver.is_protectedc                 C   r7   )z
        Sets the is_protected of this Resolver.
        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 Resolver.
        :type: bool
        NrF   )r   r   r0   r0   r1   r     r8   c                 C   r3   )z
        **[Required]** Gets the endpoints of this Resolver.
        Read-only array of endpoints for the resolver.


        :return: The endpoints of this Resolver.
        :rtype: list[oci.dns.models.ResolverEndpointSummary]
        r,   r5   r0   r0   r1   r     r6   zResolver.endpointsc                 C   r7   )z
        Sets the endpoints of this Resolver.
        Read-only array of endpoints for the resolver.


        :param endpoints: The endpoints of this Resolver.
        :type: list[oci.dns.models.ResolverEndpointSummary]
        NrG   )r   r   r0   r0   r1   r     r8   c                 C   r3   )z
        **[Required]** Gets the attached_views of this Resolver.
        The attached views. Views are evaluated in order.


        :return: The attached_views of this Resolver.
        :rtype: list[oci.dns.models.AttachedView]
        r-   r5   r0   r0   r1   r   
  r6   zResolver.attached_viewsc                 C   r7   )z
        Sets the attached_views of this Resolver.
        The attached views. Views are evaluated in order.


        :param attached_views: The attached_views of this Resolver.
        :type: list[oci.dns.models.AttachedView]
        NrH   )r   r   r0   r0   r1   r     r8   c                 C   r3   )z
        Gets the rules of this Resolver.
        Rules for the resolver. Rules are evaluated in order.


        :return: The rules of this Resolver.
        :rtype: list[oci.dns.models.ResolverRule]
        r.   r5   r0   r0   r1   r   "  r6   zResolver.rulesc                 C   r7   )z
        Sets the rules of this Resolver.
        Rules for the resolver. Rules are evaluated in order.


        :param rules: The rules of this Resolver.
        :type: list[oci.dns.models.ResolverRule]
        NrI   )r   r   r0   r0   r1   r   .  r8   c                 C   s   t | S N)r   r5   r0   r0   r1   __repr__:  s   zResolver.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r   otherr0   r0   r1   __eq__=  s   zResolver.__eq__c                 C   s
   | |k S rJ   r0   rM   r0   r0   r1   __ne__C  s   
zResolver.__ne__N)__name__
__module____qualname____doc__ZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_CREATINGZLIFECYCLE_STATE_DELETEDZLIFECYCLE_STATE_DELETINGZLIFECYCLE_STATE_FAILEDZLIFECYCLE_STATE_UPDATINGr2   propertyr   setterr   r   r   r   r   r   r   r   r   r   r   r   r   r   rK   rO   rP   r0   r0   r0   r1   r      s    x





























r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r0   r0   r0   r1   <module>   s   