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.



2206
2207
2208
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2206

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)


2183
2184
2185
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2183

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)


2188
2189
2190
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2188

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)


2193
2194
2195
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2193

def is_new_user
  @is_new_user
end

#kindString

Corresponds to the JSON property kind

Returns:

  • (String)


2199
2200
2201
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2199

def kind
  @kind
end

#refresh_tokenString

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

Returns:

  • (String)


2204
2205
2206
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2204

def refresh_token
  @refresh_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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