Class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2RecaptchaManagedRule
- Inherits:
-
Object
- Object
- Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2RecaptchaManagedRule
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/identitytoolkit_v2/classes.rb,
lib/google/apis/identitytoolkit_v2/representations.rb,
lib/google/apis/identitytoolkit_v2/representations.rb
Overview
The config for a reCAPTCHA managed rule. Models a single interval [start_score, end_score]. The start_score is implicit. It is either the closest smaller end_score (if one is available) or 0. Intervals in aggregate span [0, 1] without overlapping.
Instance Attribute Summary collapse
-
#action ⇒ String
The action taken if the reCAPTCHA score of a request is within the interval [ start_score, end_score].
-
#end_score ⇒ Float
The end score (inclusive) of the score range for an action.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudIdentitytoolkitAdminV2RecaptchaManagedRule
constructor
A new instance of GoogleCloudIdentitytoolkitAdminV2RecaptchaManagedRule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudIdentitytoolkitAdminV2RecaptchaManagedRule
Returns a new instance of GoogleCloudIdentitytoolkitAdminV2RecaptchaManagedRule.
1523 1524 1525 |
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1523 def initialize(**args) update!(**args) end |
Instance Attribute Details
#action ⇒ String
The action taken if the reCAPTCHA score of a request is within the interval [
start_score, end_score].
Corresponds to the JSON property action
1512 1513 1514 |
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1512 def action @action end |
#end_score ⇒ Float
The end score (inclusive) of the score range for an action. Must be a value between 0.0 and 1.0, at 11 discrete values; e.g. 0, 0.1, 0.2, 0.3, ... 0.9, 1.
- A score of 0.0 indicates the riskiest request (likely a bot), whereas 1.0
indicates the safest request (likely a human). See https://cloud.google.com/
recaptcha-enterprise/docs/interpret-assessment.
Corresponds to the JSON property
endScore
1521 1522 1523 |
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1521 def end_score @end_score end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1528 1529 1530 1531 |
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1528 def update!(**args) @action = args[:action] if args.key?(:action) @end_score = args[:end_score] if args.key?(:end_score) end |