google-api-client 0.19.2 → 0.19.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +37 -0
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +94 -0
- data/generated/google/apis/androidenterprise_v1/representations.rb +46 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +229 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +13 -13
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/service.rb +11 -8
- data/generated/google/apis/clouddebugger_v2.rb +2 -2
- data/generated/google/apis/clouddebugger_v2/classes.rb +0 -1
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +3 -3
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +61 -57
- data/generated/google/apis/container_v1.rb +2 -2
- data/generated/google/apis/container_v1/service.rb +1 -1
- data/generated/google/apis/container_v1beta1.rb +2 -2
- data/generated/google/apis/container_v1beta1/classes.rb +86 -0
- data/generated/google/apis/container_v1beta1/representations.rb +33 -0
- data/generated/google/apis/container_v1beta1/service.rb +84 -1
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/service.rb +104 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +7 -0
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +1 -0
- data/generated/google/apis/dlp_v2beta2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +5 -3
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +4 -2
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/service.rb +0 -54
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/service.rb +53 -212
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +3 -2
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +3 -3
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/pagespeedonline_v1.rb +1 -1
- data/generated/google/apis/pagespeedonline_v1/classes.rb +6 -0
- data/generated/google/apis/pagespeedonline_v1/representations.rb +1 -0
- data/generated/google/apis/pagespeedonline_v2.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2/classes.rb +6 -0
- data/generated/google/apis/pagespeedonline_v2/representations.rb +1 -0
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/people_v1/classes.rb +0 -2
- data/generated/google/apis/people_v1/service.rb +4 -0
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +3 -3
- data/generated/google/apis/pubsub_v1/service.rb +31 -0
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2/classes.rb +3 -3
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +3 -3
- data/generated/google/apis/script_v1.rb +2 -2
- data/generated/google/apis/script_v1/classes.rb +865 -0
- data/generated/google/apis/script_v1/representations.rb +428 -0
- data/generated/google/apis/script_v1/service.rb +586 -1
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +0 -10
- data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +0 -1
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +48 -0
- data/generated/google/apis/sheets_v4/representations.rb +17 -0
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +45 -0
- data/generated/google/apis/slides_v1/representations.rb +17 -0
- data/generated/google/apis/sourcerepo_v1.rb +1 -1
- data/generated/google/apis/sourcerepo_v1/classes.rb +2 -2
- data/generated/google/apis/storage_v1/service.rb +1 -1
- data/generated/google/apis/storage_v1beta1/service.rb +1 -1
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +4 -2
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/service.rb +1 -2
- data/lib/google/apis/version.rb +1 -1
- metadata +2 -2
|
@@ -27,7 +27,7 @@ module Google
|
|
|
27
27
|
# @see https://cloud.google.com/dlp/docs/
|
|
28
28
|
module DlpV2beta2
|
|
29
29
|
VERSION = 'V2beta2'
|
|
30
|
-
REVISION = '
|
|
30
|
+
REVISION = '20180109'
|
|
31
31
|
|
|
32
32
|
# View and manage your data across Google Cloud Platform services
|
|
33
33
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
@@ -1526,9 +1526,11 @@ module Google
|
|
|
1526
1526
|
attr_accessor :owners
|
|
1527
1527
|
|
|
1528
1528
|
# Collection of parent folders which contain this file.
|
|
1529
|
-
#
|
|
1530
|
-
#
|
|
1531
|
-
#
|
|
1529
|
+
# If not specified as part of an insert request, the file will be placed
|
|
1530
|
+
# directly in the user's My Drive folder. If not specified as part of a copy
|
|
1531
|
+
# request, the file will inherit any discoverable parents of the source file.
|
|
1532
|
+
# Update requests can also use the addParents and removeParents parameters to
|
|
1533
|
+
# modify the parents list.
|
|
1532
1534
|
# Corresponds to the JSON property `parents`
|
|
1533
1535
|
# @return [Array<Google::Apis::DriveV2::ParentReference>]
|
|
1534
1536
|
attr_accessor :parents
|
|
@@ -685,8 +685,10 @@ module Google
|
|
|
685
685
|
|
|
686
686
|
# The IDs of the parent folders which contain the file.
|
|
687
687
|
# If not specified as part of a create request, the file will be placed directly
|
|
688
|
-
# in the My Drive folder.
|
|
689
|
-
#
|
|
688
|
+
# in the user's My Drive folder. If not specified as part of a copy request, the
|
|
689
|
+
# file will inherit any discoverable parents of the source file. Update requests
|
|
690
|
+
# must use the addParents and removeParents parameters to modify the parents
|
|
691
|
+
# list.
|
|
690
692
|
# Corresponds to the JSON property `parents`
|
|
691
693
|
# @return [Array<String>]
|
|
692
694
|
attr_accessor :parents
|
|
@@ -26,7 +26,7 @@ module Google
|
|
|
26
26
|
# @see https://firebase.google.com/docs/storage/security
|
|
27
27
|
module FirebaserulesV1
|
|
28
28
|
VERSION = 'V1'
|
|
29
|
-
REVISION = '
|
|
29
|
+
REVISION = '20180111'
|
|
30
30
|
|
|
31
31
|
# View and manage your data across Google Cloud Platform services
|
|
32
32
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
@@ -351,60 +351,6 @@ module Google
|
|
|
351
351
|
execute_or_queue_command(command, &block)
|
|
352
352
|
end
|
|
353
353
|
|
|
354
|
-
# Update a `Release`.
|
|
355
|
-
# Only updates to the `ruleset_name` and `test_suite_name` fields will be
|
|
356
|
-
# honored. `Release` rename is not supported. To create a `Release` use the
|
|
357
|
-
# CreateRelease method.
|
|
358
|
-
# @param [String] name
|
|
359
|
-
# Resource name for the `Release`.
|
|
360
|
-
# `Release` names may be structured `app1/prod/v2` or flat `app1_prod_v2`
|
|
361
|
-
# which affords developers a great deal of flexibility in mapping the name
|
|
362
|
-
# to the style that best fits their existing development practices. For
|
|
363
|
-
# example, a name could refer to an environment, an app, a version, or some
|
|
364
|
-
# combination of three.
|
|
365
|
-
# In the table below, for the project name `projects/foo`, the following
|
|
366
|
-
# relative release paths show how flat and structured names might be chosen
|
|
367
|
-
# to match a desired development / deployment strategy.
|
|
368
|
-
# Use Case | Flat Name | Structured Name
|
|
369
|
-
# -------------|---------------------|----------------
|
|
370
|
-
# Environments | releases/qa | releases/qa
|
|
371
|
-
# Apps | releases/app1_qa | releases/app1/qa
|
|
372
|
-
# Versions | releases/app1_v2_qa | releases/app1/v2/qa
|
|
373
|
-
# The delimiter between the release name path elements can be almost anything
|
|
374
|
-
# and it should work equally well with the release name list filter, but in
|
|
375
|
-
# many ways the structured paths provide a clearer picture of the
|
|
376
|
-
# relationship between `Release` instances.
|
|
377
|
-
# Format: `projects/`project_id`/releases/`release_id``
|
|
378
|
-
# @param [Google::Apis::FirebaserulesV1::Release] release_object
|
|
379
|
-
# @param [String] fields
|
|
380
|
-
# Selector specifying which fields to include in a partial response.
|
|
381
|
-
# @param [String] quota_user
|
|
382
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
383
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
384
|
-
# @param [Google::Apis::RequestOptions] options
|
|
385
|
-
# Request-specific options
|
|
386
|
-
#
|
|
387
|
-
# @yield [result, err] Result & error if block supplied
|
|
388
|
-
# @yieldparam result [Google::Apis::FirebaserulesV1::Release] parsed result object
|
|
389
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
390
|
-
#
|
|
391
|
-
# @return [Google::Apis::FirebaserulesV1::Release]
|
|
392
|
-
#
|
|
393
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
394
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
395
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
396
|
-
def update_project_release(name, release_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
397
|
-
command = make_simple_command(:put, 'v1/{+name}', options)
|
|
398
|
-
command.request_representation = Google::Apis::FirebaserulesV1::Release::Representation
|
|
399
|
-
command.request_object = release_object
|
|
400
|
-
command.response_representation = Google::Apis::FirebaserulesV1::Release::Representation
|
|
401
|
-
command.response_class = Google::Apis::FirebaserulesV1::Release
|
|
402
|
-
command.params['name'] = name unless name.nil?
|
|
403
|
-
command.query['fields'] = fields unless fields.nil?
|
|
404
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
405
|
-
execute_or_queue_command(command, &block)
|
|
406
|
-
end
|
|
407
|
-
|
|
408
354
|
# Create a `Ruleset` from `Source`.
|
|
409
355
|
# The `Ruleset` is given a unique generated name which is returned to the
|
|
410
356
|
# caller. `Source` containing syntactic or semantics errors will result in an
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://developers.google.com/games/services/
|
|
26
26
|
module GamesV1
|
|
27
27
|
VERSION = 'V1'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20180104'
|
|
29
29
|
|
|
30
30
|
# View and manage its own configuration data in your Google Drive
|
|
31
31
|
AUTH_DRIVE_APPDATA = 'https://www.googleapis.com/auth/drive.appdata'
|
|
@@ -54,8 +54,6 @@ module Google
|
|
|
54
54
|
end
|
|
55
55
|
|
|
56
56
|
# Lists all the achievement definitions for your application.
|
|
57
|
-
# @param [Fixnum] consistency_token
|
|
58
|
-
# The last-seen mutation timestamp.
|
|
59
57
|
# @param [String] language
|
|
60
58
|
# The preferred language to use for strings returned by this method.
|
|
61
59
|
# @param [Fixnum] max_results
|
|
@@ -85,11 +83,10 @@ module Google
|
|
|
85
83
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
86
84
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
87
85
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
88
|
-
def list_achievement_definitions(
|
|
86
|
+
def list_achievement_definitions(language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
89
87
|
command = make_simple_command(:get, 'achievements', options)
|
|
90
88
|
command.response_representation = Google::Apis::GamesV1::ListAchievementDefinitionsResponse::Representation
|
|
91
89
|
command.response_class = Google::Apis::GamesV1::ListAchievementDefinitionsResponse
|
|
92
|
-
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
|
93
90
|
command.query['language'] = language unless language.nil?
|
|
94
91
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
95
92
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
@@ -105,8 +102,6 @@ module Google
|
|
|
105
102
|
# The ID of the achievement used by this method.
|
|
106
103
|
# @param [Fixnum] steps_to_increment
|
|
107
104
|
# The number of steps to increment.
|
|
108
|
-
# @param [Fixnum] consistency_token
|
|
109
|
-
# The last-seen mutation timestamp.
|
|
110
105
|
# @param [Fixnum] request_id
|
|
111
106
|
# A randomly generated numeric ID for each request specified by the caller. This
|
|
112
107
|
# number is used at the server to ensure that the request is handled correctly
|
|
@@ -132,12 +127,11 @@ module Google
|
|
|
132
127
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
133
128
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
134
129
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
135
|
-
def increment_achievement(achievement_id, steps_to_increment,
|
|
130
|
+
def increment_achievement(achievement_id, steps_to_increment, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
136
131
|
command = make_simple_command(:post, 'achievements/{achievementId}/increment', options)
|
|
137
132
|
command.response_representation = Google::Apis::GamesV1::AchievementIncrementResponse::Representation
|
|
138
133
|
command.response_class = Google::Apis::GamesV1::AchievementIncrementResponse
|
|
139
134
|
command.params['achievementId'] = achievement_id unless achievement_id.nil?
|
|
140
|
-
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
|
141
135
|
command.query['requestId'] = request_id unless request_id.nil?
|
|
142
136
|
command.query['stepsToIncrement'] = steps_to_increment unless steps_to_increment.nil?
|
|
143
137
|
command.query['fields'] = fields unless fields.nil?
|
|
@@ -151,8 +145,6 @@ module Google
|
|
|
151
145
|
# @param [String] player_id
|
|
152
146
|
# A player ID. A value of me may be used in place of the authenticated player's
|
|
153
147
|
# ID.
|
|
154
|
-
# @param [Fixnum] consistency_token
|
|
155
|
-
# The last-seen mutation timestamp.
|
|
156
148
|
# @param [String] language
|
|
157
149
|
# The preferred language to use for strings returned by this method.
|
|
158
150
|
# @param [Fixnum] max_results
|
|
@@ -185,12 +177,11 @@ module Google
|
|
|
185
177
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
186
178
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
187
179
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
188
|
-
def list_achievements(player_id,
|
|
180
|
+
def list_achievements(player_id, language: nil, max_results: nil, page_token: nil, state: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
189
181
|
command = make_simple_command(:get, 'players/{playerId}/achievements', options)
|
|
190
182
|
command.response_representation = Google::Apis::GamesV1::ListPlayerAchievementResponse::Representation
|
|
191
183
|
command.response_class = Google::Apis::GamesV1::ListPlayerAchievementResponse
|
|
192
184
|
command.params['playerId'] = player_id unless player_id.nil?
|
|
193
|
-
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
|
194
185
|
command.query['language'] = language unless language.nil?
|
|
195
186
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
196
187
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
@@ -205,8 +196,6 @@ module Google
|
|
|
205
196
|
# currently authenticated player.
|
|
206
197
|
# @param [String] achievement_id
|
|
207
198
|
# The ID of the achievement used by this method.
|
|
208
|
-
# @param [Fixnum] consistency_token
|
|
209
|
-
# The last-seen mutation timestamp.
|
|
210
199
|
# @param [String] fields
|
|
211
200
|
# Selector specifying which fields to include in a partial response.
|
|
212
201
|
# @param [String] quota_user
|
|
@@ -228,12 +217,11 @@ module Google
|
|
|
228
217
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
229
218
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
230
219
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
231
|
-
def reveal_achievement(achievement_id,
|
|
220
|
+
def reveal_achievement(achievement_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
232
221
|
command = make_simple_command(:post, 'achievements/{achievementId}/reveal', options)
|
|
233
222
|
command.response_representation = Google::Apis::GamesV1::AchievementRevealResponse::Representation
|
|
234
223
|
command.response_class = Google::Apis::GamesV1::AchievementRevealResponse
|
|
235
224
|
command.params['achievementId'] = achievement_id unless achievement_id.nil?
|
|
236
|
-
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
|
237
225
|
command.query['fields'] = fields unless fields.nil?
|
|
238
226
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
239
227
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
@@ -248,8 +236,6 @@ module Google
|
|
|
248
236
|
# The ID of the achievement used by this method.
|
|
249
237
|
# @param [Fixnum] steps
|
|
250
238
|
# The minimum value to set the steps to.
|
|
251
|
-
# @param [Fixnum] consistency_token
|
|
252
|
-
# The last-seen mutation timestamp.
|
|
253
239
|
# @param [String] fields
|
|
254
240
|
# Selector specifying which fields to include in a partial response.
|
|
255
241
|
# @param [String] quota_user
|
|
@@ -271,12 +257,11 @@ module Google
|
|
|
271
257
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
272
258
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
273
259
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
274
|
-
def set_achievement_steps_at_least(achievement_id, steps,
|
|
260
|
+
def set_achievement_steps_at_least(achievement_id, steps, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
275
261
|
command = make_simple_command(:post, 'achievements/{achievementId}/setStepsAtLeast', options)
|
|
276
262
|
command.response_representation = Google::Apis::GamesV1::AchievementSetStepsAtLeastResponse::Representation
|
|
277
263
|
command.response_class = Google::Apis::GamesV1::AchievementSetStepsAtLeastResponse
|
|
278
264
|
command.params['achievementId'] = achievement_id unless achievement_id.nil?
|
|
279
|
-
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
|
280
265
|
command.query['steps'] = steps unless steps.nil?
|
|
281
266
|
command.query['fields'] = fields unless fields.nil?
|
|
282
267
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -287,8 +272,6 @@ module Google
|
|
|
287
272
|
# Unlocks this achievement for the currently authenticated player.
|
|
288
273
|
# @param [String] achievement_id
|
|
289
274
|
# The ID of the achievement used by this method.
|
|
290
|
-
# @param [Fixnum] consistency_token
|
|
291
|
-
# The last-seen mutation timestamp.
|
|
292
275
|
# @param [String] fields
|
|
293
276
|
# Selector specifying which fields to include in a partial response.
|
|
294
277
|
# @param [String] quota_user
|
|
@@ -310,12 +293,11 @@ module Google
|
|
|
310
293
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
311
294
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
312
295
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
313
|
-
def unlock_achievement(achievement_id,
|
|
296
|
+
def unlock_achievement(achievement_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
314
297
|
command = make_simple_command(:post, 'achievements/{achievementId}/unlock', options)
|
|
315
298
|
command.response_representation = Google::Apis::GamesV1::AchievementUnlockResponse::Representation
|
|
316
299
|
command.response_class = Google::Apis::GamesV1::AchievementUnlockResponse
|
|
317
300
|
command.params['achievementId'] = achievement_id unless achievement_id.nil?
|
|
318
|
-
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
|
319
301
|
command.query['fields'] = fields unless fields.nil?
|
|
320
302
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
321
303
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
@@ -324,8 +306,6 @@ module Google
|
|
|
324
306
|
|
|
325
307
|
# Updates multiple achievements for the currently authenticated player.
|
|
326
308
|
# @param [Google::Apis::GamesV1::AchievementUpdateMultipleRequest] achievement_update_multiple_request_object
|
|
327
|
-
# @param [Fixnum] consistency_token
|
|
328
|
-
# The last-seen mutation timestamp.
|
|
329
309
|
# @param [String] fields
|
|
330
310
|
# Selector specifying which fields to include in a partial response.
|
|
331
311
|
# @param [String] quota_user
|
|
@@ -347,13 +327,12 @@ module Google
|
|
|
347
327
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
348
328
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
349
329
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
350
|
-
def update_multiple_achievements(achievement_update_multiple_request_object = nil,
|
|
330
|
+
def update_multiple_achievements(achievement_update_multiple_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
351
331
|
command = make_simple_command(:post, 'achievements/updateMultiple', options)
|
|
352
332
|
command.request_representation = Google::Apis::GamesV1::AchievementUpdateMultipleRequest::Representation
|
|
353
333
|
command.request_object = achievement_update_multiple_request_object
|
|
354
334
|
command.response_representation = Google::Apis::GamesV1::AchievementUpdateMultipleResponse::Representation
|
|
355
335
|
command.response_class = Google::Apis::GamesV1::AchievementUpdateMultipleResponse
|
|
356
|
-
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
|
357
336
|
command.query['fields'] = fields unless fields.nil?
|
|
358
337
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
359
338
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
@@ -365,8 +344,6 @@ module Google
|
|
|
365
344
|
# response will not include any instance data.
|
|
366
345
|
# @param [String] application_id
|
|
367
346
|
# The application ID from the Google Play developer console.
|
|
368
|
-
# @param [Fixnum] consistency_token
|
|
369
|
-
# The last-seen mutation timestamp.
|
|
370
347
|
# @param [String] language
|
|
371
348
|
# The preferred language to use for strings returned by this method.
|
|
372
349
|
# @param [String] platform_type
|
|
@@ -392,12 +369,11 @@ module Google
|
|
|
392
369
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
393
370
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
394
371
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
395
|
-
def get_application(application_id,
|
|
372
|
+
def get_application(application_id, language: nil, platform_type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
396
373
|
command = make_simple_command(:get, 'applications/{applicationId}', options)
|
|
397
374
|
command.response_representation = Google::Apis::GamesV1::Application::Representation
|
|
398
375
|
command.response_class = Google::Apis::GamesV1::Application
|
|
399
376
|
command.params['applicationId'] = application_id unless application_id.nil?
|
|
400
|
-
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
|
401
377
|
command.query['language'] = language unless language.nil?
|
|
402
378
|
command.query['platformType'] = platform_type unless platform_type.nil?
|
|
403
379
|
command.query['fields'] = fields unless fields.nil?
|
|
@@ -407,8 +383,6 @@ module Google
|
|
|
407
383
|
end
|
|
408
384
|
|
|
409
385
|
# Indicate that the the currently authenticated user is playing your application.
|
|
410
|
-
# @param [Fixnum] consistency_token
|
|
411
|
-
# The last-seen mutation timestamp.
|
|
412
386
|
# @param [String] fields
|
|
413
387
|
# Selector specifying which fields to include in a partial response.
|
|
414
388
|
# @param [String] quota_user
|
|
@@ -430,9 +404,8 @@ module Google
|
|
|
430
404
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
431
405
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
432
406
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
433
|
-
def played_application(
|
|
407
|
+
def played_application(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
434
408
|
command = make_simple_command(:post, 'applications/played', options)
|
|
435
|
-
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
|
436
409
|
command.query['fields'] = fields unless fields.nil?
|
|
437
410
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
438
411
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
@@ -443,8 +416,6 @@ module Google
|
|
|
443
416
|
# the specified ID, and returns the ID of the player it was granted for.
|
|
444
417
|
# @param [String] application_id
|
|
445
418
|
# The application ID from the Google Play developer console.
|
|
446
|
-
# @param [Fixnum] consistency_token
|
|
447
|
-
# The last-seen mutation timestamp.
|
|
448
419
|
# @param [String] fields
|
|
449
420
|
# Selector specifying which fields to include in a partial response.
|
|
450
421
|
# @param [String] quota_user
|
|
@@ -466,12 +437,11 @@ module Google
|
|
|
466
437
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
467
438
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
468
439
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
469
|
-
def verify_application(application_id,
|
|
440
|
+
def verify_application(application_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
470
441
|
command = make_simple_command(:get, 'applications/{applicationId}/verify', options)
|
|
471
442
|
command.response_representation = Google::Apis::GamesV1::ApplicationVerifyResponse::Representation
|
|
472
443
|
command.response_class = Google::Apis::GamesV1::ApplicationVerifyResponse
|
|
473
444
|
command.params['applicationId'] = application_id unless application_id.nil?
|
|
474
|
-
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
|
475
445
|
command.query['fields'] = fields unless fields.nil?
|
|
476
446
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
477
447
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
@@ -480,8 +450,6 @@ module Google
|
|
|
480
450
|
|
|
481
451
|
# Returns a list showing the current progress on events in this application for
|
|
482
452
|
# the currently authenticated user.
|
|
483
|
-
# @param [Fixnum] consistency_token
|
|
484
|
-
# The last-seen mutation timestamp.
|
|
485
453
|
# @param [String] language
|
|
486
454
|
# The preferred language to use for strings returned by this method.
|
|
487
455
|
# @param [Fixnum] max_results
|
|
@@ -511,11 +479,10 @@ module Google
|
|
|
511
479
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
512
480
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
513
481
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
514
|
-
def list_event_by_player(
|
|
482
|
+
def list_event_by_player(language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
515
483
|
command = make_simple_command(:get, 'events', options)
|
|
516
484
|
command.response_representation = Google::Apis::GamesV1::ListPlayerEventResponse::Representation
|
|
517
485
|
command.response_class = Google::Apis::GamesV1::ListPlayerEventResponse
|
|
518
|
-
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
|
519
486
|
command.query['language'] = language unless language.nil?
|
|
520
487
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
521
488
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
@@ -526,8 +493,6 @@ module Google
|
|
|
526
493
|
end
|
|
527
494
|
|
|
528
495
|
# Returns a list of the event definitions in this application.
|
|
529
|
-
# @param [Fixnum] consistency_token
|
|
530
|
-
# The last-seen mutation timestamp.
|
|
531
496
|
# @param [String] language
|
|
532
497
|
# The preferred language to use for strings returned by this method.
|
|
533
498
|
# @param [Fixnum] max_results
|
|
@@ -557,11 +522,10 @@ module Google
|
|
|
557
522
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
558
523
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
559
524
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
560
|
-
def list_event_definitions(
|
|
525
|
+
def list_event_definitions(language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
561
526
|
command = make_simple_command(:get, 'eventDefinitions', options)
|
|
562
527
|
command.response_representation = Google::Apis::GamesV1::ListEventDefinitionResponse::Representation
|
|
563
528
|
command.response_class = Google::Apis::GamesV1::ListEventDefinitionResponse
|
|
564
|
-
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
|
565
529
|
command.query['language'] = language unless language.nil?
|
|
566
530
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
567
531
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
@@ -574,8 +538,6 @@ module Google
|
|
|
574
538
|
# Records a batch of changes to the number of times events have occurred for the
|
|
575
539
|
# currently authenticated user of this application.
|
|
576
540
|
# @param [Google::Apis::GamesV1::EventRecordRequest] event_record_request_object
|
|
577
|
-
# @param [Fixnum] consistency_token
|
|
578
|
-
# The last-seen mutation timestamp.
|
|
579
541
|
# @param [String] language
|
|
580
542
|
# The preferred language to use for strings returned by this method.
|
|
581
543
|
# @param [String] fields
|
|
@@ -599,13 +561,12 @@ module Google
|
|
|
599
561
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
600
562
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
601
563
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
602
|
-
def record_event(event_record_request_object = nil,
|
|
564
|
+
def record_event(event_record_request_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
603
565
|
command = make_simple_command(:post, 'events', options)
|
|
604
566
|
command.request_representation = Google::Apis::GamesV1::EventRecordRequest::Representation
|
|
605
567
|
command.request_object = event_record_request_object
|
|
606
568
|
command.response_representation = Google::Apis::GamesV1::UpdateEventResponse::Representation
|
|
607
569
|
command.response_class = Google::Apis::GamesV1::UpdateEventResponse
|
|
608
|
-
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
|
609
570
|
command.query['language'] = language unless language.nil?
|
|
610
571
|
command.query['fields'] = fields unless fields.nil?
|
|
611
572
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -616,8 +577,6 @@ module Google
|
|
|
616
577
|
# Retrieves the metadata of the leaderboard with the given ID.
|
|
617
578
|
# @param [String] leaderboard_id
|
|
618
579
|
# The ID of the leaderboard.
|
|
619
|
-
# @param [Fixnum] consistency_token
|
|
620
|
-
# The last-seen mutation timestamp.
|
|
621
580
|
# @param [String] language
|
|
622
581
|
# The preferred language to use for strings returned by this method.
|
|
623
582
|
# @param [String] fields
|
|
@@ -641,12 +600,11 @@ module Google
|
|
|
641
600
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
642
601
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
643
602
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
644
|
-
def get_leaderboard(leaderboard_id,
|
|
603
|
+
def get_leaderboard(leaderboard_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
645
604
|
command = make_simple_command(:get, 'leaderboards/{leaderboardId}', options)
|
|
646
605
|
command.response_representation = Google::Apis::GamesV1::Leaderboard::Representation
|
|
647
606
|
command.response_class = Google::Apis::GamesV1::Leaderboard
|
|
648
607
|
command.params['leaderboardId'] = leaderboard_id unless leaderboard_id.nil?
|
|
649
|
-
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
|
650
608
|
command.query['language'] = language unless language.nil?
|
|
651
609
|
command.query['fields'] = fields unless fields.nil?
|
|
652
610
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -655,8 +613,6 @@ module Google
|
|
|
655
613
|
end
|
|
656
614
|
|
|
657
615
|
# Lists all the leaderboard metadata for your application.
|
|
658
|
-
# @param [Fixnum] consistency_token
|
|
659
|
-
# The last-seen mutation timestamp.
|
|
660
616
|
# @param [String] language
|
|
661
617
|
# The preferred language to use for strings returned by this method.
|
|
662
618
|
# @param [Fixnum] max_results
|
|
@@ -686,11 +642,10 @@ module Google
|
|
|
686
642
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
687
643
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
688
644
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
689
|
-
def list_leaderboards(
|
|
645
|
+
def list_leaderboards(language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
690
646
|
command = make_simple_command(:get, 'leaderboards', options)
|
|
691
647
|
command.response_representation = Google::Apis::GamesV1::ListLeaderboardResponse::Representation
|
|
692
648
|
command.response_class = Google::Apis::GamesV1::ListLeaderboardResponse
|
|
693
|
-
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
|
694
649
|
command.query['language'] = language unless language.nil?
|
|
695
650
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
696
651
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
@@ -701,8 +656,6 @@ module Google
|
|
|
701
656
|
end
|
|
702
657
|
|
|
703
658
|
# Return the metagame configuration data for the calling application.
|
|
704
|
-
# @param [Fixnum] consistency_token
|
|
705
|
-
# The last-seen mutation timestamp.
|
|
706
659
|
# @param [String] fields
|
|
707
660
|
# Selector specifying which fields to include in a partial response.
|
|
708
661
|
# @param [String] quota_user
|
|
@@ -724,11 +677,10 @@ module Google
|
|
|
724
677
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
725
678
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
726
679
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
727
|
-
def get_metagame_config(
|
|
680
|
+
def get_metagame_config(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
728
681
|
command = make_simple_command(:get, 'metagameConfig', options)
|
|
729
682
|
command.response_representation = Google::Apis::GamesV1::MetagameConfig::Representation
|
|
730
683
|
command.response_class = Google::Apis::GamesV1::MetagameConfig
|
|
731
|
-
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
|
732
684
|
command.query['fields'] = fields unless fields.nil?
|
|
733
685
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
734
686
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
@@ -742,8 +694,6 @@ module Google
|
|
|
742
694
|
# ID.
|
|
743
695
|
# @param [String] collection
|
|
744
696
|
# The collection of categories for which data will be returned.
|
|
745
|
-
# @param [Fixnum] consistency_token
|
|
746
|
-
# The last-seen mutation timestamp.
|
|
747
697
|
# @param [String] language
|
|
748
698
|
# The preferred language to use for strings returned by this method.
|
|
749
699
|
# @param [Fixnum] max_results
|
|
@@ -773,13 +723,12 @@ module Google
|
|
|
773
723
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
774
724
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
775
725
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
776
|
-
def list_metagame_categories_by_player(player_id, collection,
|
|
726
|
+
def list_metagame_categories_by_player(player_id, collection, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
777
727
|
command = make_simple_command(:get, 'players/{playerId}/categories/{collection}', options)
|
|
778
728
|
command.response_representation = Google::Apis::GamesV1::ListCategoryResponse::Representation
|
|
779
729
|
command.response_class = Google::Apis::GamesV1::ListCategoryResponse
|
|
780
730
|
command.params['playerId'] = player_id unless player_id.nil?
|
|
781
731
|
command.params['collection'] = collection unless collection.nil?
|
|
782
|
-
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
|
783
732
|
command.query['language'] = language unless language.nil?
|
|
784
733
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
785
734
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
@@ -794,8 +743,6 @@ module Google
|
|
|
794
743
|
# @param [String] player_id
|
|
795
744
|
# A player ID. A value of me may be used in place of the authenticated player's
|
|
796
745
|
# ID.
|
|
797
|
-
# @param [Fixnum] consistency_token
|
|
798
|
-
# The last-seen mutation timestamp.
|
|
799
746
|
# @param [String] language
|
|
800
747
|
# The preferred language to use for strings returned by this method.
|
|
801
748
|
# @param [String] fields
|
|
@@ -819,12 +766,11 @@ module Google
|
|
|
819
766
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
820
767
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
821
768
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
822
|
-
def get_player(player_id,
|
|
769
|
+
def get_player(player_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
823
770
|
command = make_simple_command(:get, 'players/{playerId}', options)
|
|
824
771
|
command.response_representation = Google::Apis::GamesV1::Player::Representation
|
|
825
772
|
command.response_class = Google::Apis::GamesV1::Player
|
|
826
773
|
command.params['playerId'] = player_id unless player_id.nil?
|
|
827
|
-
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
|
828
774
|
command.query['language'] = language unless language.nil?
|
|
829
775
|
command.query['fields'] = fields unless fields.nil?
|
|
830
776
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -835,8 +781,6 @@ module Google
|
|
|
835
781
|
# Get the collection of players for the currently authenticated user.
|
|
836
782
|
# @param [String] collection
|
|
837
783
|
# Collection of players being retrieved
|
|
838
|
-
# @param [Fixnum] consistency_token
|
|
839
|
-
# The last-seen mutation timestamp.
|
|
840
784
|
# @param [String] language
|
|
841
785
|
# The preferred language to use for strings returned by this method.
|
|
842
786
|
# @param [Fixnum] max_results
|
|
@@ -866,12 +810,11 @@ module Google
|
|
|
866
810
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
867
811
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
868
812
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
869
|
-
def list_players(collection,
|
|
813
|
+
def list_players(collection, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
870
814
|
command = make_simple_command(:get, 'players/me/players/{collection}', options)
|
|
871
815
|
command.response_representation = Google::Apis::GamesV1::ListPlayerResponse::Representation
|
|
872
816
|
command.response_class = Google::Apis::GamesV1::ListPlayerResponse
|
|
873
817
|
command.params['collection'] = collection unless collection.nil?
|
|
874
|
-
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
|
875
818
|
command.query['language'] = language unless language.nil?
|
|
876
819
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
877
820
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
@@ -884,8 +827,6 @@ module Google
|
|
|
884
827
|
# Removes a push token for the current user and application. Removing a non-
|
|
885
828
|
# existent push token will report success.
|
|
886
829
|
# @param [Google::Apis::GamesV1::PushTokenId] push_token_id_object
|
|
887
|
-
# @param [Fixnum] consistency_token
|
|
888
|
-
# The last-seen mutation timestamp.
|
|
889
830
|
# @param [String] fields
|
|
890
831
|
# Selector specifying which fields to include in a partial response.
|
|
891
832
|
# @param [String] quota_user
|
|
@@ -907,11 +848,10 @@ module Google
|
|
|
907
848
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
908
849
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
909
850
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
910
|
-
def remove_pushtoken(push_token_id_object = nil,
|
|
851
|
+
def remove_pushtoken(push_token_id_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
911
852
|
command = make_simple_command(:post, 'pushtokens/remove', options)
|
|
912
853
|
command.request_representation = Google::Apis::GamesV1::PushTokenId::Representation
|
|
913
854
|
command.request_object = push_token_id_object
|
|
914
|
-
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
|
915
855
|
command.query['fields'] = fields unless fields.nil?
|
|
916
856
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
917
857
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
@@ -920,8 +860,6 @@ module Google
|
|
|
920
860
|
|
|
921
861
|
# Registers a push token for the current user and application.
|
|
922
862
|
# @param [Google::Apis::GamesV1::PushToken] push_token_object
|
|
923
|
-
# @param [Fixnum] consistency_token
|
|
924
|
-
# The last-seen mutation timestamp.
|
|
925
863
|
# @param [String] fields
|
|
926
864
|
# Selector specifying which fields to include in a partial response.
|
|
927
865
|
# @param [String] quota_user
|
|
@@ -943,11 +881,10 @@ module Google
|
|
|
943
881
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
944
882
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
945
883
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
946
|
-
def update_pushtoken(push_token_object = nil,
|
|
884
|
+
def update_pushtoken(push_token_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
947
885
|
command = make_simple_command(:put, 'pushtokens', options)
|
|
948
886
|
command.request_representation = Google::Apis::GamesV1::PushToken::Representation
|
|
949
887
|
command.request_object = push_token_object
|
|
950
|
-
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
|
951
888
|
command.query['fields'] = fields unless fields.nil?
|
|
952
889
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
953
890
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
@@ -964,8 +901,6 @@ module Google
|
|
|
964
901
|
# @param [Fixnum] request_id
|
|
965
902
|
# A numeric ID to ensure that the request is handled correctly across retries.
|
|
966
903
|
# Your client application must generate this ID randomly.
|
|
967
|
-
# @param [Fixnum] consistency_token
|
|
968
|
-
# The last-seen mutation timestamp.
|
|
969
904
|
# @param [String] fields
|
|
970
905
|
# Selector specifying which fields to include in a partial response.
|
|
971
906
|
# @param [String] quota_user
|
|
@@ -987,11 +922,10 @@ module Google
|
|
|
987
922
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
988
923
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
989
924
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
990
|
-
def claim_quest_milestone(quest_id, milestone_id, request_id,
|
|
925
|
+
def claim_quest_milestone(quest_id, milestone_id, request_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
991
926
|
command = make_simple_command(:put, 'quests/{questId}/milestones/{milestoneId}/claim', options)
|
|
992
927
|
command.params['questId'] = quest_id unless quest_id.nil?
|
|
993
928
|
command.params['milestoneId'] = milestone_id unless milestone_id.nil?
|
|
994
|
-
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
|
995
929
|
command.query['requestId'] = request_id unless request_id.nil?
|
|
996
930
|
command.query['fields'] = fields unless fields.nil?
|
|
997
931
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -1002,8 +936,6 @@ module Google
|
|
|
1002
936
|
# Indicates that the currently authorized user will participate in the quest.
|
|
1003
937
|
# @param [String] quest_id
|
|
1004
938
|
# The ID of the quest.
|
|
1005
|
-
# @param [Fixnum] consistency_token
|
|
1006
|
-
# The last-seen mutation timestamp.
|
|
1007
939
|
# @param [String] language
|
|
1008
940
|
# The preferred language to use for strings returned by this method.
|
|
1009
941
|
# @param [String] fields
|
|
@@ -1027,12 +959,11 @@ module Google
|
|
|
1027
959
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1028
960
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1029
961
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1030
|
-
def accept_quest(quest_id,
|
|
962
|
+
def accept_quest(quest_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1031
963
|
command = make_simple_command(:post, 'quests/{questId}/accept', options)
|
|
1032
964
|
command.response_representation = Google::Apis::GamesV1::Quest::Representation
|
|
1033
965
|
command.response_class = Google::Apis::GamesV1::Quest
|
|
1034
966
|
command.params['questId'] = quest_id unless quest_id.nil?
|
|
1035
|
-
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
|
1036
967
|
command.query['language'] = language unless language.nil?
|
|
1037
968
|
command.query['fields'] = fields unless fields.nil?
|
|
1038
969
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -1045,8 +976,6 @@ module Google
|
|
|
1045
976
|
# @param [String] player_id
|
|
1046
977
|
# A player ID. A value of me may be used in place of the authenticated player's
|
|
1047
978
|
# ID.
|
|
1048
|
-
# @param [Fixnum] consistency_token
|
|
1049
|
-
# The last-seen mutation timestamp.
|
|
1050
979
|
# @param [String] language
|
|
1051
980
|
# The preferred language to use for strings returned by this method.
|
|
1052
981
|
# @param [Fixnum] max_results
|
|
@@ -1077,12 +1006,11 @@ module Google
|
|
|
1077
1006
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1078
1007
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1079
1008
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1080
|
-
def list_quests(player_id,
|
|
1009
|
+
def list_quests(player_id, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1081
1010
|
command = make_simple_command(:get, 'players/{playerId}/quests', options)
|
|
1082
1011
|
command.response_representation = Google::Apis::GamesV1::ListQuestResponse::Representation
|
|
1083
1012
|
command.response_class = Google::Apis::GamesV1::ListQuestResponse
|
|
1084
1013
|
command.params['playerId'] = player_id unless player_id.nil?
|
|
1085
|
-
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
|
1086
1014
|
command.query['language'] = language unless language.nil?
|
|
1087
1015
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
1088
1016
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
@@ -1100,8 +1028,6 @@ module Google
|
|
|
1100
1028
|
# - "ANDROID" - Client is running the Android SDK.
|
|
1101
1029
|
# - "IOS" - Client is running the iOS SDK.
|
|
1102
1030
|
# - "WEB_APP" - Client is running as a Web App.
|
|
1103
|
-
# @param [Fixnum] consistency_token
|
|
1104
|
-
# The last-seen mutation timestamp.
|
|
1105
1031
|
# @param [String] fields
|
|
1106
1032
|
# Selector specifying which fields to include in a partial response.
|
|
1107
1033
|
# @param [String] quota_user
|
|
@@ -1123,12 +1049,11 @@ module Google
|
|
|
1123
1049
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1124
1050
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1125
1051
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1126
|
-
def check_revision(client_revision,
|
|
1052
|
+
def check_revision(client_revision, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1127
1053
|
command = make_simple_command(:get, 'revisions/check', options)
|
|
1128
1054
|
command.response_representation = Google::Apis::GamesV1::CheckRevisionResponse::Representation
|
|
1129
1055
|
command.response_class = Google::Apis::GamesV1::CheckRevisionResponse
|
|
1130
1056
|
command.query['clientRevision'] = client_revision unless client_revision.nil?
|
|
1131
|
-
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
|
1132
1057
|
command.query['fields'] = fields unless fields.nil?
|
|
1133
1058
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1134
1059
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
@@ -1138,8 +1063,6 @@ module Google
|
|
|
1138
1063
|
# Create a room. For internal use by the Games SDK only. Calling this method
|
|
1139
1064
|
# directly is unsupported.
|
|
1140
1065
|
# @param [Google::Apis::GamesV1::CreateRoomRequest] create_room_request_object
|
|
1141
|
-
# @param [Fixnum] consistency_token
|
|
1142
|
-
# The last-seen mutation timestamp.
|
|
1143
1066
|
# @param [String] language
|
|
1144
1067
|
# The preferred language to use for strings returned by this method.
|
|
1145
1068
|
# @param [String] fields
|
|
@@ -1163,13 +1086,12 @@ module Google
|
|
|
1163
1086
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1164
1087
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1165
1088
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1166
|
-
def create_room(create_room_request_object = nil,
|
|
1089
|
+
def create_room(create_room_request_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1167
1090
|
command = make_simple_command(:post, 'rooms/create', options)
|
|
1168
1091
|
command.request_representation = Google::Apis::GamesV1::CreateRoomRequest::Representation
|
|
1169
1092
|
command.request_object = create_room_request_object
|
|
1170
1093
|
command.response_representation = Google::Apis::GamesV1::Room::Representation
|
|
1171
1094
|
command.response_class = Google::Apis::GamesV1::Room
|
|
1172
|
-
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
|
1173
1095
|
command.query['language'] = language unless language.nil?
|
|
1174
1096
|
command.query['fields'] = fields unless fields.nil?
|
|
1175
1097
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -1181,8 +1103,6 @@ module Google
|
|
|
1181
1103
|
# Calling this method directly is unsupported.
|
|
1182
1104
|
# @param [String] room_id
|
|
1183
1105
|
# The ID of the room.
|
|
1184
|
-
# @param [Fixnum] consistency_token
|
|
1185
|
-
# The last-seen mutation timestamp.
|
|
1186
1106
|
# @param [String] language
|
|
1187
1107
|
# The preferred language to use for strings returned by this method.
|
|
1188
1108
|
# @param [String] fields
|
|
@@ -1206,12 +1126,11 @@ module Google
|
|
|
1206
1126
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1207
1127
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1208
1128
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1209
|
-
def decline_room(room_id,
|
|
1129
|
+
def decline_room(room_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1210
1130
|
command = make_simple_command(:post, 'rooms/{roomId}/decline', options)
|
|
1211
1131
|
command.response_representation = Google::Apis::GamesV1::Room::Representation
|
|
1212
1132
|
command.response_class = Google::Apis::GamesV1::Room
|
|
1213
1133
|
command.params['roomId'] = room_id unless room_id.nil?
|
|
1214
|
-
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
|
1215
1134
|
command.query['language'] = language unless language.nil?
|
|
1216
1135
|
command.query['fields'] = fields unless fields.nil?
|
|
1217
1136
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -1223,8 +1142,6 @@ module Google
|
|
|
1223
1142
|
# Calling this method directly is unsupported.
|
|
1224
1143
|
# @param [String] room_id
|
|
1225
1144
|
# The ID of the room.
|
|
1226
|
-
# @param [Fixnum] consistency_token
|
|
1227
|
-
# The last-seen mutation timestamp.
|
|
1228
1145
|
# @param [String] fields
|
|
1229
1146
|
# Selector specifying which fields to include in a partial response.
|
|
1230
1147
|
# @param [String] quota_user
|
|
@@ -1246,10 +1163,9 @@ module Google
|
|
|
1246
1163
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1247
1164
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1248
1165
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1249
|
-
def dismiss_room(room_id,
|
|
1166
|
+
def dismiss_room(room_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1250
1167
|
command = make_simple_command(:post, 'rooms/{roomId}/dismiss', options)
|
|
1251
1168
|
command.params['roomId'] = room_id unless room_id.nil?
|
|
1252
|
-
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
|
1253
1169
|
command.query['fields'] = fields unless fields.nil?
|
|
1254
1170
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1255
1171
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
@@ -1259,8 +1175,6 @@ module Google
|
|
|
1259
1175
|
# Get the data for a room.
|
|
1260
1176
|
# @param [String] room_id
|
|
1261
1177
|
# The ID of the room.
|
|
1262
|
-
# @param [Fixnum] consistency_token
|
|
1263
|
-
# The last-seen mutation timestamp.
|
|
1264
1178
|
# @param [String] language
|
|
1265
1179
|
# The preferred language to use for strings returned by this method.
|
|
1266
1180
|
# @param [String] fields
|
|
@@ -1284,12 +1198,11 @@ module Google
|
|
|
1284
1198
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1285
1199
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1286
1200
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1287
|
-
def get_room(room_id,
|
|
1201
|
+
def get_room(room_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1288
1202
|
command = make_simple_command(:get, 'rooms/{roomId}', options)
|
|
1289
1203
|
command.response_representation = Google::Apis::GamesV1::Room::Representation
|
|
1290
1204
|
command.response_class = Google::Apis::GamesV1::Room
|
|
1291
1205
|
command.params['roomId'] = room_id unless room_id.nil?
|
|
1292
|
-
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
|
1293
1206
|
command.query['language'] = language unless language.nil?
|
|
1294
1207
|
command.query['fields'] = fields unless fields.nil?
|
|
1295
1208
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -1302,8 +1215,6 @@ module Google
|
|
|
1302
1215
|
# @param [String] room_id
|
|
1303
1216
|
# The ID of the room.
|
|
1304
1217
|
# @param [Google::Apis::GamesV1::JoinRoomRequest] join_room_request_object
|
|
1305
|
-
# @param [Fixnum] consistency_token
|
|
1306
|
-
# The last-seen mutation timestamp.
|
|
1307
1218
|
# @param [String] language
|
|
1308
1219
|
# The preferred language to use for strings returned by this method.
|
|
1309
1220
|
# @param [String] fields
|
|
@@ -1327,14 +1238,13 @@ module Google
|
|
|
1327
1238
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1328
1239
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1329
1240
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1330
|
-
def join_room(room_id, join_room_request_object = nil,
|
|
1241
|
+
def join_room(room_id, join_room_request_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1331
1242
|
command = make_simple_command(:post, 'rooms/{roomId}/join', options)
|
|
1332
1243
|
command.request_representation = Google::Apis::GamesV1::JoinRoomRequest::Representation
|
|
1333
1244
|
command.request_object = join_room_request_object
|
|
1334
1245
|
command.response_representation = Google::Apis::GamesV1::Room::Representation
|
|
1335
1246
|
command.response_class = Google::Apis::GamesV1::Room
|
|
1336
1247
|
command.params['roomId'] = room_id unless room_id.nil?
|
|
1337
|
-
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
|
1338
1248
|
command.query['language'] = language unless language.nil?
|
|
1339
1249
|
command.query['fields'] = fields unless fields.nil?
|
|
1340
1250
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -1347,8 +1257,6 @@ module Google
|
|
|
1347
1257
|
# @param [String] room_id
|
|
1348
1258
|
# The ID of the room.
|
|
1349
1259
|
# @param [Google::Apis::GamesV1::LeaveRoomRequest] leave_room_request_object
|
|
1350
|
-
# @param [Fixnum] consistency_token
|
|
1351
|
-
# The last-seen mutation timestamp.
|
|
1352
1260
|
# @param [String] language
|
|
1353
1261
|
# The preferred language to use for strings returned by this method.
|
|
1354
1262
|
# @param [String] fields
|
|
@@ -1372,14 +1280,13 @@ module Google
|
|
|
1372
1280
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1373
1281
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1374
1282
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1375
|
-
def leave_room(room_id, leave_room_request_object = nil,
|
|
1283
|
+
def leave_room(room_id, leave_room_request_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1376
1284
|
command = make_simple_command(:post, 'rooms/{roomId}/leave', options)
|
|
1377
1285
|
command.request_representation = Google::Apis::GamesV1::LeaveRoomRequest::Representation
|
|
1378
1286
|
command.request_object = leave_room_request_object
|
|
1379
1287
|
command.response_representation = Google::Apis::GamesV1::Room::Representation
|
|
1380
1288
|
command.response_class = Google::Apis::GamesV1::Room
|
|
1381
1289
|
command.params['roomId'] = room_id unless room_id.nil?
|
|
1382
|
-
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
|
1383
1290
|
command.query['language'] = language unless language.nil?
|
|
1384
1291
|
command.query['fields'] = fields unless fields.nil?
|
|
1385
1292
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -1388,8 +1295,6 @@ module Google
|
|
|
1388
1295
|
end
|
|
1389
1296
|
|
|
1390
1297
|
# Returns invitations to join rooms.
|
|
1391
|
-
# @param [Fixnum] consistency_token
|
|
1392
|
-
# The last-seen mutation timestamp.
|
|
1393
1298
|
# @param [String] language
|
|
1394
1299
|
# The preferred language to use for strings returned by this method.
|
|
1395
1300
|
# @param [Fixnum] max_results
|
|
@@ -1419,11 +1324,10 @@ module Google
|
|
|
1419
1324
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1420
1325
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1421
1326
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1422
|
-
def list_rooms(
|
|
1327
|
+
def list_rooms(language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1423
1328
|
command = make_simple_command(:get, 'rooms', options)
|
|
1424
1329
|
command.response_representation = Google::Apis::GamesV1::RoomList::Representation
|
|
1425
1330
|
command.response_class = Google::Apis::GamesV1::RoomList
|
|
1426
|
-
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
|
1427
1331
|
command.query['language'] = language unless language.nil?
|
|
1428
1332
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
1429
1333
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
@@ -1438,8 +1342,6 @@ module Google
|
|
|
1438
1342
|
# @param [String] room_id
|
|
1439
1343
|
# The ID of the room.
|
|
1440
1344
|
# @param [Google::Apis::GamesV1::RoomP2PStatuses] room_p2_p_statuses_object
|
|
1441
|
-
# @param [Fixnum] consistency_token
|
|
1442
|
-
# The last-seen mutation timestamp.
|
|
1443
1345
|
# @param [String] language
|
|
1444
1346
|
# The preferred language to use for strings returned by this method.
|
|
1445
1347
|
# @param [String] fields
|
|
@@ -1463,14 +1365,13 @@ module Google
|
|
|
1463
1365
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1464
1366
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1465
1367
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1466
|
-
def report_room_status(room_id, room_p2_p_statuses_object = nil,
|
|
1368
|
+
def report_room_status(room_id, room_p2_p_statuses_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1467
1369
|
command = make_simple_command(:post, 'rooms/{roomId}/reportstatus', options)
|
|
1468
1370
|
command.request_representation = Google::Apis::GamesV1::RoomP2PStatuses::Representation
|
|
1469
1371
|
command.request_object = room_p2_p_statuses_object
|
|
1470
1372
|
command.response_representation = Google::Apis::GamesV1::RoomStatus::Representation
|
|
1471
1373
|
command.response_class = Google::Apis::GamesV1::RoomStatus
|
|
1472
1374
|
command.params['roomId'] = room_id unless room_id.nil?
|
|
1473
|
-
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
|
1474
1375
|
command.query['language'] = language unless language.nil?
|
|
1475
1376
|
command.query['fields'] = fields unless fields.nil?
|
|
1476
1377
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -1491,8 +1392,6 @@ module Google
|
|
|
1491
1392
|
# leaderboards for this application.
|
|
1492
1393
|
# @param [String] time_span
|
|
1493
1394
|
# The time span for the scores and ranks you're requesting.
|
|
1494
|
-
# @param [Fixnum] consistency_token
|
|
1495
|
-
# The last-seen mutation timestamp.
|
|
1496
1395
|
# @param [String] include_rank_type
|
|
1497
1396
|
# The types of ranks to return. If the parameter is omitted, no ranks will be
|
|
1498
1397
|
# returned.
|
|
@@ -1525,14 +1424,13 @@ module Google
|
|
|
1525
1424
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1526
1425
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1527
1426
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1528
|
-
def get_score(player_id, leaderboard_id, time_span,
|
|
1427
|
+
def get_score(player_id, leaderboard_id, time_span, include_rank_type: nil, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1529
1428
|
command = make_simple_command(:get, 'players/{playerId}/leaderboards/{leaderboardId}/scores/{timeSpan}', options)
|
|
1530
1429
|
command.response_representation = Google::Apis::GamesV1::ListPlayerLeaderboardScoreResponse::Representation
|
|
1531
1430
|
command.response_class = Google::Apis::GamesV1::ListPlayerLeaderboardScoreResponse
|
|
1532
1431
|
command.params['playerId'] = player_id unless player_id.nil?
|
|
1533
1432
|
command.params['leaderboardId'] = leaderboard_id unless leaderboard_id.nil?
|
|
1534
1433
|
command.params['timeSpan'] = time_span unless time_span.nil?
|
|
1535
|
-
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
|
1536
1434
|
command.query['includeRankType'] = include_rank_type unless include_rank_type.nil?
|
|
1537
1435
|
command.query['language'] = language unless language.nil?
|
|
1538
1436
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
@@ -1550,8 +1448,6 @@ module Google
|
|
|
1550
1448
|
# The collection of scores you're requesting.
|
|
1551
1449
|
# @param [String] time_span
|
|
1552
1450
|
# The time span for the scores and ranks you're requesting.
|
|
1553
|
-
# @param [Fixnum] consistency_token
|
|
1554
|
-
# The last-seen mutation timestamp.
|
|
1555
1451
|
# @param [String] language
|
|
1556
1452
|
# The preferred language to use for strings returned by this method.
|
|
1557
1453
|
# @param [Fixnum] max_results
|
|
@@ -1581,13 +1477,12 @@ module Google
|
|
|
1581
1477
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1582
1478
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1583
1479
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1584
|
-
def list_scores(leaderboard_id, collection, time_span,
|
|
1480
|
+
def list_scores(leaderboard_id, collection, time_span, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1585
1481
|
command = make_simple_command(:get, 'leaderboards/{leaderboardId}/scores/{collection}', options)
|
|
1586
1482
|
command.response_representation = Google::Apis::GamesV1::LeaderboardScores::Representation
|
|
1587
1483
|
command.response_class = Google::Apis::GamesV1::LeaderboardScores
|
|
1588
1484
|
command.params['leaderboardId'] = leaderboard_id unless leaderboard_id.nil?
|
|
1589
1485
|
command.params['collection'] = collection unless collection.nil?
|
|
1590
|
-
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
|
1591
1486
|
command.query['language'] = language unless language.nil?
|
|
1592
1487
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
1593
1488
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
@@ -1605,8 +1500,6 @@ module Google
|
|
|
1605
1500
|
# The collection of scores you're requesting.
|
|
1606
1501
|
# @param [String] time_span
|
|
1607
1502
|
# The time span for the scores and ranks you're requesting.
|
|
1608
|
-
# @param [Fixnum] consistency_token
|
|
1609
|
-
# The last-seen mutation timestamp.
|
|
1610
1503
|
# @param [String] language
|
|
1611
1504
|
# The preferred language to use for strings returned by this method.
|
|
1612
1505
|
# @param [Fixnum] max_results
|
|
@@ -1644,13 +1537,12 @@ module Google
|
|
|
1644
1537
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1645
1538
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1646
1539
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1647
|
-
def list_score_window(leaderboard_id, collection, time_span,
|
|
1540
|
+
def list_score_window(leaderboard_id, collection, time_span, language: nil, max_results: nil, page_token: nil, results_above: nil, return_top_if_absent: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1648
1541
|
command = make_simple_command(:get, 'leaderboards/{leaderboardId}/window/{collection}', options)
|
|
1649
1542
|
command.response_representation = Google::Apis::GamesV1::LeaderboardScores::Representation
|
|
1650
1543
|
command.response_class = Google::Apis::GamesV1::LeaderboardScores
|
|
1651
1544
|
command.params['leaderboardId'] = leaderboard_id unless leaderboard_id.nil?
|
|
1652
1545
|
command.params['collection'] = collection unless collection.nil?
|
|
1653
|
-
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
|
1654
1546
|
command.query['language'] = language unless language.nil?
|
|
1655
1547
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
1656
1548
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
@@ -1673,8 +1565,6 @@ module Google
|
|
|
1673
1565
|
# For fixed-point, the score represents the raw value. For time, the score
|
|
1674
1566
|
# represents elapsed time in milliseconds. For currency, the score represents a
|
|
1675
1567
|
# value in micro units.
|
|
1676
|
-
# @param [Fixnum] consistency_token
|
|
1677
|
-
# The last-seen mutation timestamp.
|
|
1678
1568
|
# @param [String] language
|
|
1679
1569
|
# The preferred language to use for strings returned by this method.
|
|
1680
1570
|
# @param [String] score_tag
|
|
@@ -1701,12 +1591,11 @@ module Google
|
|
|
1701
1591
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1702
1592
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1703
1593
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1704
|
-
def submit_score(leaderboard_id, score,
|
|
1594
|
+
def submit_score(leaderboard_id, score, language: nil, score_tag: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1705
1595
|
command = make_simple_command(:post, 'leaderboards/{leaderboardId}/scores', options)
|
|
1706
1596
|
command.response_representation = Google::Apis::GamesV1::PlayerScoreResponse::Representation
|
|
1707
1597
|
command.response_class = Google::Apis::GamesV1::PlayerScoreResponse
|
|
1708
1598
|
command.params['leaderboardId'] = leaderboard_id unless leaderboard_id.nil?
|
|
1709
|
-
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
|
1710
1599
|
command.query['language'] = language unless language.nil?
|
|
1711
1600
|
command.query['score'] = score unless score.nil?
|
|
1712
1601
|
command.query['scoreTag'] = score_tag unless score_tag.nil?
|
|
@@ -1718,8 +1607,6 @@ module Google
|
|
|
1718
1607
|
|
|
1719
1608
|
# Submits multiple scores to leaderboards.
|
|
1720
1609
|
# @param [Google::Apis::GamesV1::PlayerScoreSubmissionList] player_score_submission_list_object
|
|
1721
|
-
# @param [Fixnum] consistency_token
|
|
1722
|
-
# The last-seen mutation timestamp.
|
|
1723
1610
|
# @param [String] language
|
|
1724
1611
|
# The preferred language to use for strings returned by this method.
|
|
1725
1612
|
# @param [String] fields
|
|
@@ -1743,13 +1630,12 @@ module Google
|
|
|
1743
1630
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1744
1631
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1745
1632
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1746
|
-
def submit_score_multiple(player_score_submission_list_object = nil,
|
|
1633
|
+
def submit_score_multiple(player_score_submission_list_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1747
1634
|
command = make_simple_command(:post, 'leaderboards/scores', options)
|
|
1748
1635
|
command.request_representation = Google::Apis::GamesV1::PlayerScoreSubmissionList::Representation
|
|
1749
1636
|
command.request_object = player_score_submission_list_object
|
|
1750
1637
|
command.response_representation = Google::Apis::GamesV1::ListPlayerScoreResponse::Representation
|
|
1751
1638
|
command.response_class = Google::Apis::GamesV1::ListPlayerScoreResponse
|
|
1752
|
-
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
|
1753
1639
|
command.query['language'] = language unless language.nil?
|
|
1754
1640
|
command.query['fields'] = fields unless fields.nil?
|
|
1755
1641
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -1760,8 +1646,6 @@ module Google
|
|
|
1760
1646
|
# Retrieves the metadata for a given snapshot ID.
|
|
1761
1647
|
# @param [String] snapshot_id
|
|
1762
1648
|
# The ID of the snapshot.
|
|
1763
|
-
# @param [Fixnum] consistency_token
|
|
1764
|
-
# The last-seen mutation timestamp.
|
|
1765
1649
|
# @param [String] language
|
|
1766
1650
|
# The preferred language to use for strings returned by this method.
|
|
1767
1651
|
# @param [String] fields
|
|
@@ -1785,12 +1669,11 @@ module Google
|
|
|
1785
1669
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1786
1670
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1787
1671
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1788
|
-
def get_snapshot(snapshot_id,
|
|
1672
|
+
def get_snapshot(snapshot_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1789
1673
|
command = make_simple_command(:get, 'snapshots/{snapshotId}', options)
|
|
1790
1674
|
command.response_representation = Google::Apis::GamesV1::Snapshot::Representation
|
|
1791
1675
|
command.response_class = Google::Apis::GamesV1::Snapshot
|
|
1792
1676
|
command.params['snapshotId'] = snapshot_id unless snapshot_id.nil?
|
|
1793
|
-
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
|
1794
1677
|
command.query['language'] = language unless language.nil?
|
|
1795
1678
|
command.query['fields'] = fields unless fields.nil?
|
|
1796
1679
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -1803,8 +1686,6 @@ module Google
|
|
|
1803
1686
|
# @param [String] player_id
|
|
1804
1687
|
# A player ID. A value of me may be used in place of the authenticated player's
|
|
1805
1688
|
# ID.
|
|
1806
|
-
# @param [Fixnum] consistency_token
|
|
1807
|
-
# The last-seen mutation timestamp.
|
|
1808
1689
|
# @param [String] language
|
|
1809
1690
|
# The preferred language to use for strings returned by this method.
|
|
1810
1691
|
# @param [Fixnum] max_results
|
|
@@ -1834,12 +1715,11 @@ module Google
|
|
|
1834
1715
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1835
1716
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1836
1717
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1837
|
-
def list_snapshots(player_id,
|
|
1718
|
+
def list_snapshots(player_id, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1838
1719
|
command = make_simple_command(:get, 'players/{playerId}/snapshots', options)
|
|
1839
1720
|
command.response_representation = Google::Apis::GamesV1::ListSnapshotResponse::Representation
|
|
1840
1721
|
command.response_class = Google::Apis::GamesV1::ListSnapshotResponse
|
|
1841
1722
|
command.params['playerId'] = player_id unless player_id.nil?
|
|
1842
|
-
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
|
1843
1723
|
command.query['language'] = language unless language.nil?
|
|
1844
1724
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
1845
1725
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
@@ -1852,8 +1732,6 @@ module Google
|
|
|
1852
1732
|
# Cancel a turn-based match.
|
|
1853
1733
|
# @param [String] match_id
|
|
1854
1734
|
# The ID of the match.
|
|
1855
|
-
# @param [Fixnum] consistency_token
|
|
1856
|
-
# The last-seen mutation timestamp.
|
|
1857
1735
|
# @param [String] fields
|
|
1858
1736
|
# Selector specifying which fields to include in a partial response.
|
|
1859
1737
|
# @param [String] quota_user
|
|
@@ -1875,10 +1753,9 @@ module Google
|
|
|
1875
1753
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1876
1754
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1877
1755
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1878
|
-
def cancel_turn_based_match(match_id,
|
|
1756
|
+
def cancel_turn_based_match(match_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1879
1757
|
command = make_simple_command(:put, 'turnbasedmatches/{matchId}/cancel', options)
|
|
1880
1758
|
command.params['matchId'] = match_id unless match_id.nil?
|
|
1881
|
-
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
|
1882
1759
|
command.query['fields'] = fields unless fields.nil?
|
|
1883
1760
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1884
1761
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
@@ -1887,8 +1764,6 @@ module Google
|
|
|
1887
1764
|
|
|
1888
1765
|
# Create a turn-based match.
|
|
1889
1766
|
# @param [Google::Apis::GamesV1::CreateTurnBasedMatchRequest] create_turn_based_match_request_object
|
|
1890
|
-
# @param [Fixnum] consistency_token
|
|
1891
|
-
# The last-seen mutation timestamp.
|
|
1892
1767
|
# @param [String] language
|
|
1893
1768
|
# The preferred language to use for strings returned by this method.
|
|
1894
1769
|
# @param [String] fields
|
|
@@ -1912,13 +1787,12 @@ module Google
|
|
|
1912
1787
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1913
1788
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1914
1789
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1915
|
-
def create_turn_based_match(create_turn_based_match_request_object = nil,
|
|
1790
|
+
def create_turn_based_match(create_turn_based_match_request_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1916
1791
|
command = make_simple_command(:post, 'turnbasedmatches/create', options)
|
|
1917
1792
|
command.request_representation = Google::Apis::GamesV1::CreateTurnBasedMatchRequest::Representation
|
|
1918
1793
|
command.request_object = create_turn_based_match_request_object
|
|
1919
1794
|
command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation
|
|
1920
1795
|
command.response_class = Google::Apis::GamesV1::TurnBasedMatch
|
|
1921
|
-
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
|
1922
1796
|
command.query['language'] = language unless language.nil?
|
|
1923
1797
|
command.query['fields'] = fields unless fields.nil?
|
|
1924
1798
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -1929,8 +1803,6 @@ module Google
|
|
|
1929
1803
|
# Decline an invitation to play a turn-based match.
|
|
1930
1804
|
# @param [String] match_id
|
|
1931
1805
|
# The ID of the match.
|
|
1932
|
-
# @param [Fixnum] consistency_token
|
|
1933
|
-
# The last-seen mutation timestamp.
|
|
1934
1806
|
# @param [String] language
|
|
1935
1807
|
# The preferred language to use for strings returned by this method.
|
|
1936
1808
|
# @param [String] fields
|
|
@@ -1954,12 +1826,11 @@ module Google
|
|
|
1954
1826
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1955
1827
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1956
1828
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1957
|
-
def decline_turn_based_match(match_id,
|
|
1829
|
+
def decline_turn_based_match(match_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1958
1830
|
command = make_simple_command(:put, 'turnbasedmatches/{matchId}/decline', options)
|
|
1959
1831
|
command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation
|
|
1960
1832
|
command.response_class = Google::Apis::GamesV1::TurnBasedMatch
|
|
1961
1833
|
command.params['matchId'] = match_id unless match_id.nil?
|
|
1962
|
-
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
|
1963
1834
|
command.query['language'] = language unless language.nil?
|
|
1964
1835
|
command.query['fields'] = fields unless fields.nil?
|
|
1965
1836
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -1971,8 +1842,6 @@ module Google
|
|
|
1971
1842
|
# up in the list and will not generate notifications.
|
|
1972
1843
|
# @param [String] match_id
|
|
1973
1844
|
# The ID of the match.
|
|
1974
|
-
# @param [Fixnum] consistency_token
|
|
1975
|
-
# The last-seen mutation timestamp.
|
|
1976
1845
|
# @param [String] fields
|
|
1977
1846
|
# Selector specifying which fields to include in a partial response.
|
|
1978
1847
|
# @param [String] quota_user
|
|
@@ -1994,10 +1863,9 @@ module Google
|
|
|
1994
1863
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1995
1864
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1996
1865
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1997
|
-
def dismiss_turn_based_match(match_id,
|
|
1866
|
+
def dismiss_turn_based_match(match_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1998
1867
|
command = make_simple_command(:put, 'turnbasedmatches/{matchId}/dismiss', options)
|
|
1999
1868
|
command.params['matchId'] = match_id unless match_id.nil?
|
|
2000
|
-
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
|
2001
1869
|
command.query['fields'] = fields unless fields.nil?
|
|
2002
1870
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2003
1871
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
@@ -2010,8 +1878,6 @@ module Google
|
|
|
2010
1878
|
# @param [String] match_id
|
|
2011
1879
|
# The ID of the match.
|
|
2012
1880
|
# @param [Google::Apis::GamesV1::TurnBasedMatchResults] turn_based_match_results_object
|
|
2013
|
-
# @param [Fixnum] consistency_token
|
|
2014
|
-
# The last-seen mutation timestamp.
|
|
2015
1881
|
# @param [String] language
|
|
2016
1882
|
# The preferred language to use for strings returned by this method.
|
|
2017
1883
|
# @param [String] fields
|
|
@@ -2035,14 +1901,13 @@ module Google
|
|
|
2035
1901
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2036
1902
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2037
1903
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2038
|
-
def finish_turn_based_match(match_id, turn_based_match_results_object = nil,
|
|
1904
|
+
def finish_turn_based_match(match_id, turn_based_match_results_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2039
1905
|
command = make_simple_command(:put, 'turnbasedmatches/{matchId}/finish', options)
|
|
2040
1906
|
command.request_representation = Google::Apis::GamesV1::TurnBasedMatchResults::Representation
|
|
2041
1907
|
command.request_object = turn_based_match_results_object
|
|
2042
1908
|
command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation
|
|
2043
1909
|
command.response_class = Google::Apis::GamesV1::TurnBasedMatch
|
|
2044
1910
|
command.params['matchId'] = match_id unless match_id.nil?
|
|
2045
|
-
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
|
2046
1911
|
command.query['language'] = language unless language.nil?
|
|
2047
1912
|
command.query['fields'] = fields unless fields.nil?
|
|
2048
1913
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -2053,8 +1918,6 @@ module Google
|
|
|
2053
1918
|
# Get the data for a turn-based match.
|
|
2054
1919
|
# @param [String] match_id
|
|
2055
1920
|
# The ID of the match.
|
|
2056
|
-
# @param [Fixnum] consistency_token
|
|
2057
|
-
# The last-seen mutation timestamp.
|
|
2058
1921
|
# @param [Boolean] include_match_data
|
|
2059
1922
|
# Get match data along with metadata.
|
|
2060
1923
|
# @param [String] language
|
|
@@ -2080,12 +1943,11 @@ module Google
|
|
|
2080
1943
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2081
1944
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2082
1945
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2083
|
-
def get_turn_based_match(match_id,
|
|
1946
|
+
def get_turn_based_match(match_id, include_match_data: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2084
1947
|
command = make_simple_command(:get, 'turnbasedmatches/{matchId}', options)
|
|
2085
1948
|
command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation
|
|
2086
1949
|
command.response_class = Google::Apis::GamesV1::TurnBasedMatch
|
|
2087
1950
|
command.params['matchId'] = match_id unless match_id.nil?
|
|
2088
|
-
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
|
2089
1951
|
command.query['includeMatchData'] = include_match_data unless include_match_data.nil?
|
|
2090
1952
|
command.query['language'] = language unless language.nil?
|
|
2091
1953
|
command.query['fields'] = fields unless fields.nil?
|
|
@@ -2097,8 +1959,6 @@ module Google
|
|
|
2097
1959
|
# Join a turn-based match.
|
|
2098
1960
|
# @param [String] match_id
|
|
2099
1961
|
# The ID of the match.
|
|
2100
|
-
# @param [Fixnum] consistency_token
|
|
2101
|
-
# The last-seen mutation timestamp.
|
|
2102
1962
|
# @param [String] language
|
|
2103
1963
|
# The preferred language to use for strings returned by this method.
|
|
2104
1964
|
# @param [String] fields
|
|
@@ -2122,12 +1982,11 @@ module Google
|
|
|
2122
1982
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2123
1983
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2124
1984
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2125
|
-
def join_turn_based_match(match_id,
|
|
1985
|
+
def join_turn_based_match(match_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2126
1986
|
command = make_simple_command(:put, 'turnbasedmatches/{matchId}/join', options)
|
|
2127
1987
|
command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation
|
|
2128
1988
|
command.response_class = Google::Apis::GamesV1::TurnBasedMatch
|
|
2129
1989
|
command.params['matchId'] = match_id unless match_id.nil?
|
|
2130
|
-
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
|
2131
1990
|
command.query['language'] = language unless language.nil?
|
|
2132
1991
|
command.query['fields'] = fields unless fields.nil?
|
|
2133
1992
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -2139,8 +1998,6 @@ module Google
|
|
|
2139
1998
|
# canceling the match.
|
|
2140
1999
|
# @param [String] match_id
|
|
2141
2000
|
# The ID of the match.
|
|
2142
|
-
# @param [Fixnum] consistency_token
|
|
2143
|
-
# The last-seen mutation timestamp.
|
|
2144
2001
|
# @param [String] language
|
|
2145
2002
|
# The preferred language to use for strings returned by this method.
|
|
2146
2003
|
# @param [String] fields
|
|
@@ -2164,12 +2021,11 @@ module Google
|
|
|
2164
2021
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2165
2022
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2166
2023
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2167
|
-
def leave_turn_based_match(match_id,
|
|
2024
|
+
def leave_turn_based_match(match_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2168
2025
|
command = make_simple_command(:put, 'turnbasedmatches/{matchId}/leave', options)
|
|
2169
2026
|
command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation
|
|
2170
2027
|
command.response_class = Google::Apis::GamesV1::TurnBasedMatch
|
|
2171
2028
|
command.params['matchId'] = match_id unless match_id.nil?
|
|
2172
|
-
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
|
2173
2029
|
command.query['language'] = language unless language.nil?
|
|
2174
2030
|
command.query['fields'] = fields unless fields.nil?
|
|
2175
2031
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -2183,8 +2039,6 @@ module Google
|
|
|
2183
2039
|
# The ID of the match.
|
|
2184
2040
|
# @param [Fixnum] match_version
|
|
2185
2041
|
# The version of the match being updated.
|
|
2186
|
-
# @param [Fixnum] consistency_token
|
|
2187
|
-
# The last-seen mutation timestamp.
|
|
2188
2042
|
# @param [String] language
|
|
2189
2043
|
# The preferred language to use for strings returned by this method.
|
|
2190
2044
|
# @param [String] pending_participant_id
|
|
@@ -2213,12 +2067,11 @@ module Google
|
|
|
2213
2067
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2214
2068
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2215
2069
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2216
|
-
def leave_turn(match_id, match_version,
|
|
2070
|
+
def leave_turn(match_id, match_version, language: nil, pending_participant_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2217
2071
|
command = make_simple_command(:put, 'turnbasedmatches/{matchId}/leaveTurn', options)
|
|
2218
2072
|
command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation
|
|
2219
2073
|
command.response_class = Google::Apis::GamesV1::TurnBasedMatch
|
|
2220
2074
|
command.params['matchId'] = match_id unless match_id.nil?
|
|
2221
|
-
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
|
2222
2075
|
command.query['language'] = language unless language.nil?
|
|
2223
2076
|
command.query['matchVersion'] = match_version unless match_version.nil?
|
|
2224
2077
|
command.query['pendingParticipantId'] = pending_participant_id unless pending_participant_id.nil?
|
|
@@ -2229,8 +2082,6 @@ module Google
|
|
|
2229
2082
|
end
|
|
2230
2083
|
|
|
2231
2084
|
# Returns turn-based matches the player is or was involved in.
|
|
2232
|
-
# @param [Fixnum] consistency_token
|
|
2233
|
-
# The last-seen mutation timestamp.
|
|
2234
2085
|
# @param [Boolean] include_match_data
|
|
2235
2086
|
# True if match data should be returned in the response. Note that not all data
|
|
2236
2087
|
# will necessarily be returned if include_match_data is true; the server may
|
|
@@ -2269,11 +2120,10 @@ module Google
|
|
|
2269
2120
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2270
2121
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2271
2122
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2272
|
-
def list_turn_based_matches(
|
|
2123
|
+
def list_turn_based_matches(include_match_data: nil, language: nil, max_completed_matches: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2273
2124
|
command = make_simple_command(:get, 'turnbasedmatches', options)
|
|
2274
2125
|
command.response_representation = Google::Apis::GamesV1::TurnBasedMatchList::Representation
|
|
2275
2126
|
command.response_class = Google::Apis::GamesV1::TurnBasedMatchList
|
|
2276
|
-
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
|
2277
2127
|
command.query['includeMatchData'] = include_match_data unless include_match_data.nil?
|
|
2278
2128
|
command.query['language'] = language unless language.nil?
|
|
2279
2129
|
command.query['maxCompletedMatches'] = max_completed_matches unless max_completed_matches.nil?
|
|
@@ -2291,8 +2141,6 @@ module Google
|
|
|
2291
2141
|
# match; it will be the caller's turn.
|
|
2292
2142
|
# @param [String] match_id
|
|
2293
2143
|
# The ID of the match.
|
|
2294
|
-
# @param [Fixnum] consistency_token
|
|
2295
|
-
# The last-seen mutation timestamp.
|
|
2296
2144
|
# @param [String] language
|
|
2297
2145
|
# The preferred language to use for strings returned by this method.
|
|
2298
2146
|
# @param [Fixnum] request_id
|
|
@@ -2320,12 +2168,11 @@ module Google
|
|
|
2320
2168
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2321
2169
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2322
2170
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2323
|
-
def rematch_turn_based_match(match_id,
|
|
2171
|
+
def rematch_turn_based_match(match_id, language: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2324
2172
|
command = make_simple_command(:post, 'turnbasedmatches/{matchId}/rematch', options)
|
|
2325
2173
|
command.response_representation = Google::Apis::GamesV1::TurnBasedMatchRematch::Representation
|
|
2326
2174
|
command.response_class = Google::Apis::GamesV1::TurnBasedMatchRematch
|
|
2327
2175
|
command.params['matchId'] = match_id unless match_id.nil?
|
|
2328
|
-
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
|
2329
2176
|
command.query['language'] = language unless language.nil?
|
|
2330
2177
|
command.query['requestId'] = request_id unless request_id.nil?
|
|
2331
2178
|
command.query['fields'] = fields unless fields.nil?
|
|
@@ -2337,8 +2184,6 @@ module Google
|
|
|
2337
2184
|
# Returns turn-based matches the player is or was involved in that changed since
|
|
2338
2185
|
# the last sync call, with the least recent changes coming first. Matches that
|
|
2339
2186
|
# should be removed from the local cache will have a status of MATCH_DELETED.
|
|
2340
|
-
# @param [Fixnum] consistency_token
|
|
2341
|
-
# The last-seen mutation timestamp.
|
|
2342
2187
|
# @param [Boolean] include_match_data
|
|
2343
2188
|
# True if match data should be returned in the response. Note that not all data
|
|
2344
2189
|
# will necessarily be returned if include_match_data is true; the server may
|
|
@@ -2377,11 +2222,10 @@ module Google
|
|
|
2377
2222
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2378
2223
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2379
2224
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2380
|
-
def sync_turn_based_match(
|
|
2225
|
+
def sync_turn_based_match(include_match_data: nil, language: nil, max_completed_matches: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2381
2226
|
command = make_simple_command(:get, 'turnbasedmatches/sync', options)
|
|
2382
2227
|
command.response_representation = Google::Apis::GamesV1::TurnBasedMatchSync::Representation
|
|
2383
2228
|
command.response_class = Google::Apis::GamesV1::TurnBasedMatchSync
|
|
2384
|
-
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
|
2385
2229
|
command.query['includeMatchData'] = include_match_data unless include_match_data.nil?
|
|
2386
2230
|
command.query['language'] = language unless language.nil?
|
|
2387
2231
|
command.query['maxCompletedMatches'] = max_completed_matches unless max_completed_matches.nil?
|
|
@@ -2397,8 +2241,6 @@ module Google
|
|
|
2397
2241
|
# @param [String] match_id
|
|
2398
2242
|
# The ID of the match.
|
|
2399
2243
|
# @param [Google::Apis::GamesV1::TurnBasedMatchTurn] turn_based_match_turn_object
|
|
2400
|
-
# @param [Fixnum] consistency_token
|
|
2401
|
-
# The last-seen mutation timestamp.
|
|
2402
2244
|
# @param [String] language
|
|
2403
2245
|
# The preferred language to use for strings returned by this method.
|
|
2404
2246
|
# @param [String] fields
|
|
@@ -2422,14 +2264,13 @@ module Google
|
|
|
2422
2264
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2423
2265
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2424
2266
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2425
|
-
def take_turn(match_id, turn_based_match_turn_object = nil,
|
|
2267
|
+
def take_turn(match_id, turn_based_match_turn_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2426
2268
|
command = make_simple_command(:put, 'turnbasedmatches/{matchId}/turn', options)
|
|
2427
2269
|
command.request_representation = Google::Apis::GamesV1::TurnBasedMatchTurn::Representation
|
|
2428
2270
|
command.request_object = turn_based_match_turn_object
|
|
2429
2271
|
command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation
|
|
2430
2272
|
command.response_class = Google::Apis::GamesV1::TurnBasedMatch
|
|
2431
2273
|
command.params['matchId'] = match_id unless match_id.nil?
|
|
2432
|
-
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
|
2433
2274
|
command.query['language'] = language unless language.nil?
|
|
2434
2275
|
command.query['fields'] = fields unless fields.nil?
|
|
2435
2276
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|