google-apis-androidpublisher_v3 0.54.0 → 0.55.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/google/apis/androidpublisher_v3/classes.rb +567 -0
- data/lib/google/apis/androidpublisher_v3/gem_version.rb +3 -3
- data/lib/google/apis/androidpublisher_v3/representations.rb +344 -0
- data/lib/google/apis/androidpublisher_v3/service.rb +223 -1
- metadata +6 -6
@@ -34,6 +34,8 @@ module Google
|
|
34
34
|
#
|
35
35
|
# @see https://developers.google.com/android-publisher
|
36
36
|
class AndroidPublisherService < Google::Apis::Core::BaseService
|
37
|
+
DEFAULT_ENDPOINT_TEMPLATE = "https://androidpublisher.$UNIVERSE_DOMAIN$/"
|
38
|
+
|
37
39
|
# @return [String]
|
38
40
|
# API key. Your API key identifies your project and provides you with API access,
|
39
41
|
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
@@ -45,7 +47,7 @@ module Google
|
|
45
47
|
attr_accessor :quota_user
|
46
48
|
|
47
49
|
def initialize
|
48
|
-
super(
|
50
|
+
super(DEFAULT_ENDPOINT_TEMPLATE, '',
|
49
51
|
client_name: 'google-apis-androidpublisher_v3',
|
50
52
|
client_version: Google::Apis::AndroidpublisherV3::GEM_VERSION)
|
51
53
|
@batch_path = 'batch'
|
@@ -162,6 +164,188 @@ module Google
|
|
162
164
|
execute_or_queue_command(command, &block)
|
163
165
|
end
|
164
166
|
|
167
|
+
# Incrementally update targeting for a recovery action. Note that only the
|
168
|
+
# criteria selected during the creation of recovery action can be expanded.
|
169
|
+
# @param [String] package_name
|
170
|
+
# Required. Package name of the app for which recovery action is to be updated.
|
171
|
+
# @param [Fixnum] app_recovery_id
|
172
|
+
# Required. ID corresponding to the app recovery action.
|
173
|
+
# @param [Google::Apis::AndroidpublisherV3::AddTargetingRequest] add_targeting_request_object
|
174
|
+
# @param [String] fields
|
175
|
+
# Selector specifying which fields to include in a partial response.
|
176
|
+
# @param [String] quota_user
|
177
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
178
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
179
|
+
# @param [Google::Apis::RequestOptions] options
|
180
|
+
# Request-specific options
|
181
|
+
#
|
182
|
+
# @yield [result, err] Result & error if block supplied
|
183
|
+
# @yieldparam result [Google::Apis::AndroidpublisherV3::AddTargetingResponse] parsed result object
|
184
|
+
# @yieldparam err [StandardError] error object if request failed
|
185
|
+
#
|
186
|
+
# @return [Google::Apis::AndroidpublisherV3::AddTargetingResponse]
|
187
|
+
#
|
188
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
189
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
190
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
191
|
+
def add_apprecovery_targeting(package_name, app_recovery_id, add_targeting_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
192
|
+
command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/appRecoveries/{appRecoveryId}:addTargeting', options)
|
193
|
+
command.request_representation = Google::Apis::AndroidpublisherV3::AddTargetingRequest::Representation
|
194
|
+
command.request_object = add_targeting_request_object
|
195
|
+
command.response_representation = Google::Apis::AndroidpublisherV3::AddTargetingResponse::Representation
|
196
|
+
command.response_class = Google::Apis::AndroidpublisherV3::AddTargetingResponse
|
197
|
+
command.params['packageName'] = package_name unless package_name.nil?
|
198
|
+
command.params['appRecoveryId'] = app_recovery_id unless app_recovery_id.nil?
|
199
|
+
command.query['fields'] = fields unless fields.nil?
|
200
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
201
|
+
execute_or_queue_command(command, &block)
|
202
|
+
end
|
203
|
+
|
204
|
+
# List all app recovery action resources associated with a particular package
|
205
|
+
# name and app version.
|
206
|
+
# @param [String] package_name
|
207
|
+
# Required. Package name of the app for which list of recovery actions is
|
208
|
+
# requested.
|
209
|
+
# @param [Fixnum] version_code
|
210
|
+
# Required. Version code targeted by the list of recovery actions.
|
211
|
+
# @param [String] fields
|
212
|
+
# Selector specifying which fields to include in a partial response.
|
213
|
+
# @param [String] quota_user
|
214
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
215
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
216
|
+
# @param [Google::Apis::RequestOptions] options
|
217
|
+
# Request-specific options
|
218
|
+
#
|
219
|
+
# @yield [result, err] Result & error if block supplied
|
220
|
+
# @yieldparam result [Google::Apis::AndroidpublisherV3::ListAppRecoveriesResponse] parsed result object
|
221
|
+
# @yieldparam err [StandardError] error object if request failed
|
222
|
+
#
|
223
|
+
# @return [Google::Apis::AndroidpublisherV3::ListAppRecoveriesResponse]
|
224
|
+
#
|
225
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
226
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
227
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
228
|
+
def app_apprecovery_recoveries(package_name, version_code: nil, fields: nil, quota_user: nil, options: nil, &block)
|
229
|
+
command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/appRecoveries', options)
|
230
|
+
command.response_representation = Google::Apis::AndroidpublisherV3::ListAppRecoveriesResponse::Representation
|
231
|
+
command.response_class = Google::Apis::AndroidpublisherV3::ListAppRecoveriesResponse
|
232
|
+
command.params['packageName'] = package_name unless package_name.nil?
|
233
|
+
command.query['versionCode'] = version_code unless version_code.nil?
|
234
|
+
command.query['fields'] = fields unless fields.nil?
|
235
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
236
|
+
execute_or_queue_command(command, &block)
|
237
|
+
end
|
238
|
+
|
239
|
+
# Cancel an already executing app recovery action. Note that this action changes
|
240
|
+
# status of the recovery action to CANCELED.
|
241
|
+
# @param [String] package_name
|
242
|
+
# Required. Package name of the app for which recovery action cancellation is
|
243
|
+
# requested.
|
244
|
+
# @param [Fixnum] app_recovery_id
|
245
|
+
# Required. ID corresponding to the app recovery action.
|
246
|
+
# @param [Google::Apis::AndroidpublisherV3::CancelAppRecoveryRequest] cancel_app_recovery_request_object
|
247
|
+
# @param [String] fields
|
248
|
+
# Selector specifying which fields to include in a partial response.
|
249
|
+
# @param [String] quota_user
|
250
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
251
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
252
|
+
# @param [Google::Apis::RequestOptions] options
|
253
|
+
# Request-specific options
|
254
|
+
#
|
255
|
+
# @yield [result, err] Result & error if block supplied
|
256
|
+
# @yieldparam result [Google::Apis::AndroidpublisherV3::CancelAppRecoveryResponse] parsed result object
|
257
|
+
# @yieldparam err [StandardError] error object if request failed
|
258
|
+
#
|
259
|
+
# @return [Google::Apis::AndroidpublisherV3::CancelAppRecoveryResponse]
|
260
|
+
#
|
261
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
262
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
263
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
264
|
+
def cancel_apprecovery_app_recovery(package_name, app_recovery_id, cancel_app_recovery_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
265
|
+
command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/appRecoveries/{appRecoveryId}:cancel', options)
|
266
|
+
command.request_representation = Google::Apis::AndroidpublisherV3::CancelAppRecoveryRequest::Representation
|
267
|
+
command.request_object = cancel_app_recovery_request_object
|
268
|
+
command.response_representation = Google::Apis::AndroidpublisherV3::CancelAppRecoveryResponse::Representation
|
269
|
+
command.response_class = Google::Apis::AndroidpublisherV3::CancelAppRecoveryResponse
|
270
|
+
command.params['packageName'] = package_name unless package_name.nil?
|
271
|
+
command.params['appRecoveryId'] = app_recovery_id unless app_recovery_id.nil?
|
272
|
+
command.query['fields'] = fields unless fields.nil?
|
273
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
274
|
+
execute_or_queue_command(command, &block)
|
275
|
+
end
|
276
|
+
|
277
|
+
# Create an app recovery action with recovery status as DRAFT. Note that this
|
278
|
+
# action does not execute the recovery action.
|
279
|
+
# @param [String] package_name
|
280
|
+
# Required. Package name of the app on which recovery action is performed.
|
281
|
+
# @param [Google::Apis::AndroidpublisherV3::CreateDraftAppRecoveryRequest] create_draft_app_recovery_request_object
|
282
|
+
# @param [String] fields
|
283
|
+
# Selector specifying which fields to include in a partial response.
|
284
|
+
# @param [String] quota_user
|
285
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
286
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
287
|
+
# @param [Google::Apis::RequestOptions] options
|
288
|
+
# Request-specific options
|
289
|
+
#
|
290
|
+
# @yield [result, err] Result & error if block supplied
|
291
|
+
# @yieldparam result [Google::Apis::AndroidpublisherV3::AppRecoveryAction] parsed result object
|
292
|
+
# @yieldparam err [StandardError] error object if request failed
|
293
|
+
#
|
294
|
+
# @return [Google::Apis::AndroidpublisherV3::AppRecoveryAction]
|
295
|
+
#
|
296
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
297
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
298
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
299
|
+
def create_apprecovery_draft_app_recovery(package_name, create_draft_app_recovery_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
300
|
+
command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/appRecoveries', options)
|
301
|
+
command.request_representation = Google::Apis::AndroidpublisherV3::CreateDraftAppRecoveryRequest::Representation
|
302
|
+
command.request_object = create_draft_app_recovery_request_object
|
303
|
+
command.response_representation = Google::Apis::AndroidpublisherV3::AppRecoveryAction::Representation
|
304
|
+
command.response_class = Google::Apis::AndroidpublisherV3::AppRecoveryAction
|
305
|
+
command.params['packageName'] = package_name unless package_name.nil?
|
306
|
+
command.query['fields'] = fields unless fields.nil?
|
307
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
308
|
+
execute_or_queue_command(command, &block)
|
309
|
+
end
|
310
|
+
|
311
|
+
# Deploy an already created app recovery action with recovery status DRAFT. Note
|
312
|
+
# that this action activates the recovery action for all targeted users and
|
313
|
+
# changes its status to ACTIVE.
|
314
|
+
# @param [String] package_name
|
315
|
+
# Required. Package name of the app for which recovery action is deployed.
|
316
|
+
# @param [Fixnum] app_recovery_id
|
317
|
+
# Required. ID corresponding to the app recovery action to deploy.
|
318
|
+
# @param [Google::Apis::AndroidpublisherV3::DeployAppRecoveryRequest] deploy_app_recovery_request_object
|
319
|
+
# @param [String] fields
|
320
|
+
# Selector specifying which fields to include in a partial response.
|
321
|
+
# @param [String] quota_user
|
322
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
323
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
324
|
+
# @param [Google::Apis::RequestOptions] options
|
325
|
+
# Request-specific options
|
326
|
+
#
|
327
|
+
# @yield [result, err] Result & error if block supplied
|
328
|
+
# @yieldparam result [Google::Apis::AndroidpublisherV3::DeployAppRecoveryResponse] parsed result object
|
329
|
+
# @yieldparam err [StandardError] error object if request failed
|
330
|
+
#
|
331
|
+
# @return [Google::Apis::AndroidpublisherV3::DeployAppRecoveryResponse]
|
332
|
+
#
|
333
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
334
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
335
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
336
|
+
def deploy_apprecovery_app_recovery(package_name, app_recovery_id, deploy_app_recovery_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
337
|
+
command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/appRecoveries/{appRecoveryId}:deploy', options)
|
338
|
+
command.request_representation = Google::Apis::AndroidpublisherV3::DeployAppRecoveryRequest::Representation
|
339
|
+
command.request_object = deploy_app_recovery_request_object
|
340
|
+
command.response_representation = Google::Apis::AndroidpublisherV3::DeployAppRecoveryResponse::Representation
|
341
|
+
command.response_class = Google::Apis::AndroidpublisherV3::DeployAppRecoveryResponse
|
342
|
+
command.params['packageName'] = package_name unless package_name.nil?
|
343
|
+
command.params['appRecoveryId'] = app_recovery_id unless app_recovery_id.nil?
|
344
|
+
command.query['fields'] = fields unless fields.nil?
|
345
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
346
|
+
execute_or_queue_command(command, &block)
|
347
|
+
end
|
348
|
+
|
165
349
|
# Commits an app edit.
|
166
350
|
# @param [String] package_name
|
167
351
|
# Package name of the app.
|
@@ -3832,6 +4016,44 @@ module Google
|
|
3832
4016
|
execute_or_queue_command(command, &block)
|
3833
4017
|
end
|
3834
4018
|
|
4019
|
+
# Revoke a subscription purchase for the user.
|
4020
|
+
# @param [String] package_name
|
4021
|
+
# Required. The package of the application for which this subscription was
|
4022
|
+
# purchased (for example, 'com.some.thing').
|
4023
|
+
# @param [String] token
|
4024
|
+
# Required. The token provided to the user's device when the subscription was
|
4025
|
+
# purchased.
|
4026
|
+
# @param [Google::Apis::AndroidpublisherV3::RevokeSubscriptionPurchaseRequest] revoke_subscription_purchase_request_object
|
4027
|
+
# @param [String] fields
|
4028
|
+
# Selector specifying which fields to include in a partial response.
|
4029
|
+
# @param [String] quota_user
|
4030
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4031
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4032
|
+
# @param [Google::Apis::RequestOptions] options
|
4033
|
+
# Request-specific options
|
4034
|
+
#
|
4035
|
+
# @yield [result, err] Result & error if block supplied
|
4036
|
+
# @yieldparam result [Google::Apis::AndroidpublisherV3::RevokeSubscriptionPurchaseResponse] parsed result object
|
4037
|
+
# @yieldparam err [StandardError] error object if request failed
|
4038
|
+
#
|
4039
|
+
# @return [Google::Apis::AndroidpublisherV3::RevokeSubscriptionPurchaseResponse]
|
4040
|
+
#
|
4041
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4042
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4043
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4044
|
+
def revoke_subscriptionsv2_subscription_purchase(package_name, token, revoke_subscription_purchase_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
4045
|
+
command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/purchases/subscriptionsv2/tokens/{token}:revoke', options)
|
4046
|
+
command.request_representation = Google::Apis::AndroidpublisherV3::RevokeSubscriptionPurchaseRequest::Representation
|
4047
|
+
command.request_object = revoke_subscription_purchase_request_object
|
4048
|
+
command.response_representation = Google::Apis::AndroidpublisherV3::RevokeSubscriptionPurchaseResponse::Representation
|
4049
|
+
command.response_class = Google::Apis::AndroidpublisherV3::RevokeSubscriptionPurchaseResponse
|
4050
|
+
command.params['packageName'] = package_name unless package_name.nil?
|
4051
|
+
command.params['token'] = token unless token.nil?
|
4052
|
+
command.query['fields'] = fields unless fields.nil?
|
4053
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4054
|
+
execute_or_queue_command(command, &block)
|
4055
|
+
end
|
4056
|
+
|
3835
4057
|
# Lists the purchases that were canceled, refunded or charged-back.
|
3836
4058
|
# @param [String] package_name
|
3837
4059
|
# The package name of the application for which voided purchases need to be
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-androidpublisher_v3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.55.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.12.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.12.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-androidpublisher_v3/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-androidpublisher_v3/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-androidpublisher_v3/v0.55.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-androidpublisher_v3
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.
|
78
|
+
rubygems_version: 3.5.3
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Google Play Android Developer API V3
|