📂 Advanced File Manager
Multi-Root Navigation System
⚡ Quick Jump
Server (/)
Home (/home)
Var_www (/var/www)
Current (/home4/shelley/public_html/shelleycutler.com/wp-content/mu-plugins)
📍 Go
⬆ Ke Atas
🏠 Root Server
🏠 Root App
🔄 Refresh
📀 /
›
usr
›
libexec
›
oracle-cloud-agent
›
plugins
›
osms
›
oci
›
waas
›
📁 models
📍
Lokasi:
/usr/libexec/oracle-cloud-agent/plugins/osms/oci/waas/models
💾
Free:
45.7 GB
⚠️ Direktori ini
tidak writable
.
✏️ Mengedit: access_rule.pyc
a O��f�l � @ 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 ZdZdZdZdZdZdZdZ dZ d Zd ZdZ dZd ZdZdZdd� Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejd d� �Zed!d"� �Zejd#d"� �Zed$d%� �Zejd&d%� �Zed'd(� �Zejd)d(� �Zed*d+� �Zejd,d+� �Zed-d.� �Zejd/d.� �Zed0d1� �Zejd2d1� �Zed3d4� �Z e jd5d4� �Z ed6d7� �Z!e!jd8d7� �Z!ed9d:� �Z"e"jd;d:� �Z"ed<d=� �Z#e#jd>d=� �Z#ed?d@� �Z$e$jdAd@� �Z$dBdC� Z%dDdE� Z&dFdG� Z'dHS )I� AccessRulezy A content access rule. An access rule specifies an action to take if a set of criteria is matched by a request. �ALLOW�DETECT�BLOCK�BYPASS�REDIRECT�SHOW_CAPTCHA�SET_RESPONSE_CODE�SHOW_ERROR_PAGE�JS_CHALLENGE�DEVICE_FINGERPRINT_CHALLENGE�HUMAN_INTERACTION_CHALLENGE�CAPTCHA�MOVED_PERMANENTLY�FOUNDc K s� ddddddddddddddddd�| _ ddd d ddd dddddddddd�| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _ d| _d| _d| _d| _dS )am Initializes a new AccessRule object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param name: The value to assign to the name property of this AccessRule. :type name: str :param criteria: The value to assign to the criteria property of this AccessRule. :type criteria: list[oci.waas.models.AccessRuleCriteria] :param action: The value to assign to the action property of this AccessRule. Allowed values for this property are: "ALLOW", "DETECT", "BLOCK", "BYPASS", "REDIRECT", "SHOW_CAPTCHA", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type action: str :param block_action: The value to assign to the block_action property of this AccessRule. Allowed values for this property are: "SET_RESPONSE_CODE", "SHOW_ERROR_PAGE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type block_action: str :param block_response_code: The value to assign to the block_response_code property of this AccessRule. :type block_response_code: int :param block_error_page_message: The value to assign to the block_error_page_message property of this AccessRule. :type block_error_page_message: str :param block_error_page_code: The value to assign to the block_error_page_code property of this AccessRule. :type block_error_page_code: str :param block_error_page_description: The value to assign to the block_error_page_description property of this AccessRule. :type block_error_page_description: str :param bypass_challenges: The value to assign to the bypass_challenges property of this AccessRule. Allowed values for items in this list are: "JS_CHALLENGE", "DEVICE_FINGERPRINT_CHALLENGE", "HUMAN_INTERACTION_CHALLENGE", "CAPTCHA", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type bypass_challenges: list[str] :param redirect_url: The value to assign to the redirect_url property of this AccessRule. :type redirect_url: str :param redirect_response_code: The value to assign to the redirect_response_code property of this AccessRule. Allowed values for this property are: "MOVED_PERMANENTLY", "FOUND", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type redirect_response_code: str :param captcha_title: The value to assign to the captcha_title property of this AccessRule. :type captcha_title: str :param captcha_header: The value to assign to the captcha_header property of this AccessRule. :type captcha_header: str :param captcha_footer: The value to assign to the captcha_footer property of this AccessRule. :type captcha_footer: str :param captcha_submit_label: The value to assign to the captcha_submit_label property of this AccessRule. :type captcha_submit_label: str :param response_header_manipulation: The value to assign to the response_header_manipulation property of this AccessRule. :type response_header_manipulation: list[oci.waas.models.HeaderManipulationAction] �strzlist[AccessRuleCriteria]�intz list[str]zlist[HeaderManipulationAction])�name�criteria�action�block_action�block_response_code�block_error_page_message�block_error_page_code�block_error_page_description�bypass_challenges�redirect_url�redirect_response_code� captcha_title�captcha_header�captcha_footer�captcha_submit_label�response_header_manipulationr r r �blockAction�blockResponseCode�blockErrorPageMessage�blockErrorPageCode�blockErrorPageDescription�bypassChallenges�redirectUrl�redirectResponseCode�captchaTitle� captchaHeader� captchaFooter�captchaSubmitLabel�responseHeaderManipulationN)� swagger_types� attribute_map�_name� _criteria�_action� _block_action�_block_response_code�_block_error_page_message�_block_error_page_code�_block_error_page_description�_bypass_challenges� _redirect_url�_redirect_response_code�_captcha_title�_captcha_header�_captcha_footer�_captcha_submit_label�_response_header_manipulation)�self�kwargs� rH �/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/waas/models/access_rule.py�__init__H sd O��zAccessRule.__init__c C s | j S )z� **[Required]** Gets the name of this AccessRule. The unique name of the access rule. :return: The name of this AccessRule. :rtype: str �r6 �rF rH rH rI r � s zAccessRule.namec C s || _ dS )z� Sets the name of this AccessRule. The unique name of the access rule. :param name: The name of this AccessRule. :type: str NrK )rF r rH rH rI r � s c C s | j S )a5 **[Required]** Gets the criteria of this AccessRule. The list of access rule criteria. The rule would be applied only for the requests that matched all the listed conditions. :return: The criteria of this AccessRule. :rtype: list[oci.waas.models.AccessRuleCriteria] �r7 rL rH rH rI r � s zAccessRule.criteriac C s || _ dS )a- Sets the criteria of this AccessRule. The list of access rule criteria. The rule would be applied only for the requests that matched all the listed conditions. :param criteria: The criteria of this AccessRule. :type: list[oci.waas.models.AccessRuleCriteria] NrM )rF r rH rH rI r � s c C s | j S )aX **[Required]** Gets the action of this AccessRule. The action to take when the access criteria are met for a rule. If unspecified, defaults to `ALLOW`. - **ALLOW:** Takes no action, just logs the request. - **DETECT:** Takes no action, but creates an alert for the request. - **BLOCK:** Blocks the request by returning specified response code or showing error page. - **BYPASS:** Bypasses some or all challenges. - **REDIRECT:** Redirects the request to the specified URL. These fields are required when `REDIRECT` is selected: `redirectUrl`, `redirectResponseCode`. - **SHOW_CAPTCHA:** Show a CAPTCHA Challenge page instead of the requested page. Regardless of action, no further rules are processed once a rule is matched. Allowed values for this property are: "ALLOW", "DETECT", "BLOCK", "BYPASS", "REDIRECT", "SHOW_CAPTCHA", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The action of this AccessRule. :rtype: str )r8 rL rH rH rI r � s zAccessRule.actionc C s g d�}t ||�sd}|| _dS )ai Sets the action of this AccessRule. The action to take when the access criteria are met for a rule. If unspecified, defaults to `ALLOW`. - **ALLOW:** Takes no action, just logs the request. - **DETECT:** Takes no action, but creates an alert for the request. - **BLOCK:** Blocks the request by returning specified response code or showing error page. - **BYPASS:** Bypasses some or all challenges. - **REDIRECT:** Redirects the request to the specified URL. These fields are required when `REDIRECT` is selected: `redirectUrl`, `redirectResponseCode`. - **SHOW_CAPTCHA:** Show a CAPTCHA Challenge page instead of the requested page. Regardless of action, no further rules are processed once a rule is matched. :param action: The action of this AccessRule. :type: str )r r r r r r �UNKNOWN_ENUM_VALUEN)r r8 )rF r �allowed_valuesrH rH rI r s c C s | j S )a� Gets the block_action of this AccessRule. The method used to block requests if `action` is set to `BLOCK` and the access criteria are met. If unspecified, defaults to `SET_RESPONSE_CODE`. Allowed values for this property are: "SET_RESPONSE_CODE", "SHOW_ERROR_PAGE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The block_action of this AccessRule. :rtype: str )r9 rL rH rH rI r 7 s zAccessRule.block_actionc C s ddg}t ||�sd}|| _dS )a, Sets the block_action of this AccessRule. The method used to block requests if `action` is set to `BLOCK` and the access criteria are met. If unspecified, defaults to `SET_RESPONSE_CODE`. :param block_action: The block_action of this AccessRule. :type: str r r rN N)r r9 )rF r rO rH rH rI r F s c C s | j S )a{ Gets the block_response_code of this AccessRule. The response status code to return when `action` is set to `BLOCK`, `blockAction` is set to `SET_RESPONSE_CODE`, and the access criteria are met. If unspecified, defaults to `403`. The list of available response codes: `200`, `201`, `202`, `204`, `206`, `300`, `301`, `302`, `303`, `304`, `307`, `400`, `401`, `403`, `404`, `405`, `408`, `409`, `411`, `412`, `413`, `414`, `415`, `416`, `422`, `444`, `494`, `495`, `496`, `497`, `499`, `500`, `501`, `502`, `503`, `504`, `507`. :return: The block_response_code of this AccessRule. :rtype: int �r: rL rH rH rI r U s zAccessRule.block_response_codec C s || _ dS )a� Sets the block_response_code of this AccessRule. The response status code to return when `action` is set to `BLOCK`, `blockAction` is set to `SET_RESPONSE_CODE`, and the access criteria are met. If unspecified, defaults to `403`. The list of available response codes: `200`, `201`, `202`, `204`, `206`, `300`, `301`, `302`, `303`, `304`, `307`, `400`, `401`, `403`, `404`, `405`, `408`, `409`, `411`, `412`, `413`, `414`, `415`, `416`, `422`, `444`, `494`, `495`, `496`, `497`, `499`, `500`, `501`, `502`, `503`, `504`, `507`. :param block_response_code: The block_response_code of this AccessRule. :type: int NrP )rF r rH rH rI r a s c C s | j S )az Gets the block_error_page_message of this AccessRule. The message to show on the error page when `action` is set to `BLOCK`, `blockAction` is set to `SHOW_ERROR_PAGE`, and the access criteria are met. If unspecified, defaults to 'Access to the website is blocked.' :return: The block_error_page_message of this AccessRule. :rtype: str �r; rL rH rH rI r m s z#AccessRule.block_error_page_messagec C s || _ dS )a� Sets the block_error_page_message of this AccessRule. The message to show on the error page when `action` is set to `BLOCK`, `blockAction` is set to `SHOW_ERROR_PAGE`, and the access criteria are met. If unspecified, defaults to 'Access to the website is blocked.' :param block_error_page_message: The block_error_page_message of this AccessRule. :type: str NrQ )rF r rH rH rI r y s c C s | j S )ac Gets the block_error_page_code of this AccessRule. The error code to show on the error page when `action` is set to `BLOCK`, `blockAction` is set to `SHOW_ERROR_PAGE`, and the access criteria are met. If unspecified, defaults to 'Access rules'. :return: The block_error_page_code of this AccessRule. :rtype: str �r<