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.



2499
2500
2501
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2499

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)


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

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)


2455
2456
2457
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2455

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)


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

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)


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

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)


2472
2473
2474
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2472

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)


2478
2479
2480
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2478

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)


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

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)


2490
2491
2492
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2490

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)


2497
2498
2499
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2497

def team_player_id
  @team_player_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2504

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