Class: Google::Apis::IdentitytoolkitV1::GoogleCloudIdentitytoolkitV1SignInWithGameCenterResponse

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 SignInWithGameCenter

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudIdentitytoolkitV1SignInWithGameCenterResponse

Returns a new instance of GoogleCloudIdentitytoolkitV1SignInWithGameCenterResponse.



2495
2496
2497
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2495

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

Instance Attribute Details

#display_nameString

Display name of the authenticated user. Corresponds to the JSON property displayName

Returns:

  • (String)


2446
2447
2448
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2446

def display_name
  @display_name
end

#expires_inFixnum

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

Returns:

  • (Fixnum)


2451
2452
2453
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2451

def expires_in
  @expires_in
end

#game_player_idString

The user's Game Center game player ID. A unique identifier for a player of the game. https://developer.apple.com/documentation/gamekit/gkplayer/3113960- gameplayerid Corresponds to the JSON property gamePlayerId

Returns:

  • (String)


2458
2459
2460
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2458

def game_player_id
  @game_player_id
end

#id_tokenString

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

Returns:

  • (String)


2463
2464
2465
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2463

def id_token
  @id_token
end

#is_new_userBoolean Also known as: is_new_user?

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

Returns:

  • (Boolean)


2468
2469
2470
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2468

def is_new_user
  @is_new_user
end

#local_idString

The ID of the authenticated user. Always present in the response. Corresponds to the JSON property localId

Returns:

  • (String)


2474
2475
2476
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2474

def local_id
  @local_id
end

#player_idString

The user's Game Center player ID. Pass playerID along with gamePlayerID and teamPlayerID to initiate the migration of a user's Game Center player ID to gamePlayerID. Corresponds to the JSON property playerId

Returns:

  • (String)


2481
2482
2483
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2481

def player_id
  @player_id
end

#refresh_tokenString

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

Returns:

  • (String)


2486
2487
2488
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2486

def refresh_token
  @refresh_token
end

#team_player_idString

The user's Game Center team player ID. A unique identifier for a player of all the games that you distribute using your developer account. https://developer. apple.com/documentation/gamekit/gkplayer/3174857-teamplayerid Corresponds to the JSON property teamPlayerId

Returns:

  • (String)


2493
2494
2495
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2493

def team_player_id
  @team_player_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2500

def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @expires_in = args[:expires_in] if args.key?(:expires_in)
  @game_player_id = args[:game_player_id] if args.key?(:game_player_id)
  @id_token = args[:id_token] if args.key?(:id_token)
  @is_new_user = args[:is_new_user] if args.key?(:is_new_user)
  @local_id = args[:local_id] if args.key?(:local_id)
  @player_id = args[:player_id] if args.key?(:player_id)
  @refresh_token = args[:refresh_token] if args.key?(:refresh_token)
  @team_player_id = args[:team_player_id] if args.key?(:team_player_id)
end