google-apis-androidpublisher_v3 0.1.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.
@@ -0,0 +1,2390 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module AndroidpublisherV3
23
+ # Google Play Android Developer API
24
+ #
25
+ # Lets Android application developers access their Google Play accounts.
26
+ #
27
+ # @example
28
+ # require 'google/apis/androidpublisher_v3'
29
+ #
30
+ # Androidpublisher = Google::Apis::AndroidpublisherV3 # Alias the module
31
+ # service = Androidpublisher::AndroidPublisherService.new
32
+ #
33
+ # @see https://developers.google.com/android-publisher
34
+ class AndroidPublisherService < Google::Apis::Core::BaseService
35
+ # @return [String]
36
+ # API key. Your API key identifies your project and provides you with API access,
37
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
+ attr_accessor :key
39
+
40
+ # @return [String]
41
+ # Available to use for quota purposes for server-side applications. Can be any
42
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43
+ attr_accessor :quota_user
44
+
45
+ def initialize
46
+ super('https://androidpublisher.googleapis.com/', '',
47
+ client_name: 'google-apis-androidpublisher_v3',
48
+ client_version: Google::Apis::AndroidpublisherV3::GEM_VERSION)
49
+ @batch_path = 'batch'
50
+ end
51
+
52
+ # Commits an app edit.
53
+ # @param [String] package_name
54
+ # Package name of the app.
55
+ # @param [String] edit_id
56
+ # Identifier of the edit.
57
+ # @param [String] fields
58
+ # Selector specifying which fields to include in a partial response.
59
+ # @param [String] quota_user
60
+ # Available to use for quota purposes for server-side applications. Can be any
61
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
62
+ # @param [Google::Apis::RequestOptions] options
63
+ # Request-specific options
64
+ #
65
+ # @yield [result, err] Result & error if block supplied
66
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::AppEdit] parsed result object
67
+ # @yieldparam err [StandardError] error object if request failed
68
+ #
69
+ # @return [Google::Apis::AndroidpublisherV3::AppEdit]
70
+ #
71
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
72
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
73
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
74
+ def commit_edit(package_name, edit_id, fields: nil, quota_user: nil, options: nil, &block)
75
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/edits/{editId}:commit', options)
76
+ command.response_representation = Google::Apis::AndroidpublisherV3::AppEdit::Representation
77
+ command.response_class = Google::Apis::AndroidpublisherV3::AppEdit
78
+ command.params['packageName'] = package_name unless package_name.nil?
79
+ command.params['editId'] = edit_id unless edit_id.nil?
80
+ command.query['fields'] = fields unless fields.nil?
81
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
82
+ execute_or_queue_command(command, &block)
83
+ end
84
+
85
+ # Deletes an app edit.
86
+ # @param [String] package_name
87
+ # Package name of the app.
88
+ # @param [String] edit_id
89
+ # Identifier of the edit.
90
+ # @param [String] fields
91
+ # Selector specifying which fields to include in a partial response.
92
+ # @param [String] quota_user
93
+ # Available to use for quota purposes for server-side applications. Can be any
94
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
95
+ # @param [Google::Apis::RequestOptions] options
96
+ # Request-specific options
97
+ #
98
+ # @yield [result, err] Result & error if block supplied
99
+ # @yieldparam result [NilClass] No result returned for this method
100
+ # @yieldparam err [StandardError] error object if request failed
101
+ #
102
+ # @return [void]
103
+ #
104
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
105
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
106
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
107
+ def delete_edit(package_name, edit_id, fields: nil, quota_user: nil, options: nil, &block)
108
+ command = make_simple_command(:delete, 'androidpublisher/v3/applications/{packageName}/edits/{editId}', options)
109
+ command.params['packageName'] = package_name unless package_name.nil?
110
+ command.params['editId'] = edit_id unless edit_id.nil?
111
+ command.query['fields'] = fields unless fields.nil?
112
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
113
+ execute_or_queue_command(command, &block)
114
+ end
115
+
116
+ # Gets an app edit.
117
+ # @param [String] package_name
118
+ # Package name of the app.
119
+ # @param [String] edit_id
120
+ # Identifier of the edit.
121
+ # @param [String] fields
122
+ # Selector specifying which fields to include in a partial response.
123
+ # @param [String] quota_user
124
+ # Available to use for quota purposes for server-side applications. Can be any
125
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
126
+ # @param [Google::Apis::RequestOptions] options
127
+ # Request-specific options
128
+ #
129
+ # @yield [result, err] Result & error if block supplied
130
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::AppEdit] parsed result object
131
+ # @yieldparam err [StandardError] error object if request failed
132
+ #
133
+ # @return [Google::Apis::AndroidpublisherV3::AppEdit]
134
+ #
135
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
136
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
137
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
138
+ def get_edit(package_name, edit_id, fields: nil, quota_user: nil, options: nil, &block)
139
+ command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/edits/{editId}', options)
140
+ command.response_representation = Google::Apis::AndroidpublisherV3::AppEdit::Representation
141
+ command.response_class = Google::Apis::AndroidpublisherV3::AppEdit
142
+ command.params['packageName'] = package_name unless package_name.nil?
143
+ command.params['editId'] = edit_id unless edit_id.nil?
144
+ command.query['fields'] = fields unless fields.nil?
145
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
146
+ execute_or_queue_command(command, &block)
147
+ end
148
+
149
+ # Creates a new edit for an app.
150
+ # @param [String] package_name
151
+ # Package name of the app.
152
+ # @param [Google::Apis::AndroidpublisherV3::AppEdit] app_edit_object
153
+ # @param [String] fields
154
+ # Selector specifying which fields to include in a partial response.
155
+ # @param [String] quota_user
156
+ # Available to use for quota purposes for server-side applications. Can be any
157
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
158
+ # @param [Google::Apis::RequestOptions] options
159
+ # Request-specific options
160
+ #
161
+ # @yield [result, err] Result & error if block supplied
162
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::AppEdit] parsed result object
163
+ # @yieldparam err [StandardError] error object if request failed
164
+ #
165
+ # @return [Google::Apis::AndroidpublisherV3::AppEdit]
166
+ #
167
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
168
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
169
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
170
+ def insert_edit(package_name, app_edit_object = nil, fields: nil, quota_user: nil, options: nil, &block)
171
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/edits', options)
172
+ command.request_representation = Google::Apis::AndroidpublisherV3::AppEdit::Representation
173
+ command.request_object = app_edit_object
174
+ command.response_representation = Google::Apis::AndroidpublisherV3::AppEdit::Representation
175
+ command.response_class = Google::Apis::AndroidpublisherV3::AppEdit
176
+ command.params['packageName'] = package_name unless package_name.nil?
177
+ command.query['fields'] = fields unless fields.nil?
178
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
179
+ execute_or_queue_command(command, &block)
180
+ end
181
+
182
+ # Validates an app edit.
183
+ # @param [String] package_name
184
+ # Package name of the app.
185
+ # @param [String] edit_id
186
+ # Identifier of the edit.
187
+ # @param [String] fields
188
+ # Selector specifying which fields to include in a partial response.
189
+ # @param [String] quota_user
190
+ # Available to use for quota purposes for server-side applications. Can be any
191
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
192
+ # @param [Google::Apis::RequestOptions] options
193
+ # Request-specific options
194
+ #
195
+ # @yield [result, err] Result & error if block supplied
196
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::AppEdit] parsed result object
197
+ # @yieldparam err [StandardError] error object if request failed
198
+ #
199
+ # @return [Google::Apis::AndroidpublisherV3::AppEdit]
200
+ #
201
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
202
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
203
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
204
+ def validate_edit(package_name, edit_id, fields: nil, quota_user: nil, options: nil, &block)
205
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/edits/{editId}:validate', options)
206
+ command.response_representation = Google::Apis::AndroidpublisherV3::AppEdit::Representation
207
+ command.response_class = Google::Apis::AndroidpublisherV3::AppEdit
208
+ command.params['packageName'] = package_name unless package_name.nil?
209
+ command.params['editId'] = edit_id unless edit_id.nil?
210
+ command.query['fields'] = fields unless fields.nil?
211
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
212
+ execute_or_queue_command(command, &block)
213
+ end
214
+
215
+ # Creates a new APK without uploading the APK itself to Google Play, instead
216
+ # hosting the APK at a specified URL. This function is only available to
217
+ # organizations using Managed Play whose application is configured to restrict
218
+ # distribution to the organizations.
219
+ # @param [String] package_name
220
+ # Package name of the app.
221
+ # @param [String] edit_id
222
+ # Identifier of the edit.
223
+ # @param [Google::Apis::AndroidpublisherV3::ApksAddExternallyHostedRequest] apks_add_externally_hosted_request_object
224
+ # @param [String] fields
225
+ # Selector specifying which fields to include in a partial response.
226
+ # @param [String] quota_user
227
+ # Available to use for quota purposes for server-side applications. Can be any
228
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
229
+ # @param [Google::Apis::RequestOptions] options
230
+ # Request-specific options
231
+ #
232
+ # @yield [result, err] Result & error if block supplied
233
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::ApksAddExternallyHostedResponse] parsed result object
234
+ # @yieldparam err [StandardError] error object if request failed
235
+ #
236
+ # @return [Google::Apis::AndroidpublisherV3::ApksAddExternallyHostedResponse]
237
+ #
238
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
239
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
240
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
241
+ def addexternallyhosted_edit_apk(package_name, edit_id, apks_add_externally_hosted_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
242
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/externallyHosted', options)
243
+ command.request_representation = Google::Apis::AndroidpublisherV3::ApksAddExternallyHostedRequest::Representation
244
+ command.request_object = apks_add_externally_hosted_request_object
245
+ command.response_representation = Google::Apis::AndroidpublisherV3::ApksAddExternallyHostedResponse::Representation
246
+ command.response_class = Google::Apis::AndroidpublisherV3::ApksAddExternallyHostedResponse
247
+ command.params['packageName'] = package_name unless package_name.nil?
248
+ command.params['editId'] = edit_id unless edit_id.nil?
249
+ command.query['fields'] = fields unless fields.nil?
250
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
251
+ execute_or_queue_command(command, &block)
252
+ end
253
+
254
+ # Lists all current APKs of the app and edit.
255
+ # @param [String] package_name
256
+ # Package name of the app.
257
+ # @param [String] edit_id
258
+ # Identifier of the edit.
259
+ # @param [String] fields
260
+ # Selector specifying which fields to include in a partial response.
261
+ # @param [String] quota_user
262
+ # Available to use for quota purposes for server-side applications. Can be any
263
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
264
+ # @param [Google::Apis::RequestOptions] options
265
+ # Request-specific options
266
+ #
267
+ # @yield [result, err] Result & error if block supplied
268
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::ApksListResponse] parsed result object
269
+ # @yieldparam err [StandardError] error object if request failed
270
+ #
271
+ # @return [Google::Apis::AndroidpublisherV3::ApksListResponse]
272
+ #
273
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
274
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
275
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
276
+ def list_edit_apks(package_name, edit_id, fields: nil, quota_user: nil, options: nil, &block)
277
+ command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/apks', options)
278
+ command.response_representation = Google::Apis::AndroidpublisherV3::ApksListResponse::Representation
279
+ command.response_class = Google::Apis::AndroidpublisherV3::ApksListResponse
280
+ command.params['packageName'] = package_name unless package_name.nil?
281
+ command.params['editId'] = edit_id unless edit_id.nil?
282
+ command.query['fields'] = fields unless fields.nil?
283
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
284
+ execute_or_queue_command(command, &block)
285
+ end
286
+
287
+ # Uploads an APK and adds to the current edit.
288
+ # @param [String] package_name
289
+ # Package name of the app.
290
+ # @param [String] edit_id
291
+ # Identifier of the edit.
292
+ # @param [String] fields
293
+ # Selector specifying which fields to include in a partial response.
294
+ # @param [String] quota_user
295
+ # Available to use for quota purposes for server-side applications. Can be any
296
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
297
+ # @param [IO, String] upload_source
298
+ # IO stream or filename containing content to upload
299
+ # @param [String] content_type
300
+ # Content type of the uploaded content.
301
+ # @param [Google::Apis::RequestOptions] options
302
+ # Request-specific options
303
+ #
304
+ # @yield [result, err] Result & error if block supplied
305
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::Apk] parsed result object
306
+ # @yieldparam err [StandardError] error object if request failed
307
+ #
308
+ # @return [Google::Apis::AndroidpublisherV3::Apk]
309
+ #
310
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
311
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
312
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
313
+ def upload_edit_apk(package_name, edit_id, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block)
314
+ if upload_source.nil?
315
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/apks', options)
316
+ else
317
+ command = make_upload_command(:post, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/apks', options)
318
+ command.upload_source = upload_source
319
+ command.upload_content_type = content_type
320
+ end
321
+ command.response_representation = Google::Apis::AndroidpublisherV3::Apk::Representation
322
+ command.response_class = Google::Apis::AndroidpublisherV3::Apk
323
+ command.params['packageName'] = package_name unless package_name.nil?
324
+ command.params['editId'] = edit_id unless edit_id.nil?
325
+ command.query['fields'] = fields unless fields.nil?
326
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
327
+ execute_or_queue_command(command, &block)
328
+ end
329
+
330
+ # Lists all current Android App Bundles of the app and edit.
331
+ # @param [String] package_name
332
+ # Package name of the app.
333
+ # @param [String] edit_id
334
+ # Identifier of the edit.
335
+ # @param [String] fields
336
+ # Selector specifying which fields to include in a partial response.
337
+ # @param [String] quota_user
338
+ # Available to use for quota purposes for server-side applications. Can be any
339
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
340
+ # @param [Google::Apis::RequestOptions] options
341
+ # Request-specific options
342
+ #
343
+ # @yield [result, err] Result & error if block supplied
344
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::BundlesListResponse] parsed result object
345
+ # @yieldparam err [StandardError] error object if request failed
346
+ #
347
+ # @return [Google::Apis::AndroidpublisherV3::BundlesListResponse]
348
+ #
349
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
350
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
351
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
352
+ def list_edit_bundles(package_name, edit_id, fields: nil, quota_user: nil, options: nil, &block)
353
+ command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/bundles', options)
354
+ command.response_representation = Google::Apis::AndroidpublisherV3::BundlesListResponse::Representation
355
+ command.response_class = Google::Apis::AndroidpublisherV3::BundlesListResponse
356
+ command.params['packageName'] = package_name unless package_name.nil?
357
+ command.params['editId'] = edit_id unless edit_id.nil?
358
+ command.query['fields'] = fields unless fields.nil?
359
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
360
+ execute_or_queue_command(command, &block)
361
+ end
362
+
363
+ # Uploads a new Android App Bundle to this edit. If you are using the Google API
364
+ # client libraries, please increase the timeout of the http request before
365
+ # calling this endpoint (a timeout of 2 minutes is recommended). See [Timeouts
366
+ # and Errors](https://developers.google.com/api-client-library/java/google-api-
367
+ # java-client/errors) for an example in java.
368
+ # @param [String] package_name
369
+ # Package name of the app.
370
+ # @param [String] edit_id
371
+ # Identifier of the edit.
372
+ # @param [Boolean] ack_bundle_installation_warning
373
+ # Must be set to true if the bundle installation may trigger a warning on user
374
+ # devices (for example, if installation size may be over a threshold, typically
375
+ # 100 MB).
376
+ # @param [String] fields
377
+ # Selector specifying which fields to include in a partial response.
378
+ # @param [String] quota_user
379
+ # Available to use for quota purposes for server-side applications. Can be any
380
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
381
+ # @param [IO, String] upload_source
382
+ # IO stream or filename containing content to upload
383
+ # @param [String] content_type
384
+ # Content type of the uploaded content.
385
+ # @param [Google::Apis::RequestOptions] options
386
+ # Request-specific options
387
+ #
388
+ # @yield [result, err] Result & error if block supplied
389
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::Bundle] parsed result object
390
+ # @yieldparam err [StandardError] error object if request failed
391
+ #
392
+ # @return [Google::Apis::AndroidpublisherV3::Bundle]
393
+ #
394
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
395
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
396
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
397
+ def upload_edit_bundle(package_name, edit_id, ack_bundle_installation_warning: nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block)
398
+ if upload_source.nil?
399
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/bundles', options)
400
+ else
401
+ command = make_upload_command(:post, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/bundles', options)
402
+ command.upload_source = upload_source
403
+ command.upload_content_type = content_type
404
+ end
405
+ command.response_representation = Google::Apis::AndroidpublisherV3::Bundle::Representation
406
+ command.response_class = Google::Apis::AndroidpublisherV3::Bundle
407
+ command.params['packageName'] = package_name unless package_name.nil?
408
+ command.params['editId'] = edit_id unless edit_id.nil?
409
+ command.query['ackBundleInstallationWarning'] = ack_bundle_installation_warning unless ack_bundle_installation_warning.nil?
410
+ command.query['fields'] = fields unless fields.nil?
411
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
412
+ execute_or_queue_command(command, &block)
413
+ end
414
+
415
+ # Uploads a new deobfuscation file and attaches to the specified APK.
416
+ # @param [String] package_name
417
+ # Unique identifier for the Android app.
418
+ # @param [String] edit_id
419
+ # Unique identifier for this edit.
420
+ # @param [Fixnum] apk_version_code
421
+ # The version code of the APK whose Deobfuscation File is being uploaded.
422
+ # @param [String] deobfuscation_file_type
423
+ # The type of the deobfuscation file.
424
+ # @param [String] fields
425
+ # Selector specifying which fields to include in a partial response.
426
+ # @param [String] quota_user
427
+ # Available to use for quota purposes for server-side applications. Can be any
428
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
429
+ # @param [IO, String] upload_source
430
+ # IO stream or filename containing content to upload
431
+ # @param [String] content_type
432
+ # Content type of the uploaded content.
433
+ # @param [Google::Apis::RequestOptions] options
434
+ # Request-specific options
435
+ #
436
+ # @yield [result, err] Result & error if block supplied
437
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::DeobfuscationFilesUploadResponse] parsed result object
438
+ # @yieldparam err [StandardError] error object if request failed
439
+ #
440
+ # @return [Google::Apis::AndroidpublisherV3::DeobfuscationFilesUploadResponse]
441
+ #
442
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
443
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
444
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
445
+ def upload_edit_deobfuscationfile(package_name, edit_id, apk_version_code, deobfuscation_file_type, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block)
446
+ if upload_source.nil?
447
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/deobfuscationFiles/{deobfuscationFileType}', options)
448
+ else
449
+ command = make_upload_command(:post, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/deobfuscationFiles/{deobfuscationFileType}', options)
450
+ command.upload_source = upload_source
451
+ command.upload_content_type = content_type
452
+ end
453
+ command.response_representation = Google::Apis::AndroidpublisherV3::DeobfuscationFilesUploadResponse::Representation
454
+ command.response_class = Google::Apis::AndroidpublisherV3::DeobfuscationFilesUploadResponse
455
+ command.params['packageName'] = package_name unless package_name.nil?
456
+ command.params['editId'] = edit_id unless edit_id.nil?
457
+ command.params['apkVersionCode'] = apk_version_code unless apk_version_code.nil?
458
+ command.params['deobfuscationFileType'] = deobfuscation_file_type unless deobfuscation_file_type.nil?
459
+ command.query['fields'] = fields unless fields.nil?
460
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
461
+ execute_or_queue_command(command, &block)
462
+ end
463
+
464
+ # Gets details of an app.
465
+ # @param [String] package_name
466
+ # Package name of the app.
467
+ # @param [String] edit_id
468
+ # Identifier of the edit.
469
+ # @param [String] fields
470
+ # Selector specifying which fields to include in a partial response.
471
+ # @param [String] quota_user
472
+ # Available to use for quota purposes for server-side applications. Can be any
473
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
474
+ # @param [Google::Apis::RequestOptions] options
475
+ # Request-specific options
476
+ #
477
+ # @yield [result, err] Result & error if block supplied
478
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::AppDetails] parsed result object
479
+ # @yieldparam err [StandardError] error object if request failed
480
+ #
481
+ # @return [Google::Apis::AndroidpublisherV3::AppDetails]
482
+ #
483
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
484
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
485
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
486
+ def get_edit_detail(package_name, edit_id, fields: nil, quota_user: nil, options: nil, &block)
487
+ command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/details', options)
488
+ command.response_representation = Google::Apis::AndroidpublisherV3::AppDetails::Representation
489
+ command.response_class = Google::Apis::AndroidpublisherV3::AppDetails
490
+ command.params['packageName'] = package_name unless package_name.nil?
491
+ command.params['editId'] = edit_id unless edit_id.nil?
492
+ command.query['fields'] = fields unless fields.nil?
493
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
494
+ execute_or_queue_command(command, &block)
495
+ end
496
+
497
+ # Patches details of an app.
498
+ # @param [String] package_name
499
+ # Package name of the app.
500
+ # @param [String] edit_id
501
+ # Identifier of the edit.
502
+ # @param [Google::Apis::AndroidpublisherV3::AppDetails] app_details_object
503
+ # @param [String] fields
504
+ # Selector specifying which fields to include in a partial response.
505
+ # @param [String] quota_user
506
+ # Available to use for quota purposes for server-side applications. Can be any
507
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
508
+ # @param [Google::Apis::RequestOptions] options
509
+ # Request-specific options
510
+ #
511
+ # @yield [result, err] Result & error if block supplied
512
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::AppDetails] parsed result object
513
+ # @yieldparam err [StandardError] error object if request failed
514
+ #
515
+ # @return [Google::Apis::AndroidpublisherV3::AppDetails]
516
+ #
517
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
518
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
519
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
520
+ def patch_edit_detail(package_name, edit_id, app_details_object = nil, fields: nil, quota_user: nil, options: nil, &block)
521
+ command = make_simple_command(:patch, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/details', options)
522
+ command.request_representation = Google::Apis::AndroidpublisherV3::AppDetails::Representation
523
+ command.request_object = app_details_object
524
+ command.response_representation = Google::Apis::AndroidpublisherV3::AppDetails::Representation
525
+ command.response_class = Google::Apis::AndroidpublisherV3::AppDetails
526
+ command.params['packageName'] = package_name unless package_name.nil?
527
+ command.params['editId'] = edit_id unless edit_id.nil?
528
+ command.query['fields'] = fields unless fields.nil?
529
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
530
+ execute_or_queue_command(command, &block)
531
+ end
532
+
533
+ # Updates details of an app.
534
+ # @param [String] package_name
535
+ # Package name of the app.
536
+ # @param [String] edit_id
537
+ # Identifier of the edit.
538
+ # @param [Google::Apis::AndroidpublisherV3::AppDetails] app_details_object
539
+ # @param [String] fields
540
+ # Selector specifying which fields to include in a partial response.
541
+ # @param [String] quota_user
542
+ # Available to use for quota purposes for server-side applications. Can be any
543
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
544
+ # @param [Google::Apis::RequestOptions] options
545
+ # Request-specific options
546
+ #
547
+ # @yield [result, err] Result & error if block supplied
548
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::AppDetails] parsed result object
549
+ # @yieldparam err [StandardError] error object if request failed
550
+ #
551
+ # @return [Google::Apis::AndroidpublisherV3::AppDetails]
552
+ #
553
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
554
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
555
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
556
+ def update_edit_detail(package_name, edit_id, app_details_object = nil, fields: nil, quota_user: nil, options: nil, &block)
557
+ command = make_simple_command(:put, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/details', options)
558
+ command.request_representation = Google::Apis::AndroidpublisherV3::AppDetails::Representation
559
+ command.request_object = app_details_object
560
+ command.response_representation = Google::Apis::AndroidpublisherV3::AppDetails::Representation
561
+ command.response_class = Google::Apis::AndroidpublisherV3::AppDetails
562
+ command.params['packageName'] = package_name unless package_name.nil?
563
+ command.params['editId'] = edit_id unless edit_id.nil?
564
+ command.query['fields'] = fields unless fields.nil?
565
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
566
+ execute_or_queue_command(command, &block)
567
+ end
568
+
569
+ # Fetches the expansion file configuration for the specified APK.
570
+ # @param [String] package_name
571
+ # Package name of the app.
572
+ # @param [String] edit_id
573
+ # Identifier of the edit.
574
+ # @param [Fixnum] apk_version_code
575
+ # The version code of the APK whose expansion file configuration is being read
576
+ # or modified.
577
+ # @param [String] expansion_file_type
578
+ # The file type of the file configuration which is being read or modified.
579
+ # @param [String] fields
580
+ # Selector specifying which fields to include in a partial response.
581
+ # @param [String] quota_user
582
+ # Available to use for quota purposes for server-side applications. Can be any
583
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
584
+ # @param [Google::Apis::RequestOptions] options
585
+ # Request-specific options
586
+ #
587
+ # @yield [result, err] Result & error if block supplied
588
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::ExpansionFile] parsed result object
589
+ # @yieldparam err [StandardError] error object if request failed
590
+ #
591
+ # @return [Google::Apis::AndroidpublisherV3::ExpansionFile]
592
+ #
593
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
594
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
595
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
596
+ def get_edit_expansionfile(package_name, edit_id, apk_version_code, expansion_file_type, fields: nil, quota_user: nil, options: nil, &block)
597
+ command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options)
598
+ command.response_representation = Google::Apis::AndroidpublisherV3::ExpansionFile::Representation
599
+ command.response_class = Google::Apis::AndroidpublisherV3::ExpansionFile
600
+ command.params['packageName'] = package_name unless package_name.nil?
601
+ command.params['editId'] = edit_id unless edit_id.nil?
602
+ command.params['apkVersionCode'] = apk_version_code unless apk_version_code.nil?
603
+ command.params['expansionFileType'] = expansion_file_type unless expansion_file_type.nil?
604
+ command.query['fields'] = fields unless fields.nil?
605
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
606
+ execute_or_queue_command(command, &block)
607
+ end
608
+
609
+ # Patches the APK's expansion file configuration to reference another APK's
610
+ # expansion file. To add a new expansion file use the Upload method.
611
+ # @param [String] package_name
612
+ # Package name of the app.
613
+ # @param [String] edit_id
614
+ # Identifier of the edit.
615
+ # @param [Fixnum] apk_version_code
616
+ # The version code of the APK whose expansion file configuration is being read
617
+ # or modified.
618
+ # @param [String] expansion_file_type
619
+ # The file type of the expansion file configuration which is being updated.
620
+ # @param [Google::Apis::AndroidpublisherV3::ExpansionFile] expansion_file_object
621
+ # @param [String] fields
622
+ # Selector specifying which fields to include in a partial response.
623
+ # @param [String] quota_user
624
+ # Available to use for quota purposes for server-side applications. Can be any
625
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
626
+ # @param [Google::Apis::RequestOptions] options
627
+ # Request-specific options
628
+ #
629
+ # @yield [result, err] Result & error if block supplied
630
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::ExpansionFile] parsed result object
631
+ # @yieldparam err [StandardError] error object if request failed
632
+ #
633
+ # @return [Google::Apis::AndroidpublisherV3::ExpansionFile]
634
+ #
635
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
636
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
637
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
638
+ def patch_edit_expansionfile(package_name, edit_id, apk_version_code, expansion_file_type, expansion_file_object = nil, fields: nil, quota_user: nil, options: nil, &block)
639
+ command = make_simple_command(:patch, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options)
640
+ command.request_representation = Google::Apis::AndroidpublisherV3::ExpansionFile::Representation
641
+ command.request_object = expansion_file_object
642
+ command.response_representation = Google::Apis::AndroidpublisherV3::ExpansionFile::Representation
643
+ command.response_class = Google::Apis::AndroidpublisherV3::ExpansionFile
644
+ command.params['packageName'] = package_name unless package_name.nil?
645
+ command.params['editId'] = edit_id unless edit_id.nil?
646
+ command.params['apkVersionCode'] = apk_version_code unless apk_version_code.nil?
647
+ command.params['expansionFileType'] = expansion_file_type unless expansion_file_type.nil?
648
+ command.query['fields'] = fields unless fields.nil?
649
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
650
+ execute_or_queue_command(command, &block)
651
+ end
652
+
653
+ # Updates the APK's expansion file configuration to reference another APK's
654
+ # expansion file. To add a new expansion file use the Upload method.
655
+ # @param [String] package_name
656
+ # Package name of the app.
657
+ # @param [String] edit_id
658
+ # Identifier of the edit.
659
+ # @param [Fixnum] apk_version_code
660
+ # The version code of the APK whose expansion file configuration is being read
661
+ # or modified.
662
+ # @param [String] expansion_file_type
663
+ # The file type of the file configuration which is being read or modified.
664
+ # @param [Google::Apis::AndroidpublisherV3::ExpansionFile] expansion_file_object
665
+ # @param [String] fields
666
+ # Selector specifying which fields to include in a partial response.
667
+ # @param [String] quota_user
668
+ # Available to use for quota purposes for server-side applications. Can be any
669
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
670
+ # @param [Google::Apis::RequestOptions] options
671
+ # Request-specific options
672
+ #
673
+ # @yield [result, err] Result & error if block supplied
674
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::ExpansionFile] parsed result object
675
+ # @yieldparam err [StandardError] error object if request failed
676
+ #
677
+ # @return [Google::Apis::AndroidpublisherV3::ExpansionFile]
678
+ #
679
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
680
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
681
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
682
+ def update_edit_expansionfile(package_name, edit_id, apk_version_code, expansion_file_type, expansion_file_object = nil, fields: nil, quota_user: nil, options: nil, &block)
683
+ command = make_simple_command(:put, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options)
684
+ command.request_representation = Google::Apis::AndroidpublisherV3::ExpansionFile::Representation
685
+ command.request_object = expansion_file_object
686
+ command.response_representation = Google::Apis::AndroidpublisherV3::ExpansionFile::Representation
687
+ command.response_class = Google::Apis::AndroidpublisherV3::ExpansionFile
688
+ command.params['packageName'] = package_name unless package_name.nil?
689
+ command.params['editId'] = edit_id unless edit_id.nil?
690
+ command.params['apkVersionCode'] = apk_version_code unless apk_version_code.nil?
691
+ command.params['expansionFileType'] = expansion_file_type unless expansion_file_type.nil?
692
+ command.query['fields'] = fields unless fields.nil?
693
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
694
+ execute_or_queue_command(command, &block)
695
+ end
696
+
697
+ # Uploads a new expansion file and attaches to the specified APK.
698
+ # @param [String] package_name
699
+ # Package name of the app.
700
+ # @param [String] edit_id
701
+ # Identifier of the edit.
702
+ # @param [Fixnum] apk_version_code
703
+ # The version code of the APK whose expansion file configuration is being read
704
+ # or modified.
705
+ # @param [String] expansion_file_type
706
+ # The file type of the expansion file configuration which is being updated.
707
+ # @param [String] fields
708
+ # Selector specifying which fields to include in a partial response.
709
+ # @param [String] quota_user
710
+ # Available to use for quota purposes for server-side applications. Can be any
711
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
712
+ # @param [IO, String] upload_source
713
+ # IO stream or filename containing content to upload
714
+ # @param [String] content_type
715
+ # Content type of the uploaded content.
716
+ # @param [Google::Apis::RequestOptions] options
717
+ # Request-specific options
718
+ #
719
+ # @yield [result, err] Result & error if block supplied
720
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::ExpansionFilesUploadResponse] parsed result object
721
+ # @yieldparam err [StandardError] error object if request failed
722
+ #
723
+ # @return [Google::Apis::AndroidpublisherV3::ExpansionFilesUploadResponse]
724
+ #
725
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
726
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
727
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
728
+ def upload_edit_expansionfile(package_name, edit_id, apk_version_code, expansion_file_type, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block)
729
+ if upload_source.nil?
730
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options)
731
+ else
732
+ command = make_upload_command(:post, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}', options)
733
+ command.upload_source = upload_source
734
+ command.upload_content_type = content_type
735
+ end
736
+ command.response_representation = Google::Apis::AndroidpublisherV3::ExpansionFilesUploadResponse::Representation
737
+ command.response_class = Google::Apis::AndroidpublisherV3::ExpansionFilesUploadResponse
738
+ command.params['packageName'] = package_name unless package_name.nil?
739
+ command.params['editId'] = edit_id unless edit_id.nil?
740
+ command.params['apkVersionCode'] = apk_version_code unless apk_version_code.nil?
741
+ command.params['expansionFileType'] = expansion_file_type unless expansion_file_type.nil?
742
+ command.query['fields'] = fields unless fields.nil?
743
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
744
+ execute_or_queue_command(command, &block)
745
+ end
746
+
747
+ # Deletes the image (specified by id) from the edit.
748
+ # @param [String] package_name
749
+ # Package name of the app.
750
+ # @param [String] edit_id
751
+ # Identifier of the edit.
752
+ # @param [String] language
753
+ # Language localization code (a BCP-47 language tag; for example, "de-AT" for
754
+ # Austrian German).
755
+ # @param [String] image_type
756
+ # Type of the Image.
757
+ # @param [String] image_id
758
+ # Unique identifier an image within the set of images attached to this edit.
759
+ # @param [String] fields
760
+ # Selector specifying which fields to include in a partial response.
761
+ # @param [String] quota_user
762
+ # Available to use for quota purposes for server-side applications. Can be any
763
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
764
+ # @param [Google::Apis::RequestOptions] options
765
+ # Request-specific options
766
+ #
767
+ # @yield [result, err] Result & error if block supplied
768
+ # @yieldparam result [NilClass] No result returned for this method
769
+ # @yieldparam err [StandardError] error object if request failed
770
+ #
771
+ # @return [void]
772
+ #
773
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
774
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
775
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
776
+ def delete_edit_image(package_name, edit_id, language, image_type, image_id, fields: nil, quota_user: nil, options: nil, &block)
777
+ command = make_simple_command(:delete, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}/{imageId}', options)
778
+ command.params['packageName'] = package_name unless package_name.nil?
779
+ command.params['editId'] = edit_id unless edit_id.nil?
780
+ command.params['language'] = language unless language.nil?
781
+ command.params['imageType'] = image_type unless image_type.nil?
782
+ command.params['imageId'] = image_id unless image_id.nil?
783
+ command.query['fields'] = fields unless fields.nil?
784
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
785
+ execute_or_queue_command(command, &block)
786
+ end
787
+
788
+ # Deletes all images for the specified language and image type. Returns an empty
789
+ # response if no images are found.
790
+ # @param [String] package_name
791
+ # Package name of the app.
792
+ # @param [String] edit_id
793
+ # Identifier of the edit.
794
+ # @param [String] language
795
+ # Language localization code (a BCP-47 language tag; for example, "de-AT" for
796
+ # Austrian German). Providing a language that is not supported by the App is a
797
+ # no-op.
798
+ # @param [String] image_type
799
+ # Type of the Image. Providing an image type that refers to no images is a no-op.
800
+ # @param [String] fields
801
+ # Selector specifying which fields to include in a partial response.
802
+ # @param [String] quota_user
803
+ # Available to use for quota purposes for server-side applications. Can be any
804
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
805
+ # @param [Google::Apis::RequestOptions] options
806
+ # Request-specific options
807
+ #
808
+ # @yield [result, err] Result & error if block supplied
809
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::ImagesDeleteAllResponse] parsed result object
810
+ # @yieldparam err [StandardError] error object if request failed
811
+ #
812
+ # @return [Google::Apis::AndroidpublisherV3::ImagesDeleteAllResponse]
813
+ #
814
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
815
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
816
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
817
+ def deleteall_edit_image(package_name, edit_id, language, image_type, fields: nil, quota_user: nil, options: nil, &block)
818
+ command = make_simple_command(:delete, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}', options)
819
+ command.response_representation = Google::Apis::AndroidpublisherV3::ImagesDeleteAllResponse::Representation
820
+ command.response_class = Google::Apis::AndroidpublisherV3::ImagesDeleteAllResponse
821
+ command.params['packageName'] = package_name unless package_name.nil?
822
+ command.params['editId'] = edit_id unless edit_id.nil?
823
+ command.params['language'] = language unless language.nil?
824
+ command.params['imageType'] = image_type unless image_type.nil?
825
+ command.query['fields'] = fields unless fields.nil?
826
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
827
+ execute_or_queue_command(command, &block)
828
+ end
829
+
830
+ # Lists all images. The response may be empty.
831
+ # @param [String] package_name
832
+ # Package name of the app.
833
+ # @param [String] edit_id
834
+ # Identifier of the edit.
835
+ # @param [String] language
836
+ # Language localization code (a BCP-47 language tag; for example, "de-AT" for
837
+ # Austrian German). There must be a store listing for the specified language.
838
+ # @param [String] image_type
839
+ # Type of the Image. Providing an image type that refers to no images will
840
+ # return an empty response.
841
+ # @param [String] fields
842
+ # Selector specifying which fields to include in a partial response.
843
+ # @param [String] quota_user
844
+ # Available to use for quota purposes for server-side applications. Can be any
845
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
846
+ # @param [Google::Apis::RequestOptions] options
847
+ # Request-specific options
848
+ #
849
+ # @yield [result, err] Result & error if block supplied
850
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::ImagesListResponse] parsed result object
851
+ # @yieldparam err [StandardError] error object if request failed
852
+ #
853
+ # @return [Google::Apis::AndroidpublisherV3::ImagesListResponse]
854
+ #
855
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
856
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
857
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
858
+ def list_edit_images(package_name, edit_id, language, image_type, fields: nil, quota_user: nil, options: nil, &block)
859
+ command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}', options)
860
+ command.response_representation = Google::Apis::AndroidpublisherV3::ImagesListResponse::Representation
861
+ command.response_class = Google::Apis::AndroidpublisherV3::ImagesListResponse
862
+ command.params['packageName'] = package_name unless package_name.nil?
863
+ command.params['editId'] = edit_id unless edit_id.nil?
864
+ command.params['language'] = language unless language.nil?
865
+ command.params['imageType'] = image_type unless image_type.nil?
866
+ command.query['fields'] = fields unless fields.nil?
867
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
868
+ execute_or_queue_command(command, &block)
869
+ end
870
+
871
+ # Uploads an image of the specified language and image type, and adds to the
872
+ # edit.
873
+ # @param [String] package_name
874
+ # Package name of the app.
875
+ # @param [String] edit_id
876
+ # Identifier of the edit.
877
+ # @param [String] language
878
+ # Language localization code (a BCP-47 language tag; for example, "de-AT" for
879
+ # Austrian German). Providing a language that is not supported by the App is a
880
+ # no-op.
881
+ # @param [String] image_type
882
+ # Type of the Image.
883
+ # @param [String] fields
884
+ # Selector specifying which fields to include in a partial response.
885
+ # @param [String] quota_user
886
+ # Available to use for quota purposes for server-side applications. Can be any
887
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
888
+ # @param [IO, String] upload_source
889
+ # IO stream or filename containing content to upload
890
+ # @param [String] content_type
891
+ # Content type of the uploaded content.
892
+ # @param [Google::Apis::RequestOptions] options
893
+ # Request-specific options
894
+ #
895
+ # @yield [result, err] Result & error if block supplied
896
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::ImagesUploadResponse] parsed result object
897
+ # @yieldparam err [StandardError] error object if request failed
898
+ #
899
+ # @return [Google::Apis::AndroidpublisherV3::ImagesUploadResponse]
900
+ #
901
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
902
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
903
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
904
+ def upload_edit_image(package_name, edit_id, language, image_type, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block)
905
+ if upload_source.nil?
906
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}', options)
907
+ else
908
+ command = make_upload_command(:post, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}', options)
909
+ command.upload_source = upload_source
910
+ command.upload_content_type = content_type
911
+ end
912
+ command.response_representation = Google::Apis::AndroidpublisherV3::ImagesUploadResponse::Representation
913
+ command.response_class = Google::Apis::AndroidpublisherV3::ImagesUploadResponse
914
+ command.params['packageName'] = package_name unless package_name.nil?
915
+ command.params['editId'] = edit_id unless edit_id.nil?
916
+ command.params['language'] = language unless language.nil?
917
+ command.params['imageType'] = image_type unless image_type.nil?
918
+ command.query['fields'] = fields unless fields.nil?
919
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
920
+ execute_or_queue_command(command, &block)
921
+ end
922
+
923
+ # Deletes a localized store listing.
924
+ # @param [String] package_name
925
+ # Package name of the app.
926
+ # @param [String] edit_id
927
+ # Identifier of the edit.
928
+ # @param [String] language
929
+ # Language localization code (a BCP-47 language tag; for example, "de-AT" for
930
+ # Austrian German).
931
+ # @param [String] fields
932
+ # Selector specifying which fields to include in a partial response.
933
+ # @param [String] quota_user
934
+ # Available to use for quota purposes for server-side applications. Can be any
935
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
936
+ # @param [Google::Apis::RequestOptions] options
937
+ # Request-specific options
938
+ #
939
+ # @yield [result, err] Result & error if block supplied
940
+ # @yieldparam result [NilClass] No result returned for this method
941
+ # @yieldparam err [StandardError] error object if request failed
942
+ #
943
+ # @return [void]
944
+ #
945
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
946
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
947
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
948
+ def delete_edit_listing(package_name, edit_id, language, fields: nil, quota_user: nil, options: nil, &block)
949
+ command = make_simple_command(:delete, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}', options)
950
+ command.params['packageName'] = package_name unless package_name.nil?
951
+ command.params['editId'] = edit_id unless edit_id.nil?
952
+ command.params['language'] = language unless language.nil?
953
+ command.query['fields'] = fields unless fields.nil?
954
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
955
+ execute_or_queue_command(command, &block)
956
+ end
957
+
958
+ # Deletes all store listings.
959
+ # @param [String] package_name
960
+ # Package name of the app.
961
+ # @param [String] edit_id
962
+ # Identifier of the edit.
963
+ # @param [String] fields
964
+ # Selector specifying which fields to include in a partial response.
965
+ # @param [String] quota_user
966
+ # Available to use for quota purposes for server-side applications. Can be any
967
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
968
+ # @param [Google::Apis::RequestOptions] options
969
+ # Request-specific options
970
+ #
971
+ # @yield [result, err] Result & error if block supplied
972
+ # @yieldparam result [NilClass] No result returned for this method
973
+ # @yieldparam err [StandardError] error object if request failed
974
+ #
975
+ # @return [void]
976
+ #
977
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
978
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
979
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
980
+ def deleteall_edit_listing(package_name, edit_id, fields: nil, quota_user: nil, options: nil, &block)
981
+ command = make_simple_command(:delete, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/listings', options)
982
+ command.params['packageName'] = package_name unless package_name.nil?
983
+ command.params['editId'] = edit_id unless edit_id.nil?
984
+ command.query['fields'] = fields unless fields.nil?
985
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
986
+ execute_or_queue_command(command, &block)
987
+ end
988
+
989
+ # Gets a localized store listing.
990
+ # @param [String] package_name
991
+ # Package name of the app.
992
+ # @param [String] edit_id
993
+ # Identifier of the edit.
994
+ # @param [String] language
995
+ # Language localization code (a BCP-47 language tag; for example, "de-AT" for
996
+ # Austrian German).
997
+ # @param [String] fields
998
+ # Selector specifying which fields to include in a partial response.
999
+ # @param [String] quota_user
1000
+ # Available to use for quota purposes for server-side applications. Can be any
1001
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1002
+ # @param [Google::Apis::RequestOptions] options
1003
+ # Request-specific options
1004
+ #
1005
+ # @yield [result, err] Result & error if block supplied
1006
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::Listing] parsed result object
1007
+ # @yieldparam err [StandardError] error object if request failed
1008
+ #
1009
+ # @return [Google::Apis::AndroidpublisherV3::Listing]
1010
+ #
1011
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1012
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1013
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1014
+ def get_edit_listing(package_name, edit_id, language, fields: nil, quota_user: nil, options: nil, &block)
1015
+ command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}', options)
1016
+ command.response_representation = Google::Apis::AndroidpublisherV3::Listing::Representation
1017
+ command.response_class = Google::Apis::AndroidpublisherV3::Listing
1018
+ command.params['packageName'] = package_name unless package_name.nil?
1019
+ command.params['editId'] = edit_id unless edit_id.nil?
1020
+ command.params['language'] = language unless language.nil?
1021
+ command.query['fields'] = fields unless fields.nil?
1022
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1023
+ execute_or_queue_command(command, &block)
1024
+ end
1025
+
1026
+ # Lists all localized store listings.
1027
+ # @param [String] package_name
1028
+ # Package name of the app.
1029
+ # @param [String] edit_id
1030
+ # Identifier of the edit.
1031
+ # @param [String] fields
1032
+ # Selector specifying which fields to include in a partial response.
1033
+ # @param [String] quota_user
1034
+ # Available to use for quota purposes for server-side applications. Can be any
1035
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1036
+ # @param [Google::Apis::RequestOptions] options
1037
+ # Request-specific options
1038
+ #
1039
+ # @yield [result, err] Result & error if block supplied
1040
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::ListingsListResponse] parsed result object
1041
+ # @yieldparam err [StandardError] error object if request failed
1042
+ #
1043
+ # @return [Google::Apis::AndroidpublisherV3::ListingsListResponse]
1044
+ #
1045
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1046
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1047
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1048
+ def list_edit_listings(package_name, edit_id, fields: nil, quota_user: nil, options: nil, &block)
1049
+ command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/listings', options)
1050
+ command.response_representation = Google::Apis::AndroidpublisherV3::ListingsListResponse::Representation
1051
+ command.response_class = Google::Apis::AndroidpublisherV3::ListingsListResponse
1052
+ command.params['packageName'] = package_name unless package_name.nil?
1053
+ command.params['editId'] = edit_id unless edit_id.nil?
1054
+ command.query['fields'] = fields unless fields.nil?
1055
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1056
+ execute_or_queue_command(command, &block)
1057
+ end
1058
+
1059
+ # Patches a localized store listing.
1060
+ # @param [String] package_name
1061
+ # Package name of the app.
1062
+ # @param [String] edit_id
1063
+ # Identifier of the edit.
1064
+ # @param [String] language
1065
+ # Language localization code (a BCP-47 language tag; for example, "de-AT" for
1066
+ # Austrian German).
1067
+ # @param [Google::Apis::AndroidpublisherV3::Listing] listing_object
1068
+ # @param [String] fields
1069
+ # Selector specifying which fields to include in a partial response.
1070
+ # @param [String] quota_user
1071
+ # Available to use for quota purposes for server-side applications. Can be any
1072
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1073
+ # @param [Google::Apis::RequestOptions] options
1074
+ # Request-specific options
1075
+ #
1076
+ # @yield [result, err] Result & error if block supplied
1077
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::Listing] parsed result object
1078
+ # @yieldparam err [StandardError] error object if request failed
1079
+ #
1080
+ # @return [Google::Apis::AndroidpublisherV3::Listing]
1081
+ #
1082
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1083
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1084
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1085
+ def patch_edit_listing(package_name, edit_id, language, listing_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1086
+ command = make_simple_command(:patch, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}', options)
1087
+ command.request_representation = Google::Apis::AndroidpublisherV3::Listing::Representation
1088
+ command.request_object = listing_object
1089
+ command.response_representation = Google::Apis::AndroidpublisherV3::Listing::Representation
1090
+ command.response_class = Google::Apis::AndroidpublisherV3::Listing
1091
+ command.params['packageName'] = package_name unless package_name.nil?
1092
+ command.params['editId'] = edit_id unless edit_id.nil?
1093
+ command.params['language'] = language unless language.nil?
1094
+ command.query['fields'] = fields unless fields.nil?
1095
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1096
+ execute_or_queue_command(command, &block)
1097
+ end
1098
+
1099
+ # Creates or updates a localized store listing.
1100
+ # @param [String] package_name
1101
+ # Package name of the app.
1102
+ # @param [String] edit_id
1103
+ # Identifier of the edit.
1104
+ # @param [String] language
1105
+ # Language localization code (a BCP-47 language tag; for example, "de-AT" for
1106
+ # Austrian German).
1107
+ # @param [Google::Apis::AndroidpublisherV3::Listing] listing_object
1108
+ # @param [String] fields
1109
+ # Selector specifying which fields to include in a partial response.
1110
+ # @param [String] quota_user
1111
+ # Available to use for quota purposes for server-side applications. Can be any
1112
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1113
+ # @param [Google::Apis::RequestOptions] options
1114
+ # Request-specific options
1115
+ #
1116
+ # @yield [result, err] Result & error if block supplied
1117
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::Listing] parsed result object
1118
+ # @yieldparam err [StandardError] error object if request failed
1119
+ #
1120
+ # @return [Google::Apis::AndroidpublisherV3::Listing]
1121
+ #
1122
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1123
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1124
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1125
+ def update_edit_listing(package_name, edit_id, language, listing_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1126
+ command = make_simple_command(:put, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}', options)
1127
+ command.request_representation = Google::Apis::AndroidpublisherV3::Listing::Representation
1128
+ command.request_object = listing_object
1129
+ command.response_representation = Google::Apis::AndroidpublisherV3::Listing::Representation
1130
+ command.response_class = Google::Apis::AndroidpublisherV3::Listing
1131
+ command.params['packageName'] = package_name unless package_name.nil?
1132
+ command.params['editId'] = edit_id unless edit_id.nil?
1133
+ command.params['language'] = language unless language.nil?
1134
+ command.query['fields'] = fields unless fields.nil?
1135
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1136
+ execute_or_queue_command(command, &block)
1137
+ end
1138
+
1139
+ # Gets testers.
1140
+ # @param [String] package_name
1141
+ # Package name of the app.
1142
+ # @param [String] edit_id
1143
+ # Identifier of the edit.
1144
+ # @param [String] track
1145
+ # The track to read from.
1146
+ # @param [String] fields
1147
+ # Selector specifying which fields to include in a partial response.
1148
+ # @param [String] quota_user
1149
+ # Available to use for quota purposes for server-side applications. Can be any
1150
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1151
+ # @param [Google::Apis::RequestOptions] options
1152
+ # Request-specific options
1153
+ #
1154
+ # @yield [result, err] Result & error if block supplied
1155
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::Testers] parsed result object
1156
+ # @yieldparam err [StandardError] error object if request failed
1157
+ #
1158
+ # @return [Google::Apis::AndroidpublisherV3::Testers]
1159
+ #
1160
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1161
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1162
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1163
+ def get_edit_tester(package_name, edit_id, track, fields: nil, quota_user: nil, options: nil, &block)
1164
+ command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/testers/{track}', options)
1165
+ command.response_representation = Google::Apis::AndroidpublisherV3::Testers::Representation
1166
+ command.response_class = Google::Apis::AndroidpublisherV3::Testers
1167
+ command.params['packageName'] = package_name unless package_name.nil?
1168
+ command.params['editId'] = edit_id unless edit_id.nil?
1169
+ command.params['track'] = track unless track.nil?
1170
+ command.query['fields'] = fields unless fields.nil?
1171
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1172
+ execute_or_queue_command(command, &block)
1173
+ end
1174
+
1175
+ # Patches testers.
1176
+ # @param [String] package_name
1177
+ # Package name of the app.
1178
+ # @param [String] edit_id
1179
+ # Identifier of the edit.
1180
+ # @param [String] track
1181
+ # The track to update.
1182
+ # @param [Google::Apis::AndroidpublisherV3::Testers] testers_object
1183
+ # @param [String] fields
1184
+ # Selector specifying which fields to include in a partial response.
1185
+ # @param [String] quota_user
1186
+ # Available to use for quota purposes for server-side applications. Can be any
1187
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1188
+ # @param [Google::Apis::RequestOptions] options
1189
+ # Request-specific options
1190
+ #
1191
+ # @yield [result, err] Result & error if block supplied
1192
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::Testers] parsed result object
1193
+ # @yieldparam err [StandardError] error object if request failed
1194
+ #
1195
+ # @return [Google::Apis::AndroidpublisherV3::Testers]
1196
+ #
1197
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1198
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1199
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1200
+ def patch_edit_tester(package_name, edit_id, track, testers_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1201
+ command = make_simple_command(:patch, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/testers/{track}', options)
1202
+ command.request_representation = Google::Apis::AndroidpublisherV3::Testers::Representation
1203
+ command.request_object = testers_object
1204
+ command.response_representation = Google::Apis::AndroidpublisherV3::Testers::Representation
1205
+ command.response_class = Google::Apis::AndroidpublisherV3::Testers
1206
+ command.params['packageName'] = package_name unless package_name.nil?
1207
+ command.params['editId'] = edit_id unless edit_id.nil?
1208
+ command.params['track'] = track unless track.nil?
1209
+ command.query['fields'] = fields unless fields.nil?
1210
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1211
+ execute_or_queue_command(command, &block)
1212
+ end
1213
+
1214
+ # Updates testers.
1215
+ # @param [String] package_name
1216
+ # Package name of the app.
1217
+ # @param [String] edit_id
1218
+ # Identifier of the edit.
1219
+ # @param [String] track
1220
+ # The track to update.
1221
+ # @param [Google::Apis::AndroidpublisherV3::Testers] testers_object
1222
+ # @param [String] fields
1223
+ # Selector specifying which fields to include in a partial response.
1224
+ # @param [String] quota_user
1225
+ # Available to use for quota purposes for server-side applications. Can be any
1226
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1227
+ # @param [Google::Apis::RequestOptions] options
1228
+ # Request-specific options
1229
+ #
1230
+ # @yield [result, err] Result & error if block supplied
1231
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::Testers] parsed result object
1232
+ # @yieldparam err [StandardError] error object if request failed
1233
+ #
1234
+ # @return [Google::Apis::AndroidpublisherV3::Testers]
1235
+ #
1236
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1237
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1238
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1239
+ def update_edit_tester(package_name, edit_id, track, testers_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1240
+ command = make_simple_command(:put, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/testers/{track}', options)
1241
+ command.request_representation = Google::Apis::AndroidpublisherV3::Testers::Representation
1242
+ command.request_object = testers_object
1243
+ command.response_representation = Google::Apis::AndroidpublisherV3::Testers::Representation
1244
+ command.response_class = Google::Apis::AndroidpublisherV3::Testers
1245
+ command.params['packageName'] = package_name unless package_name.nil?
1246
+ command.params['editId'] = edit_id unless edit_id.nil?
1247
+ command.params['track'] = track unless track.nil?
1248
+ command.query['fields'] = fields unless fields.nil?
1249
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1250
+ execute_or_queue_command(command, &block)
1251
+ end
1252
+
1253
+ # Gets a track.
1254
+ # @param [String] package_name
1255
+ # Package name of the app.
1256
+ # @param [String] edit_id
1257
+ # Identifier of the edit.
1258
+ # @param [String] track
1259
+ # Identifier of the track.
1260
+ # @param [String] fields
1261
+ # Selector specifying which fields to include in a partial response.
1262
+ # @param [String] quota_user
1263
+ # Available to use for quota purposes for server-side applications. Can be any
1264
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1265
+ # @param [Google::Apis::RequestOptions] options
1266
+ # Request-specific options
1267
+ #
1268
+ # @yield [result, err] Result & error if block supplied
1269
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::Track] parsed result object
1270
+ # @yieldparam err [StandardError] error object if request failed
1271
+ #
1272
+ # @return [Google::Apis::AndroidpublisherV3::Track]
1273
+ #
1274
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1275
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1276
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1277
+ def get_edit_track(package_name, edit_id, track, fields: nil, quota_user: nil, options: nil, &block)
1278
+ command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks/{track}', options)
1279
+ command.response_representation = Google::Apis::AndroidpublisherV3::Track::Representation
1280
+ command.response_class = Google::Apis::AndroidpublisherV3::Track
1281
+ command.params['packageName'] = package_name unless package_name.nil?
1282
+ command.params['editId'] = edit_id unless edit_id.nil?
1283
+ command.params['track'] = track unless track.nil?
1284
+ command.query['fields'] = fields unless fields.nil?
1285
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1286
+ execute_or_queue_command(command, &block)
1287
+ end
1288
+
1289
+ # Lists all tracks.
1290
+ # @param [String] package_name
1291
+ # Package name of the app.
1292
+ # @param [String] edit_id
1293
+ # Identifier of the edit.
1294
+ # @param [String] fields
1295
+ # Selector specifying which fields to include in a partial response.
1296
+ # @param [String] quota_user
1297
+ # Available to use for quota purposes for server-side applications. Can be any
1298
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1299
+ # @param [Google::Apis::RequestOptions] options
1300
+ # Request-specific options
1301
+ #
1302
+ # @yield [result, err] Result & error if block supplied
1303
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::TracksListResponse] parsed result object
1304
+ # @yieldparam err [StandardError] error object if request failed
1305
+ #
1306
+ # @return [Google::Apis::AndroidpublisherV3::TracksListResponse]
1307
+ #
1308
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1309
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1310
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1311
+ def list_edit_tracks(package_name, edit_id, fields: nil, quota_user: nil, options: nil, &block)
1312
+ command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks', options)
1313
+ command.response_representation = Google::Apis::AndroidpublisherV3::TracksListResponse::Representation
1314
+ command.response_class = Google::Apis::AndroidpublisherV3::TracksListResponse
1315
+ command.params['packageName'] = package_name unless package_name.nil?
1316
+ command.params['editId'] = edit_id unless edit_id.nil?
1317
+ command.query['fields'] = fields unless fields.nil?
1318
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1319
+ execute_or_queue_command(command, &block)
1320
+ end
1321
+
1322
+ # Patches a track.
1323
+ # @param [String] package_name
1324
+ # Package name of the app.
1325
+ # @param [String] edit_id
1326
+ # Identifier of the edit.
1327
+ # @param [String] track
1328
+ # Identifier of the track.
1329
+ # @param [Google::Apis::AndroidpublisherV3::Track] track_object
1330
+ # @param [String] fields
1331
+ # Selector specifying which fields to include in a partial response.
1332
+ # @param [String] quota_user
1333
+ # Available to use for quota purposes for server-side applications. Can be any
1334
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1335
+ # @param [Google::Apis::RequestOptions] options
1336
+ # Request-specific options
1337
+ #
1338
+ # @yield [result, err] Result & error if block supplied
1339
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::Track] parsed result object
1340
+ # @yieldparam err [StandardError] error object if request failed
1341
+ #
1342
+ # @return [Google::Apis::AndroidpublisherV3::Track]
1343
+ #
1344
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1345
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1346
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1347
+ def patch_edit_track(package_name, edit_id, track, track_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1348
+ command = make_simple_command(:patch, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks/{track}', options)
1349
+ command.request_representation = Google::Apis::AndroidpublisherV3::Track::Representation
1350
+ command.request_object = track_object
1351
+ command.response_representation = Google::Apis::AndroidpublisherV3::Track::Representation
1352
+ command.response_class = Google::Apis::AndroidpublisherV3::Track
1353
+ command.params['packageName'] = package_name unless package_name.nil?
1354
+ command.params['editId'] = edit_id unless edit_id.nil?
1355
+ command.params['track'] = track unless track.nil?
1356
+ command.query['fields'] = fields unless fields.nil?
1357
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1358
+ execute_or_queue_command(command, &block)
1359
+ end
1360
+
1361
+ # Updates a track.
1362
+ # @param [String] package_name
1363
+ # Package name of the app.
1364
+ # @param [String] edit_id
1365
+ # Identifier of the edit.
1366
+ # @param [String] track
1367
+ # Identifier of the track.
1368
+ # @param [Google::Apis::AndroidpublisherV3::Track] track_object
1369
+ # @param [String] fields
1370
+ # Selector specifying which fields to include in a partial response.
1371
+ # @param [String] quota_user
1372
+ # Available to use for quota purposes for server-side applications. Can be any
1373
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1374
+ # @param [Google::Apis::RequestOptions] options
1375
+ # Request-specific options
1376
+ #
1377
+ # @yield [result, err] Result & error if block supplied
1378
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::Track] parsed result object
1379
+ # @yieldparam err [StandardError] error object if request failed
1380
+ #
1381
+ # @return [Google::Apis::AndroidpublisherV3::Track]
1382
+ #
1383
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1384
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1385
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1386
+ def update_edit_track(package_name, edit_id, track, track_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1387
+ command = make_simple_command(:put, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks/{track}', options)
1388
+ command.request_representation = Google::Apis::AndroidpublisherV3::Track::Representation
1389
+ command.request_object = track_object
1390
+ command.response_representation = Google::Apis::AndroidpublisherV3::Track::Representation
1391
+ command.response_class = Google::Apis::AndroidpublisherV3::Track
1392
+ command.params['packageName'] = package_name unless package_name.nil?
1393
+ command.params['editId'] = edit_id unless edit_id.nil?
1394
+ command.params['track'] = track unless track.nil?
1395
+ command.query['fields'] = fields unless fields.nil?
1396
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1397
+ execute_or_queue_command(command, &block)
1398
+ end
1399
+
1400
+ # Deletes an in-app product (i.e. a managed product or a subscriptions).
1401
+ # @param [String] package_name
1402
+ # Package name of the app.
1403
+ # @param [String] sku
1404
+ # Unique identifier for the in-app product.
1405
+ # @param [String] fields
1406
+ # Selector specifying which fields to include in a partial response.
1407
+ # @param [String] quota_user
1408
+ # Available to use for quota purposes for server-side applications. Can be any
1409
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1410
+ # @param [Google::Apis::RequestOptions] options
1411
+ # Request-specific options
1412
+ #
1413
+ # @yield [result, err] Result & error if block supplied
1414
+ # @yieldparam result [NilClass] No result returned for this method
1415
+ # @yieldparam err [StandardError] error object if request failed
1416
+ #
1417
+ # @return [void]
1418
+ #
1419
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1420
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1421
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1422
+ def delete_inappproduct(package_name, sku, fields: nil, quota_user: nil, options: nil, &block)
1423
+ command = make_simple_command(:delete, 'androidpublisher/v3/applications/{packageName}/inappproducts/{sku}', options)
1424
+ command.params['packageName'] = package_name unless package_name.nil?
1425
+ command.params['sku'] = sku unless sku.nil?
1426
+ command.query['fields'] = fields unless fields.nil?
1427
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1428
+ execute_or_queue_command(command, &block)
1429
+ end
1430
+
1431
+ # Gets an in-app product, which can be a managed product or a subscription.
1432
+ # @param [String] package_name
1433
+ # Package name of the app.
1434
+ # @param [String] sku
1435
+ # Unique identifier for the in-app product.
1436
+ # @param [String] fields
1437
+ # Selector specifying which fields to include in a partial response.
1438
+ # @param [String] quota_user
1439
+ # Available to use for quota purposes for server-side applications. Can be any
1440
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1441
+ # @param [Google::Apis::RequestOptions] options
1442
+ # Request-specific options
1443
+ #
1444
+ # @yield [result, err] Result & error if block supplied
1445
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::InAppProduct] parsed result object
1446
+ # @yieldparam err [StandardError] error object if request failed
1447
+ #
1448
+ # @return [Google::Apis::AndroidpublisherV3::InAppProduct]
1449
+ #
1450
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1451
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1452
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1453
+ def get_inappproduct(package_name, sku, fields: nil, quota_user: nil, options: nil, &block)
1454
+ command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/inappproducts/{sku}', options)
1455
+ command.response_representation = Google::Apis::AndroidpublisherV3::InAppProduct::Representation
1456
+ command.response_class = Google::Apis::AndroidpublisherV3::InAppProduct
1457
+ command.params['packageName'] = package_name unless package_name.nil?
1458
+ command.params['sku'] = sku unless sku.nil?
1459
+ command.query['fields'] = fields unless fields.nil?
1460
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1461
+ execute_or_queue_command(command, &block)
1462
+ end
1463
+
1464
+ # Creates an in-app product (i.e. a managed product or a subscriptions).
1465
+ # @param [String] package_name
1466
+ # Package name of the app.
1467
+ # @param [Google::Apis::AndroidpublisherV3::InAppProduct] in_app_product_object
1468
+ # @param [Boolean] auto_convert_missing_prices
1469
+ # If true the prices for all regions targeted by the parent app that don't have
1470
+ # a price specified for this in-app product will be auto converted to the target
1471
+ # currency based on the default price. Defaults to false.
1472
+ # @param [String] fields
1473
+ # Selector specifying which fields to include in a partial response.
1474
+ # @param [String] quota_user
1475
+ # Available to use for quota purposes for server-side applications. Can be any
1476
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1477
+ # @param [Google::Apis::RequestOptions] options
1478
+ # Request-specific options
1479
+ #
1480
+ # @yield [result, err] Result & error if block supplied
1481
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::InAppProduct] parsed result object
1482
+ # @yieldparam err [StandardError] error object if request failed
1483
+ #
1484
+ # @return [Google::Apis::AndroidpublisherV3::InAppProduct]
1485
+ #
1486
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1487
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1488
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1489
+ def insert_inappproduct(package_name, in_app_product_object = nil, auto_convert_missing_prices: nil, fields: nil, quota_user: nil, options: nil, &block)
1490
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/inappproducts', options)
1491
+ command.request_representation = Google::Apis::AndroidpublisherV3::InAppProduct::Representation
1492
+ command.request_object = in_app_product_object
1493
+ command.response_representation = Google::Apis::AndroidpublisherV3::InAppProduct::Representation
1494
+ command.response_class = Google::Apis::AndroidpublisherV3::InAppProduct
1495
+ command.params['packageName'] = package_name unless package_name.nil?
1496
+ command.query['autoConvertMissingPrices'] = auto_convert_missing_prices unless auto_convert_missing_prices.nil?
1497
+ command.query['fields'] = fields unless fields.nil?
1498
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1499
+ execute_or_queue_command(command, &block)
1500
+ end
1501
+
1502
+ # Lists all in-app products - both managed products and subscriptions.
1503
+ # @param [String] package_name
1504
+ # Package name of the app.
1505
+ # @param [Fixnum] max_results
1506
+ # How many results the list operation should return.
1507
+ # @param [Fixnum] start_index
1508
+ # The index of the first element to return.
1509
+ # @param [String] token
1510
+ # Pagination token. If empty, list starts at the first product.
1511
+ # @param [String] fields
1512
+ # Selector specifying which fields to include in a partial response.
1513
+ # @param [String] quota_user
1514
+ # Available to use for quota purposes for server-side applications. Can be any
1515
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1516
+ # @param [Google::Apis::RequestOptions] options
1517
+ # Request-specific options
1518
+ #
1519
+ # @yield [result, err] Result & error if block supplied
1520
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::InappproductsListResponse] parsed result object
1521
+ # @yieldparam err [StandardError] error object if request failed
1522
+ #
1523
+ # @return [Google::Apis::AndroidpublisherV3::InappproductsListResponse]
1524
+ #
1525
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1526
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1527
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1528
+ def list_inappproducts(package_name, max_results: nil, start_index: nil, token: nil, fields: nil, quota_user: nil, options: nil, &block)
1529
+ command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/inappproducts', options)
1530
+ command.response_representation = Google::Apis::AndroidpublisherV3::InappproductsListResponse::Representation
1531
+ command.response_class = Google::Apis::AndroidpublisherV3::InappproductsListResponse
1532
+ command.params['packageName'] = package_name unless package_name.nil?
1533
+ command.query['maxResults'] = max_results unless max_results.nil?
1534
+ command.query['startIndex'] = start_index unless start_index.nil?
1535
+ command.query['token'] = token unless token.nil?
1536
+ command.query['fields'] = fields unless fields.nil?
1537
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1538
+ execute_or_queue_command(command, &block)
1539
+ end
1540
+
1541
+ # Patches an in-app product (i.e. a managed product or a subscriptions).
1542
+ # @param [String] package_name
1543
+ # Package name of the app.
1544
+ # @param [String] sku
1545
+ # Unique identifier for the in-app product.
1546
+ # @param [Google::Apis::AndroidpublisherV3::InAppProduct] in_app_product_object
1547
+ # @param [Boolean] auto_convert_missing_prices
1548
+ # If true the prices for all regions targeted by the parent app that don't have
1549
+ # a price specified for this in-app product will be auto converted to the target
1550
+ # currency based on the default price. Defaults to false.
1551
+ # @param [String] fields
1552
+ # Selector specifying which fields to include in a partial response.
1553
+ # @param [String] quota_user
1554
+ # Available to use for quota purposes for server-side applications. Can be any
1555
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1556
+ # @param [Google::Apis::RequestOptions] options
1557
+ # Request-specific options
1558
+ #
1559
+ # @yield [result, err] Result & error if block supplied
1560
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::InAppProduct] parsed result object
1561
+ # @yieldparam err [StandardError] error object if request failed
1562
+ #
1563
+ # @return [Google::Apis::AndroidpublisherV3::InAppProduct]
1564
+ #
1565
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1566
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1567
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1568
+ def patch_inappproduct(package_name, sku, in_app_product_object = nil, auto_convert_missing_prices: nil, fields: nil, quota_user: nil, options: nil, &block)
1569
+ command = make_simple_command(:patch, 'androidpublisher/v3/applications/{packageName}/inappproducts/{sku}', options)
1570
+ command.request_representation = Google::Apis::AndroidpublisherV3::InAppProduct::Representation
1571
+ command.request_object = in_app_product_object
1572
+ command.response_representation = Google::Apis::AndroidpublisherV3::InAppProduct::Representation
1573
+ command.response_class = Google::Apis::AndroidpublisherV3::InAppProduct
1574
+ command.params['packageName'] = package_name unless package_name.nil?
1575
+ command.params['sku'] = sku unless sku.nil?
1576
+ command.query['autoConvertMissingPrices'] = auto_convert_missing_prices unless auto_convert_missing_prices.nil?
1577
+ command.query['fields'] = fields unless fields.nil?
1578
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1579
+ execute_or_queue_command(command, &block)
1580
+ end
1581
+
1582
+ # Updates an in-app product (i.e. a managed product or a subscriptions).
1583
+ # @param [String] package_name
1584
+ # Package name of the app.
1585
+ # @param [String] sku
1586
+ # Unique identifier for the in-app product.
1587
+ # @param [Google::Apis::AndroidpublisherV3::InAppProduct] in_app_product_object
1588
+ # @param [Boolean] auto_convert_missing_prices
1589
+ # If true the prices for all regions targeted by the parent app that don't have
1590
+ # a price specified for this in-app product will be auto converted to the target
1591
+ # currency based on the default price. Defaults to false.
1592
+ # @param [String] fields
1593
+ # Selector specifying which fields to include in a partial response.
1594
+ # @param [String] quota_user
1595
+ # Available to use for quota purposes for server-side applications. Can be any
1596
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1597
+ # @param [Google::Apis::RequestOptions] options
1598
+ # Request-specific options
1599
+ #
1600
+ # @yield [result, err] Result & error if block supplied
1601
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::InAppProduct] parsed result object
1602
+ # @yieldparam err [StandardError] error object if request failed
1603
+ #
1604
+ # @return [Google::Apis::AndroidpublisherV3::InAppProduct]
1605
+ #
1606
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1607
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1608
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1609
+ def update_inappproduct(package_name, sku, in_app_product_object = nil, auto_convert_missing_prices: nil, fields: nil, quota_user: nil, options: nil, &block)
1610
+ command = make_simple_command(:put, 'androidpublisher/v3/applications/{packageName}/inappproducts/{sku}', options)
1611
+ command.request_representation = Google::Apis::AndroidpublisherV3::InAppProduct::Representation
1612
+ command.request_object = in_app_product_object
1613
+ command.response_representation = Google::Apis::AndroidpublisherV3::InAppProduct::Representation
1614
+ command.response_class = Google::Apis::AndroidpublisherV3::InAppProduct
1615
+ command.params['packageName'] = package_name unless package_name.nil?
1616
+ command.params['sku'] = sku unless sku.nil?
1617
+ command.query['autoConvertMissingPrices'] = auto_convert_missing_prices unless auto_convert_missing_prices.nil?
1618
+ command.query['fields'] = fields unless fields.nil?
1619
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1620
+ execute_or_queue_command(command, &block)
1621
+ end
1622
+
1623
+ # Uploads an APK to internal app sharing. If you are using the Google API client
1624
+ # libraries, please increase the timeout of the http request before calling this
1625
+ # endpoint (a timeout of 2 minutes is recommended). See [Timeouts and Errors](
1626
+ # https://developers.google.com/api-client-library/java/google-api-java-client/
1627
+ # errors) for an example in java.
1628
+ # @param [String] package_name
1629
+ # Package name of the app.
1630
+ # @param [String] fields
1631
+ # Selector specifying which fields to include in a partial response.
1632
+ # @param [String] quota_user
1633
+ # Available to use for quota purposes for server-side applications. Can be any
1634
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1635
+ # @param [IO, String] upload_source
1636
+ # IO stream or filename containing content to upload
1637
+ # @param [String] content_type
1638
+ # Content type of the uploaded content.
1639
+ # @param [Google::Apis::RequestOptions] options
1640
+ # Request-specific options
1641
+ #
1642
+ # @yield [result, err] Result & error if block supplied
1643
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::InternalAppSharingArtifact] parsed result object
1644
+ # @yieldparam err [StandardError] error object if request failed
1645
+ #
1646
+ # @return [Google::Apis::AndroidpublisherV3::InternalAppSharingArtifact]
1647
+ #
1648
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1649
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1650
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1651
+ def uploadapk_internalappsharingartifact(package_name, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block)
1652
+ if upload_source.nil?
1653
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/apk', options)
1654
+ else
1655
+ command = make_upload_command(:post, 'androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/apk', options)
1656
+ command.upload_source = upload_source
1657
+ command.upload_content_type = content_type
1658
+ end
1659
+ command.response_representation = Google::Apis::AndroidpublisherV3::InternalAppSharingArtifact::Representation
1660
+ command.response_class = Google::Apis::AndroidpublisherV3::InternalAppSharingArtifact
1661
+ command.params['packageName'] = package_name unless package_name.nil?
1662
+ command.query['fields'] = fields unless fields.nil?
1663
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1664
+ execute_or_queue_command(command, &block)
1665
+ end
1666
+
1667
+ # Uploads an app bundle to internal app sharing. If you are using the Google API
1668
+ # client libraries, please increase the timeout of the http request before
1669
+ # calling this endpoint (a timeout of 2 minutes is recommended). See [Timeouts
1670
+ # and Errors](https://developers.google.com/api-client-library/java/google-api-
1671
+ # java-client/errors) for an example in java.
1672
+ # @param [String] package_name
1673
+ # Package name of the app.
1674
+ # @param [String] fields
1675
+ # Selector specifying which fields to include in a partial response.
1676
+ # @param [String] quota_user
1677
+ # Available to use for quota purposes for server-side applications. Can be any
1678
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1679
+ # @param [IO, String] upload_source
1680
+ # IO stream or filename containing content to upload
1681
+ # @param [String] content_type
1682
+ # Content type of the uploaded content.
1683
+ # @param [Google::Apis::RequestOptions] options
1684
+ # Request-specific options
1685
+ #
1686
+ # @yield [result, err] Result & error if block supplied
1687
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::InternalAppSharingArtifact] parsed result object
1688
+ # @yieldparam err [StandardError] error object if request failed
1689
+ #
1690
+ # @return [Google::Apis::AndroidpublisherV3::InternalAppSharingArtifact]
1691
+ #
1692
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1693
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1694
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1695
+ def uploadbundle_internalappsharingartifact(package_name, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block)
1696
+ if upload_source.nil?
1697
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/bundle', options)
1698
+ else
1699
+ command = make_upload_command(:post, 'androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/bundle', options)
1700
+ command.upload_source = upload_source
1701
+ command.upload_content_type = content_type
1702
+ end
1703
+ command.response_representation = Google::Apis::AndroidpublisherV3::InternalAppSharingArtifact::Representation
1704
+ command.response_class = Google::Apis::AndroidpublisherV3::InternalAppSharingArtifact
1705
+ command.params['packageName'] = package_name unless package_name.nil?
1706
+ command.query['fields'] = fields unless fields.nil?
1707
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1708
+ execute_or_queue_command(command, &block)
1709
+ end
1710
+
1711
+ # Refund a user's subscription or in-app purchase order.
1712
+ # @param [String] package_name
1713
+ # The package name of the application for which this subscription or in-app item
1714
+ # was purchased (for example, 'com.some.thing').
1715
+ # @param [String] order_id
1716
+ # The order ID provided to the user when the subscription or in-app order was
1717
+ # purchased.
1718
+ # @param [Boolean] revoke
1719
+ # Whether to revoke the purchased item. If set to true, access to the
1720
+ # subscription or in-app item will be terminated immediately. If the item is a
1721
+ # recurring subscription, all future payments will also be terminated. Consumed
1722
+ # in-app items need to be handled by developer's app. (optional).
1723
+ # @param [String] fields
1724
+ # Selector specifying which fields to include in a partial response.
1725
+ # @param [String] quota_user
1726
+ # Available to use for quota purposes for server-side applications. Can be any
1727
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1728
+ # @param [Google::Apis::RequestOptions] options
1729
+ # Request-specific options
1730
+ #
1731
+ # @yield [result, err] Result & error if block supplied
1732
+ # @yieldparam result [NilClass] No result returned for this method
1733
+ # @yieldparam err [StandardError] error object if request failed
1734
+ #
1735
+ # @return [void]
1736
+ #
1737
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1738
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1739
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1740
+ def refund_order(package_name, order_id, revoke: nil, fields: nil, quota_user: nil, options: nil, &block)
1741
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/orders/{orderId}:refund', options)
1742
+ command.params['packageName'] = package_name unless package_name.nil?
1743
+ command.params['orderId'] = order_id unless order_id.nil?
1744
+ command.query['revoke'] = revoke unless revoke.nil?
1745
+ command.query['fields'] = fields unless fields.nil?
1746
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1747
+ execute_or_queue_command(command, &block)
1748
+ end
1749
+
1750
+ # Acknowledges a purchase of an inapp item.
1751
+ # @param [String] package_name
1752
+ # The package name of the application the inapp product was sold in (for example,
1753
+ # 'com.some.thing').
1754
+ # @param [String] product_id
1755
+ # The inapp product SKU (for example, 'com.some.thing.inapp1').
1756
+ # @param [String] token
1757
+ # The token provided to the user's device when the inapp product was purchased.
1758
+ # @param [Google::Apis::AndroidpublisherV3::ProductPurchasesAcknowledgeRequest] product_purchases_acknowledge_request_object
1759
+ # @param [String] fields
1760
+ # Selector specifying which fields to include in a partial response.
1761
+ # @param [String] quota_user
1762
+ # Available to use for quota purposes for server-side applications. Can be any
1763
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1764
+ # @param [Google::Apis::RequestOptions] options
1765
+ # Request-specific options
1766
+ #
1767
+ # @yield [result, err] Result & error if block supplied
1768
+ # @yieldparam result [NilClass] No result returned for this method
1769
+ # @yieldparam err [StandardError] error object if request failed
1770
+ #
1771
+ # @return [void]
1772
+ #
1773
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1774
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1775
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1776
+ def acknowledge_purchase_product(package_name, product_id, token, product_purchases_acknowledge_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1777
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}:acknowledge', options)
1778
+ command.request_representation = Google::Apis::AndroidpublisherV3::ProductPurchasesAcknowledgeRequest::Representation
1779
+ command.request_object = product_purchases_acknowledge_request_object
1780
+ command.params['packageName'] = package_name unless package_name.nil?
1781
+ command.params['productId'] = product_id unless product_id.nil?
1782
+ command.params['token'] = token unless token.nil?
1783
+ command.query['fields'] = fields unless fields.nil?
1784
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1785
+ execute_or_queue_command(command, &block)
1786
+ end
1787
+
1788
+ # Checks the purchase and consumption status of an inapp item.
1789
+ # @param [String] package_name
1790
+ # The package name of the application the inapp product was sold in (for example,
1791
+ # 'com.some.thing').
1792
+ # @param [String] product_id
1793
+ # The inapp product SKU (for example, 'com.some.thing.inapp1').
1794
+ # @param [String] token
1795
+ # The token provided to the user's device when the inapp product was purchased.
1796
+ # @param [String] fields
1797
+ # Selector specifying which fields to include in a partial response.
1798
+ # @param [String] quota_user
1799
+ # Available to use for quota purposes for server-side applications. Can be any
1800
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1801
+ # @param [Google::Apis::RequestOptions] options
1802
+ # Request-specific options
1803
+ #
1804
+ # @yield [result, err] Result & error if block supplied
1805
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::ProductPurchase] parsed result object
1806
+ # @yieldparam err [StandardError] error object if request failed
1807
+ #
1808
+ # @return [Google::Apis::AndroidpublisherV3::ProductPurchase]
1809
+ #
1810
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1811
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1812
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1813
+ def get_purchase_product(package_name, product_id, token, fields: nil, quota_user: nil, options: nil, &block)
1814
+ command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}', options)
1815
+ command.response_representation = Google::Apis::AndroidpublisherV3::ProductPurchase::Representation
1816
+ command.response_class = Google::Apis::AndroidpublisherV3::ProductPurchase
1817
+ command.params['packageName'] = package_name unless package_name.nil?
1818
+ command.params['productId'] = product_id unless product_id.nil?
1819
+ command.params['token'] = token unless token.nil?
1820
+ command.query['fields'] = fields unless fields.nil?
1821
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1822
+ execute_or_queue_command(command, &block)
1823
+ end
1824
+
1825
+ # Acknowledges a subscription purchase.
1826
+ # @param [String] package_name
1827
+ # The package name of the application for which this subscription was purchased (
1828
+ # for example, 'com.some.thing').
1829
+ # @param [String] subscription_id
1830
+ # The purchased subscription ID (for example, 'monthly001').
1831
+ # @param [String] token
1832
+ # The token provided to the user's device when the subscription was purchased.
1833
+ # @param [Google::Apis::AndroidpublisherV3::SubscriptionPurchasesAcknowledgeRequest] subscription_purchases_acknowledge_request_object
1834
+ # @param [String] fields
1835
+ # Selector specifying which fields to include in a partial response.
1836
+ # @param [String] quota_user
1837
+ # Available to use for quota purposes for server-side applications. Can be any
1838
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1839
+ # @param [Google::Apis::RequestOptions] options
1840
+ # Request-specific options
1841
+ #
1842
+ # @yield [result, err] Result & error if block supplied
1843
+ # @yieldparam result [NilClass] No result returned for this method
1844
+ # @yieldparam err [StandardError] error object if request failed
1845
+ #
1846
+ # @return [void]
1847
+ #
1848
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1849
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1850
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1851
+ def acknowledge_purchase_subscription(package_name, subscription_id, token, subscription_purchases_acknowledge_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1852
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:acknowledge', options)
1853
+ command.request_representation = Google::Apis::AndroidpublisherV3::SubscriptionPurchasesAcknowledgeRequest::Representation
1854
+ command.request_object = subscription_purchases_acknowledge_request_object
1855
+ command.params['packageName'] = package_name unless package_name.nil?
1856
+ command.params['subscriptionId'] = subscription_id unless subscription_id.nil?
1857
+ command.params['token'] = token unless token.nil?
1858
+ command.query['fields'] = fields unless fields.nil?
1859
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1860
+ execute_or_queue_command(command, &block)
1861
+ end
1862
+
1863
+ # Cancels a user's subscription purchase. The subscription remains valid until
1864
+ # its expiration time.
1865
+ # @param [String] package_name
1866
+ # The package name of the application for which this subscription was purchased (
1867
+ # for example, 'com.some.thing').
1868
+ # @param [String] subscription_id
1869
+ # The purchased subscription ID (for example, 'monthly001').
1870
+ # @param [String] token
1871
+ # The token provided to the user's device when the subscription was purchased.
1872
+ # @param [String] fields
1873
+ # Selector specifying which fields to include in a partial response.
1874
+ # @param [String] quota_user
1875
+ # Available to use for quota purposes for server-side applications. Can be any
1876
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1877
+ # @param [Google::Apis::RequestOptions] options
1878
+ # Request-specific options
1879
+ #
1880
+ # @yield [result, err] Result & error if block supplied
1881
+ # @yieldparam result [NilClass] No result returned for this method
1882
+ # @yieldparam err [StandardError] error object if request failed
1883
+ #
1884
+ # @return [void]
1885
+ #
1886
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1887
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1888
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1889
+ def cancel_purchase_subscription(package_name, subscription_id, token, fields: nil, quota_user: nil, options: nil, &block)
1890
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:cancel', options)
1891
+ command.params['packageName'] = package_name unless package_name.nil?
1892
+ command.params['subscriptionId'] = subscription_id unless subscription_id.nil?
1893
+ command.params['token'] = token unless token.nil?
1894
+ command.query['fields'] = fields unless fields.nil?
1895
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1896
+ execute_or_queue_command(command, &block)
1897
+ end
1898
+
1899
+ # Defers a user's subscription purchase until a specified future expiration time.
1900
+ # @param [String] package_name
1901
+ # The package name of the application for which this subscription was purchased (
1902
+ # for example, 'com.some.thing').
1903
+ # @param [String] subscription_id
1904
+ # The purchased subscription ID (for example, 'monthly001').
1905
+ # @param [String] token
1906
+ # The token provided to the user's device when the subscription was purchased.
1907
+ # @param [Google::Apis::AndroidpublisherV3::SubscriptionPurchasesDeferRequest] subscription_purchases_defer_request_object
1908
+ # @param [String] fields
1909
+ # Selector specifying which fields to include in a partial response.
1910
+ # @param [String] quota_user
1911
+ # Available to use for quota purposes for server-side applications. Can be any
1912
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1913
+ # @param [Google::Apis::RequestOptions] options
1914
+ # Request-specific options
1915
+ #
1916
+ # @yield [result, err] Result & error if block supplied
1917
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::SubscriptionPurchasesDeferResponse] parsed result object
1918
+ # @yieldparam err [StandardError] error object if request failed
1919
+ #
1920
+ # @return [Google::Apis::AndroidpublisherV3::SubscriptionPurchasesDeferResponse]
1921
+ #
1922
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1923
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1924
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1925
+ def defer_purchase_subscription(package_name, subscription_id, token, subscription_purchases_defer_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1926
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:defer', options)
1927
+ command.request_representation = Google::Apis::AndroidpublisherV3::SubscriptionPurchasesDeferRequest::Representation
1928
+ command.request_object = subscription_purchases_defer_request_object
1929
+ command.response_representation = Google::Apis::AndroidpublisherV3::SubscriptionPurchasesDeferResponse::Representation
1930
+ command.response_class = Google::Apis::AndroidpublisherV3::SubscriptionPurchasesDeferResponse
1931
+ command.params['packageName'] = package_name unless package_name.nil?
1932
+ command.params['subscriptionId'] = subscription_id unless subscription_id.nil?
1933
+ command.params['token'] = token unless token.nil?
1934
+ command.query['fields'] = fields unless fields.nil?
1935
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1936
+ execute_or_queue_command(command, &block)
1937
+ end
1938
+
1939
+ # Checks whether a user's subscription purchase is valid and returns its expiry
1940
+ # time.
1941
+ # @param [String] package_name
1942
+ # The package name of the application for which this subscription was purchased (
1943
+ # for example, 'com.some.thing').
1944
+ # @param [String] subscription_id
1945
+ # The purchased subscription ID (for example, 'monthly001').
1946
+ # @param [String] token
1947
+ # The token provided to the user's device when the subscription was purchased.
1948
+ # @param [String] fields
1949
+ # Selector specifying which fields to include in a partial response.
1950
+ # @param [String] quota_user
1951
+ # Available to use for quota purposes for server-side applications. Can be any
1952
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1953
+ # @param [Google::Apis::RequestOptions] options
1954
+ # Request-specific options
1955
+ #
1956
+ # @yield [result, err] Result & error if block supplied
1957
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::SubscriptionPurchase] parsed result object
1958
+ # @yieldparam err [StandardError] error object if request failed
1959
+ #
1960
+ # @return [Google::Apis::AndroidpublisherV3::SubscriptionPurchase]
1961
+ #
1962
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1963
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1964
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1965
+ def get_purchase_subscription(package_name, subscription_id, token, fields: nil, quota_user: nil, options: nil, &block)
1966
+ command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}', options)
1967
+ command.response_representation = Google::Apis::AndroidpublisherV3::SubscriptionPurchase::Representation
1968
+ command.response_class = Google::Apis::AndroidpublisherV3::SubscriptionPurchase
1969
+ command.params['packageName'] = package_name unless package_name.nil?
1970
+ command.params['subscriptionId'] = subscription_id unless subscription_id.nil?
1971
+ command.params['token'] = token unless token.nil?
1972
+ command.query['fields'] = fields unless fields.nil?
1973
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1974
+ execute_or_queue_command(command, &block)
1975
+ end
1976
+
1977
+ # Refunds a user's subscription purchase, but the subscription remains valid
1978
+ # until its expiration time and it will continue to recur.
1979
+ # @param [String] package_name
1980
+ # The package name of the application for which this subscription was purchased (
1981
+ # for example, 'com.some.thing').
1982
+ # @param [String] subscription_id
1983
+ # "The purchased subscription ID (for example, 'monthly001').
1984
+ # @param [String] token
1985
+ # The token provided to the user's device when the subscription was purchased.
1986
+ # @param [String] fields
1987
+ # Selector specifying which fields to include in a partial response.
1988
+ # @param [String] quota_user
1989
+ # Available to use for quota purposes for server-side applications. Can be any
1990
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1991
+ # @param [Google::Apis::RequestOptions] options
1992
+ # Request-specific options
1993
+ #
1994
+ # @yield [result, err] Result & error if block supplied
1995
+ # @yieldparam result [NilClass] No result returned for this method
1996
+ # @yieldparam err [StandardError] error object if request failed
1997
+ #
1998
+ # @return [void]
1999
+ #
2000
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2001
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2002
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2003
+ def refund_purchase_subscription(package_name, subscription_id, token, fields: nil, quota_user: nil, options: nil, &block)
2004
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:refund', options)
2005
+ command.params['packageName'] = package_name unless package_name.nil?
2006
+ command.params['subscriptionId'] = subscription_id unless subscription_id.nil?
2007
+ command.params['token'] = token unless token.nil?
2008
+ command.query['fields'] = fields unless fields.nil?
2009
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2010
+ execute_or_queue_command(command, &block)
2011
+ end
2012
+
2013
+ # Refunds and immediately revokes a user's subscription purchase. Access to the
2014
+ # subscription will be terminated immediately and it will stop recurring.
2015
+ # @param [String] package_name
2016
+ # The package name of the application for which this subscription was purchased (
2017
+ # for example, 'com.some.thing').
2018
+ # @param [String] subscription_id
2019
+ # The purchased subscription ID (for example, 'monthly001').
2020
+ # @param [String] token
2021
+ # The token provided to the user's device when the subscription was purchased.
2022
+ # @param [String] fields
2023
+ # Selector specifying which fields to include in a partial response.
2024
+ # @param [String] quota_user
2025
+ # Available to use for quota purposes for server-side applications. Can be any
2026
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2027
+ # @param [Google::Apis::RequestOptions] options
2028
+ # Request-specific options
2029
+ #
2030
+ # @yield [result, err] Result & error if block supplied
2031
+ # @yieldparam result [NilClass] No result returned for this method
2032
+ # @yieldparam err [StandardError] error object if request failed
2033
+ #
2034
+ # @return [void]
2035
+ #
2036
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2037
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2038
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2039
+ def revoke_purchase_subscription(package_name, subscription_id, token, fields: nil, quota_user: nil, options: nil, &block)
2040
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:revoke', options)
2041
+ command.params['packageName'] = package_name unless package_name.nil?
2042
+ command.params['subscriptionId'] = subscription_id unless subscription_id.nil?
2043
+ command.params['token'] = token unless token.nil?
2044
+ command.query['fields'] = fields unless fields.nil?
2045
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2046
+ execute_or_queue_command(command, &block)
2047
+ end
2048
+
2049
+ # Lists the purchases that were canceled, refunded or charged-back.
2050
+ # @param [String] package_name
2051
+ # The package name of the application for which voided purchases need to be
2052
+ # returned (for example, 'com.some.thing').
2053
+ # @param [Fixnum] end_time
2054
+ # The time, in milliseconds since the Epoch, of the newest voided purchase that
2055
+ # you want to see in the response. The value of this parameter cannot be greater
2056
+ # than the current time and is ignored if a pagination token is set. Default
2057
+ # value is current time. Note: This filter is applied on the time at which the
2058
+ # record is seen as voided by our systems and not the actual voided time
2059
+ # returned in the response.
2060
+ # @param [Fixnum] max_results
2061
+ # Defines how many results the list operation should return. The default number
2062
+ # depends on the resource collection.
2063
+ # @param [Fixnum] start_index
2064
+ # Defines the index of the first element to return. This can only be used if
2065
+ # indexed paging is enabled.
2066
+ # @param [Fixnum] start_time
2067
+ # The time, in milliseconds since the Epoch, of the oldest voided purchase that
2068
+ # you want to see in the response. The value of this parameter cannot be older
2069
+ # than 30 days and is ignored if a pagination token is set. Default value is
2070
+ # current time minus 30 days. Note: This filter is applied on the time at which
2071
+ # the record is seen as voided by our systems and not the actual voided time
2072
+ # returned in the response.
2073
+ # @param [String] token
2074
+ # Defines the token of the page to return, usually taken from TokenPagination.
2075
+ # This can only be used if token paging is enabled.
2076
+ # @param [Fixnum] type
2077
+ # The type of voided purchases that you want to see in the response. Possible
2078
+ # values are: 0. Only voided in-app product purchases will be returned in the
2079
+ # response. This is the default value. 1. Both voided in-app purchases and
2080
+ # voided subscription purchases will be returned in the response. Note: Before
2081
+ # requesting to receive voided subscription purchases, you must switch to use
2082
+ # orderId in the response which uniquely identifies one-time purchases and
2083
+ # subscriptions. Otherwise, you will receive multiple subscription orders with
2084
+ # the same PurchaseToken, because subscription renewal orders share the same
2085
+ # PurchaseToken.
2086
+ # @param [String] fields
2087
+ # Selector specifying which fields to include in a partial response.
2088
+ # @param [String] quota_user
2089
+ # Available to use for quota purposes for server-side applications. Can be any
2090
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2091
+ # @param [Google::Apis::RequestOptions] options
2092
+ # Request-specific options
2093
+ #
2094
+ # @yield [result, err] Result & error if block supplied
2095
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::VoidedPurchasesListResponse] parsed result object
2096
+ # @yieldparam err [StandardError] error object if request failed
2097
+ #
2098
+ # @return [Google::Apis::AndroidpublisherV3::VoidedPurchasesListResponse]
2099
+ #
2100
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2101
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2102
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2103
+ def list_purchase_voidedpurchases(package_name, end_time: nil, max_results: nil, start_index: nil, start_time: nil, token: nil, type: nil, fields: nil, quota_user: nil, options: nil, &block)
2104
+ command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/purchases/voidedpurchases', options)
2105
+ command.response_representation = Google::Apis::AndroidpublisherV3::VoidedPurchasesListResponse::Representation
2106
+ command.response_class = Google::Apis::AndroidpublisherV3::VoidedPurchasesListResponse
2107
+ command.params['packageName'] = package_name unless package_name.nil?
2108
+ command.query['endTime'] = end_time unless end_time.nil?
2109
+ command.query['maxResults'] = max_results unless max_results.nil?
2110
+ command.query['startIndex'] = start_index unless start_index.nil?
2111
+ command.query['startTime'] = start_time unless start_time.nil?
2112
+ command.query['token'] = token unless token.nil?
2113
+ command.query['type'] = type unless type.nil?
2114
+ command.query['fields'] = fields unless fields.nil?
2115
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2116
+ execute_or_queue_command(command, &block)
2117
+ end
2118
+
2119
+ # Gets a single review.
2120
+ # @param [String] package_name
2121
+ # Package name of the app.
2122
+ # @param [String] review_id
2123
+ # Unique identifier for a review.
2124
+ # @param [String] translation_language
2125
+ # Language localization code.
2126
+ # @param [String] fields
2127
+ # Selector specifying which fields to include in a partial response.
2128
+ # @param [String] quota_user
2129
+ # Available to use for quota purposes for server-side applications. Can be any
2130
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2131
+ # @param [Google::Apis::RequestOptions] options
2132
+ # Request-specific options
2133
+ #
2134
+ # @yield [result, err] Result & error if block supplied
2135
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::Review] parsed result object
2136
+ # @yieldparam err [StandardError] error object if request failed
2137
+ #
2138
+ # @return [Google::Apis::AndroidpublisherV3::Review]
2139
+ #
2140
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2141
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2142
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2143
+ def get_review(package_name, review_id, translation_language: nil, fields: nil, quota_user: nil, options: nil, &block)
2144
+ command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/reviews/{reviewId}', options)
2145
+ command.response_representation = Google::Apis::AndroidpublisherV3::Review::Representation
2146
+ command.response_class = Google::Apis::AndroidpublisherV3::Review
2147
+ command.params['packageName'] = package_name unless package_name.nil?
2148
+ command.params['reviewId'] = review_id unless review_id.nil?
2149
+ command.query['translationLanguage'] = translation_language unless translation_language.nil?
2150
+ command.query['fields'] = fields unless fields.nil?
2151
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2152
+ execute_or_queue_command(command, &block)
2153
+ end
2154
+
2155
+ # Lists all reviews.
2156
+ # @param [String] package_name
2157
+ # Package name of the app.
2158
+ # @param [Fixnum] max_results
2159
+ # How many results the list operation should return.
2160
+ # @param [Fixnum] start_index
2161
+ # The index of the first element to return.
2162
+ # @param [String] token
2163
+ # Pagination token. If empty, list starts at the first review.
2164
+ # @param [String] translation_language
2165
+ # Language localization code.
2166
+ # @param [String] fields
2167
+ # Selector specifying which fields to include in a partial response.
2168
+ # @param [String] quota_user
2169
+ # Available to use for quota purposes for server-side applications. Can be any
2170
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2171
+ # @param [Google::Apis::RequestOptions] options
2172
+ # Request-specific options
2173
+ #
2174
+ # @yield [result, err] Result & error if block supplied
2175
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::ReviewsListResponse] parsed result object
2176
+ # @yieldparam err [StandardError] error object if request failed
2177
+ #
2178
+ # @return [Google::Apis::AndroidpublisherV3::ReviewsListResponse]
2179
+ #
2180
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2181
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2182
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2183
+ def list_reviews(package_name, max_results: nil, start_index: nil, token: nil, translation_language: nil, fields: nil, quota_user: nil, options: nil, &block)
2184
+ command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/reviews', options)
2185
+ command.response_representation = Google::Apis::AndroidpublisherV3::ReviewsListResponse::Representation
2186
+ command.response_class = Google::Apis::AndroidpublisherV3::ReviewsListResponse
2187
+ command.params['packageName'] = package_name unless package_name.nil?
2188
+ command.query['maxResults'] = max_results unless max_results.nil?
2189
+ command.query['startIndex'] = start_index unless start_index.nil?
2190
+ command.query['token'] = token unless token.nil?
2191
+ command.query['translationLanguage'] = translation_language unless translation_language.nil?
2192
+ command.query['fields'] = fields unless fields.nil?
2193
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2194
+ execute_or_queue_command(command, &block)
2195
+ end
2196
+
2197
+ # Replies to a single review, or updates an existing reply.
2198
+ # @param [String] package_name
2199
+ # Package name of the app.
2200
+ # @param [String] review_id
2201
+ # Unique identifier for a review.
2202
+ # @param [Google::Apis::AndroidpublisherV3::ReviewsReplyRequest] reviews_reply_request_object
2203
+ # @param [String] fields
2204
+ # Selector specifying which fields to include in a partial response.
2205
+ # @param [String] quota_user
2206
+ # Available to use for quota purposes for server-side applications. Can be any
2207
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2208
+ # @param [Google::Apis::RequestOptions] options
2209
+ # Request-specific options
2210
+ #
2211
+ # @yield [result, err] Result & error if block supplied
2212
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::ReviewsReplyResponse] parsed result object
2213
+ # @yieldparam err [StandardError] error object if request failed
2214
+ #
2215
+ # @return [Google::Apis::AndroidpublisherV3::ReviewsReplyResponse]
2216
+ #
2217
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2218
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2219
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2220
+ def reply_review(package_name, review_id, reviews_reply_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2221
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/reviews/{reviewId}:reply', options)
2222
+ command.request_representation = Google::Apis::AndroidpublisherV3::ReviewsReplyRequest::Representation
2223
+ command.request_object = reviews_reply_request_object
2224
+ command.response_representation = Google::Apis::AndroidpublisherV3::ReviewsReplyResponse::Representation
2225
+ command.response_class = Google::Apis::AndroidpublisherV3::ReviewsReplyResponse
2226
+ command.params['packageName'] = package_name unless package_name.nil?
2227
+ command.params['reviewId'] = review_id unless review_id.nil?
2228
+ command.query['fields'] = fields unless fields.nil?
2229
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2230
+ execute_or_queue_command(command, &block)
2231
+ end
2232
+
2233
+ # Creates an APK which is suitable for inclusion in a system image from an
2234
+ # already uploaded Android App Bundle.
2235
+ # @param [String] package_name
2236
+ # Package name of the app.
2237
+ # @param [Fixnum] version_code
2238
+ # The version code of the App Bundle.
2239
+ # @param [Google::Apis::AndroidpublisherV3::Variant] variant_object
2240
+ # @param [String] fields
2241
+ # Selector specifying which fields to include in a partial response.
2242
+ # @param [String] quota_user
2243
+ # Available to use for quota purposes for server-side applications. Can be any
2244
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2245
+ # @param [Google::Apis::RequestOptions] options
2246
+ # Request-specific options
2247
+ #
2248
+ # @yield [result, err] Result & error if block supplied
2249
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::Variant] parsed result object
2250
+ # @yieldparam err [StandardError] error object if request failed
2251
+ #
2252
+ # @return [Google::Apis::AndroidpublisherV3::Variant]
2253
+ #
2254
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2255
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2256
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2257
+ def create_systemapk_variant(package_name, version_code, variant_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2258
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants', options)
2259
+ command.request_representation = Google::Apis::AndroidpublisherV3::Variant::Representation
2260
+ command.request_object = variant_object
2261
+ command.response_representation = Google::Apis::AndroidpublisherV3::Variant::Representation
2262
+ command.response_class = Google::Apis::AndroidpublisherV3::Variant
2263
+ command.params['packageName'] = package_name unless package_name.nil?
2264
+ command.params['versionCode'] = version_code unless version_code.nil?
2265
+ command.query['fields'] = fields unless fields.nil?
2266
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2267
+ execute_or_queue_command(command, &block)
2268
+ end
2269
+
2270
+ # Downloads a previously created system APK which is suitable for inclusion in a
2271
+ # system image.
2272
+ # @param [String] package_name
2273
+ # Package name of the app.
2274
+ # @param [Fixnum] version_code
2275
+ # The version code of the App Bundle.
2276
+ # @param [Fixnum] variant_id
2277
+ # The ID of a previously created system APK variant.
2278
+ # @param [String] fields
2279
+ # Selector specifying which fields to include in a partial response.
2280
+ # @param [String] quota_user
2281
+ # Available to use for quota purposes for server-side applications. Can be any
2282
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2283
+ # @param [IO, String] download_dest
2284
+ # IO stream or filename to receive content download
2285
+ # @param [Google::Apis::RequestOptions] options
2286
+ # Request-specific options
2287
+ #
2288
+ # @yield [result, err] Result & error if block supplied
2289
+ # @yieldparam result [NilClass] No result returned for this method
2290
+ # @yieldparam err [StandardError] error object if request failed
2291
+ #
2292
+ # @return [void]
2293
+ #
2294
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2295
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2296
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2297
+ def download_systemapk_variant(package_name, version_code, variant_id, fields: nil, quota_user: nil, download_dest: nil, options: nil, &block)
2298
+ if download_dest.nil?
2299
+ command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants/{variantId}:download', options)
2300
+ else
2301
+ command = make_download_command(:get, 'androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants/{variantId}:download', options)
2302
+ command.download_dest = download_dest
2303
+ end
2304
+ command.params['packageName'] = package_name unless package_name.nil?
2305
+ command.params['versionCode'] = version_code unless version_code.nil?
2306
+ command.params['variantId'] = variant_id unless variant_id.nil?
2307
+ command.query['fields'] = fields unless fields.nil?
2308
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2309
+ execute_or_queue_command(command, &block)
2310
+ end
2311
+
2312
+ # Returns a previously created system APK variant.
2313
+ # @param [String] package_name
2314
+ # Package name of the app.
2315
+ # @param [Fixnum] version_code
2316
+ # The version code of the App Bundle.
2317
+ # @param [Fixnum] variant_id
2318
+ # The ID of a previously created system APK variant.
2319
+ # @param [String] fields
2320
+ # Selector specifying which fields to include in a partial response.
2321
+ # @param [String] quota_user
2322
+ # Available to use for quota purposes for server-side applications. Can be any
2323
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2324
+ # @param [Google::Apis::RequestOptions] options
2325
+ # Request-specific options
2326
+ #
2327
+ # @yield [result, err] Result & error if block supplied
2328
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::Variant] parsed result object
2329
+ # @yieldparam err [StandardError] error object if request failed
2330
+ #
2331
+ # @return [Google::Apis::AndroidpublisherV3::Variant]
2332
+ #
2333
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2334
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2335
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2336
+ def get_systemapk_variant(package_name, version_code, variant_id, fields: nil, quota_user: nil, options: nil, &block)
2337
+ command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants/{variantId}', options)
2338
+ command.response_representation = Google::Apis::AndroidpublisherV3::Variant::Representation
2339
+ command.response_class = Google::Apis::AndroidpublisherV3::Variant
2340
+ command.params['packageName'] = package_name unless package_name.nil?
2341
+ command.params['versionCode'] = version_code unless version_code.nil?
2342
+ command.params['variantId'] = variant_id unless variant_id.nil?
2343
+ command.query['fields'] = fields unless fields.nil?
2344
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2345
+ execute_or_queue_command(command, &block)
2346
+ end
2347
+
2348
+ # Returns the list of previously created system APK variants.
2349
+ # @param [String] package_name
2350
+ # Package name of the app.
2351
+ # @param [Fixnum] version_code
2352
+ # The version code of the App Bundle.
2353
+ # @param [String] fields
2354
+ # Selector specifying which fields to include in a partial response.
2355
+ # @param [String] quota_user
2356
+ # Available to use for quota purposes for server-side applications. Can be any
2357
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2358
+ # @param [Google::Apis::RequestOptions] options
2359
+ # Request-specific options
2360
+ #
2361
+ # @yield [result, err] Result & error if block supplied
2362
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::SystemApksListResponse] parsed result object
2363
+ # @yieldparam err [StandardError] error object if request failed
2364
+ #
2365
+ # @return [Google::Apis::AndroidpublisherV3::SystemApksListResponse]
2366
+ #
2367
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2368
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2369
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2370
+ def list_systemapk_variants(package_name, version_code, fields: nil, quota_user: nil, options: nil, &block)
2371
+ command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants', options)
2372
+ command.response_representation = Google::Apis::AndroidpublisherV3::SystemApksListResponse::Representation
2373
+ command.response_class = Google::Apis::AndroidpublisherV3::SystemApksListResponse
2374
+ command.params['packageName'] = package_name unless package_name.nil?
2375
+ command.params['versionCode'] = version_code unless version_code.nil?
2376
+ command.query['fields'] = fields unless fields.nil?
2377
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2378
+ execute_or_queue_command(command, &block)
2379
+ end
2380
+
2381
+ protected
2382
+
2383
+ def apply_command_defaults(command)
2384
+ command.query['key'] = key unless key.nil?
2385
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2386
+ end
2387
+ end
2388
+ end
2389
+ end
2390
+ end