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
-
#reasons ⇒ Array<String>
Reasons contributing to the risk analysis verdict.
-
#score ⇒ Float
Legitimate event score from 0.0 to 1.0.
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.
730 731 732 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 730 def initialize(**args) update!(**args) end |
Instance Attribute Details
#reasons ⇒ Array<String>
Reasons contributing to the risk analysis verdict.
Corresponds to the JSON property reasons
722 723 724 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 722 def reasons @reasons end |
#score ⇒ Float
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
728 729 730 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 728 def score @score end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
735 736 737 738 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 735 def update!(**args) @reasons = args[:reasons] if args.key?(:reasons) @score = args[:score] if args.key?(:score) end |