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.



433
434
435
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 433

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)


413
414
415
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 413

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)


419
420
421
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 419

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)


425
426
427
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 425

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)


431
432
433
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 431

def request_token
  @request_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



438
439
440
441
442
443
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 438

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