Class: Google::Apis::NetworkservicesV1beta1::GrpcRouteRouteMatch

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/networkservices_v1beta1/classes.rb,
lib/google/apis/networkservices_v1beta1/representations.rb,
lib/google/apis/networkservices_v1beta1/representations.rb

Overview

Criteria for matching traffic. A RouteMatch will be considered to match when all supplied fields match.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GrpcRouteRouteMatch

Returns a new instance of GrpcRouteRouteMatch.



1094
1095
1096
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 1094

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#headersArray<Google::Apis::NetworkservicesV1beta1::GrpcRouteHeaderMatch>

Optional. Specifies a collection of headers to match. Corresponds to the JSON property headers



1087
1088
1089
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 1087

def headers
  @headers
end

#method_propGoogle::Apis::NetworkservicesV1beta1::GrpcRouteMethodMatch

Specifies a match against a method. Corresponds to the JSON property method



1092
1093
1094
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 1092

def method_prop
  @method_prop
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1099
1100
1101
1102
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 1099

def update!(**args)
  @headers = args[:headers] if args.key?(:headers)
  @method_prop = args[:method_prop] if args.key?(:method_prop)
end