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.



394
395
396
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 394

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)


387
388
389
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 387

def name
  @name
end

#valueGoogle::Apis::NetworksecurityV1beta1::AuthzPolicyAuthzRuleStringMatch

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



392
393
394
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 392

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



399
400
401
402
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 399

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