ruạṛ
a ���f` � @ 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 )�HttpHeaderRulea� An object that represents the advance http header options that allow the setting of http header size and allow/disallow invalid characters in the http headers. For example httpLargeHeaderSizeInKB=32, the http header could have 4 buffers of 32KBs each This rule applies only to HTTP listeners. No more than one `HttpHeaderRule` object can be present in a given listener. c K s8 dddd�| _ dddd�| _d| _d| _d| _d | _dS ) a� Initializes a new HttpHeaderRule object with values from keyword arguments. The default value of the :py:attr:`~oci.load_balancer.models.HttpHeaderRule.action` attribute of this class is ``HTTP_HEADER`` 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 HttpHeaderRule. 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 are_invalid_characters_allowed: The value to assign to the are_invalid_characters_allowed property of this HttpHeaderRule. :type are_invalid_characters_allowed: bool :param http_large_header_size_in_kb: The value to assign to the http_large_header_size_in_kb property of this HttpHeaderRule. :type http_large_header_size_in_kb: int �str�bool�int)�action�are_invalid_characters_allowed�http_large_header_size_in_kbr ZareInvalidCharactersAllowedZhttpLargeHeaderSizeInKBNZHTTP_HEADER)Z swagger_typesZ attribute_map�_action�_are_invalid_characters_allowed�_http_large_header_size_in_kb)�self�kwargs� r �M/usr/lib/python3.9/site-packages/oci/load_balancer/models/http_header_rule.py�__init__ s ��zHttpHeaderRule.__init__c C s | j S )a� Gets the are_invalid_characters_allowed of this HttpHeaderRule. Indicates whether or not invalid characters in client header fields will be allowed. Valid names are composed of English letters, digits, hyphens and underscores. If "true", invalid characters are allowed in the HTTP header. If "false", invalid characters are not allowed in the HTTP header :return: The are_invalid_characters_allowed of this HttpHeaderRule. :rtype: bool �r �r r r r r ; s z-HttpHeaderRule.are_invalid_characters_allowedc C s || _ dS )a Sets the are_invalid_characters_allowed of this HttpHeaderRule. Indicates whether or not invalid characters in client header fields will be allowed. Valid names are composed of English letters, digits, hyphens and underscores. If "true", invalid characters are allowed in the HTTP header. If "false", invalid characters are not allowed in the HTTP header :param are_invalid_characters_allowed: The are_invalid_characters_allowed of this HttpHeaderRule. :type: bool Nr )r r r r r r J s c C s | j S )a� Gets the http_large_header_size_in_kb of this HttpHeaderRule. The maximum size of each buffer used for reading http client request header. This value indicates the maximum size allowed for each buffer. The allowed values for buffer size are 8, 16, 32 and 64. :return: The http_large_header_size_in_kb of this HttpHeaderRule. :rtype: int �r r r r r r Y s z+HttpHeaderRule.http_large_header_size_in_kbc C s || _ dS )a� Sets the http_large_header_size_in_kb of this HttpHeaderRule. The maximum size of each buffer used for reading http client request header. This value indicates the maximum size allowed for each buffer. The allowed values for buffer size are 8, 16, 32 and 64. :param http_large_header_size_in_kb: The http_large_header_size_in_kb of this HttpHeaderRule. :type: int Nr )r r r r r r g s c C s t | �S �N)r r r r r �__repr__u s zHttpHeaderRule.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__x s zHttpHeaderRule.__eq__c C s | |k S r r r r r r �__ne__~ s zHttpHeaderRule.__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