Class: Google::Apis::IdentitytoolkitV1::GoogleCloudIdentitytoolkitV1SignInWithGameCenterRequest

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

Request message for SignInWithGameCenter

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudIdentitytoolkitV1SignInWithGameCenterRequest

Returns a new instance of GoogleCloudIdentitytoolkitV1SignInWithGameCenterRequest.



2397
2398
2399
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2397

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

Instance Attribute Details

#display_nameString

The user's Game Center display name. Corresponds to the JSON property displayName

Returns:

  • (String)


2340
2341
2342
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2340

def display_name
  @display_name
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)


2347
2348
2349
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2347

def game_player_id
  @game_player_id
end

#id_tokenString

A valid ID token for an Identity Platform account. If present, this request will link the Game Center player ID to the account represented by this ID token. Corresponds to the JSON property idToken

Returns:

  • (String)


2354
2355
2356
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2354

def id_token
  @id_token
end

#player_idString

Required. The user's Game Center player ID. Deprecated by Apple. 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)


2361
2362
2363
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2361

def player_id
  @player_id
end

#public_key_urlString

Required. The URL to fetch the Apple public key in order to verify the given signature is signed by Apple. Corresponds to the JSON property publicKeyUrl

Returns:

  • (String)


2367
2368
2369
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2367

def public_key_url
  @public_key_url
end

#saltString

Required. A random string used to generate the given signature. Corresponds to the JSON property salt

Returns:

  • (String)


2372
2373
2374
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2372

def salt
  @salt
end

#signatureString

Required. The verification signature data generated by Apple. Corresponds to the JSON property signature

Returns:

  • (String)


2377
2378
2379
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2377

def signature
  @signature
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)


2384
2385
2386
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2384

def team_player_id
  @team_player_id
end

#tenant_idString

The ID of the Identity Platform tenant the user is signing in to. Corresponds to the JSON property tenantId

Returns:

  • (String)


2389
2390
2391
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2389

def tenant_id
  @tenant_id
end

#timestampFixnum

Required. The time when the signature was created by Apple, in milliseconds since the epoch. Corresponds to the JSON property timestamp

Returns:

  • (Fixnum)


2395
2396
2397
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2395

def timestamp
  @timestamp
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2402

def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @game_player_id = args[:game_player_id] if args.key?(:game_player_id)
  @id_token = args[:id_token] if args.key?(:id_token)
  @player_id = args[:player_id] if args.key?(:player_id)
  @public_key_url = args[:public_key_url] if args.key?(:public_key_url)
  @salt = args[:salt] if args.key?(:salt)
  @signature = args[:signature] if args.key?(:signature)
  @team_player_id = args[:team_player_id] if args.key?(:team_player_id)
  @tenant_id = args[:tenant_id] if args.key?(:tenant_id)
  @timestamp = args[:timestamp] if args.key?(:timestamp)
end