📂 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
›
apigateway
›
models
›
📁 __pycache__
📍
Lokasi:
/usr/lib/python3.9/site-packages/oci/apigateway/models/__pycache__
💾
Free:
45.8 GB
⚠️ Direktori ini
tidak writable
.
✏️ Mengedit: custom_authentication_policy.cpython-39.pyc
a ���f�# � @ sD d dl mZ ddlmZmZmZ ddlmZ eG dd� de��ZdS )� )�AuthenticationPolicy� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ s� e Zd ZdZdd� Zedd� �Zejdd� �Zedd� �Zejd d� �Zed d� �Z e jdd� �Z ed d� �Z e jdd� �Z edd� �Zejdd� �Zedd� �Zejdd� �Zdd� Z dd� Zdd� ZdS )�CustomAuthenticationPolicyz� Use a function to validate a custom header or query parameter sent with the request authentication. A valid policy must specify either tokenHeader or tokenQueryParam. c K sj ddddddddd�| _ ddd d ddd dd�| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _dS )aq Initializes a new CustomAuthenticationPolicy object with values from keyword arguments. The default value of the :py:attr:`~oci.apigateway.models.CustomAuthenticationPolicy.type` attribute of this class is ``CUSTOM_AUTHENTICATION`` and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param is_anonymous_access_allowed: The value to assign to the is_anonymous_access_allowed property of this CustomAuthenticationPolicy. :type is_anonymous_access_allowed: bool :param type: The value to assign to the type property of this CustomAuthenticationPolicy. Allowed values for this property are: "CUSTOM_AUTHENTICATION", "JWT_AUTHENTICATION", "TOKEN_AUTHENTICATION" :type type: str :param function_id: The value to assign to the function_id property of this CustomAuthenticationPolicy. :type function_id: str :param token_header: The value to assign to the token_header property of this CustomAuthenticationPolicy. :type token_header: str :param token_query_param: The value to assign to the token_query_param property of this CustomAuthenticationPolicy. :type token_query_param: str :param parameters: The value to assign to the parameters property of this CustomAuthenticationPolicy. :type parameters: dict(str, str) :param cache_key: The value to assign to the cache_key property of this CustomAuthenticationPolicy. :type cache_key: list[str] :param validation_failure_policy: The value to assign to the validation_failure_policy property of this CustomAuthenticationPolicy. :type validation_failure_policy: oci.apigateway.models.ValidationFailurePolicy �bool�strzdict(str, str)z list[str]ZValidationFailurePolicy)Zis_anonymous_access_allowed�type�function_id�token_header�token_query_param� parameters� cache_key�validation_failure_policyZisAnonymousAccessAllowedr Z functionIdZtokenHeaderZtokenQueryParamr ZcacheKeyZvalidationFailurePolicyNZCUSTOM_AUTHENTICATION) Z swagger_typesZ attribute_mapZ_is_anonymous_access_allowedZ_type�_function_id� _token_header�_token_query_param�_parameters� _cache_key�_validation_failure_policy)�self�kwargs� r �V/usr/lib/python3.9/site-packages/oci/apigateway/models/custom_authentication_policy.py�__init__ s6 )��z#CustomAuthenticationPolicy.__init__c C s | j S )aG **[Required]** Gets the function_id of this CustomAuthenticationPolicy. The `OCID`__ of the Oracle Functions function resource. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :return: The function_id of this CustomAuthenticationPolicy. :rtype: str �r �r r r r r [ s z&CustomAuthenticationPolicy.function_idc C s || _ dS )aB Sets the function_id of this CustomAuthenticationPolicy. The `OCID`__ of the Oracle Functions function resource. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param function_id: The function_id of this CustomAuthenticationPolicy. :type: str Nr )r r r r r r i s c C s | j S )z� Gets the token_header of this CustomAuthenticationPolicy. The name of the header containing the authentication token. :return: The token_header of this CustomAuthenticationPolicy. :rtype: str �r r r r r r w s z'CustomAuthenticationPolicy.token_headerc C s || _ dS )z� Sets the token_header of this CustomAuthenticationPolicy. The name of the header containing the authentication token. :param token_header: The token_header of this CustomAuthenticationPolicy. :type: str Nr )r r r r r r � s c C s | j S )z� Gets the token_query_param of this CustomAuthenticationPolicy. The name of the query parameter containing the authentication token. :return: The token_query_param of this CustomAuthenticationPolicy. :rtype: str �r r r r r r � s z,CustomAuthenticationPolicy.token_query_paramc C s || _ dS )a Sets the token_query_param of this CustomAuthenticationPolicy. The name of the query parameter containing the authentication token. :param token_query_param: The token_query_param of this CustomAuthenticationPolicy. :type: str Nr )r r r r r r � s c C s | j S )a� Gets the parameters of this CustomAuthenticationPolicy. A map where key is a user defined string and value is a context expressions whose values will be sent to the custom auth function. Values should contain an expression. Example: `{"foo": "request.header[abc]"}` :return: The parameters of this CustomAuthenticationPolicy. :rtype: dict(str, str) �r r r r r r � s z%CustomAuthenticationPolicy.parametersc C s || _ dS )a� Sets the parameters of this CustomAuthenticationPolicy. A map where key is a user defined string and value is a context expressions whose values will be sent to the custom auth function. Values should contain an expression. Example: `{"foo": "request.header[abc]"}` :param parameters: The parameters of this CustomAuthenticationPolicy. :type: dict(str, str) Nr! )r r r r r r � s c C s | j S )a Gets the cache_key of this CustomAuthenticationPolicy. A list of keys from "parameters" attribute value whose values will be added to the cache key. :return: The cache_key of this CustomAuthenticationPolicy. :rtype: list[str] �r r r r r r � s z$CustomAuthenticationPolicy.cache_keyc C s || _ dS )a Sets the cache_key of this CustomAuthenticationPolicy. A list of keys from "parameters" attribute value whose values will be added to the cache key. :param cache_key: The cache_key of this CustomAuthenticationPolicy. :type: list[str] Nr"