google-api-client 0.41.2 → 0.42.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +36 -0
  3. data/generated/google/apis/accessapproval_v1.rb +1 -1
  4. data/generated/google/apis/accessapproval_v1/service.rb +3 -0
  5. data/generated/google/apis/accessapproval_v1beta1.rb +1 -1
  6. data/generated/google/apis/accessapproval_v1beta1/service.rb +3 -0
  7. data/generated/google/apis/admob_v1.rb +1 -1
  8. data/generated/google/apis/admob_v1/service.rb +1 -1
  9. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  10. data/generated/google/apis/apigee_v1.rb +1 -1
  11. data/generated/google/apis/apigee_v1/classes.rb +1389 -105
  12. data/generated/google/apis/apigee_v1/representations.rb +543 -0
  13. data/generated/google/apis/apigee_v1/service.rb +1139 -93
  14. data/generated/google/apis/appsmarket_v2.rb +1 -1
  15. data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
  16. data/generated/google/apis/bigqueryreservation_v1/classes.rb +34 -0
  17. data/generated/google/apis/bigqueryreservation_v1/representations.rb +16 -0
  18. data/generated/google/apis/bigqueryreservation_v1/service.rb +60 -0
  19. data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
  20. data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +8 -0
  21. data/generated/google/apis/bigqueryreservation_v1beta1/representations.rb +1 -0
  22. data/generated/google/apis/civicinfo_v2.rb +1 -1
  23. data/generated/google/apis/civicinfo_v2/classes.rb +9 -1
  24. data/generated/google/apis/civicinfo_v2/representations.rb +1 -0
  25. data/generated/google/apis/civicinfo_v2/service.rb +1 -1
  26. data/generated/google/apis/classroom_v1.rb +1 -1
  27. data/generated/google/apis/classroom_v1/service.rb +4 -3
  28. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  29. data/generated/google/apis/cloudfunctions_v1/classes.rb +14 -0
  30. data/generated/google/apis/cloudfunctions_v1/representations.rb +2 -0
  31. data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
  32. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +7 -0
  33. data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +1 -0
  34. data/generated/google/apis/{androidpublisher_v1.rb → customsearch_v1.rb} +8 -8
  35. data/generated/google/apis/customsearch_v1/classes.rb +1606 -0
  36. data/generated/google/apis/customsearch_v1/representations.rb +372 -0
  37. data/generated/google/apis/customsearch_v1/service.rb +608 -0
  38. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  39. data/generated/google/apis/dialogflow_v2beta1/classes.rb +4 -2
  40. data/generated/google/apis/dialogflow_v2beta1/service.rb +8 -2
  41. data/generated/google/apis/displayvideo_v1.rb +1 -1
  42. data/generated/google/apis/displayvideo_v1/classes.rb +12 -5
  43. data/generated/google/apis/dns_v1.rb +4 -4
  44. data/generated/google/apis/dns_v1/classes.rb +313 -162
  45. data/generated/google/apis/dns_v1/service.rb +247 -180
  46. data/generated/google/apis/file_v1.rb +1 -1
  47. data/generated/google/apis/file_v1beta1.rb +1 -1
  48. data/generated/google/apis/{groupsmigration_v1.rb → firebasehosting_v1.rb} +10 -12
  49. data/generated/google/apis/firebasehosting_v1/classes.rb +186 -0
  50. data/generated/google/apis/{androidpublisher_v2 → firebasehosting_v1}/representations.rb +22 -32
  51. data/generated/google/apis/firebasehosting_v1/service.rb +183 -0
  52. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  53. data/generated/google/apis/firebasehosting_v1beta1/service.rb +2 -0
  54. data/generated/google/apis/games_v1.rb +5 -3
  55. data/generated/google/apis/games_v1/classes.rb +354 -2112
  56. data/generated/google/apis/games_v1/representations.rb +12 -647
  57. data/generated/google/apis/games_v1/service.rb +212 -1154
  58. data/generated/google/apis/gameservices_v1beta.rb +1 -1
  59. data/generated/google/apis/gameservices_v1beta/classes.rb +6 -6
  60. data/generated/google/apis/groupssettings_v1.rb +1 -1
  61. data/generated/google/apis/groupssettings_v1/classes.rb +1 -1
  62. data/generated/google/apis/ml_v1.rb +1 -1
  63. data/generated/google/apis/ml_v1/classes.rb +6 -6
  64. data/generated/google/apis/monitoring_v3.rb +1 -1
  65. data/generated/google/apis/monitoring_v3/classes.rb +10 -2
  66. data/generated/google/apis/monitoring_v3/representations.rb +1 -0
  67. data/generated/google/apis/monitoring_v3/service.rb +8 -5
  68. data/generated/google/apis/pubsub_v1.rb +1 -1
  69. data/generated/google/apis/pubsub_v1/classes.rb +24 -28
  70. data/generated/google/apis/pubsub_v1/service.rb +35 -44
  71. data/generated/google/apis/recommender_v1.rb +1 -1
  72. data/generated/google/apis/recommender_v1/classes.rb +211 -0
  73. data/generated/google/apis/recommender_v1/representations.rb +96 -0
  74. data/generated/google/apis/recommender_v1/service.rb +123 -0
  75. data/generated/google/apis/redis_v1.rb +1 -1
  76. data/generated/google/apis/redis_v1beta1.rb +1 -1
  77. data/generated/google/apis/testing_v1.rb +1 -1
  78. data/generated/google/apis/testing_v1/classes.rb +17 -6
  79. data/generated/google/apis/testing_v1/representations.rb +1 -0
  80. data/generated/google/apis/youtube_partner_v1.rb +4 -3
  81. data/generated/google/apis/youtube_partner_v1/classes.rb +1616 -1076
  82. data/generated/google/apis/youtube_partner_v1/representations.rb +357 -256
  83. data/generated/google/apis/youtube_partner_v1/service.rb +942 -1362
  84. data/generated/google/apis/youtube_v3.rb +1 -1
  85. data/generated/google/apis/youtube_v3/classes.rb +554 -0
  86. data/generated/google/apis/youtube_v3/representations.rb +281 -0
  87. data/generated/google/apis/youtube_v3/service.rb +259 -0
  88. data/lib/google/apis/version.rb +1 -1
  89. metadata +11 -19
  90. data/generated/google/apis/androidpublisher_v1/classes.rb +0 -26
  91. data/generated/google/apis/androidpublisher_v1/representations.rb +0 -26
  92. data/generated/google/apis/androidpublisher_v1/service.rb +0 -64
  93. data/generated/google/apis/androidpublisher_v1_1.rb +0 -34
  94. data/generated/google/apis/androidpublisher_v1_1/classes.rb +0 -94
  95. data/generated/google/apis/androidpublisher_v1_1/representations.rb +0 -45
  96. data/generated/google/apis/androidpublisher_v1_1/service.rb +0 -104
  97. data/generated/google/apis/androidpublisher_v2.rb +0 -34
  98. data/generated/google/apis/androidpublisher_v2/classes.rb +0 -223
  99. data/generated/google/apis/androidpublisher_v2/service.rb +0 -160
  100. data/generated/google/apis/groupsmigration_v1/classes.rb +0 -51
  101. data/generated/google/apis/groupsmigration_v1/representations.rb +0 -40
  102. data/generated/google/apis/groupsmigration_v1/service.rb +0 -100
@@ -20,9 +20,11 @@ require 'google/apis/errors'
20
20
  module Google
21
21
  module Apis
22
22
  module GamesV1
23
- # Google Play Game Services API
23
+ # Google Play Game Services
24
24
  #
25
- # The API for Google Play Game Services.
25
+ # The Google Play games service allows developers to enhance games with social
26
+ # leaderboards,
27
+ # achievements, game state, sign-in with Google, and more.
26
28
  #
27
29
  # @example
28
30
  # require 'google/apis/games_v1'
@@ -30,7 +32,7 @@ module Google
30
32
  # Games = Google::Apis::GamesV1 # Alias the module
31
33
  # service = Games::GamesService.new
32
34
  #
33
- # @see https://developers.google.com/games/services/
35
+ # @see https://developers.google.com/games/
34
36
  class GamesService < Google::Apis::Core::BaseService
35
37
  # @return [String]
36
38
  # API key. Your API key identifies your project and provides you with API access,
@@ -38,16 +40,12 @@ module Google
38
40
  attr_accessor :key
39
41
 
40
42
  # @return [String]
41
- # An opaque string that represents a user for quota purposes. Must not exceed 40
42
- # characters.
43
+ # Available to use for quota purposes for server-side applications. Can be any
44
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43
45
  attr_accessor :quota_user
44
46
 
45
- # @return [String]
46
- # Deprecated. Please use quotaUser instead.
47
- attr_accessor :user_ip
48
-
49
47
  def initialize
50
- super('https://www.googleapis.com/', 'games/v1/')
48
+ super('https://www.googleapis.com/', '')
51
49
  @batch_path = 'batch/games/v1'
52
50
  end
53
51
 
@@ -57,16 +55,14 @@ module Google
57
55
  # @param [Fixnum] max_results
58
56
  # The maximum number of achievement resources to return in the response, used
59
57
  # for paging. For any response, the actual number of achievement resources
60
- # returned may be less than the specified maxResults.
58
+ # returned may be less than the specified `maxResults`.
61
59
  # @param [String] page_token
62
60
  # The token returned by the previous request.
63
61
  # @param [String] fields
64
62
  # Selector specifying which fields to include in a partial response.
65
63
  # @param [String] quota_user
66
- # An opaque string that represents a user for quota purposes. Must not exceed 40
67
- # characters.
68
- # @param [String] user_ip
69
- # Deprecated. Please use quotaUser instead.
64
+ # Available to use for quota purposes for server-side applications. Can be any
65
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
70
66
  # @param [Google::Apis::RequestOptions] options
71
67
  # Request-specific options
72
68
  #
@@ -79,8 +75,8 @@ module Google
79
75
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
80
76
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
81
77
  # @raise [Google::Apis::AuthorizationError] Authorization is required
