ruạṛ
a ���f � @ 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 ZdZdZdZdd� Zedd� �Ze dd � �Z e jd d � �Z e dd� �Zejd d� �Ze dd� �Z e jdd� �Z dd� Zdd� Zdd� ZdS )�DynamicSelectionKeyz� Base policy for defining how to match the context variable in an incoming request with selection keys when dynamically routing and dynamically authenticating requests. �ANY_OF�WILDCARDc K s2 dddd�| _ dddd�| _d| _d| _d| _dS )aL Initializes a new DynamicSelectionKey object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class: * :class:`~oci.apigateway.models.WildcardSelectionKey` * :class:`~oci.apigateway.models.AnyOfSelectionKey` The following keyword arguments are supported (corresponding to the getters/setters of this class): :param type: The value to assign to the type property of this DynamicSelectionKey. Allowed values for this property are: "ANY_OF", "WILDCARD", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type type: str :param is_default: The value to assign to the is_default property of this DynamicSelectionKey. :type is_default: bool :param name: The value to assign to the name property of this DynamicSelectionKey. :type name: str �str�bool)�type� is_default�namer Z isDefaultr N)Z swagger_typesZ attribute_map�_type�_is_default�_name)�self�kwargs� r �O/usr/lib/python3.9/site-packages/oci/apigateway/models/dynamic_selection_key.py�__init__ s ��zDynamicSelectionKey.__init__c C s( | d }|dkrdS |dkr dS dS dS )z� Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype. r r ZWildcardSelectionKeyr ZAnyOfSelectionKeyr Nr )Zobject_dictionaryr r r r �get_subtypeC s zDynamicSelectionKey.get_subtypec C s | j S )ae Gets the type of this DynamicSelectionKey. Type of the selection key. Allowed values for this property are: "ANY_OF", "WILDCARD", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The type of this DynamicSelectionKey. :rtype: str )r �r r r r r S s zDynamicSelectionKey.typec C s ddg}t ||�sd}|| _dS )z� Sets the type of this DynamicSelectionKey. Type of the selection key. :param type: The type of this DynamicSelectionKey. :type: str r r ZUNKNOWN_ENUM_VALUEN)r r )r r Zallowed_valuesr r r r b s c C s | j S )a� Gets the is_default of this DynamicSelectionKey. Specifies whether to use the route or authentication server associated with this selection key as the default. The default is used if the value of a context variable in an incoming request does not match any of the other selection key values when dynamically routing and dynamically authenticating requests. :return: The is_default of this DynamicSelectionKey. :rtype: bool �r r r r r r q s zDynamicSelectionKey.is_defaultc C s || _ dS )a� Sets the is_default of this DynamicSelectionKey. Specifies whether to use the route or authentication server associated with this selection key as the default. The default is used if the value of a context variable in an incoming request does not match any of the other selection key values when dynamically routing and dynamically authenticating requests. :param is_default: The is_default of this DynamicSelectionKey. :type: bool Nr )r r r r r r } s c C s | j S )z� **[Required]** Gets the name of this DynamicSelectionKey. Name assigned to the branch. :return: The name of this DynamicSelectionKey. :rtype: str �r r r r r r � s zDynamicSelectionKey.namec C s || _ dS )z� Sets the name of this DynamicSelectionKey. Name assigned to the branch. :param name: The name of this DynamicSelectionKey. :type: str Nr )r r r r r r � s c C s t | �S �N)r r r r r �__repr__� s zDynamicSelectionKey.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__� s zDynamicSelectionKey.__eq__c C s | |k S r r r r r r �__ne__� s zDynamicSelectionKey.__ne__N)�__name__� __module__�__qualname__�__doc__ZTYPE_ANY_OFZ TYPE_WILDCARDr �staticmethodr �propertyr �setterr r r r r r r r r r s* ) r N)Zoci.utilr r r Zoci.decoratorsr �objectr r r r r �<module> s
cải xoăn