CachingRuleCriteria

class oci.waas.models.CachingRuleCriteria(**kwargs)

Bases: object

A caching rule criteria condition and value.

Attributes

CONDITION_URL_IS A constant which can be used with the condition property of a CachingRuleCriteria.
CONDITION_URL_PART_CONTAINS A constant which can be used with the condition property of a CachingRuleCriteria.
CONDITION_URL_PART_ENDS_WITH A constant which can be used with the condition property of a CachingRuleCriteria.
CONDITION_URL_STARTS_WITH A constant which can be used with the condition property of a CachingRuleCriteria.
condition [Required] Gets the condition of this CachingRuleCriteria.
value [Required] Gets the value of this CachingRuleCriteria.

Methods

__init__(**kwargs) Initializes a new CachingRuleCriteria object with values from keyword arguments.
CONDITION_URL_IS = 'URL_IS'

A constant which can be used with the condition property of a CachingRuleCriteria. This constant has a value of “URL_IS”

CONDITION_URL_PART_CONTAINS = 'URL_PART_CONTAINS'

A constant which can be used with the condition property of a CachingRuleCriteria. This constant has a value of “URL_PART_CONTAINS”

CONDITION_URL_PART_ENDS_WITH = 'URL_PART_ENDS_WITH'

A constant which can be used with the condition property of a CachingRuleCriteria. This constant has a value of “URL_PART_ENDS_WITH”

CONDITION_URL_STARTS_WITH = 'URL_STARTS_WITH'

A constant which can be used with the condition property of a CachingRuleCriteria. This constant has a value of “URL_STARTS_WITH”

__init__(**kwargs)

Initializes a new CachingRuleCriteria object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • condition (str) – The value to assign to the condition property of this CachingRuleCriteria. Allowed values for this property are: “URL_IS”, “URL_STARTS_WITH”, “URL_PART_ENDS_WITH”, “URL_PART_CONTAINS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • value (str) – The value to assign to the value property of this CachingRuleCriteria.
condition

[Required] Gets the condition of this CachingRuleCriteria. The condition of the caching rule criteria. - URL_IS: Matches if the concatenation of request URL path and query is identical to the contents of the value field.

  • URL_STARTS_WITH: Matches if the concatenation of request URL path and query starts with the contents of the value field.
  • URL_PART_ENDS_WITH: Matches if the concatenation of request URL path and query ends with the contents of the value field.
  • URL_PART_CONTAINS: Matches if the concatenation of request URL path and query contains the contents of the value field.

URLs must start with a /. URLs can’t contain restricted double slashes //. URLs can’t contain the restricted & ? symbols. Resources to cache can only be specified by a URL, any query parameters are ignored.

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

Returns:The condition of this CachingRuleCriteria.
Return type:str
value

[Required] Gets the value of this CachingRuleCriteria. The value of the caching rule criteria.

Returns:The value of this CachingRuleCriteria.
Return type:str