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.



2821
2822
2823
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 2821

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)


2819
2820
2821
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 2819

def score_threshold
  @score_threshold
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2826
2827
2828
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 2826

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