Class: Google::Apis::NetworkservicesV1::GrpcRouteHeaderMatch

Inherits:
Object
  • Object
show all
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

A match against a collection of headers.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GrpcRouteHeaderMatch

Returns a new instance of GrpcRouteHeaderMatch.



1016
1017
1018
# File 'lib/google/apis/networkservices_v1/classes.rb', line 1016

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

Instance Attribute Details

#keyString

Required. The key of the header. Corresponds to the JSON property key

Returns:

  • (String)


1003
1004
1005
# File 'lib/google/apis/networkservices_v1/classes.rb', line 1003

def key
  @key
end

#typeString

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

Returns:

  • (String)


1009
1010
1011
# File 'lib/google/apis/networkservices_v1/classes.rb', line 1009

def type
  @type
end

#valueString

Required. The value of the header. Corresponds to the JSON property value

Returns:

  • (String)


1014
1015
1016
# File 'lib/google/apis/networkservices_v1/classes.rb', line 1014

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1021
1022
1023
1024
1025
# File 'lib/google/apis/networkservices_v1/classes.rb', line 1021

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