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.



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

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)


3122
3123
3124
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3122

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)


3130
3131
3132
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3130

def id_token
  @id_token
end

#operationString

Corresponds to the JSON property operation

Returns:

  • (String)


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

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)


3143
3144
3145
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3143

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)


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

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)


3158
3159
3160
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3158

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)


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

def tenant_id
  @tenant_id
end

#verification_proofString

Do not use. Corresponds to the JSON property verificationProof

Returns:

  • (String)


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

def verification_proof
  @verification_proof
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3176

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