FixedTTLResponseCacheStorePolicy

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

Bases: ResponseCacheStorePolicy

How a response from a backend is cached in the Response Cache.

Attributes:

TYPE_FIXED_TTL_STORE_POLICY

A constant which can be used with the type property of a ResponseCacheStorePolicy.

time_to_live_in_seconds

[Required] Gets the time_to_live_in_seconds of this FixedTTLResponseCacheStorePolicy.

type

[Required] Gets the type of this ResponseCacheStorePolicy.

Methods:

__init__(**kwargs)

Initializes a new FixedTTLResponseCacheStorePolicy 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_FIXED_TTL_STORE_POLICY = 'FIXED_TTL_STORE_POLICY'

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

__init__(**kwargs)

Initializes a new FixedTTLResponseCacheStorePolicy object with values from keyword arguments. The default value of the type attribute of this class is FIXED_TTL_STORE_POLICY and it should not be changed. 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 FixedTTLResponseCacheStorePolicy. Allowed values for this property are: “FIXED_TTL_STORE_POLICY”

  • time_to_live_in_seconds (int) – The value to assign to the time_to_live_in_seconds property of this FixedTTLResponseCacheStorePolicy.

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.

property time_to_live_in_seconds

[Required] Gets the time_to_live_in_seconds of this FixedTTLResponseCacheStorePolicy. Sets the number of seconds for a response from a backend being stored in the Response Cache before it expires.

Returns

The time_to_live_in_seconds of this FixedTTLResponseCacheStorePolicy.

Return type

int

property type

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

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

Returns

The type of this ResponseCacheStorePolicy.

Return type

str