google-apis-androidpublisher_v3 0.2.0 → 0.41.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -22,7 +22,9 @@ module Google
22
22
  module AndroidpublisherV3
23
23
  # Google Play Android Developer API
24
24
  #
25
- # Lets Android application developers access their Google Play accounts.
25
+ # Lets Android application developers access their Google Play accounts. At a
26
+ # high level, the expected workflow is to "insert" an Edit, make changes as
27
+ # necessary, and then "commit" it.
26
28
  #
27
29
  # @example
28
30
  # require 'google/apis/androidpublisher_v3'
@@ -49,11 +51,126 @@ module Google
49
51
  @batch_path = 'batch'
50
52
  end
51
53
 
54
+ # Creates a new device tier config for an app.
55
+ # @param [String] package_name
56
+ # Package name of the app.
57
+ # @param [Google::Apis::AndroidpublisherV3::DeviceTierConfig] device_tier_config_object
58
+ # @param [Boolean] allow_unknown_devices
59
+ # Whether the service should accept device IDs that are unknown to Play's device
60
+ # catalog.
61
+ # @param [String] fields
62
+ # Selector specifying which fields to include in a partial response.
63
+ # @param [String] quota_user
64
+ # Available to use for quota purposes for server-side applications. Can be any
65
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
66
+ # @param [Google::Apis::RequestOptions] options
67
+ # Request-specific options
68
+ #
69
+ # @yield [result, err] Result & error if block supplied
70
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::DeviceTierConfig] parsed result object
71
+ # @yieldparam err [StandardError] error object if request failed
72
+ #
73
+ # @return [Google::Apis::AndroidpublisherV3::DeviceTierConfig]
74
+ #
75
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
76
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
77
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
78
+ def create_application_device_tier_config(package_name, device_tier_config_object = nil, allow_unknown_devices: nil, fields: nil, quota_user: nil, options: nil, &block)
79
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/deviceTierConfigs', options)
80
+ command.request_representation = Google::Apis::AndroidpublisherV3::DeviceTierConfig::Representation
81
+ command.request_object = device_tier_config_object
82
+ command.response_representation = Google::Apis::AndroidpublisherV3::DeviceTierConfig::Representation
83
+ command.response_class = Google::Apis::AndroidpublisherV3::DeviceTierConfig
84
+ command.params['packageName'] = package_name unless package_name.nil?
85
+ command.query['allowUnknownDevices'] = allow_unknown_devices unless allow_unknown_devices.nil?
86
+ command.query['fields'] = fields unless fields.nil?
87
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
88
+ execute_or_queue_command(command, &block)
89
+ end
90
+
91
+ # Returns a particular device tier config.
92
+ # @param [String] package_name
93
+ # Package name of the app.
94
+ # @param [Fixnum] device_tier_config_id
95
+ # Required. Id of an existing device tier config.
96
+ # @param [String] fields
97
+ # Selector specifying which fields to include in a partial response.
98
+ # @param [String] quota_user
99
+ # Available to use for quota purposes for server-side applications. Can be any
100
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
101
+ # @param [Google::Apis::RequestOptions] options
102
+ # Request-specific options
103
+ #
104
+ # @yield [result, err] Result & error if block supplied
105
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::DeviceTierConfig] parsed result object
106
+ # @yieldparam err [StandardError] error object if request failed
107
+ #
108
+ # @return [Google::Apis::AndroidpublisherV3::DeviceTierConfig]
109
+ #
110
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
111
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
112
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
113
+ def get_application_device_tier_config(package_name, device_tier_config_id, fields: nil, quota_user: nil, options: nil, &block)
114
+ command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/deviceTierConfigs/{deviceTierConfigId}', options)
115
+ command.response_representation = Google::Apis::AndroidpublisherV3::DeviceTierConfig::Representation
116
+ command.response_class = Google::Apis::AndroidpublisherV3::DeviceTierConfig
117
+ command.params['packageName'] = package_name unless package_name.nil?
118
+ command.params['deviceTierConfigId'] = device_tier_config_id unless device_tier_config_id.nil?
119
+ command.query['fields'] = fields unless fields.nil?
120
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
121
+ execute_or_queue_command(command, &block)
122
+ end
123
+
124
+ # Returns created device tier configs, ordered by descending creation time.
125
+ # @param [String] package_name
126
+ # Package name of the app.
127
+ # @param [Fixnum] page_size
128
+ # The maximum number of device tier configs to return. The service may return
129
+ # fewer than this value. If unspecified, at most 10 device tier configs will be
130
+ # returned. The maximum value for this field is 100; values above 100 will be
131
+ # coerced to 100. Device tier configs will be ordered by descending creation
132
+ # time.
133
+ # @param [String] page_token
134
+ # A page token, received from a previous `ListDeviceTierConfigs` call. Provide
135
+ # this to retrieve the subsequent page.
136
+ # @param [String] fields
137
+ # Selector specifying which fields to include in a partial response.
138
+ # @param [String] quota_user
139
+ # Available to use for quota purposes for server-side applications. Can be any
140
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
141
+ # @param [Google::Apis::RequestOptions] options
142
+ # Request-specific options
143
+ #
144
+ # @yield [result, err] Result & error if block supplied
145
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::ListDeviceTierConfigsResponse] parsed result object
146
+ # @yieldparam err [StandardError] error object if request failed
147
+ #
148
+ # @return [Google::Apis::AndroidpublisherV3::ListDeviceTierConfigsResponse]
149
+ #
150
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
151
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
152
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
153
+ def list_application_device_tier_configs(package_name, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
154
+ command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/deviceTierConfigs', options)
155
+ command.response_representation = Google::Apis::AndroidpublisherV3::ListDeviceTierConfigsResponse::Representation
156
+ command.response_class = Google::Apis::AndroidpublisherV3::ListDeviceTierConfigsResponse
157
+ command.params['packageName'] = package_name unless package_name.nil?
158
+ command.query['pageSize'] = page_size unless page_size.nil?
159
+ command.query['pageToken'] = page_token unless page_token.nil?
160
+ command.query['fields'] = fields unless fields.nil?
161
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
162
+ execute_or_queue_command(command, &block)
163
+ end
164
+
52
165
  # Commits an app edit.
53
166
  # @param [String] package_name
54
167
  # Package name of the app.
55
168
  # @param [String] edit_id
56
169
  # Identifier of the edit.
170
+ # @param [Boolean] changes_not_sent_for_review
171
+ # Indicates that the changes in this edit will not be reviewed until they are
172
+ # explicitly sent for review from the Google Play Console UI. These changes will
173
+ # be added to any other changes that are not yet sent for review.
57
174
  # @param [String] fields
58
175
  # Selector specifying which fields to include in a partial response.
59
176
  # @param [String] quota_user
@@ -71,12 +188,13 @@ module Google
71
188
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
72
189
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
73
190
  # @raise [Google::Apis::AuthorizationError] Authorization is required
74
- def commit_edit(package_name, edit_id, fields: nil, quota_user: nil, options: nil, &block)
191
+ def commit_edit(package_name, edit_id, changes_not_sent_for_review: nil, fields: nil, quota_user: nil, options: nil, &block)
75
192
  command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/edits/{editId}:commit', options)
76
193
  command.response_representation = Google::Apis::AndroidpublisherV3::AppEdit::Representation
77
194
  command.response_class = Google::Apis::AndroidpublisherV3::AppEdit
78
195
  command.params['packageName'] = package_name unless package_name.nil?
79
196
  command.params['editId'] = edit_id unless edit_id.nil?
197
+ command.query['changesNotSentForReview'] = changes_not_sent_for_review unless changes_not_sent_for_review.nil?
80
198
  command.query['fields'] = fields unless fields.nil?
81
199
  command.query['quotaUser'] = quota_user unless quota_user.nil?
82
200
  execute_or_queue_command(command, &block)
@@ -370,9 +488,12 @@ module Google
370
488
  # @param [String] edit_id
371
489
  # Identifier of the edit.
372
490
  # @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).
491
+ # Must be set to true if the app bundle installation may trigger a warning on
492
+ # user devices (for example, if installation size may be over a threshold,
493
+ # typically 100 MB).
494
+ # @param [String] device_tier_config_id
495
+ # Device tier config (DTC) to be used for generating deliverables (APKs).
496
+ # Contains id of the DTC or "LATEST" for last uploaded DTC.
376
497
  # @param [String] fields
377
498
  # Selector specifying which fields to include in a partial response.
378
499
  # @param [String] quota_user
@@ -394,7 +515,7 @@ module Google
394
515
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
395
516
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
396
517
  # @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)
518
+ def upload_edit_bundle(package_name, edit_id, ack_bundle_installation_warning: nil, device_tier_config_id: nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block)
398
519
  if upload_source.nil?
399
520
  command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/bundles', options)
400
521
  else
@@ -407,6 +528,43 @@ module Google
407
528
  command.params['packageName'] = package_name unless package_name.nil?
408
529
  command.params['editId'] = edit_id unless edit_id.nil?
409
530
  command.query['ackBundleInstallationWarning'] = ack_bundle_installation_warning unless ack_bundle_installation_warning.nil?
531
+ command.query['deviceTierConfigId'] = device_tier_config_id unless device_tier_config_id.nil?
532
+ command.query['fields'] = fields unless fields.nil?
533
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
534
+ execute_or_queue_command(command, &block)
535
+ end
536
+
537
+ # Gets country availability.
538
+ # @param [String] package_name
539
+ # Package name of the app.
540
+ # @param [String] edit_id
541
+ # Identifier of the edit.
542
+ # @param [String] track
543
+ # The track to read from.
544
+ # @param [String] fields
545
+ # Selector specifying which fields to include in a partial response.
546
+ # @param [String] quota_user
547
+ # Available to use for quota purposes for server-side applications. Can be any
548
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
549
+ # @param [Google::Apis::RequestOptions] options
550
+ # Request-specific options
551
+ #
552
+ # @yield [result, err] Result & error if block supplied
553
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::TrackCountryAvailability] parsed result object
554
+ # @yieldparam err [StandardError] error object if request failed
555
+ #
556
+ # @return [Google::Apis::AndroidpublisherV3::TrackCountryAvailability]
557
+ #
558
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
559
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
560
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
561
+ def get_edit_countryavailability(package_name, edit_id, track, fields: nil, quota_user: nil, options: nil, &block)
562
+ command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/countryAvailability/{track}', options)
563
+ command.response_representation = Google::Apis::AndroidpublisherV3::TrackCountryAvailability::Representation
564
+ command.response_class = Google::Apis::AndroidpublisherV3::TrackCountryAvailability
565
+ command.params['packageName'] = package_name unless package_name.nil?
566
+ command.params['editId'] = edit_id unless edit_id.nil?
567
+ command.params['track'] = track unless track.nil?
410
568
  command.query['fields'] = fields unless fields.nil?
411
569
  command.query['quotaUser'] = quota_user unless quota_user.nil?
412
570
  execute_or_queue_command(command, &block)
@@ -1136,7 +1294,7 @@ module Google
1136
1294
  execute_or_queue_command(command, &block)
1137
1295
  end
1138
1296
 
1139
- # Gets testers.
1297
+ # Gets testers. Note: Testers resource does not support email lists.
1140
1298
  # @param [String] package_name
1141
1299
  # Package name of the app.
1142
1300
  # @param [String] edit_id
@@ -1172,7 +1330,7 @@ module Google
1172
1330
  execute_or_queue_command(command, &block)
1173
1331
  end
1174
1332
 
1175
- # Patches testers.
1333
+ # Patches testers. Note: Testers resource does not support email lists.
1176
1334
  # @param [String] package_name
1177
1335
  # Package name of the app.
1178
1336
  # @param [String] edit_id
@@ -1211,7 +1369,7 @@ module Google
1211
1369
  execute_or_queue_command(command, &block)
