Class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TestingOptions

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

Options for user acceptance testing.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1TestingOptions

Returns a new instance of GoogleCloudRecaptchaenterpriseV1TestingOptions.



1751
1752
1753
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1751

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

Instance Attribute Details

#testing_challengeString

Optional. For challenge-based keys only (CHECKBOX, INVISIBLE), all challenge requests for this site return nocaptcha if NOCAPTCHA, or an unsolvable challenge if CHALLENGE. Corresponds to the JSON property testingChallenge

Returns:

  • (String)


1743
1744
1745
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1743

def testing_challenge
  @testing_challenge
end

#testing_scoreFloat

Optional. All assessments for this Key return this score. Must be between 0 ( likely not legitimate) and 1 (likely legitimate) inclusive. Corresponds to the JSON property testingScore

Returns:

  • (Float)


1749
1750
1751
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1749

def testing_score
  @testing_score
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1756
1757
1758
1759
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1756

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