Class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1WebKeySettingsActionSettings
- Inherits:
-
Object
- Object
- Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1WebKeySettingsActionSettings
- 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
-
#score_threshold ⇒ Float
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1WebKeySettingsActionSettings
constructor
A new instance of GoogleCloudRecaptchaenterpriseV1WebKeySettingsActionSettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1WebKeySettingsActionSettings
Returns a new instance of GoogleCloudRecaptchaenterpriseV1WebKeySettingsActionSettings.
2515 2516 2517 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 2515 def initialize(**args) update!(**args) end |
Instance Attribute Details
#score_threshold ⇒ Float
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
2513 2514 2515 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 2513 def score_threshold @score_threshold end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2520 2521 2522 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 2520 def update!(**args) @score_threshold = args[:score_threshold] if args.key?(:score_threshold) end |