ruạṛ
a O��fF � @ sD d dl mZ ddlmZmZmZ ddlmZ eG dd� de��ZdS )� )� RuleCondition� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ st e Zd ZdZdZdZdZdZdd� Ze dd � �Z e jd d � �Z e dd� �Zejd d� �Zdd� Z dd� Zdd� ZdS )�PathMatchConditionzg The path string and match condition to apply when evaluating an incoming URI for redirection. �EXACT_MATCH�FORCE_LONGEST_PREFIX_MATCH�PREFIX_MATCH�SUFFIX_MATCHc K s8 dddd�| _ dddd�| _d| _d| _d| _d| _dS )a( Initializes a new PathMatchCondition object with values from keyword arguments. The default value of the :py:attr:`~oci.load_balancer.models.PathMatchCondition.attribute_name` attribute of this class is ``PATH`` and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param attribute_name: The value to assign to the attribute_name property of this PathMatchCondition. Allowed values for this property are: "SOURCE_IP_ADDRESS", "SOURCE_VCN_ID", "SOURCE_VCN_IP_ADDRESS", "PATH", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type attribute_name: str :param attribute_value: The value to assign to the attribute_value property of this PathMatchCondition. :type attribute_value: str :param operator: The value to assign to the operator property of this PathMatchCondition. Allowed values for this property are: "EXACT_MATCH", "FORCE_LONGEST_PREFIX_MATCH", "PREFIX_MATCH", "SUFFIX_MATCH", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type operator: str �str)�attribute_name�attribute_value�operator� attributeName�attributeValuer N�PATH)� swagger_types� attribute_map�_attribute_name�_attribute_value� _operator)�self�kwargs� r ��/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/load_balancer/models/path_match_condition.py�__init__ s ��zPathMatchCondition.__init__c C s | j S )a **[Required]** Gets the attribute_value of this PathMatchCondition. The path string that the redirection rule applies to. Example: `/example` :return: The attribute_value of this PathMatchCondition. :rtype: str �r �r r r r r H s z"PathMatchCondition.attribute_valuec C s || _ dS )a Sets the attribute_value of this PathMatchCondition. The path string that the redirection rule applies to. Example: `/example` :param attribute_value: The attribute_value of this PathMatchCondition. :type: str Nr )r r r r r r V s c C s | j S )aM **[Required]** Gets the operator of this PathMatchCondition. A string that specifies how to compare the PathMatchCondition object's `attributeValue` string to the incoming URI. * **EXACT_MATCH** - The incoming URI path must exactly and completely match the `attributeValue` string. * **FORCE_LONGEST_PREFIX_MATCH** - The system looks for the `attributeValue` string with the best, longest match of the beginning portion of the incoming URI path. * **PREFIX_MATCH** - The beginning portion of the incoming URI path must exactly match the `attributeValue` string. * **SUFFIX_MATCH** - The ending portion of the incoming URI path must exactly match the `attributeValue` string. Allowed values for this property are: "EXACT_MATCH", "FORCE_LONGEST_PREFIX_MATCH", "PREFIX_MATCH", "SUFFIX_MATCH", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The operator of this PathMatchCondition. :rtype: str )r r r r r r d s zPathMatchCondition.operatorc C s g d�}t ||�sd}|| _dS )aU Sets the operator of this PathMatchCondition. A string that specifies how to compare the PathMatchCondition object's `attributeValue` string to the incoming URI. * **EXACT_MATCH** - The incoming URI path must exactly and completely match the `attributeValue` string. * **FORCE_LONGEST_PREFIX_MATCH** - The system looks for the `attributeValue` string with the best, longest match of the beginning portion of the incoming URI path. * **PREFIX_MATCH** - The beginning portion of the incoming URI path must exactly match the `attributeValue` string. * **SUFFIX_MATCH** - The ending portion of the incoming URI path must exactly match the `attributeValue` string. :param operator: The operator of this PathMatchCondition. :type: str )r r r r �UNKNOWN_ENUM_VALUEN)r r )r r �allowed_valuesr r r r s c C s t | �S �N)r r r r r �__repr__� s zPathMatchCondition.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__� s zPathMatchCondition.__eq__c C s | |k S r"