Class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1EndpointVerificationInfo

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 a verification endpoint that can be used for 2FA.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1EndpointVerificationInfo

Returns a new instance of GoogleCloudRecaptchaenterpriseV1EndpointVerificationInfo.



285
286
287
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 285

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

Instance Attribute Details

#email_addressString

Email address for which to trigger a verification request. Corresponds to the JSON property emailAddress

Returns:

  • (String)


265
266
267
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 265

def email_address
  @email_address
end

#last_verification_timeString

Output only. Timestamp of the last successful verification for the endpoint, if any. Corresponds to the JSON property lastVerificationTime

Returns:

  • (String)


271
272
273
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 271

def last_verification_time
  @last_verification_time
end

#phone_numberString

Phone number for which to trigger a verification request. Should be given in E. 164 format. Corresponds to the JSON property phoneNumber

Returns:

  • (String)


277
278
279
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 277

def phone_number
  @phone_number
end

#request_tokenString

Output only. Token to provide to the client to trigger endpoint verification. It must be used within 15 minutes. Corresponds to the JSON property requestToken

Returns:

  • (String)


283
284
285
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 283

def request_token
  @request_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



290
291
292
293
294
295
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 290

def update!(**args)
  @email_address = args[:email_address] if args.key?(:email_address)
  @last_verification_time = args[:last_verification_time] if args.key?(:last_verification_time)
  @phone_number = args[:phone_number] if args.key?(:phone_number)
  @request_token = args[:request_token] if args.key?(:request_token)
end