Class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallActionSetHeaderAction
- Inherits:
-
Object
- Object
- Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallActionSetHeaderAction
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/recaptchaenterprise_v1/classes.rb,
lib/google/apis/recaptchaenterprise_v1/representations.rb,
lib/google/apis/recaptchaenterprise_v1/representations.rb
Overview
A set header action sets a header and forwards the request to the backend. This can be used to trigger custom protection implemented on the backend.
Instance Attribute Summary collapse
-
#key ⇒ String
Optional.
-
#value ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1FirewallActionSetHeaderAction
constructor
A new instance of GoogleCloudRecaptchaenterpriseV1FirewallActionSetHeaderAction.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1FirewallActionSetHeaderAction
Returns a new instance of GoogleCloudRecaptchaenterpriseV1FirewallActionSetHeaderAction.
574 575 576 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 574 def initialize(**args) update!(**args) end |
Instance Attribute Details
#key ⇒ String
Optional. The header key to set in the request to the backend server.
Corresponds to the JSON property key
567 568 569 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 567 def key @key end |
#value ⇒ String
Optional. The header value to set in the request to the backend server.
Corresponds to the JSON property value
572 573 574 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 572 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
579 580 581 582 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 579 def update!(**args) @key = args[:key] if args.key?(:key) @value = args[:value] if args.key?(:value) end |