1212
1370
  end
1213
1371
 
1214
- # Updates testers.
1372
+ # Updates testers. Note: Testers resource does not support email lists.
1215
1373
  # @param [String] package_name
1216
1374
  # Package name of the app.
1217
1375
  # @param [String] edit_id
@@ -1256,7 +1414,8 @@ module Google
1256
1414
  # @param [String] edit_id
1257
1415
  # Identifier of the edit.
1258
1416
  # @param [String] track
1259
- # Identifier of the track.
1417
+ # Identifier of the track. [More on track name](https://developers.google.com/
1418
+ # android-publisher/tracks#ff-track-name)
1260
1419
  # @param [String] fields
1261
1420
  # Selector specifying which fields to include in a partial response.
1262
1421
  # @param [String] quota_user
@@ -1325,7 +1484,8 @@ module Google
1325
1484
  # @param [String] edit_id
1326
1485
  # Identifier of the edit.
1327
1486
  # @param [String] track
1328
- # Identifier of the track.
1487
+ # Identifier of the track. [More on track name](https://developers.google.com/
1488
+ # android-publisher/tracks#ff-track-name)
1329
1489
  # @param [Google::Apis::AndroidpublisherV3::Track] track_object
1330
1490
  # @param [String] fields
1331
1491
  # Selector specifying which fields to include in a partial response.
@@ -1364,7 +1524,8 @@ module Google
1364
1524
  # @param [String] edit_id
1365
1525
  # Identifier of the edit.
1366
1526
  # @param [String] track
1367
- # Identifier of the track.
1527
+ # Identifier of the track. [More on track name](https://developers.google.com/
1528
+ # android-publisher/tracks#ff-track-name)
1368
1529
  # @param [Google::Apis::AndroidpublisherV3::Track] track_object
1369
1530
  # @param [String] fields
1370
1531
  # Selector specifying which fields to include in a partial response.
@@ -1397,11 +1558,17 @@ module Google
1397
1558
  execute_or_queue_command(command, &block)
1398
1559
  end
1399
1560
 
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.
1561
+ # Creates a new external transaction.
1562
+ # @param [String] parent
1563
+ # Required. The parent resource where this external transaction will be created.
1564
+ # Format: applications/`package_name`
1565
+ # @param [Google::Apis::AndroidpublisherV3::ExternalTransaction] external_transaction_object
1566
+ # @param [String] external_transaction_id
1567
+ # Required. The id to use for the external transaction. Must be unique across
1568
+ # all other transactions for the app. This value should be 1-63 characters and
1569
+ # valid characters are /a-z0-9_-/. Do not use this field to store any Personally
1570
+ # Identifiable Information (PII) such as emails. Attempting to store PII in this
1571
+ # field may result in requests being blocked.
1405
1572
  # @param [String] fields
1406
1573
  # Selector specifying which fields to include in a partial response.
1407
1574
  # @param [String] quota_user
@@ -1411,28 +1578,31 @@ module Google
1411
1578
  # Request-specific options
1412
1579
  #
1413
1580
  # @yield [result, err] Result & error if block supplied
1414
- # @yieldparam result [NilClass] No result returned for this method
1581
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::ExternalTransaction] parsed result object
1415
1582
  # @yieldparam err [StandardError] error object if request failed
1416
1583
  #
1417
- # @return [void]
1584
+ # @return [Google::Apis::AndroidpublisherV3::ExternalTransaction]
1418
1585
  #
1419
1586
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1420
1587
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1421
1588
  # @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?
1589
+ def createexternaltransaction_externaltransaction(parent, external_transaction_object = nil, external_transaction_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1590
+ command = make_simple_command(:post, 'androidpublisher/v3/{+parent}/externalTransactions', options)
1591
+ command.request_representation = Google::Apis::AndroidpublisherV3::ExternalTransaction::Representation
1592
+ command.request_object = external_transaction_object
1593
+ command.response_representation = Google::Apis::AndroidpublisherV3::ExternalTransaction::Representation
1594
+ command.response_class = Google::Apis::AndroidpublisherV3::ExternalTransaction
1595
+ command.params['parent'] = parent unless parent.nil?
1596
+ command.query['externalTransactionId'] = external_transaction_id unless external_transaction_id.nil?
1426
1597
  command.query['fields'] = fields unless fields.nil?
1427
1598
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1428
1599
  execute_or_queue_command(command, &block)
1429
1600
  end
1430
1601
 
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.
1602
+ # Gets an existing external transaction.
1603
+ # @param [String] name
1604
+ # Required. The name of the external transaction to retrieve. Format:
1605
+ # applications/`package_name`/externalTransactions/`external_transaction`
1436
1606
  # @param [String] fields
1437
1607
  # Selector specifying which fields to include in a partial response.
1438
1608
  # @param [String] quota_user
@@ -1442,33 +1612,29 @@ module Google
1442
1612
  # Request-specific options
1443
1613
  #
1444
1614
  # @yield [result, err] Result & error if block supplied
1445
- # @yieldparam result [Google::Apis::AndroidpublisherV3::InAppProduct] parsed result object
1615
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::ExternalTransaction] parsed result object
1446
1616
  # @yieldparam err [StandardError] error object if request failed
1447
1617
  #
1448
- # @return [Google::Apis::AndroidpublisherV3::InAppProduct]
1618
+ # @return [Google::Apis::AndroidpublisherV3::ExternalTransaction]
1449
1619
  #
1450
1620
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1451
1621
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1452
1622
  # @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?
1623
+ def getexternaltransaction_externaltransaction(name, fields: nil, quota_user: nil, options: nil, &block)
1624
+ command = make_simple_command(:get, 'androidpublisher/v3/{+name}', options)
1625
+ command.response_representation = Google::Apis::AndroidpublisherV3::ExternalTransaction::Representation
1626
+ command.response_class = Google::Apis::AndroidpublisherV3::ExternalTransaction
1627
+ command.params['name'] = name unless name.nil?
1459
1628
  command.query['fields'] = fields unless fields.nil?
1460
1629
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1461
1630
  execute_or_queue_command(command, &block)
1462
1631
  end
1463
1632
 
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.
1633
+ # Refunds or partially refunds an existing external transaction.
1634
+ # @param [String] name
1635
+ # Required. The name of the external transaction that will be refunded. Format:
1636
+ # applications/`package_name`/externalTransactions/`external_transaction`
1637
+ # @param [Google::Apis::AndroidpublisherV3::RefundExternalTransactionRequest] refund_external_transaction_request_object
1472
1638
  # @param [String] fields
1473
1639
  # Selector specifying which fields to include in a partial response.
1474
1640
  # @param [String] quota_user
@@ -1478,76 +1644,74 @@ module Google
1478
1644
  # Request-specific options
1479
1645
  #
1480
1646
  # @yield [result, err] Result & error if block supplied
1481
- # @yieldparam result [Google::Apis::AndroidpublisherV3::InAppProduct] parsed result object
1647
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::ExternalTransaction] parsed result object
1482
1648
  # @yieldparam err [StandardError] error object if request failed
1483
1649
  #
1484
- # @return [Google::Apis::AndroidpublisherV3::InAppProduct]
1650
+ # @return [Google::Apis::AndroidpublisherV3::ExternalTransaction]
1485
1651
  #
1486
1652
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1487
1653
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1488
1654
  # @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?
1655
+ def refundexternaltransaction_externaltransaction(name, refund_external_transaction_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1656
+ command = make_simple_command(:post, 'androidpublisher/v3/{+name}:refund', options)
1657
+ command.request_representation = Google::Apis::AndroidpublisherV3::RefundExternalTransactionRequest::Representation
1658
+ command.request_object = refund_external_transaction_request_object
1659
+ command.response_representation = Google::Apis::AndroidpublisherV3::ExternalTransaction::Representation
1660
+ command.response_class = Google::Apis::AndroidpublisherV3::ExternalTransaction
1661
+ command.params['name'] = name unless name.nil?
1497
1662
  command.query['fields'] = fields unless fields.nil?
1498
1663
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1499
1664
  execute_or_queue_command(command, &block)
1500
1665
  end
1501
1666
 
1502
- # Lists all in-app products - both managed products and subscriptions.
1667
+ # Downloads a single signed APK generated from an app bundle.
1503
1668
  # @param [String] package_name
1504
1669
  # 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.
1670
+ # @param [Fixnum] version_code
1671
+ # Version code of the app bundle.
1672
+ # @param [String] download_id
1673
+ # Download ID, which uniquely identifies the APK to download. Can be obtained
1674
+ # from the response of `generatedapks.list` method.
1511
1675
  # @param [String] fields
1512
1676
  # Selector specifying which fields to include in a partial response.
1513
1677
  # @param [String] quota_user
1514
1678
  # Available to use for quota purposes for server-side applications. Can be any
1515
1679
  # arbitrary string assigned to a user, but should not exceed 40 characters.
1680
+ # @param [IO, String] download_dest
1681
+ # IO stream or filename to receive content download
1516
1682
  # @param [Google::Apis::RequestOptions] options
1517
1683
  # Request-specific options
1518
1684
  #
1519
1685
  # @yield [result, err] Result & error if block supplied
1520
- # @yieldparam result [Google::Apis::AndroidpublisherV3::InappproductsListResponse] parsed result object
1686
+ # @yieldparam result [NilClass] No result returned for this method
1521
1687
  # @yieldparam err [StandardError] error object if request failed
1522
1688
  #
1523
- # @return [Google::Apis::AndroidpublisherV3::InappproductsListResponse]
1689
+ # @return [void]
1524
1690
  #
1525
1691
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1526
1692
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1527
1693
  # @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
1694
+ def download_generatedapk(package_name, version_code, download_id, fields: nil, quota_user: nil, download_dest: nil, options: nil, &block)
1695
+ if download_dest.nil?
1696
+ command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/generatedApks/{versionCode}/downloads/{downloadId}:download', options)
1697
+ else
1698
+ command = make_download_command(:get, 'androidpublisher/v3/applications/{packageName}/generatedApks/{versionCode}/downloads/{downloadId}:download', options)
1699
+ command.download_dest = download_dest
1700
+ end
1532
1701
  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?
1702
+ command.params['versionCode'] = version_code unless version_code.nil?
1703
+ command.params['downloadId'] = download_id unless download_id.nil?
1536
1704
  command.query['fields'] = fields unless fields.nil?
1537
1705
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1538
1706
  execute_or_queue_command(command, &block)
1539
1707
  end
1540
1708
 
1541
- # Patches an in-app product (i.e. a managed product or a subscriptions).
1709
+ # Returns download metadata for all APKs that were generated from a given app
1710
+ # bundle.
1542
1711
  # @param [String] package_name
1543
1712
  # 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.
1713
+ # @param [Fixnum] version_code
1714
+ # Version code of the app bundle.
1551
1715
  # @param [String] fields
1552
1716
  # Selector specifying which fields to include in a partial response.
1553
1717
  # @param [String] quota_user
@@ -1557,38 +1721,30 @@ module Google
1557
1721
  # Request-specific options
1558
1722
  #
1559
1723
  # @yield [result, err] Result & error if block supplied
1560
- # @yieldparam result [Google::Apis::AndroidpublisherV3::InAppProduct] parsed result object
1724
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::GeneratedApksListResponse] parsed result object
1561
1725
  # @yieldparam err [StandardError] error object if request failed
1562
1726
  #
1563
- # @return [Google::Apis::AndroidpublisherV3::InAppProduct]
1727
+ # @return [Google::Apis::AndroidpublisherV3::GeneratedApksListResponse]
1564
1728
  #
1565
1729
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1566
1730
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1567
1731
  # @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
