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

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

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

Specifies how to match traffic and how to route traffic when traffic is matched.

Inheritance

object > HttpRoute.Types.RouteRule

Namespace

Google.Cloud.NetworkServices.V1

Assembly

Google.Cloud.NetworkServices.V1.dll

Constructors

RouteRule()

public RouteRule()

RouteRule(RouteRule)

public RouteRule(HttpRoute.Types.RouteRule other)
Parameter
Name Description
other HttpRouteTypesRouteRule

Properties

Action

public HttpRoute.Types.RouteAction Action { get; set; }

The detailed rule defining how to route matched traffic.

Property Value
Type Description
HttpRouteTypesRouteAction

Matches

public RepeatedField<HttpRoute.Types.RouteMatch> Matches { get; }

A list of matches define conditions used for matching the rule against incoming HTTP requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied.

If no matches field is specified, this rule will unconditionally match traffic.

If a default rule is desired to be configured, add a rule with no matches specified to the end of the rules list.

Property Value
Type Description
RepeatedFieldHttpRouteTypesRouteMatch