Class: Google::Apis::NetworkservicesV1::GrpcRouteRouteMatch
- Inherits:
-
Object
- Object
- Google::Apis::NetworkservicesV1::GrpcRouteRouteMatch
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/networkservices_v1/classes.rb,
lib/google/apis/networkservices_v1/representations.rb,
lib/google/apis/networkservices_v1/representations.rb
Overview
Criteria for matching traffic. A RouteMatch will be considered to match when all supplied fields match.
Instance Attribute Summary collapse
-
#headers ⇒ Array<Google::Apis::NetworkservicesV1::GrpcRouteHeaderMatch>
Optional.
-
#method_prop ⇒ Google::Apis::NetworkservicesV1::GrpcRouteMethodMatch
Specifies a match against a method.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GrpcRouteRouteMatch
constructor
A new instance of GrpcRouteRouteMatch.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GrpcRouteRouteMatch
Returns a new instance of GrpcRouteRouteMatch.
1169 1170 1171 |
# File 'lib/google/apis/networkservices_v1/classes.rb', line 1169 def initialize(**args) update!(**args) end |
Instance Attribute Details
#headers ⇒ Array<Google::Apis::NetworkservicesV1::GrpcRouteHeaderMatch>
Optional. Specifies a collection of headers to match.
Corresponds to the JSON property headers
1162 1163 1164 |
# File 'lib/google/apis/networkservices_v1/classes.rb', line 1162 def headers @headers end |
#method_prop ⇒ Google::Apis::NetworkservicesV1::GrpcRouteMethodMatch
Specifies a match against a method.
Corresponds to the JSON property method
1167 1168 1169 |
# File 'lib/google/apis/networkservices_v1/classes.rb', line 1167 def method_prop @method_prop end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1174 1175 1176 1177 |
# File 'lib/google/apis/networkservices_v1/classes.rb', line 1174 def update!(**args) @headers = args[:headers] if args.key?(:headers) @method_prop = args[:method_prop] if args.key?(:method_prop) end |