Class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1SmsTollFraudVerdict

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1SmsTollFraudVerdict

Returns a new instance of GoogleCloudRecaptchaenterpriseV1SmsTollFraudVerdict.



1567
1568
1569
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1567

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#reasonsArray<String>

Output only. Reasons contributing to the SMS toll fraud verdict. Corresponds to the JSON property reasons

Returns:

  • (Array<String>)


1559
1560
1561
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1559

def reasons
  @reasons
end

#riskFloat

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

Returns:

  • (Float)


1565
1566
1567
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1565

def risk
  @risk
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1572
1573
1574
1575
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1572

def update!(**args)
  @reasons = args[:reasons] if args.key?(:reasons)
  @risk = args[:risk] if args.key?(:risk)
end