1732
+ def list_generatedapks(package_name, version_code, fields: nil, quota_user: nil, options: nil, &block)
1733
+ command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/generatedApks/{versionCode}', options)
1734
+ command.response_representation = Google::Apis::AndroidpublisherV3::GeneratedApksListResponse::Representation
1735
+ command.response_class = Google::Apis::AndroidpublisherV3::GeneratedApksListResponse
1574
1736
  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?
1737
+ command.params['versionCode'] = version_code unless version_code.nil?
1577
1738
  command.query['fields'] = fields unless fields.nil?
1578
1739
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1579
1740
  execute_or_queue_command(command, &block)
1580
1741
  end
1581
1742
 
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.
1743
+ # Grant access for a user to the given package.
1744
+ # @param [String] parent
1745
+ # Required. The user which needs permission. Format: developers/`developer`/
1746
+ # users/`user`
1747
+ # @param [Google::Apis::AndroidpublisherV3::Grant] grant_object
1592
1748
  # @param [String] fields
1593
1749
  # Selector specifying which fields to include in a partial response.
1594
1750
  # @param [String] quota_user
@@ -1598,123 +1754,1173 @@ module Google
1598
1754
  # Request-specific options
1599
1755
  #
1600
1756
  # @yield [result, err] Result & error if block supplied
1601
- # @yieldparam result [Google::Apis::AndroidpublisherV3::InAppProduct] parsed result object
1757
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::Grant] parsed result object
1602
1758
  # @yieldparam err [StandardError] error object if request failed
1603
1759
  #
1604
- # @return [Google::Apis::AndroidpublisherV3::InAppProduct]
1760
+ # @return [Google::Apis::AndroidpublisherV3::Grant]
1605
1761
  #
1606
1762
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1607
1763
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1608
1764
  # @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?
1765
+ def create_grant(parent, grant_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1766
+ command = make_simple_command(:post, 'androidpublisher/v3/{+parent}/grants', options)
1767
+ command.request_representation = Google::Apis::AndroidpublisherV3::Grant::Representation
1768
+ command.request_object = grant_object
1769
+ command.response_representation = Google::Apis::AndroidpublisherV3::Grant::Representation
1770
+ command.response_class = Google::Apis::AndroidpublisherV3::Grant
1771
+ command.params['parent'] = parent unless parent.nil?
1618
1772
  command.query['fields'] = fields unless fields.nil?
1619
1773
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1620
1774
  execute_or_queue_command(command, &block)
1621
1775
  end
1622
1776
 
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.
1777
+ # Removes all access for the user to the given package or developer account.
1778
+ # @param [String] name
1779
+ # Required. The name of the grant to delete. Format: developers/`developer`/
1780
+ # users/`email`/grants/`package_name`
1630
1781
  # @param [String] fields
1631
1782
  # Selector specifying which fields to include in a partial response.
1632
1783
  # @param [String] quota_user
1633
1784
  # Available to use for quota purposes for server-side applications. Can be any
1634
1785
  # 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
1786
  # @param [Google::Apis::RequestOptions] options
1640
1787
  # Request-specific options
1641
1788
  #
1642
1789
  # @yield [result, err] Result & error if block supplied
1643
- # @yieldparam result [Google::Apis::AndroidpublisherV3::InternalAppSharingArtifact] parsed result object
1790
+ # @yieldparam result [NilClass] No result returned for this method
1644
1791
  # @yieldparam err [StandardError] error object if request failed
1645
1792
  #
1646
- # @return [Google::Apis::AndroidpublisherV3::InternalAppSharingArtifact]
1793
+ # @return [void]
1647
1794
  #
1648
1795
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1649
1796
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1650
1797
  # @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?
1798
+ def delete_grant(name, fields: nil, quota_user: nil, options: nil, &block)
1799
+ command = make_simple_command(:delete, 'androidpublisher/v3/{+name}', options)
1800
+ command.params['name'] = name unless name.nil?
1662
1801
  command.query['fields'] = fields unless fields.nil?
1663
1802
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1664
1803
  execute_or_queue_command(command, &block)
1665
1804
  end
1666
1805
 
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.
1806
+ # Updates access for the user to the given package.
1807
+ # @param [String] name
1808
+ # Required. Resource name for this grant, following the pattern "developers/`
1809
+ # developer`/users/`email`/grants/`package_name`". If this grant is for a draft
1810
+ # app, the app ID will be used in this resource name instead of the package name.
1811
+ # @param [Google::Apis::AndroidpublisherV3::Grant] grant_object
1812
+ # @param [String] update_mask
1813
+ # Optional. The list of fields to be updated.
1674
1814
  # @param [String] fields
1675
1815
  # Selector specifying which fields to include in a partial response.
1676
1816
  # @param [String] quota_user
1677
1817
  # Available to use for quota purposes for server-side applications. Can be any
1678
1818
  # 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
1819
  # @param [Google::Apis::RequestOptions] options
1684
1820
  # Request-specific options
1685
1821
  #
1686
1822
  # @yield [result, err] Result & error if block supplied
1687
- # @yieldparam result [Google::Apis::AndroidpublisherV3::InternalAppSharingArtifact] parsed result object
1823
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::Grant] parsed result object
1688
1824
  # @yieldparam err [StandardError] error object if request failed
1689
1825
  #
1690
- # @return [Google::Apis::AndroidpublisherV3::InternalAppSharingArtifact]
1826
+ # @return [Google::Apis::AndroidpublisherV3::Grant]
1691
1827
  #
1692
1828
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1693
1829
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1694
1830
  # @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?
