Class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1SmsTollFraudVerdict
- Inherits:
-
Object
- Object
- Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1SmsTollFraudVerdict
- 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
Information about SMS toll fraud.
Instance Attribute Summary collapse
-
#reasons ⇒ Array<String>
Output only.
-
#risk ⇒ Float
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1SmsTollFraudVerdict
constructor
A new instance of GoogleCloudRecaptchaenterpriseV1SmsTollFraudVerdict.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1SmsTollFraudVerdict
Returns a new instance of GoogleCloudRecaptchaenterpriseV1SmsTollFraudVerdict.
1723 1724 1725 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1723 def initialize(**args) update!(**args) end |
Instance Attribute Details
#reasons ⇒ Array<String>
Output only. Reasons contributing to the SMS toll fraud verdict.
Corresponds to the JSON property reasons
1715 1716 1717 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1715 def reasons @reasons end |
#risk ⇒ Float
Output only. Probability of an SMS event being fraudulent. Values are from 0.0
(lowest) to 1.0 (highest).
Corresponds to the JSON property risk
1721 1722 1723 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1721 def risk @risk end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1728 1729 1730 1731 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1728 def update!(**args) @reasons = args[:reasons] if args.key?(:reasons) @risk = args[:risk] if args.key?(:risk) end |