Class: Google::Apis::IdentitytoolkitV1::GoogleCloudIdentitytoolkitV1SignInWithCustomTokenResponse

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

Response message for SignInWithCustomToken.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudIdentitytoolkitV1SignInWithCustomTokenResponse

Returns a new instance of GoogleCloudIdentitytoolkitV1SignInWithCustomTokenResponse.



2233
2234
2235
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2233

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

Instance Attribute Details

#expires_inFixnum

The number of seconds until the ID token expires. Corresponds to the JSON property expiresIn

Returns:

  • (Fixnum)


2210
2211
2212
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2210

def expires_in
  @expires_in
end

#id_tokenString

An Identity Platform ID token for the authenticated user. Corresponds to the JSON property idToken

Returns:

  • (String)


2215
2216
2217
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2215

def id_token
  @id_token
end

#is_new_userBoolean Also known as: is_new_user?

Whether the authenticated user was created by this request. Corresponds to the JSON property isNewUser

Returns:

  • (Boolean)


2220
2221
2222
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2220

def is_new_user
  @is_new_user
end

#kindString

Corresponds to the JSON property kind

Returns:

  • (String)


2226
2227
2228
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2226

def kind
  @kind
end

#refresh_tokenString

An Identity Platform refresh token for the authenticated user. Corresponds to the JSON property refreshToken

Returns:

  • (String)


2231
2232
2233
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2231

def refresh_token
  @refresh_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2238
2239
2240
2241
2242
2243
2244
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2238

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)
  @kind = args[:kind] if args.key?(:kind)
  @refresh_token = args[:refresh_token] if args.key?(:refresh_token)
end