📂 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: caching_rule.cpython-39.pyc
a ���f) � @ 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� �Zdd� Zdd� Zdd � Zd!S )"�CachingRulez CachingRule model. �CACHE�BYPASS_CACHEc K sZ dddddddd�| _ ddddd d dd�| _d| _d| _d| _d| _d| _d| _d| _dS ) a� Initializes a new CachingRule object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param key: The value to assign to the key property of this CachingRule. :type key: str :param name: The value to assign to the name property of this CachingRule. :type name: str :param action: The value to assign to the action property of this CachingRule. Allowed values for this property are: "CACHE", "BYPASS_CACHE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type action: str :param caching_duration: The value to assign to the caching_duration property of this CachingRule. :type caching_duration: str :param is_client_caching_enabled: The value to assign to the is_client_caching_enabled property of this CachingRule. :type is_client_caching_enabled: bool :param client_caching_duration: The value to assign to the client_caching_duration property of this CachingRule. :type client_caching_duration: str :param criteria: The value to assign to the criteria property of this CachingRule. :type criteria: list[oci.waas.models.CachingRuleCriteria] �str�boolzlist[CachingRuleCriteria])�key�name�action�caching_duration�is_client_caching_enabled�client_caching_duration�criteriar r r ZcachingDurationZisClientCachingEnabledZclientCachingDurationr N) Z swagger_typesZ attribute_map�_key�_name�_action�_caching_duration�_is_client_caching_enabled�_client_caching_duration� _criteria)�self�kwargs� r �@/usr/lib/python3.9/site-packages/oci/waas/models/caching_rule.py�__init__ s. %�� zCachingRule.__init__c C s | j S )z� Gets the key of this CachingRule. The unique key for the caching rule. :return: The key of this CachingRule. :rtype: str �r �r r r r r Z s zCachingRule.keyc C s || _ dS )z� Sets the key of this CachingRule. The unique key for the caching rule. :param key: The key of this CachingRule. :type: str Nr )r r r r r r f s c C s | j S )z� **[Required]** Gets the name of this CachingRule. The name of the caching rule. :return: The name of this CachingRule. :rtype: str �r r r r r r r s zCachingRule.namec C s || _ dS )z� Sets the name of this CachingRule. The name of the caching rule. :param name: The name of this CachingRule. :type: str Nr )r r r r r r ~ s c C s | j S )aj **[Required]** Gets the action of this CachingRule. The action to take when the criteria of a caching rule are met. - **CACHE:** Caches requested content when the criteria of the rule are met. - **BYPASS_CACHE:** Allows requests to bypass the cache and be directed to the origin when the criteria of the rule is met. Allowed values for this property are: "CACHE", "BYPASS_CACHE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The action of this CachingRule. :rtype: str )r r r r r r � s zCachingRule.actionc C s ddg}t ||�sd}|| _dS )a� Sets the action of this CachingRule. The action to take when the criteria of a caching rule are met. - **CACHE:** Caches requested content when the criteria of the rule are met. - **BYPASS_CACHE:** Allows requests to bypass the cache and be directed to the origin when the criteria of the rule is met. :param action: The action of this CachingRule. :type: str r r ZUNKNOWN_ENUM_VALUEN)r r )r r Zallowed_valuesr r r r � s c C s | j S )a� Gets the caching_duration of this CachingRule. The duration to cache content for the caching rule, specified in ISO 8601 extended format. Supported units: seconds, minutes, hours, days, weeks, months. The maximum value that can be set for any unit is `99`. Mixing of multiple units is not supported. Only applies when the `action` is set to `CACHE`. Example: `PT1H` :return: The caching_duration of this CachingRule. :rtype: str �r r r r r r � s zCachingRule.caching_durationc C s || _ dS )a� Sets the caching_duration of this CachingRule. The duration to cache content for the caching rule, specified in ISO 8601 extended format. Supported units: seconds, minutes, hours, days, weeks, months. The maximum value that can be set for any unit is `99`. Mixing of multiple units is not supported. Only applies when the `action` is set to `CACHE`. Example: `PT1H` :param caching_duration: The caching_duration of this CachingRule. :type: str Nr! )r r r r r r � s c C s | j S )a� Gets the is_client_caching_enabled of this CachingRule. Enables or disables client caching. Browsers use the `Cache-Control` header value for caching content locally in the browser. This setting overrides the addition of a `Cache-Control` header in responses. :return: The is_client_caching_enabled of this CachingRule. :rtype: bool �r r r r r r � s z%CachingRule.is_client_caching_enabledc C s || _ dS )a� Sets the is_client_caching_enabled of this CachingRule. Enables or disables client caching. Browsers use the `Cache-Control` header value for caching content locally in the browser. This setting overrides the addition of a `Cache-Control` header in responses. :param is_client_caching_enabled: The is_client_caching_enabled of this CachingRule. :type: bool Nr"