Class: Google::Apis::GamesManagementV1management::GamesManagementService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::GamesManagementV1management::GamesManagementService
- Defined in:
- generated/google/apis/games_management_v1management/service.rb
Overview
Google Play Game Services Management API
The Management API for Google Play Game Services.
Instance Attribute Summary collapse
-
#key ⇒ String
API key.
-
#quota_user ⇒ String
An opaque string that represents a user for quota purposes.
-
#user_ip ⇒ String
Deprecated.
Attributes inherited from Core::BaseService
#authorization, #base_path, #batch_path, #client, #client_options, #request_options, #root_url, #upload_path
Instance Method Summary collapse
-
#hide_player(application_id, player_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
Hide the given player's leaderboard scores from the given application.
-
#initialize ⇒ GamesManagementService
constructor
A new instance of GamesManagementService.
-
#list_application_hidden(application_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GamesManagementV1management::HiddenPlayerList
Get the list of players hidden from the given application.
-
#reset_achievement(achievement_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GamesManagementV1management::AchievementResetResponse
Resets the achievement with the given ID for the currently authenticated player.
-
#reset_achievement_all(fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GamesManagementV1management::AchievementResetAllResponse
Resets all achievements for the currently authenticated player for your application.
-
#reset_achievement_all_for_all_players(fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
Resets all draft achievements for all players.
-
#reset_achievement_for_all_players(achievement_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
Resets the achievement with the given ID for all players.
-
#reset_achievement_multiple_for_all_players(achievement_reset_multiple_for_all_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
Resets achievements with the given IDs for all players.
-
#reset_event(event_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
Resets all player progress on the event with the given ID for the currently authenticated player.
-
#reset_event_all(fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
Resets all player progress on all events for the currently authenticated player.
-
#reset_event_all_for_all_players(fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
Resets all draft events for all players.
-
#reset_event_for_all_players(event_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
Resets the event with the given ID for all players.
-
#reset_event_multiple_for_all_players(events_reset_multiple_for_all_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
Resets events with the given IDs for all players.
-
#reset_quest(quest_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
Resets all player progress on the quest with the given ID for the currently authenticated player.
-
#reset_quest_all(fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
Resets all player progress on all quests for the currently authenticated player.
-
#reset_quest_all_for_all_players(fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
Resets all draft quests for all players.
-
#reset_quest_for_all_players(quest_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
Resets all player progress on the quest with the given ID for all players.
-
#reset_quest_multiple_for_all_players(quests_reset_multiple_for_all_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
Resets quests with the given IDs for all players.
-
#reset_room(fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
Reset all rooms for the currently authenticated player for your application.
-
#reset_room_for_all_players(fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
Deletes rooms where the only room participants are from whitelisted tester accounts for your application.
-
#reset_score(leaderboard_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GamesManagementV1management::PlayerScoreResetResponse
Resets scores for the leaderboard with the given ID for the currently authenticated player.
-
#reset_score_all(fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GamesManagementV1management::PlayerScoreResetAllResponse
Resets all scores for all leaderboards for the currently authenticated players.
-
#reset_score_all_for_all_players(fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
Resets scores for all draft leaderboards for all players.
-
#reset_score_for_all_players(leaderboard_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
Resets scores for the leaderboard with the given ID for all players.
-
#reset_score_multiple_for_all_players(scores_reset_multiple_for_all_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
Resets scores for the leaderboards with the given IDs for all players.
-
#reset_turn_based_match(fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
Reset all turn-based match data for a user.
-
#reset_turn_based_match_for_all_players(fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
Deletes turn-based matches where the only match participants are from whitelisted tester accounts for your application.
-
#unhide_player(application_id, player_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
Unhide the given player's leaderboard scores from the given application.
Methods inherited from Core::BaseService
#batch, #batch_upload, #fetch_all, #http
Methods included from Core::Logging
Constructor Details
#initialize ⇒ GamesManagementService
Returns a new instance of GamesManagementService
49 50 51 52 |
# File 'generated/google/apis/games_management_v1management/service.rb', line 49 def initialize super('https://www.googleapis.com/', 'games/v1management/') @batch_path = 'batch/gamesManagement/v1management' end |
Instance Attribute Details
#key ⇒ String
Returns API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
38 39 40 |
# File 'generated/google/apis/games_management_v1management/service.rb', line 38 def key @key end |
#quota_user ⇒ String
Returns An opaque string that represents a user for quota purposes. Must not exceed 40 characters.
43 44 45 |
# File 'generated/google/apis/games_management_v1management/service.rb', line 43 def quota_user @quota_user end |
#user_ip ⇒ String
Returns Deprecated. Please use quotaUser instead.
47 48 49 |
# File 'generated/google/apis/games_management_v1management/service.rb', line 47 def user_ip @user_ip end |
Instance Method Details
#hide_player(application_id, player_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Hide the given player's leaderboard scores from the given application. This method is only available to user accounts for your developer console.
444 445 446 447 448 449 450 451 452 |
# File 'generated/google/apis/games_management_v1management/service.rb', line 444 def hide_player(application_id, player_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'applications/{applicationId}/players/hidden/{playerId}', ) command.params['applicationId'] = application_id unless application_id.nil? command.params['playerId'] = player_id unless player_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#list_application_hidden(application_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GamesManagementV1management::HiddenPlayerList
Get the list of players hidden from the given application. This method is only available to user accounts for your developer console.
245 246 247 248 249 250 251 252 253 254 255 256 |
# File 'generated/google/apis/games_management_v1management/service.rb', line 245 def list_application_hidden(application_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:get, 'applications/{applicationId}/players/hidden', ) command.response_representation = Google::Apis::GamesManagementV1management::HiddenPlayerList::Representation command.response_class = Google::Apis::GamesManagementV1management::HiddenPlayerList command.params['applicationId'] = application_id unless application_id.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#reset_achievement(achievement_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GamesManagementV1management::AchievementResetResponse
Resets the achievement with the given ID for the currently authenticated player. This method is only accessible to whitelisted tester accounts for your application.
78 79 80 81 82 83 84 85 86 87 |
# File 'generated/google/apis/games_management_v1management/service.rb', line 78 def reset_achievement(achievement_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'achievements/{achievementId}/reset', ) command.response_representation = Google::Apis::GamesManagementV1management::AchievementResetResponse::Representation command.response_class = Google::Apis::GamesManagementV1management::AchievementResetResponse command.params['achievementId'] = achievement_id unless achievement_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#reset_achievement_all(fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GamesManagementV1management::AchievementResetAllResponse
Resets all achievements for the currently authenticated player for your application. This method is only accessible to whitelisted tester accounts for your application.
111 112 113 114 115 116 117 118 119 |
# File 'generated/google/apis/games_management_v1management/service.rb', line 111 def reset_achievement_all(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'achievements/reset', ) command.response_representation = Google::Apis::GamesManagementV1management::AchievementResetAllResponse::Representation command.response_class = Google::Apis::GamesManagementV1management::AchievementResetAllResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#reset_achievement_all_for_all_players(fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Resets all draft achievements for all players. This method is only available to user accounts for your developer console.
142 143 144 145 146 147 148 |
# File 'generated/google/apis/games_management_v1management/service.rb', line 142 def reset_achievement_all_for_all_players(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'achievements/resetAllForAllPlayers', ) command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#reset_achievement_for_all_players(achievement_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Resets the achievement with the given ID for all players. This method is only available to user accounts for your developer console. Only draft achievements can be reset.
174 175 176 177 178 179 180 181 |
# File 'generated/google/apis/games_management_v1management/service.rb', line 174 def reset_achievement_for_all_players(achievement_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'achievements/{achievementId}/resetForAllPlayers', ) command.params['achievementId'] = achievement_id unless achievement_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#reset_achievement_multiple_for_all_players(achievement_reset_multiple_for_all_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Resets achievements with the given IDs for all players. This method is only available to user accounts for your developer console. Only draft achievements may be reset.
206 207 208 209 210 211 212 213 214 |
# File 'generated/google/apis/games_management_v1management/service.rb', line 206 def reset_achievement_multiple_for_all_players(achievement_reset_multiple_for_all_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'achievements/resetMultipleForAllPlayers', ) command.request_representation = Google::Apis::GamesManagementV1management::AchievementResetMultipleForAllRequest::Representation command.request_object = achievement_reset_multiple_for_all_request_object command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#reset_event(event_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Resets all player progress on the event with the given ID for the currently authenticated player. This method is only accessible to whitelisted tester accounts for your application. All quests for this player that use the event will also be reset.
283 284 285 286 287 288 289 290 |
# File 'generated/google/apis/games_management_v1management/service.rb', line 283 def reset_event(event_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'events/{eventId}/reset', ) command.params['eventId'] = event_id unless event_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#reset_event_all(fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Resets all player progress on all events for the currently authenticated player. This method is only accessible to whitelisted tester accounts for your application. All quests for this player will also be reset.
314 315 316 317 318 319 320 |
# File 'generated/google/apis/games_management_v1management/service.rb', line 314 def reset_event_all(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'events/reset', ) command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#reset_event_all_for_all_players(fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Resets all draft events for all players. This method is only available to user accounts for your developer console. All quests that use any of these events will also be reset.
344 345 346 347 348 349 350 |
# File 'generated/google/apis/games_management_v1management/service.rb', line 344 def reset_event_all_for_all_players(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'events/resetAllForAllPlayers', ) command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#reset_event_for_all_players(event_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Resets the event with the given ID for all players. This method is only available to user accounts for your developer console. Only draft events can be reset. All quests that use the event will also be reset.
376 377 378 379 380 381 382 383 |
# File 'generated/google/apis/games_management_v1management/service.rb', line 376 def reset_event_for_all_players(event_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'events/{eventId}/resetForAllPlayers', ) command.params['eventId'] = event_id unless event_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#reset_event_multiple_for_all_players(events_reset_multiple_for_all_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Resets events with the given IDs for all players. This method is only available to user accounts for your developer console. Only draft events may be reset. All quests that use any of the events will also be reset.
408 409 410 411 412 413 414 415 416 |
# File 'generated/google/apis/games_management_v1management/service.rb', line 408 def reset_event_multiple_for_all_players(events_reset_multiple_for_all_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'events/resetMultipleForAllPlayers', ) command.request_representation = Google::Apis::GamesManagementV1management::EventsResetMultipleForAllRequest::Representation command.request_object = events_reset_multiple_for_all_request_object command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#reset_quest(quest_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Resets all player progress on the quest with the given ID for the currently authenticated player. This method is only accessible to whitelisted tester accounts for your application.
514 515 516 517 518 519 520 521 |
# File 'generated/google/apis/games_management_v1management/service.rb', line 514 def reset_quest(quest_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'quests/{questId}/reset', ) command.params['questId'] = quest_id unless quest_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#reset_quest_all(fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Resets all player progress on all quests for the currently authenticated player. This method is only accessible to whitelisted tester accounts for your application.
545 546 547 548 549 550 551 |
# File 'generated/google/apis/games_management_v1management/service.rb', line 545 def reset_quest_all(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'quests/reset', ) command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#reset_quest_all_for_all_players(fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Resets all draft quests for all players. This method is only available to user accounts for your developer console.
574 575 576 577 578 579 580 |
# File 'generated/google/apis/games_management_v1management/service.rb', line 574 def reset_quest_all_for_all_players(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'quests/resetAllForAllPlayers', ) command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#reset_quest_for_all_players(quest_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Resets all player progress on the quest with the given ID for all players. This method is only available to user accounts for your developer console. Only draft quests can be reset.
606 607 608 609 610 611 612 613 |
# File 'generated/google/apis/games_management_v1management/service.rb', line 606 def reset_quest_for_all_players(quest_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'quests/{questId}/resetForAllPlayers', ) command.params['questId'] = quest_id unless quest_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#reset_quest_multiple_for_all_players(quests_reset_multiple_for_all_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Resets quests with the given IDs for all players. This method is only available to user accounts for your developer console. Only draft quests may be reset.
638 639 640 641 642 643 644 645 646 |
# File 'generated/google/apis/games_management_v1management/service.rb', line 638 def reset_quest_multiple_for_all_players(quests_reset_multiple_for_all_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'quests/resetMultipleForAllPlayers', ) command.request_representation = Google::Apis::GamesManagementV1management::QuestsResetMultipleForAllRequest::Representation command.request_object = quests_reset_multiple_for_all_request_object command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#reset_room(fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Reset all rooms for the currently authenticated player for your application. This method is only accessible to whitelisted tester accounts for your application.
670 671 672 673 674 675 676 |
# File 'generated/google/apis/games_management_v1management/service.rb', line 670 def reset_room(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'rooms/reset', ) command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#reset_room_for_all_players(fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Deletes rooms where the only room participants are from whitelisted tester accounts for your application. This method is only available to user accounts for your developer console.
700 701 702 703 704 705 706 |
# File 'generated/google/apis/games_management_v1management/service.rb', line 700 def reset_room_for_all_players(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'rooms/resetForAllPlayers', ) command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#reset_score(leaderboard_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GamesManagementV1management::PlayerScoreResetResponse
Resets scores for the leaderboard with the given ID for the currently authenticated player. This method is only accessible to whitelisted tester accounts for your application.
732 733 734 735 736 737 738 739 740 741 |
# File 'generated/google/apis/games_management_v1management/service.rb', line 732 def reset_score(leaderboard_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'leaderboards/{leaderboardId}/scores/reset', ) command.response_representation = Google::Apis::GamesManagementV1management::PlayerScoreResetResponse::Representation command.response_class = Google::Apis::GamesManagementV1management::PlayerScoreResetResponse command.params['leaderboardId'] = leaderboard_id unless leaderboard_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#reset_score_all(fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::GamesManagementV1management::PlayerScoreResetAllResponse
Resets all scores for all leaderboards for the currently authenticated players. This method is only accessible to whitelisted tester accounts for your application.
765 766 767 768 769 770 771 772 773 |
# File 'generated/google/apis/games_management_v1management/service.rb', line 765 def reset_score_all(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'scores/reset', ) command.response_representation = Google::Apis::GamesManagementV1management::PlayerScoreResetAllResponse::Representation command.response_class = Google::Apis::GamesManagementV1management::PlayerScoreResetAllResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#reset_score_all_for_all_players(fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Resets scores for all draft leaderboards for all players. This method is only available to user accounts for your developer console.
796 797 798 799 800 801 802 |
# File 'generated/google/apis/games_management_v1management/service.rb', line 796 def reset_score_all_for_all_players(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'scores/resetAllForAllPlayers', ) command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#reset_score_for_all_players(leaderboard_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Resets scores for the leaderboard with the given ID for all players. This method is only available to user accounts for your developer console. Only draft leaderboards can be reset.
828 829 830 831 832 833 834 835 |
# File 'generated/google/apis/games_management_v1management/service.rb', line 828 def reset_score_for_all_players(leaderboard_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'leaderboards/{leaderboardId}/scores/resetForAllPlayers', ) command.params['leaderboardId'] = leaderboard_id unless leaderboard_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#reset_score_multiple_for_all_players(scores_reset_multiple_for_all_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Resets scores for the leaderboards with the given IDs for all players. This method is only available to user accounts for your developer console. Only draft leaderboards may be reset.
860 861 862 863 864 865 866 867 868 |
# File 'generated/google/apis/games_management_v1management/service.rb', line 860 def reset_score_multiple_for_all_players(scores_reset_multiple_for_all_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'scores/resetMultipleForAllPlayers', ) command.request_representation = Google::Apis::GamesManagementV1management::ScoresResetMultipleForAllRequest::Representation command.request_object = scores_reset_multiple_for_all_request_object command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#reset_turn_based_match(fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Reset all turn-based match data for a user. This method is only accessible to whitelisted tester accounts for your application.
891 892 893 894 895 896 897 |
# File 'generated/google/apis/games_management_v1management/service.rb', line 891 def reset_turn_based_match(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'turnbasedmatches/reset', ) command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#reset_turn_based_match_for_all_players(fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Deletes turn-based matches where the only match participants are from whitelisted tester accounts for your application. This method is only available to user accounts for your developer console.
921 922 923 924 925 926 927 |
# File 'generated/google/apis/games_management_v1management/service.rb', line 921 def reset_turn_based_match_for_all_players(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'turnbasedmatches/resetForAllPlayers', ) command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |
#unhide_player(application_id, player_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Unhide the given player's leaderboard scores from the given application. This method is only available to user accounts for your developer console.
480 481 482 483 484 485 486 487 488 |
# File 'generated/google/apis/games_management_v1management/service.rb', line 480 def unhide_player(application_id, player_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:delete, 'applications/{applicationId}/players/hidden/{playerId}', ) command.params['applicationId'] = application_id unless application_id.nil? command.params['playerId'] = player_id unless player_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end |