Class: Google::Apis::IdentitytoolkitV1::GoogleCloudIdentitytoolkitV1SignInWithPhoneNumberRequest
- Inherits:
-
Object
- Object
- Google::Apis::IdentitytoolkitV1::GoogleCloudIdentitytoolkitV1SignInWithPhoneNumberRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/identitytoolkit_v1/classes.rb,
lib/google/apis/identitytoolkit_v1/representations.rb,
lib/google/apis/identitytoolkit_v1/representations.rb
Overview
Request message for SignInWithPhoneNumber.
Instance Attribute Summary collapse
-
#code ⇒ String
User-entered verification code from an SMS sent to the user's phone.
-
#id_token ⇒ String
A valid ID token for an Identity Platform account.
-
#operation ⇒ String
Corresponds to the JSON property
operation
. -
#phone_number ⇒ String
The user's phone number to sign in with.
-
#session_info ⇒ String
Encrypted session information from the response of sendVerificationCode.
-
#temporary_proof ⇒ String
A proof of the phone number verification, provided from a previous signInWithPhoneNumber request.
-
#tenant_id ⇒ String
The ID of the Identity Platform tenant the user is signing in to.
-
#verification_proof ⇒ String
Do not use.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudIdentitytoolkitV1SignInWithPhoneNumberRequest
constructor
A new instance of GoogleCloudIdentitytoolkitV1SignInWithPhoneNumberRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudIdentitytoolkitV1SignInWithPhoneNumberRequest
Returns a new instance of GoogleCloudIdentitytoolkitV1SignInWithPhoneNumberRequest.
3148 3149 3150 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3148 def initialize(**args) update!(**args) end |
Instance Attribute Details
#code ⇒ String
User-entered verification code from an SMS sent to the user's phone.
Corresponds to the JSON property code
3099 3100 3101 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3099 def code @code end |
#id_token ⇒ String
A valid ID token for an Identity Platform account. If passed, this request
will link the phone number to the user represented by this ID token if the
phone number is not in use, or will reauthenticate the user if the phone
number is already linked to the user.
Corresponds to the JSON property idToken
3107 3108 3109 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3107 def id_token @id_token end |
#operation ⇒ String
Corresponds to the JSON property operation
3112 3113 3114 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3112 def operation @operation end |
#phone_number ⇒ String
The user's phone number to sign in with. This is necessary in the case of uing
a temporary proof, in which case it must match the phone number that was
authenticated in the request that generated the temporary proof. This field is
ignored if a session info is passed.
Corresponds to the JSON property phoneNumber
3120 3121 3122 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3120 def phone_number @phone_number end |
#session_info ⇒ String
Encrypted session information from the response of sendVerificationCode. In
the case of authenticating with an SMS code this must be specified, but in the
case of using a temporary proof it can be unspecified.
Corresponds to the JSON property sessionInfo
3127 3128 3129 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3127 def session_info @session_info end |
#temporary_proof ⇒ String
A proof of the phone number verification, provided from a previous
signInWithPhoneNumber request. If this is passed, the caller must also pass in
the phone_number field the phone number that was verified in the previous
request.
Corresponds to the JSON property temporaryProof
3135 3136 3137 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3135 def temporary_proof @temporary_proof end |
#tenant_id ⇒ String
The ID of the Identity Platform tenant the user is signing in to. If not set,
the user will sign in to the default Identity Platform project.
Corresponds to the JSON property tenantId
3141 3142 3143 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3141 def tenant_id @tenant_id end |
#verification_proof ⇒ String
Do not use.
Corresponds to the JSON property verificationProof
3146 3147 3148 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3146 def verification_proof @verification_proof end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3153 def update!(**args) @code = args[:code] if args.key?(:code) @id_token = args[:id_token] if args.key?(:id_token) @operation = args[:operation] if args.key?(:operation) @phone_number = args[:phone_number] if args.key?(:phone_number) @session_info = args[:session_info] if args.key?(:session_info) @temporary_proof = args[:temporary_proof] if args.key?(:temporary_proof) @tenant_id = args[:tenant_id] if args.key?(:tenant_id) @verification_proof = args[:verification_proof] if args.key?(:verification_proof) end |