CachingRuleCriteria

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

Bases: object

A caching rule criteria condition and value.

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.

URL must start with /

URL can't contain restricted double slashes //

URL can't contain restricted ' & ? symbols

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