google-apis-androidpublisher_v3 0.52.0 → 0.54.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1408,6 +1408,42 @@ module Google
1408
1408
  execute_or_queue_command(command, &block)
1409
1409
  end
1410
1410
 
1411
+ # Creates a new track.
1412
+ # @param [String] package_name
1413
+ # Required. Package name of the app.
1414
+ # @param [String] edit_id
1415
+ # Required. Identifier of the edit.
1416
+ # @param [Google::Apis::AndroidpublisherV3::TrackConfig] track_config_object
1417
+ # @param [String] fields
1418
+ # Selector specifying which fields to include in a partial response.
1419
+ # @param [String] quota_user
1420
+ # Available to use for quota purposes for server-side applications. Can be any
1421
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1422
+ # @param [Google::Apis::RequestOptions] options
1423
+ # Request-specific options
1424
+ #
1425
+ # @yield [result, err] Result & error if block supplied
1426
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::Track] parsed result object
1427
+ # @yieldparam err [StandardError] error object if request failed
1428
+ #
1429
+ # @return [Google::Apis::AndroidpublisherV3::Track]
1430
+ #
1431
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1432
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1433
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1434
+ def create_edit_track(package_name, edit_id, track_config_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1435
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks', options)
1436
+ command.request_representation = Google::Apis::AndroidpublisherV3::TrackConfig::Representation
1437
+ command.request_object = track_config_object
1438
+ command.response_representation = Google::Apis::AndroidpublisherV3::Track::Representation
1439
+ command.response_class = Google::Apis::AndroidpublisherV3::Track
1440
+ command.params['packageName'] = package_name unless package_name.nil?
1441
+ command.params['editId'] = edit_id unless edit_id.nil?
1442
+ command.query['fields'] = fields unless fields.nil?
1443
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1444
+ execute_or_queue_command(command, &block)
1445
+ end
1446
+
1411
1447
  # Gets a track.
1412
1448
  # @param [String] package_name
1413
1449
  # Package name of the app.
@@ -1841,6 +1877,116 @@ module Google
1841
1877
  execute_or_queue_command(command, &block)
1842
1878
  end
1843
1879
 
1880
+ # Deletes in-app products (managed products or subscriptions). Set the
1881
+ # latencyTolerance field on nested requests to
1882
+ # PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update
1883
+ # throughput. This method should not be used to delete subscriptions. See [this
1884
+ # article](https://android-developers.googleblog.com/2023/06/changes-to-google-
1885
+ # play-developer-api-june-2023.html) for more information.
1886
+ # @param [String] package_name
1887
+ # Package name of the app.
1888
+ # @param [Google::Apis::AndroidpublisherV3::InappproductsBatchDeleteRequest] inappproducts_batch_delete_request_object
1889
+ # @param [String] fields
1890
+ # Selector specifying which fields to include in a partial response.
1891
+ # @param [String] quota_user
1892
+ # Available to use for quota purposes for server-side applications. Can be any
1893
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1894
+ # @param [Google::Apis::RequestOptions] options
1895
+ # Request-specific options
1896
+ #
1897
+ # @yield [result, err] Result & error if block supplied
1898
+ # @yieldparam result [NilClass] No result returned for this method
1899
+ # @yieldparam err [StandardError] error object if request failed
1900
+ #
1901
+ # @return [void]
1902
+ #
1903
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1904
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1905
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1906
+ def batch_inappproduct_delete(package_name, inappproducts_batch_delete_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1907
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/inappproducts:batchDelete', options)
1908
+ command.request_representation = Google::Apis::AndroidpublisherV3::InappproductsBatchDeleteRequest::Representation
1909
+ command.request_object = inappproducts_batch_delete_request_object
1910
+ command.params['packageName'] = package_name unless package_name.nil?
1911
+ command.query['fields'] = fields unless fields.nil?
1912
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1913
+ execute_or_queue_command(command, &block)
1914
+ end
1915
+
1916
+ # Reads multiple in-app products, which can be managed products or subscriptions.
1917
+ # This method should not be used to retrieve subscriptions. See [this article](
1918
+ # https://android-developers.googleblog.com/2023/06/changes-to-google-play-
1919
+ # developer-api-june-2023.html) for more information.
1920
+ # @param [String] package_name
1921
+ # Package name of the app.
1922
+ # @param [Array<String>, String] sku
1923
+ # Unique identifier for the in-app products.
1924
+ # @param [String] fields
1925
+ # Selector specifying which fields to include in a partial response.
1926
+ # @param [String] quota_user
1927
+ # Available to use for quota purposes for server-side applications. Can be any
1928
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1929
+ # @param [Google::Apis::RequestOptions] options
1930
+ # Request-specific options
1931
+ #
1932
+ # @yield [result, err] Result & error if block supplied
1933
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::InappproductsBatchGetResponse] parsed result object
1934
+ # @yieldparam err [StandardError] error object if request failed
1935
+ #
1936
+ # @return [Google::Apis::AndroidpublisherV3::InappproductsBatchGetResponse]
1937
+ #
1938
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1939
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1940
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1941
+ def batch_inappproduct_get(package_name, sku: nil, fields: nil, quota_user: nil, options: nil, &block)
1942
+ command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/inappproducts:batchGet', options)
1943
+ command.response_representation = Google::Apis::AndroidpublisherV3::InappproductsBatchGetResponse::Representation
1944
+ command.response_class = Google::Apis::AndroidpublisherV3::InappproductsBatchGetResponse
1945
+ command.params['packageName'] = package_name unless package_name.nil?
1946
+ command.query['sku'] = sku unless sku.nil?
1947
+ command.query['fields'] = fields unless fields.nil?
1948
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1949
+ execute_or_queue_command(command, &block)
1950
+ end
1951
+
1952
+ # Updates or inserts one or more in-app products (managed products or
1953
+ # subscriptions). Set the latencyTolerance field on nested requests to
1954
+ # PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update
1955
+ # throughput. This method should no longer be used to update subscriptions. See [
1956
+ # this article](https://android-developers.googleblog.com/2023/06/changes-to-
1957
+ # google-play-developer-api-june-2023.html) for more information.
1958
+ # @param [String] package_name
1959
+ # Package name of the app.
1960
+ # @param [Google::Apis::AndroidpublisherV3::InappproductsBatchUpdateRequest] inappproducts_batch_update_request_object
1961
+ # @param [String] fields
1962
+ # Selector specifying which fields to include in a partial response.
1963
+ # @param [String] quota_user
1964
+ # Available to use for quota purposes for server-side applications. Can be any
1965
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1966
+ # @param [Google::Apis::RequestOptions] options
1967
+ # Request-specific options
1968
+ #
1969
+ # @yield [result, err] Result & error if block supplied
1970
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::InappproductsBatchUpdateResponse] parsed result object
1971
+ # @yieldparam err [StandardError] error object if request failed
1972
+ #
1973
+ # @return [Google::Apis::AndroidpublisherV3::InappproductsBatchUpdateResponse]
1974
+ #
1975
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1976
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1977
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1978
+ def batch_inappproduct_update(package_name, inappproducts_batch_update_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1979
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/inappproducts:batchUpdate', options)
1980
+ command.request_representation = Google::Apis::AndroidpublisherV3::InappproductsBatchUpdateRequest::Representation
1981
+ command.request_object = inappproducts_batch_update_request_object
1982
+ command.response_representation = Google::Apis::AndroidpublisherV3::InappproductsBatchUpdateResponse::Representation
1983
+ command.response_class = Google::Apis::AndroidpublisherV3::InappproductsBatchUpdateResponse
1984
+ command.params['packageName'] = package_name unless package_name.nil?
1985
+ command.query['fields'] = fields unless fields.nil?
1986
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1987
+ execute_or_queue_command(command, &block)
1988
+ end
1989
+
1844
1990
  # Deletes an in-app product (a managed product or a subscription). This method
1845
1991
  # should no longer be used to delete subscriptions. See [this article](https://
1846
1992
  # android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-
@@ -1849,6 +1995,9 @@ module Google
1849
1995
  # Package name of the app.
1850
1996
  # @param [String] sku
1851
1997
  # Unique identifier for the in-app product.
1998
+ # @param [String] latency_tolerance
1999
+ # Optional. The latency tolerance for the propagation of this product update.
2000
+ # Defaults to latency-sensitive.
1852
2001
  # @param [String] fields
1853
2002
  # Selector specifying which fields to include in a partial response.
1854
2003
  # @param [String] quota_user
@@ -1866,10 +2015,11 @@ module Google
1866
2015
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1867
2016
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1868
2017
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1869
- def delete_inappproduct(package_name, sku, fields: nil, quota_user: nil, options: nil, &block)
2018
+ def delete_inappproduct(package_name, sku, latency_tolerance: nil, fields: nil, quota_user: nil, options: nil, &block)
1870
2019
  command = make_simple_command(:delete, 'androidpublisher/v3/applications/{packageName}/inappproducts/{sku}', options)
1871
2020
  command.params['packageName'] = package_name unless package_name.nil?
1872
2021
  command.params['sku'] = sku unless sku.nil?
2022
+ command.query['latencyTolerance'] = latency_tolerance unless latency_tolerance.nil?
1873
2023
  command.query['fields'] = fields unless fields.nil?
1874
2024
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1875
2025
  execute_or_queue_command(command, &block)
@@ -2010,6 +2160,9 @@ module Google
2010
2160
  # If true the prices for all regions targeted by the parent app that don't have
2011
2161
  # a price specified for this in-app product will be auto converted to the target
2012
2162
  # currency based on the default price. Defaults to false.
2163
+ # @param [String] latency_tolerance
2164
+ # Optional. The latency tolerance for the propagation of this product update.
2165
+ # Defaults to latency-sensitive.
2013
2166
  # @param [String] fields
2014
2167
  # Selector specifying which fields to include in a partial response.
2015
2168
  # @param [String] quota_user
@@ -2027,7 +2180,7 @@ module Google
2027
2180
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2028
2181
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2029
2182
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2030
- def patch_inappproduct(package_name, sku, in_app_product_object = nil, auto_convert_missing_prices: nil, fields: nil, quota_user: nil, options: nil, &block)
2183
+ def patch_inappproduct(package_name, sku, in_app_product_object = nil, auto_convert_missing_prices: nil, latency_tolerance: nil, fields: nil, quota_user: nil, options: nil, &block)
2031
2184
  command = make_simple_command(:patch, 'androidpublisher/v3/applications/{packageName}/inappproducts/{sku}', options)
2032
2185
  command.request_representation = Google::Apis::AndroidpublisherV3::InAppProduct::Representation
2033
2186
  command.request_object = in_app_product_object
@@ -2036,6 +2189,7 @@ module Google
2036
2189
  command.params['packageName'] = package_name unless package_name.nil?
2037
2190
  command.params['sku'] = sku unless sku.nil?
2038
2191
  command.query['autoConvertMissingPrices'] = auto_convert_missing_prices unless auto_convert_missing_prices.nil?
2192
+ command.query['latencyTolerance'] = latency_tolerance unless latency_tolerance.nil?
2039
2193
  command.query['fields'] = fields unless fields.nil?
2040
2194
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2041
2195
  execute_or_queue_command(command, &block)
@@ -2057,6 +2211,9 @@ module Google
2057
2211
  # If true the prices for all regions targeted by the parent app that don't have
2058
2212
  # a price specified for this in-app product will be auto converted to the target
2059
2213
  # currency based on the default price. Defaults to false.
2214
+ # @param [String] latency_tolerance
2215
+ # Optional. The latency tolerance for the propagation of this product update.
2216
+ # Defaults to latency-sensitive.
2060
2217
  # @param [String] fields
2061
2218
  # Selector specifying which fields to include in a partial response.
2062
2219
  # @param [String] quota_user
@@ -2074,7 +2231,7 @@ module Google
2074
2231
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2075
2232
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2076
2233
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2077
- 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)
2234
+ def update_inappproduct(package_name, sku, in_app_product_object = nil, allow_missing: nil, auto_convert_missing_prices: nil, latency_tolerance: nil, fields: nil, quota_user: nil, options: nil, &block)
2078
2235
  command = make_simple_command(:put, 'androidpublisher/v3/applications/{packageName}/inappproducts/{sku}', options)
