Class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1EndpointVerificationInfo
- Inherits:
-
Object
- Object
- Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1EndpointVerificationInfo
- 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
-
#email_address ⇒ String
Email address for which to trigger a verification request.
-
#last_verification_time ⇒ String
Output only.
-
#phone_number ⇒ String
Phone number for which to trigger a verification request.
-
#request_token ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1EndpointVerificationInfo
constructor
A new instance of GoogleCloudRecaptchaenterpriseV1EndpointVerificationInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_address ⇒ String
Email address for which to trigger a verification request.
Corresponds to the JSON property emailAddress
413 414 415 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 413 def email_address @email_address end |
#last_verification_time ⇒ String
Output only. Timestamp of the last successful verification for the endpoint,
if any.
Corresponds to the JSON property lastVerificationTime
419 420 421 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 419 def last_verification_time @last_verification_time end |
#phone_number ⇒ String
Phone number for which to trigger a verification request. Should be given in E.
164 format.
Corresponds to the JSON property phoneNumber
425 426 427 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 425 def phone_number @phone_number end |
#request_token ⇒ String
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
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 |