ruạṛ
a ���fR � @ sD d dl mZ ddlmZmZmZ ddlmZ eG dd� de��ZdS )� )�Rule� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ sd e Zd ZdZdd� Zedd� �Zejdd� �Zedd� �Zejd d� �Zd d� Z dd � Z dd� ZdS )� AllowRulea� An object that represents the action of configuring an access control rule. Access control rules permit access to application resources based on user-specified match conditions. This rule applies only to HTTP listeners. **NOTES:** * If you do not specify any access control rules, the default rule is to allow all traffic. * If you add access control rules, the load balancer denies any traffic that does not match the rules. * Maximum of two match conditions can be specified in a rule. * You can specify this rule only with the following `RuleCondition` combinations: * `SOURCE_IP_ADDRESS` * `SOURCE_VCN_ID` * `SOURCE_VCN_ID", "SOURCE_VCN_IP_ADDRESS` c K s8 dddd�| _ dddd�| _d| _d| _d| _d| _dS ) aj Initializes a new AllowRule object with values from keyword arguments. The default value of the :py:attr:`~oci.load_balancer.models.AllowRule.action` attribute of this class is ``ALLOW`` and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param action: The value to assign to the action property of this AllowRule. Allowed values for this property are: "ADD_HTTP_REQUEST_HEADER", "EXTEND_HTTP_REQUEST_HEADER_VALUE", "REMOVE_HTTP_REQUEST_HEADER", "ADD_HTTP_RESPONSE_HEADER", "EXTEND_HTTP_RESPONSE_HEADER_VALUE", "REMOVE_HTTP_RESPONSE_HEADER", "ALLOW", "CONTROL_ACCESS_USING_HTTP_METHODS", "REDIRECT", "HTTP_HEADER", "IP_BASED_MAX_CONNECTIONS" :type action: str :param conditions: The value to assign to the conditions property of this AllowRule. :type conditions: list[oci.load_balancer.models.RuleCondition] :param description: The value to assign to the description property of this AllowRule. :type description: str �strzlist[RuleCondition])�action� conditions�descriptionr r r NZALLOW)Z swagger_typesZ attribute_map�_action�_conditions�_description)�self�kwargs� r �G/usr/lib/python3.9/site-packages/oci/load_balancer/models/allow_rule.py�__init__ s ��zAllowRule.__init__c C s | j S )z� **[Required]** Gets the conditions of this AllowRule. :return: The conditions of this AllowRule. :rtype: list[oci.load_balancer.models.RuleCondition] �r �r r r r r A s zAllowRule.conditionsc C s || _ dS )z� Sets the conditions of this AllowRule. :param conditions: The conditions of this AllowRule. :type: list[oci.load_balancer.models.RuleCondition] Nr )r r r r r r K s c C s | j S )a> Gets the description of this AllowRule. A brief description of the access control rule. Avoid entering confidential information. example: `192.168.0.0/16 and 2001:db8::/32 are trusted clients. Whitelist them.` :return: The description of this AllowRule. :rtype: str �r r r r r r U s zAllowRule.descriptionc C s || _ dS )aH Sets the description of this AllowRule. A brief description of the access control rule. Avoid entering confidential information. example: `192.168.0.0/16 and 2001:db8::/32 are trusted clients. Whitelist them.` :param description: The description of this AllowRule. :type: str Nr )r r r r r r c s c C s t | �S �N)r r r r r �__repr__q s zAllowRule.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__t s zAllowRule.__eq__c C s | |k S r r r r r r �__ne__z s zAllowRule.__ne__N)�__name__� __module__�__qualname__�__doc__r �propertyr �setterr r r r r r r r r s % r N) Zruler Zoci.utilr r r Zoci.decoratorsr r r r r r �<module> s
cải xoăn