Network Services V1 API - Class Google::Cloud::NetworkServices::V1::GrpcRoute::RouteRule (v1.0.0)

Reference documentation and code samples for the Network Services V1 API class Google::Cloud::NetworkServices::V1::GrpcRoute::RouteRule.

Describes how to route traffic.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#action

def action() -> ::Google::Cloud::NetworkServices::V1::GrpcRoute::RouteAction
Returns

#action=

def action=(value) -> ::Google::Cloud::NetworkServices::V1::GrpcRoute::RouteAction
Parameter
Returns

#matches

def matches() -> ::Array<::Google::Cloud::NetworkServices::V1::GrpcRoute::RouteMatch>
Returns
  • (::Array<::Google::Cloud::NetworkServices::V1::GrpcRoute::RouteMatch>) — Optional. Matches define conditions used for matching the rule against incoming gRPC 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.

#matches=

def matches=(value) -> ::Array<::Google::Cloud::NetworkServices::V1::GrpcRoute::RouteMatch>
Parameter
  • value (::Array<::Google::Cloud::NetworkServices::V1::GrpcRoute::RouteMatch>) — Optional. Matches define conditions used for matching the rule against incoming gRPC 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.
Returns
  • (::Array<::Google::Cloud::NetworkServices::V1::GrpcRoute::RouteMatch>) — Optional. Matches define conditions used for matching the rule against incoming gRPC 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.