Class: Google::Apis::NetworksecurityV1beta1::AuthzPolicyAuthzRuleHeaderMatch
- Inherits:
-
Object
- Object
- Google::Apis::NetworksecurityV1beta1::AuthzPolicyAuthzRuleHeaderMatch
- 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
-
#name ⇒ String
Optional.
-
#value ⇒ Google::Apis::NetworksecurityV1beta1::AuthzPolicyAuthzRuleStringMatch
Determines how a string value should be matched.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AuthzPolicyAuthzRuleHeaderMatch
constructor
A new instance of AuthzPolicyAuthzRuleHeaderMatch.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#name ⇒ String
Optional. Specifies the name of the header in the request.
Corresponds to the JSON property name
387 388 389 |
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 387 def name @name end |
#value ⇒ Google::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 |