Class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallActionSubstituteAction
- Inherits:
-
Object
- Object
- Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallActionSubstituteAction
- 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 substitute action transparently serves a different page than the one requested.
Instance Attribute Summary collapse
-
#path ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1FirewallActionSubstituteAction
constructor
A new instance of GoogleCloudRecaptchaenterpriseV1FirewallActionSubstituteAction.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1FirewallActionSubstituteAction
Returns a new instance of GoogleCloudRecaptchaenterpriseV1FirewallActionSubstituteAction.
730 731 732 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 730 def initialize(**args) update!(**args) end |
Instance Attribute Details
#path ⇒ String
Optional. The address to redirect to. The target is a relative path in the
current host. Example: "/blog/404.html".
Corresponds to the JSON property path
728 729 730 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 728 def path @path end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
735 736 737 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 735 def update!(**args) @path = args[:path] if args.key?(:path) end |