Class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RiskAnalysis

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

Risk analysis result for an event.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1RiskAnalysis

Returns a new instance of GoogleCloudRecaptchaenterpriseV1RiskAnalysis.



1341
1342
1343
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1341

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

Returns:

  • (Array<String>)


1328
1329
1330
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1328

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

Returns:

  • (Array<String>)


1333
1334
1335
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1333

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

Returns:

  • (Float)


1339
1340
1341
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1339

def score
  @score
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1346
1347
1348
1349
1350
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1346

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