1831
+ def patch_grant(name, grant_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1832
+ command = make_simple_command(:patch, 'androidpublisher/v3/{+name}', options)
1833
+ command.request_representation = Google::Apis::AndroidpublisherV3::Grant::Representation
1834
+ command.request_object = grant_object
1835
+ command.response_representation = Google::Apis::AndroidpublisherV3::Grant::Representation
1836
+ command.response_class = Google::Apis::AndroidpublisherV3::Grant
1837
+ command.params['name'] = name unless name.nil?
1838
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1706
1839
  command.query['fields'] = fields unless fields.nil?
1707
1840
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1708
1841
  execute_or_queue_command(command, &block)
1709
1842
  end
1710
1843
 
1711
- # Refund a user's subscription or in-app purchase order.
1844
+ # Deletes an in-app product (i.e. a managed product or a subscription).
1712
1845
  # @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.
1846
+ # Package name of the app.
1847
+ # @param [String] sku
1848
+ # Unique identifier for the in-app product.
1849
+ # @param [String] fields
1850
+ # Selector specifying which fields to include in a partial response.
1851
+ # @param [String] quota_user
1852
+ # Available to use for quota purposes for server-side applications. Can be any
1853
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1854
+ # @param [Google::Apis::RequestOptions] options
1855
+ # Request-specific options
1856
+ #
1857
+ # @yield [result, err] Result & error if block supplied
1858
+ # @yieldparam result [NilClass] No result returned for this method
1859
+ # @yieldparam err [StandardError] error object if request failed
1860
+ #
1861
+ # @return [void]
1862
+ #
1863
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1864
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1865
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1866
+ def delete_inappproduct(package_name, sku, fields: nil, quota_user: nil, options: nil, &block)
1867
+ command = make_simple_command(:delete, 'androidpublisher/v3/applications/{packageName}/inappproducts/{sku}', options)
1868
+ command.params['packageName'] = package_name unless package_name.nil?
1869
+ command.params['sku'] = sku unless sku.nil?
1870
+ command.query['fields'] = fields unless fields.nil?
1871
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1872
+ execute_or_queue_command(command, &block)
1873
+ end
1874
+
1875
+ # Gets an in-app product, which can be a managed product or a subscription.
1876
+ # @param [String] package_name
1877
+ # Package name of the app.
1878
+ # @param [String] sku
1879
+ # Unique identifier for the in-app product.
1880
+ # @param [String] fields
1881
+ # Selector specifying which fields to include in a partial response.
1882
+ # @param [String] quota_user
1883
+ # Available to use for quota purposes for server-side applications. Can be any
1884
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1885
+ # @param [Google::Apis::RequestOptions] options
1886
+ # Request-specific options
1887
+ #
1888
+ # @yield [result, err] Result & error if block supplied
1889
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::InAppProduct] parsed result object
1890
+ # @yieldparam err [StandardError] error object if request failed
1891
+ #
1892
+ # @return [Google::Apis::AndroidpublisherV3::InAppProduct]
1893
+ #
1894
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1895
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1896
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1897
+ def get_inappproduct(package_name, sku, fields: nil, quota_user: nil, options: nil, &block)
1898
+ command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/inappproducts/{sku}', options)
1899
+ command.response_representation = Google::Apis::AndroidpublisherV3::InAppProduct::Representation
1900
+ command.response_class = Google::Apis::AndroidpublisherV3::InAppProduct
1901
+ command.params['packageName'] = package_name unless package_name.nil?
1902
+ command.params['sku'] = sku unless sku.nil?
1903
+ command.query['fields'] = fields unless fields.nil?
1904
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1905
+ execute_or_queue_command(command, &block)
1906
+ end
1907
+
1908
+ # Creates an in-app product (i.e. a managed product or a subscription).
1909
+ # @param [String] package_name
1910
+ # Package name of the app.
1911
+ # @param [Google::Apis::AndroidpublisherV3::InAppProduct] in_app_product_object
1912
+ # @param [Boolean] auto_convert_missing_prices
1913
+ # If true the prices for all regions targeted by the parent app that don't have
1914
+ # a price specified for this in-app product will be auto converted to the target
1915
+ # currency based on the default price. Defaults to false.
1916
+ # @param [String] fields
1917
+ # Selector specifying which fields to include in a partial response.
1918
+ # @param [String] quota_user
1919
+ # Available to use for quota purposes for server-side applications. Can be any
1920
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1921
+ # @param [Google::Apis::RequestOptions] options
1922
+ # Request-specific options
1923
+ #
1924
+ # @yield [result, err] Result & error if block supplied
1925
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::InAppProduct] parsed result object
1926
+ # @yieldparam err [StandardError] error object if request failed
1927
+ #
1928
+ # @return [Google::Apis::AndroidpublisherV3::InAppProduct]
1929
+ #
1930
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1931
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1932
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1933
+ def insert_inappproduct(package_name, in_app_product_object = nil, auto_convert_missing_prices: nil, fields: nil, quota_user: nil, options: nil, &block)
1934
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/inappproducts', options)
1935
+ command.request_representation = Google::Apis::AndroidpublisherV3::InAppProduct::Representation
1936
+ command.request_object = in_app_product_object
1937
+ command.response_representation = Google::Apis::AndroidpublisherV3::InAppProduct::Representation
1938
+ command.response_class = Google::Apis::AndroidpublisherV3::InAppProduct
1939
+ command.params['packageName'] = package_name unless package_name.nil?
1940
+ command.query['autoConvertMissingPrices'] = auto_convert_missing_prices unless auto_convert_missing_prices.nil?
1941
+ command.query['fields'] = fields unless fields.nil?
1942
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1943
+ execute_or_queue_command(command, &block)
1944
+ end
1945
+
1946
+ # Lists all in-app products - both managed products and subscriptions. If an app
1947
+ # has a large number of in-app products, the response may be paginated. In this
1948
+ # case the response field `tokenPagination.nextPageToken` will be set and the
1949
+ # caller should provide its value as a `token` request parameter to retrieve the
1950
+ # next page.
1951
+ # @param [String] package_name
1952
+ # Package name of the app.
1953
+ # @param [Fixnum] max_results
1954
+ # Deprecated and ignored. The page size is determined by the server.
1955
+ # @param [Fixnum] start_index
1956
+ # Deprecated and ignored. Set the `token` parameter to retrieve the next page.
1957
+ # @param [String] token
1958
+ # Pagination token. If empty, list starts at the first product.
1959
+ # @param [String] fields
1960
+ # Selector specifying which fields to include in a partial response.
1961
+ # @param [String] quota_user
1962
+ # Available to use for quota purposes for server-side applications. Can be any
1963
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1964
+ # @param [Google::Apis::RequestOptions] options
1965
+ # Request-specific options
1966
+ #
1967
+ # @yield [result, err] Result & error if block supplied
1968
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::InappproductsListResponse] parsed result object
1969
+ # @yieldparam err [StandardError] error object if request failed
1970
+ #
1971
+ # @return [Google::Apis::AndroidpublisherV3::InappproductsListResponse]
1972
+ #
1973
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1974
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1975
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1976
+ def list_inappproducts(package_name, max_results: nil, start_index: nil, token: nil, fields: nil, quota_user: nil, options: nil, &block)
1977
+ command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/inappproducts', options)
1978
+ command.response_representation = Google::Apis::AndroidpublisherV3::InappproductsListResponse::Representation
1979
+ command.response_class = Google::Apis::AndroidpublisherV3::InappproductsListResponse
1980
+ command.params['packageName'] = package_name unless package_name.nil?
1981
+ command.query['maxResults'] = max_results unless max_results.nil?
1982
+ command.query['startIndex'] = start_index unless start_index.nil?
1983
+ command.query['token'] = token unless token.nil?
1984
+ command.query['fields'] = fields unless fields.nil?
1985
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1986
+ execute_or_queue_command(command, &block)
1987
+ end
1988
+
1989
+ # Patches an in-app product (i.e. a managed product or a subscription).
1990
+ # @param [String] package_name
1991
+ # Package name of the app.
1992
+ # @param [String] sku
1993
+ # Unique identifier for the in-app product.
1994
+ # @param [Google::Apis::AndroidpublisherV3::InAppProduct] in_app_product_object
1995
+ # @param [Boolean] auto_convert_missing_prices
1996
+ # If true the prices for all regions targeted by the parent app that don't have
1997
+ # a price specified for this in-app product will be auto converted to the target
1998
+ # currency based on the default price. Defaults to false.
1999
+ # @param [String] fields
2000
+ # Selector specifying which fields to include in a partial response.
2001
+ # @param [String] quota_user
2002
+ # Available to use for quota purposes for server-side applications. Can be any
2003
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2004
+ # @param [Google::Apis::RequestOptions] options
2005
+ # Request-specific options
2006
+ #
2007
+ # @yield [result, err] Result & error if block supplied
2008
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::InAppProduct] parsed result object
2009
+ # @yieldparam err [StandardError] error object if request failed
2010
+ #
2011
+ # @return [Google::Apis::AndroidpublisherV3::InAppProduct]
2012
+ #
2013
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2014
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2015
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2016
+ def patch_inappproduct(package_name, sku, in_app_product_object = nil, auto_convert_missing_prices: nil, fields: nil, quota_user: nil, options: nil, &block)
2017
+ command = make_simple_command(:patch, 'androidpublisher/v3/applications/{packageName}/inappproducts/{sku}', options)
2018
+ command.request_representation = Google::Apis::AndroidpublisherV3::InAppProduct::Representation
2019
+ command.request_object = in_app_product_object
2020
+ command.response_representation = Google::Apis::AndroidpublisherV3::InAppProduct::Representation
2021
+ command.response_class = Google::Apis::AndroidpublisherV3::InAppProduct
2022
+ command.params['packageName'] = package_name unless package_name.nil?
2023
+ command.params['sku'] = sku unless sku.nil?
2024
+ command.query['autoConvertMissingPrices'] = auto_convert_missing_prices unless auto_convert_missing_prices.nil?
2025
+ command.query['fields'] = fields unless fields.nil?
2026
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2027
+ execute_or_queue_command(command, &block)
2028
+ end
2029
+
2030
+ # Updates an in-app product (i.e. a managed product or a subscription).
2031
+ # @param [String] package_name
2032
+ # Package name of the app.
2033
+ # @param [String] sku
2034
+ # Unique identifier for the in-app product.
2035
+ # @param [Google::Apis::AndroidpublisherV3::InAppProduct] in_app_product_object
2036
+ # @param [Boolean] allow_missing
2037
+ # If set to true, and the in-app product with the given package_name and sku
2038
+ # doesn't exist, the in-app product will be created.
2039
+ # @param [Boolean] auto_convert_missing_prices
2040
+ # If true the prices for all regions targeted by the parent app that don't have
2041
+ # a price specified for this in-app product will be auto converted to the target
2042
+ # currency based on the default price. Defaults to false.
2043
+ # @param [String] fields
2044
+ # Selector specifying which fields to include in a partial response.
2045
+ # @param [String] quota_user
2046
+ # Available to use for quota purposes for server-side applications. Can be any
2047
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2048
+ # @param [Google::Apis::RequestOptions] options
2049
+ # Request-specific options
2050
+ #
2051
+ # @yield [result, err] Result & error if block supplied
2052
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::InAppProduct] parsed result object
2053
+ # @yieldparam err [StandardError] error object if request failed
2054
+ #
2055
+ # @return [Google::Apis::AndroidpublisherV3::InAppProduct]
2056
+ #
2057
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2058
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2059
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2060
+ def update_inappproduct(package_name, sku, in_app_product_object = nil, allow_missing: nil, auto_convert_missing_prices: nil, fields: nil, quota_user: nil, options: nil, &block)
2061
+ command = make_simple_command(:put, 'androidpublisher/v3/applications/{packageName}/inappproducts/{sku}', options)
2062
+ command.request_representation = Google::Apis::AndroidpublisherV3::InAppProduct::Representation
2063
+ command.request_object = in_app_product_object
2064
+ command.response_representation = Google::Apis::AndroidpublisherV3::InAppProduct::Representation
2065
+ command.response_class = Google::Apis::AndroidpublisherV3::InAppProduct
2066
+ command.params['packageName'] = package_name unless package_name.nil?
2067
+ command.params['sku'] = sku unless sku.nil?
2068
+ command.query['allowMissing'] = allow_missing unless allow_missing.nil?
2069
+ command.query['autoConvertMissingPrices'] = auto_convert_missing_prices unless auto_convert_missing_prices.nil?
2070
+ command.query['fields'] = fields unless fields.nil?
2071
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2072
+ execute_or_queue_command(command, &block)
2073
+ end
2074
+
2075
+ # Uploads an APK to internal app sharing. If you are using the Google API client
2076
+ # libraries, please increase the timeout of the http request before calling this
2077
+ # endpoint (a timeout of 2 minutes is recommended). See [Timeouts and Errors](
2078
+ # https://developers.google.com/api-client-library/java/google-api-java-client/
2079
+ # errors) for an example in java.
2080
+ # @param [String] package_name
2081
+ # Package name of the app.
2082
+ # @param [String] fields
2083
+ # Selector specifying which fields to include in a partial response.
2084
+ # @param [String] quota_user
2085
+ # Available to use for quota purposes for server-side applications. Can be any
2086
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2087
+ # @param [IO, String] upload_source
2088
+ # IO stream or filename containing content to upload
2089
+ # @param [String] content_type
2090
+ # Content type of the uploaded content.
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::InternalAppSharingArtifact] parsed result object
2096
+ # @yieldparam err [StandardError] error object if request failed
2097
+ #
2098
+ # @return [Google::Apis::AndroidpublisherV3::InternalAppSharingArtifact]
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 uploadapk_internalappsharingartifact(package_name, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block)
2104
+ if upload_source.nil?
2105
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/apk', options)
2106
+ else
2107
+ command = make_upload_command(:post, 'androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/apk', options)
2108
+ command.upload_source = upload_source
2109
+ command.upload_content_type = content_type
2110
+ end
2111
+ command.response_representation = Google::Apis::AndroidpublisherV3::InternalAppSharingArtifact::Representation
2112
+ command.response_class = Google::Apis::AndroidpublisherV3::InternalAppSharingArtifact
2113
+ command.params['packageName'] = package_name unless package_name.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
+ # Uploads an app bundle to internal app sharing. If you are using the Google API
2120
+ # client libraries, please increase the timeout of the http request before
2121
+ # calling this endpoint (a timeout of 2 minutes is recommended). See [Timeouts
2122
+ # and Errors](https://developers.google.com/api-client-library/java/google-api-
2123
+ # java-client/errors) for an example in java.
2124
+ # @param [String] package_name
2125
+ # Package name of the app.
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 [IO, String] upload_source
2132
+ # IO stream or filename containing content to upload
2133
+ # @param [String] content_type
2134
+ # Content type of the uploaded content.
2135
+ # @param [Google::Apis::RequestOptions] options
2136
+ # Request-specific options
2137
+ #
2138
+ # @yield [result, err] Result & error if block supplied
2139
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::InternalAppSharingArtifact] parsed result object
2140
+ # @yieldparam err [StandardError] error object if request failed
2141
+ #
2142
+ # @return [Google::Apis::AndroidpublisherV3::InternalAppSharingArtifact]
2143
+ #
2144
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2145
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2146
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2147
+ def uploadbundle_internalappsharingartifact(package_name, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block)
2148
+ if upload_source.nil?
2149
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/bundle', options)
2150
+ else
2151
+ command = make_upload_command(:post, 'androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/bundle', options)
2152
+ command.upload_source = upload_source
2153
+ command.upload_content_type = content_type
2154
+ end
2155
+ command.response_representation = Google::Apis::AndroidpublisherV3::InternalAppSharingArtifact::Representation
2156
+ command.response_class = Google::Apis::AndroidpublisherV3::InternalAppSharingArtifact
2157
+ command.params['packageName'] = package_name unless package_name.nil?
2158
+ command.query['fields'] = fields unless fields.nil?
2159
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2160
+ execute_or_queue_command(command, &block)
2161
+ end
2162
+
2163
+ # Calculates the region prices, using today's exchange rate and country-specific
2164
+ # pricing patterns, based on the price in the request for a set of regions.
2165
+ # @param [String] package_name
2166
+ # Required. The app package name.
2167
+ # @param [Google::Apis::AndroidpublisherV3::ConvertRegionPricesRequest] convert_region_prices_request_object
2168
+ # @param [String] fields
2169
+ # Selector specifying which fields to include in a partial response.
2170
+ # @param [String] quota_user
2171
+ # Available to use for quota purposes for server-side applications. Can be any
2172
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2173
+ # @param [Google::Apis::RequestOptions] options
2174
+ # Request-specific options
2175
+ #
2176
+ # @yield [result, err] Result & error if block supplied
2177
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::ConvertRegionPricesResponse] parsed result object
2178
+ # @yieldparam err [StandardError] error object if request failed
2179
+ #
2180
+ # @return [Google::Apis::AndroidpublisherV3::ConvertRegionPricesResponse]
2181
+ #
2182
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2183
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2184
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2185
+ def convert_monetization_region_prices(package_name, convert_region_prices_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2186
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/pricing:convertRegionPrices', options)
2187
+ command.request_representation = Google::Apis::AndroidpublisherV3::ConvertRegionPricesRequest::Representation
2188
+ command.request_object = convert_region_prices_request_object
2189
+ command.response_representation = Google::Apis::AndroidpublisherV3::ConvertRegionPricesResponse::Representation
2190
+ command.response_class = Google::Apis::AndroidpublisherV3::ConvertRegionPricesResponse
2191
+ command.params['packageName'] = package_name unless package_name.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
+ # Archives a subscription. Can only be done if at least one base plan was active
2198
+ # in the past, and no base plan is available for new or existing subscribers
2199
+ # currently. This action is irreversible, and the subscription ID will remain
2200
+ # reserved.
2201
+ # @param [String] package_name
2202
+ # Required. The parent app (package name) of the app of the subscription to
2203
+ # delete.
2204
+ # @param [String] product_id
2205
+ # Required. The unique product ID of the subscription to delete.
2206
+ # @param [Google::Apis::AndroidpublisherV3::ArchiveSubscriptionRequest] archive_subscription_request_object
2207
+ # @param [String] fields
2208
+ # Selector specifying which fields to include in a partial response.
2209
+ # @param [String] quota_user
2210
+ # Available to use for quota purposes for server-side applications. Can be any
2211
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2212
+ # @param [Google::Apis::RequestOptions] options
2213
+ # Request-specific options
2214
+ #
2215
+ # @yield [result, err] Result & error if block supplied
2216
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::Subscription] parsed result object
2217
+ # @yieldparam err [StandardError] error object if request failed
2218
+ #
2219
+ # @return [Google::Apis::AndroidpublisherV3::Subscription]
2220
+ #
2221
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2222
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2223
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2224
+ def archive_subscription(package_name, product_id, archive_subscription_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2225
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}:archive', options)
2226
+ command.request_representation = Google::Apis::AndroidpublisherV3::ArchiveSubscriptionRequest::Representation
2227
+ command.request_object = archive_subscription_request_object
2228
+ command.response_representation = Google::Apis::AndroidpublisherV3::Subscription::Representation
2229
+ command.response_class = Google::Apis::AndroidpublisherV3::Subscription
2230
+ command.params['packageName'] = package_name unless package_name.nil?
2231
+ command.params['productId'] = product_id unless product_id.nil?
2232
+ command.query['fields'] = fields unless fields.nil?
2233
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2234
+ execute_or_queue_command(command, &block)
2235
+ end
2236
+
2237
+ # Creates a new subscription. Newly added base plans will remain in draft state
2238
+ # until activated.
2239
+ # @param [String] package_name
2240
+ # Required. The parent app (package name) for which the subscription should be
2241
+ # created. Must be equal to the package_name field on the Subscription resource.
2242
+ # @param [Google::Apis::AndroidpublisherV3::Subscription] subscription_object
2243
+ # @param [String] product_id
2244
+ # Required. The ID to use for the subscription. For the requirements on this
2245
+ # format, see the documentation of the product_id field on the Subscription
2246
+ # resource.
2247
+ # @param [String] regions_version_version
2248
+ # Required. A string representing version of the available regions being used
2249
+ # for the specified resource. The current version is 2022/02.
2250
+ # @param [String] fields
2251
+ # Selector specifying which fields to include in a partial response.
2252
+ # @param [String] quota_user
2253
+ # Available to use for quota purposes for server-side applications. Can be any
2254
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2255
+ # @param [Google::Apis::RequestOptions] options
2256
+ # Request-specific options
2257
+ #
2258
+ # @yield [result, err] Result & error if block supplied
2259
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::Subscription] parsed result object
2260
+ # @yieldparam err [StandardError] error object if request failed
2261
+ #
2262
+ # @return [Google::Apis::AndroidpublisherV3::Subscription]
2263
+ #
2264
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2265
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2266
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2267
+ def create_monetization_subscription(package_name, subscription_object = nil, product_id: nil, regions_version_version: nil, fields: nil, quota_user: nil, options: nil, &block)
2268
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/subscriptions', options)
2269
+ command.request_representation = Google::Apis::AndroidpublisherV3::Subscription::Representation
2270
+ command.request_object = subscription_object
2271
+ command.response_representation = Google::Apis::AndroidpublisherV3::Subscription::Representation
2272
+ command.response_class = Google::Apis::AndroidpublisherV3::Subscription
2273
+ command.params['packageName'] = package_name unless package_name.nil?
2274
+ command.query['productId'] = product_id unless product_id.nil?
2275
+ command.query['regionsVersion.version'] = regions_version_version unless regions_version_version.nil?
2276
+ command.query['fields'] = fields unless fields.nil?
2277
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2278
+ execute_or_queue_command(command, &block)
2279
+ end
2280
+
2281
+ # Deletes a subscription. A subscription can only be deleted if it has never had
2282
+ # a base plan published.
2283
+ # @param [String] package_name
2284
+ # Required. The parent app (package name) of the app of the subscription to
2285
+ # delete.
2286
+ # @param [String] product_id
2287
+ # Required. The unique product ID of the subscription to delete.
2288
+ # @param [String] fields
2289
+ # Selector specifying which fields to include in a partial response.
2290
+ # @param [String] quota_user
2291
+ # Available to use for quota purposes for server-side applications. Can be any
2292
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2293
+ # @param [Google::Apis::RequestOptions] options
2294
+ # Request-specific options
2295
+ #
2296
+ # @yield [result, err] Result & error if block supplied
2297
+ # @yieldparam result [NilClass] No result returned for this method
2298
+ # @yieldparam err [StandardError] error object if request failed
2299
+ #
2300
+ # @return [void]
2301
+ #
2302
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2303
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2304
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2305
+ def delete_monetization_subscription(package_name, product_id, fields: nil, quota_user: nil, options: nil, &block)
2306
+ command = make_simple_command(:delete, 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}', options)
2307
+ command.params['packageName'] = package_name unless package_name.nil?
2308
+ command.params['productId'] = product_id unless product_id.nil?
2309
+ command.query['fields'] = fields unless fields.nil?
2310
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2311
+ execute_or_queue_command(command, &block)
2312
+ end
2313
+
2314
+ # Reads a single subscription.
2315
+ # @param [String] package_name
2316
+ # Required. The parent app (package name) of the subscription to get.
2317
+ # @param [String] product_id
2318
+ # Required. The unique product ID of the subscription to get.
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::Subscription] parsed result object
2329
+ # @yieldparam err [StandardError] error object if request failed
2330
+ #
2331
+ # @return [Google::Apis::AndroidpublisherV3::Subscription]
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_monetization_subscription(package_name, product_id, fields: nil, quota_user: nil, options: nil, &block)
2337
+ command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}', options)
2338
+ command.response_representation = Google::Apis::AndroidpublisherV3::Subscription::Representation
2339
+ command.response_class = Google::Apis::AndroidpublisherV3::Subscription
2340
+ command.params['packageName'] = package_name unless package_name.nil?
2341
+ command.params['productId'] = product_id unless product_id.nil?
2342
+ command.query['fields'] = fields unless fields.nil?
2343
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2344
+ execute_or_queue_command(command, &block)
2345
+ end
2346
+
2347
+ # Lists all subscriptions under a given app.
2348
+ # @param [String] package_name
2349
+ # Required. The parent app (package name) for which the subscriptions should be
2350
+ # read.
2351
+ # @param [Fixnum] page_size
2352
+ # The maximum number of subscriptions to return. The service may return fewer
2353
+ # than this value. If unspecified, at most 50 subscriptions will be returned.
2354
+ # The maximum value is 1000; values above 1000 will be coerced to 1000.
2355
+ # @param [String] page_token
2356
+ # A page token, received from a previous `ListSubscriptions` call. Provide this
2357
+ # to retrieve the subsequent page. When paginating, all other parameters
2358
+ # provided to `ListSubscriptions` must match the call that provided the page
2359
+ # token.
2360
+ # @param [Boolean] show_archived
2361
+ # Whether archived subscriptions should be included in the response. Defaults to
2362
+ # false.
2363
+ # @param [String] fields
2364
+ # Selector specifying which fields to include in a partial response.
2365
+ # @param [String] quota_user
2366
+ # Available to use for quota purposes for server-side applications. Can be any
2367
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2368
+ # @param [Google::Apis::RequestOptions] options
2369
+ # Request-specific options
2370
+ #
2371
+ # @yield [result, err] Result & error if block supplied
2372
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::ListSubscriptionsResponse] parsed result object
2373
+ # @yieldparam err [StandardError] error object if request failed
2374
+ #
2375
+ # @return [Google::Apis::AndroidpublisherV3::ListSubscriptionsResponse]
2376
+ #
2377
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2378
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2379
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2380
+ def list_monetization_subscriptions(package_name, page_size: nil, page_token: nil, show_archived: nil, fields: nil, quota_user: nil, options: nil, &block)
2381
+ command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/subscriptions', options)
2382
+ command.response_representation = Google::Apis::AndroidpublisherV3::ListSubscriptionsResponse::Representation
2383
+ command.response_class = Google::Apis::AndroidpublisherV3::ListSubscriptionsResponse
2384
+ command.params['packageName'] = package_name unless package_name.nil?
2385
+ command.query['pageSize'] = page_size unless page_size.nil?
2386
+ command.query['pageToken'] = page_token unless page_token.nil?
2387
+ command.query['showArchived'] = show_archived unless show_archived.nil?
2388
+ command.query['fields'] = fields unless fields.nil?
2389
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2390
+ execute_or_queue_command(command, &block)
2391
+ end
2392
+
2393
+ # Updates an existing subscription.
2394
+ # @param [String] package_name
2395
+ # Immutable. Package name of the parent app.
2396
+ # @param [String] product_id
2397
+ # Immutable. Unique product ID of the product. Unique within the parent app.
2398
+ # Product IDs must be composed of lower-case letters (a-z), numbers (0-9),
2399
+ # underscores (_) and dots (.). It must start with a lower-case letter or number,
2400
+ # and be between 1 and 40 (inclusive) characters in length.
2401
+ # @param [Google::Apis::AndroidpublisherV3::Subscription] subscription_object
2402
+ # @param [String] regions_version_version
2403
+ # Required. A string representing version of the available regions being used
2404
+ # for the specified resource. The current version is 2022/02.
2405
+ # @param [String] update_mask
2406
+ # Required. The list of fields to be updated.
2407
+ # @param [String] fields
2408
+ # Selector specifying which fields to include in a partial response.
2409
+ # @param [String] quota_user
2410
+ # Available to use for quota purposes for server-side applications. Can be any
2411
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2412
+ # @param [Google::Apis::RequestOptions] options
2413
+ # Request-specific options
2414
+ #
2415
+ # @yield [result, err] Result & error if block supplied
2416
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::Subscription] parsed result object
2417
+ # @yieldparam err [StandardError] error object if request failed
2418
+ #
2419
+ # @return [Google::Apis::AndroidpublisherV3::Subscription]
2420
+ #
2421
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2422
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2423
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2424
+ def patch_monetization_subscription(package_name, product_id, subscription_object = nil, regions_version_version: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2425
+ command = make_simple_command(:patch, 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}', options)
2426
+ command.request_representation = Google::Apis::AndroidpublisherV3::Subscription::Representation
2427
+ command.request_object = subscription_object
2428
+ command.response_representation = Google::Apis::AndroidpublisherV3::Subscription::Representation
2429
+ command.response_class = Google::Apis::AndroidpublisherV3::Subscription
2430
+ command.params['packageName'] = package_name unless package_name.nil?
2431
+ command.params['productId'] = product_id unless product_id.nil?
2432
+ command.query['regionsVersion.version'] = regions_version_version unless regions_version_version.nil?
2433
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2434
+ command.query['fields'] = fields unless fields.nil?
2435
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2436
+ execute_or_queue_command(command, &block)
2437
+ end
2438
+
2439
+ # Activates a base plan. Once activated, base plans will be available to new
2440
+ # subscribers.
2441
+ # @param [String] package_name
2442
+ # Required. The parent app (package name) of the base plan to activate.
2443
+ # @param [String] product_id
2444
+ # Required. The parent subscription (ID) of the base plan to activate.
2445
+ # @param [String] base_plan_id
2446
+ # Required. The unique base plan ID of the base plan to activate.
2447
+ # @param [Google::Apis::AndroidpublisherV3::ActivateBasePlanRequest] activate_base_plan_request_object
2448
+ # @param [String] fields
2449
+ # Selector specifying which fields to include in a partial response.
2450
+ # @param [String] quota_user
2451
+ # Available to use for quota purposes for server-side applications. Can be any
2452
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2453
+ # @param [Google::Apis::RequestOptions] options
2454
+ # Request-specific options
2455
+ #
2456
+ # @yield [result, err] Result & error if block supplied
2457
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::Subscription] parsed result object
2458
+ # @yieldparam err [StandardError] error object if request failed
2459
+ #
2460
+ # @return [Google::Apis::AndroidpublisherV3::Subscription]
2461
+ #
2462
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2463
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2464
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2465
+ def activate_base_plan(package_name, product_id, base_plan_id, activate_base_plan_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2466
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}:activate', options)
2467
+ command.request_representation = Google::Apis::AndroidpublisherV3::ActivateBasePlanRequest::Representation
2468
+ command.request_object = activate_base_plan_request_object
2469
+ command.response_representation = Google::Apis::AndroidpublisherV3::Subscription::Representation
2470
+ command.response_class = Google::Apis::AndroidpublisherV3::Subscription
2471
+ command.params['packageName'] = package_name unless package_name.nil?
2472
+ command.params['productId'] = product_id unless product_id.nil?
2473
+ command.params['basePlanId'] = base_plan_id unless base_plan_id.nil?
2474
+ command.query['fields'] = fields unless fields.nil?
2475
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2476
+ execute_or_queue_command(command, &block)
2477
+ end
2478
+
2479
+ # Deactivates a base plan. Once deactivated, the base plan will become
2480
+ # unavailable to new subscribers, but existing subscribers will maintain their
2481
+ # subscription
2482
+ # @param [String] package_name
2483
+ # Required. The parent app (package name) of the base plan to deactivate.
2484
+ # @param [String] product_id
2485
+ # Required. The parent subscription (ID) of the base plan to deactivate.
2486
+ # @param [String] base_plan_id
2487
+ # Required. The unique base plan ID of the base plan to deactivate.
2488
+ # @param [Google::Apis::AndroidpublisherV3::DeactivateBasePlanRequest] deactivate_base_plan_request_object
2489
+ # @param [String] fields
2490
+ # Selector specifying which fields to include in a partial response.
2491
+ # @param [String] quota_user
2492
+ # Available to use for quota purposes for server-side applications. Can be any
2493
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2494
+ # @param [Google::Apis::RequestOptions] options
2495
+ # Request-specific options
2496
+ #
2497
+ # @yield [result, err] Result & error if block supplied
2498
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::Subscription] parsed result object
2499
+ # @yieldparam err [StandardError] error object if request failed
2500
+ #
2501
+ # @return [Google::Apis::AndroidpublisherV3::Subscription]
2502
+ #
2503
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2504
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2505
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2506
+ def deactivate_base_plan(package_name, product_id, base_plan_id, deactivate_base_plan_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2507
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}:deactivate', options)
2508
+ command.request_representation = Google::Apis::AndroidpublisherV3::DeactivateBasePlanRequest::Representation
2509
+ command.request_object = deactivate_base_plan_request_object
2510
+ command.response_representation = Google::Apis::AndroidpublisherV3::Subscription::Representation
2511
+ command.response_class = Google::Apis::AndroidpublisherV3::Subscription
2512
+ command.params['packageName'] = package_name unless package_name.nil?
2513
+ command.params['productId'] = product_id unless product_id.nil?
2514
+ command.params['basePlanId'] = base_plan_id unless base_plan_id.nil?
2515
+ command.query['fields'] = fields unless fields.nil?
2516
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2517
+ execute_or_queue_command(command, &block)
2518
+ end
2519
+
2520
+ # Deletes a base plan. Can only be done for draft base plans. This action is
2521
+ # irreversible.
2522
+ # @param [String] package_name
2523
+ # Required. The parent app (package name) of the base plan to delete.
2524
+ # @param [String] product_id
2525
+ # Required. The parent subscription (ID) of the base plan to delete.
2526
+ # @param [String] base_plan_id
2527
+ # Required. The unique offer ID of the base plan to delete.
2528
+ # @param [String] fields
2529
+ # Selector specifying which fields to include in a partial response.
2530
+ # @param [String] quota_user
2531
+ # Available to use for quota purposes for server-side applications. Can be any
2532
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2533
+ # @param [Google::Apis::RequestOptions] options
2534
+ # Request-specific options
2535
+ #
2536
+ # @yield [result, err] Result & error if block supplied
2537
+ # @yieldparam result [NilClass] No result returned for this method
2538
+ # @yieldparam err [StandardError] error object if request failed
2539
+ #
2540
+ # @return [void]
2541
+ #
2542
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2543
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2544
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2545
+ def delete_monetization_subscription_base_plan(package_name, product_id, base_plan_id, fields: nil, quota_user: nil, options: nil, &block)
2546
+ command = make_simple_command(:delete, 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}', options)
2547
+ command.params['packageName'] = package_name unless package_name.nil?
2548
+ command.params['productId'] = product_id unless product_id.nil?
2549
+ command.params['basePlanId'] = base_plan_id unless base_plan_id.nil?
2550
+ command.query['fields'] = fields unless fields.nil?
2551
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2552
+ execute_or_queue_command(command, &block)
2553
+ end
2554
+
2555
+ # Migrates subscribers who are receiving an historical subscription price to the
2556
+ # currently-offered price for the specified region. Requests will cause price
2557
+ # change notifications to be sent to users who are currently receiving an
2558
+ # historical price older than the supplied timestamp. Subscribers who do not
2559
+ # agree to the new price will have their subscription ended at the next renewal.
2560
+ # @param [String] package_name
2561
+ # Required. Package name of the parent app. Must be equal to the package_name
2562
+ # field on the Subscription resource.
2563
+ # @param [String] product_id
2564
+ # Required. The ID of the subscription to update. Must be equal to the
2565
+ # product_id field on the Subscription resource.
2566
+ # @param [String] base_plan_id
2567
+ # Required. The unique base plan ID of the base plan to update prices on.
2568
+ # @param [Google::Apis::AndroidpublisherV3::MigrateBasePlanPricesRequest] migrate_base_plan_prices_request_object
2569
+ # @param [String] fields
2570
+ # Selector specifying which fields to include in a partial response.
2571
+ # @param [String] quota_user
2572
+ # Available to use for quota purposes for server-side applications. Can be any
2573
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2574
+ # @param [Google::Apis::RequestOptions] options
2575
+ # Request-specific options
2576
+ #
2577
+ # @yield [result, err] Result & error if block supplied
2578
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::MigrateBasePlanPricesResponse] parsed result object
2579
+ # @yieldparam err [StandardError] error object if request failed
2580
+ #
2581
+ # @return [Google::Apis::AndroidpublisherV3::MigrateBasePlanPricesResponse]
2582
+ #
2583
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2584
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2585
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2586
+ def migrate_monetization_subscription_base_plan_prices(package_name, product_id, base_plan_id, migrate_base_plan_prices_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2587
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}:migratePrices', options)
2588
+ command.request_representation = Google::Apis::AndroidpublisherV3::MigrateBasePlanPricesRequest::Representation
2589
+ command.request_object = migrate_base_plan_prices_request_object
2590
+ command.response_representation = Google::Apis::AndroidpublisherV3::MigrateBasePlanPricesResponse::Representation
2591
+ command.response_class = Google::Apis::AndroidpublisherV3::MigrateBasePlanPricesResponse
2592
+ command.params['packageName'] = package_name unless package_name.nil?
2593
+ command.params['productId'] = product_id unless product_id.nil?
2594
+ command.params['basePlanId'] = base_plan_id unless base_plan_id.nil?
2595
+ command.query['fields'] = fields unless fields.nil?
2596
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2597
+ execute_or_queue_command(command, &block)
2598
+ end
2599
+
2600
+ # Activates a subscription offer. Once activated, subscription offers will be
2601
+ # available to new subscribers.
2602
+ # @param [String] package_name
2603
+ # Required. The parent app (package name) of the offer to activate.
2604
+ # @param [String] product_id
2605
+ # Required. The parent subscription (ID) of the offer to activate.
2606
+ # @param [String] base_plan_id
2607
+ # Required. The parent base plan (ID) of the offer to activate.
2608
+ # @param [String] offer_id
2609
+ # Required. The unique offer ID of the offer to activate.
2610
+ # @param [Google::Apis::AndroidpublisherV3::ActivateSubscriptionOfferRequest] activate_subscription_offer_request_object
2611
+ # @param [String] fields
2612
+ # Selector specifying which fields to include in a partial response.
2613
+ # @param [String] quota_user
2614
+ # Available to use for quota purposes for server-side applications. Can be any
2615
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2616
+ # @param [Google::Apis::RequestOptions] options
2617
+ # Request-specific options
2618
+ #
2619
+ # @yield [result, err] Result & error if block supplied
2620
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::SubscriptionOffer] parsed result object
2621
+ # @yieldparam err [StandardError] error object if request failed
2622
+ #
2623
+ # @return [Google::Apis::AndroidpublisherV3::SubscriptionOffer]
2624
+ #
2625
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2626
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2627
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2628
+ def activate_subscription_offer(package_name, product_id, base_plan_id, offer_id, activate_subscription_offer_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2629
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}:activate', options)
2630
+ command.request_representation = Google::Apis::AndroidpublisherV3::ActivateSubscriptionOfferRequest::Representation
2631
+ command.request_object = activate_subscription_offer_request_object
2632
+ command.response_representation = Google::Apis::AndroidpublisherV3::SubscriptionOffer::Representation
2633
+ command.response_class = Google::Apis::AndroidpublisherV3::SubscriptionOffer
2634
+ command.params['packageName'] = package_name unless package_name.nil?
2635
+ command.params['productId'] = product_id unless product_id.nil?
2636
+ command.params['basePlanId'] = base_plan_id unless base_plan_id.nil?
2637
+ command.params['offerId'] = offer_id unless offer_id.nil?
2638
+ command.query['fields'] = fields unless fields.nil?
2639
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2640
+ execute_or_queue_command(command, &block)
2641
+ end
2642
+
2643
+ # Creates a new subscription offer. Only auto-renewing base plans can have
2644
+ # subscription offers. The offer state will be DRAFT until it is activated.
2645
+ # @param [String] package_name
2646
+ # Required. The parent app (package name) for which the offer should be created.
2647
+ # Must be equal to the package_name field on the Subscription resource.
2648
+ # @param [String] product_id
2649
+ # Required. The parent subscription (ID) for which the offer should be created.
2650
+ # Must be equal to the product_id field on the SubscriptionOffer resource.
2651
+ # @param [String] base_plan_id
2652
+ # Required. The parent base plan (ID) for which the offer should be created.
2653
+ # Must be equal to the base_plan_id field on the SubscriptionOffer resource.
2654
+ # @param [Google::Apis::AndroidpublisherV3::SubscriptionOffer] subscription_offer_object
2655
+ # @param [String] offer_id
2656
+ # Required. The ID to use for the offer. For the requirements on this format,
2657
+ # see the documentation of the offer_id field on the SubscriptionOffer resource.
2658
+ # @param [String] regions_version_version
2659
+ # Required. A string representing version of the available regions being used
2660
+ # for the specified resource. The current version is 2022/02.
2661
+ # @param [String] fields
2662
+ # Selector specifying which fields to include in a partial response.
2663
+ # @param [String] quota_user
2664
+ # Available to use for quota purposes for server-side applications. Can be any
2665
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2666
+ # @param [Google::Apis::RequestOptions] options
2667
+ # Request-specific options
2668
+ #
2669
+ # @yield [result, err] Result & error if block supplied
2670
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::SubscriptionOffer] parsed result object
2671
+ # @yieldparam err [StandardError] error object if request failed
2672
+ #
2673
+ # @return [Google::Apis::AndroidpublisherV3::SubscriptionOffer]
2674
+ #
2675
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2676
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2677
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2678
+ def create_monetization_subscription_base_plan_offer(package_name, product_id, base_plan_id, subscription_offer_object = nil, offer_id: nil, regions_version_version: nil, fields: nil, quota_user: nil, options: nil, &block)
2679
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers', options)
2680
+ command.request_representation = Google::Apis::AndroidpublisherV3::SubscriptionOffer::Representation
2681
+ command.request_object = subscription_offer_object
2682
+ command.response_representation = Google::Apis::AndroidpublisherV3::SubscriptionOffer::Representation
2683
+ command.response_class = Google::Apis::AndroidpublisherV3::SubscriptionOffer
2684
+ command.params['packageName'] = package_name unless package_name.nil?
2685
+ command.params['productId'] = product_id unless product_id.nil?
2686
+ command.params['basePlanId'] = base_plan_id unless base_plan_id.nil?
2687
+ command.query['offerId'] = offer_id unless offer_id.nil?
2688
+ command.query['regionsVersion.version'] = regions_version_version unless regions_version_version.nil?
2689
+ command.query['fields'] = fields unless fields.nil?
2690
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2691
+ execute_or_queue_command(command, &block)
2692
+ end
2693
+
2694
+ # Deactivates a subscription offer. Once deactivated, existing subscribers will
2695
+ # maintain their subscription, but the offer will become unavailable to new
2696
+ # subscribers.
2697
+ # @param [String] package_name
2698
+ # Required. The parent app (package name) of the offer to deactivate.
2699
+ # @param [String] product_id
2700
+ # Required. The parent subscription (ID) of the offer to deactivate.
2701
+ # @param [String] base_plan_id
2702
+ # Required. The parent base plan (ID) of the offer to deactivate.
2703
+ # @param [String] offer_id
2704
+ # Required. The unique offer ID of the offer to deactivate.
2705
+ # @param [Google::Apis::AndroidpublisherV3::DeactivateSubscriptionOfferRequest] deactivate_subscription_offer_request_object
2706
+ # @param [String] fields
2707
+ # Selector specifying which fields to include in a partial response.
2708
+ # @param [String] quota_user
2709
+ # Available to use for quota purposes for server-side applications. Can be any
2710
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2711
+ # @param [Google::Apis::RequestOptions] options
2712
+ # Request-specific options
2713
+ #
2714
+ # @yield [result, err] Result & error if block supplied
2715
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::SubscriptionOffer] parsed result object
2716
+ # @yieldparam err [StandardError] error object if request failed
2717
+ #
2718
+ # @return [Google::Apis::AndroidpublisherV3::SubscriptionOffer]
2719
+ #
2720
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2721
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2722
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2723
+ def deactivate_subscription_offer(package_name, product_id, base_plan_id, offer_id, deactivate_subscription_offer_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2724
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}:deactivate', options)
2725
+ command.request_representation = Google::Apis::AndroidpublisherV3::DeactivateSubscriptionOfferRequest::Representation
2726
+ command.request_object = deactivate_subscription_offer_request_object
2727
+ command.response_representation = Google::Apis::AndroidpublisherV3::SubscriptionOffer::Representation
2728
+ command.response_class = Google::Apis::AndroidpublisherV3::SubscriptionOffer
2729
+ command.params['packageName'] = package_name unless package_name.nil?
2730
+ command.params['productId'] = product_id unless product_id.nil?
2731
+ command.params['basePlanId'] = base_plan_id unless base_plan_id.nil?
2732
+ command.params['offerId'] = offer_id unless offer_id.nil?
2733
+ command.query['fields'] = fields unless fields.nil?
2734
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2735
+ execute_or_queue_command(command, &block)
2736
+ end
2737
+
2738
+ # Deletes a subscription offer. Can only be done for draft offers. This action
2739
+ # is irreversible.
2740
+ # @param [String] package_name
2741
+ # Required. The parent app (package name) of the offer to delete.
2742
+ # @param [String] product_id
2743
+ # Required. The parent subscription (ID) of the offer to delete.
2744
+ # @param [String] base_plan_id
2745
+ # Required. The parent base plan (ID) of the offer to delete.
2746
+ # @param [String] offer_id
2747
+ # Required. The unique offer ID of the offer to delete.
2748
+ # @param [String] fields
2749
+ # Selector specifying which fields to include in a partial response.
2750
+ # @param [String] quota_user
2751
+ # Available to use for quota purposes for server-side applications. Can be any
2752
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2753
+ # @param [Google::Apis::RequestOptions] options
2754
+ # Request-specific options
2755
+ #
2756
+ # @yield [result, err] Result & error if block supplied
2757
+ # @yieldparam result [NilClass] No result returned for this method
2758
+ # @yieldparam err [StandardError] error object if request failed
2759
+ #
2760
+ # @return [void]
2761
+ #
2762
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2763
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2764
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2765
+ def delete_monetization_subscription_base_plan_offer(package_name, product_id, base_plan_id, offer_id, fields: nil, quota_user: nil, options: nil, &block)
2766
+ command = make_simple_command(:delete, 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}', options)
2767
+ command.params['packageName'] = package_name unless package_name.nil?
2768
+ command.params['productId'] = product_id unless product_id.nil?
2769
+ command.params['basePlanId'] = base_plan_id unless base_plan_id.nil?
2770
+ command.params['offerId'] = offer_id unless offer_id.nil?
2771
+ command.query['fields'] = fields unless fields.nil?
2772
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2773
+ execute_or_queue_command(command, &block)
2774
+ end
2775
+
2776
+ # Reads a single offer
2777
+ # @param [String] package_name
2778
+ # Required. The parent app (package name) of the offer to get.
2779
+ # @param [String] product_id
2780
+ # Required. The parent subscription (ID) of the offer to get.
2781
+ # @param [String] base_plan_id
2782
+ # Required. The parent base plan (ID) of the offer to get.
2783
+ # @param [String] offer_id
2784
+ # Required. The unique offer ID of the offer to get.
2785
+ # @param [String] fields
2786
+ # Selector specifying which fields to include in a partial response.
2787
+ # @param [String] quota_user
2788
+ # Available to use for quota purposes for server-side applications. Can be any
2789
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2790
+ # @param [Google::Apis::RequestOptions] options
2791
+ # Request-specific options
2792
+ #
2793
+ # @yield [result, err] Result & error if block supplied
2794
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::SubscriptionOffer] parsed result object
2795
+ # @yieldparam err [StandardError] error object if request failed
2796
+ #
2797
+ # @return [Google::Apis::AndroidpublisherV3::SubscriptionOffer]
2798
+ #
2799
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2800
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2801
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2802
+ def get_monetization_subscription_base_plan_offer(package_name, product_id, base_plan_id, offer_id, fields: nil, quota_user: nil, options: nil, &block)
2803
+ command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}', options)
2804
+ command.response_representation = Google::Apis::AndroidpublisherV3::SubscriptionOffer::Representation
2805
+ command.response_class = Google::Apis::AndroidpublisherV3::SubscriptionOffer
2806
+ command.params['packageName'] = package_name unless package_name.nil?
2807
+ command.params['productId'] = product_id unless product_id.nil?
2808
+ command.params['basePlanId'] = base_plan_id unless base_plan_id.nil?
2809
+ command.params['offerId'] = offer_id unless offer_id.nil?
2810
+ command.query['fields'] = fields unless fields.nil?
2811
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2812
+ execute_or_queue_command(command, &block)
2813
+ end
2814
+
2815
+ # Lists all offers under a given subscription.
2816
+ # @param [String] package_name
2817
+ # Required. The parent app (package name) for which the subscriptions should be
2818
+ # read.
2819
+ # @param [String] product_id
2820
+ # Required. The parent subscription (ID) for which the offers should be read.
2821
+ # @param [String] base_plan_id
2822
+ # Required. The parent base plan (ID) for which the offers should be read. May
2823
+ # be specified as '-' to read all offers under a subscription.
2824
+ # @param [Fixnum] page_size
2825
+ # The maximum number of subscriptions to return. The service may return fewer
2826
+ # than this value. If unspecified, at most 50 subscriptions will be returned.
2827
+ # The maximum value is 1000; values above 1000 will be coerced to 1000.
2828
+ # @param [String] page_token
2829
+ # A page token, received from a previous `ListSubscriptionsOffers` call. Provide
2830
+ # this to retrieve the subsequent page. When paginating, all other parameters
2831
+ # provided to `ListSubscriptionOffers` must match the call that provided the
2832
+ # page token.
2833
+ # @param [String] fields
2834
+ # Selector specifying which fields to include in a partial response.
2835
+ # @param [String] quota_user
2836
+ # Available to use for quota purposes for server-side applications. Can be any
2837
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2838
+ # @param [Google::Apis::RequestOptions] options
2839
+ # Request-specific options
2840
+ #
2841
+ # @yield [result, err] Result & error if block supplied
2842
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::ListSubscriptionOffersResponse] parsed result object
2843
+ # @yieldparam err [StandardError] error object if request failed
2844
+ #
2845
+ # @return [Google::Apis::AndroidpublisherV3::ListSubscriptionOffersResponse]
2846
+ #
2847
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2848
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2849
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2850
+ def list_monetization_subscription_base_plan_offers(package_name, product_id, base_plan_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2851
+ command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers', options)
2852
+ command.response_representation = Google::Apis::AndroidpublisherV3::ListSubscriptionOffersResponse::Representation
2853
+ command.response_class = Google::Apis::AndroidpublisherV3::ListSubscriptionOffersResponse
2854
+ command.params['packageName'] = package_name unless package_name.nil?
2855
+ command.params['productId'] = product_id unless product_id.nil?
2856
+ command.params['basePlanId'] = base_plan_id unless base_plan_id.nil?
2857
+ command.query['pageSize'] = page_size unless page_size.nil?
2858
+ command.query['pageToken'] = page_token unless page_token.nil?
2859
+ command.query['fields'] = fields unless fields.nil?
2860
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2861
+ execute_or_queue_command(command, &block)
2862
+ end
2863
+
2864
+ # Updates an existing subscription offer.
2865
+ # @param [String] package_name
2866
+ # Required. Immutable. The package name of the app the parent subscription
2867
+ # belongs to.
2868
+ # @param [String] product_id
2869
+ # Required. Immutable. The ID of the parent subscription this offer belongs to.
2870
+ # @param [String] base_plan_id
2871
+ # Required. Immutable. The ID of the base plan to which this offer is an
2872
+ # extension.
2873
+ # @param [String] offer_id
2874
+ # Required. Immutable. Unique ID of this subscription offer. Must be unique
2875
+ # within the base plan.
2876
+ # @param [Google::Apis::AndroidpublisherV3::SubscriptionOffer] subscription_offer_object
2877
+ # @param [String] regions_version_version
2878
+ # Required. A string representing version of the available regions being used
2879
+ # for the specified resource. The current version is 2022/02.
2880
+ # @param [String] update_mask
2881
+ # Required. The list of fields to be updated.
2882
+ # @param [String] fields
2883
+ # Selector specifying which fields to include in a partial response.
2884
+ # @param [String] quota_user
2885
+ # Available to use for quota purposes for server-side applications. Can be any
2886
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2887
+ # @param [Google::Apis::RequestOptions] options
2888
+ # Request-specific options
2889
+ #
2890
+ # @yield [result, err] Result & error if block supplied
2891
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::SubscriptionOffer] parsed result object
2892
+ # @yieldparam err [StandardError] error object if request failed
2893
+ #
2894
+ # @return [Google::Apis::AndroidpublisherV3::SubscriptionOffer]
2895
+ #
2896
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2897
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2898
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2899
+ def patch_monetization_subscription_base_plan_offer(package_name, product_id, base_plan_id, offer_id, subscription_offer_object = nil, regions_version_version: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2900
+ command = make_simple_command(:patch, 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}', options)
2901
+ command.request_representation = Google::Apis::AndroidpublisherV3::SubscriptionOffer::Representation
2902
+ command.request_object = subscription_offer_object
2903
+ command.response_representation = Google::Apis::AndroidpublisherV3::SubscriptionOffer::Representation
2904
+ command.response_class = Google::Apis::AndroidpublisherV3::SubscriptionOffer
2905
+ command.params['packageName'] = package_name unless package_name.nil?
2906
+ command.params['productId'] = product_id unless product_id.nil?
2907
+ command.params['basePlanId'] = base_plan_id unless base_plan_id.nil?
2908
+ command.params['offerId'] = offer_id unless offer_id.nil?
2909
+ command.query['regionsVersion.version'] = regions_version_version unless regions_version_version.nil?
2910
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2911
+ command.query['fields'] = fields unless fields.nil?
2912
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2913
+ execute_or_queue_command(command, &block)
2914
+ end
2915
+
2916
+ # Refunds a user's subscription or in-app purchase order. Orders older than 1
2917
+ # year cannot be refunded.
2918
+ # @param [String] package_name
2919
+ # The package name of the application for which this subscription or in-app item
2920
+ # was purchased (for example, 'com.some.thing').
2921
+ # @param [String] order_id
2922
+ # The order ID provided to the user when the subscription or in-app order was
2923
+ # purchased.
1718
2924
  # @param [Boolean] revoke
1719
2925
  # Whether to revoke the purchased item. If set to true, access to the
1720
2926
  # subscription or in-app item will be terminated immediately. If the item is a
@@ -1785,6 +2991,41 @@ module Google
1785
2991
  execute_or_queue_command(command, &block)
1786
2992
  end
1787
2993
 
2994
+ # Consumes a purchase for an inapp item.
2995
+ # @param [String] package_name
2996
+ # The package name of the application the inapp product was sold in (for example,
2997
+ # 'com.some.thing').
2998
+ # @param [String] product_id
2999
+ # The inapp product SKU (for example, 'com.some.thing.inapp1').
3000
+ # @param [String] token
3001
+ # The token provided to the user's device when the inapp product was purchased.
3002
+ # @param [String] fields
3003
+ # Selector specifying which fields to include in a partial response.
3004
+ # @param [String] quota_user
3005
+ # Available to use for quota purposes for server-side applications. Can be any
3006
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3007
+ # @param [Google::Apis::RequestOptions] options
3008
+ # Request-specific options
3009
+ #
3010
+ # @yield [result, err] Result & error if block supplied
3011
+ # @yieldparam result [NilClass] No result returned for this method
3012
+ # @yieldparam err [StandardError] error object if request failed
3013
+ #
3014
+ # @return [void]
3015
+ #
3016
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3017
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3018
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3019
+ def consume_purchase_product(package_name, product_id, token, fields: nil, quota_user: nil, options: nil, &block)
3020
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}:consume', options)
3021
+ command.params['packageName'] = package_name unless package_name.nil?
3022
+ command.params['productId'] = product_id unless product_id.nil?
3023
+ command.params['token'] = token unless token.nil?
3024
+ command.query['fields'] = fields unless fields.nil?
3025
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3026
+ execute_or_queue_command(command, &block)
3027
+ end
3028
+
1788
3029
  # Checks the purchase and consumption status of an inapp item.
