PathMatchType

class oci.load_balancer.models.PathMatchType(**kwargs)

Bases: object

The type of matching to apply to incoming URIs.

Attributes

MATCH_TYPE_EXACT_MATCH A constant which can be used with the match_type property of a PathMatchType.
MATCH_TYPE_FORCE_LONGEST_PREFIX_MATCH A constant which can be used with the match_type property of a PathMatchType.
MATCH_TYPE_PREFIX_MATCH A constant which can be used with the match_type property of a PathMatchType.
MATCH_TYPE_SUFFIX_MATCH A constant which can be used with the match_type property of a PathMatchType.
match_type [Required] Gets the match_type of this PathMatchType.

Methods

__init__(**kwargs) Initializes a new PathMatchType object with values from keyword arguments.
MATCH_TYPE_EXACT_MATCH = 'EXACT_MATCH'

A constant which can be used with the match_type property of a PathMatchType. This constant has a value of “EXACT_MATCH”

MATCH_TYPE_FORCE_LONGEST_PREFIX_MATCH = 'FORCE_LONGEST_PREFIX_MATCH'

A constant which can be used with the match_type property of a PathMatchType. This constant has a value of “FORCE_LONGEST_PREFIX_MATCH”

MATCH_TYPE_PREFIX_MATCH = 'PREFIX_MATCH'

A constant which can be used with the match_type property of a PathMatchType. This constant has a value of “PREFIX_MATCH”

MATCH_TYPE_SUFFIX_MATCH = 'SUFFIX_MATCH'

A constant which can be used with the match_type property of a PathMatchType. This constant has a value of “SUFFIX_MATCH”

__init__(**kwargs)

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

Parameters:match_type (str) – The value to assign to the match_type property of this PathMatchType. Allowed values for this property are: “EXACT_MATCH”, “FORCE_LONGEST_PREFIX_MATCH”, “PREFIX_MATCH”, “SUFFIX_MATCH”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
match_type

[Required] Gets the match_type of this PathMatchType. Specifies how the load balancing service compares a path_route() object’s path string against the incoming URI.

  • EXACT_MATCH - Looks for a path string that exactly matches the incoming URI path.
  • FORCE_LONGEST_PREFIX_MATCH - Looks for the path string with the best, longest match of the beginning portion of the incoming URI path.
  • PREFIX_MATCH - Looks for a path string that matches the beginning portion of the incoming URI path.
  • SUFFIX_MATCH - Looks for a path string that matches the ending portion of the incoming URI path.

For a full description of how the system handles matchType in a path route set containing multiple rules, see Managing Request Routing.

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

Returns:The match_type of this PathMatchType.
Return type:str