SimpleUrlPattern

class oci.network_firewall.models.SimpleUrlPattern(**kwargs)

Bases: oci.network_firewall.models.url_pattern.UrlPattern

Pattern describing an http/https URL or set thereof as a concatenation of optional host component and optional path component.

*.example.com will match http://example.com/ and https://foo.example.com/foo?bar.

www.example.com/foo* will match https://www.example.com/foo and http://www.exampe.com/foobar and https://www.example.com/foo/bar?baz, but not http://sub.www.example.com/foo or https://www.example.com/FOO.

*.example.com/foo* will match http://example.com/foo and https://sub2.sub.example.com/foo/bar?baz, but not http://example.com/FOO.

Attributes

TYPE_SIMPLE str(object=’’) -> str
pattern [Required] Gets the pattern of this SimpleUrlPattern.
type [Required] Gets the type of this UrlPattern.

Methods

__init__(**kwargs) Initializes a new SimpleUrlPattern 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 = 'SIMPLE'
__init__(**kwargs)

Initializes a new SimpleUrlPattern object with values from keyword arguments. The default value of the type attribute of this class is SIMPLE 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 SimpleUrlPattern. Allowed values for this property are: “SIMPLE”
  • pattern (str) – The value to assign to the pattern property of this SimpleUrlPattern.
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.

pattern

[Required] Gets the pattern of this SimpleUrlPattern. A string consisting of a concatenation of optional host component and optional path component. The host component may start with *. to match the case-insensitive domain and all its subdomains. The path component must start with a /, and may end with * to match all paths of which it is a case-sensitive prefix. A missing host component matches all request domains, and a missing path component matches all request paths. An empty value matches all requests.

Returns:The pattern of this SimpleUrlPattern.
Return type:str
type

[Required] Gets the type of this UrlPattern. The type of pattern.

  • SIMPLE - A simple pattern with optional subdomain and/or path suffix wildcards.

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

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