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
- (::Google::Cloud::NetworkServices::V1::GrpcRoute::RouteAction) — Required. A detailed rule defining how to route traffic. This field is required.
#action=
def action=(value) -> ::Google::Cloud::NetworkServices::V1::GrpcRoute::RouteAction
Parameter
- value (::Google::Cloud::NetworkServices::V1::GrpcRoute::RouteAction) — Required. A detailed rule defining how to route traffic. This field is required.
Returns
- (::Google::Cloud::NetworkServices::V1::GrpcRoute::RouteAction) — Required. A detailed rule defining how to route traffic. This field is required.
#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.