Network Services V1 API - Class Google::Cloud::NetworkServices::V1::TcpRoute::RouteRule (v0.2.0)

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

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

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#action

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

#action=

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

#matches

def matches() -> ::Array<::Google::Cloud::NetworkServices::V1::TcpRoute::RouteMatch>
Returns
  • (::Array<::Google::Cloud::NetworkServices::V1::TcpRoute::RouteMatch>) — Optional. RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation. If no routeMatch field is specified, this rule will unconditionally match traffic.

#matches=

def matches=(value) -> ::Array<::Google::Cloud::NetworkServices::V1::TcpRoute::RouteMatch>
Parameter
  • value (::Array<::Google::Cloud::NetworkServices::V1::TcpRoute::RouteMatch>) — Optional. RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation. If no routeMatch field is specified, this rule will unconditionally match traffic.
Returns
  • (::Array<::Google::Cloud::NetworkServices::V1::TcpRoute::RouteMatch>) — Optional. RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation. If no routeMatch field is specified, this rule will unconditionally match traffic.