Class: Google::Apis::IdentitytoolkitV1::GoogleCloudIdentitytoolkitV1SignInWithPhoneNumberResponse
- Inherits:
-
Object
- Object
- Google::Apis::IdentitytoolkitV1::GoogleCloudIdentitytoolkitV1SignInWithPhoneNumberResponse
- 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
Response message for SignInWithPhoneNumber.
Instance Attribute Summary collapse
-
#expires_in ⇒ Fixnum
The number of seconds until the ID token expires.
-
#id_token ⇒ String
Identity Platform ID token for the authenticated user.
-
#is_new_user ⇒ Boolean
(also: #is_new_user?)
Whether the authenticated user was created by this request.
-
#local_id ⇒ String
The id of the authenticated user.
-
#phone_number ⇒ String
Phone number of the authenticated user.
-
#refresh_token ⇒ String
Refresh token for the authenticated user.
-
#temporary_proof ⇒ String
A proof of the phone number verification, provided if a phone authentication is successful but the user operation fails.
-
#temporary_proof_expires_in ⇒ Fixnum
The number of seconds until the temporary proof expires.
-
#verification_proof ⇒ String
Do not use.
-
#verification_proof_expires_in ⇒ Fixnum
Do not use.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudIdentitytoolkitV1SignInWithPhoneNumberResponse
constructor
A new instance of GoogleCloudIdentitytoolkitV1SignInWithPhoneNumberResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudIdentitytoolkitV1SignInWithPhoneNumberResponse
Returns a new instance of GoogleCloudIdentitytoolkitV1SignInWithPhoneNumberResponse.
3225 3226 3227 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3225 def initialize(**args) update!(**args) end |
Instance Attribute Details
#expires_in ⇒ Fixnum
The number of seconds until the ID token expires.
Corresponds to the JSON property expiresIn
3172 3173 3174 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3172 def expires_in @expires_in end |
#id_token ⇒ String
Identity Platform ID token for the authenticated user.
Corresponds to the JSON property idToken
3177 3178 3179 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3177 def id_token @id_token end |
#is_new_user ⇒ Boolean Also known as: is_new_user?
Whether the authenticated user was created by this request.
Corresponds to the JSON property isNewUser
3182 3183 3184 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3182 def is_new_user @is_new_user end |
#local_id ⇒ String
The id of the authenticated user. Present in the case of a successful
authentication. In the case when the phone could be verified but the account
operation could not be performed, a temporary proof will be returned instead.
Corresponds to the JSON property localId
3190 3191 3192 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3190 def local_id @local_id end |
#phone_number ⇒ String
Phone number of the authenticated user. Always present in the response.
Corresponds to the JSON property phoneNumber
3195 3196 3197 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3195 def phone_number @phone_number end |
#refresh_token ⇒ String
Refresh token for the authenticated user.
Corresponds to the JSON property refreshToken
3200 3201 3202 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3200 def refresh_token @refresh_token end |
#temporary_proof ⇒ String
A proof of the phone number verification, provided if a phone authentication
is successful but the user operation fails. This happens when the request
tries to link a phone number to a user with an ID token or reauthenticate with
an ID token but the phone number is linked to a different user.
Corresponds to the JSON property temporaryProof
3208 3209 3210 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3208 def temporary_proof @temporary_proof end |
#temporary_proof_expires_in ⇒ Fixnum
The number of seconds until the temporary proof expires.
Corresponds to the JSON property temporaryProofExpiresIn
3213 3214 3215 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3213 def temporary_proof_expires_in @temporary_proof_expires_in end |
#verification_proof ⇒ String
Do not use.
Corresponds to the JSON property verificationProof
3218 3219 3220 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3218 def verification_proof @verification_proof end |
#verification_proof_expires_in ⇒ Fixnum
Do not use.
Corresponds to the JSON property verificationProofExpiresIn
3223 3224 3225 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3223 def verification_proof_expires_in @verification_proof_expires_in end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3230 def update!(**args) @expires_in = args[:expires_in] if args.key?(:expires_in) @id_token = args[:id_token] if args.key?(:id_token) @is_new_user = args[:is_new_user] if args.key?(:is_new_user) @local_id = args[:local_id] if args.key?(:local_id) @phone_number = args[:phone_number] if args.key?(:phone_number) @refresh_token = args[:refresh_token] if args.key?(:refresh_token) @temporary_proof = args[:temporary_proof] if args.key?(:temporary_proof) @temporary_proof_expires_in = args[:temporary_proof_expires_in] if args.key?(:temporary_proof_expires_in) @verification_proof = args[:verification_proof] if args.key?(:verification_proof) @verification_proof_expires_in = args[:verification_proof_expires_in] if args.key?(:verification_proof_expires_in) end |