Class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallActionSubstituteAction

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 substitute action transparently serves a different page than the one requested.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1FirewallActionSubstituteAction

Returns a new instance of GoogleCloudRecaptchaenterpriseV1FirewallActionSubstituteAction.



591
592
593
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 591

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#pathString

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

Returns:

  • (String)


589
590
591
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 589

def path
  @path
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



596
597
598
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 596

def update!(**args)
  @path = args[:path] if args.key?(:path)
end