google-apis-games_management_v1management 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +13 -0
- data/CHANGELOG.md +7 -0
- data/LICENSE.md +202 -0
- data/OVERVIEW.md +96 -0
- data/lib/google-apis-games_management_v1management.rb +15 -0
- data/lib/google/apis/games_management_v1management.rb +37 -0
- data/lib/google/apis/games_management_v1management/classes.rb +501 -0
- data/lib/google/apis/games_management_v1management/gem_version.rb +28 -0
- data/lib/google/apis/games_management_v1management/representations.rb +248 -0
- data/lib/google/apis/games_management_v1management/service.rb +604 -0
- metadata +76 -0
@@ -0,0 +1,28 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
module Google
|
16
|
+
module Apis
|
17
|
+
module GamesManagementV1management
|
18
|
+
# Version of the google-apis-games_management_v1management gem
|
19
|
+
GEM_VERSION = "0.1.0"
|
20
|
+
|
21
|
+
# Version of the code generator used to generate this client
|
22
|
+
GENERATOR_VERSION = "0.1.1"
|
23
|
+
|
24
|
+
# Revision of the discovery document this client was generated from
|
25
|
+
REVISION = "20200811"
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,248 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'date'
|
16
|
+
require 'google/apis/core/base_service'
|
17
|
+
require 'google/apis/core/json_representation'
|
18
|
+
require 'google/apis/core/hashable'
|
19
|
+
require 'google/apis/errors'
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Apis
|
23
|
+
module GamesManagementV1management
|
24
|
+
|
25
|
+
class AchievementResetAllResponse
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
31
|
+
class AchievementResetMultipleForAllRequest
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
37
|
+
class AchievementResetResponse
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
43
|
+
class EventsResetMultipleForAllRequest
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
49
|
+
class GamesPlayerExperienceInfoResource
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
55
|
+
class GamesPlayerLevelResource
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
61
|
+
class HiddenPlayer
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
67
|
+
class HiddenPlayerList
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
73
|
+
class Player
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
class Name
|
77
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
78
|
+
|
79
|
+
include Google::Apis::Core::JsonObjectSupport
|
80
|
+
end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
85
|
+
class PlayerScoreResetAllResponse
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
90
|
+
|
91
|
+
class PlayerScoreResetResponse
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
|
+
end
|
96
|
+
|
97
|
+
class ProfileSettings
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
+
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
101
|
+
end
|
102
|
+
|
103
|
+
class ScoresResetMultipleForAllRequest
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
109
|
+
class AchievementResetAllResponse
|
110
|
+
# @private
|
111
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
112
|
+
property :kind, as: 'kind'
|
113
|
+
collection :results, as: 'results', class: Google::Apis::GamesManagementV1management::AchievementResetResponse, decorator: Google::Apis::GamesManagementV1management::AchievementResetResponse::Representation
|
114
|
+
|
115
|
+
end
|
116
|
+
end
|
117
|
+
|
118
|
+
class AchievementResetMultipleForAllRequest
|
119
|
+
# @private
|
120
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
121
|
+
collection :achievement_ids, as: 'achievement_ids'
|
122
|
+
property :kind, as: 'kind'
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
126
|
+
class AchievementResetResponse
|
127
|
+
# @private
|
128
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
129
|
+
property :current_state, as: 'currentState'
|
130
|
+
property :definition_id, as: 'definitionId'
|
131
|
+
property :kind, as: 'kind'
|
132
|
+
property :update_occurred, as: 'updateOccurred'
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
136
|
+
class EventsResetMultipleForAllRequest
|
137
|
+
# @private
|
138
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
139
|
+
collection :event_ids, as: 'event_ids'
|
140
|
+
property :kind, as: 'kind'
|
141
|
+
end
|
142
|
+
end
|
143
|
+
|
144
|
+
class GamesPlayerExperienceInfoResource
|
145
|
+
# @private
|
146
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
147
|
+
property :current_experience_points, :numeric_string => true, as: 'currentExperiencePoints'
|
148
|
+
property :current_level, as: 'currentLevel', class: Google::Apis::GamesManagementV1management::GamesPlayerLevelResource, decorator: Google::Apis::GamesManagementV1management::GamesPlayerLevelResource::Representation
|
149
|
+
|
150
|
+
property :last_level_up_timestamp_millis, :numeric_string => true, as: 'lastLevelUpTimestampMillis'
|
151
|
+
property :next_level, as: 'nextLevel', class: Google::Apis::GamesManagementV1management::GamesPlayerLevelResource, decorator: Google::Apis::GamesManagementV1management::GamesPlayerLevelResource::Representation
|
152
|
+
|
153
|
+
end
|
154
|
+
end
|
155
|
+
|
156
|
+
class GamesPlayerLevelResource
|
157
|
+
# @private
|
158
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
159
|
+
property :level, as: 'level'
|
160
|
+
property :max_experience_points, :numeric_string => true, as: 'maxExperiencePoints'
|
161
|
+
property :min_experience_points, :numeric_string => true, as: 'minExperiencePoints'
|
162
|
+
end
|
163
|
+
end
|
164
|
+
|
165
|
+
class HiddenPlayer
|
166
|
+
# @private
|
167
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
168
|
+
property :hidden_time_millis, :numeric_string => true, as: 'hiddenTimeMillis'
|
169
|
+
property :kind, as: 'kind'
|
170
|
+
property :player, as: 'player', class: Google::Apis::GamesManagementV1management::Player, decorator: Google::Apis::GamesManagementV1management::Player::Representation
|
171
|
+
|
172
|
+
end
|
173
|
+
end
|
174
|
+
|
175
|
+
class HiddenPlayerList
|
176
|
+
# @private
|
177
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
178
|
+
collection :items, as: 'items', class: Google::Apis::GamesManagementV1management::HiddenPlayer, decorator: Google::Apis::GamesManagementV1management::HiddenPlayer::Representation
|
179
|
+
|
180
|
+
property :kind, as: 'kind'
|
181
|
+
property :next_page_token, as: 'nextPageToken'
|
182
|
+
end
|
183
|
+
end
|
184
|
+
|
185
|
+
class Player
|
186
|
+
# @private
|
187
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
188
|
+
property :avatar_image_url, as: 'avatarImageUrl'
|
189
|
+
property :banner_url_landscape, as: 'bannerUrlLandscape'
|
190
|
+
property :banner_url_portrait, as: 'bannerUrlPortrait'
|
191
|
+
property :display_name, as: 'displayName'
|
192
|
+
property :experience_info, as: 'experienceInfo', class: Google::Apis::GamesManagementV1management::GamesPlayerExperienceInfoResource, decorator: Google::Apis::GamesManagementV1management::GamesPlayerExperienceInfoResource::Representation
|
193
|
+
|
194
|
+
property :kind, as: 'kind'
|
195
|
+
property :name, as: 'name', class: Google::Apis::GamesManagementV1management::Player::Name, decorator: Google::Apis::GamesManagementV1management::Player::Name::Representation
|
196
|
+
|
197
|
+
property :original_player_id, as: 'originalPlayerId'
|
198
|
+
property :player_id, as: 'playerId'
|
199
|
+
property :profile_settings, as: 'profileSettings', class: Google::Apis::GamesManagementV1management::ProfileSettings, decorator: Google::Apis::GamesManagementV1management::ProfileSettings::Representation
|
200
|
+
|
201
|
+
property :title, as: 'title'
|
202
|
+
end
|
203
|
+
|
204
|
+
class Name
|
205
|
+
# @private
|
206
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
207
|
+
property :family_name, as: 'familyName'
|
208
|
+
property :given_name, as: 'givenName'
|
209
|
+
end
|
210
|
+
end
|
211
|
+
end
|
212
|
+
|
213
|
+
class PlayerScoreResetAllResponse
|
214
|
+
# @private
|
215
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
216
|
+
property :kind, as: 'kind'
|
217
|
+
collection :results, as: 'results', class: Google::Apis::GamesManagementV1management::PlayerScoreResetResponse, decorator: Google::Apis::GamesManagementV1management::PlayerScoreResetResponse::Representation
|
218
|
+
|
219
|
+
end
|
220
|
+
end
|
221
|
+
|
222
|
+
class PlayerScoreResetResponse
|
223
|
+
# @private
|
224
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
225
|
+
property :definition_id, as: 'definitionId'
|
226
|
+
property :kind, as: 'kind'
|
227
|
+
collection :reset_score_time_spans, as: 'resetScoreTimeSpans'
|
228
|
+
end
|
229
|
+
end
|
230
|
+
|
231
|
+
class ProfileSettings
|
232
|
+
# @private
|
233
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
234
|
+
property :kind, as: 'kind'
|
235
|
+
property :profile_visible, as: 'profileVisible'
|
236
|
+
end
|
237
|
+
end
|
238
|
+
|
239
|
+
class ScoresResetMultipleForAllRequest
|
240
|
+
# @private
|
241
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
242
|
+
property :kind, as: 'kind'
|
243
|
+
collection :leaderboard_ids, as: 'leaderboard_ids'
|
244
|
+
end
|
245
|
+
end
|
246
|
+
end
|
247
|
+
end
|
248
|
+
end
|
@@ -0,0 +1,604 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'google/apis/core/base_service'
|
16
|
+
require 'google/apis/core/json_representation'
|
17
|
+
require 'google/apis/core/hashable'
|
18
|
+
require 'google/apis/errors'
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Apis
|
22
|
+
module GamesManagementV1management
|
23
|
+
# Google Play Game Management
|
24
|
+
#
|
25
|
+
# The Google Play Game Management API allows developers to manage resources from
|
26
|
+
# the Google Play Game service.
|
27
|
+
#
|
28
|
+
# @example
|
29
|
+
# require 'google/apis/games_management_v1management'
|
30
|
+
#
|
31
|
+
# GamesManagement = Google::Apis::GamesManagementV1management # Alias the module
|
32
|
+
# service = GamesManagement::GamesManagementService.new
|
33
|
+
#
|
34
|
+
# @see https://developers.google.com/games/
|
35
|
+
class GamesManagementService < Google::Apis::Core::BaseService
|
36
|
+
# @return [String]
|
37
|
+
# API key. Your API key identifies your project and provides you with API access,
|
38
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
39
|
+
attr_accessor :key
|
40
|
+
|
41
|
+
# @return [String]
|
42
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
43
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
44
|
+
attr_accessor :quota_user
|
45
|
+
|
46
|
+
def initialize
|
47
|
+
super('https://gamesmanagement.googleapis.com/', '',
|
48
|
+
client_name: 'google-apis-games_management_v1management',
|
49
|
+
client_version: Google::Apis::GamesManagementV1management::GEM_VERSION)
|
50
|
+
@batch_path = 'batch'
|
51
|
+
end
|
52
|
+
|
53
|
+
# Resets the achievement with the given ID for the currently authenticated
|
54
|
+
# player. This method is only accessible to whitelisted tester accounts for your
|
55
|
+
# application.
|
56
|
+
# @param [String] achievement_id
|
57
|
+
# The ID of the achievement used by this method.
|
58
|
+
# @param [String] fields
|
59
|
+
# Selector specifying which fields to include in a partial response.
|
60
|
+
# @param [String] quota_user
|
61
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
62
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
63
|
+
# @param [Google::Apis::RequestOptions] options
|
64
|
+
# Request-specific options
|
65
|
+
#
|
66
|
+
# @yield [result, err] Result & error if block supplied
|
67
|
+
# @yieldparam result [Google::Apis::GamesManagementV1management::AchievementResetResponse] parsed result object
|
68
|
+
# @yieldparam err [StandardError] error object if request failed
|
69
|
+
#
|
70
|
+
# @return [Google::Apis::GamesManagementV1management::AchievementResetResponse]
|
71
|
+
#
|
72
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
73
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
74
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
75
|
+
def reset_achievement(achievement_id, fields: nil, quota_user: nil, options: nil, &block)
|
76
|
+
command = make_simple_command(:post, 'games/v1management/achievements/{achievementId}/reset', options)
|
77
|
+
command.response_representation = Google::Apis::GamesManagementV1management::AchievementResetResponse::Representation
|
78
|
+
command.response_class = Google::Apis::GamesManagementV1management::AchievementResetResponse
|
79
|
+
command.params['achievementId'] = achievement_id unless achievement_id.nil?
|
80
|
+
command.query['fields'] = fields unless fields.nil?
|
81
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
82
|
+
execute_or_queue_command(command, &block)
|
83
|
+
end
|
84
|
+
|
85
|
+
# Resets all achievements for the currently authenticated player for your
|
86
|
+
# application. This method is only accessible to whitelisted tester accounts for
|
87
|
+
# your application.
|
88
|
+
# @param [String] fields
|
89
|
+
# Selector specifying which fields to include in a partial response.
|
90
|
+
# @param [String] quota_user
|
91
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
92
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
93
|
+
# @param [Google::Apis::RequestOptions] options
|
94
|
+
# Request-specific options
|
95
|
+
#
|
96
|
+
# @yield [result, err] Result & error if block supplied
|
97
|
+
# @yieldparam result [Google::Apis::GamesManagementV1management::AchievementResetAllResponse] parsed result object
|
98
|
+
# @yieldparam err [StandardError] error object if request failed
|
99
|
+
#
|
100
|
+
# @return [Google::Apis::GamesManagementV1management::AchievementResetAllResponse]
|
101
|
+
#
|
102
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
103
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
104
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
105
|
+
def reset_achievement_all(fields: nil, quota_user: nil, options: nil, &block)
|
106
|
+
command = make_simple_command(:post, 'games/v1management/achievements/reset', options)
|
107
|
+
command.response_representation = Google::Apis::GamesManagementV1management::AchievementResetAllResponse::Representation
|
108
|
+
command.response_class = Google::Apis::GamesManagementV1management::AchievementResetAllResponse
|
109
|
+
command.query['fields'] = fields unless fields.nil?
|
110
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
111
|
+
execute_or_queue_command(command, &block)
|
112
|
+
end
|
113
|
+
|
114
|
+
# Resets all draft achievements for all players. This method is only available
|
115
|
+
# to user accounts for your developer console.
|
116
|
+
# @param [String] fields
|
117
|
+
# Selector specifying which fields to include in a partial response.
|
118
|
+
# @param [String] quota_user
|
119
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
120
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
121
|
+
# @param [Google::Apis::RequestOptions] options
|
122
|
+
# Request-specific options
|
123
|
+
#
|
124
|
+
# @yield [result, err] Result & error if block supplied
|
125
|
+
# @yieldparam result [NilClass] No result returned for this method
|
126
|
+
# @yieldparam err [StandardError] error object if request failed
|
127
|
+
#
|
128
|
+
# @return [void]
|
129
|
+
#
|
130
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
131
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
132
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
133
|
+
def reset_achievement_all_for_all_players(fields: nil, quota_user: nil, options: nil, &block)
|
134
|
+
command = make_simple_command(:post, 'games/v1management/achievements/resetAllForAllPlayers', options)
|
135
|
+
command.query['fields'] = fields unless fields.nil?
|
136
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
137
|
+
execute_or_queue_command(command, &block)
|
138
|
+
end
|
139
|
+
|
140
|
+
# Resets the achievement with the given ID for all players. This method is only
|
141
|
+
# available to user accounts for your developer console. Only draft achievements
|
142
|
+
# can be reset.
|
143
|
+
# @param [String] achievement_id
|
144
|
+
# The ID of the achievement used by this method.
|
145
|
+
# @param [String] fields
|
146
|
+
# Selector specifying which fields to include in a partial response.
|
147
|
+
# @param [String] quota_user
|
148
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
149
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
150
|
+
# @param [Google::Apis::RequestOptions] options
|
151
|
+
# Request-specific options
|
152
|
+
#
|
153
|
+
# @yield [result, err] Result & error if block supplied
|
154
|
+
# @yieldparam result [NilClass] No result returned for this method
|
155
|
+
# @yieldparam err [StandardError] error object if request failed
|
156
|
+
#
|
157
|
+
# @return [void]
|
158
|
+
#
|
159
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
160
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
161
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
162
|
+
def reset_achievement_for_all_players(achievement_id, fields: nil, quota_user: nil, options: nil, &block)
|
163
|
+
command = make_simple_command(:post, 'games/v1management/achievements/{achievementId}/resetForAllPlayers', options)
|
164
|
+
command.params['achievementId'] = achievement_id unless achievement_id.nil?
|
165
|
+
command.query['fields'] = fields unless fields.nil?
|
166
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
167
|
+
execute_or_queue_command(command, &block)
|
168
|
+
end
|
169
|
+
|
170
|
+
# Resets achievements with the given IDs for all players. This method is only
|
171
|
+
# available to user accounts for your developer console. Only draft achievements
|
172
|
+
# may be reset.
|
173
|
+
# @param [Google::Apis::GamesManagementV1management::AchievementResetMultipleForAllRequest] achievement_reset_multiple_for_all_request_object
|
174
|
+
# @param [String] fields
|
175
|
+
# Selector specifying which fields to include in a partial response.
|
176
|
+
# @param [String] quota_user
|
177
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
178
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
179
|
+
# @param [Google::Apis::RequestOptions] options
|
180
|
+
# Request-specific options
|
181
|
+
#
|
182
|
+
# @yield [result, err] Result & error if block supplied
|
183
|
+
# @yieldparam result [NilClass] No result returned for this method
|
184
|
+
# @yieldparam err [StandardError] error object if request failed
|
185
|
+
#
|
186
|
+
# @return [void]
|
187
|
+
#
|
188
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
189
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
190
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
191
|
+
def reset_achievement_multiple_for_all_players(achievement_reset_multiple_for_all_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
192
|
+
command = make_simple_command(:post, 'games/v1management/achievements/resetMultipleForAllPlayers', options)
|
193
|
+
command.request_representation = Google::Apis::GamesManagementV1management::AchievementResetMultipleForAllRequest::Representation
|
194
|
+
command.request_object = achievement_reset_multiple_for_all_request_object
|
195
|
+
command.query['fields'] = fields unless fields.nil?
|
196
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
197
|
+
execute_or_queue_command(command, &block)
|
198
|
+
end
|
199
|
+
|
200
|
+
# Get the list of players hidden from the given application. This method is only
|
201
|
+
# available to user accounts for your developer console.
|
202
|
+
# @param [String] application_id
|
203
|
+
# The application ID from the Google Play developer console.
|
204
|
+
# @param [Fixnum] max_results
|
205
|
+
# The maximum number of player resources to return in the response, used for
|
206
|
+
# paging. For any response, the actual number of player resources returned may
|
207
|
+
# be less than the specified `maxResults`.
|
208
|
+
# @param [String] page_token
|
209
|
+
# The token returned by the previous request.
|
210
|
+
# @param [String] fields
|
211
|
+
# Selector specifying which fields to include in a partial response.
|
212
|
+
# @param [String] quota_user
|
213
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
214
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
215
|
+
# @param [Google::Apis::RequestOptions] options
|
216
|
+
# Request-specific options
|
217
|
+
#
|
218
|
+
# @yield [result, err] Result & error if block supplied
|
219
|
+
# @yieldparam result [Google::Apis::GamesManagementV1management::HiddenPlayerList] parsed result object
|
220
|
+
# @yieldparam err [StandardError] error object if request failed
|
221
|
+
#
|
222
|
+
# @return [Google::Apis::GamesManagementV1management::HiddenPlayerList]
|
223
|
+
#
|
224
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
225
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
226
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
227
|
+
def list_application_hidden(application_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
228
|
+
command = make_simple_command(:get, 'games/v1management/applications/{applicationId}/players/hidden', options)
|
229
|
+
command.response_representation = Google::Apis::GamesManagementV1management::HiddenPlayerList::Representation
|
230
|
+
command.response_class = Google::Apis::GamesManagementV1management::HiddenPlayerList
|
231
|
+
command.params['applicationId'] = application_id unless application_id.nil?
|
232
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
233
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
234
|
+
command.query['fields'] = fields unless fields.nil?
|
235
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
236
|
+
execute_or_queue_command(command, &block)
|
237
|
+
end
|
238
|
+
|
239
|
+
# Resets all player progress on the event with the given ID for the currently
|
240
|
+
# authenticated player. This method is only accessible to whitelisted tester
|
241
|
+
# accounts for your application.
|
242
|
+
# @param [String] event_id
|
243
|
+
# The ID of the event.
|
244
|
+
# @param [String] fields
|
245
|
+
# Selector specifying which fields to include in a partial response.
|
246
|
+
# @param [String] quota_user
|
247
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
248
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
249
|
+
# @param [Google::Apis::RequestOptions] options
|
250
|
+
# Request-specific options
|
251
|
+
#
|
252
|
+
# @yield [result, err] Result & error if block supplied
|
253
|
+
# @yieldparam result [NilClass] No result returned for this method
|
254
|
+
# @yieldparam err [StandardError] error object if request failed
|
255
|
+
#
|
256
|
+
# @return [void]
|
257
|
+
#
|
258
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
259
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
260
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
261
|
+
def reset_event(event_id, fields: nil, quota_user: nil, options: nil, &block)
|
262
|
+
command = make_simple_command(:post, 'games/v1management/events/{eventId}/reset', options)
|
263
|
+
command.params['eventId'] = event_id unless event_id.nil?
|
264
|
+
command.query['fields'] = fields unless fields.nil?
|
265
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
266
|
+
execute_or_queue_command(command, &block)
|
267
|
+
end
|
268
|
+
|
269
|
+
# Resets all player progress on all events for the currently authenticated
|
270
|
+
# player. This method is only accessible to whitelisted tester accounts for your
|
271
|
+
# application.
|
272
|
+
# @param [String] fields
|
273
|
+
# Selector specifying which fields to include in a partial response.
|
274
|
+
# @param [String] quota_user
|
275
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
276
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
277
|
+
# @param [Google::Apis::RequestOptions] options
|
278
|
+
# Request-specific options
|
279
|
+
#
|
280
|
+
# @yield [result, err] Result & error if block supplied
|
281
|
+
# @yieldparam result [NilClass] No result returned for this method
|
282
|
+
# @yieldparam err [StandardError] error object if request failed
|
283
|
+
#
|
284
|
+
# @return [void]
|
285
|
+
#
|
286
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
287
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
288
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
289
|
+
def reset_event_all(fields: nil, quota_user: nil, options: nil, &block)
|
290
|
+
command = make_simple_command(:post, 'games/v1management/events/reset', options)
|
291
|
+
command.query['fields'] = fields unless fields.nil?
|
292
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
293
|
+
execute_or_queue_command(command, &block)
|
294
|
+
end
|
295
|
+
|
296
|
+
# Resets all draft events for all players. This method is only available to user
|
297
|
+
# accounts for your developer console.
|
298
|
+
# @param [String] fields
|
299
|
+
# Selector specifying which fields to include in a partial response.
|
300
|
+
# @param [String] quota_user
|
301
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
302
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
303
|
+
# @param [Google::Apis::RequestOptions] options
|
304
|
+
# Request-specific options
|
305
|
+
#
|
306
|
+
# @yield [result, err] Result & error if block supplied
|
307
|
+
# @yieldparam result [NilClass] No result returned for this method
|
308
|
+
# @yieldparam err [StandardError] error object if request failed
|
309
|
+
#
|
310
|
+
# @return [void]
|
311
|
+
#
|
312
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
313
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
314
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
315
|
+
def reset_event_all_for_all_players(fields: nil, quota_user: nil, options: nil, &block)
|
316
|
+
command = make_simple_command(:post, 'games/v1management/events/resetAllForAllPlayers', options)
|
317
|
+
command.query['fields'] = fields unless fields.nil?
|
318
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
319
|
+
execute_or_queue_command(command, &block)
|
320
|
+
end
|
321
|
+
|
322
|
+
# Resets the event with the given ID for all players. This method is only
|
323
|
+
# available to user accounts for your developer console. Only draft events can
|
324
|
+
# be reset.
|
325
|
+
# @param [String] event_id
|
326
|
+
# The ID of the event.
|
327
|
+
# @param [String] fields
|
328
|
+
# Selector specifying which fields to include in a partial response.
|
329
|
+
# @param [String] quota_user
|
330
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
331
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
332
|
+
# @param [Google::Apis::RequestOptions] options
|
333
|
+
# Request-specific options
|
334
|
+
#
|
335
|
+
# @yield [result, err] Result & error if block supplied
|
336
|
+
# @yieldparam result [NilClass] No result returned for this method
|
337
|
+
# @yieldparam err [StandardError] error object if request failed
|
338
|
+
#
|
339
|
+
# @return [void]
|
340
|
+
#
|
341
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
342
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
343
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
344
|
+
def reset_event_for_all_players(event_id, fields: nil, quota_user: nil, options: nil, &block)
|
345
|
+
command = make_simple_command(:post, 'games/v1management/events/{eventId}/resetForAllPlayers', options)
|
346
|
+
command.params['eventId'] = event_id unless event_id.nil?
|
347
|
+
command.query['fields'] = fields unless fields.nil?
|
348
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
349
|
+
execute_or_queue_command(command, &block)
|
350
|
+
end
|
351
|
+
|
352
|
+
# Resets events with the given IDs for all players. This method is only
|
353
|
+
# available to user accounts for your developer console. Only draft events may
|
354
|
+
# be reset.
|
355
|
+
# @param [Google::Apis::GamesManagementV1management::EventsResetMultipleForAllRequest] events_reset_multiple_for_all_request_object
|
356
|
+
# @param [String] fields
|
357
|
+
# Selector specifying which fields to include in a partial response.
|
358
|
+
# @param [String] quota_user
|
359
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
360
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
361
|
+
# @param [Google::Apis::RequestOptions] options
|
362
|
+
# Request-specific options
|
363
|
+
#
|
364
|
+
# @yield [result, err] Result & error if block supplied
|
365
|
+
# @yieldparam result [NilClass] No result returned for this method
|
366
|
+
# @yieldparam err [StandardError] error object if request failed
|
367
|
+
#
|
368
|
+
# @return [void]
|
369
|
+
#
|
370
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
371
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
372
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
373
|
+
def reset_event_multiple_for_all_players(events_reset_multiple_for_all_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
374
|
+
command = make_simple_command(:post, 'games/v1management/events/resetMultipleForAllPlayers', options)
|
375
|
+
command.request_representation = Google::Apis::GamesManagementV1management::EventsResetMultipleForAllRequest::Representation
|
376
|
+
command.request_object = events_reset_multiple_for_all_request_object
|
377
|
+
command.query['fields'] = fields unless fields.nil?
|
378
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
379
|
+
execute_or_queue_command(command, &block)
|
380
|
+
end
|
381
|
+
|
382
|
+
# Hide the given player's leaderboard scores from the given application. This
|
383
|
+
# method is only available to user accounts for your developer console.
|
384
|
+
# @param [String] application_id
|
385
|
+
# The application ID from the Google Play developer console.
|
386
|
+
# @param [String] player_id
|
387
|
+
# A player ID. A value of `me` may be used in place of the authenticated player'
|
388
|
+
# s ID.
|
389
|
+
# @param [String] fields
|
390
|
+
# Selector specifying which fields to include in a partial response.
|
391
|
+
# @param [String] quota_user
|
392
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
393
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
394
|
+
# @param [Google::Apis::RequestOptions] options
|
395
|
+
# Request-specific options
|
396
|
+
#
|
397
|
+
# @yield [result, err] Result & error if block supplied
|
398
|
+
# @yieldparam result [NilClass] No result returned for this method
|
399
|
+
# @yieldparam err [StandardError] error object if request failed
|
400
|
+
#
|
401
|
+
# @return [void]
|
402
|
+
#
|
403
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
404
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
405
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
406
|
+
def hide_player(application_id, player_id, fields: nil, quota_user: nil, options: nil, &block)
|
407
|
+
command = make_simple_command(:post, 'games/v1management/applications/{applicationId}/players/hidden/{playerId}', options)
|
408
|
+
command.params['applicationId'] = application_id unless application_id.nil?
|
409
|
+
command.params['playerId'] = player_id unless player_id.nil?
|
410
|
+
command.query['fields'] = fields unless fields.nil?
|
411
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
412
|
+
execute_or_queue_command(command, &block)
|
413
|
+
end
|
414
|
+
|
415
|
+
# Unhide the given player's leaderboard scores from the given application. This
|
416
|
+
# method is only available to user accounts for your developer console.
|
417
|
+
# @param [String] application_id
|
418
|
+
# The application ID from the Google Play developer console.
|
419
|
+
# @param [String] player_id
|
420
|
+
# A player ID. A value of `me` may be used in place of the authenticated player'
|
421
|
+
# s ID.
|
422
|
+
# @param [String] fields
|
423
|
+
# Selector specifying which fields to include in a partial response.
|
424
|
+
# @param [String] quota_user
|
425
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
426
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
427
|
+
# @param [Google::Apis::RequestOptions] options
|
428
|
+
# Request-specific options
|
429
|
+
#
|
430
|
+
# @yield [result, err] Result & error if block supplied
|
431
|
+
# @yieldparam result [NilClass] No result returned for this method
|
432
|
+
# @yieldparam err [StandardError] error object if request failed
|
433
|
+
#
|
434
|
+
# @return [void]
|
435
|
+
#
|
436
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
437
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
438
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
439
|
+
def unhide_player(application_id, player_id, fields: nil, quota_user: nil, options: nil, &block)
|
440
|
+
command = make_simple_command(:delete, 'games/v1management/applications/{applicationId}/players/hidden/{playerId}', options)
|
441
|
+
command.params['applicationId'] = application_id unless application_id.nil?
|
442
|
+
command.params['playerId'] = player_id unless player_id.nil?
|
443
|
+
command.query['fields'] = fields unless fields.nil?
|
444
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
445
|
+
execute_or_queue_command(command, &block)
|
446
|
+
end
|
447
|
+
|
448
|
+
# Resets scores for the leaderboard with the given ID for the currently
|
449
|
+
# authenticated player. This method is only accessible to whitelisted tester
|
450
|
+
# accounts for your application.
|
451
|
+
# @param [String] leaderboard_id
|
452
|
+
# The ID of the leaderboard.
|
453
|
+
# @param [String] fields
|
454
|
+
# Selector specifying which fields to include in a partial response.
|
455
|
+
# @param [String] quota_user
|
456
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
457
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
458
|
+
# @param [Google::Apis::RequestOptions] options
|
459
|
+
# Request-specific options
|
460
|
+
#
|
461
|
+
# @yield [result, err] Result & error if block supplied
|
462
|
+
# @yieldparam result [Google::Apis::GamesManagementV1management::PlayerScoreResetResponse] parsed result object
|
463
|
+
# @yieldparam err [StandardError] error object if request failed
|
464
|
+
#
|
465
|
+
# @return [Google::Apis::GamesManagementV1management::PlayerScoreResetResponse]
|
466
|
+
#
|
467
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
468
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
469
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
470
|
+
def reset_score(leaderboard_id, fields: nil, quota_user: nil, options: nil, &block)
|
471
|
+
command = make_simple_command(:post, 'games/v1management/leaderboards/{leaderboardId}/scores/reset', options)
|
472
|
+
command.response_representation = Google::Apis::GamesManagementV1management::PlayerScoreResetResponse::Representation
|
473
|
+
command.response_class = Google::Apis::GamesManagementV1management::PlayerScoreResetResponse
|
474
|
+
command.params['leaderboardId'] = leaderboard_id unless leaderboard_id.nil?
|
475
|
+
command.query['fields'] = fields unless fields.nil?
|
476
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
477
|
+
execute_or_queue_command(command, &block)
|
478
|
+
end
|
479
|
+
|
480
|
+
# Resets all scores for all leaderboards for the currently authenticated players.
|
481
|
+
# This method is only accessible to whitelisted tester accounts for your
|
482
|
+
# application.
|
483
|
+
# @param [String] fields
|
484
|
+
# Selector specifying which fields to include in a partial response.
|
485
|
+
# @param [String] quota_user
|
486
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
487
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
488
|
+
# @param [Google::Apis::RequestOptions] options
|
489
|
+
# Request-specific options
|
490
|
+
#
|
491
|
+
# @yield [result, err] Result & error if block supplied
|
492
|
+
# @yieldparam result [Google::Apis::GamesManagementV1management::PlayerScoreResetAllResponse] parsed result object
|
493
|
+
# @yieldparam err [StandardError] error object if request failed
|
494
|
+
#
|
495
|
+
# @return [Google::Apis::GamesManagementV1management::PlayerScoreResetAllResponse]
|
496
|
+
#
|
497
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
498
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
499
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
500
|
+
def reset_score_all(fields: nil, quota_user: nil, options: nil, &block)
|
501
|
+
command = make_simple_command(:post, 'games/v1management/scores/reset', options)
|
502
|
+
command.response_representation = Google::Apis::GamesManagementV1management::PlayerScoreResetAllResponse::Representation
|
503
|
+
command.response_class = Google::Apis::GamesManagementV1management::PlayerScoreResetAllResponse
|
504
|
+
command.query['fields'] = fields unless fields.nil?
|
505
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
506
|
+
execute_or_queue_command(command, &block)
|
507
|
+
end
|
508
|
+
|
509
|
+
# Resets scores for all draft leaderboards for all players. This method is only
|
510
|
+
# available to user accounts for your developer console.
|
511
|
+
# @param [String] fields
|
512
|
+
# Selector specifying which fields to include in a partial response.
|
513
|
+
# @param [String] quota_user
|
514
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
515
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
516
|
+
# @param [Google::Apis::RequestOptions] options
|
517
|
+
# Request-specific options
|
518
|
+
#
|
519
|
+
# @yield [result, err] Result & error if block supplied
|
520
|
+
# @yieldparam result [NilClass] No result returned for this method
|
521
|
+
# @yieldparam err [StandardError] error object if request failed
|
522
|
+
#
|
523
|
+
# @return [void]
|
524
|
+
#
|
525
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
526
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
527
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
528
|
+
def reset_score_all_for_all_players(fields: nil, quota_user: nil, options: nil, &block)
|
529
|
+
command = make_simple_command(:post, 'games/v1management/scores/resetAllForAllPlayers', options)
|
530
|
+
command.query['fields'] = fields unless fields.nil?
|
531
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
532
|
+
execute_or_queue_command(command, &block)
|
533
|
+
end
|
534
|
+
|
535
|
+
# Resets scores for the leaderboard with the given ID for all players. This
|
536
|
+
# method is only available to user accounts for your developer console. Only
|
537
|
+
# draft leaderboards can be reset.
|
538
|
+
# @param [String] leaderboard_id
|
539
|
+
# The ID of the leaderboard.
|
540
|
+
# @param [String] fields
|
541
|
+
# Selector specifying which fields to include in a partial response.
|
542
|
+
# @param [String] quota_user
|
543
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
544
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
545
|
+
# @param [Google::Apis::RequestOptions] options
|
546
|
+
# Request-specific options
|
547
|
+
#
|
548
|
+
# @yield [result, err] Result & error if block supplied
|
549
|
+
# @yieldparam result [NilClass] No result returned for this method
|
550
|
+
# @yieldparam err [StandardError] error object if request failed
|
551
|
+
#
|
552
|
+
# @return [void]
|
553
|
+
#
|
554
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
555
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
556
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
557
|
+
def reset_score_for_all_players(leaderboard_id, fields: nil, quota_user: nil, options: nil, &block)
|
558
|
+
command = make_simple_command(:post, 'games/v1management/leaderboards/{leaderboardId}/scores/resetForAllPlayers', options)
|
559
|
+
command.params['leaderboardId'] = leaderboard_id unless leaderboard_id.nil?
|
560
|
+
command.query['fields'] = fields unless fields.nil?
|
561
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
562
|
+
execute_or_queue_command(command, &block)
|
563
|
+
end
|
564
|
+
|
565
|
+
# Resets scores for the leaderboards with the given IDs for all players. This
|
566
|
+
# method is only available to user accounts for your developer console. Only
|
567
|
+
# draft leaderboards may be reset.
|
568
|
+
# @param [Google::Apis::GamesManagementV1management::ScoresResetMultipleForAllRequest] scores_reset_multiple_for_all_request_object
|
569
|
+
# @param [String] fields
|
570
|
+
# Selector specifying which fields to include in a partial response.
|
571
|
+
# @param [String] quota_user
|
572
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
573
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
574
|
+
# @param [Google::Apis::RequestOptions] options
|
575
|
+
# Request-specific options
|
576
|
+
#
|
577
|
+
# @yield [result, err] Result & error if block supplied
|
578
|
+
# @yieldparam result [NilClass] No result returned for this method
|
579
|
+
# @yieldparam err [StandardError] error object if request failed
|
580
|
+
#
|
581
|
+
# @return [void]
|
582
|
+
#
|
583
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
584
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
585
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
586
|
+
def reset_score_multiple_for_all_players(scores_reset_multiple_for_all_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
587
|
+
command = make_simple_command(:post, 'games/v1management/scores/resetMultipleForAllPlayers', options)
|
588
|
+
command.request_representation = Google::Apis::GamesManagementV1management::ScoresResetMultipleForAllRequest::Representation
|
589
|
+
command.request_object = scores_reset_multiple_for_all_request_object
|
590
|
+
command.query['fields'] = fields unless fields.nil?
|
591
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
592
|
+
execute_or_queue_command(command, &block)
|
593
|
+
end
|
594
|
+
|
595
|
+
protected
|
596
|
+
|
597
|
+
def apply_command_defaults(command)
|
598
|
+
command.query['key'] = key unless key.nil?
|
599
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
600
|
+
end
|
601
|
+
end
|
602
|
+
end
|
603
|
+
end
|
604
|
+
end
|