google-api-client 0.9.6 → 0.9.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/api_names.yaml +15 -0
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +75 -12
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +25 -5
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +6 -2
- data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +1 -1
- data/generated/google/apis/admin_directory_v1/representations.rb +1 -2
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4.rb +37 -0
- data/generated/google/apis/analyticsreporting_v4/classes.rb +1385 -0
- data/generated/google/apis/analyticsreporting_v4/representations.rb +597 -0
- data/generated/google/apis/analyticsreporting_v4/service.rb +88 -0
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +98 -2
- data/generated/google/apis/androidenterprise_v1/representations.rb +48 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +63 -1
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +268 -0
- data/generated/google/apis/androidpublisher_v2/representations.rb +142 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +121 -0
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/autoscaler_v1beta2.rb +1 -1
- data/generated/google/apis/autoscaler_v1beta2/classes.rb +10 -47
- data/generated/google/apis/autoscaler_v1beta2/representations.rb +1 -18
- data/generated/google/apis/autoscaler_v1beta2/service.rb +4 -4
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +97 -61
- data/generated/google/apis/bigquery_v2/representations.rb +23 -18
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/classroom_v1.rb +23 -2
- data/generated/google/apis/classroom_v1/classes.rb +920 -6
- data/generated/google/apis/classroom_v1/representations.rb +419 -0
- data/generated/google/apis/classroom_v1/service.rb +507 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +30 -23
- data/generated/google/apis/cloudbuild_v1/representations.rb +4 -3
- data/generated/google/apis/cloudbuild_v1/service.rb +25 -25
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +55 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +40 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +35 -0
- data/generated/google/apis/cloudtrace_v1.rb +11 -3
- data/generated/google/apis/cloudtrace_v1/classes.rb +5 -5
- data/generated/google/apis/cloudtrace_v1/service.rb +8 -6
- data/generated/google/apis/compute_beta.rb +2 -2
- data/generated/google/apis/compute_beta/classes.rb +162 -32
- data/generated/google/apis/compute_beta/representations.rb +58 -0
- data/generated/google/apis/compute_beta/service.rb +392 -267
- data/generated/google/apis/compute_v1.rb +2 -2
- data/generated/google/apis/compute_v1/classes.rb +21 -9
- data/generated/google/apis/compute_v1/representations.rb +1 -0
- data/generated/google/apis/compute_v1/service.rb +291 -253
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +148 -0
- data/generated/google/apis/container_v1/representations.rb +55 -0
- data/generated/google/apis/container_v1/service.rb +161 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +18 -6
- data/generated/google/apis/content_v2/representations.rb +1 -0
- data/generated/google/apis/customsearch_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1.rb +2 -11
- data/generated/google/apis/dataproc_v1/classes.rb +0 -19
- data/generated/google/apis/dataproc_v1/representations.rb +0 -13
- data/generated/google/apis/dataproc_v1/service.rb +8 -87
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/dfareporting_v2_3.rb +1 -1
- data/generated/google/apis/dfareporting_v2_3/classes.rb +41 -32
- data/generated/google/apis/discovery_v1.rb +2 -2
- data/generated/google/apis/discovery_v1/service.rb +2 -2
- data/generated/google/apis/dns_v1.rb +2 -3
- data/generated/google/apis/dns_v1/service.rb +1 -2
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +3 -2
- data/generated/google/apis/drive_v2/service.rb +2 -1
- data/generated/google/apis/drive_v3.rb +3 -2
- data/generated/google/apis/drive_v3/service.rb +2 -1
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_management_v1management/classes.rb +34 -0
- data/generated/google/apis/games_management_v1management/representations.rb +16 -0
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/classes.rb +34 -0
- data/generated/google/apis/games_v1/representations.rb +16 -0
- data/generated/google/apis/games_v1/service.rb +212 -53
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +18 -0
- data/generated/google/apis/genomics_v1/representations.rb +3 -0
- data/generated/google/apis/genomics_v1/service.rb +2 -2
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +19 -7
- data/generated/google/apis/identitytoolkit_v3/representations.rb +3 -1
- data/generated/google/apis/mybusiness_v3.rb +32 -0
- data/generated/google/apis/mybusiness_v3/classes.rb +1864 -0
- data/generated/google/apis/mybusiness_v3/representations.rb +741 -0
- data/generated/google/apis/mybusiness_v3/service.rb +960 -0
- data/generated/google/apis/pagespeedonline_v2.rb +1 -1
- data/generated/google/apis/plus_domains_v1.rb +2 -2
- data/generated/google/apis/plus_domains_v1/service.rb +1 -1
- data/generated/google/apis/plus_v1.rb +2 -2
- data/generated/google/apis/plus_v1/service.rb +1 -1
- data/generated/google/apis/prediction_v1_6.rb +4 -1
- data/generated/google/apis/proximitybeacon_v1beta1.rb +5 -2
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +169 -22
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +36 -1
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +254 -39
- data/generated/google/apis/replicapool_v1beta2.rb +3 -3
- data/generated/google/apis/replicapool_v1beta2/service.rb +2 -2
- data/generated/google/apis/resourceviews_v1beta2.rb +1 -1
- data/generated/google/apis/script_v1.rb +6 -3
- data/generated/google/apis/script_v1/service.rb +2 -2
- data/generated/google/apis/sheets_v4.rb +43 -0
- data/generated/google/apis/sheets_v4/classes.rb +5425 -0
- data/generated/google/apis/sheets_v4/representations.rb +2070 -0
- data/generated/google/apis/sheets_v4/service.rb +402 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +19 -4
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +3 -0
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +2 -1
- data/generated/google/apis/taskqueue_v1beta2.rb +2 -2
- data/generated/google/apis/taskqueue_v1beta2/service.rb +1 -1
- data/generated/google/apis/vision_v1.rb +4 -5
- data/generated/google/apis/vision_v1/classes.rb +69 -68
- data/generated/google/apis/vision_v1/representations.rb +13 -13
- data/generated/google/apis/vision_v1/service.rb +3 -4
- data/generated/google/apis/youtube_analytics_v1.rb +2 -2
- data/generated/google/apis/youtube_analytics_v1/service.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +121 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +50 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +40 -0
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +24 -0
- data/generated/google/apis/youtube_v3/representations.rb +4 -0
- data/generated/google/apis/youtubereporting_v1.rb +3 -3
- data/generated/google/apis/youtubereporting_v1/classes.rb +19 -0
- data/generated/google/apis/youtubereporting_v1/representations.rb +3 -0
- data/generated/google/apis/youtubereporting_v1/service.rb +3 -4
- data/lib/google/apis/version.rb +1 -1
- metadata +14 -2
@@ -20,8 +20,8 @@ module Google
|
|
20
20
|
module Apis
|
21
21
|
# APIs Discovery Service
|
22
22
|
#
|
23
|
-
#
|
24
|
-
#
|
23
|
+
# Provides information about other Google APIs, such as what APIs are available,
|
24
|
+
# the resource, and method details for each API.
|
25
25
|
#
|
26
26
|
# @see https://developers.google.com/discovery/
|
27
27
|
module DiscoveryV1
|
@@ -22,8 +22,8 @@ module Google
|
|
22
22
|
module DiscoveryV1
|
23
23
|
# APIs Discovery Service
|
24
24
|
#
|
25
|
-
#
|
26
|
-
#
|
25
|
+
# Provides information about other Google APIs, such as what APIs are available,
|
26
|
+
# the resource, and method details for each API.
|
27
27
|
#
|
28
28
|
# @example
|
29
29
|
# require 'google/apis/discovery_v1'
|
@@ -20,13 +20,12 @@ module Google
|
|
20
20
|
module Apis
|
21
21
|
# Google Cloud DNS API
|
22
22
|
#
|
23
|
-
#
|
24
|
-
# authoritative DNS records.
|
23
|
+
# Configures and serves authoritative DNS records.
|
25
24
|
#
|
26
25
|
# @see https://developers.google.com/cloud-dns
|
27
26
|
module DnsV1
|
28
27
|
VERSION = 'V1'
|
29
|
-
REVISION = '
|
28
|
+
REVISION = '20160513'
|
30
29
|
|
31
30
|
# View and manage your data across Google Cloud Platform services
|
32
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -22,8 +22,7 @@ module Google
|
|
22
22
|
module DnsV1
|
23
23
|
# Google Cloud DNS API
|
24
24
|
#
|
25
|
-
#
|
26
|
-
# authoritative DNS records.
|
25
|
+
# Configures and serves authoritative DNS records.
|
27
26
|
#
|
28
27
|
# @example
|
29
28
|
# require 'google/apis/dns_v1'
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://developers.google.com/doubleclick-search/
|
27
27
|
module DoubleclicksearchV2
|
28
28
|
VERSION = 'V2'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20160519'
|
30
30
|
|
31
31
|
# View and manage your advertising data in DoubleClick Search
|
32
32
|
AUTH_DOUBLECLICKSEARCH = 'https://www.googleapis.com/auth/doubleclicksearch'
|
@@ -20,12 +20,13 @@ module Google
|
|
20
20
|
module Apis
|
21
21
|
# Drive API
|
22
22
|
#
|
23
|
-
#
|
23
|
+
# Manages files in Drive including uploading, downloading, searching, detecting
|
24
|
+
# changes, and updating sharing permissions.
|
24
25
|
#
|
25
26
|
# @see https://developers.google.com/drive/
|
26
27
|
module DriveV2
|
27
28
|
VERSION = 'V2'
|
28
|
-
REVISION = '
|
29
|
+
REVISION = '20160520'
|
29
30
|
|
30
31
|
# View and manage the files in your Google Drive
|
31
32
|
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
|
@@ -22,7 +22,8 @@ module Google
|
|
22
22
|
module DriveV2
|
23
23
|
# Drive API
|
24
24
|
#
|
25
|
-
#
|
25
|
+
# Manages files in Drive including uploading, downloading, searching, detecting
|
26
|
+
# changes, and updating sharing permissions.
|
26
27
|
#
|
27
28
|
# @example
|
28
29
|
# require 'google/apis/drive_v2'
|
@@ -20,12 +20,13 @@ module Google
|
|
20
20
|
module Apis
|
21
21
|
# Drive API
|
22
22
|
#
|
23
|
-
#
|
23
|
+
# Manages files in Drive including uploading, downloading, searching, detecting
|
24
|
+
# changes, and updating sharing permissions.
|
24
25
|
#
|
25
26
|
# @see https://developers.google.com/drive/
|
26
27
|
module DriveV3
|
27
28
|
VERSION = 'V3'
|
28
|
-
REVISION = '
|
29
|
+
REVISION = '20160520'
|
29
30
|
|
30
31
|
# View and manage the files in your Google Drive
|
31
32
|
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
|
@@ -22,7 +22,8 @@ module Google
|
|
22
22
|
module DriveV3
|
23
23
|
# Drive API
|
24
24
|
#
|
25
|
-
#
|
25
|
+
# Manages files in Drive including uploading, downloading, searching, detecting
|
26
|
+
# changes, and updating sharing permissions.
|
26
27
|
#
|
27
28
|
# @example
|
28
29
|
# require 'google/apis/drive_v3'
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/games/services
|
26
26
|
module GamesConfigurationV1configuration
|
27
27
|
VERSION = 'V1configuration'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20160519'
|
29
29
|
|
30
30
|
# View and manage your Google Play Developer account
|
31
31
|
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/games/services
|
26
26
|
module GamesManagementV1management
|
27
27
|
VERSION = 'V1management'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20160519'
|
29
29
|
|
30
30
|
# Share your Google+ profile information and view and manage your game activity
|
31
31
|
AUTH_GAMES = 'https://www.googleapis.com/auth/games'
|
@@ -364,6 +364,11 @@ module Google
|
|
364
364
|
# @return [String]
|
365
365
|
attr_accessor :player_id
|
366
366
|
|
367
|
+
# This is a JSON template for profile settings
|
368
|
+
# Corresponds to the JSON property `profileSettings`
|
369
|
+
# @return [Google::Apis::GamesManagementV1management::ProfileSettings]
|
370
|
+
attr_accessor :profile_settings
|
371
|
+
|
367
372
|
# The player's title rewarded for their game activities.
|
368
373
|
# Corresponds to the JSON property `title`
|
369
374
|
# @return [String]
|
@@ -385,6 +390,7 @@ module Google
|
|
385
390
|
@name = args[:name] if args.key?(:name)
|
386
391
|
@original_player_id = args[:original_player_id] if args.key?(:original_player_id)
|
387
392
|
@player_id = args[:player_id] if args.key?(:player_id)
|
393
|
+
@profile_settings = args[:profile_settings] if args.key?(:profile_settings)
|
388
394
|
@title = args[:title] if args.key?(:title)
|
389
395
|
end
|
390
396
|
|
@@ -477,6 +483,34 @@ module Google
|
|
477
483
|
end
|
478
484
|
end
|
479
485
|
|
486
|
+
# This is a JSON template for profile settings
|
487
|
+
class ProfileSettings
|
488
|
+
include Google::Apis::Core::Hashable
|
489
|
+
|
490
|
+
# Uniquely identifies the type of this resource. Value is always the fixed
|
491
|
+
# string gamesManagement#profileSettings.
|
492
|
+
# Corresponds to the JSON property `kind`
|
493
|
+
# @return [String]
|
494
|
+
attr_accessor :kind
|
495
|
+
|
496
|
+
# The player's current profile visibility. This field is visible to both 1P and
|
497
|
+
# 3P APIs.
|
498
|
+
# Corresponds to the JSON property `profileVisible`
|
499
|
+
# @return [Boolean]
|
500
|
+
attr_accessor :profile_visible
|
501
|
+
alias_method :profile_visible?, :profile_visible
|
502
|
+
|
503
|
+
def initialize(**args)
|
504
|
+
update!(**args)
|
505
|
+
end
|
506
|
+
|
507
|
+
# Update properties of this object
|
508
|
+
def update!(**args)
|
509
|
+
@kind = args[:kind] if args.key?(:kind)
|
510
|
+
@profile_visible = args[:profile_visible] if args.key?(:profile_visible)
|
511
|
+
end
|
512
|
+
end
|
513
|
+
|
480
514
|
# This is a JSON template for multiple quests reset all request.
|
481
515
|
class QuestsResetMultipleForAllRequest
|
482
516
|
include Google::Apis::Core::Hashable
|
@@ -100,6 +100,12 @@ module Google
|
|
100
100
|
include Google::Apis::Core::JsonObjectSupport
|
101
101
|
end
|
102
102
|
|
103
|
+
class ProfileSettings
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
103
109
|
class QuestsResetMultipleForAllRequest
|
104
110
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
111
|
|
@@ -212,6 +218,8 @@ module Google
|
|
212
218
|
|
213
219
|
property :original_player_id, as: 'originalPlayerId'
|
214
220
|
property :player_id, as: 'playerId'
|
221
|
+
property :profile_settings, as: 'profileSettings', class: Google::Apis::GamesManagementV1management::ProfileSettings, decorator: Google::Apis::GamesManagementV1management::ProfileSettings::Representation
|
222
|
+
|
215
223
|
property :title, as: 'title'
|
216
224
|
end
|
217
225
|
|
@@ -242,6 +250,14 @@ module Google
|
|
242
250
|
end
|
243
251
|
end
|
244
252
|
|
253
|
+
class ProfileSettings
|
254
|
+
# @private
|
255
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
256
|
+
property :kind, as: 'kind'
|
257
|
+
property :profile_visible, as: 'profileVisible'
|
258
|
+
end
|
259
|
+
end
|
260
|
+
|
245
261
|
class QuestsResetMultipleForAllRequest
|
246
262
|
# @private
|
247
263
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -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 = '20160519'
|
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'
|
@@ -2038,6 +2038,11 @@ module Google
|
|
2038
2038
|
# @return [String]
|
2039
2039
|
attr_accessor :player_id
|
2040
2040
|
|
2041
|
+
# This is a JSON template for profile settings
|
2042
|
+
# Corresponds to the JSON property `profileSettings`
|
2043
|
+
# @return [Google::Apis::GamesV1::ProfileSettings]
|
2044
|
+
attr_accessor :profile_settings
|
2045
|
+
|
2041
2046
|
# The player's title rewarded for their game activities.
|
2042
2047
|
# Corresponds to the JSON property `title`
|
2043
2048
|
# @return [String]
|
@@ -2059,6 +2064,7 @@ module Google
|
|
2059
2064
|
@name = args[:name] if args.key?(:name)
|
2060
2065
|
@original_player_id = args[:original_player_id] if args.key?(:original_player_id)
|
2061
2066
|
@player_id = args[:player_id] if args.key?(:player_id)
|
2067
|
+
@profile_settings = args[:profile_settings] if args.key?(:profile_settings)
|
2062
2068
|
@title = args[:title] if args.key?(:title)
|
2063
2069
|
end
|
2064
2070
|
|
@@ -2646,6 +2652,34 @@ module Google
|
|
2646
2652
|
end
|
2647
2653
|
end
|
2648
2654
|
|
2655
|
+
# This is a JSON template for profile settings
|
2656
|
+
class ProfileSettings
|
2657
|
+
include Google::Apis::Core::Hashable
|
2658
|
+
|
2659
|
+
# Uniquely identifies the type of this resource. Value is always the fixed
|
2660
|
+
# string games#profileSettings.
|
2661
|
+
# Corresponds to the JSON property `kind`
|
2662
|
+
# @return [String]
|
2663
|
+
attr_accessor :kind
|
2664
|
+
|
2665
|
+
# The player's current profile visibility. This field is visible to both 1P and
|
2666
|
+
# 3P APIs.
|
2667
|
+
# Corresponds to the JSON property `profileVisible`
|
2668
|
+
# @return [Boolean]
|
2669
|
+
attr_accessor :profile_visible
|
2670
|
+
alias_method :profile_visible?, :profile_visible
|
2671
|
+
|
2672
|
+
def initialize(**args)
|
2673
|
+
update!(**args)
|
2674
|
+
end
|
2675
|
+
|
2676
|
+
# Update properties of this object
|
2677
|
+
def update!(**args)
|
2678
|
+
@kind = args[:kind] if args.key?(:kind)
|
2679
|
+
@profile_visible = args[:profile_visible] if args.key?(:profile_visible)
|
2680
|
+
end
|
2681
|
+
end
|
2682
|
+
|
2649
2683
|
# This is a JSON template for a push token resource.
|
2650
2684
|
class PushToken
|
2651
2685
|
include Google::Apis::Core::Hashable
|
@@ -382,6 +382,12 @@ module Google
|
|
382
382
|
include Google::Apis::Core::JsonObjectSupport
|
383
383
|
end
|
384
384
|
|
385
|
+
class ProfileSettings
|
386
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
387
|
+
|
388
|
+
include Google::Apis::Core::JsonObjectSupport
|
389
|
+
end
|
390
|
+
|
385
391
|
class PushToken
|
386
392
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
387
393
|
|
@@ -1135,6 +1141,8 @@ module Google
|
|
1135
1141
|
|
1136
1142
|
property :original_player_id, as: 'originalPlayerId'
|
1137
1143
|
property :player_id, as: 'playerId'
|
1144
|
+
property :profile_settings, as: 'profileSettings', class: Google::Apis::GamesV1::ProfileSettings, decorator: Google::Apis::GamesV1::ProfileSettings::Representation
|
1145
|
+
|
1138
1146
|
property :title, as: 'title'
|
1139
1147
|
end
|
1140
1148
|
|
@@ -1295,6 +1303,14 @@ module Google
|
|
1295
1303
|
end
|
1296
1304
|
end
|
1297
1305
|
|
1306
|
+
class ProfileSettings
|
1307
|
+
# @private
|
1308
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1309
|
+
property :kind, as: 'kind'
|
1310
|
+
property :profile_visible, as: 'profileVisible'
|
1311
|
+
end
|
1312
|
+
end
|
1313
|
+
|
1298
1314
|
class PushToken
|
1299
1315
|
# @private
|
1300
1316
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -53,6 +53,8 @@ module Google
|
|
53
53
|
end
|
54
54
|
|
55
55
|
# Lists all the achievement definitions for your application.
|
56
|
+
# @param [String] consistency_token
|
57
|
+
# The last-seen mutation timestamp.
|
56
58
|
# @param [String] language
|
57
59
|
# The preferred language to use for strings returned by this method.
|
58
60
|
# @param [Fixnum] max_results
|
@@ -82,10 +84,11 @@ module Google
|
|
82
84
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
83
85
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
84
86
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
85
|
-
def list_achievement_definitions(language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
87
|
+
def list_achievement_definitions(consistency_token: nil, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
86
88
|
command = make_simple_command(:get, 'achievements', options)
|
87
89
|
command.response_representation = Google::Apis::GamesV1::ListAchievementDefinitionsResponse::Representation
|
88
90
|
command.response_class = Google::Apis::GamesV1::ListAchievementDefinitionsResponse
|
91
|
+
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
89
92
|
command.query['language'] = language unless language.nil?
|
90
93
|
command.query['maxResults'] = max_results unless max_results.nil?
|
91
94
|
command.query['pageToken'] = page_token unless page_token.nil?
|
@@ -101,6 +104,8 @@ module Google
|
|
101
104
|
# The ID of the achievement used by this method.
|
102
105
|
# @param [Fixnum] steps_to_increment
|
103
106
|
# The number of steps to increment.
|
107
|
+
# @param [String] consistency_token
|
108
|
+
# The last-seen mutation timestamp.
|
104
109
|
# @param [String] request_id
|
105
110
|
# A randomly generated numeric ID for each request specified by the caller. This
|
106
111
|
# number is used at the server to ensure that the request is handled correctly
|
@@ -126,11 +131,12 @@ module Google
|
|
126
131
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
127
132
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
128
133
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
129
|
-
def increment_achievement(achievement_id, steps_to_increment, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
134
|
+
def increment_achievement(achievement_id, steps_to_increment, consistency_token: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
130
135
|
command = make_simple_command(:post, 'achievements/{achievementId}/increment', options)
|
131
136
|
command.response_representation = Google::Apis::GamesV1::AchievementIncrementResponse::Representation
|
132
137
|
command.response_class = Google::Apis::GamesV1::AchievementIncrementResponse
|
133
138
|
command.params['achievementId'] = achievement_id unless achievement_id.nil?
|
139
|
+
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
134
140
|
command.query['requestId'] = request_id unless request_id.nil?
|
135
141
|
command.query['stepsToIncrement'] = steps_to_increment unless steps_to_increment.nil?
|
136
142
|
command.query['fields'] = fields unless fields.nil?
|
@@ -144,6 +150,8 @@ module Google
|
|
144
150
|
# @param [String] player_id
|
145
151
|
# A player ID. A value of me may be used in place of the authenticated player's
|
146
152
|
# ID.
|
153
|
+
# @param [String] consistency_token
|
154
|
+
# The last-seen mutation timestamp.
|
147
155
|
# @param [String] language
|
148
156
|
# The preferred language to use for strings returned by this method.
|
149
157
|
# @param [Fixnum] max_results
|
@@ -176,11 +184,12 @@ module Google
|
|
176
184
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
177
185
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
178
186
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
179
|
-
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)
|
187
|
+
def list_achievements(player_id, consistency_token: nil, language: nil, max_results: nil, page_token: nil, state: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
180
188
|
command = make_simple_command(:get, 'players/{playerId}/achievements', options)
|
181
189
|
command.response_representation = Google::Apis::GamesV1::ListPlayerAchievementResponse::Representation
|
182
190
|
command.response_class = Google::Apis::GamesV1::ListPlayerAchievementResponse
|
183
191
|
command.params['playerId'] = player_id unless player_id.nil?
|
192
|
+
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
184
193
|
command.query['language'] = language unless language.nil?
|
185
194
|
command.query['maxResults'] = max_results unless max_results.nil?
|
186
195
|
command.query['pageToken'] = page_token unless page_token.nil?
|
@@ -195,6 +204,8 @@ module Google
|
|
195
204
|
# currently authenticated player.
|
196
205
|
# @param [String] achievement_id
|
197
206
|
# The ID of the achievement used by this method.
|
207
|
+
# @param [String] consistency_token
|
208
|
+
# The last-seen mutation timestamp.
|
198
209
|
# @param [String] fields
|
199
210
|
# Selector specifying which fields to include in a partial response.
|
200
211
|
# @param [String] quota_user
|
@@ -216,11 +227,12 @@ module Google
|
|
216
227
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
217
228
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
218
229
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
219
|
-
def reveal_achievement(achievement_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
230
|
+
def reveal_achievement(achievement_id, consistency_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
220
231
|
command = make_simple_command(:post, 'achievements/{achievementId}/reveal', options)
|
221
232
|
command.response_representation = Google::Apis::GamesV1::AchievementRevealResponse::Representation
|
222
233
|
command.response_class = Google::Apis::GamesV1::AchievementRevealResponse
|
223
234
|
command.params['achievementId'] = achievement_id unless achievement_id.nil?
|
235
|
+
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
224
236
|
command.query['fields'] = fields unless fields.nil?
|
225
237
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
226
238
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
@@ -235,6 +247,8 @@ module Google
|
|
235
247
|
# The ID of the achievement used by this method.
|
236
248
|
# @param [Fixnum] steps
|
237
249
|
# The minimum value to set the steps to.
|
250
|
+
# @param [String] consistency_token
|
251
|
+
# The last-seen mutation timestamp.
|
238
252
|
# @param [String] fields
|
239
253
|
# Selector specifying which fields to include in a partial response.
|
240
254
|
# @param [String] quota_user
|
@@ -256,11 +270,12 @@ module Google
|
|
256
270
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
257
271
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
258
272
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
259
|
-
def set_achievement_steps_at_least(achievement_id, steps, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
273
|
+
def set_achievement_steps_at_least(achievement_id, steps, consistency_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
260
274
|
command = make_simple_command(:post, 'achievements/{achievementId}/setStepsAtLeast', options)
|
261
275
|
command.response_representation = Google::Apis::GamesV1::AchievementSetStepsAtLeastResponse::Representation
|
262
276
|
command.response_class = Google::Apis::GamesV1::AchievementSetStepsAtLeastResponse
|
263
277
|
command.params['achievementId'] = achievement_id unless achievement_id.nil?
|
278
|
+
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
264
279
|
command.query['steps'] = steps unless steps.nil?
|
265
280
|
command.query['fields'] = fields unless fields.nil?
|
266
281
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -271,6 +286,8 @@ module Google
|
|
271
286
|
# Unlocks this achievement for the currently authenticated player.
|
272
287
|
# @param [String] achievement_id
|
273
288
|
# The ID of the achievement used by this method.
|
289
|
+
# @param [String] consistency_token
|
290
|
+
# The last-seen mutation timestamp.
|
274
291
|
# @param [String] fields
|
275
292
|
# Selector specifying which fields to include in a partial response.
|
276
293
|
# @param [String] quota_user
|
@@ -292,11 +309,12 @@ module Google
|
|
292
309
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
293
310
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
294
311
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
295
|
-
def unlock_achievement(achievement_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
312
|
+
def unlock_achievement(achievement_id, consistency_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
296
313
|
command = make_simple_command(:post, 'achievements/{achievementId}/unlock', options)
|
297
314
|
command.response_representation = Google::Apis::GamesV1::AchievementUnlockResponse::Representation
|
298
315
|
command.response_class = Google::Apis::GamesV1::AchievementUnlockResponse
|
299
316
|
command.params['achievementId'] = achievement_id unless achievement_id.nil?
|
317
|
+
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
300
318
|
command.query['fields'] = fields unless fields.nil?
|
301
319
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
302
320
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
@@ -305,6 +323,8 @@ module Google
|
|
305
323
|
|
306
324
|
# Updates multiple achievements for the currently authenticated player.
|
307
325
|
# @param [Google::Apis::GamesV1::AchievementUpdateMultipleRequest] achievement_update_multiple_request_object
|
326
|
+
# @param [String] consistency_token
|
327
|
+
# The last-seen mutation timestamp.
|
308
328
|
# @param [String] fields
|
309
329
|
# Selector specifying which fields to include in a partial response.
|
310
330
|
# @param [String] quota_user
|
@@ -326,12 +346,13 @@ module Google
|
|
326
346
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
327
347
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
328
348
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
329
|
-
def update_multiple_achievements(achievement_update_multiple_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
349
|
+
def update_multiple_achievements(achievement_update_multiple_request_object = nil, consistency_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
330
350
|
command = make_simple_command(:post, 'achievements/updateMultiple', options)
|
331
351
|
command.request_representation = Google::Apis::GamesV1::AchievementUpdateMultipleRequest::Representation
|
332
352
|
command.request_object = achievement_update_multiple_request_object
|
333
353
|
command.response_representation = Google::Apis::GamesV1::AchievementUpdateMultipleResponse::Representation
|
334
354
|
command.response_class = Google::Apis::GamesV1::AchievementUpdateMultipleResponse
|
355
|
+
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
335
356
|
command.query['fields'] = fields unless fields.nil?
|
336
357
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
337
358
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
@@ -343,6 +364,8 @@ module Google
|
|
343
364
|
# response will not include any instance data.
|
344
365
|
# @param [String] application_id
|
345
366
|
# The application ID from the Google Play developer console.
|
367
|
+
# @param [String] consistency_token
|
368
|
+
# The last-seen mutation timestamp.
|
346
369
|
# @param [String] language
|
347
370
|
# The preferred language to use for strings returned by this method.
|
348
371
|
# @param [String] platform_type
|
@@ -368,11 +391,12 @@ module Google
|
|
368
391
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
369
392
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
370
393
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
371
|
-
def get_application(application_id, language: nil, platform_type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
394
|
+
def get_application(application_id, consistency_token: nil, language: nil, platform_type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
372
395
|
command = make_simple_command(:get, 'applications/{applicationId}', options)
|
373
396
|
command.response_representation = Google::Apis::GamesV1::Application::Representation
|
374
397
|
command.response_class = Google::Apis::GamesV1::Application
|
375
398
|
command.params['applicationId'] = application_id unless application_id.nil?
|
399
|
+
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
376
400
|
command.query['language'] = language unless language.nil?
|
377
401
|
command.query['platformType'] = platform_type unless platform_type.nil?
|
378
402
|
command.query['fields'] = fields unless fields.nil?
|
@@ -382,6 +406,8 @@ module Google
|
|
382
406
|
end
|
383
407
|
|
384
408
|
# Indicate that the the currently authenticated user is playing your application.
|
409
|
+
# @param [String] consistency_token
|
410
|
+
# The last-seen mutation timestamp.
|
385
411
|
# @param [String] fields
|
386
412
|
# Selector specifying which fields to include in a partial response.
|
387
413
|
# @param [String] quota_user
|
@@ -403,8 +429,9 @@ module Google
|
|
403
429
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
404
430
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
405
431
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
406
|
-
def played_application(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
432
|
+
def played_application(consistency_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
407
433
|
command = make_simple_command(:post, 'applications/played', options)
|
434
|
+
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
408
435
|
command.query['fields'] = fields unless fields.nil?
|
409
436
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
410
437
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
@@ -415,6 +442,8 @@ module Google
|
|
415
442
|
# the specified ID, and returns the ID of the player it was granted for.
|
416
443
|
# @param [String] application_id
|
417
444
|
# The application ID from the Google Play developer console.
|
445
|
+
# @param [String] consistency_token
|
446
|
+
# The last-seen mutation timestamp.
|
418
447
|
# @param [String] fields
|
419
448
|
# Selector specifying which fields to include in a partial response.
|
420
449
|
# @param [String] quota_user
|
@@ -436,11 +465,12 @@ module Google
|
|
436
465
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
437
466
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
438
467
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
439
|
-
def verify_application(application_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
468
|
+
def verify_application(application_id, consistency_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
440
469
|
command = make_simple_command(:get, 'applications/{applicationId}/verify', options)
|
441
470
|
command.response_representation = Google::Apis::GamesV1::ApplicationVerifyResponse::Representation
|
442
471
|
command.response_class = Google::Apis::GamesV1::ApplicationVerifyResponse
|
443
472
|
command.params['applicationId'] = application_id unless application_id.nil?
|
473
|
+
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
444
474
|
command.query['fields'] = fields unless fields.nil?
|
445
475
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
446
476
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
@@ -449,6 +479,8 @@ module Google
|
|
449
479
|
|
450
480
|
# Returns a list showing the current progress on events in this application for
|
451
481
|
# the currently authenticated user.
|
482
|
+
# @param [String] consistency_token
|
483
|
+
# The last-seen mutation timestamp.
|
452
484
|
# @param [String] language
|
453
485
|
# The preferred language to use for strings returned by this method.
|
454
486
|
# @param [Fixnum] max_results
|
@@ -478,10 +510,11 @@ module Google
|
|
478
510
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
479
511
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
480
512
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
481
|
-
def list_event_by_player(language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
513
|
+
def list_event_by_player(consistency_token: nil, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
482
514
|
command = make_simple_command(:get, 'events', options)
|
483
515
|
command.response_representation = Google::Apis::GamesV1::ListPlayerEventResponse::Representation
|
484
516
|
command.response_class = Google::Apis::GamesV1::ListPlayerEventResponse
|
517
|
+
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
485
518
|
command.query['language'] = language unless language.nil?
|
486
519
|
command.query['maxResults'] = max_results unless max_results.nil?
|
487
520
|
command.query['pageToken'] = page_token unless page_token.nil?
|
@@ -492,6 +525,8 @@ module Google
|
|
492
525
|
end
|
493
526
|
|
494
527
|
# Returns a list of the event definitions in this application.
|
528
|
+
# @param [String] consistency_token
|
529
|
+
# The last-seen mutation timestamp.
|
495
530
|
# @param [String] language
|
496
531
|
# The preferred language to use for strings returned by this method.
|
497
532
|
# @param [Fixnum] max_results
|
@@ -521,10 +556,11 @@ module Google
|
|
521
556
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
522
557
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
523
558
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
524
|
-
def list_event_definitions(language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
559
|
+
def list_event_definitions(consistency_token: nil, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
525
560
|
command = make_simple_command(:get, 'eventDefinitions', options)
|
526
561
|
command.response_representation = Google::Apis::GamesV1::ListEventDefinitionResponse::Representation
|
527
562
|
command.response_class = Google::Apis::GamesV1::ListEventDefinitionResponse
|
563
|
+
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
528
564
|
command.query['language'] = language unless language.nil?
|
529
565
|
command.query['maxResults'] = max_results unless max_results.nil?
|
530
566
|
command.query['pageToken'] = page_token unless page_token.nil?
|
@@ -537,6 +573,8 @@ module Google
|
|
537
573
|
# Records a batch of changes to the number of times events have occurred for the
|
538
574
|
# currently authenticated user of this application.
|
539
575
|
# @param [Google::Apis::GamesV1::EventRecordRequest] event_record_request_object
|
576
|
+
# @param [String] consistency_token
|
577
|
+
# The last-seen mutation timestamp.
|
540
578
|
# @param [String] language
|
541
579
|
# The preferred language to use for strings returned by this method.
|
542
580
|
# @param [String] fields
|
@@ -560,12 +598,13 @@ module Google
|
|
560
598
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
561
599
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
562
600
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
563
|
-
def record_event(event_record_request_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
601
|
+
def record_event(event_record_request_object = nil, consistency_token: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
564
602
|
command = make_simple_command(:post, 'events', options)
|
565
603
|
command.request_representation = Google::Apis::GamesV1::EventRecordRequest::Representation
|
566
604
|
command.request_object = event_record_request_object
|
567
605
|
command.response_representation = Google::Apis::GamesV1::UpdateEventResponse::Representation
|
568
606
|
command.response_class = Google::Apis::GamesV1::UpdateEventResponse
|
607
|
+
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
569
608
|
command.query['language'] = language unless language.nil?
|
570
609
|
command.query['fields'] = fields unless fields.nil?
|
571
610
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -576,6 +615,8 @@ module Google
|
|
576
615
|
# Retrieves the metadata of the leaderboard with the given ID.
|
577
616
|
# @param [String] leaderboard_id
|
578
617
|
# The ID of the leaderboard.
|
618
|
+
# @param [String] consistency_token
|
619
|
+
# The last-seen mutation timestamp.
|
579
620
|
# @param [String] language
|
580
621
|
# The preferred language to use for strings returned by this method.
|
581
622
|
# @param [String] fields
|
@@ -599,11 +640,12 @@ module Google
|
|
599
640
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
600
641
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
601
642
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
602
|
-
def get_leaderboard(leaderboard_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
643
|
+
def get_leaderboard(leaderboard_id, consistency_token: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
603
644
|
command = make_simple_command(:get, 'leaderboards/{leaderboardId}', options)
|
604
645
|
command.response_representation = Google::Apis::GamesV1::Leaderboard::Representation
|
605
646
|
command.response_class = Google::Apis::GamesV1::Leaderboard
|
606
647
|
command.params['leaderboardId'] = leaderboard_id unless leaderboard_id.nil?
|
648
|
+
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
607
649
|
command.query['language'] = language unless language.nil?
|
608
650
|
command.query['fields'] = fields unless fields.nil?
|
609
651
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -612,6 +654,8 @@ module Google
|
|
612
654
|
end
|
613
655
|
|
614
656
|
# Lists all the leaderboard metadata for your application.
|
657
|
+
# @param [String] consistency_token
|
658
|
+
# The last-seen mutation timestamp.
|
615
659
|
# @param [String] language
|
616
660
|
# The preferred language to use for strings returned by this method.
|
617
661
|
# @param [Fixnum] max_results
|
@@ -641,10 +685,11 @@ module Google
|
|
641
685
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
642
686
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
643
687
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
644
|
-
def list_leaderboards(language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
688
|
+
def list_leaderboards(consistency_token: nil, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
645
689
|
command = make_simple_command(:get, 'leaderboards', options)
|
646
690
|
command.response_representation = Google::Apis::GamesV1::ListLeaderboardResponse::Representation
|
647
691
|
command.response_class = Google::Apis::GamesV1::ListLeaderboardResponse
|
692
|
+
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
648
693
|
command.query['language'] = language unless language.nil?
|
649
694
|
command.query['maxResults'] = max_results unless max_results.nil?
|
650
695
|
command.query['pageToken'] = page_token unless page_token.nil?
|
@@ -655,6 +700,8 @@ module Google
|
|
655
700
|
end
|
656
701
|
|
657
702
|
# Return the metagame configuration data for the calling application.
|
703
|
+
# @param [String] consistency_token
|
704
|
+
# The last-seen mutation timestamp.
|
658
705
|
# @param [String] fields
|
659
706
|
# Selector specifying which fields to include in a partial response.
|
660
707
|
# @param [String] quota_user
|
@@ -676,10 +723,11 @@ module Google
|
|
676
723
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
677
724
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
678
725
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
679
|
-
def get_metagame_config(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
726
|
+
def get_metagame_config(consistency_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
680
727
|
command = make_simple_command(:get, 'metagameConfig', options)
|
681
728
|
command.response_representation = Google::Apis::GamesV1::MetagameConfig::Representation
|
682
729
|
command.response_class = Google::Apis::GamesV1::MetagameConfig
|
730
|
+
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
683
731
|
command.query['fields'] = fields unless fields.nil?
|
684
732
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
685
733
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
@@ -693,6 +741,8 @@ module Google
|
|
693
741
|
# ID.
|
694
742
|
# @param [String] collection
|
695
743
|
# The collection of categories for which data will be returned.
|
744
|
+
# @param [String] consistency_token
|
745
|
+
# The last-seen mutation timestamp.
|
696
746
|
# @param [String] language
|
697
747
|
# The preferred language to use for strings returned by this method.
|
698
748
|
# @param [Fixnum] max_results
|
@@ -722,12 +772,13 @@ module Google
|
|
722
772
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
723
773
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
724
774
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
725
|
-
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)
|
775
|
+
def list_metagame_categories_by_player(player_id, collection, consistency_token: nil, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
726
776
|
command = make_simple_command(:get, 'players/{playerId}/categories/{collection}', options)
|
727
777
|
command.response_representation = Google::Apis::GamesV1::ListCategoryResponse::Representation
|
728
778
|
command.response_class = Google::Apis::GamesV1::ListCategoryResponse
|
729
779
|
command.params['playerId'] = player_id unless player_id.nil?
|
730
780
|
command.params['collection'] = collection unless collection.nil?
|
781
|
+
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
731
782
|
command.query['language'] = language unless language.nil?
|
732
783
|
command.query['maxResults'] = max_results unless max_results.nil?
|
733
784
|
command.query['pageToken'] = page_token unless page_token.nil?
|
@@ -742,6 +793,8 @@ module Google
|
|
742
793
|
# @param [String] player_id
|
743
794
|
# A player ID. A value of me may be used in place of the authenticated player's
|
744
795
|
# ID.
|
796
|
+
# @param [String] consistency_token
|
797
|
+
# The last-seen mutation timestamp.
|
745
798
|
# @param [String] language
|
746
799
|
# The preferred language to use for strings returned by this method.
|
747
800
|
# @param [String] fields
|
@@ -765,11 +818,12 @@ module Google
|
|
765
818
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
766
819
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
767
820
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
768
|
-
def get_player(player_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
821
|
+
def get_player(player_id, consistency_token: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
769
822
|
command = make_simple_command(:get, 'players/{playerId}', options)
|
770
823
|
command.response_representation = Google::Apis::GamesV1::Player::Representation
|
771
824
|
command.response_class = Google::Apis::GamesV1::Player
|
772
825
|
command.params['playerId'] = player_id unless player_id.nil?
|
826
|
+
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
773
827
|
command.query['language'] = language unless language.nil?
|
774
828
|
command.query['fields'] = fields unless fields.nil?
|
775
829
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -780,6 +834,8 @@ module Google
|
|
780
834
|
# Get the collection of players for the currently authenticated user.
|
781
835
|
# @param [String] collection
|
782
836
|
# Collection of players being retrieved
|
837
|
+
# @param [String] consistency_token
|
838
|
+
# The last-seen mutation timestamp.
|
783
839
|
# @param [String] language
|
784
840
|
# The preferred language to use for strings returned by this method.
|
785
841
|
# @param [Fixnum] max_results
|
@@ -809,11 +865,12 @@ module Google
|
|
809
865
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
810
866
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
811
867
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
812
|
-
def list_players(collection, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
868
|
+
def list_players(collection, consistency_token: nil, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
813
869
|
command = make_simple_command(:get, 'players/me/players/{collection}', options)
|
814
870
|
command.response_representation = Google::Apis::GamesV1::ListPlayerResponse::Representation
|
815
871
|
command.response_class = Google::Apis::GamesV1::ListPlayerResponse
|
816
872
|
command.params['collection'] = collection unless collection.nil?
|
873
|
+
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
817
874
|
command.query['language'] = language unless language.nil?
|
818
875
|
command.query['maxResults'] = max_results unless max_results.nil?
|
819
876
|
command.query['pageToken'] = page_token unless page_token.nil?
|
@@ -826,6 +883,8 @@ module Google
|
|
826
883
|
# Removes a push token for the current user and application. Removing a non-
|
827
884
|
# existent push token will report success.
|
828
885
|
# @param [Google::Apis::GamesV1::PushTokenId] push_token_id_object
|
886
|
+
# @param [String] consistency_token
|
887
|
+
# The last-seen mutation timestamp.
|
829
888
|
# @param [String] fields
|
830
889
|
# Selector specifying which fields to include in a partial response.
|
831
890
|
# @param [String] quota_user
|
@@ -847,10 +906,11 @@ module Google
|
|
847
906
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
848
907
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
849
908
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
850
|
-
def remove_pushtoken(push_token_id_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
909
|
+
def remove_pushtoken(push_token_id_object = nil, consistency_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
851
910
|
command = make_simple_command(:post, 'pushtokens/remove', options)
|
852
911
|
command.request_representation = Google::Apis::GamesV1::PushTokenId::Representation
|
853
912
|
command.request_object = push_token_id_object
|
913
|
+
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
854
914
|
command.query['fields'] = fields unless fields.nil?
|
855
915
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
856
916
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
@@ -859,6 +919,8 @@ module Google
|
|
859
919
|
|
860
920
|
# Registers a push token for the current user and application.
|
861
921
|
# @param [Google::Apis::GamesV1::PushToken] push_token_object
|
922
|
+
# @param [String] consistency_token
|
923
|
+
# The last-seen mutation timestamp.
|
862
924
|
# @param [String] fields
|
863
925
|
# Selector specifying which fields to include in a partial response.
|
864
926
|
# @param [String] quota_user
|
@@ -880,10 +942,11 @@ module Google
|
|
880
942
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
881
943
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
882
944
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
883
|
-
def update_pushtoken(push_token_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
945
|
+
def update_pushtoken(push_token_object = nil, consistency_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
884
946
|
command = make_simple_command(:put, 'pushtokens', options)
|
885
947
|
command.request_representation = Google::Apis::GamesV1::PushToken::Representation
|
886
948
|
command.request_object = push_token_object
|
949
|
+
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
887
950
|
command.query['fields'] = fields unless fields.nil?
|
888
951
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
889
952
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
@@ -900,6 +963,8 @@ module Google
|
|
900
963
|
# @param [String] request_id
|
901
964
|
# A numeric ID to ensure that the request is handled correctly across retries.
|
902
965
|
# Your client application must generate this ID randomly.
|
966
|
+
# @param [String] consistency_token
|
967
|
+
# The last-seen mutation timestamp.
|
903
968
|
# @param [String] fields
|
904
969
|
# Selector specifying which fields to include in a partial response.
|
905
970
|
# @param [String] quota_user
|
@@ -921,10 +986,11 @@ module Google
|
|
921
986
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
922
987
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
923
988
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
924
|
-
def claim_quest_milestone(quest_id, milestone_id, request_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
989
|
+
def claim_quest_milestone(quest_id, milestone_id, request_id, consistency_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
925
990
|
command = make_simple_command(:put, 'quests/{questId}/milestones/{milestoneId}/claim', options)
|
926
991
|
command.params['questId'] = quest_id unless quest_id.nil?
|
927
992
|
command.params['milestoneId'] = milestone_id unless milestone_id.nil?
|
993
|
+
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
928
994
|
command.query['requestId'] = request_id unless request_id.nil?
|
929
995
|
command.query['fields'] = fields unless fields.nil?
|
930
996
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -935,6 +1001,8 @@ module Google
|
|
935
1001
|
# Indicates that the currently authorized user will participate in the quest.
|
936
1002
|
# @param [String] quest_id
|
937
1003
|
# The ID of the quest.
|
1004
|
+
# @param [String] consistency_token
|
1005
|
+
# The last-seen mutation timestamp.
|
938
1006
|
# @param [String] language
|
939
1007
|
# The preferred language to use for strings returned by this method.
|
940
1008
|
# @param [String] fields
|
@@ -958,11 +1026,12 @@ module Google
|
|
958
1026
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
959
1027
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
960
1028
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
961
|
-
def accept_quest(quest_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1029
|
+
def accept_quest(quest_id, consistency_token: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
962
1030
|
command = make_simple_command(:post, 'quests/{questId}/accept', options)
|
963
1031
|
command.response_representation = Google::Apis::GamesV1::Quest::Representation
|
964
1032
|
command.response_class = Google::Apis::GamesV1::Quest
|
965
1033
|
command.params['questId'] = quest_id unless quest_id.nil?
|
1034
|
+
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
966
1035
|
command.query['language'] = language unless language.nil?
|
967
1036
|
command.query['fields'] = fields unless fields.nil?
|
968
1037
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -975,6 +1044,8 @@ module Google
|
|
975
1044
|
# @param [String] player_id
|
976
1045
|
# A player ID. A value of me may be used in place of the authenticated player's
|
977
1046
|
# ID.
|
1047
|
+
# @param [String] consistency_token
|
1048
|
+
# The last-seen mutation timestamp.
|
978
1049
|
# @param [String] language
|
979
1050
|
# The preferred language to use for strings returned by this method.
|
980
1051
|
# @param [Fixnum] max_results
|
@@ -1005,11 +1076,12 @@ module Google
|
|
1005
1076
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1006
1077
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1007
1078
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1008
|
-
def list_quests(player_id, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1079
|
+
def list_quests(player_id, consistency_token: nil, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1009
1080
|
command = make_simple_command(:get, 'players/{playerId}/quests', options)
|
1010
1081
|
command.response_representation = Google::Apis::GamesV1::ListQuestResponse::Representation
|
1011
1082
|
command.response_class = Google::Apis::GamesV1::ListQuestResponse
|
1012
1083
|
command.params['playerId'] = player_id unless player_id.nil?
|
1084
|
+
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
1013
1085
|
command.query['language'] = language unless language.nil?
|
1014
1086
|
command.query['maxResults'] = max_results unless max_results.nil?
|
1015
1087
|
command.query['pageToken'] = page_token unless page_token.nil?
|
@@ -1027,6 +1099,8 @@ module Google
|
|
1027
1099
|
# - "ANDROID" - Client is running the Android SDK.
|
1028
1100
|
# - "IOS" - Client is running the iOS SDK.
|
1029
1101
|
# - "WEB_APP" - Client is running as a Web App.
|
1102
|
+
# @param [String] consistency_token
|
1103
|
+
# The last-seen mutation timestamp.
|
1030
1104
|
# @param [String] fields
|
1031
1105
|
# Selector specifying which fields to include in a partial response.
|
1032
1106
|
# @param [String] quota_user
|
@@ -1048,11 +1122,12 @@ module Google
|
|
1048
1122
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1049
1123
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1050
1124
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1051
|
-
def check_revision(client_revision, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1125
|
+
def check_revision(client_revision, consistency_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1052
1126
|
command = make_simple_command(:get, 'revisions/check', options)
|
1053
1127
|
command.response_representation = Google::Apis::GamesV1::CheckRevisionResponse::Representation
|
1054
1128
|
command.response_class = Google::Apis::GamesV1::CheckRevisionResponse
|
1055
1129
|
command.query['clientRevision'] = client_revision unless client_revision.nil?
|
1130
|
+
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
1056
1131
|
command.query['fields'] = fields unless fields.nil?
|
1057
1132
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1058
1133
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
@@ -1062,6 +1137,8 @@ module Google
|
|
1062
1137
|
# Create a room. For internal use by the Games SDK only. Calling this method
|
1063
1138
|
# directly is unsupported.
|
1064
1139
|
# @param [Google::Apis::GamesV1::CreateRoomRequest] create_room_request_object
|
1140
|
+
# @param [String] consistency_token
|
1141
|
+
# The last-seen mutation timestamp.
|
1065
1142
|
# @param [String] language
|
1066
1143
|
# The preferred language to use for strings returned by this method.
|
1067
1144
|
# @param [String] fields
|
@@ -1085,12 +1162,13 @@ module Google
|
|
1085
1162
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1086
1163
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1087
1164
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1088
|
-
def create_room(create_room_request_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1165
|
+
def create_room(create_room_request_object = nil, consistency_token: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1089
1166
|
command = make_simple_command(:post, 'rooms/create', options)
|
1090
1167
|
command.request_representation = Google::Apis::GamesV1::CreateRoomRequest::Representation
|
1091
1168
|
command.request_object = create_room_request_object
|
1092
1169
|
command.response_representation = Google::Apis::GamesV1::Room::Representation
|
1093
1170
|
command.response_class = Google::Apis::GamesV1::Room
|
1171
|
+
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
1094
1172
|
command.query['language'] = language unless language.nil?
|
1095
1173
|
command.query['fields'] = fields unless fields.nil?
|
1096
1174
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -1102,6 +1180,8 @@ module Google
|
|
1102
1180
|
# Calling this method directly is unsupported.
|
1103
1181
|
# @param [String] room_id
|
1104
1182
|
# The ID of the room.
|
1183
|
+
# @param [String] consistency_token
|
1184
|
+
# The last-seen mutation timestamp.
|
1105
1185
|
# @param [String] language
|
1106
1186
|
# The preferred language to use for strings returned by this method.
|
1107
1187
|
# @param [String] fields
|
@@ -1125,11 +1205,12 @@ module Google
|
|
1125
1205
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1126
1206
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1127
1207
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1128
|
-
def decline_room(room_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1208
|
+
def decline_room(room_id, consistency_token: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1129
1209
|
command = make_simple_command(:post, 'rooms/{roomId}/decline', options)
|
1130
1210
|
command.response_representation = Google::Apis::GamesV1::Room::Representation
|
1131
1211
|
command.response_class = Google::Apis::GamesV1::Room
|
1132
1212
|
command.params['roomId'] = room_id unless room_id.nil?
|
1213
|
+
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
1133
1214
|
command.query['language'] = language unless language.nil?
|
1134
1215
|
command.query['fields'] = fields unless fields.nil?
|
1135
1216
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -1141,6 +1222,8 @@ module Google
|
|
1141
1222
|
# Calling this method directly is unsupported.
|
1142
1223
|
# @param [String] room_id
|
1143
1224
|
# The ID of the room.
|
1225
|
+
# @param [String] consistency_token
|
1226
|
+
# The last-seen mutation timestamp.
|
1144
1227
|
# @param [String] fields
|
1145
1228
|
# Selector specifying which fields to include in a partial response.
|
1146
1229
|
# @param [String] quota_user
|
@@ -1162,9 +1245,10 @@ module Google
|
|
1162
1245
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1163
1246
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1164
1247
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1165
|
-
def dismiss_room(room_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1248
|
+
def dismiss_room(room_id, consistency_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1166
1249
|
command = make_simple_command(:post, 'rooms/{roomId}/dismiss', options)
|
1167
1250
|
command.params['roomId'] = room_id unless room_id.nil?
|
1251
|
+
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
1168
1252
|
command.query['fields'] = fields unless fields.nil?
|
1169
1253
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1170
1254
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
@@ -1174,6 +1258,8 @@ module Google
|
|
1174
1258
|
# Get the data for a room.
|
1175
1259
|
# @param [String] room_id
|
1176
1260
|
# The ID of the room.
|
1261
|
+
# @param [String] consistency_token
|
1262
|
+
# The last-seen mutation timestamp.
|
1177
1263
|
# @param [String] language
|
1178
1264
|
# The preferred language to use for strings returned by this method.
|
1179
1265
|
# @param [String] fields
|
@@ -1197,11 +1283,12 @@ module Google
|
|
1197
1283
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1198
1284
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1199
1285
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1200
|
-
def get_room(room_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1286
|
+
def get_room(room_id, consistency_token: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1201
1287
|
command = make_simple_command(:get, 'rooms/{roomId}', options)
|
1202
1288
|
command.response_representation = Google::Apis::GamesV1::Room::Representation
|
1203
1289
|
command.response_class = Google::Apis::GamesV1::Room
|
1204
1290
|
command.params['roomId'] = room_id unless room_id.nil?
|
1291
|
+
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
1205
1292
|
command.query['language'] = language unless language.nil?
|
1206
1293
|
command.query['fields'] = fields unless fields.nil?
|
1207
1294
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -1214,6 +1301,8 @@ module Google
|
|
1214
1301
|
# @param [String] room_id
|
1215
1302
|
# The ID of the room.
|
1216
1303
|
# @param [Google::Apis::GamesV1::JoinRoomRequest] join_room_request_object
|
1304
|
+
# @param [String] consistency_token
|
1305
|
+
# The last-seen mutation timestamp.
|
1217
1306
|
# @param [String] language
|
1218
1307
|
# The preferred language to use for strings returned by this method.
|
1219
1308
|
# @param [String] fields
|
@@ -1237,13 +1326,14 @@ module Google
|
|
1237
1326
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1238
1327
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1239
1328
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1240
|
-
def join_room(room_id, join_room_request_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1329
|
+
def join_room(room_id, join_room_request_object = nil, consistency_token: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1241
1330
|
command = make_simple_command(:post, 'rooms/{roomId}/join', options)
|
1242
1331
|
command.request_representation = Google::Apis::GamesV1::JoinRoomRequest::Representation
|
1243
1332
|
command.request_object = join_room_request_object
|
1244
1333
|
command.response_representation = Google::Apis::GamesV1::Room::Representation
|
1245
1334
|
command.response_class = Google::Apis::GamesV1::Room
|
1246
1335
|
command.params['roomId'] = room_id unless room_id.nil?
|
1336
|
+
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
1247
1337
|
command.query['language'] = language unless language.nil?
|
1248
1338
|
command.query['fields'] = fields unless fields.nil?
|
1249
1339
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -1256,6 +1346,8 @@ module Google
|
|
1256
1346
|
# @param [String] room_id
|
1257
1347
|
# The ID of the room.
|
1258
1348
|
# @param [Google::Apis::GamesV1::LeaveRoomRequest] leave_room_request_object
|
1349
|
+
# @param [String] consistency_token
|
1350
|
+
# The last-seen mutation timestamp.
|
1259
1351
|
# @param [String] language
|
1260
1352
|
# The preferred language to use for strings returned by this method.
|
1261
1353
|
# @param [String] fields
|
@@ -1279,13 +1371,14 @@ module Google
|
|
1279
1371
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1280
1372
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1281
1373
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1282
|
-
def leave_room(room_id, leave_room_request_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1374
|
+
def leave_room(room_id, leave_room_request_object = nil, consistency_token: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1283
1375
|
command = make_simple_command(:post, 'rooms/{roomId}/leave', options)
|
1284
1376
|
command.request_representation = Google::Apis::GamesV1::LeaveRoomRequest::Representation
|
1285
1377
|
command.request_object = leave_room_request_object
|
1286
1378
|
command.response_representation = Google::Apis::GamesV1::Room::Representation
|
1287
1379
|
command.response_class = Google::Apis::GamesV1::Room
|
1288
1380
|
command.params['roomId'] = room_id unless room_id.nil?
|
1381
|
+
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
1289
1382
|
command.query['language'] = language unless language.nil?
|
1290
1383
|
command.query['fields'] = fields unless fields.nil?
|
1291
1384
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -1294,6 +1387,8 @@ module Google
|
|
1294
1387
|
end
|
1295
1388
|
|
1296
1389
|
# Returns invitations to join rooms.
|
1390
|
+
# @param [String] consistency_token
|
1391
|
+
# The last-seen mutation timestamp.
|
1297
1392
|
# @param [String] language
|
1298
1393
|
# The preferred language to use for strings returned by this method.
|
1299
1394
|
# @param [Fixnum] max_results
|
@@ -1323,10 +1418,11 @@ module Google
|
|
1323
1418
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1324
1419
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1325
1420
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1326
|
-
def list_rooms(language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1421
|
+
def list_rooms(consistency_token: nil, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1327
1422
|
command = make_simple_command(:get, 'rooms', options)
|
1328
1423
|
command.response_representation = Google::Apis::GamesV1::RoomList::Representation
|
1329
1424
|
command.response_class = Google::Apis::GamesV1::RoomList
|
1425
|
+
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
1330
1426
|
command.query['language'] = language unless language.nil?
|
1331
1427
|
command.query['maxResults'] = max_results unless max_results.nil?
|
1332
1428
|
command.query['pageToken'] = page_token unless page_token.nil?
|
@@ -1341,6 +1437,8 @@ module Google
|
|
1341
1437
|
# @param [String] room_id
|
1342
1438
|
# The ID of the room.
|
1343
1439
|
# @param [Google::Apis::GamesV1::RoomP2PStatuses] room_p2_p_statuses_object
|
1440
|
+
# @param [String] consistency_token
|
1441
|
+
# The last-seen mutation timestamp.
|
1344
1442
|
# @param [String] language
|
1345
1443
|
# The preferred language to use for strings returned by this method.
|
1346
1444
|
# @param [String] fields
|
@@ -1364,13 +1462,14 @@ module Google
|
|
1364
1462
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1365
1463
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1366
1464
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1367
|
-
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)
|
1465
|
+
def report_room_status(room_id, room_p2_p_statuses_object = nil, consistency_token: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1368
1466
|
command = make_simple_command(:post, 'rooms/{roomId}/reportstatus', options)
|
1369
1467
|
command.request_representation = Google::Apis::GamesV1::RoomP2PStatuses::Representation
|
1370
1468
|
command.request_object = room_p2_p_statuses_object
|
1371
1469
|
command.response_representation = Google::Apis::GamesV1::RoomStatus::Representation
|
1372
1470
|
command.response_class = Google::Apis::GamesV1::RoomStatus
|
1373
1471
|
command.params['roomId'] = room_id unless room_id.nil?
|
1472
|
+
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
1374
1473
|
command.query['language'] = language unless language.nil?
|
1375
1474
|
command.query['fields'] = fields unless fields.nil?
|
1376
1475
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -1391,6 +1490,8 @@ module Google
|
|
1391
1490
|
# leaderboards for this application.
|
1392
1491
|
# @param [String] time_span
|
1393
1492
|
# The time span for the scores and ranks you're requesting.
|
1493
|
+
# @param [String] consistency_token
|
1494
|
+
# The last-seen mutation timestamp.
|
1394
1495
|
# @param [String] include_rank_type
|
1395
1496
|
# The types of ranks to return. If the parameter is omitted, no ranks will be
|
1396
1497
|
# returned.
|
@@ -1423,13 +1524,14 @@ module Google
|
|
1423
1524
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1424
1525
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1425
1526
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1426
|
-
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)
|
1527
|
+
def get_score(player_id, leaderboard_id, time_span, consistency_token: nil, include_rank_type: nil, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1427
1528
|
command = make_simple_command(:get, 'players/{playerId}/leaderboards/{leaderboardId}/scores/{timeSpan}', options)
|
1428
1529
|
command.response_representation = Google::Apis::GamesV1::ListPlayerLeaderboardScoreResponse::Representation
|
1429
1530
|
command.response_class = Google::Apis::GamesV1::ListPlayerLeaderboardScoreResponse
|
1430
1531
|
command.params['playerId'] = player_id unless player_id.nil?
|
1431
1532
|
command.params['leaderboardId'] = leaderboard_id unless leaderboard_id.nil?
|
1432
1533
|
command.params['timeSpan'] = time_span unless time_span.nil?
|
1534
|
+
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
1433
1535
|
command.query['includeRankType'] = include_rank_type unless include_rank_type.nil?
|
1434
1536
|
command.query['language'] = language unless language.nil?
|
1435
1537
|
command.query['maxResults'] = max_results unless max_results.nil?
|
@@ -1447,6 +1549,8 @@ module Google
|
|
1447
1549
|
# The collection of scores you're requesting.
|
1448
1550
|
# @param [String] time_span
|
1449
1551
|
# The time span for the scores and ranks you're requesting.
|
1552
|
+
# @param [String] consistency_token
|
1553
|
+
# The last-seen mutation timestamp.
|
1450
1554
|
# @param [String] language
|
1451
1555
|
# The preferred language to use for strings returned by this method.
|
1452
1556
|
# @param [Fixnum] max_results
|
@@ -1476,12 +1580,13 @@ module Google
|
|
1476
1580
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1477
1581
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1478
1582
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1479
|
-
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)
|
1583
|
+
def list_scores(leaderboard_id, collection, time_span, consistency_token: nil, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1480
1584
|
command = make_simple_command(:get, 'leaderboards/{leaderboardId}/scores/{collection}', options)
|
1481
1585
|
command.response_representation = Google::Apis::GamesV1::LeaderboardScores::Representation
|
1482
1586
|
command.response_class = Google::Apis::GamesV1::LeaderboardScores
|
1483
1587
|
command.params['leaderboardId'] = leaderboard_id unless leaderboard_id.nil?
|
1484
1588
|
command.params['collection'] = collection unless collection.nil?
|
1589
|
+
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
1485
1590
|
command.query['language'] = language unless language.nil?
|
1486
1591
|
command.query['maxResults'] = max_results unless max_results.nil?
|
1487
1592
|
command.query['pageToken'] = page_token unless page_token.nil?
|
@@ -1499,6 +1604,8 @@ module Google
|
|
1499
1604
|
# The collection of scores you're requesting.
|
1500
1605
|
# @param [String] time_span
|
1501
1606
|
# The time span for the scores and ranks you're requesting.
|
1607
|
+
# @param [String] consistency_token
|
1608
|
+
# The last-seen mutation timestamp.
|
1502
1609
|
# @param [String] language
|
1503
1610
|
# The preferred language to use for strings returned by this method.
|
1504
1611
|
# @param [Fixnum] max_results
|
@@ -1536,12 +1643,13 @@ module Google
|
|
1536
1643
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1537
1644
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1538
1645
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1539
|
-
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)
|
1646
|
+
def list_score_window(leaderboard_id, collection, time_span, consistency_token: nil, 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)
|
1540
1647
|
command = make_simple_command(:get, 'leaderboards/{leaderboardId}/window/{collection}', options)
|
1541
1648
|
command.response_representation = Google::Apis::GamesV1::LeaderboardScores::Representation
|
1542
1649
|
command.response_class = Google::Apis::GamesV1::LeaderboardScores
|
1543
1650
|
command.params['leaderboardId'] = leaderboard_id unless leaderboard_id.nil?
|
1544
1651
|
command.params['collection'] = collection unless collection.nil?
|
1652
|
+
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
1545
1653
|
command.query['language'] = language unless language.nil?
|
1546
1654
|
command.query['maxResults'] = max_results unless max_results.nil?
|
1547
1655
|
command.query['pageToken'] = page_token unless page_token.nil?
|
@@ -1564,6 +1672,8 @@ module Google
|
|
1564
1672
|
# For fixed-point, the score represents the raw value. For time, the score
|
1565
1673
|
# represents elapsed time in milliseconds. For currency, the score represents a
|
1566
1674
|
# value in micro units.
|
1675
|
+
# @param [String] consistency_token
|
1676
|
+
# The last-seen mutation timestamp.
|
1567
1677
|
# @param [String] language
|
1568
1678
|
# The preferred language to use for strings returned by this method.
|
1569
1679
|
# @param [String] score_tag
|
@@ -1590,11 +1700,12 @@ module Google
|
|
1590
1700
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1591
1701
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1592
1702
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1593
|
-
def submit_score(leaderboard_id, score, language: nil, score_tag: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1703
|
+
def submit_score(leaderboard_id, score, consistency_token: nil, language: nil, score_tag: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1594
1704
|
command = make_simple_command(:post, 'leaderboards/{leaderboardId}/scores', options)
|
1595
1705
|
command.response_representation = Google::Apis::GamesV1::PlayerScoreResponse::Representation
|
1596
1706
|
command.response_class = Google::Apis::GamesV1::PlayerScoreResponse
|
1597
1707
|
command.params['leaderboardId'] = leaderboard_id unless leaderboard_id.nil?
|
1708
|
+
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
1598
1709
|
command.query['language'] = language unless language.nil?
|
1599
1710
|
command.query['score'] = score unless score.nil?
|
1600
1711
|
command.query['scoreTag'] = score_tag unless score_tag.nil?
|
@@ -1606,6 +1717,8 @@ module Google
|
|
1606
1717
|
|
1607
1718
|
# Submits multiple scores to leaderboards.
|
1608
1719
|
# @param [Google::Apis::GamesV1::PlayerScoreSubmissionList] player_score_submission_list_object
|
1720
|
+
# @param [String] consistency_token
|
1721
|
+
# The last-seen mutation timestamp.
|
1609
1722
|
# @param [String] language
|
1610
1723
|
# The preferred language to use for strings returned by this method.
|
1611
1724
|
# @param [String] fields
|
@@ -1629,12 +1742,13 @@ module Google
|
|
1629
1742
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1630
1743
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1631
1744
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1632
|
-
def submit_score_multiple(player_score_submission_list_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1745
|
+
def submit_score_multiple(player_score_submission_list_object = nil, consistency_token: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1633
1746
|
command = make_simple_command(:post, 'leaderboards/scores', options)
|
1634
1747
|
command.request_representation = Google::Apis::GamesV1::PlayerScoreSubmissionList::Representation
|
1635
1748
|
command.request_object = player_score_submission_list_object
|
1636
1749
|
command.response_representation = Google::Apis::GamesV1::ListPlayerScoreResponse::Representation
|
1637
1750
|
command.response_class = Google::Apis::GamesV1::ListPlayerScoreResponse
|
1751
|
+
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
1638
1752
|
command.query['language'] = language unless language.nil?
|
1639
1753
|
command.query['fields'] = fields unless fields.nil?
|
1640
1754
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -1645,6 +1759,8 @@ module Google
|
|
1645
1759
|
# Retrieves the metadata for a given snapshot ID.
|
1646
1760
|
# @param [String] snapshot_id
|
1647
1761
|
# The ID of the snapshot.
|
1762
|
+
# @param [String] consistency_token
|
1763
|
+
# The last-seen mutation timestamp.
|
1648
1764
|
# @param [String] language
|
1649
1765
|
# The preferred language to use for strings returned by this method.
|
1650
1766
|
# @param [String] fields
|
@@ -1668,11 +1784,12 @@ module Google
|
|
1668
1784
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1669
1785
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1670
1786
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1671
|
-
def get_snapshot(snapshot_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1787
|
+
def get_snapshot(snapshot_id, consistency_token: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1672
1788
|
command = make_simple_command(:get, 'snapshots/{snapshotId}', options)
|
1673
1789
|
command.response_representation = Google::Apis::GamesV1::Snapshot::Representation
|
1674
1790
|
command.response_class = Google::Apis::GamesV1::Snapshot
|
1675
1791
|
command.params['snapshotId'] = snapshot_id unless snapshot_id.nil?
|
1792
|
+
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
1676
1793
|
command.query['language'] = language unless language.nil?
|
1677
1794
|
command.query['fields'] = fields unless fields.nil?
|
1678
1795
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -1685,6 +1802,8 @@ module Google
|
|
1685
1802
|
# @param [String] player_id
|
1686
1803
|
# A player ID. A value of me may be used in place of the authenticated player's
|
1687
1804
|
# ID.
|
1805
|
+
# @param [String] consistency_token
|
1806
|
+
# The last-seen mutation timestamp.
|
1688
1807
|
# @param [String] language
|
1689
1808
|
# The preferred language to use for strings returned by this method.
|
1690
1809
|
# @param [Fixnum] max_results
|
@@ -1714,11 +1833,12 @@ module Google
|
|
1714
1833
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1715
1834
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1716
1835
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1717
|
-
def list_snapshots(player_id, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1836
|
+
def list_snapshots(player_id, consistency_token: nil, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1718
1837
|
command = make_simple_command(:get, 'players/{playerId}/snapshots', options)
|
1719
1838
|
command.response_representation = Google::Apis::GamesV1::ListSnapshotResponse::Representation
|
1720
1839
|
command.response_class = Google::Apis::GamesV1::ListSnapshotResponse
|
1721
1840
|
command.params['playerId'] = player_id unless player_id.nil?
|
1841
|
+
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
1722
1842
|
command.query['language'] = language unless language.nil?
|
1723
1843
|
command.query['maxResults'] = max_results unless max_results.nil?
|
1724
1844
|
command.query['pageToken'] = page_token unless page_token.nil?
|
@@ -1731,6 +1851,8 @@ module Google
|
|
1731
1851
|
# Cancel a turn-based match.
|
1732
1852
|
# @param [String] match_id
|
1733
1853
|
# The ID of the match.
|
1854
|
+
# @param [String] consistency_token
|
1855
|
+
# The last-seen mutation timestamp.
|
1734
1856
|
# @param [String] fields
|
1735
1857
|
# Selector specifying which fields to include in a partial response.
|
1736
1858
|
# @param [String] quota_user
|
@@ -1752,9 +1874,10 @@ module Google
|
|
1752
1874
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1753
1875
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1754
1876
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1755
|
-
def cancel_turn_based_match(match_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1877
|
+
def cancel_turn_based_match(match_id, consistency_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1756
1878
|
command = make_simple_command(:put, 'turnbasedmatches/{matchId}/cancel', options)
|
1757
1879
|
command.params['matchId'] = match_id unless match_id.nil?
|
1880
|
+
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
1758
1881
|
command.query['fields'] = fields unless fields.nil?
|
1759
1882
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1760
1883
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
@@ -1763,6 +1886,8 @@ module Google
|
|
1763
1886
|
|
1764
1887
|
# Create a turn-based match.
|
1765
1888
|
# @param [Google::Apis::GamesV1::CreateTurnBasedMatchRequest] create_turn_based_match_request_object
|
1889
|
+
# @param [String] consistency_token
|
1890
|
+
# The last-seen mutation timestamp.
|
1766
1891
|
# @param [String] language
|
1767
1892
|
# The preferred language to use for strings returned by this method.
|
1768
1893
|
# @param [String] fields
|
@@ -1786,12 +1911,13 @@ module Google
|
|
1786
1911
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1787
1912
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1788
1913
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1789
|
-
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)
|
1914
|
+
def create_turn_based_match(create_turn_based_match_request_object = nil, consistency_token: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1790
1915
|
command = make_simple_command(:post, 'turnbasedmatches/create', options)
|
1791
1916
|
command.request_representation = Google::Apis::GamesV1::CreateTurnBasedMatchRequest::Representation
|
1792
1917
|
command.request_object = create_turn_based_match_request_object
|
1793
1918
|
command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation
|
1794
1919
|
command.response_class = Google::Apis::GamesV1::TurnBasedMatch
|
1920
|
+
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
1795
1921
|
command.query['language'] = language unless language.nil?
|
1796
1922
|
command.query['fields'] = fields unless fields.nil?
|
1797
1923
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -1802,6 +1928,8 @@ module Google
|
|
1802
1928
|
# Decline an invitation to play a turn-based match.
|
1803
1929
|
# @param [String] match_id
|
1804
1930
|
# The ID of the match.
|
1931
|
+
# @param [String] consistency_token
|
1932
|
+
# The last-seen mutation timestamp.
|
1805
1933
|
# @param [String] language
|
1806
1934
|
# The preferred language to use for strings returned by this method.
|
1807
1935
|
# @param [String] fields
|
@@ -1825,11 +1953,12 @@ module Google
|
|
1825
1953
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1826
1954
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1827
1955
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1828
|
-
def decline_turn_based_match(match_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1956
|
+
def decline_turn_based_match(match_id, consistency_token: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1829
1957
|
command = make_simple_command(:put, 'turnbasedmatches/{matchId}/decline', options)
|
1830
1958
|
command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation
|
1831
1959
|
command.response_class = Google::Apis::GamesV1::TurnBasedMatch
|
1832
1960
|
command.params['matchId'] = match_id unless match_id.nil?
|
1961
|
+
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
1833
1962
|
command.query['language'] = language unless language.nil?
|
1834
1963
|
command.query['fields'] = fields unless fields.nil?
|
1835
1964
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -1841,6 +1970,8 @@ module Google
|
|
1841
1970
|
# up in the list and will not generate notifications.
|
1842
1971
|
# @param [String] match_id
|
1843
1972
|
# The ID of the match.
|
1973
|
+
# @param [String] consistency_token
|
1974
|
+
# The last-seen mutation timestamp.
|
1844
1975
|
# @param [String] fields
|
1845
1976
|
# Selector specifying which fields to include in a partial response.
|
1846
1977
|
# @param [String] quota_user
|
@@ -1862,9 +1993,10 @@ module Google
|
|
1862
1993
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1863
1994
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1864
1995
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1865
|
-
def dismiss_turn_based_match(match_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1996
|
+
def dismiss_turn_based_match(match_id, consistency_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1866
1997
|
command = make_simple_command(:put, 'turnbasedmatches/{matchId}/dismiss', options)
|
1867
1998
|
command.params['matchId'] = match_id unless match_id.nil?
|
1999
|
+
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
1868
2000
|
command.query['fields'] = fields unless fields.nil?
|
1869
2001
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1870
2002
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
@@ -1877,6 +2009,8 @@ module Google
|
|
1877
2009
|
# @param [String] match_id
|
1878
2010
|
# The ID of the match.
|
1879
2011
|
# @param [Google::Apis::GamesV1::TurnBasedMatchResults] turn_based_match_results_object
|
2012
|
+
# @param [String] consistency_token
|
2013
|
+
# The last-seen mutation timestamp.
|
1880
2014
|
# @param [String] language
|
1881
2015
|
# The preferred language to use for strings returned by this method.
|
1882
2016
|
# @param [String] fields
|
@@ -1900,13 +2034,14 @@ module Google
|
|
1900
2034
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1901
2035
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1902
2036
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1903
|
-
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)
|
2037
|
+
def finish_turn_based_match(match_id, turn_based_match_results_object = nil, consistency_token: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1904
2038
|
command = make_simple_command(:put, 'turnbasedmatches/{matchId}/finish', options)
|
1905
2039
|
command.request_representation = Google::Apis::GamesV1::TurnBasedMatchResults::Representation
|
1906
2040
|
command.request_object = turn_based_match_results_object
|
1907
2041
|
command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation
|
1908
2042
|
command.response_class = Google::Apis::GamesV1::TurnBasedMatch
|
1909
2043
|
command.params['matchId'] = match_id unless match_id.nil?
|
2044
|
+
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
1910
2045
|
command.query['language'] = language unless language.nil?
|
1911
2046
|
command.query['fields'] = fields unless fields.nil?
|
1912
2047
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -1917,6 +2052,8 @@ module Google
|
|
1917
2052
|
# Get the data for a turn-based match.
|
1918
2053
|
# @param [String] match_id
|
1919
2054
|
# The ID of the match.
|
2055
|
+
# @param [String] consistency_token
|
2056
|
+
# The last-seen mutation timestamp.
|
1920
2057
|
# @param [Boolean] include_match_data
|
1921
2058
|
# Get match data along with metadata.
|
1922
2059
|
# @param [String] language
|
@@ -1942,11 +2079,12 @@ module Google
|
|
1942
2079
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1943
2080
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1944
2081
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1945
|
-
def get_turn_based_match(match_id, include_match_data: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2082
|
+
def get_turn_based_match(match_id, consistency_token: nil, include_match_data: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1946
2083
|
command = make_simple_command(:get, 'turnbasedmatches/{matchId}', options)
|
1947
2084
|
command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation
|
1948
2085
|
command.response_class = Google::Apis::GamesV1::TurnBasedMatch
|
1949
2086
|
command.params['matchId'] = match_id unless match_id.nil?
|
2087
|
+
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
1950
2088
|
command.query['includeMatchData'] = include_match_data unless include_match_data.nil?
|
1951
2089
|
command.query['language'] = language unless language.nil?
|
1952
2090
|
command.query['fields'] = fields unless fields.nil?
|
@@ -1958,6 +2096,8 @@ module Google
|
|
1958
2096
|
# Join a turn-based match.
|
1959
2097
|
# @param [String] match_id
|
1960
2098
|
# The ID of the match.
|
2099
|
+
# @param [String] consistency_token
|
2100
|
+
# The last-seen mutation timestamp.
|
1961
2101
|
# @param [String] language
|
1962
2102
|
# The preferred language to use for strings returned by this method.
|
1963
2103
|
# @param [String] fields
|
@@ -1981,11 +2121,12 @@ module Google
|
|
1981
2121
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1982
2122
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1983
2123
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1984
|
-
def join_turn_based_match(match_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2124
|
+
def join_turn_based_match(match_id, consistency_token: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1985
2125
|
command = make_simple_command(:put, 'turnbasedmatches/{matchId}/join', options)
|
1986
2126
|
command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation
|
1987
2127
|
command.response_class = Google::Apis::GamesV1::TurnBasedMatch
|
1988
2128
|
command.params['matchId'] = match_id unless match_id.nil?
|
2129
|
+
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
1989
2130
|
command.query['language'] = language unless language.nil?
|
1990
2131
|
command.query['fields'] = fields unless fields.nil?
|
1991
2132
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -1997,6 +2138,8 @@ module Google
|
|
1997
2138
|
# canceling the match.
|
1998
2139
|
# @param [String] match_id
|
1999
2140
|
# The ID of the match.
|
2141
|
+
# @param [String] consistency_token
|
2142
|
+
# The last-seen mutation timestamp.
|
2000
2143
|
# @param [String] language
|
2001
2144
|
# The preferred language to use for strings returned by this method.
|
2002
2145
|
# @param [String] fields
|
@@ -2020,11 +2163,12 @@ module Google
|
|
2020
2163
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2021
2164
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2022
2165
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2023
|
-
def leave_turn_based_match(match_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2166
|
+
def leave_turn_based_match(match_id, consistency_token: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2024
2167
|
command = make_simple_command(:put, 'turnbasedmatches/{matchId}/leave', options)
|
2025
2168
|
command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation
|
2026
2169
|
command.response_class = Google::Apis::GamesV1::TurnBasedMatch
|
2027
2170
|
command.params['matchId'] = match_id unless match_id.nil?
|
2171
|
+
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
2028
2172
|
command.query['language'] = language unless language.nil?
|
2029
2173
|
command.query['fields'] = fields unless fields.nil?
|
2030
2174
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -2038,6 +2182,8 @@ module Google
|
|
2038
2182
|
# The ID of the match.
|
2039
2183
|
# @param [Fixnum] match_version
|
2040
2184
|
# The version of the match being updated.
|
2185
|
+
# @param [String] consistency_token
|
2186
|
+
# The last-seen mutation timestamp.
|
2041
2187
|
# @param [String] language
|
2042
2188
|
# The preferred language to use for strings returned by this method.
|
2043
2189
|
# @param [String] pending_participant_id
|
@@ -2066,11 +2212,12 @@ module Google
|
|
2066
2212
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2067
2213
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2068
2214
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2069
|
-
def leave_turn(match_id, match_version, language: nil, pending_participant_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2215
|
+
def leave_turn(match_id, match_version, consistency_token: nil, language: nil, pending_participant_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2070
2216
|
command = make_simple_command(:put, 'turnbasedmatches/{matchId}/leaveTurn', options)
|
2071
2217
|
command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation
|
2072
2218
|
command.response_class = Google::Apis::GamesV1::TurnBasedMatch
|
2073
2219
|
command.params['matchId'] = match_id unless match_id.nil?
|
2220
|
+
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
2074
2221
|
command.query['language'] = language unless language.nil?
|
2075
2222
|
command.query['matchVersion'] = match_version unless match_version.nil?
|
2076
2223
|
command.query['pendingParticipantId'] = pending_participant_id unless pending_participant_id.nil?
|
@@ -2081,6 +2228,8 @@ module Google
|
|
2081
2228
|
end
|
2082
2229
|
|
2083
2230
|
# Returns turn-based matches the player is or was involved in.
|
2231
|
+
# @param [String] consistency_token
|
2232
|
+
# The last-seen mutation timestamp.
|
2084
2233
|
# @param [Boolean] include_match_data
|
2085
2234
|
# True if match data should be returned in the response. Note that not all data
|
2086
2235
|
# will necessarily be returned if include_match_data is true; the server may
|
@@ -2119,10 +2268,11 @@ module Google
|
|
2119
2268
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2120
2269
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2121
2270
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2122
|
-
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)
|
2271
|
+
def list_turn_based_matches(consistency_token: nil, 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)
|
2123
2272
|
command = make_simple_command(:get, 'turnbasedmatches', options)
|
2124
2273
|
command.response_representation = Google::Apis::GamesV1::TurnBasedMatchList::Representation
|
2125
2274
|
command.response_class = Google::Apis::GamesV1::TurnBasedMatchList
|
2275
|
+
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
2126
2276
|
command.query['includeMatchData'] = include_match_data unless include_match_data.nil?
|
2127
2277
|
command.query['language'] = language unless language.nil?
|
2128
2278
|
command.query['maxCompletedMatches'] = max_completed_matches unless max_completed_matches.nil?
|
@@ -2140,6 +2290,8 @@ module Google
|
|
2140
2290
|
# match; it will be the caller's turn.
|
2141
2291
|
# @param [String] match_id
|
2142
2292
|
# The ID of the match.
|
2293
|
+
# @param [String] consistency_token
|
2294
|
+
# The last-seen mutation timestamp.
|
2143
2295
|
# @param [String] language
|
2144
2296
|
# The preferred language to use for strings returned by this method.
|
2145
2297
|
# @param [String] request_id
|
@@ -2167,11 +2319,12 @@ module Google
|
|
2167
2319
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2168
2320
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2169
2321
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2170
|
-
def rematch_turn_based_match(match_id, language: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2322
|
+
def rematch_turn_based_match(match_id, consistency_token: nil, language: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2171
2323
|
command = make_simple_command(:post, 'turnbasedmatches/{matchId}/rematch', options)
|
2172
2324
|
command.response_representation = Google::Apis::GamesV1::TurnBasedMatchRematch::Representation
|
2173
2325
|
command.response_class = Google::Apis::GamesV1::TurnBasedMatchRematch
|
2174
2326
|
command.params['matchId'] = match_id unless match_id.nil?
|
2327
|
+
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
2175
2328
|
command.query['language'] = language unless language.nil?
|
2176
2329
|
command.query['requestId'] = request_id unless request_id.nil?
|
2177
2330
|
command.query['fields'] = fields unless fields.nil?
|
@@ -2183,6 +2336,8 @@ module Google
|
|
2183
2336
|
# Returns turn-based matches the player is or was involved in that changed since
|
2184
2337
|
# the last sync call, with the least recent changes coming first. Matches that
|
2185
2338
|
# should be removed from the local cache will have a status of MATCH_DELETED.
|
2339
|
+
# @param [String] consistency_token
|
2340
|
+
# The last-seen mutation timestamp.
|
2186
2341
|
# @param [Boolean] include_match_data
|
2187
2342
|
# True if match data should be returned in the response. Note that not all data
|
2188
2343
|
# will necessarily be returned if include_match_data is true; the server may
|
@@ -2221,10 +2376,11 @@ module Google
|
|
2221
2376
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2222
2377
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2223
2378
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2224
|
-
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)
|
2379
|
+
def sync_turn_based_match(consistency_token: nil, 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)
|
2225
2380
|
command = make_simple_command(:get, 'turnbasedmatches/sync', options)
|
2226
2381
|
command.response_representation = Google::Apis::GamesV1::TurnBasedMatchSync::Representation
|
2227
2382
|
command.response_class = Google::Apis::GamesV1::TurnBasedMatchSync
|
2383
|
+
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
2228
2384
|
command.query['includeMatchData'] = include_match_data unless include_match_data.nil?
|
2229
2385
|
command.query['language'] = language unless language.nil?
|
2230
2386
|
command.query['maxCompletedMatches'] = max_completed_matches unless max_completed_matches.nil?
|
@@ -2240,6 +2396,8 @@ module Google
|
|
2240
2396
|
# @param [String] match_id
|
2241
2397
|
# The ID of the match.
|
2242
2398
|
# @param [Google::Apis::GamesV1::TurnBasedMatchTurn] turn_based_match_turn_object
|
2399
|
+
# @param [String] consistency_token
|
2400
|
+
# The last-seen mutation timestamp.
|
2243
2401
|
# @param [String] language
|
2244
2402
|
# The preferred language to use for strings returned by this method.
|
2245
2403
|
# @param [String] fields
|
@@ -2263,13 +2421,14 @@ module Google
|
|
2263
2421
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2264
2422
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2265
2423
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2266
|
-
def take_turn(match_id, turn_based_match_turn_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2424
|
+
def take_turn(match_id, turn_based_match_turn_object = nil, consistency_token: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2267
2425
|
command = make_simple_command(:put, 'turnbasedmatches/{matchId}/turn', options)
|
2268
2426
|
command.request_representation = Google::Apis::GamesV1::TurnBasedMatchTurn::Representation
|
2269
2427
|
command.request_object = turn_based_match_turn_object
|
2270
2428
|
command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation
|
2271
2429
|
command.response_class = Google::Apis::GamesV1::TurnBasedMatch
|
2272
2430
|
command.params['matchId'] = match_id unless match_id.nil?
|
2431
|
+
command.query['consistencyToken'] = consistency_token unless consistency_token.nil?
|
2273
2432
|
command.query['language'] = language unless language.nil?
|
2274
2433
|
command.query['fields'] = fields unless fields.nil?
|
2275
2434
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|