Network Services v1 API - Class HttpRoute.Types.RouteMatch (1.0.0-beta01)

public sealed class HttpRoute.Types.RouteMatch : IMessage<HttpRoute.Types.RouteMatch>, IEquatable<HttpRoute.Types.RouteMatch>, IDeepCloneable<HttpRoute.Types.RouteMatch>, IBufferMessage, IMessage

Reference documentation and code samples for the Network Services v1 API class HttpRoute.Types.RouteMatch.

RouteMatch defines specifications used to match requests. If multiple match types are set, this RouteMatch will match if ALL type of matches are matched.

Inheritance

object > HttpRoute.Types.RouteMatch

Namespace

Google.Cloud.NetworkServices.V1

Assembly

Google.Cloud.NetworkServices.V1.dll

Constructors

RouteMatch()

public RouteMatch()

RouteMatch(RouteMatch)

public RouteMatch(HttpRoute.Types.RouteMatch other)
Parameter
Name Description
other HttpRouteTypesRouteMatch

Properties

FullPathMatch

public string FullPathMatch { get; set; }

The HTTP request path value should exactly match this value.

Only one of full_path_match, prefix_match, or regex_match should be used.

Property Value
Type Description
string

HasFullPathMatch

public bool HasFullPathMatch { get; }

Gets whether the "full_path_match" field is set

Property Value
Type Description
bool

HasPrefixMatch

public bool HasPrefixMatch { get; }

Gets whether the "prefix_match" field is set

Property Value
Type Description
bool

HasRegexMatch

public bool HasRegexMatch { get; }

Gets whether the "regex_match" field is set

Property Value
Type Description
bool

Headers

public RepeatedField<HttpRoute.Types.HeaderMatch> Headers { get; }

Specifies a list of HTTP request headers to match against. ALL of the supplied headers must be matched.

Property Value
Type Description
RepeatedFieldHttpRouteTypesHeaderMatch

IgnoreCase

public bool IgnoreCase { get; set; }

Specifies if prefix_match and full_path_match matches are case sensitive. The default value is false.

Property Value
Type Description
bool

PathMatchCase

public HttpRoute.Types.RouteMatch.PathMatchOneofCase PathMatchCase { get; }
Property Value
Type Description
HttpRouteTypesRouteMatchPathMatchOneofCase

PrefixMatch

public string PrefixMatch { get; set; }

The HTTP request path value must begin with specified prefix_match. prefix_match must begin with a /.

Only one of full_path_match, prefix_match, or regex_match should be used.

Property Value
Type Description
string

QueryParameters

public RepeatedField<HttpRoute.Types.QueryParameterMatch> QueryParameters { get; }

Specifies a list of query parameters to match against. ALL of the query parameters must be matched.

Property Value
Type Description
RepeatedFieldHttpRouteTypesQueryParameterMatch

RegexMatch

public string RegexMatch { get; set; }

The HTTP request path value must satisfy the regular expression specified by regex_match after removing any query parameters and anchor supplied with the original URL. For regular expression grammar, please see https://github.com/google/re2/wiki/Syntax

Only one of full_path_match, prefix_match, or regex_match should be used.

Property Value
Type Description
string