Class: Google::Apis::IdentitytoolkitV1::GoogleCloudIdentitytoolkitV1SignInWithGameCenterResponse
- Inherits:
-
Object
- Object
- Google::Apis::IdentitytoolkitV1::GoogleCloudIdentitytoolkitV1SignInWithGameCenterResponse
- 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
-
#display_name ⇒ String
Display name of the authenticated user.
-
#expires_in ⇒ Fixnum
The number of seconds until the ID token expires.
-
#game_player_id ⇒ String
The user's Game Center game player ID.
-
#id_token ⇒ String
An Identity Platform ID token for the authenticated user.
-
#is_new_user ⇒ Boolean
(also: #is_new_user?)
Whether the logged in user was created by this request.
-
#local_id ⇒ String
The ID of the authenticated user.
-
#player_id ⇒ String
The user's Game Center player ID.
-
#refresh_token ⇒ String
An Identity Platform refresh token for the authenticated user.
-
#team_player_id ⇒ String
The user's Game Center team player ID.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudIdentitytoolkitV1SignInWithGameCenterResponse
constructor
A new instance of GoogleCloudIdentitytoolkitV1SignInWithGameCenterResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_name ⇒ String
Display name of the authenticated user.
Corresponds to the JSON property displayName
2450 2451 2452 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2450 def display_name @display_name end |
#expires_in ⇒ Fixnum
The number of seconds until the ID token expires.
Corresponds to the JSON property expiresIn
2455 2456 2457 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2455 def expires_in @expires_in end |
#game_player_id ⇒ String
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
2462 2463 2464 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2462 def game_player_id @game_player_id end |
#id_token ⇒ String
An Identity Platform ID token for the authenticated user.
Corresponds to the JSON property idToken
2467 2468 2469 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2467 def id_token @id_token end |
#is_new_user ⇒ Boolean Also known as: is_new_user?
Whether the logged in user was created by this request.
Corresponds to the JSON property isNewUser
2472 2473 2474 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2472 def is_new_user @is_new_user end |
#local_id ⇒ String
The ID of the authenticated user. Always present in the response.
Corresponds to the JSON property localId
2478 2479 2480 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2478 def local_id @local_id end |
#player_id ⇒ String
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
2485 2486 2487 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2485 def player_id @player_id end |
#refresh_token ⇒ String
An Identity Platform refresh token for the authenticated user.
Corresponds to the JSON property refreshToken
2490 2491 2492 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2490 def refresh_token @refresh_token end |
#team_player_id ⇒ String
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
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 |