Class: Google::Apis::NetworkservicesV1beta1::GrpcRouteHeaderMatch
- Inherits:
-
Object
- Object
- Google::Apis::NetworkservicesV1beta1::GrpcRouteHeaderMatch
- 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
A match against a collection of headers.
Instance Attribute Summary collapse
-
#key ⇒ String
Required.
-
#type ⇒ String
Optional.
-
#value ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GrpcRouteHeaderMatch
constructor
A new instance of GrpcRouteHeaderMatch.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GrpcRouteHeaderMatch
Returns a new instance of GrpcRouteHeaderMatch.
1284 1285 1286 |
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 1284 def initialize(**args) update!(**args) end |
Instance Attribute Details
#key ⇒ String
Required. The key of the header.
Corresponds to the JSON property key
1271 1272 1273 |
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 1271 def key @key end |
#type ⇒ String
Optional. Specifies how to match against the value of the header. If not
specified, a default value of EXACT is used.
Corresponds to the JSON property type
1277 1278 1279 |
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 1277 def type @type end |
#value ⇒ String
Required. The value of the header.
Corresponds to the JSON property value
1282 1283 1284 |
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 1282 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1289 1290 1291 1292 1293 |
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 1289 def update!(**args) @key = args[:key] if args.key?(:key) @type = args[:type] if args.key?(:type) @value = args[:value] if args.key?(:value) end |