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.
708 709 710 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 708 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
701 702 703 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 701 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
706 707 708 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 706 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
713 714 715 716 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 713 def update!(**args) @key = args[:key] if args.key?(:key) @value = args[:value] if args.key?(:value) end |