Class: Google::Apis::NetworkservicesV1beta1::ExtensionBindingMatchConditionHeaderMatch

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

Determines how an HTTP header should be matched.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ExtensionBindingMatchConditionHeaderMatch

Returns a new instance of ExtensionBindingMatchConditionHeaderMatch.



875
876
877
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 875

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

Instance Attribute Details

#nameString

Required. Specifies the name of the header in the request. Corresponds to the JSON property name

Returns:

  • (String)


868
869
870
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 868

def name
  @name
end

#valueGoogle::Apis::NetworkservicesV1beta1::ExtensionBindingMatchConditionStringMatch

Specifies matching logic for string values. Corresponds to the JSON property value



873
874
875
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 873

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



880
881
882
883
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 880

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