class Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TokenProperties

Attributes

action[RW]

Action name provided at token generation. Corresponds to the JSON property `action` @return [String]

create_time[RW]

The timestamp corresponding to the generation of the token. Corresponds to the JSON property `createTime` @return [String]

hostname[RW]

The hostname of the page on which the token was generated. Corresponds to the JSON property `hostname` @return [String]

invalid_reason[RW]

Reason associated with the response when valid = false. Corresponds to the JSON property `invalidReason` @return [String]

valid[RW]

Whether the provided user response token is valid. When valid = false, the reason could be specified in invalid_reason or it could also be due to a user failing to solve a challenge or a sitekey mismatch (i.e the sitekey used to generate the token was different than the one specified in the assessment). Corresponds to the JSON property `valid` @return [Boolean]

valid?[RW]

Whether the provided user response token is valid. When valid = false, the reason could be specified in invalid_reason or it could also be due to a user failing to solve a challenge or a sitekey mismatch (i.e the sitekey used to generate the token was different than the one specified in the assessment). Corresponds to the JSON property `valid` @return [Boolean]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/recaptchaenterprise_v1/classes.rb, line 524
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/recaptchaenterprise_v1/classes.rb, line 529
def update!(**args)
  @action = args[:action] if args.key?(:action)
  @create_time = args[:create_time] if args.key?(:create_time)
  @hostname = args[:hostname] if args.key?(:hostname)
  @invalid_reason = args[:invalid_reason] if args.key?(:invalid_reason)
  @valid = args[:valid] if args.key?(:valid)
end