2079
2236
  command.request_representation = Google::Apis::AndroidpublisherV3::InAppProduct::Representation
2080
2237
  command.request_object = in_app_product_object
@@ -2084,6 +2241,7 @@ module Google
2084
2241
  command.params['sku'] = sku unless sku.nil?
2085
2242
  command.query['allowMissing'] = allow_missing unless allow_missing.nil?
2086
2243
  command.query['autoConvertMissingPrices'] = auto_convert_missing_prices unless auto_convert_missing_prices.nil?
2244
+ command.query['latencyTolerance'] = latency_tolerance unless latency_tolerance.nil?
2087
2245
  command.query['fields'] = fields unless fields.nil?
2088
2246
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2089
2247
  execute_or_queue_command(command, &block)
@@ -2251,6 +2409,78 @@ module Google
2251
2409
  execute_or_queue_command(command, &block)
2252
2410
  end
2253
2411
 
2412
+ # Reads one or more subscriptions.
2413
+ # @param [String] package_name
2414
+ # Required. The parent app (package name) for which the subscriptions should be
2415
+ # retrieved. Must be equal to the package_name field on all the requests.
2416
+ # @param [Array<String>, String] product_ids
2417
+ # Required. A list of up to 100 subscription product IDs to retrieve. All the
2418
+ # IDs must be different.
2419
+ # @param [String] fields
2420
+ # Selector specifying which fields to include in a partial response.
2421
+ # @param [String] quota_user
2422
+ # Available to use for quota purposes for server-side applications. Can be any
2423
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2424
+ # @param [Google::Apis::RequestOptions] options
2425
+ # Request-specific options
2426
+ #
2427
+ # @yield [result, err] Result & error if block supplied
2428
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::BatchGetSubscriptionsResponse] parsed result object
2429
+ # @yieldparam err [StandardError] error object if request failed
2430
+ #
2431
+ # @return [Google::Apis::AndroidpublisherV3::BatchGetSubscriptionsResponse]
2432
+ #
2433
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2434
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2435
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2436
+ def batch_monetization_subscription_get(package_name, product_ids: nil, fields: nil, quota_user: nil, options: nil, &block)
2437
+ command = make_simple_command(:get, 'androidpublisher/v3/applications/{packageName}/subscriptions:batchGet', options)
2438
+ command.response_representation = Google::Apis::AndroidpublisherV3::BatchGetSubscriptionsResponse::Representation
2439
+ command.response_class = Google::Apis::AndroidpublisherV3::BatchGetSubscriptionsResponse
2440
+ command.params['packageName'] = package_name unless package_name.nil?
2441
+ command.query['productIds'] = product_ids unless product_ids.nil?
2442
+ command.query['fields'] = fields unless fields.nil?
2443
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2444
+ execute_or_queue_command(command, &block)
2445
+ end
2446
+
2447
+ # Updates a batch of subscriptions. Set the latencyTolerance field on nested
2448
+ # requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve
2449
+ # maximum update throughput.
2450
+ # @param [String] package_name
2451
+ # Required. The parent app (package name) for which the subscriptions should be
2452
+ # updated. Must be equal to the package_name field on all the Subscription
2453
+ # resources.
2454
+ # @param [Google::Apis::AndroidpublisherV3::BatchUpdateSubscriptionsRequest] batch_update_subscriptions_request_object
2455
+ # @param [String] fields
2456
+ # Selector specifying which fields to include in a partial response.
2457
+ # @param [String] quota_user
2458
+ # Available to use for quota purposes for server-side applications. Can be any
2459
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2460
+ # @param [Google::Apis::RequestOptions] options
2461
+ # Request-specific options
2462
+ #
2463
+ # @yield [result, err] Result & error if block supplied
2464
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::BatchUpdateSubscriptionsResponse] parsed result object
2465
+ # @yieldparam err [StandardError] error object if request failed
2466
+ #
2467
+ # @return [Google::Apis::AndroidpublisherV3::BatchUpdateSubscriptionsResponse]
2468
+ #
2469
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2470
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2471
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2472
+ def batch_update_subscriptions(package_name, batch_update_subscriptions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2473
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/subscriptions:batchUpdate', options)
2474
+ command.request_representation = Google::Apis::AndroidpublisherV3::BatchUpdateSubscriptionsRequest::Representation
2475
+ command.request_object = batch_update_subscriptions_request_object
2476
+ command.response_representation = Google::Apis::AndroidpublisherV3::BatchUpdateSubscriptionsResponse::Representation
2477
+ command.response_class = Google::Apis::AndroidpublisherV3::BatchUpdateSubscriptionsResponse
2478
+ command.params['packageName'] = package_name unless package_name.nil?
2479
+ command.query['fields'] = fields unless fields.nil?
2480
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2481
+ execute_or_queue_command(command, &block)
2482
+ end
2483
+
2254
2484
  # Creates a new subscription. Newly added base plans will remain in draft state
2255
2485
  # until activated.
2256
2486
  # @param [String] package_name
@@ -2422,6 +2652,13 @@ module Google
2422
2652
  # underscores (_) and dots (.). It must start with a lower-case letter or number,
2423
2653
  # and be between 1 and 40 (inclusive) characters in length.
2424
2654
  # @param [Google::Apis::AndroidpublisherV3::Subscription] subscription_object
2655
+ # @param [Boolean] allow_missing
2656
+ # Optional. If set to true, and the subscription with the given package_name and
2657
+ # product_id doesn't exist, the subscription will be created. If a new
2658
+ # subscription is created, update_mask is ignored.
2659
+ # @param [String] latency_tolerance
2660
+ # Optional. The latency tolerance for the propagation of this product update.
2661
+ # Defaults to latency-sensitive.
2425
2662
  # @param [String] regions_version_version
2426
2663
  # Required. A string representing the version of available regions being used
2427
2664
  # for the specified resource. Regional prices for the resource have to be
@@ -2450,7 +2687,7 @@ module Google
2450
2687
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2451
2688
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2452
2689
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2453
- 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)
2690
+ def patch_monetization_subscription(package_name, product_id, subscription_object = nil, allow_missing: nil, latency_tolerance: nil, regions_version_version: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2454
2691
  command = make_simple_command(:patch, 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}', options)
2455
2692
  command.request_representation = Google::Apis::AndroidpublisherV3::Subscription::Representation
2456
2693
  command.request_object = subscription_object
@@ -2458,6 +2695,8 @@ module Google
2458
2695
  command.response_class = Google::Apis::AndroidpublisherV3::Subscription
2459
2696
  command.params['packageName'] = package_name unless package_name.nil?
2460
2697
  command.params['productId'] = product_id unless product_id.nil?
2698
+ command.query['allowMissing'] = allow_missing unless allow_missing.nil?
2699
+ command.query['latencyTolerance'] = latency_tolerance unless latency_tolerance.nil?
2461
2700
  command.query['regionsVersion.version'] = regions_version_version unless regions_version_version.nil?
2462
2701
  command.query['updateMask'] = update_mask unless update_mask.nil?
2463
2702
  command.query['fields'] = fields unless fields.nil?
@@ -2505,6 +2744,89 @@ module Google
2505
2744
  execute_or_queue_command(command, &block)
2506
2745
  end
2507
2746
 
2747
+ # Batch variant of the MigrateBasePlanPrices endpoint. Set the latencyTolerance
2748
+ # field on nested requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT
2749
+ # to achieve maximum update throughput.
2750
+ # @param [String] package_name
2751
+ # Required. The parent app (package name) for which the subscriptions should be
2752
+ # created or updated. Must be equal to the package_name field on all the
2753
+ # Subscription resources.
2754
+ # @param [String] product_id
2755
+ # Required. The product ID of the parent subscription, if all updated offers
2756
+ # belong to the same subscription. If this batch update spans multiple
2757
+ # subscriptions, set this field to "-". Must be set.
2758
+ # @param [Google::Apis::AndroidpublisherV3::BatchMigrateBasePlanPricesRequest] batch_migrate_base_plan_prices_request_object
2759
+ # @param [String] fields
2760
+ # Selector specifying which fields to include in a partial response.
2761
+ # @param [String] quota_user
2762
+ # Available to use for quota purposes for server-side applications. Can be any
2763
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2764
+ # @param [Google::Apis::RequestOptions] options
2765
+ # Request-specific options
2766
+ #
2767
+ # @yield [result, err] Result & error if block supplied
2768
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::BatchMigrateBasePlanPricesResponse] parsed result object
2769
+ # @yieldparam err [StandardError] error object if request failed
2770
+ #
2771
+ # @return [Google::Apis::AndroidpublisherV3::BatchMigrateBasePlanPricesResponse]
2772
+ #
2773
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2774
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2775
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2776
+ def batch_monetization_subscription_base_plan_migrate_prices(package_name, product_id, batch_migrate_base_plan_prices_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2777
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans:batchMigratePrices', options)
2778
+ command.request_representation = Google::Apis::AndroidpublisherV3::BatchMigrateBasePlanPricesRequest::Representation
2779
+ command.request_object = batch_migrate_base_plan_prices_request_object
2780
+ command.response_representation = Google::Apis::AndroidpublisherV3::BatchMigrateBasePlanPricesResponse::Representation
2781
+ command.response_class = Google::Apis::AndroidpublisherV3::BatchMigrateBasePlanPricesResponse
2782
+ command.params['packageName'] = package_name unless package_name.nil?
2783
+ command.params['productId'] = product_id unless product_id.nil?
2784
+ command.query['fields'] = fields unless fields.nil?
2785
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2786
+ execute_or_queue_command(command, &block)
2787
+ end
2788
+
2789
+ # Activates or deactivates base plans across one or multiple subscriptions. Set
2790
+ # the latencyTolerance field on nested requests to
2791
+ # PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to achieve maximum update
2792
+ # throughput.
2793
+ # @param [String] package_name
2794
+ # Required. The parent app (package name) of the updated base plans.
2795
+ # @param [String] product_id
2796
+ # Required. The product ID of the parent subscription, if all updated base plans
2797
+ # belong to the same subscription. If this batch update spans multiple
2798
+ # subscriptions, set this field to "-". Must be set.
2799
+ # @param [Google::Apis::AndroidpublisherV3::BatchUpdateBasePlanStatesRequest] batch_update_base_plan_states_request_object
2800
+ # @param [String] fields
2801
+ # Selector specifying which fields to include in a partial response.
2802
+ # @param [String] quota_user
2803
+ # Available to use for quota purposes for server-side applications. Can be any
2804
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2805
+ # @param [Google::Apis::RequestOptions] options
2806
+ # Request-specific options
2807
+ #
2808
+ # @yield [result, err] Result & error if block supplied
2809
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::BatchUpdateBasePlanStatesResponse] parsed result object
2810
+ # @yieldparam err [StandardError] error object if request failed
2811
+ #
2812
+ # @return [Google::Apis::AndroidpublisherV3::BatchUpdateBasePlanStatesResponse]
2813
+ #
2814
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2815
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2816
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2817
+ def batch_monetization_subscription_base_plan_update_states(package_name, product_id, batch_update_base_plan_states_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2818
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans:batchUpdateStates', options)
2819
+ command.request_representation = Google::Apis::AndroidpublisherV3::BatchUpdateBasePlanStatesRequest::Representation
2820
+ command.request_object = batch_update_base_plan_states_request_object
2821
+ command.response_representation = Google::Apis::AndroidpublisherV3::BatchUpdateBasePlanStatesResponse::Representation
2822
+ command.response_class = Google::Apis::AndroidpublisherV3::BatchUpdateBasePlanStatesResponse
2823
+ command.params['packageName'] = package_name unless package_name.nil?
2824
+ command.params['productId'] = product_id unless product_id.nil?
2825
+ command.query['fields'] = fields unless fields.nil?
2826
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2827
+ execute_or_queue_command(command, &block)
2828
+ end
2829
+
2508
2830
  # Deactivates a base plan. Once deactivated, the base plan will become
2509
2831
  # unavailable to new subscribers, but existing subscribers will maintain their
2510
2832
  # subscription
@@ -2669,6 +2991,142 @@ module Google
2669
2991
  execute_or_queue_command(command, &block)
2670
2992
  end
2671
2993
 
2994
+ # Reads one or more subscription offers.
2995
+ # @param [String] package_name
2996
+ # Required. The parent app (package name) for which the subscriptions should be
2997
+ # created or updated. Must be equal to the package_name field on all the
2998
+ # requests.
2999
+ # @param [String] product_id
3000
+ # Required. The product ID of the parent subscription, if all updated offers
3001
+ # belong to the same subscription. If this request spans multiple subscriptions,
3002
+ # set this field to "-". Must be set.
3003
+ # @param [String] base_plan_id
3004
+ # Required. The parent base plan (ID) for which the offers should be read. May
3005
+ # be specified as '-' to read offers from multiple base plans.
3006
+ # @param [Google::Apis::AndroidpublisherV3::BatchGetSubscriptionOffersRequest] batch_get_subscription_offers_request_object
3007
+ # @param [String] fields
3008
+ # Selector specifying which fields to include in a partial response.
3009
+ # @param [String] quota_user
3010
+ # Available to use for quota purposes for server-side applications. Can be any
3011
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3012
+ # @param [Google::Apis::RequestOptions] options
3013
+ # Request-specific options
3014
+ #
3015
+ # @yield [result, err] Result & error if block supplied
3016
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::BatchGetSubscriptionOffersResponse] parsed result object
3017
+ # @yieldparam err [StandardError] error object if request failed
3018
+ #
3019
+ # @return [Google::Apis::AndroidpublisherV3::BatchGetSubscriptionOffersResponse]
3020
+ #
3021
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3022
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3023
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3024
+ def batch_get_subscription_offers(package_name, product_id, base_plan_id, batch_get_subscription_offers_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3025
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers:batchGet', options)
3026
+ command.request_representation = Google::Apis::AndroidpublisherV3::BatchGetSubscriptionOffersRequest::Representation
3027
+ command.request_object = batch_get_subscription_offers_request_object
3028
+ command.response_representation = Google::Apis::AndroidpublisherV3::BatchGetSubscriptionOffersResponse::Representation
3029
+ command.response_class = Google::Apis::AndroidpublisherV3::BatchGetSubscriptionOffersResponse
3030
+ command.params['packageName'] = package_name unless package_name.nil?
3031
+ command.params['productId'] = product_id unless product_id.nil?
3032
+ command.params['basePlanId'] = base_plan_id unless base_plan_id.nil?
3033
+ command.query['fields'] = fields unless fields.nil?
3034
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3035
+ execute_or_queue_command(command, &block)
3036
+ end
3037
+
3038
+ # Updates a batch of subscription offers. Set the latencyTolerance field on
3039
+ # nested requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to
3040
+ # achieve maximum update throughput.
3041
+ # @param [String] package_name
3042
+ # Required. The parent app (package name) of the updated subscription offers.
3043
+ # Must be equal to the package_name field on all the updated SubscriptionOffer
3044
+ # resources.
3045
+ # @param [String] product_id
3046
+ # Required. The product ID of the parent subscription, if all updated offers
3047
+ # belong to the same subscription. If this request spans multiple subscriptions,
3048
+ # set this field to "-". Must be set.
3049
+ # @param [String] base_plan_id
3050
+ # Required. The parent base plan (ID) for which the offers should be updated.
3051
+ # May be specified as '-' to update offers from multiple base plans.
3052
+ # @param [Google::Apis::AndroidpublisherV3::BatchUpdateSubscriptionOffersRequest] batch_update_subscription_offers_request_object
3053
+ # @param [String] fields
3054
+ # Selector specifying which fields to include in a partial response.
3055
+ # @param [String] quota_user
3056
+ # Available to use for quota purposes for server-side applications. Can be any
3057
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3058
+ # @param [Google::Apis::RequestOptions] options
3059
+ # Request-specific options
3060
+ #
3061
+ # @yield [result, err] Result & error if block supplied
3062
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::BatchUpdateSubscriptionOffersResponse] parsed result object
3063
+ # @yieldparam err [StandardError] error object if request failed
3064
+ #
3065
+ # @return [Google::Apis::AndroidpublisherV3::BatchUpdateSubscriptionOffersResponse]
3066
+ #
3067
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3068
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3069
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3070
+ def batch_update_subscription_offers(package_name, product_id, base_plan_id, batch_update_subscription_offers_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3071
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers:batchUpdate', options)
3072
+ command.request_representation = Google::Apis::AndroidpublisherV3::BatchUpdateSubscriptionOffersRequest::Representation
3073
+ command.request_object = batch_update_subscription_offers_request_object
3074
+ command.response_representation = Google::Apis::AndroidpublisherV3::BatchUpdateSubscriptionOffersResponse::Representation
3075
+ command.response_class = Google::Apis::AndroidpublisherV3::BatchUpdateSubscriptionOffersResponse
3076
+ command.params['packageName'] = package_name unless package_name.nil?
3077
+ command.params['productId'] = product_id unless product_id.nil?
3078
+ command.params['basePlanId'] = base_plan_id unless base_plan_id.nil?
3079
+ command.query['fields'] = fields unless fields.nil?
3080
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3081
+ execute_or_queue_command(command, &block)
3082
+ end
3083
+
3084
+ # Updates a batch of subscription offer states. Set the latencyTolerance field
3085
+ # on nested requests to PRODUCT_UPDATE_LATENCY_TOLERANCE_LATENCY_TOLERANT to
3086
+ # achieve maximum update throughput.
3087
+ # @param [String] package_name
3088
+ # Required. The parent app (package name) of the updated subscription offers.
3089
+ # Must be equal to the package_name field on all the updated SubscriptionOffer
3090
+ # resources.
3091
+ # @param [String] product_id
3092
+ # Required. The product ID of the parent subscription, if all updated offers
3093
+ # belong to the same subscription. If this request spans multiple subscriptions,
3094
+ # set this field to "-". Must be set.
3095
+ # @param [String] base_plan_id
3096
+ # Required. The parent base plan (ID) for which the offers should be updated.
3097
+ # May be specified as '-' to update offers from multiple base plans.
3098
+ # @param [Google::Apis::AndroidpublisherV3::BatchUpdateSubscriptionOfferStatesRequest] batch_update_subscription_offer_states_request_object
3099
+ # @param [String] fields
3100
+ # Selector specifying which fields to include in a partial response.
3101
+ # @param [String] quota_user
3102
+ # Available to use for quota purposes for server-side applications. Can be any
3103
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3104
+ # @param [Google::Apis::RequestOptions] options
3105
+ # Request-specific options
3106
+ #
3107
+ # @yield [result, err] Result & error if block supplied
3108
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::BatchUpdateSubscriptionOfferStatesResponse] parsed result object
3109
+ # @yieldparam err [StandardError] error object if request failed
3110
+ #
3111
+ # @return [Google::Apis::AndroidpublisherV3::BatchUpdateSubscriptionOfferStatesResponse]
3112
+ #
3113
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3114
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3115
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3116
+ def batch_monetization_subscription_base_plan_offer_update_states(package_name, product_id, base_plan_id, batch_update_subscription_offer_states_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3117
+ command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers:batchUpdateStates', options)
3118
+ command.request_representation = Google::Apis::AndroidpublisherV3::BatchUpdateSubscriptionOfferStatesRequest::Representation
3119
+ command.request_object = batch_update_subscription_offer_states_request_object
3120
+ command.response_representation = Google::Apis::AndroidpublisherV3::BatchUpdateSubscriptionOfferStatesResponse::Representation
3121
+ command.response_class = Google::Apis::AndroidpublisherV3::BatchUpdateSubscriptionOfferStatesResponse
3122
+ command.params['packageName'] = package_name unless package_name.nil?
3123
+ command.params['productId'] = product_id unless product_id.nil?
3124
+ command.params['basePlanId'] = base_plan_id unless base_plan_id.nil?
3125
+ command.query['fields'] = fields unless fields.nil?
3126
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3127
+ execute_or_queue_command(command, &block)
3128
+ end
3129
+
2672
3130
  # Creates a new subscription offer. Only auto-renewing base plans can have
2673
3131
  # subscription offers. The offer state will be DRAFT until it is activated.
2674
3132
  # @param [String] package_name
@@ -2911,6 +3369,13 @@ module Google
2911
3369
  # Required. Immutable. Unique ID of this subscription offer. Must be unique
2912
3370
  # within the base plan.
2913
3371
  # @param [Google::Apis::AndroidpublisherV3::SubscriptionOffer] subscription_offer_object
3372
+ # @param [Boolean] allow_missing
3373
+ # Optional. If set to true, and the subscription offer with the given
3374
+ # package_name, product_id, base_plan_id and offer_id doesn't exist, an offer
3375
+ # will be created. If a new offer is created, update_mask is ignored.
3376
+ # @param [String] latency_tolerance
3377
+ # Optional. The latency tolerance for the propagation of this product update.
3378
+ # Defaults to latency-sensitive.
2914
3379
  # @param [String] regions_version_version
2915
3380
  # Required. A string representing the version of available regions being used
2916
3381
  # for the specified resource. Regional prices for the resource have to be
@@ -2939,7 +3404,7 @@ module Google
2939
3404
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2940
3405
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2941
3406
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2942
- 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)
3407
+ def patch_monetization_subscription_base_plan_offer(package_name, product_id, base_plan_id, offer_id, subscription_offer_object = nil, allow_missing: nil, latency_tolerance: nil, regions_version_version: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2943
3408
  command = make_simple_command(:patch, 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}', options)
2944
3409
  command.request_representation = Google::Apis::AndroidpublisherV3::SubscriptionOffer::Representation
2945
3410
  command.request_object = subscription_offer_object
@@ -2949,6 +3414,8 @@ module Google
2949
3414
  command.params['productId'] = product_id unless product_id.nil?
2950
3415
  command.params['basePlanId'] = base_plan_id unless base_plan_id.nil?
2951
3416
  command.params['offerId'] = offer_id unless offer_id.nil?
3417
+ command.query['allowMissing'] = allow_missing unless allow_missing.nil?
3418
+ command.query['latencyTolerance'] = latency_tolerance unless latency_tolerance.nil?
2952
3419
  command.query['regionsVersion.version'] = regions_version_version unless regions_version_version.nil?
2953
3420
  command.query['updateMask'] = update_mask unless update_mask.nil?
2954
3421
  command.query['fields'] = fields unless fields.nil?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-androidpublisher_v3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.52.0
4
+ version: 0.54.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-12 00:00:00.000000000 Z
11
+ date: 2023-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-androidpublisher_v3/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-androidpublisher_v3/v0.52.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-androidpublisher_v3/v0.54.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-androidpublisher_v3
63
63
  post_install_message:
64
64
  rdoc_options: []