1789
3030
  # @param [String] package_name
1790
3031
  # The package name of the application the inapp product was sold in (for example,
@@ -2046,6 +3287,41 @@ module Google
2046
3287
  execute_or_queue_command(command, &block)
2047
3288
  end
2048
3289
 
3290
+ # Get metadata about a subscription
3291
+ # @param [String] package_name
3292
+ # The package of the application for which this subscription was purchased (for
3293
+ # example, 'com.some.thing').
3294
+ # @param [String] token
3295
+ # Required. The token provided to the user's device when the subscription was
3296
+ # purchased.
3297
+ # @param [String] fields
3298
+ # Selector specifying which fields to include in a partial response.
3299
+ # @param [String] quota_user
3300
+ # Available to use for quota purposes for server-side applications. Can be any
3301
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3302
+ # @param [Google::Apis::RequestOptions] options
3303
+ # Request-specific options
3304
+ #
3305
+ # @yield [result, err] Result & error if block supplied
3306
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::SubscriptionPurchaseV2] parsed result object
3307
+ # @yieldparam err [StandardError] error object if request failed
3308
+ #
3309
+ # @return [Google::Apis::AndroidpublisherV3::SubscriptionPurchaseV2]
3310
+ #
3311
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3312
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3313
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3314
+ def get_purchase_subscriptionsv2(package_name, token, fields: nil, quota_user: nil, options: nil, &block)
3315
+ command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/purchases/subscriptionsv2/tokens/{token}', options)
3316
+ command.response_representation = Google::Apis::AndroidpublisherV3::SubscriptionPurchaseV2::Representation
3317
+ command.response_class = Google::Apis::AndroidpublisherV3::SubscriptionPurchaseV2
3318
+ command.params['packageName'] = package_name unless package_name.nil?
3319
+ command.params['token'] = token unless token.nil?
3320
+ command.query['fields'] = fields unless fields.nil?
3321
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3322
+ execute_or_queue_command(command, &block)
3323
+ end
3324
+
2049
3325
  # Lists the purchases that were canceled, refunded or charged-back.
