📂 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
›
lib
›
python3.9
›
site-packages
›
oci
›
waas
›
models
›
📁 __pycache__
📍
Lokasi:
/usr/lib/python3.9/site-packages/oci/waas/models/__pycache__
💾
Free:
45.8 GB
⚠️ Direktori ini
tidak writable
.
✏️ Mengedit: js_challenge.cpython-39.pyc
a ���fe/ � @ 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 ZdZdZdZdd� Zedd� �Zej dd� �Zed d � �Z e j dd � �Z edd � �Zej dd � �Zedd� �Zej dd� �Zedd� �Z e j dd� �Z edd� �Zej dd� �Zedd� �Zej dd� �Zedd� �Zej dd� �Zedd� �Zej d d� �Zd!d"� Zd#d$� Zd%d&� Zd'S )(�JsChallengez� The JavaScript challenge settings. JavaScript Challenge is the function to filter abnormal or malicious bots and allow access to real clients. �DETECT�BLOCKc K sn dddddddddd� | _ dd d ddd dddd� | _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ dS )aR Initializes a new JsChallenge object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param is_enabled: The value to assign to the is_enabled property of this JsChallenge. :type is_enabled: bool :param action: The value to assign to the action property of this JsChallenge. Allowed values for this property are: "DETECT", "BLOCK", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type action: str :param failure_threshold: The value to assign to the failure_threshold property of this JsChallenge. :type failure_threshold: int :param action_expiration_in_seconds: The value to assign to the action_expiration_in_seconds property of this JsChallenge. :type action_expiration_in_seconds: int :param set_http_header: The value to assign to the set_http_header property of this JsChallenge. :type set_http_header: oci.waas.models.Header :param challenge_settings: The value to assign to the challenge_settings property of this JsChallenge. :type challenge_settings: oci.waas.models.BlockChallengeSettings :param are_redirects_challenged: The value to assign to the are_redirects_challenged property of this JsChallenge. :type are_redirects_challenged: bool :param criteria: The value to assign to the criteria property of this JsChallenge. :type criteria: list[oci.waas.models.AccessRuleCriteria] :param is_nat_enabled: The value to assign to the is_nat_enabled property of this JsChallenge. :type is_nat_enabled: bool �bool�str�intZHeaderZBlockChallengeSettingszlist[AccessRuleCriteria]) � is_enabled�action�failure_threshold�action_expiration_in_seconds�set_http_header�challenge_settings�are_redirects_challenged�criteria�is_nat_enabledZ isEnabledr ZfailureThresholdZactionExpirationInSecondsZ setHttpHeaderZchallengeSettingsZareRedirectsChallengedr ZisNatEnabledN)Z swagger_typesZ attribute_map�_is_enabled�_action�_failure_threshold�_action_expiration_in_seconds�_set_http_header�_challenge_settings�_are_redirects_challenged� _criteria�_is_nat_enabled)�self�kwargs� r �@/usr/lib/python3.9/site-packages/oci/waas/models/js_challenge.py�__init__ s: -� �zJsChallenge.__init__c C s | j S )z� **[Required]** Gets the is_enabled of this JsChallenge. Enables or disables the JavaScript challenge Web Application Firewall feature. :return: The is_enabled of this JsChallenge. :rtype: bool �r �r r r r! r h s zJsChallenge.is_enabledc C s || _ dS )z� Sets the is_enabled of this JsChallenge. Enables or disables the JavaScript challenge Web Application Firewall feature. :param is_enabled: The is_enabled of this JsChallenge. :type: bool Nr# )r r r r r! r t s c C s | j S )a� Gets the action of this JsChallenge. The action to take against requests from detected bots. If unspecified, defaults to `DETECT`. Allowed values for this property are: "DETECT", "BLOCK", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The action of this JsChallenge. :rtype: str )r r$ r r r! r � s zJsChallenge.actionc C s ddg}t ||�sd}|| _dS )z� Sets the action of this JsChallenge. The action to take against requests from detected bots. If unspecified, defaults to `DETECT`. :param action: The action of this JsChallenge. :type: str r r ZUNKNOWN_ENUM_VALUEN)r r )r r Zallowed_valuesr r r! r � s c C s | j S )z� Gets the failure_threshold of this JsChallenge. The number of failed requests before taking action. If unspecified, defaults to `10`. :return: The failure_threshold of this JsChallenge. :rtype: int �r r$ r r r! r � s zJsChallenge.failure_thresholdc C s || _ dS )a Sets the failure_threshold of this JsChallenge. The number of failed requests before taking action. If unspecified, defaults to `10`. :param failure_threshold: The failure_threshold of this JsChallenge. :type: int Nr% )r r r r r! r � s c C s | j S )a Gets the action_expiration_in_seconds of this JsChallenge. The number of seconds between challenges from the same IP address. If unspecified, defaults to `60`. :return: The action_expiration_in_seconds of this JsChallenge. :rtype: int �r r$ r r r! r � s z(JsChallenge.action_expiration_in_secondsc C s || _ dS )a1 Sets the action_expiration_in_seconds of this JsChallenge. The number of seconds between challenges from the same IP address. If unspecified, defaults to `60`. :param action_expiration_in_seconds: The action_expiration_in_seconds of this JsChallenge. :type: int Nr&