Class: Google::Apis::NetworksecurityV1::AuthzPolicyAuthzRuleHeaderMatch

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

Overview

Determines how a HTTP header should be matched.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AuthzPolicyAuthzRuleHeaderMatch

Returns a new instance of AuthzPolicyAuthzRuleHeaderMatch.



450
451
452
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 450

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

Instance Attribute Details

#nameString

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

Returns:

  • (String)


443
444
445
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 443

def name
  @name
end

#valueGoogle::Apis::NetworksecurityV1::AuthzPolicyAuthzRuleStringMatch

Determines how a string value should be matched. Corresponds to the JSON property value



448
449
450
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 448

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



455
456
457
458
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 455

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