Class: Google::Apis::IdentitytoolkitV1::GoogleCloudIdentitytoolkitV1SignInWithPhoneNumberRequest

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudIdentitytoolkitV1SignInWithPhoneNumberRequest

Returns a new instance of GoogleCloudIdentitytoolkitV1SignInWithPhoneNumberRequest.



3177
3178
3179
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3177

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

Instance Attribute Details

#codeString

User-entered verification code from an SMS sent to the user's phone. Corresponds to the JSON property code

Returns:

  • (String)


3128
3129
3130
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3128

def code
  @code
end

#id_tokenString

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

Returns:

  • (String)


3136
3137
3138
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3136

def id_token
  @id_token
end

#operationString

Corresponds to the JSON property operation

Returns:

  • (String)


3141
3142
3143
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3141

def operation
  @operation
end

#phone_numberString

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

Returns:

  • (String)


3149
3150
3151
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3149

def phone_number
  @phone_number
end

#session_infoString

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

Returns:

  • (String)


3156
3157
3158
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3156

def session_info
  @session_info
end

#temporary_proofString

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

Returns:

  • (String)


3164
3165
3166
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3164

def temporary_proof
  @temporary_proof
end

#tenant_idString

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

Returns:

  • (String)


3170
3171
3172
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3170

def tenant_id
  @tenant_id
end

#verification_proofString

Do not use. Corresponds to the JSON property verificationProof

Returns:

  • (String)


3175
3176
3177
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3175

def verification_proof
  @verification_proof
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3182

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