Class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RiskAnalysis
- Inherits:
-
Object
- Object
- Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RiskAnalysis
- 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
Risk analysis result for an event.
Instance Attribute Summary collapse
-
#extended_verdict_reasons ⇒ Array<String>
Output only.
-
#reasons ⇒ Array<String>
Output only.
-
#score ⇒ Float
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1RiskAnalysis
constructor
A new instance of GoogleCloudRecaptchaenterpriseV1RiskAnalysis.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1RiskAnalysis
Returns a new instance of GoogleCloudRecaptchaenterpriseV1RiskAnalysis.
1555 1556 1557 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1555 def initialize(**args) update!(**args) end |
Instance Attribute Details
#extended_verdict_reasons ⇒ Array<String>
Output only. Extended verdict reasons to be used for experimentation only. The
set of possible reasons is subject to change.
Corresponds to the JSON property extendedVerdictReasons
1542 1543 1544 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1542 def extended_verdict_reasons @extended_verdict_reasons end |
#reasons ⇒ Array<String>
Output only. Reasons contributing to the risk analysis verdict.
Corresponds to the JSON property reasons
1547 1548 1549 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1547 def reasons @reasons end |
#score ⇒ Float
Output only. Legitimate event score from 0.0 to 1.0. (1.0 means very likely
legitimate traffic while 0.0 means very likely non-legitimate traffic).
Corresponds to the JSON property score
1553 1554 1555 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1553 def score @score end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1560 1561 1562 1563 1564 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1560 def update!(**args) @extended_verdict_reasons = args[:extended_verdict_reasons] if args.key?(:extended_verdict_reasons) @reasons = args[:reasons] if args.key?(:reasons) @score = args[:score] if args.key?(:score) end |