Class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallActionSetHeaderAction

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#keyString

Optional. The header key to set in the request to the backend server. Corresponds to the JSON property key

Returns:

  • (String)


701
702
703
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 701

def key
  @key
end

#valueString

Optional. The header value to set in the request to the backend server. Corresponds to the JSON property value

Returns:

  • (String)


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