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
The header key to set in the request to the backend server.
-
#value ⇒ String
The header value to set in the request to the backend server.
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.
568 569 570 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 568 def initialize(**args) update!(**args) end |
Instance Attribute Details
#key ⇒ String
The header key to set in the request to the backend server.
Corresponds to the JSON property key
561 562 563 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 561 def key @key end |
#value ⇒ String
The header value to set in the request to the backend server.
Corresponds to the JSON property value
566 567 568 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 566 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
573 574 575 576 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 573 def update!(**args) @key = args[:key] if args.key?(:key) @value = args[:value] if args.key?(:value) end |