Class: Google::Apis::NetworksecurityV1beta1::AuthzPolicyAuthzRuleHeaderMatch

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/networksecurity_v1beta1/classes.rb,
lib/google/apis/networksecurity_v1beta1/representations.rb,
lib/google/apis/networksecurity_v1beta1/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.



431
432
433
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 431

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)


424
425
426
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 424

def name
  @name
end

#valueGoogle::Apis::NetworksecurityV1beta1::AuthzPolicyAuthzRuleStringMatch

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



429
430
431
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 429

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



436
437
438
439
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 436

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