82
- def list_achievement_definitions(language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
83
- command = make_simple_command(:get, 'achievements', options)
78
+ def list_achievement_definitions(language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
79
+ command = make_simple_command(:get, 'games/v1/achievements', options)
84
80
  command.response_representation = Google::Apis::GamesV1::ListAchievementDefinitionsResponse::Representation
85
81
  command.response_class = Google::Apis::GamesV1::ListAchievementDefinitionsResponse
86
82
  command.query['language'] = language unless language.nil?
@@ -88,7 +84,6 @@ module Google
88
84
  command.query['pageToken'] = page_token unless page_token.nil?
89
85
  command.query['fields'] = fields unless fields.nil?
90
86
  command.query['quotaUser'] = quota_user unless quota_user.nil?
91
- command.query['userIp'] = user_ip unless user_ip.nil?
92
87
  execute_or_queue_command(command, &block)
93
88
  end
94
89
 
@@ -99,16 +94,14 @@ module Google
99
94
  # @param [Fixnum] steps_to_increment
100
95
  # The number of steps to increment.
101
96
  # @param [Fixnum] request_id
102
- # A randomly generated numeric ID for each request specified by the caller. This
103
- # number is used at the server to ensure that the request is handled correctly
104
- # across retries.
97
+ # A randomly generated numeric ID for each request specified by the caller.
98
+ # This number is used at the server to ensure that the request is handled
99
+ # correctly across retries.
105
100
  # @param [String] fields
106
101
  # Selector specifying which fields to include in a partial response.
107
102
  # @param [String] quota_user
108
- # An opaque string that represents a user for quota purposes. Must not exceed 40
109
- # characters.
110
- # @param [String] user_ip
111
- # Deprecated. Please use quotaUser instead.
103
+ # Available to use for quota purposes for server-side applications. Can be any
104
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
112
105
  # @param [Google::Apis::RequestOptions] options
113
106
  # Request-specific options
114
107
  #
@@ -121,8 +114,8 @@ module Google
121
114
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
122
115
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
123
116
  # @raise [Google::Apis::AuthorizationError] Authorization is required
124
- def increment_achievement(achievement_id, steps_to_increment, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
125
- command = make_simple_command(:post, 'achievements/{achievementId}/increment', options)
117
+ def increment_achievement(achievement_id, steps_to_increment, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
118
+ command = make_simple_command(:post, 'games/v1/achievements/{achievementId}/increment', options)
126
119
  command.response_representation = Google::Apis::GamesV1::AchievementIncrementResponse::Representation
127
120
  command.response_class = Google::Apis::GamesV1::AchievementIncrementResponse
128
121
  command.params['achievementId'] = achievement_id unless achievement_id.nil?
@@ -130,33 +123,30 @@ module Google
130
123
  command.query['stepsToIncrement'] = steps_to_increment unless steps_to_increment.nil?
131
124
  command.query['fields'] = fields unless fields.nil?
132
125
  command.query['quotaUser'] = quota_user unless quota_user.nil?
133
- command.query['userIp'] = user_ip unless user_ip.nil?
134
126
  execute_or_queue_command(command, &block)
135
127
  end
136
128
 
137
- # Lists the progress for all your application's achievements for the currently
138
- # authenticated player.
129
+ # Lists the progress for all your application's achievements for the
130
+ # currently authenticated player.
139
131
  # @param [String] player_id
140
- # A player ID. A value of me may be used in place of the authenticated player's
141
- # ID.
132
+ # A player ID. A value of `me` may be used in place of the
133
+ # authenticated player's ID.
142
134
  # @param [String] language
143
135
  # The preferred language to use for strings returned by this method.
144
136
  # @param [Fixnum] max_results
145
137
  # The maximum number of achievement resources to return in the response, used
146
138
  # for paging. For any response, the actual number of achievement resources
147
- # returned may be less than the specified maxResults.
139
+ # returned may be less than the specified `maxResults`.
148
140
  # @param [String] page_token
149
141
  # The token returned by the previous request.
150
142
  # @param [String] state
151
- # Tells the server to return only achievements with the specified state. If this
152
- # parameter isn't specified, all achievements are returned.
143
+ # Tells the server to return only achievements with the specified state. If
144
+ # this parameter isn't specified, all achievements are returned.
153
145
  # @param [String] fields
154
146
  # Selector specifying which fields to include in a partial response.
155
147
  # @param [String] quota_user
156
- # An opaque string that represents a user for quota purposes. Must not exceed 40
157
- # characters.
158
- # @param [String] user_ip
159
- # Deprecated. Please use quotaUser instead.
148
+ # Available to use for quota purposes for server-side applications. Can be any
149
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
160
150
  # @param [Google::Apis::RequestOptions] options
161
151
  # Request-specific options
162
152
  #
@@ -169,8 +159,8 @@ module Google
169
159
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
170
160
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
171
161
  # @raise [Google::Apis::AuthorizationError] Authorization is required
172
- 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)
173
- command = make_simple_command(:get, 'players/{playerId}/achievements', options)
162
+ def list_achievements(player_id, language: nil, max_results: nil, page_token: nil, state: nil, fields: nil, quota_user: nil, options: nil, &block)
163
+ command = make_simple_command(:get, 'games/v1/players/{playerId}/achievements', options)
174
164
  command.response_representation = Google::Apis::GamesV1::ListPlayerAchievementResponse::Representation
175
165
  command.response_class = Google::Apis::GamesV1::ListPlayerAchievementResponse
176
166
  command.params['playerId'] = player_id unless player_id.nil?
@@ -180,21 +170,18 @@ module Google
180
170
  command.query['state'] = state unless state.nil?
181
171
  command.query['fields'] = fields unless fields.nil?
182
172
  command.query['quotaUser'] = quota_user unless quota_user.nil?
183
- command.query['userIp'] = user_ip unless user_ip.nil?
184
173
  execute_or_queue_command(command, &block)
185
174
  end
186
175
 
187
- # Sets the state of the achievement with the given ID to REVEALED for the
188
- # currently authenticated player.
176
+ # Sets the state of the achievement with the given ID to
177
+ # `REVEALED` for the currently authenticated player.
189
178
  # @param [String] achievement_id
190
179
  # The ID of the achievement used by this method.
191
180
  # @param [String] fields
192
181
  # Selector specifying which fields to include in a partial response.
193
182
  # @param [String] quota_user
194
- # An opaque string that represents a user for quota purposes. Must not exceed 40
195
- # characters.
196
- # @param [String] user_ip
197
- # Deprecated. Please use quotaUser instead.
183
+ # Available to use for quota purposes for server-side applications. Can be any
184
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
198
185
  # @param [Google::Apis::RequestOptions] options
199
186
  # Request-specific options
200
187
  #
@@ -207,21 +194,20 @@ module Google
207
194
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
208
195
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
209
196
  # @raise [Google::Apis::AuthorizationError] Authorization is required
210
- def reveal_achievement(achievement_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
211
- command = make_simple_command(:post, 'achievements/{achievementId}/reveal', options)
197
+ def reveal_achievement(achievement_id, fields: nil, quota_user: nil, options: nil, &block)
198
+ command = make_simple_command(:post, 'games/v1/achievements/{achievementId}/reveal', options)
212
199
  command.response_representation = Google::Apis::GamesV1::AchievementRevealResponse::Representation
213
200
  command.response_class = Google::Apis::GamesV1::AchievementRevealResponse
214
201
  command.params['achievementId'] = achievement_id unless achievement_id.nil?
215
202
  command.query['fields'] = fields unless fields.nil?
216
203
  command.query['quotaUser'] = quota_user unless quota_user.nil?
217
- command.query['userIp'] = user_ip unless user_ip.nil?
218
204
  execute_or_queue_command(command, &block)
219
205
  end
220
206
 
221
207
  # Sets the steps for the currently authenticated player towards unlocking an
222
- # achievement. If the steps parameter is less than the current number of steps
223
- # that the player already gained for the achievement, the achievement is not
224
- # modified.
208
+ # achievement. If the steps parameter is less than the current number of
209
+ # steps that the player already gained for the achievement, the achievement
210
+ # is not modified.
225
211
  # @param [String] achievement_id
226
212
  # The ID of the achievement used by this method.
227
213
  # @param [Fixnum] steps
@@ -229,10 +215,8 @@ module Google
229
215
  # @param [String] fields
230
216
  # Selector specifying which fields to include in a partial response.
231
217
  # @param [String] quota_user
232
- # An opaque string that represents a user for quota purposes. Must not exceed 40
233
- # characters.
234
- # @param [String] user_ip
235
- # Deprecated. Please use quotaUser instead.
218
+ # Available to use for quota purposes for server-side applications. Can be any
219
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
236
220
  # @param [Google::Apis::RequestOptions] options
237
221
  # Request-specific options
238
222
  #
@@ -245,15 +229,14 @@ module Google
245
229
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
246
230
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
247
231
  # @raise [Google::Apis::AuthorizationError] Authorization is required
248
- def set_achievement_steps_at_least(achievement_id, steps, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
249
- command = make_simple_command(:post, 'achievements/{achievementId}/setStepsAtLeast', options)
232
+ def set_achievement_steps_at_least(achievement_id, steps, fields: nil, quota_user: nil, options: nil, &block)
233
+ command = make_simple_command(:post, 'games/v1/achievements/{achievementId}/setStepsAtLeast', options)
250
234
  command.response_representation = Google::Apis::GamesV1::AchievementSetStepsAtLeastResponse::Representation
251
235
  command.response_class = Google::Apis::GamesV1::AchievementSetStepsAtLeastResponse
252
236
  command.params['achievementId'] = achievement_id unless achievement_id.nil?
253
237
  command.query['steps'] = steps unless steps.nil?
254
238
  command.query['fields'] = fields unless fields.nil?
255
239
  command.query['quotaUser'] = quota_user unless quota_user.nil?
256
- command.query['userIp'] = user_ip unless user_ip.nil?
257
240
  execute_or_queue_command(command, &block)
258
241
  end
259
242
 
@@ -263,10 +246,8 @@ module Google
263
246
  # @param [String] fields
264
247
  # Selector specifying which fields to include in a partial response.
265
248
  # @param [String] quota_user
266
- # An opaque string that represents a user for quota purposes. Must not exceed 40
267
- # characters.
268
- # @param [String] user_ip
269
- # Deprecated. Please use quotaUser instead.
249
+ # Available to use for quota purposes for server-side applications. Can be any
250
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
270
251
  # @param [Google::Apis::RequestOptions] options
271
252
  # Request-specific options
272
253
  #
@@ -279,14 +260,13 @@ module Google
279
260
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
280
261
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
281
262
  # @raise [Google::Apis::AuthorizationError] Authorization is required
282
- def unlock_achievement(achievement_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
283
- command = make_simple_command(:post, 'achievements/{achievementId}/unlock', options)
263
+ def unlock_achievement(achievement_id, fields: nil, quota_user: nil, options: nil, &block)
264
+ command = make_simple_command(:post, 'games/v1/achievements/{achievementId}/unlock', options)
284
265
  command.response_representation = Google::Apis::GamesV1::AchievementUnlockResponse::Representation
285
266
  command.response_class = Google::Apis::GamesV1::AchievementUnlockResponse
286
267
  command.params['achievementId'] = achievement_id unless achievement_id.nil?
287
268
  command.query['fields'] = fields unless fields.nil?
288
269
  command.query['quotaUser'] = quota_user unless quota_user.nil?
289
- command.query['userIp'] = user_ip unless user_ip.nil?
290
270
  execute_or_queue_command(command, &block)
291
271
  end
292
272
 
@@ -295,10 +275,8 @@ module Google
295
275
  # @param [String] fields
296
276
  # Selector specifying which fields to include in a partial response.
297
277
  # @param [String] quota_user
298
- # An opaque string that represents a user for quota purposes. Must not exceed 40
299
- # characters.
300
- # @param [String] user_ip
301
- # Deprecated. Please use quotaUser instead.
278
+ # Available to use for quota purposes for server-side applications. Can be any
279
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
302
280
  # @param [Google::Apis::RequestOptions] options
303
281
  # Request-specific options
304
282
  #
@@ -311,21 +289,21 @@ module Google
311
289
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
312
290
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
313
291
  # @raise [Google::Apis::AuthorizationError] Authorization is required
314
- def update_multiple_achievements(achievement_update_multiple_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
315
- command = make_simple_command(:post, 'achievements/updateMultiple', options)
292
+ def update_multiple_achievements(achievement_update_multiple_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
293
+ command = make_simple_command(:post, 'games/v1/achievements/updateMultiple', options)
316
294
  command.request_representation = Google::Apis::GamesV1::AchievementUpdateMultipleRequest::Representation
317
295
  command.request_object = achievement_update_multiple_request_object
318
296
  command.response_representation = Google::Apis::GamesV1::AchievementUpdateMultipleResponse::Representation
319
297
  command.response_class = Google::Apis::GamesV1::AchievementUpdateMultipleResponse
320
298
  command.query['fields'] = fields unless fields.nil?
321
299
  command.query['quotaUser'] = quota_user unless quota_user.nil?
322
- command.query['userIp'] = user_ip unless user_ip.nil?
323
300
  execute_or_queue_command(command, &block)
324
301
  end
325
302
 
326
- # Retrieves the metadata of the application with the given ID. If the requested
327
- # application is not available for the specified platformType, the returned
328
- # response will not include any instance data.
303
+ # Retrieves the metadata of the application with the given ID. If the
304
+ # requested application is not available for the specified
305
+ # `platformType`, the returned response will not include any
306
+ # instance data.
329
307
  # @param [String] application_id
330
308
  # The application ID from the Google Play developer console.
331
309
  # @param [String] language
@@ -335,10 +313,8 @@ module Google
335
313
  # @param [String] fields
336
314
  # Selector specifying which fields to include in a partial response.
337
315
  # @param [String] quota_user
338
- # An opaque string that represents a user for quota purposes. Must not exceed 40
339
- # characters.
340
- # @param [String] user_ip
341
- # Deprecated. Please use quotaUser instead.
316
+ # Available to use for quota purposes for server-side applications. Can be any
317
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
342
318
  # @param [Google::Apis::RequestOptions] options
343
319
  # Request-specific options
344
320
  #
@@ -351,8 +327,8 @@ module Google
351
327
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
352
328
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
353
329
  # @raise [Google::Apis::AuthorizationError] Authorization is required
354
- def get_application(application_id, language: nil, platform_type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
355
- command = make_simple_command(:get, 'applications/{applicationId}', options)
330
+ def get_application(application_id, language: nil, platform_type: nil, fields: nil, quota_user: nil, options: nil, &block)
331
+ command = make_simple_command(:get, 'games/v1/applications/{applicationId}', options)
356
332
  command.response_representation = Google::Apis::GamesV1::Application::Representation
357
333
  command.response_class = Google::Apis::GamesV1::Application
358
334
  command.params['applicationId'] = application_id unless application_id.nil?
@@ -360,18 +336,16 @@ module Google
360
336
  command.query['platformType'] = platform_type unless platform_type.nil?
361
337
  command.query['fields'] = fields unless fields.nil?
362
338
  command.query['quotaUser'] = quota_user unless quota_user.nil?
363
- command.query['userIp'] = user_ip unless user_ip.nil?
364
339
  execute_or_queue_command(command, &block)
365
340
  end
366
341
 
367
- # Indicate that the the currently authenticated user is playing your application.
342
+ # Indicate that the currently authenticated user is playing your
343
+ # application.
368
344
  # @param [String] fields
369
345
  # Selector specifying which fields to include in a partial response.
370
346
  # @param [String] quota_user
371
- # An opaque string that represents a user for quota purposes. Must not exceed 40
372
- # characters.
373
- # @param [String] user_ip
374
- # Deprecated. Please use quotaUser instead.
347
+ # Available to use for quota purposes for server-side applications. Can be any
348
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
375
349
  # @param [Google::Apis::RequestOptions] options
376
350
  # Request-specific options
377
351
  #
@@ -384,25 +358,22 @@ module Google
384
358
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
385
359
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
386
360
  # @raise [Google::Apis::AuthorizationError] Authorization is required
387
- def played_application(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
388
- command = make_simple_command(:post, 'applications/played', options)
361
+ def played_application(fields: nil, quota_user: nil, options: nil, &block)
362
+ command = make_simple_command(:post, 'games/v1/applications/played', options)
389
363
  command.query['fields'] = fields unless fields.nil?
390
364
  command.query['quotaUser'] = quota_user unless quota_user.nil?
391
- command.query['userIp'] = user_ip unless user_ip.nil?
392
365
  execute_or_queue_command(command, &block)
393
366
  end
394
367
 
395
- # Verifies the auth token provided with this request is for the application with
396
- # the specified ID, and returns the ID of the player it was granted for.
368
+ # Verifies the auth token provided with this request is for the application
369
+ # with the specified ID, and returns the ID of the player it was granted for.
397
370
  # @param [String] application_id
398
371
  # The application ID from the Google Play developer console.
399
372
  # @param [String] fields
400
373
  # Selector specifying which fields to include in a partial response.
401
374
  # @param [String] quota_user
402
- # An opaque string that represents a user for quota purposes. Must not exceed 40
403
- # characters.
404
- # @param [String] user_ip
405
- # Deprecated. Please use quotaUser instead.
375
+ # Available to use for quota purposes for server-side applications. Can be any
376
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
406
377
  # @param [Google::Apis::RequestOptions] options
407
378
  # Request-specific options
408
379
  #
@@ -415,34 +386,31 @@ module Google
415
386
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
416
387
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
417
388
  # @raise [Google::Apis::AuthorizationError] Authorization is required
418
- def verify_application(application_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
419
- command = make_simple_command(:get, 'applications/{applicationId}/verify', options)
389
+ def verify_application(application_id, fields: nil, quota_user: nil, options: nil, &block)
390
+ command = make_simple_command(:get, 'games/v1/applications/{applicationId}/verify', options)
420
391
  command.response_representation = Google::Apis::GamesV1::ApplicationVerifyResponse::Representation
421
392
  command.response_class = Google::Apis::GamesV1::ApplicationVerifyResponse
422
393
  command.params['applicationId'] = application_id unless application_id.nil?
423
394
  command.query['fields'] = fields unless fields.nil?
424
395
  command.query['quotaUser'] = quota_user unless quota_user.nil?
425
- command.query['userIp'] = user_ip unless user_ip.nil?
426
396
  execute_or_queue_command(command, &block)
427
397
  end
428
398
 
429
- # Returns a list showing the current progress on events in this application for
430
- # the currently authenticated user.
399
+ # Returns a list showing the current progress on events in this application
400
+ # for the currently authenticated user.
431
401
  # @param [String] language
432
402
  # The preferred language to use for strings returned by this method.
433
403
  # @param [Fixnum] max_results
434
- # The maximum number of events to return in the response, used for paging. For
435
- # any response, the actual number of events to return may be less than the
436
- # specified maxResults.
404
+ # The maximum number of events to return in the response, used for paging.
405
+ # For any response, the actual number of events to return may be less than
406
+ # the specified maxResults.
437
407
  # @param [String] page_token
438
408
  # The token returned by the previous request.
439
409
  # @param [String] fields
440
410
  # Selector specifying which fields to include in a partial response.
441
411
  # @param [String] quota_user
442
- # An opaque string that represents a user for quota purposes. Must not exceed 40
443
- # characters.
444
- # @param [String] user_ip
445
- # Deprecated. Please use quotaUser instead.
412
+ # Available to use for quota purposes for server-side applications. Can be any
413
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
446
414
  # @param [Google::Apis::RequestOptions] options
447
415
  # Request-specific options
448
416
  #
@@ -455,8 +423,8 @@ module Google
455
423
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
456
424
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
457
425
  # @raise [Google::Apis::AuthorizationError] Authorization is required
458
- def list_event_by_player(language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
459
- command = make_simple_command(:get, 'events', options)
426
+ def list_event_by_player(language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
427
+ command = make_simple_command(:get, 'games/v1/events', options)
460
428
  command.response_representation = Google::Apis::GamesV1::ListPlayerEventResponse::Representation
461
429
  command.response_class = Google::Apis::GamesV1::ListPlayerEventResponse
462
430
  command.query['language'] = language unless language.nil?
@@ -464,7 +432,6 @@ module Google
464
432
  command.query['pageToken'] = page_token unless page_token.nil?
465
433
  command.query['fields'] = fields unless fields.nil?
466
434
  command.query['quotaUser'] = quota_user unless quota_user.nil?
467
- command.query['userIp'] = user_ip unless user_ip.nil?
468
435
  execute_or_queue_command(command, &block)
469
436
  end
470
437
 
@@ -473,17 +440,15 @@ module Google
473
440
  # The preferred language to use for strings returned by this method.
474
441
  # @param [Fixnum] max_results
475
442
  # The maximum number of event definitions to return in the response, used for
476
- # paging. For any response, the actual number of event definitions to return may
477
- # be less than the specified maxResults.
443
+ # paging. For any response, the actual number of event definitions to return
444
+ # may be less than the specified `maxResults`.
478
445
  # @param [String] page_token
479
446
  # The token returned by the previous request.
480
447
  # @param [String] fields
481
448
  # Selector specifying which fields to include in a partial response.
482
449
  # @param [String] quota_user
483
- # An opaque string that represents a user for quota purposes. Must not exceed 40
484
- # characters.
485
- # @param [String] user_ip
486
- # Deprecated. Please use quotaUser instead.
450
+ # Available to use for quota purposes for server-side applications. Can be any
451
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
487
452
  # @param [Google::Apis::RequestOptions] options
488
453
  # Request-specific options
489
454
  #
@@ -496,8 +461,8 @@ module Google
496
461
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
497
462
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
498
463
  # @raise [Google::Apis::AuthorizationError] Authorization is required
499
- def list_event_definitions(language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
500
- command = make_simple_command(:get, 'eventDefinitions', options)
464
+ def list_event_definitions(language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
465
+ command = make_simple_command(:get, 'games/v1/eventDefinitions', options)
501
466
  command.response_representation = Google::Apis::GamesV1::ListEventDefinitionResponse::Representation
502
467
  command.response_class = Google::Apis::GamesV1::ListEventDefinitionResponse
503
468
  command.query['language'] = language unless language.nil?
@@ -505,22 +470,19 @@ module Google
505
470
  command.query['pageToken'] = page_token unless page_token.nil?
506
471
  command.query['fields'] = fields unless fields.nil?
507
472
  command.query['quotaUser'] = quota_user unless quota_user.nil?
508
- command.query['userIp'] = user_ip unless user_ip.nil?
509
473
  execute_or_queue_command(command, &block)
510
474
  end
511
475
 
512
- # Records a batch of changes to the number of times events have occurred for the
513
- # currently authenticated user of this application.
476
+ # Records a batch of changes to the number of times events have occurred for
477
+ # the currently authenticated user of this application.
514
478
  # @param [Google::Apis::GamesV1::EventRecordRequest] event_record_request_object
515
479
  # @param [String] language
516
480
  # The preferred language to use for strings returned by this method.
517
481
  # @param [String] fields
518
482
  # Selector specifying which fields to include in a partial response.
519
483
  # @param [String] quota_user
520
- # An opaque string that represents a user for quota purposes. Must not exceed 40
521
- # characters.
522
- # @param [String] user_ip
523
- # Deprecated. Please use quotaUser instead.
484
+ # Available to use for quota purposes for server-side applications. Can be any
485
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
524
486
  # @param [Google::Apis::RequestOptions] options
525
487
  # Request-specific options
526
488
  #
@@ -533,8 +495,8 @@ module Google
533
495
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
534
496
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
535
497
  # @raise [Google::Apis::AuthorizationError] Authorization is required
536
- def record_event(event_record_request_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
537
- command = make_simple_command(:post, 'events', options)
498
+ def record_event(event_record_request_object = nil, language: nil, fields: nil, quota_user: nil, options: nil, &block)
499
+ command = make_simple_command(:post, 'games/v1/events', options)
538
500
  command.request_representation = Google::Apis::GamesV1::EventRecordRequest::Representation
539
501
  command.request_object = event_record_request_object
540
502
  command.response_representation = Google::Apis::GamesV1::UpdateEventResponse::Representation
@@ -542,7 +504,6 @@ module Google
542
504
  command.query['language'] = language unless language.nil?
543
505
  command.query['fields'] = fields unless fields.nil?
544
506
  command.query['quotaUser'] = quota_user unless quota_user.nil?
545
- command.query['userIp'] = user_ip unless user_ip.nil?
546
507
  execute_or_queue_command(command, &block)
547
508
  end
548
509
 
@@ -554,10 +515,8 @@ module Google
554
515
  # @param [String] fields
555
516
  # Selector specifying which fields to include in a partial response.
556
517
  # @param [String] quota_user
557
- # An opaque string that represents a user for quota purposes. Must not exceed 40
558
- # characters.
559
- # @param [String] user_ip
560
- # Deprecated. Please use quotaUser instead.
518
+ # Available to use for quota purposes for server-side applications. Can be any
519
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
561
520
  # @param [Google::Apis::RequestOptions] options
562
521
  # Request-specific options
563
522
  #
@@ -570,15 +529,14 @@ module Google
570
529
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
571
530
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
572
531
  # @raise [Google::Apis::AuthorizationError] Authorization is required
573
- def get_leaderboard(leaderboard_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
574
- command = make_simple_command(:get, 'leaderboards/{leaderboardId}', options)
532
+ def get_leaderboard(leaderboard_id, language: nil, fields: nil, quota_user: nil, options: nil, &block)
533
+ command = make_simple_command(:get, 'games/v1/leaderboards/{leaderboardId}', options)
575
534
  command.response_representation = Google::Apis::GamesV1::Leaderboard::Representation
576
535
  command.response_class = Google::Apis::GamesV1::Leaderboard
577
536
  command.params['leaderboardId'] = leaderboard_id unless leaderboard_id.nil?
578
537
  command.query['language'] = language unless language.nil?
579
538
  command.query['fields'] = fields unless fields.nil?
580
539
  command.query['quotaUser'] = quota_user unless quota_user.nil?
581
- command.query['userIp'] = user_ip unless user_ip.nil?
582
540
  execute_or_queue_command(command, &block)
583
541
  end
584
542
 
@@ -586,18 +544,16 @@ module Google
586
544
  # @param [String] language
587
545
  # The preferred language to use for strings returned by this method.
588
546
  # @param [Fixnum] max_results
589
- # The maximum number of leaderboards to return in the response. For any response,
590
- # the actual number of leaderboards returned may be less than the specified
591
- # maxResults.
547
+ # The maximum number of leaderboards to return in the response. For any
548
+ # response, the actual number of leaderboards returned may be less than the
549
+ # specified `maxResults`.
592
550
  # @param [String] page_token
593
551
  # The token returned by the previous request.
594
552
  # @param [String] fields
595
553
  # Selector specifying which fields to include in a partial response.
596
554
  # @param [String] quota_user
597
- # An opaque string that represents a user for quota purposes. Must not exceed 40
598
- # characters.
599
- # @param [String] user_ip
600
- # Deprecated. Please use quotaUser instead.
555
+ # Available to use for quota purposes for server-side applications. Can be any
556
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
601
557
  # @param [Google::Apis::RequestOptions] options
602
558
  # Request-specific options
603
559
  #
@@ -610,8 +566,8 @@ module Google
610
566
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
611
567
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
612
568
  # @raise [Google::Apis::AuthorizationError] Authorization is required
613
- def list_leaderboards(language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
614
- command = make_simple_command(:get, 'leaderboards', options)
569
+ def list_leaderboards(language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
570
+ command = make_simple_command(:get, 'games/v1/leaderboards', options)
615
571
  command.response_representation = Google::Apis::GamesV1::ListLeaderboardResponse::Representation
616
572
  command.response_class = Google::Apis::GamesV1::ListLeaderboardResponse
617
573
  command.query['language'] = language unless language.nil?
@@ -619,7 +575,6 @@ module Google
619
575
  command.query['pageToken'] = page_token unless page_token.nil?
620
576
  command.query['fields'] = fields unless fields.nil?
621
577
  command.query['quotaUser'] = quota_user unless quota_user.nil?
622
- command.query['userIp'] = user_ip unless user_ip.nil?
623
578
  execute_or_queue_command(command, &block)
624
579
  end
625
580
 
@@ -627,10 +582,8 @@ module Google
627
582
  # @param [String] fields
628
583
  # Selector specifying which fields to include in a partial response.
629
584
  # @param [String] quota_user
630
- # An opaque string that represents a user for quota purposes. Must not exceed 40
631
- # characters.
632
- # @param [String] user_ip
633
- # Deprecated. Please use quotaUser instead.
585
+ # Available to use for quota purposes for server-side applications. Can be any
586
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
634
587
  # @param [Google::Apis::RequestOptions] options
635
588
  # Request-specific options
636
589
  #
@@ -643,38 +596,35 @@ module Google
643
596
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
644
597
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
645
598
  # @raise [Google::Apis::AuthorizationError] Authorization is required
646
- def get_metagame_config(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
647
- command = make_simple_command(:get, 'metagameConfig', options)
599
+ def get_metagame_config(fields: nil, quota_user: nil, options: nil, &block)
600
+ command = make_simple_command(:get, 'games/v1/metagameConfig', options)
648
601
  command.response_representation = Google::Apis::GamesV1::MetagameConfig::Representation
649
602
  command.response_class = Google::Apis::GamesV1::MetagameConfig
650
603
  command.query['fields'] = fields unless fields.nil?
651
604
  command.query['quotaUser'] = quota_user unless quota_user.nil?
652
- command.query['userIp'] = user_ip unless user_ip.nil?
653
605
  execute_or_queue_command(command, &block)
654
606
  end
655
607
 
656
608
  # List play data aggregated per category for the player corresponding to
657
- # playerId.
609
+ # `playerId`.
658
610
  # @param [String] player_id
659
- # A player ID. A value of me may be used in place of the authenticated player's
660
- # ID.
611
+ # A player ID. A value of `me` may be used in place of the
612
+ # authenticated player's ID.
661
613
  # @param [String] collection
662
614
  # The collection of categories for which data will be returned.
663
615
  # @param [String] language
664
616
  # The preferred language to use for strings returned by this method.
665
617
  # @param [Fixnum] max_results
666
- # The maximum number of category resources to return in the response, used for
667
- # paging. For any response, the actual number of category resources returned may
668
- # be less than the specified maxResults.
618
+ # The maximum number of category resources to return in the response, used
619
+ # for paging. For any response, the actual number of category resources
620
+ # returned may be less than the specified `maxResults`.
669
621
  # @param [String] page_token
670
622
  # The token returned by the previous request.
671
623
  # @param [String] fields
672
624
  # Selector specifying which fields to include in a partial response.
673
625
  # @param [String] quota_user
674
- # An opaque string that represents a user for quota purposes. Must not exceed 40
675
- # characters.
676
- # @param [String] user_ip
677
- # Deprecated. Please use quotaUser instead.
626
+ # Available to use for quota purposes for server-side applications. Can be any
627
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
678
628
  # @param [Google::Apis::RequestOptions] options
679
629
  # Request-specific options
680
630
  #
@@ -687,8 +637,8 @@ module Google
687
637
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
688
638
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
689
639
  # @raise [Google::Apis::AuthorizationError] Authorization is required
690
- 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)
691
- command = make_simple_command(:get, 'players/{playerId}/categories/{collection}', options)
640
+ def list_metagame_categories_by_player(player_id, collection, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
641
+ command = make_simple_command(:get, 'games/v1/players/{playerId}/categories/{collection}', options)
692
642
  command.response_representation = Google::Apis::GamesV1::ListCategoryResponse::Representation
693
643
  command.response_class = Google::Apis::GamesV1::ListCategoryResponse
694
644
  command.params['playerId'] = player_id unless player_id.nil?
@@ -698,24 +648,21 @@ module Google
698
648
  command.query['pageToken'] = page_token unless page_token.nil?
699
649
  command.query['fields'] = fields unless fields.nil?
700
650
  command.query['quotaUser'] = quota_user unless quota_user.nil?
701
- command.query['userIp'] = user_ip unless user_ip.nil?
702
651
  execute_or_queue_command(command, &block)
703
652
  end
704
653
 
705
- # Retrieves the Player resource with the given ID. To retrieve the player for
706
- # the currently authenticated user, set playerId to me.
654
+ # Retrieves the Player resource with the given ID. To retrieve the player
655
+ # for the currently authenticated user, set `playerId` to `me`.
707
656
  # @param [String] player_id
708
- # A player ID. A value of me may be used in place of the authenticated player's
709
- # ID.
657
+ # A player ID. A value of `me` may be used in place of the
658
+ # authenticated player's ID.
710
659
  # @param [String] language
711
660
  # The preferred language to use for strings returned by this method.
712
661
  # @param [String] fields
713
662
  # Selector specifying which fields to include in a partial response.
714
663
  # @param [String] quota_user
715
- # An opaque string that represents a user for quota purposes. Must not exceed 40
716
- # characters.
717
- # @param [String] user_ip
718
- # Deprecated. Please use quotaUser instead.
664
+ # Available to use for quota purposes for server-side applications. Can be any
665
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
719
666
  # @param [Google::Apis::RequestOptions] options
720
667
  # Request-specific options
721
668
  #
@@ -728,15 +675,14 @@ module Google
728
675
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
729
676
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
730
677
  # @raise [Google::Apis::AuthorizationError] Authorization is required
731
- def get_player(player_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
732
- command = make_simple_command(:get, 'players/{playerId}', options)
678
+ def get_player(player_id, language: nil, fields: nil, quota_user: nil, options: nil, &block)
679
+ command = make_simple_command(:get, 'games/v1/players/{playerId}', options)
733
680
  command.response_representation = Google::Apis::GamesV1::Player::Representation
734
681
  command.response_class = Google::Apis::GamesV1::Player
735
682
  command.params['playerId'] = player_id unless player_id.nil?
736
683
  command.query['language'] = language unless language.nil?
737
684
  command.query['fields'] = fields unless fields.nil?
738
685
  command.query['quotaUser'] = quota_user unless quota_user.nil?
739
- command.query['userIp'] = user_ip unless user_ip.nil?
740
686
  execute_or_queue_command(command, &block)
741
687
  end
742
688
 
@@ -747,17 +693,15 @@ module Google
747
693
  # The preferred language to use for strings returned by this method.
748
694
  # @param [Fixnum] max_results
749
695
  # The maximum number of player resources to return in the response, used for
750
- # paging. For any response, the actual number of player resources returned may
751
- # be less than the specified maxResults.
696
+ # paging. For any response, the actual number of player resources returned
697
+ # may be less than the specified `maxResults`.
752
698
  # @param [String] page_token
753
699
  # The token returned by the previous request.
754
700
  # @param [String] fields
755
701
  # Selector specifying which fields to include in a partial response.
756
702
  # @param [String] quota_user
757
- # An opaque string that represents a user for quota purposes. Must not exceed 40
758
- # characters.
759
- # @param [String] user_ip
760
- # Deprecated. Please use quotaUser instead.
703
+ # Available to use for quota purposes for server-side applications. Can be any
704
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
761
705
  # @param [Google::Apis::RequestOptions] options
762
706
  # Request-specific options
763
707
  #
@@ -770,8 +714,8 @@ module Google
770
714
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
771
715
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
772
716
  # @raise [Google::Apis::AuthorizationError] Authorization is required
773
- def list_players(collection, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
774
- command = make_simple_command(:get, 'players/me/players/{collection}', options)
717
+ def list_players(collection, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
718
+ command = make_simple_command(:get, 'games/v1/players/me/players/{collection}', options)
775
719
  command.response_representation = Google::Apis::GamesV1::ListPlayerResponse::Representation
776
720
  command.response_class = Google::Apis::GamesV1::ListPlayerResponse
777
721
  command.params['collection'] = collection unless collection.nil?
@@ -780,88 +724,21 @@ module Google
780
724
  command.query['pageToken'] = page_token unless page_token.nil?
781
725
  command.query['fields'] = fields unless fields.nil?
782
726
  command.query['quotaUser'] = quota_user unless quota_user.nil?
783
- command.query['userIp'] = user_ip unless user_ip.nil?
784
- execute_or_queue_command(command, &block)
785
- end
786
-
787
- # Removes a push token for the current user and application. Removing a non-
788
- # existent push token will report success.
789
- # @param [Google::Apis::GamesV1::PushTokenId] push_token_id_object
790
- # @param [String] fields
791
- # Selector specifying which fields to include in a partial response.
792
- # @param [String] quota_user
793
- # An opaque string that represents a user for quota purposes. Must not exceed 40
794
- # characters.
795
- # @param [String] user_ip
796
- # Deprecated. Please use quotaUser instead.
797
- # @param [Google::Apis::RequestOptions] options
798
- # Request-specific options
799
- #
800
- # @yield [result, err] Result & error if block supplied
801
- # @yieldparam result [NilClass] No result returned for this method
802
- # @yieldparam err [StandardError] error object if request failed
803
- #
804
- # @return [void]
805
- #
806
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
807
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
808
- # @raise [Google::Apis::AuthorizationError] Authorization is required
809
- def remove_pushtoken(push_token_id_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
810
- command = make_simple_command(:post, 'pushtokens/remove', options)
811
- command.request_representation = Google::Apis::GamesV1::PushTokenId::Representation
812
- command.request_object = push_token_id_object
813
- command.query['fields'] = fields unless fields.nil?
814
- command.query['quotaUser'] = quota_user unless quota_user.nil?
815
- command.query['userIp'] = user_ip unless user_ip.nil?
816
- execute_or_queue_command(command, &block)
817
- end
818
-
819
- # Registers a push token for the current user and application.
820
- # @param [Google::Apis::GamesV1::PushToken] push_token_object
821
- # @param [String] fields
822
- # Selector specifying which fields to include in a partial response.
823
- # @param [String] quota_user
824
- # An opaque string that represents a user for quota purposes. Must not exceed 40
825
- # characters.
826
- # @param [String] user_ip
827
- # Deprecated. Please use quotaUser instead.
828
- # @param [Google::Apis::RequestOptions] options
829
- # Request-specific options
830
- #
831
- # @yield [result, err] Result & error if block supplied
832
- # @yieldparam result [NilClass] No result returned for this method
833
- # @yieldparam err [StandardError] error object if request failed
834
- #
835
- # @return [void]
836
- #
837
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
838
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
839
- # @raise [Google::Apis::AuthorizationError] Authorization is required
840
- def update_pushtoken(push_token_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
841
- command = make_simple_command(:put, 'pushtokens', options)
842
- command.request_representation = Google::Apis::GamesV1::PushToken::Representation
843
- command.request_object = push_token_object
844
- command.query['fields'] = fields unless fields.nil?
845
- command.query['quotaUser'] = quota_user unless quota_user.nil?
846
- command.query['userIp'] = user_ip unless user_ip.nil?
847
727
  execute_or_queue_command(command, &block)
848
728
  end
849
729
 
850
730
  # Checks whether the games client is out of date.
851
731
  # @param [String] client_revision
852
732
  # The revision of the client SDK used by your application. Format:
853
- # [PLATFORM_TYPE]:[VERSION_NUMBER]. Possible values of PLATFORM_TYPE are:
854
- #
855
- # - "ANDROID" - Client is running the Android SDK.
856
- # - "IOS" - Client is running the iOS SDK.
857
- # - "WEB_APP" - Client is running as a Web App.
733
+ # `[PLATFORM_TYPE]:[VERSION_NUMBER]`. Possible values of `PLATFORM_TYPE` are:
734
+ # * `ANDROID` - Client is running the Android SDK.
735
+ # * `IOS` - Client is running the iOS SDK.
736
+ # * `WEB_APP` - Client is running as a Web App.
858
737
  # @param [String] fields
859
738
  # Selector specifying which fields to include in a partial response.
860
739
  # @param [String] quota_user
861
- # An opaque string that represents a user for quota purposes. Must not exceed 40
862
- # characters.
863
- # @param [String] user_ip
864
- # Deprecated. Please use quotaUser instead.
740
+ # Available to use for quota purposes for server-side applications. Can be any
741
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
865
742
  # @param [Google::Apis::RequestOptions] options
866
743
  # Request-specific options
867
744
  #
@@ -874,330 +751,27 @@ module Google
874
751
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
875
752
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
876
753
  # @raise [Google::Apis::AuthorizationError] Authorization is required
877
- def check_revision(client_revision, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
878
- command = make_simple_command(:get, 'revisions/check', options)
754
+ def check_revision(client_revision, fields: nil, quota_user: nil, options: nil, &block)
755
+ command = make_simple_command(:get, 'games/v1/revisions/check', options)
879
756
  command.response_representation = Google::Apis::GamesV1::CheckRevisionResponse::Representation
880
757
  command.response_class = Google::Apis::GamesV1::CheckRevisionResponse
881
758
  command.query['clientRevision'] = client_revision unless client_revision.nil?
882
759
  command.query['fields'] = fields unless fields.nil?
883
760
  command.query['quotaUser'] = quota_user unless quota_user.nil?
884
- command.query['userIp'] = user_ip unless user_ip.nil?
885
- execute_or_queue_command(command, &block)
886
- end
887
-
888
- # Create a room. For internal use by the Games SDK only. Calling this method
889
- # directly is unsupported.
890
- # @param [Google::Apis::GamesV1::CreateRoomRequest] create_room_request_object
891
- # @param [String] language
892
- # The preferred language to use for strings returned by this method.
893
- # @param [String] fields
894
- # Selector specifying which fields to include in a partial response.
895
- # @param [String] quota_user
896
- # An opaque string that represents a user for quota purposes. Must not exceed 40
897
- # characters.
898
- # @param [String] user_ip
899
- # Deprecated. Please use quotaUser instead.
900
- # @param [Google::Apis::RequestOptions] options
901
- # Request-specific options
902
- #
903
- # @yield [result, err] Result & error if block supplied
904
- # @yieldparam result [Google::Apis::GamesV1::Room] parsed result object
905
- # @yieldparam err [StandardError] error object if request failed
906
- #
907
- # @return [Google::Apis::GamesV1::Room]
908
- #
909
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
910
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
911
- # @raise [Google::Apis::AuthorizationError] Authorization is required
912
- def create_room(create_room_request_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
913
- command = make_simple_command(:post, 'rooms/create', options)
914
- command.request_representation = Google::Apis::GamesV1::CreateRoomRequest::Representation
915
- command.request_object = create_room_request_object
916
- command.response_representation = Google::Apis::GamesV1::Room::Representation
917
- command.response_class = Google::Apis::GamesV1::Room
918
- command.query['language'] = language unless language.nil?
919
- command.query['fields'] = fields unless fields.nil?
920
- command.query['quotaUser'] = quota_user unless quota_user.nil?
921
- command.query['userIp'] = user_ip unless user_ip.nil?
922
- execute_or_queue_command(command, &block)
923
- end
924
-
925
- # Decline an invitation to join a room. For internal use by the Games SDK only.
926
- # Calling this method directly is unsupported.
927
- # @param [String] room_id
928
- # The ID of the room.
929
- # @param [String] language
930
- # The preferred language to use for strings returned by this method.
931
- # @param [String] fields
932
- # Selector specifying which fields to include in a partial response.
933
- # @param [String] quota_user
934
- # An opaque string that represents a user for quota purposes. Must not exceed 40
935
- # characters.
936
- # @param [String] user_ip
937
- # Deprecated. Please use quotaUser instead.
938
- # @param [Google::Apis::RequestOptions] options
939
- # Request-specific options
940
- #
941
- # @yield [result, err] Result & error if block supplied
942
- # @yieldparam result [Google::Apis::GamesV1::Room] parsed result object
943
- # @yieldparam err [StandardError] error object if request failed
944
- #
945
- # @return [Google::Apis::GamesV1::Room]
946
- #
947
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
948
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
949
- # @raise [Google::Apis::AuthorizationError] Authorization is required
950
- def decline_room(room_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
951
- command = make_simple_command(:post, 'rooms/{roomId}/decline', options)
952
- command.response_representation = Google::Apis::GamesV1::Room::Representation
953
- command.response_class = Google::Apis::GamesV1::Room
954
- command.params['roomId'] = room_id unless room_id.nil?
955
- command.query['language'] = language unless language.nil?
956
- command.query['fields'] = fields unless fields.nil?
957
- command.query['quotaUser'] = quota_user unless quota_user.nil?
958
- command.query['userIp'] = user_ip unless user_ip.nil?
959
- execute_or_queue_command(command, &block)
960
- end
961
-
962
- # Dismiss an invitation to join a room. For internal use by the Games SDK only.
963
- # Calling this method directly is unsupported.
964
- # @param [String] room_id
965
- # The ID of the room.
966
- # @param [String] fields
967
- # Selector specifying which fields to include in a partial response.
968
- # @param [String] quota_user
969
- # An opaque string that represents a user for quota purposes. Must not exceed 40
970
- # characters.
971
- # @param [String] user_ip
972
- # Deprecated. Please use quotaUser instead.
973
- # @param [Google::Apis::RequestOptions] options
974
- # Request-specific options
975
- #
976
- # @yield [result, err] Result & error if block supplied
977
- # @yieldparam result [NilClass] No result returned for this method
978
- # @yieldparam err [StandardError] error object if request failed
979
- #
980
- # @return [void]
981
- #
982
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
983
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
984
- # @raise [Google::Apis::AuthorizationError] Authorization is required
985
- def dismiss_room(room_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
986
- command = make_simple_command(:post, 'rooms/{roomId}/dismiss', options)
987
- command.params['roomId'] = room_id unless room_id.nil?
988
- command.query['fields'] = fields unless fields.nil?
989
- command.query['quotaUser'] = quota_user unless quota_user.nil?
990
- command.query['userIp'] = user_ip unless user_ip.nil?
991
- execute_or_queue_command(command, &block)
992
- end
993
-
994
- # Get the data for a room.
995
- # @param [String] room_id
996
- # The ID of the room.
997
- # @param [String] language
998
- # The preferred language to use for strings returned by this method.
999
- # @param [String] fields
1000
- # Selector specifying which fields to include in a partial response.
1001
- # @param [String] quota_user
1002
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1003
- # characters.
1004
- # @param [String] user_ip
1005
- # Deprecated. Please use quotaUser instead.
1006
- # @param [Google::Apis::RequestOptions] options
1007
- # Request-specific options
1008
- #
1009
- # @yield [result, err] Result & error if block supplied
1010
- # @yieldparam result [Google::Apis::GamesV1::Room] parsed result object
1011
- # @yieldparam err [StandardError] error object if request failed
1012
- #
1013
- # @return [Google::Apis::GamesV1::Room]
1014
- #
1015
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1016
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1017
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1018
- def get_room(room_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1019
- command = make_simple_command(:get, 'rooms/{roomId}', options)
1020
- command.response_representation = Google::Apis::GamesV1::Room::Representation
1021
- command.response_class = Google::Apis::GamesV1::Room
1022
- command.params['roomId'] = room_id unless room_id.nil?
1023
- command.query['language'] = language unless language.nil?
1024
- command.query['fields'] = fields unless fields.nil?
1025
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1026
- command.query['userIp'] = user_ip unless user_ip.nil?
1027
- execute_or_queue_command(command, &block)
1028
- end
1029
-
1030
- # Join a room. For internal use by the Games SDK only. Calling this method
1031
- # directly is unsupported.
1032
- # @param [String] room_id
1033
- # The ID of the room.
1034
- # @param [Google::Apis::GamesV1::JoinRoomRequest] join_room_request_object
1035
- # @param [String] language
1036
- # The preferred language to use for strings returned by this method.
1037
- # @param [String] fields
1038
- # Selector specifying which fields to include in a partial response.
1039
- # @param [String] quota_user
1040
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1041
- # characters.
1042
- # @param [String] user_ip
1043
- # Deprecated. Please use quotaUser instead.
1044
- # @param [Google::Apis::RequestOptions] options
1045
- # Request-specific options
1046
- #
1047
- # @yield [result, err] Result & error if block supplied
1048
- # @yieldparam result [Google::Apis::GamesV1::Room] parsed result object
1049
- # @yieldparam err [StandardError] error object if request failed
1050
- #
1051
- # @return [Google::Apis::GamesV1::Room]
1052
- #
1053
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1054
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1055
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1056
- def join_room(room_id, join_room_request_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1057
- command = make_simple_command(:post, 'rooms/{roomId}/join', options)
1058
- command.request_representation = Google::Apis::GamesV1::JoinRoomRequest::Representation
1059
- command.request_object = join_room_request_object
1060
- command.response_representation = Google::Apis::GamesV1::Room::Representation
1061
- command.response_class = Google::Apis::GamesV1::Room
1062
- command.params['roomId'] = room_id unless room_id.nil?
1063
- command.query['language'] = language unless language.nil?
1064
- command.query['fields'] = fields unless fields.nil?
1065
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1066
- command.query['userIp'] = user_ip unless user_ip.nil?
1067
- execute_or_queue_command(command, &block)
1068
- end
1069
-
1070
- # Leave a room. For internal use by the Games SDK only. Calling this method
1071
- # directly is unsupported.
1072
- # @param [String] room_id
1073
- # The ID of the room.
1074
- # @param [Google::Apis::GamesV1::LeaveRoomRequest] leave_room_request_object
1075
- # @param [String] language
1076
- # The preferred language to use for strings returned by this method.
1077
- # @param [String] fields
1078
- # Selector specifying which fields to include in a partial response.
1079
- # @param [String] quota_user
1080
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1081
- # characters.
1082
- # @param [String] user_ip
1083
- # Deprecated. Please use quotaUser instead.
1084
- # @param [Google::Apis::RequestOptions] options
1085
- # Request-specific options
1086
- #
1087
- # @yield [result, err] Result & error if block supplied
1088
- # @yieldparam result [Google::Apis::GamesV1::Room] parsed result object
1089
- # @yieldparam err [StandardError] error object if request failed
1090
- #
1091
- # @return [Google::Apis::GamesV1::Room]
1092
- #
1093
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1094
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1095
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1096
- def leave_room(room_id, leave_room_request_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1097
- command = make_simple_command(:post, 'rooms/{roomId}/leave', options)
1098
- command.request_representation = Google::Apis::GamesV1::LeaveRoomRequest::Representation
1099
- command.request_object = leave_room_request_object
1100
- command.response_representation = Google::Apis::GamesV1::Room::Representation
1101
- command.response_class = Google::Apis::GamesV1::Room
1102
- command.params['roomId'] = room_id unless room_id.nil?
1103
- command.query['language'] = language unless language.nil?
1104
- command.query['fields'] = fields unless fields.nil?
1105
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1106
- command.query['userIp'] = user_ip unless user_ip.nil?
1107
- execute_or_queue_command(command, &block)
1108
- end
1109
-
1110
- # Returns invitations to join rooms.
1111
- # @param [String] language
1112
- # The preferred language to use for strings returned by this method.
1113
- # @param [Fixnum] max_results
1114
- # The maximum number of rooms to return in the response, used for paging. For
1115
- # any response, the actual number of rooms to return may be less than the
1116
- # specified maxResults.
1117
- # @param [String] page_token
1118
- # The token returned by the previous request.
1119
- # @param [String] fields
1120
- # Selector specifying which fields to include in a partial response.
1121
- # @param [String] quota_user
1122
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1123
- # characters.
1124
- # @param [String] user_ip
1125
- # Deprecated. Please use quotaUser instead.
1126
- # @param [Google::Apis::RequestOptions] options
1127
- # Request-specific options
1128
- #
1129
- # @yield [result, err] Result & error if block supplied
1130
- # @yieldparam result [Google::Apis::GamesV1::RoomList] parsed result object
1131
- # @yieldparam err [StandardError] error object if request failed
1132
- #
1133
- # @return [Google::Apis::GamesV1::RoomList]
1134
- #
1135
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1136
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1137
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1138
- def list_rooms(language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1139
- command = make_simple_command(:get, 'rooms', options)
1140
- command.response_representation = Google::Apis::GamesV1::RoomList::Representation
1141
- command.response_class = Google::Apis::GamesV1::RoomList
1142
- command.query['language'] = language unless language.nil?
1143
- command.query['maxResults'] = max_results unless max_results.nil?
1144
- command.query['pageToken'] = page_token unless page_token.nil?
1145
- command.query['fields'] = fields unless fields.nil?
1146
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1147
- command.query['userIp'] = user_ip unless user_ip.nil?
1148
- execute_or_queue_command(command, &block)
1149
- end
1150
-
1151
- # Updates sent by a client reporting the status of peers in a room. For internal
1152
- # use by the Games SDK only. Calling this method directly is unsupported.
1153
- # @param [String] room_id
1154
- # The ID of the room.
1155
- # @param [Google::Apis::GamesV1::RoomP2PStatuses] room_p2_p_statuses_object
1156
- # @param [String] language
1157
- # The preferred language to use for strings returned by this method.
1158
- # @param [String] fields
1159
- # Selector specifying which fields to include in a partial response.
1160
- # @param [String] quota_user
1161
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1162
- # characters.
1163
- # @param [String] user_ip
1164
- # Deprecated. Please use quotaUser instead.
1165
- # @param [Google::Apis::RequestOptions] options
1166
- # Request-specific options
1167
- #
1168
- # @yield [result, err] Result & error if block supplied
1169
- # @yieldparam result [Google::Apis::GamesV1::RoomStatus] parsed result object
1170
- # @yieldparam err [StandardError] error object if request failed
1171
- #
1172
- # @return [Google::Apis::GamesV1::RoomStatus]
1173
- #
1174
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1175
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1176
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1177
- 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)
1178
- command = make_simple_command(:post, 'rooms/{roomId}/reportstatus', options)
1179
- command.request_representation = Google::Apis::GamesV1::RoomP2PStatuses::Representation
1180
- command.request_object = room_p2_p_statuses_object
1181
- command.response_representation = Google::Apis::GamesV1::RoomStatus::Representation
1182
- command.response_class = Google::Apis::GamesV1::RoomStatus
1183
- command.params['roomId'] = room_id unless room_id.nil?
1184
- command.query['language'] = language unless language.nil?
1185
- command.query['fields'] = fields unless fields.nil?
1186
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1187
- command.query['userIp'] = user_ip unless user_ip.nil?
1188
761
  execute_or_queue_command(command, &block)
1189
762
  end
1190
763
 
1191
764
  # Get high scores, and optionally ranks, in leaderboards for the currently
1192
- # authenticated player. For a specific time span, leaderboardId can be set to
1193
- # ALL to retrieve data for all leaderboards in a given time span.
1194
- # NOTE: You cannot ask for 'ALL' leaderboards and 'ALL' timeSpans in the same
1195
- # request; only one parameter may be set to 'ALL'.
765
+ # authenticated player. For a specific time span, `leaderboardId`
766
+ # can be set to `ALL` to retrieve data for all leaderboards in a
767
+ # given time span. `NOTE: You cannot ask for 'ALL' leaderboards and
768
+ # 'ALL' timeSpans in the same request; only one parameter may be set to
769
+ # 'ALL'.
1196
770
  # @param [String] player_id
1197
- # A player ID. A value of me may be used in place of the authenticated player's
1198
- # ID.
771
+ # A player ID. A value of `me` may be used in place of the
772
+ # authenticated player's ID.
1199
773
  # @param [String] leaderboard_id
1200
- # The ID of the leaderboard. Can be set to 'ALL' to retrieve data for all
774
+ # The ID of the leaderboard. Can be set to 'ALL' to retrieve data for all
1201
775
  # leaderboards for this application.
1202
776
  # @param [String] time_span
1203
777
  # The time span for the scores and ranks you're requesting.
@@ -1207,18 +781,16 @@ module Google
1207
781
  # @param [String] language
1208
782
  # The preferred language to use for strings returned by this method.
1209
783
  # @param [Fixnum] max_results
1210
- # The maximum number of leaderboard scores to return in the response. For any
1211
- # response, the actual number of leaderboard scores returned may be less than
1212
- # the specified maxResults.
784
+ # The maximum number of leaderboard scores to return in the response. For
785
+ # any response, the actual number of leaderboard scores returned may be less
786
+ # than the specified `maxResults`.
1213
787
  # @param [String] page_token
1214
788
  # The token returned by the previous request.
1215
789
  # @param [String] fields
1216
790
  # Selector specifying which fields to include in a partial response.
1217
791
  # @param [String] quota_user
1218
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1219
- # characters.
1220
- # @param [String] user_ip
1221
- # Deprecated. Please use quotaUser instead.
792
+ # Available to use for quota purposes for server-side applications. Can be any
793
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1222
794
  # @param [Google::Apis::RequestOptions] options
1223
795
  # Request-specific options
1224
796
  #
@@ -1231,8 +803,8 @@ module Google
1231
803
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1232
804
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1233
805
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1234
- 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)
1235
- command = make_simple_command(:get, 'players/{playerId}/leaderboards/{leaderboardId}/scores/{timeSpan}', options)
806
+ 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, options: nil, &block)
807
+ command = make_simple_command(:get, 'games/v1/players/{playerId}/leaderboards/{leaderboardId}/scores/{timeSpan}', options)
1236
808
  command.response_representation = Google::Apis::GamesV1::ListPlayerLeaderboardScoreResponse::Representation
1237
809
  command.response_class = Google::Apis::GamesV1::ListPlayerLeaderboardScoreResponse
1238
810
  command.params['playerId'] = player_id unless player_id.nil?
@@ -1244,7 +816,6 @@ module Google
1244
816
  command.query['pageToken'] = page_token unless page_token.nil?
1245
817
  command.query['fields'] = fields unless fields.nil?
1246
818
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1247
- command.query['userIp'] = user_ip unless user_ip.nil?
1248
819
  execute_or_queue_command(command, &block)
1249
820
  end
1250
821
 
@@ -1258,18 +829,16 @@ module Google
1258
829
  # @param [String] language
1259
830
  # The preferred language to use for strings returned by this method.
1260
831
  # @param [Fixnum] max_results
1261
- # The maximum number of leaderboard scores to return in the response. For any
1262
- # response, the actual number of leaderboard scores returned may be less than
1263
- # the specified maxResults.
832
+ # The maximum number of leaderboard scores to return in the response. For
833
+ # any response, the actual number of leaderboard scores returned may be less
834
+ # than the specified `maxResults`.
1264
835
  # @param [String] page_token
1265
836
  # The token returned by the previous request.
1266
837
  # @param [String] fields
1267
838
  # Selector specifying which fields to include in a partial response.
1268
839
  # @param [String] quota_user
1269
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1270
- # characters.
1271
- # @param [String] user_ip
1272
- # Deprecated. Please use quotaUser instead.
840
+ # Available to use for quota purposes for server-side applications. Can be any
841
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1273
842
  # @param [Google::Apis::RequestOptions] options
1274
843
  # Request-specific options
1275
844
  #
@@ -1282,8 +851,8 @@ module Google
1282
851
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1283
852
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1284
853
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1285
- 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)
1286
- command = make_simple_command(:get, 'leaderboards/{leaderboardId}/scores/{collection}', options)
854
+ def list_scores(leaderboard_id, collection, time_span, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
855
+ command = make_simple_command(:get, 'games/v1/leaderboards/{leaderboardId}/scores/{collection}', options)
1287
856
  command.response_representation = Google::Apis::GamesV1::LeaderboardScores::Representation
1288
857
  command.response_class = Google::Apis::GamesV1::LeaderboardScores
1289
858
  command.params['leaderboardId'] = leaderboard_id unless leaderboard_id.nil?
@@ -1294,7 +863,6 @@ module Google
1294
863
  command.query['timeSpan'] = time_span unless time_span.nil?
1295
864
  command.query['fields'] = fields unless fields.nil?
1296
865
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1297
- command.query['userIp'] = user_ip unless user_ip.nil?
1298
866
  execute_or_queue_command(command, &block)
1299
867
  end
1300
868
 
@@ -1308,26 +876,24 @@ module Google
1308
876
  # @param [String] language
1309
877
  # The preferred language to use for strings returned by this method.
1310
878
  # @param [Fixnum] max_results
1311
- # The maximum number of leaderboard scores to return in the response. For any
1312
- # response, the actual number of leaderboard scores returned may be less than
1313
- # the specified maxResults.
879
+ # The maximum number of leaderboard scores to return in the response. For
880
+ # any response, the actual number of leaderboard scores returned may be less
881
+ # than the specified `maxResults`.
1314
882
  # @param [String] page_token
1315
883
  # The token returned by the previous request.
1316
884
  # @param [Fixnum] results_above
1317
- # The preferred number of scores to return above the player's score. More scores
1318
- # may be returned if the player is at the bottom of the leaderboard; fewer may
1319
- # be returned if the player is at the top. Must be less than or equal to
1320
- # maxResults.
885
+ # The preferred number of scores to return above the player's score. More
886
+ # scores may be returned if the player is at the bottom of the leaderboard;
887
+ # fewer may be returned if the player is at the top. Must be less than or
888
+ # equal to maxResults.
1321
889
  # @param [Boolean] return_top_if_absent
1322
890
  # True if the top scores should be returned when the player is not in the
1323
891
  # leaderboard. Defaults to true.
1324
892
  # @param [String] fields
1325
893
  # Selector specifying which fields to include in a partial response.
1326
894
  # @param [String] quota_user
1327
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1328
- # characters.
1329
- # @param [String] user_ip
1330
- # Deprecated. Please use quotaUser instead.
895
+ # Available to use for quota purposes for server-side applications. Can be any
896
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1331
897
  # @param [Google::Apis::RequestOptions] options
1332
898
  # Request-specific options
1333
899
  #
@@ -1340,8 +906,8 @@ module Google
1340
906
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1341
907
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1342
908
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1343
- 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)
1344
- command = make_simple_command(:get, 'leaderboards/{leaderboardId}/window/{collection}', options)
909
+ 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, options: nil, &block)
910
+ command = make_simple_command(:get, 'games/v1/leaderboards/{leaderboardId}/window/{collection}', options)
1345
911
  command.response_representation = Google::Apis::GamesV1::LeaderboardScores::Representation
1346
912
  command.response_class = Google::Apis::GamesV1::LeaderboardScores
1347
913
  command.params['leaderboardId'] = leaderboard_id unless leaderboard_id.nil?
@@ -1354,7 +920,6 @@ module Google
1354
920
  command.query['timeSpan'] = time_span unless time_span.nil?
1355
921
  command.query['fields'] = fields unless fields.nil?
1356
922
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1357
- command.query['userIp'] = user_ip unless user_ip.nil?
1358
923
  execute_or_queue_command(command, &block)
1359
924
  end
1360
925
 
@@ -1363,23 +928,22 @@ module Google
1363
928
  # The ID of the leaderboard.
1364
929
  # @param [Fixnum] score
1365
930
  # The score you're submitting. The submitted score is ignored if it is worse
1366
- # than a previously submitted score, where worse depends on the leaderboard sort
1367
- # order. The meaning of the score value depends on the leaderboard format type.
1368
- # For fixed-point, the score represents the raw value. For time, the score
1369
- # represents elapsed time in milliseconds. For currency, the score represents a
1370
- # value in micro units.
931
+ # than a previously submitted score, where worse depends on the leaderboard
932
+ # sort order. The meaning of the score value depends on the leaderboard
933
+ # format type. For fixed-point, the score represents the raw value. For
934
+ # time, the score represents elapsed time in milliseconds. For currency, the
935
+ # score represents a value in micro units.
1371
936
  # @param [String] language
1372
937
  # The preferred language to use for strings returned by this method.
1373
938
  # @param [String] score_tag
1374
- # Additional information about the score you're submitting. Values must contain
1375
- # no more than 64 URI-safe characters as defined by section 2.3 of RFC 3986.
939
+ # Additional information about the score you're submitting. Values must
940
+ # contain no more than 64 URI-safe characters as defined by section 2.3 of
941
+ # RFC 3986.
1376
942
  # @param [String] fields
1377
943
  # Selector specifying which fields to include in a partial response.
1378
944
  # @param [String] quota_user
1379
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1380
- # characters.
1381
- # @param [String] user_ip
1382
- # Deprecated. Please use quotaUser instead.
945
+ # Available to use for quota purposes for server-side applications. Can be any
946
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1383
947
  # @param [Google::Apis::RequestOptions] options
1384
948
  # Request-specific options
1385
949
  #
@@ -1392,8 +956,8 @@ module Google
1392
956
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1393
957
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1394
958
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1395
- def submit_score(leaderboard_id, score, language: nil, score_tag: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1396
- command = make_simple_command(:post, 'leaderboards/{leaderboardId}/scores', options)
959
+ def submit_score(leaderboard_id, score, language: nil, score_tag: nil, fields: nil, quota_user: nil, options: nil, &block)
960
+ command = make_simple_command(:post, 'games/v1/leaderboards/{leaderboardId}/scores', options)
1397
961
  command.response_representation = Google::Apis::GamesV1::PlayerScoreResponse::Representation
1398
962
  command.response_class = Google::Apis::GamesV1::PlayerScoreResponse
1399
963
  command.params['leaderboardId'] = leaderboard_id unless leaderboard_id.nil?
@@ -1402,7 +966,6 @@ module Google
1402
966
  command.query['scoreTag'] = score_tag unless score_tag.nil?
1403
967
  command.query['fields'] = fields unless fields.nil?
1404
968
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1405
- command.query['userIp'] = user_ip unless user_ip.nil?
1406
969
  execute_or_queue_command(command, &block)
1407
970
  end
1408
971
 
@@ -1413,10 +976,8 @@ module Google
1413
976
  # @param [String] fields
1414
977
  # Selector specifying which fields to include in a partial response.
1415
978
  # @param [String] quota_user
1416
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1417
- # characters.
1418
- # @param [String] user_ip
1419
- # Deprecated. Please use quotaUser instead.
979
+ # Available to use for quota purposes for server-side applications. Can be any
980
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1420
981
  # @param [Google::Apis::RequestOptions] options
1421
982
  # Request-specific options
1422
983
  #
@@ -1429,8 +990,8 @@ module Google
1429
990
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1430
991
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1431
992
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1432
- def submit_score_multiple(player_score_submission_list_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1433
- command = make_simple_command(:post, 'leaderboards/scores', options)
993
+ def submit_score_multiple(player_score_submission_list_object = nil, language: nil, fields: nil, quota_user: nil, options: nil, &block)
994
+ command = make_simple_command(:post, 'games/v1/leaderboards/scores', options)
1434
995
  command.request_representation = Google::Apis::GamesV1::PlayerScoreSubmissionList::Representation
1435
996
  command.request_object = player_score_submission_list_object
1436
997
  command.response_representation = Google::Apis::GamesV1::ListPlayerScoreResponse::Representation
@@ -1438,7 +999,6 @@ module Google
1438
999
  command.query['language'] = language unless language.nil?
1439
1000
  command.query['fields'] = fields unless fields.nil?
1440
1001
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1441
- command.query['userIp'] = user_ip unless user_ip.nil?
1442
1002
  execute_or_queue_command(command, &block)
1443
1003
  end
1444
1004
 
@@ -1450,10 +1010,8 @@ module Google
1450
1010
  # @param [String] fields
1451
1011
  # Selector specifying which fields to include in a partial response.
1452
1012
  # @param [String] quota_user
1453
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1454
- # characters.
1455
- # @param [String] user_ip
1456
- # Deprecated. Please use quotaUser instead.
1013
+ # Available to use for quota purposes for server-side applications. Can be any
1014
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1457
1015
  # @param [Google::Apis::RequestOptions] options
1458
1016
  # Request-specific options
1459
1017
  #
@@ -1466,38 +1024,35 @@ module Google
1466
1024
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1467
1025
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1468
1026
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1469
- def get_snapshot(snapshot_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1470
- command = make_simple_command(:get, 'snapshots/{snapshotId}', options)
1027
+ def get_snapshot(snapshot_id, language: nil, fields: nil, quota_user: nil, options: nil, &block)
1028
+ command = make_simple_command(:get, 'games/v1/snapshots/{snapshotId}', options)
1471
1029
  command.response_representation = Google::Apis::GamesV1::Snapshot::Representation
1472
1030
  command.response_class = Google::Apis::GamesV1::Snapshot
1473
1031
  command.params['snapshotId'] = snapshot_id unless snapshot_id.nil?
1474
1032
  command.query['language'] = language unless language.nil?
1475
1033
  command.query['fields'] = fields unless fields.nil?
1476
1034
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1477
- command.query['userIp'] = user_ip unless user_ip.nil?
1478
1035
  execute_or_queue_command(command, &block)
1479
1036
  end
1480
1037
 
1481
1038
  # Retrieves a list of snapshots created by your application for the player
1482
1039
  # corresponding to the player ID.
1483
1040
  # @param [String] player_id
1484
- # A player ID. A value of me may be used in place of the authenticated player's
1485
- # ID.
1041
+ # A player ID. A value of `me` may be used in place of the authenticated
1042
+ # player's ID.
1486
1043
  # @param [String] language
1487
1044
  # The preferred language to use for strings returned by this method.
1488
1045
  # @param [Fixnum] max_results
1489
- # The maximum number of snapshot resources to return in the response, used for
1490
- # paging. For any response, the actual number of snapshot resources returned may
1491
- # be less than the specified maxResults.
1046
+ # The maximum number of snapshot resources to return in the response, used
1047
+ # for paging. For any response, the actual number of snapshot resources
1048
+ # returned may be less than the specified `maxResults`.
1492
1049
  # @param [String] page_token
1493
1050
  # The token returned by the previous request.
1494
1051
  # @param [String] fields
1495
1052
  # Selector specifying which fields to include in a partial response.
1496
1053
  # @param [String] quota_user
1497
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1498
- # characters.
1499
- # @param [String] user_ip
1500
- # Deprecated. Please use quotaUser instead.
1054
+ # Available to use for quota purposes for server-side applications. Can be any
1055
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1501
1056
  # @param [Google::Apis::RequestOptions] options
1502
1057
  # Request-specific options
1503
1058
  #
@@ -1510,8 +1065,8 @@ module Google
1510
1065
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1511
1066
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1512
1067
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1513
- def list_snapshots(player_id, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1514
- command = make_simple_command(:get, 'players/{playerId}/snapshots', options)
1068
+ def list_snapshots(player_id, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1069
+ command = make_simple_command(:get, 'games/v1/players/{playerId}/snapshots', options)
1515
1070
  command.response_representation = Google::Apis::GamesV1::ListSnapshotResponse::Representation
1516
1071
  command.response_class = Google::Apis::GamesV1::ListSnapshotResponse
1517
1072
  command.params['playerId'] = player_id unless player_id.nil?
@@ -1520,530 +1075,34 @@ module Google
1520
1075
  command.query['pageToken'] = page_token unless page_token.nil?
1521
1076
  command.query['fields'] = fields unless fields.nil?
1522
1077
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1523
- command.query['userIp'] = user_ip unless user_ip.nil?
1524
- execute_or_queue_command(command, &block)
1525
- end
1526
-
1527
- # Cancel a turn-based match.
1528
- # @param [String] match_id
1529
- # The ID of the match.
1530
- # @param [String] fields
1531
- # Selector specifying which fields to include in a partial response.
1532
- # @param [String] quota_user
1533
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1534
- # characters.
1535
- # @param [String] user_ip
1536
- # Deprecated. Please use quotaUser instead.
1537
- # @param [Google::Apis::RequestOptions] options
1538
- # Request-specific options
1539
- #
1540
- # @yield [result, err] Result & error if block supplied
1541
- # @yieldparam result [NilClass] No result returned for this method
1542
- # @yieldparam err [StandardError] error object if request failed
1543
- #
1544
- # @return [void]
1545
- #
1546
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1547
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1548
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1549
- def cancel_turn_based_match(match_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1550
- command = make_simple_command(:put, 'turnbasedmatches/{matchId}/cancel', options)
1551
- command.params['matchId'] = match_id unless match_id.nil?
1552
- command.query['fields'] = fields unless fields.nil?
1553
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1554
- command.query['userIp'] = user_ip unless user_ip.nil?
1555
- execute_or_queue_command(command, &block)
1556
- end
1557
-
1558
- # Create a turn-based match.
1559
- # @param [Google::Apis::GamesV1::CreateTurnBasedMatchRequest] create_turn_based_match_request_object
1560
- # @param [String] language
1561
- # The preferred language to use for strings returned by this method.
1562
- # @param [String] fields
1563
- # Selector specifying which fields to include in a partial response.
1564
- # @param [String] quota_user
1565
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1566
- # characters.
1567
- # @param [String] user_ip
1568
- # Deprecated. Please use quotaUser instead.
1569
- # @param [Google::Apis::RequestOptions] options
1570
- # Request-specific options
1571
- #
1572
- # @yield [result, err] Result & error if block supplied
1573
- # @yieldparam result [Google::Apis::GamesV1::TurnBasedMatch] parsed result object
1574
- # @yieldparam err [StandardError] error object if request failed
1575
- #
1576
- # @return [Google::Apis::GamesV1::TurnBasedMatch]
1577
- #
1578
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1579
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1580
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1581
- 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)
1582
- command = make_simple_command(:post, 'turnbasedmatches/create', options)
1583
- command.request_representation = Google::Apis::GamesV1::CreateTurnBasedMatchRequest::Representation
1584
- command.request_object = create_turn_based_match_request_object
1585
- command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation
1586
- command.response_class = Google::Apis::GamesV1::TurnBasedMatch
1587
- command.query['language'] = language unless language.nil?
1588
- command.query['fields'] = fields unless fields.nil?
1589
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1590
- command.query['userIp'] = user_ip unless user_ip.nil?
1591
- execute_or_queue_command(command, &block)
1592
- end
1593
-
1594
- # Decline an invitation to play a turn-based match.
1595
- # @param [String] match_id
1596
- # The ID of the match.
1597
- # @param [String] language
1598
- # The preferred language to use for strings returned by this method.
1599
- # @param [String] fields
1600
- # Selector specifying which fields to include in a partial response.
1601
- # @param [String] quota_user
1602
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1603
- # characters.
1604
- # @param [String] user_ip
1605
- # Deprecated. Please use quotaUser instead.
1606
- # @param [Google::Apis::RequestOptions] options
1607
- # Request-specific options
1608
- #
1609
- # @yield [result, err] Result & error if block supplied
1610
- # @yieldparam result [Google::Apis::GamesV1::TurnBasedMatch] parsed result object
1611
- # @yieldparam err [StandardError] error object if request failed
1612
- #
1613
- # @return [Google::Apis::GamesV1::TurnBasedMatch]
1614
- #
1615
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1616
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1617
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1618
- def decline_turn_based_match(match_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1619
- command = make_simple_command(:put, 'turnbasedmatches/{matchId}/decline', options)
1620
- command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation
1621
- command.response_class = Google::Apis::GamesV1::TurnBasedMatch
1622
- command.params['matchId'] = match_id unless match_id.nil?
1623
- command.query['language'] = language unless language.nil?
1624
- command.query['fields'] = fields unless fields.nil?
1625
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1626
- command.query['userIp'] = user_ip unless user_ip.nil?
1627
- execute_or_queue_command(command, &block)
1628
- end
1629
-
1630
- # Dismiss a turn-based match from the match list. The match will no longer show
1631
- # up in the list and will not generate notifications.
1632
- # @param [String] match_id
1633
- # The ID of the match.
1634
- # @param [String] fields
1635
- # Selector specifying which fields to include in a partial response.
1636
- # @param [String] quota_user
1637
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1638
- # characters.
1639
- # @param [String] user_ip
1640
- # Deprecated. Please use quotaUser instead.
1641
- # @param [Google::Apis::RequestOptions] options
1642
- # Request-specific options
1643
- #
1644
- # @yield [result, err] Result & error if block supplied
1645
- # @yieldparam result [NilClass] No result returned for this method
1646
- # @yieldparam err [StandardError] error object if request failed
1647
- #
1648
- # @return [void]
1649
- #
1650
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1651
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1652
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1653
- def dismiss_turn_based_match(match_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1654
- command = make_simple_command(:put, 'turnbasedmatches/{matchId}/dismiss', options)
1655
- command.params['matchId'] = match_id unless match_id.nil?
1656
- command.query['fields'] = fields unless fields.nil?
1657
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1658
- command.query['userIp'] = user_ip unless user_ip.nil?
1659
- execute_or_queue_command(command, &block)
1660
- end
1661
-
1662
- # Finish a turn-based match. Each player should make this call once, after all
1663
- # results are in. Only the player whose turn it is may make the first call to
1664
- # Finish, and can pass in the final match state.
1665
- # @param [String] match_id
1666
- # The ID of the match.
1667
- # @param [Google::Apis::GamesV1::TurnBasedMatchResults] turn_based_match_results_object
1668
- # @param [String] language
1669
- # The preferred language to use for strings returned by this method.
1670
- # @param [String] fields
1671
- # Selector specifying which fields to include in a partial response.
1672
- # @param [String] quota_user
1673
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1674
- # characters.
1675
- # @param [String] user_ip
1676
- # Deprecated. Please use quotaUser instead.
1677
- # @param [Google::Apis::RequestOptions] options
1678
- # Request-specific options
1679
- #
1680
- # @yield [result, err] Result & error if block supplied
1681
- # @yieldparam result [Google::Apis::GamesV1::TurnBasedMatch] parsed result object
1682
- # @yieldparam err [StandardError] error object if request failed
1683
- #
1684
- # @return [Google::Apis::GamesV1::TurnBasedMatch]
1685
- #
1686
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1687
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1688
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1689
- 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)
1690
- command = make_simple_command(:put, 'turnbasedmatches/{matchId}/finish', options)
1691
- command.request_representation = Google::Apis::GamesV1::TurnBasedMatchResults::Representation
1692
- command.request_object = turn_based_match_results_object
1693
- command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation
1694
- command.response_class = Google::Apis::GamesV1::TurnBasedMatch
1695
- command.params['matchId'] = match_id unless match_id.nil?
1696
- command.query['language'] = language unless language.nil?
1697
- command.query['fields'] = fields unless fields.nil?
1698
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1699
- command.query['userIp'] = user_ip unless user_ip.nil?
1700
- execute_or_queue_command(command, &block)
1701
- end
1702
-
1703
- # Get the data for a turn-based match.
1704
- # @param [String] match_id
1705
- # The ID of the match.
1706
- # @param [Boolean] include_match_data
1707
- # Get match data along with metadata.
1708
- # @param [String] language
1709
- # The preferred language to use for strings returned by this method.
1710
- # @param [String] fields
1711
- # Selector specifying which fields to include in a partial response.
1712
- # @param [String] quota_user
1713
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1714
- # characters.
1715
- # @param [String] user_ip
1716
- # Deprecated. Please use quotaUser instead.
1717
- # @param [Google::Apis::RequestOptions] options
1718
- # Request-specific options
1719
- #
1720
- # @yield [result, err] Result & error if block supplied
1721
- # @yieldparam result [Google::Apis::GamesV1::TurnBasedMatch] parsed result object
1722
- # @yieldparam err [StandardError] error object if request failed
1723
- #
1724
- # @return [Google::Apis::GamesV1::TurnBasedMatch]
1725
- #
1726
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1727
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1728
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1729
- def get_turn_based_match(match_id, include_match_data: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1730
- command = make_simple_command(:get, 'turnbasedmatches/{matchId}', options)
1731
- command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation
1732
- command.response_class = Google::Apis::GamesV1::TurnBasedMatch
1733
- command.params['matchId'] = match_id unless match_id.nil?
1734
- command.query['includeMatchData'] = include_match_data unless include_match_data.nil?
1735
- command.query['language'] = language unless language.nil?
1736
- command.query['fields'] = fields unless fields.nil?
1737
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1738
- command.query['userIp'] = user_ip unless user_ip.nil?
1739
- execute_or_queue_command(command, &block)
1740
- end
1741
-
1742
- # Join a turn-based match.
1743
- # @param [String] match_id
1744
- # The ID of the match.
1745
- # @param [String] language
1746
- # The preferred language to use for strings returned by this method.
1747
- # @param [String] fields
1748
- # Selector specifying which fields to include in a partial response.
1749
- # @param [String] quota_user
1750
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1751
- # characters.
1752
- # @param [String] user_ip
1753
- # Deprecated. Please use quotaUser instead.
1754
- # @param [Google::Apis::RequestOptions] options
1755
- # Request-specific options
1756
- #
1757
- # @yield [result, err] Result & error if block supplied
1758
- # @yieldparam result [Google::Apis::GamesV1::TurnBasedMatch] parsed result object
1759
- # @yieldparam err [StandardError] error object if request failed
1760
- #
1761
- # @return [Google::Apis::GamesV1::TurnBasedMatch]
1762
- #
1763
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1764
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1765
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1766
- def join_turn_based_match(match_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1767
- command = make_simple_command(:put, 'turnbasedmatches/{matchId}/join', options)
1768
- command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation
1769
- command.response_class = Google::Apis::GamesV1::TurnBasedMatch
1770
- command.params['matchId'] = match_id unless match_id.nil?
1771
- command.query['language'] = language unless language.nil?
1772
- command.query['fields'] = fields unless fields.nil?
1773
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1774
- command.query['userIp'] = user_ip unless user_ip.nil?
1775
- execute_or_queue_command(command, &block)
1776
- end
1777
-
1778
- # Leave a turn-based match when it is not the current player's turn, without
1779
- # canceling the match.
1780
- # @param [String] match_id
1781
- # The ID of the match.
1782
- # @param [String] language
1783
- # The preferred language to use for strings returned by this method.
1784
- # @param [String] fields
1785
- # Selector specifying which fields to include in a partial response.
1786
- # @param [String] quota_user
1787
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1788
- # characters.
1789
- # @param [String] user_ip
1790
- # Deprecated. Please use quotaUser instead.
1791
- # @param [Google::Apis::RequestOptions] options
1792
- # Request-specific options
1793
- #
1794
- # @yield [result, err] Result & error if block supplied
1795
- # @yieldparam result [Google::Apis::GamesV1::TurnBasedMatch] parsed result object
1796
- # @yieldparam err [StandardError] error object if request failed
1797
- #
1798
- # @return [Google::Apis::GamesV1::TurnBasedMatch]
1799
- #
1800
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1801
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1802
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1803
- def leave_turn_based_match(match_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1804
- command = make_simple_command(:put, 'turnbasedmatches/{matchId}/leave', options)
1805
- command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation
1806
- command.response_class = Google::Apis::GamesV1::TurnBasedMatch
1807
- command.params['matchId'] = match_id unless match_id.nil?
1808
- command.query['language'] = language unless language.nil?
1809
- command.query['fields'] = fields unless fields.nil?
1810
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1811
- command.query['userIp'] = user_ip unless user_ip.nil?
1812
- execute_or_queue_command(command, &block)
1813
- end
1814
-
1815
- # Leave a turn-based match during the current player's turn, without canceling
1816
- # the match.
1817
- # @param [String] match_id
1818
- # The ID of the match.
1819
- # @param [Fixnum] match_version
1820
- # The version of the match being updated.
1821
- # @param [String] language
1822
- # The preferred language to use for strings returned by this method.
1823
- # @param [String] pending_participant_id
1824
- # The ID of another participant who should take their turn next. If not set, the
1825
- # match will wait for other player(s) to join via automatching; this is only
1826
- # valid if automatch criteria is set on the match with remaining slots for
1827
- # automatched players.
1828
- # @param [String] fields
1829
- # Selector specifying which fields to include in a partial response.
1830
- # @param [String] quota_user
1831
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1832
- # characters.
1833
- # @param [String] user_ip
1834
- # Deprecated. Please use quotaUser instead.
1835
- # @param [Google::Apis::RequestOptions] options
1836
- # Request-specific options
1837
- #
1838
- # @yield [result, err] Result & error if block supplied
1839
- # @yieldparam result [Google::Apis::GamesV1::TurnBasedMatch] parsed result object
1840
- # @yieldparam err [StandardError] error object if request failed
1841
- #
1842
- # @return [Google::Apis::GamesV1::TurnBasedMatch]
1843
- #
1844
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1845
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1846
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1847
- def leave_turn(match_id, match_version, language: nil, pending_participant_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1848
- command = make_simple_command(:put, 'turnbasedmatches/{matchId}/leaveTurn', options)
1849
- command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation
1850
- command.response_class = Google::Apis::GamesV1::TurnBasedMatch
1851
- command.params['matchId'] = match_id unless match_id.nil?
1852
- command.query['language'] = language unless language.nil?
1853
- command.query['matchVersion'] = match_version unless match_version.nil?
1854
- command.query['pendingParticipantId'] = pending_participant_id unless pending_participant_id.nil?
1855
- command.query['fields'] = fields unless fields.nil?
1856
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1857
- command.query['userIp'] = user_ip unless user_ip.nil?
1858
- execute_or_queue_command(command, &block)
1859
- end
1860
-
1861
- # Returns turn-based matches the player is or was involved in.
1862
- # @param [Boolean] include_match_data
1863
- # True if match data should be returned in the response. Note that not all data
1864
- # will necessarily be returned if include_match_data is true; the server may
1865
- # decide to only return data for some of the matches to limit download size for
1866
- # the client. The remainder of the data for these matches will be retrievable on
1867
- # request.
1868
- # @param [String] language
1869
- # The preferred language to use for strings returned by this method.
1870
- # @param [Fixnum] max_completed_matches
1871
- # The maximum number of completed or canceled matches to return in the response.
1872
- # If not set, all matches returned could be completed or canceled.
1873
- # @param [Fixnum] max_results
1874
- # The maximum number of matches to return in the response, used for paging. For
1875
- # any response, the actual number of matches to return may be less than the
1876
- # specified maxResults.
1877
- # @param [String] page_token
1878
- # The token returned by the previous request.
1879
- # @param [String] fields
1880
- # Selector specifying which fields to include in a partial response.
1881
- # @param [String] quota_user
1882
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1883
- # characters.
1884
- # @param [String] user_ip
1885
- # Deprecated. Please use quotaUser instead.
1886
- # @param [Google::Apis::RequestOptions] options
1887
- # Request-specific options
1888
- #
1889
- # @yield [result, err] Result & error if block supplied
1890
- # @yieldparam result [Google::Apis::GamesV1::TurnBasedMatchList] parsed result object
1891
- # @yieldparam err [StandardError] error object if request failed
1892
- #
1893
- # @return [Google::Apis::GamesV1::TurnBasedMatchList]
1894
- #
1895
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1896
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1897
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1898
- 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)
1899
- command = make_simple_command(:get, 'turnbasedmatches', options)
1900
- command.response_representation = Google::Apis::GamesV1::TurnBasedMatchList::Representation
1901
- command.response_class = Google::Apis::GamesV1::TurnBasedMatchList
1902
- command.query['includeMatchData'] = include_match_data unless include_match_data.nil?
1903
- command.query['language'] = language unless language.nil?
1904
- command.query['maxCompletedMatches'] = max_completed_matches unless max_completed_matches.nil?
1905
- command.query['maxResults'] = max_results unless max_results.nil?
1906
- command.query['pageToken'] = page_token unless page_token.nil?
1907
- command.query['fields'] = fields unless fields.nil?
1908
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1909
- command.query['userIp'] = user_ip unless user_ip.nil?
1910
- execute_or_queue_command(command, &block)
1911
- end
1912
-
1913
- # Create a rematch of a match that was previously completed, with the same
1914
- # participants. This can be called by only one player on a match still in their
1915
- # list; the player must have called Finish first. Returns the newly created
1916
- # match; it will be the caller's turn.
1917
- # @param [String] match_id
1918
- # The ID of the match.
1919
- # @param [String] language
1920
- # The preferred language to use for strings returned by this method.
1921
- # @param [Fixnum] request_id
1922
- # A randomly generated numeric ID for each request specified by the caller. This
1923
- # number is used at the server to ensure that the request is handled correctly
1924
- # across retries.
1925
- # @param [String] fields
1926
- # Selector specifying which fields to include in a partial response.
1927
- # @param [String] quota_user
1928
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1929
- # characters.
1930
- # @param [String] user_ip
1931
- # Deprecated. Please use quotaUser instead.
1932
- # @param [Google::Apis::RequestOptions] options
1933
- # Request-specific options
1934
- #
1935
- # @yield [result, err] Result & error if block supplied
1936
- # @yieldparam result [Google::Apis::GamesV1::TurnBasedMatchRematch] parsed result object
1937
- # @yieldparam err [StandardError] error object if request failed
1938
- #
1939
- # @return [Google::Apis::GamesV1::TurnBasedMatchRematch]
1940
- #
1941
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1942
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1943
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1944
- def rematch_turn_based_match(match_id, language: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1945
- command = make_simple_command(:post, 'turnbasedmatches/{matchId}/rematch', options)
1946
- command.response_representation = Google::Apis::GamesV1::TurnBasedMatchRematch::Representation
1947
- command.response_class = Google::Apis::GamesV1::TurnBasedMatchRematch
1948
- command.params['matchId'] = match_id unless match_id.nil?
1949
- command.query['language'] = language unless language.nil?
1950
- command.query['requestId'] = request_id unless request_id.nil?
1951
- command.query['fields'] = fields unless fields.nil?
1952
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1953
- command.query['userIp'] = user_ip unless user_ip.nil?
1954
- execute_or_queue_command(command, &block)
1955
- end
1956
-
1957
- # Returns turn-based matches the player is or was involved in that changed since
1958
- # the last sync call, with the least recent changes coming first. Matches that
1959
- # should be removed from the local cache will have a status of MATCH_DELETED.
1960
- # @param [Boolean] include_match_data
1961
- # True if match data should be returned in the response. Note that not all data
1962
- # will necessarily be returned if include_match_data is true; the server may
1963
- # decide to only return data for some of the matches to limit download size for
1964
- # the client. The remainder of the data for these matches will be retrievable on
1965
- # request.
1966
- # @param [String] language
1967
- # The preferred language to use for strings returned by this method.
1968
- # @param [Fixnum] max_completed_matches
1969
- # The maximum number of completed or canceled matches to return in the response.
1970
- # If not set, all matches returned could be completed or canceled.
1971
- # @param [Fixnum] max_results
1972
- # The maximum number of matches to return in the response, used for paging. For
1973
- # any response, the actual number of matches to return may be less than the
1974
- # specified maxResults.
1975
- # @param [String] page_token
1976
- # The token returned by the previous request.
1977
- # @param [String] fields
1978
- # Selector specifying which fields to include in a partial response.
1979
- # @param [String] quota_user
1980
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1981
- # characters.
1982
- # @param [String] user_ip
1983
- # Deprecated. Please use quotaUser instead.
1984
- # @param [Google::Apis::RequestOptions] options
1985
- # Request-specific options
1986
- #
1987
- # @yield [result, err] Result & error if block supplied
1988
- # @yieldparam result [Google::Apis::GamesV1::TurnBasedMatchSync] parsed result object
1989
- # @yieldparam err [StandardError] error object if request failed
1990
- #
1991
- # @return [Google::Apis::GamesV1::TurnBasedMatchSync]
1992
- #
1993
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1994
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1995
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1996
- 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)
1997
- command = make_simple_command(:get, 'turnbasedmatches/sync', options)
1998
- command.response_representation = Google::Apis::GamesV1::TurnBasedMatchSync::Representation
1999
- command.response_class = Google::Apis::GamesV1::TurnBasedMatchSync
2000
- command.query['includeMatchData'] = include_match_data unless include_match_data.nil?
2001
- command.query['language'] = language unless language.nil?
2002
- command.query['maxCompletedMatches'] = max_completed_matches unless max_completed_matches.nil?
2003
- command.query['maxResults'] = max_results unless max_results.nil?
2004
- command.query['pageToken'] = page_token unless page_token.nil?
2005
- command.query['fields'] = fields unless fields.nil?
2006
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2007
- command.query['userIp'] = user_ip unless user_ip.nil?
2008
1078
  execute_or_queue_command(command, &block)
2009
1079
  end
2010
1080
 
2011
- # Commit the results of a player turn.
2012
- # @param [String] match_id
2013
- # The ID of the match.
2014
- # @param [Google::Apis::GamesV1::TurnBasedMatchTurn] turn_based_match_turn_object
2015
- # @param [String] language
2016
- # The preferred language to use for strings returned by this method.
1081
+ # Returns engagement and spend statistics in this application for the
1082
+ # currently authenticated user.
2017
1083
  # @param [String] fields
2018
1084
  # Selector specifying which fields to include in a partial response.
2019
1085
  # @param [String] quota_user
2020
- # An opaque string that represents a user for quota purposes. Must not exceed 40
2021
- # characters.
2022
- # @param [String] user_ip
2023
- # Deprecated. Please use quotaUser instead.
1086
+ # Available to use for quota purposes for server-side applications. Can be any
1087
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2024
1088
  # @param [Google::Apis::RequestOptions] options
2025
1089
  # Request-specific options
2026
1090
  #
2027
1091
  # @yield [result, err] Result & error if block supplied
2028
- # @yieldparam result [Google::Apis::GamesV1::TurnBasedMatch] parsed result object
1092
+ # @yieldparam result [Google::Apis::GamesV1::StatsResponse] parsed result object
2029
1093
  # @yieldparam err [StandardError] error object if request failed
2030
1094
  #
2031
- # @return [Google::Apis::GamesV1::TurnBasedMatch]
1095
+ # @return [Google::Apis::GamesV1::StatsResponse]
2032
1096
  #
2033
1097
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2034
1098
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2035
1099
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2036
- def take_turn(match_id, turn_based_match_turn_object = nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2037
- command = make_simple_command(:put, 'turnbasedmatches/{matchId}/turn', options)
2038
- command.request_representation = Google::Apis::GamesV1::TurnBasedMatchTurn::Representation
2039
- command.request_object = turn_based_match_turn_object
2040
- command.response_representation = Google::Apis::GamesV1::TurnBasedMatch::Representation
2041
- command.response_class = Google::Apis::GamesV1::TurnBasedMatch
2042
- command.params['matchId'] = match_id unless match_id.nil?
2043
- command.query['language'] = language unless language.nil?
1100
+ def get_stat(fields: nil, quota_user: nil, options: nil, &block)
1101
+ command = make_simple_command(:get, 'games/v1/stats', options)
1102
+ command.response_representation = Google::Apis::GamesV1::StatsResponse::Representation
1103
+ command.response_class = Google::Apis::GamesV1::StatsResponse
2044
1104
  command.query['fields'] = fields unless fields.nil?
2045
1105
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2046
- command.query['userIp'] = user_ip unless user_ip.nil?
2047
1106
  execute_or_queue_command(command, &block)
2048
1107
  end
2049
1108
 
@@ -2052,7 +1111,6 @@ module Google
2052
1111
  def apply_command_defaults(command)
2053
1112
  command.query['key'] = key unless key.nil?
2054
1113
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2055
- command.query['userIp'] = user_ip unless user_ip.nil?
2056
1114
  end
2057
1115
  end
2058
1116
  end