Class: Google::Apis::IdentitytoolkitV3::EmailLinkSigninResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/identitytoolkit_v3/classes.rb,
lib/google/apis/identitytoolkit_v3/representations.rb,
lib/google/apis/identitytoolkit_v3/representations.rb

Overview

Response of email signIn.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EmailLinkSigninResponse

Returns a new instance of EmailLinkSigninResponse.



186
187
188
# File 'lib/google/apis/identitytoolkit_v3/classes.rb', line 186

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

Instance Attribute Details

#emailString

The user's email. Corresponds to the JSON property email

Returns:

  • (String)


153
154
155
# File 'lib/google/apis/identitytoolkit_v3/classes.rb', line 153

def email
  @email
end

#expires_inFixnum

Expiration time of STS id token in seconds. Corresponds to the JSON property expiresIn

Returns:

  • (Fixnum)


158
159
160
# File 'lib/google/apis/identitytoolkit_v3/classes.rb', line 158

def expires_in
  @expires_in
end

#id_tokenString

The STS id token to login the newly signed in user. Corresponds to the JSON property idToken

Returns:

  • (String)


163
164
165
# File 'lib/google/apis/identitytoolkit_v3/classes.rb', line 163

def id_token
  @id_token
end

#is_new_userBoolean Also known as: is_new_user?

Whether the user is new. Corresponds to the JSON property isNewUser

Returns:

  • (Boolean)


168
169
170
# File 'lib/google/apis/identitytoolkit_v3/classes.rb', line 168

def is_new_user
  @is_new_user
end

#kindString

The fixed string "identitytoolkit#EmailLinkSigninResponse". Corresponds to the JSON property kind

Returns:

  • (String)


174
175
176
# File 'lib/google/apis/identitytoolkit_v3/classes.rb', line 174

def kind
  @kind
end

#local_idString

The RP local ID of the user. Corresponds to the JSON property localId

Returns:

  • (String)


179
180
181
# File 'lib/google/apis/identitytoolkit_v3/classes.rb', line 179

def local_id
  @local_id
end

#refresh_tokenString

The refresh token for the signed in user. Corresponds to the JSON property refreshToken

Returns:

  • (String)


184
185
186
# File 'lib/google/apis/identitytoolkit_v3/classes.rb', line 184

def refresh_token
  @refresh_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



191
192
193
194
195
196
197
198
199
# File 'lib/google/apis/identitytoolkit_v3/classes.rb', line 191

def update!(**args)
  @email = args[:email] if args.key?(:email)
  @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)
  @kind = args[:kind] if args.key?(:kind)
  @local_id = args[:local_id] if args.key?(:local_id)
  @refresh_token = args[:refresh_token] if args.key?(:refresh_token)
end