google-apis-androidpublisher_v3 0.53.0 → 0.54.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/androidpublisher_v3/classes.rb +741 -0
- data/lib/google/apis/androidpublisher_v3/gem_version.rb +2 -2
- data/lib/google/apis/androidpublisher_v3/representations.rb +380 -0
- data/lib/google/apis/androidpublisher_v3/service.rb +436 -5
- metadata +3 -3
@@ -1877,6 +1877,116 @@ module Google
|
|
1877
1877
|
execute_or_queue_command(command, &block)
|
1878
1878
|
end
|
1879
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
|
+
|
1880
1990
|
# Deletes an in-app product (a managed product or a subscription). This method
|
1881
1991
|
# should no longer be used to delete subscriptions. See [this article](https://
|
1882
1992
|
# android-developers.googleblog.com/2023/06/changes-to-google-play-developer-api-
|
@@ -1885,6 +1995,9 @@ module Google
|
|
1885
1995
|
# Package name of the app.
|
1886
1996
|
# @param [String] sku
|
1887
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.
|
1888
2001
|
# @param [String] fields
|
1889
2002
|
# Selector specifying which fields to include in a partial response.
|
1890
2003
|
# @param [String] quota_user
|
@@ -1902,10 +2015,11 @@ module Google
|
|
1902
2015
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1903
2016
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1904
2017
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1905
|
-
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)
|
1906
2019
|
command = make_simple_command(:delete, 'androidpublisher/v3/applications/{packageName}/inappproducts/{sku}', options)
|
1907
2020
|
command.params['packageName'] = package_name unless package_name.nil?
|
1908
2021
|
command.params['sku'] = sku unless sku.nil?
|
2022
|
+
command.query['latencyTolerance'] = latency_tolerance unless latency_tolerance.nil?
|
1909
2023
|
command.query['fields'] = fields unless fields.nil?
|
1910
2024
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1911
2025
|
execute_or_queue_command(command, &block)
|
@@ -2046,6 +2160,9 @@ module Google
|
|
2046
2160
|
# If true the prices for all regions targeted by the parent app that don't have
|
2047
2161
|
# a price specified for this in-app product will be auto converted to the target
|
2048
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.
|
2049
2166
|
# @param [String] fields
|
2050
2167
|
# Selector specifying which fields to include in a partial response.
|
2051
2168
|
# @param [String] quota_user
|
@@ -2063,7 +2180,7 @@ module Google
|
|
2063
2180
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2064
2181
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2065
2182
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2066
|
-
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)
|
2067
2184
|
command = make_simple_command(:patch, 'androidpublisher/v3/applications/{packageName}/inappproducts/{sku}', options)
|
2068
2185
|
command.request_representation = Google::Apis::AndroidpublisherV3::InAppProduct::Representation
|
2069
2186
|
command.request_object = in_app_product_object
|
@@ -2072,6 +2189,7 @@ module Google
|
|
2072
2189
|
command.params['packageName'] = package_name unless package_name.nil?
|
2073
2190
|
command.params['sku'] = sku unless sku.nil?
|
2074
2191
|
command.query['autoConvertMissingPrices'] = auto_convert_missing_prices unless auto_convert_missing_prices.nil?
|
2192
|
+
command.query['latencyTolerance'] = latency_tolerance unless latency_tolerance.nil?
|
2075
2193
|
command.query['fields'] = fields unless fields.nil?
|
2076
2194
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2077
2195
|
execute_or_queue_command(command, &block)
|
@@ -2093,6 +2211,9 @@ module Google
|
|
2093
2211
|
# If true the prices for all regions targeted by the parent app that don't have
|
2094
2212
|
# a price specified for this in-app product will be auto converted to the target
|
2095
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.
|
2096
2217
|
# @param [String] fields
|
2097
2218
|
# Selector specifying which fields to include in a partial response.
|
2098
2219
|
# @param [String] quota_user
|
@@ -2110,7 +2231,7 @@ module Google
|
|
2110
2231
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2111
2232
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2112
2233
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2113
|
-
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)
|
2114
2235
|
command = make_simple_command(:put, 'androidpublisher/v3/applications/{packageName}/inappproducts/{sku}', options)
|
2115
2236
|
command.request_representation = Google::Apis::AndroidpublisherV3::InAppProduct::Representation
|
2116
2237
|
command.request_object = in_app_product_object
|
@@ -2120,6 +2241,7 @@ module Google
|
|
2120
2241
|
command.params['sku'] = sku unless sku.nil?
|
2121
2242
|
command.query['allowMissing'] = allow_missing unless allow_missing.nil?
|
2122
2243
|
command.query['autoConvertMissingPrices'] = auto_convert_missing_prices unless auto_convert_missing_prices.nil?
|
2244
|
+
command.query['latencyTolerance'] = latency_tolerance unless latency_tolerance.nil?
|
2123
2245
|
command.query['fields'] = fields unless fields.nil?
|
2124
2246
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2125
2247
|
execute_or_queue_command(command, &block)
|
@@ -2287,6 +2409,78 @@ module Google
|
|
2287
2409
|
execute_or_queue_command(command, &block)
|
2288
2410
|
end
|
2289
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
|
+
|
2290
2484
|
# Creates a new subscription. Newly added base plans will remain in draft state
|
2291
2485
|
# until activated.
|
2292
2486
|
# @param [String] package_name
|
@@ -2458,6 +2652,13 @@ module Google
|
|
2458
2652
|
# underscores (_) and dots (.). It must start with a lower-case letter or number,
|
2459
2653
|
# and be between 1 and 40 (inclusive) characters in length.
|
2460
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.
|
2461
2662
|
# @param [String] regions_version_version
|
2462
2663
|
# Required. A string representing the version of available regions being used
|
2463
2664
|
# for the specified resource. Regional prices for the resource have to be
|
@@ -2486,7 +2687,7 @@ module Google
|
|
2486
2687
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2487
2688
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2488
2689
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2489
|
-
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)
|
2490
2691
|
command = make_simple_command(:patch, 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}', options)
|
2491
2692
|
command.request_representation = Google::Apis::AndroidpublisherV3::Subscription::Representation
|
2492
2693
|
command.request_object = subscription_object
|
@@ -2494,6 +2695,8 @@ module Google
|
|
2494
2695
|
command.response_class = Google::Apis::AndroidpublisherV3::Subscription
|
2495
2696
|
command.params['packageName'] = package_name unless package_name.nil?
|
2496
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?
|
2497
2700
|
command.query['regionsVersion.version'] = regions_version_version unless regions_version_version.nil?
|
2498
2701
|
command.query['updateMask'] = update_mask unless update_mask.nil?
|
2499
2702
|
command.query['fields'] = fields unless fields.nil?
|
@@ -2541,6 +2744,89 @@ module Google
|
|
2541
2744
|
execute_or_queue_command(command, &block)
|
2542
2745
|
end
|
2543
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
|
+
|
2544
2830
|
# Deactivates a base plan. Once deactivated, the base plan will become
|
2545
2831
|
# unavailable to new subscribers, but existing subscribers will maintain their
|
2546
2832
|
# subscription
|
@@ -2705,6 +2991,142 @@ module Google
|
|
2705
2991
|
execute_or_queue_command(command, &block)
|
2706
2992
|
end
|
2707
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
|
+
|
2708
3130
|
# Creates a new subscription offer. Only auto-renewing base plans can have
|
2709
3131
|
# subscription offers. The offer state will be DRAFT until it is activated.
|
2710
3132
|
# @param [String] package_name
|
@@ -2947,6 +3369,13 @@ module Google
|
|
2947
3369
|
# Required. Immutable. Unique ID of this subscription offer. Must be unique
|
2948
3370
|
# within the base plan.
|
2949
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.
|
2950
3379
|
# @param [String] regions_version_version
|
2951
3380
|
# Required. A string representing the version of available regions being used
|
2952
3381
|
# for the specified resource. Regional prices for the resource have to be
|
@@ -2975,7 +3404,7 @@ module Google
|
|
2975
3404
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2976
3405
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2977
3406
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2978
|
-
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)
|
2979
3408
|
command = make_simple_command(:patch, 'androidpublisher/v3/applications/{packageName}/subscriptions/{productId}/basePlans/{basePlanId}/offers/{offerId}', options)
|
2980
3409
|
command.request_representation = Google::Apis::AndroidpublisherV3::SubscriptionOffer::Representation
|
2981
3410
|
command.request_object = subscription_offer_object
|
@@ -2985,6 +3414,8 @@ module Google
|
|
2985
3414
|
command.params['productId'] = product_id unless product_id.nil?
|
2986
3415
|
command.params['basePlanId'] = base_plan_id unless base_plan_id.nil?
|
2987
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?
|
2988
3419
|
command.query['regionsVersion.version'] = regions_version_version unless regions_version_version.nil?
|
2989
3420
|
command.query['updateMask'] = update_mask unless update_mask.nil?
|
2990
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.
|
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
|
+
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.
|
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: []
|