Class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1WebKeySettingsActionSettings

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

Per-action challenge settings.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1WebKeySettingsActionSettings

Returns a new instance of GoogleCloudRecaptchaenterpriseV1WebKeySettingsActionSettings.



2434
2435
2436
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 2434

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

Instance Attribute Details

#score_thresholdFloat

Required. A challenge is triggered if the end-user score is below that threshold. Value must be between 0 and 1 (inclusive). Corresponds to the JSON property scoreThreshold

Returns:

  • (Float)


2432
2433
2434
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 2432

def score_threshold
  @score_threshold
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2439
2440
2441
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 2439

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