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.
696 697 698 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 696 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
689 690 691 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 689 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
694 695 696 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 694 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
701 702 703 704 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 701 def update!(**args) @key = args[:key] if args.key?(:key) @value = args[:value] if args.key?(:value) end |