ResponseCacheLookupPolicy

class oci.apigateway.models.ResponseCacheLookupPolicy(**kwargs)

Bases: object

Base policy for Response Cache lookup.

Attributes

TYPE_SIMPLE_LOOKUP_POLICY A constant which can be used with the type property of a ResponseCacheLookupPolicy.
is_enabled Gets the is_enabled of this ResponseCacheLookupPolicy.
is_private_caching_enabled Gets the is_private_caching_enabled of this ResponseCacheLookupPolicy.
type [Required] Gets the type of this ResponseCacheLookupPolicy.

Methods

__init__(**kwargs) Initializes a new ResponseCacheLookupPolicy object with values from keyword arguments.
get_subtype(object_dictionary) Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
TYPE_SIMPLE_LOOKUP_POLICY = 'SIMPLE_LOOKUP_POLICY'

A constant which can be used with the type property of a ResponseCacheLookupPolicy. This constant has a value of “SIMPLE_LOOKUP_POLICY”

__init__(**kwargs)

Initializes a new ResponseCacheLookupPolicy object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class:

The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • type (str) – The value to assign to the type property of this ResponseCacheLookupPolicy. Allowed values for this property are: “SIMPLE_LOOKUP_POLICY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • is_enabled (bool) – The value to assign to the is_enabled property of this ResponseCacheLookupPolicy.
  • is_private_caching_enabled (bool) – The value to assign to the is_private_caching_enabled property of this ResponseCacheLookupPolicy.
static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

is_enabled

Gets the is_enabled of this ResponseCacheLookupPolicy. Whether this policy is currently enabled.

Returns:The is_enabled of this ResponseCacheLookupPolicy.
Return type:bool
is_private_caching_enabled

Gets the is_private_caching_enabled of this ResponseCacheLookupPolicy. Set true to allow caching responses where the request has an Authorization header. Ensure you have configured your cache key additions to get the level of isolation across authenticated requests that you require.

When false, any request with an Authorization header will not be stored in the Response Cache.

If using the CustomAuthenticationPolicy then the tokenHeader/tokenQueryParam are also subject to this check.

Returns:The is_private_caching_enabled of this ResponseCacheLookupPolicy.
Return type:bool
type

[Required] Gets the type of this ResponseCacheLookupPolicy. Type of the Response Cache Store Policy.

Allowed values for this property are: “SIMPLE_LOOKUP_POLICY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The type of this ResponseCacheLookupPolicy.
Return type:str