2050
3326
  # @param [String] package_name
2051
3327
  # The package name of the application for which voided purchases need to be
@@ -2377,6 +3653,145 @@ module Google
2377
3653
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2378
3654
  execute_or_queue_command(command, &block)
2379
3655
  end
3656
+
3657
+ # Grant access for a user to the given developer account.
3658
+ # @param [String] parent
3659
+ # Required. The developer account to add the user to. Format: developers/`
3660
+ # developer`
3661
+ # @param [Google::Apis::AndroidpublisherV3::User] user_object
3662
+ # @param [String] fields
3663
+ # Selector specifying which fields to include in a partial response.
3664
+ # @param [String] quota_user
3665
+ # Available to use for quota purposes for server-side applications. Can be any
3666
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3667
+ # @param [Google::Apis::RequestOptions] options
3668
+ # Request-specific options
3669
+ #
3670
+ # @yield [result, err] Result & error if block supplied
3671
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::User] parsed result object
3672
+ # @yieldparam err [StandardError] error object if request failed
3673
+ #
3674
+ # @return [Google::Apis::AndroidpublisherV3::User]
3675
+ #
3676
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3677
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3678
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3679
+ def create_user(parent, user_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3680
+ command = make_simple_command(:post, 'androidpublisher/v3/{+parent}/users', options)
3681
+ command.request_representation = Google::Apis::AndroidpublisherV3::User::Representation
3682
+ command.request_object = user_object
3683
+ command.response_representation = Google::Apis::AndroidpublisherV3::User::Representation
3684
+ command.response_class = Google::Apis::AndroidpublisherV3::User
3685
+ command.params['parent'] = parent unless parent.nil?
3686
+ command.query['fields'] = fields unless fields.nil?
3687
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3688
+ execute_or_queue_command(command, &block)
3689
+ end
3690
+
3691
+ # Removes all access for the user to the given developer account.
3692
+ # @param [String] name
3693
+ # Required. The name of the user to delete. Format: developers/`developer`/users/
3694
+ # `email`
3695
+ # @param [String] fields
3696
+ # Selector specifying which fields to include in a partial response.
3697
+ # @param [String] quota_user
3698
+ # Available to use for quota purposes for server-side applications. Can be any
3699
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3700
+ # @param [Google::Apis::RequestOptions] options
3701
+ # Request-specific options
3702
+ #
3703
+ # @yield [result, err] Result & error if block supplied
3704
+ # @yieldparam result [NilClass] No result returned for this method
3705
+ # @yieldparam err [StandardError] error object if request failed
3706
+ #
3707
+ # @return [void]
3708
+ #
3709
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3710
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3711
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3712
+ def delete_user(name, fields: nil, quota_user: nil, options: nil, &block)
3713
+ command = make_simple_command(:delete, 'androidpublisher/v3/{+name}', options)
3714
+ command.params['name'] = name unless name.nil?
3715
+ command.query['fields'] = fields unless fields.nil?
3716
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3717
+ execute_or_queue_command(command, &block)
3718
+ end
3719
+
3720
+ # Lists all users with access to a developer account.
3721
+ # @param [String] parent
3722
+ # Required. The developer account to fetch users from. Format: developers/`
3723
+ # developer`
3724
+ # @param [Fixnum] page_size
3725
+ # The maximum number of results to return. This must be set to -1 to disable
3726
+ # pagination.
3727
+ # @param [String] page_token
3728
+ # A token received from a previous call to this method, in order to retrieve
3729
+ # further results.
3730
+ # @param [String] fields
3731
+ # Selector specifying which fields to include in a partial response.
3732
+ # @param [String] quota_user
3733
+ # Available to use for quota purposes for server-side applications. Can be any
3734
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3735
+ # @param [Google::Apis::RequestOptions] options
3736
+ # Request-specific options
3737
+ #
3738
+ # @yield [result, err] Result & error if block supplied
3739
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::ListUsersResponse] parsed result object
3740
+ # @yieldparam err [StandardError] error object if request failed
3741
+ #
3742
+ # @return [Google::Apis::AndroidpublisherV3::ListUsersResponse]
3743
+ #
3744
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3745
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3746
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3747
+ def list_users(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3748
+ command = make_simple_command(:get, 'androidpublisher/v3/{+parent}/users', options)
3749
+ command.response_representation = Google::Apis::AndroidpublisherV3::ListUsersResponse::Representation
3750
+ command.response_class = Google::Apis::AndroidpublisherV3::ListUsersResponse
3751
+ command.params['parent'] = parent unless parent.nil?
3752
+ command.query['pageSize'] = page_size unless page_size.nil?
3753
+ command.query['pageToken'] = page_token unless page_token.nil?
3754
+ command.query['fields'] = fields unless fields.nil?
3755
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3756
+ execute_or_queue_command(command, &block)
3757
+ end
3758
+
3759
+ # Updates access for the user to the developer account.
3760
+ # @param [String] name
3761
+ # Required. Resource name for this user, following the pattern "developers/`
3762
+ # developer`/users/`email`".
3763
+ # @param [Google::Apis::AndroidpublisherV3::User] user_object
3764
+ # @param [String] update_mask
3765
+ # Optional. The list of fields to be updated.
3766
+ # @param [String] fields
3767
+ # Selector specifying which fields to include in a partial response.
3768
+ # @param [String] quota_user
3769
+ # Available to use for quota purposes for server-side applications. Can be any
3770
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3771
+ # @param [Google::Apis::RequestOptions] options
3772
+ # Request-specific options
3773
+ #
3774
+ # @yield [result, err] Result & error if block supplied
3775
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::User] parsed result object
3776
+ # @yieldparam err [StandardError] error object if request failed
3777
+ #
3778
+ # @return [Google::Apis::AndroidpublisherV3::User]
3779
+ #
3780
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3781
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3782
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3783
+ def patch_user(name, user_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
3784
+ command = make_simple_command(:patch, 'androidpublisher/v3/{+name}', options)
3785
+ command.request_representation = Google::Apis::AndroidpublisherV3::User::Representation
3786
+ command.request_object = user_object
3787
+ command.response_representation = Google::Apis::AndroidpublisherV3::User::Representation
3788
+ command.response_class = Google::Apis::AndroidpublisherV3::User
3789
+ command.params['name'] = name unless name.nil?
3790
+ command.query['updateMask'] = update_mask unless update_mask.nil?
3791
+ command.query['fields'] = fields unless fields.nil?
3792
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3793
+ execute_or_queue_command(command, &block)
3794
+ end
2380
3795
 
2381
3796
  protected
2382
3797