Skip to content

Commit a635652

Browse files
feat: Automated regeneration of merchantapi inventories_v1beta client (#24971)
Auto-created at 2025-11-16 09:47:47 +0000 using the toys pull request generator.
1 parent f9436f0 commit a635652

File tree

4 files changed

+84
-8
lines changed

4 files changed

+84
-8
lines changed

api_names_out.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296993,20 +296993,26 @@
296993296993
"/merchantapi:inventories_v1beta/key": key
296994296994
"/merchantapi:inventories_v1beta/merchantapi.accounts.products.localInventories.delete": delete_account_product_local_inventory
296995296995
"/merchantapi:inventories_v1beta/merchantapi.accounts.products.localInventories.delete/name": name
296996+
"/merchantapi:inventories_v1beta/merchantapi.accounts.products.localInventories.delete/productIdBase64UrlEncoded": product_id_base64_url_encoded
296996296997
"/merchantapi:inventories_v1beta/merchantapi.accounts.products.localInventories.insert": insert_account_product_local_inventory
296997296998
"/merchantapi:inventories_v1beta/merchantapi.accounts.products.localInventories.insert/parent": parent
296999+
"/merchantapi:inventories_v1beta/merchantapi.accounts.products.localInventories.insert/productIdBase64UrlEncoded": product_id_base64_url_encoded
296998297000
"/merchantapi:inventories_v1beta/merchantapi.accounts.products.localInventories.list": list_account_product_local_inventories
296999297001
"/merchantapi:inventories_v1beta/merchantapi.accounts.products.localInventories.list/pageSize": page_size
297000297002
"/merchantapi:inventories_v1beta/merchantapi.accounts.products.localInventories.list/pageToken": page_token
297001297003
"/merchantapi:inventories_v1beta/merchantapi.accounts.products.localInventories.list/parent": parent
297004+
"/merchantapi:inventories_v1beta/merchantapi.accounts.products.localInventories.list/productIdBase64UrlEncoded": product_id_base64_url_encoded
297002297005
"/merchantapi:inventories_v1beta/merchantapi.accounts.products.regionalInventories.delete": delete_account_product_regional_inventory
297003297006
"/merchantapi:inventories_v1beta/merchantapi.accounts.products.regionalInventories.delete/name": name
297007+
"/merchantapi:inventories_v1beta/merchantapi.accounts.products.regionalInventories.delete/productIdBase64UrlEncoded": product_id_base64_url_encoded
297004297008
"/merchantapi:inventories_v1beta/merchantapi.accounts.products.regionalInventories.insert": insert_account_product_regional_inventory
297005297009
"/merchantapi:inventories_v1beta/merchantapi.accounts.products.regionalInventories.insert/parent": parent
297010+
"/merchantapi:inventories_v1beta/merchantapi.accounts.products.regionalInventories.insert/productIdBase64UrlEncoded": product_id_base64_url_encoded
297006297011
"/merchantapi:inventories_v1beta/merchantapi.accounts.products.regionalInventories.list": list_account_product_regional_inventories
297007297012
"/merchantapi:inventories_v1beta/merchantapi.accounts.products.regionalInventories.list/pageSize": page_size
297008297013
"/merchantapi:inventories_v1beta/merchantapi.accounts.products.regionalInventories.list/pageToken": page_token
297009297014
"/merchantapi:inventories_v1beta/merchantapi.accounts.products.regionalInventories.list/parent": parent
297015+
"/merchantapi:inventories_v1beta/merchantapi.accounts.products.regionalInventories.list/productIdBase64UrlEncoded": product_id_base64_url_encoded
297010297016
"/merchantapi:inventories_v1beta/quotaUser": quota_user
297011297017
"/merchantapi:lfp_v1beta/CountrySettings": country_settings
297012297018
"/merchantapi:lfp_v1beta/CountrySettings/freeLocalListingsEnabled": free_local_listings_enabled

generated/google-apis-merchantapi_inventories_v1beta/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-merchantapi_inventories_v1beta
22

3+
### v0.10.0 (2025-11-16)
4+
5+
* Regenerated from discovery document revision 20251109
6+
37
### v0.9.0 (2025-06-29)
48

59
* Regenerated from discovery document revision 20250623

generated/google-apis-merchantapi_inventories_v1beta/lib/google/apis/merchantapi_inventories_v1beta/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module MerchantapiInventoriesV1beta
1818
# Version of the google-apis-merchantapi_inventories_v1beta gem
19-
GEM_VERSION = "0.9.0"
19+
GEM_VERSION = "0.10.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.18.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250623"
25+
REVISION = "20251109"
2626
end
2727
end
2828
end

generated/google-apis-merchantapi_inventories_v1beta/lib/google/apis/merchantapi_inventories_v1beta/service.rb

Lines changed: 72 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,16 @@ def initialize
5858
# @param [String] name
5959
# Required. The name of the local inventory for the given product to delete.
6060
# Format: `accounts/`account`/products/`product`/localInventories/`store_code``
61+
# @param [Boolean] product_id_base64_url_encoded
62+
# Optional. If true, the ``product`` in the `name` field of the request will be
63+
# interpreted as unpadded base64url-encoded and decoded during request
64+
# processing to match the decoded value. Default value is `false`. Use this if
65+
# your ``product`` contains special characters, such as forward slash `/` or
66+
# other characters that are unpadded base64url-encoded (as per RFC 7515: https://
67+
# datatracker.ietf.org/doc/html/rfc7515#section-2). Note that future versions of
68+
# the API will only accept unpadded base64url-encoded product ids, so we
69+
# strongly recommend proactively setting this to `true` and encoding the product
70+
# ids.
6171
# @param [String] fields
6272
# Selector specifying which fields to include in a partial response.
6373
# @param [String] quota_user
@@ -75,11 +85,12 @@ def initialize
7585
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7686
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7787
# @raise [Google::Apis::AuthorizationError] Authorization is required
78-
def delete_account_product_local_inventory(name, fields: nil, quota_user: nil, options: nil, &block)
88+
def delete_account_product_local_inventory(name, product_id_base64_url_encoded: nil, fields: nil, quota_user: nil, options: nil, &block)
7989
command = make_simple_command(:delete, 'inventories/v1beta/{+name}', options)
8090
command.response_representation = Google::Apis::MerchantapiInventoriesV1beta::Empty::Representation
8191
command.response_class = Google::Apis::MerchantapiInventoriesV1beta::Empty
8292
command.params['name'] = name unless name.nil?
93+
command.query['productIdBase64UrlEncoded'] = product_id_base64_url_encoded unless product_id_base64_url_encoded.nil?
8394
command.query['fields'] = fields unless fields.nil?
8495
command.query['quotaUser'] = quota_user unless quota_user.nil?
8596
execute_or_queue_command(command, &block)
@@ -93,6 +104,16 @@ def delete_account_product_local_inventory(name, fields: nil, quota_user: nil, o
93104
# Required. The account and product where this inventory will be inserted.
94105
# Format: `accounts/`account`/products/`product``
95106
# @param [Google::Apis::MerchantapiInventoriesV1beta::LocalInventory] local_inventory_object
107+
# @param [Boolean] product_id_base64_url_encoded
108+
# Optional. If true, the ``product`` in the `parent` field of the request will
109+
# be interpreted as unpadded base64url-encoded and decoded during request
110+
# processing to match the decoded value. Default value is `false`. Use this if
111+
# your ``product`` contains special characters, such as forward slash `/` or
112+
# other characters that are unpadded base64url-encoded (as per RFC 7515: https://
113+
# datatracker.ietf.org/doc/html/rfc7515#section-2). Note that future versions of
114+
# the API will only accept unpadded base64url-encoded product ids, so we
115+
# strongly recommend proactively setting this to `true` and encoding the product
116+
# ids.
96117
# @param [String] fields
97118
# Selector specifying which fields to include in a partial response.
98119
# @param [String] quota_user
@@ -110,13 +131,14 @@ def delete_account_product_local_inventory(name, fields: nil, quota_user: nil, o
110131
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
111132
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
112133
# @raise [Google::Apis::AuthorizationError] Authorization is required
113-
def insert_account_product_local_inventory(parent, local_inventory_object = nil, fields: nil, quota_user: nil, options: nil, &block)
134+
def insert_account_product_local_inventory(parent, local_inventory_object = nil, product_id_base64_url_encoded: nil, fields: nil, quota_user: nil, options: nil, &block)
114135
command = make_simple_command(:post, 'inventories/v1beta/{+parent}/localInventories:insert', options)
115136
command.request_representation = Google::Apis::MerchantapiInventoriesV1beta::LocalInventory::Representation
116137
command.request_object = local_inventory_object
117138
command.response_representation = Google::Apis::MerchantapiInventoriesV1beta::LocalInventory::Representation
118139
command.response_class = Google::Apis::MerchantapiInventoriesV1beta::LocalInventory
119140
command.params['parent'] = parent unless parent.nil?
141+
command.query['productIdBase64UrlEncoded'] = product_id_base64_url_encoded unless product_id_base64_url_encoded.nil?
120142
command.query['fields'] = fields unless fields.nil?
121143
command.query['quotaUser'] = quota_user unless quota_user.nil?
122144
execute_or_queue_command(command, &block)
@@ -142,6 +164,16 @@ def insert_account_product_local_inventory(parent, local_inventory_object = nil,
142164
# parameters provided to `ListLocalInventories` must match the call that
143165
# provided the page token. The token returned as nextPageToken in the response
144166
# to the previous request.
167+
# @param [Boolean] product_id_base64_url_encoded
168+
# Optional. If true, the ``product`` in the `parent` field of the request will
169+
# be interpreted as unpadded base64url-encoded and decoded during request
170+
# processing to match the decoded value. Default value is `false`. Use this if
171+
# your ``product`` contains special characters, such as forward slash `/` or
172+
# other characters that are unpadded base64url-encoded (as per RFC 7515: https://
173+
# datatracker.ietf.org/doc/html/rfc7515#section-2). Note that future versions of
174+
# the API will only accept unpadded base64url-encoded product ids, so we
175+
# strongly recommend proactively setting this to `true` and encoding the product
176+
# ids.
145177
# @param [String] fields
146178
# Selector specifying which fields to include in a partial response.
147179
# @param [String] quota_user
@@ -159,13 +191,14 @@ def insert_account_product_local_inventory(parent, local_inventory_object = nil,
159191
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
160192
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
161193
# @raise [Google::Apis::AuthorizationError] Authorization is required
162-
def list_account_product_local_inventories(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
194+
def list_account_product_local_inventories(parent, page_size: nil, page_token: nil, product_id_base64_url_encoded: nil, fields: nil, quota_user: nil, options: nil, &block)
163195
command = make_simple_command(:get, 'inventories/v1beta/{+parent}/localInventories', options)
164196
command.response_representation = Google::Apis::MerchantapiInventoriesV1beta::ListLocalInventoriesResponse::Representation
165197
command.response_class = Google::Apis::MerchantapiInventoriesV1beta::ListLocalInventoriesResponse
166198
command.params['parent'] = parent unless parent.nil?
167199
command.query['pageSize'] = page_size unless page_size.nil?
168200
command.query['pageToken'] = page_token unless page_token.nil?
201+
command.query['productIdBase64UrlEncoded'] = product_id_base64_url_encoded unless product_id_base64_url_encoded.nil?
169202
command.query['fields'] = fields unless fields.nil?
170203
command.query['quotaUser'] = quota_user unless quota_user.nil?
171204
execute_or_queue_command(command, &block)
@@ -178,6 +211,16 @@ def list_account_product_local_inventories(parent, page_size: nil, page_token: n
178211
# @param [String] name
179212
# Required. The name of the `RegionalInventory` resource to delete. Format: `
180213
# accounts/`account`/products/`product`/regionalInventories/`region``
214+
# @param [Boolean] product_id_base64_url_encoded
215+
# Optional. If true, the ``product`` in the `name` field of the request will be
216+
# interpreted as unpadded base64url-encoded and decoded during request
217+
# processing to match the decoded value. Default value is `false`. Use this if
218+
# your ``product`` contains special characters, such as forward slash `/` or
219+
# other characters that are unpadded base64url-encoded (as per RFC 7515: https://
220+
# datatracker.ietf.org/doc/html/rfc7515#section-2). Note that future versions of
221+
# the API will only accept unpadded base64url-encoded product ids, so we
222+
# strongly recommend proactively setting this to `true` and encoding the product
223+
# ids.
181224
# @param [String] fields
182225
# Selector specifying which fields to include in a partial response.
183226
# @param [String] quota_user
@@ -195,11 +238,12 @@ def list_account_product_local_inventories(parent, page_size: nil, page_token: n
195238
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
196239
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
197240
# @raise [Google::Apis::AuthorizationError] Authorization is required
198-
def delete_account_product_regional_inventory(name, fields: nil, quota_user: nil, options: nil, &block)
241+
def delete_account_product_regional_inventory(name, product_id_base64_url_encoded: nil, fields: nil, quota_user: nil, options: nil, &block)
199242
command = make_simple_command(:delete, 'inventories/v1beta/{+name}', options)
200243
command.response_representation = Google::Apis::MerchantapiInventoriesV1beta::Empty::Representation
201244
command.response_class = Google::Apis::MerchantapiInventoriesV1beta::Empty
202245
command.params['name'] = name unless name.nil?
246+
command.query['productIdBase64UrlEncoded'] = product_id_base64_url_encoded unless product_id_base64_url_encoded.nil?
203247
command.query['fields'] = fields unless fields.nil?
204248
command.query['quotaUser'] = quota_user unless quota_user.nil?
205249
execute_or_queue_command(command, &block)
@@ -213,6 +257,16 @@ def delete_account_product_regional_inventory(name, fields: nil, quota_user: nil
213257
# Required. The account and product where this inventory will be inserted.
214258
# Format: `accounts/`account`/products/`product``
215259
# @param [Google::Apis::MerchantapiInventoriesV1beta::RegionalInventory] regional_inventory_object
260+
# @param [Boolean] product_id_base64_url_encoded
261+
# Optional. If true, the ``product`` in the `parent` field of the request will
262+
# be interpreted as unpadded base64url-encoded and decoded during request
263+
# processing to match the decoded value. Default value is `false`. Use this if
264+
# your ``product`` contains special characters, such as forward slash `/` or
265+
# other characters that are unpadded base64url-encoded (as per RFC 7515: https://
266+
# datatracker.ietf.org/doc/html/rfc7515#section-2). Note that future versions of
267+
# the API will only accept unpadded base64url-encoded product ids, so we
268+
# strongly recommend proactively setting this to `true` and encoding the product
269+
# ids.
216270
# @param [String] fields
217271
# Selector specifying which fields to include in a partial response.
218272
# @param [String] quota_user
@@ -230,13 +284,14 @@ def delete_account_product_regional_inventory(name, fields: nil, quota_user: nil
230284
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
231285
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
232286
# @raise [Google::Apis::AuthorizationError] Authorization is required
233-
def insert_account_product_regional_inventory(parent, regional_inventory_object = nil, fields: nil, quota_user: nil, options: nil, &block)
287+
def insert_account_product_regional_inventory(parent, regional_inventory_object = nil, product_id_base64_url_encoded: nil, fields: nil, quota_user: nil, options: nil, &block)
234288
command = make_simple_command(:post, 'inventories/v1beta/{+parent}/regionalInventories:insert', options)
235289
command.request_representation = Google::Apis::MerchantapiInventoriesV1beta::RegionalInventory::Representation
236290
command.request_object = regional_inventory_object
237291
command.response_representation = Google::Apis::MerchantapiInventoriesV1beta::RegionalInventory::Representation
238292
command.response_class = Google::Apis::MerchantapiInventoriesV1beta::RegionalInventory
239293
command.params['parent'] = parent unless parent.nil?
294+
command.query['productIdBase64UrlEncoded'] = product_id_base64_url_encoded unless product_id_base64_url_encoded.nil?
240295
command.query['fields'] = fields unless fields.nil?
241296
command.query['quotaUser'] = quota_user unless quota_user.nil?
242297
execute_or_queue_command(command, &block)
@@ -262,6 +317,16 @@ def insert_account_product_regional_inventory(parent, regional_inventory_object
262317
# parameters provided to `ListRegionalInventories` must match the call that
263318
# provided the page token. The token returned as nextPageToken in the response
264319
# to the previous request.
320+
# @param [Boolean] product_id_base64_url_encoded
321+
# Optional. If true, the ``product`` in the `parent` field of the request will
322+
# be interpreted as unpadded base64url-encoded and decoded during request
323+
# processing to match the decoded value. Default value is `false`. Use this if
324+
# your ``product`` contains special characters, such as forward slash `/` or
325+
# other characters that are unpadded base64url-encoded (as per RFC 7515: https://
326+
# datatracker.ietf.org/doc/html/rfc7515#section-2). Note that future versions of
327+
# the API will only accept unpadded base64url-encoded product ids, so we
328+
# strongly recommend proactively setting this to `true` and encoding the product
329+
# ids.
265330
# @param [String] fields
266331
# Selector specifying which fields to include in a partial response.
267332
# @param [String] quota_user
@@ -279,13 +344,14 @@ def insert_account_product_regional_inventory(parent, regional_inventory_object
279344
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
280345
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
281346
# @raise [Google::Apis::AuthorizationError] Authorization is required
282-
def list_account_product_regional_inventories(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
347+
def list_account_product_regional_inventories(parent, page_size: nil, page_token: nil, product_id_base64_url_encoded: nil, fields: nil, quota_user: nil, options: nil, &block)
283348
command = make_simple_command(:get, 'inventories/v1beta/{+parent}/regionalInventories', options)
284349
command.response_representation = Google::Apis::MerchantapiInventoriesV1beta::ListRegionalInventoriesResponse::Representation
285350
command.response_class = Google::Apis::MerchantapiInventoriesV1beta::ListRegionalInventoriesResponse
286351
command.params['parent'] = parent unless parent.nil?
287352
command.query['pageSize'] = page_size unless page_size.nil?
288353
command.query['pageToken'] = page_token unless page_token.nil?
354+
command.query['productIdBase64UrlEncoded'] = product_id_base64_url_encoded unless product_id_base64_url_encoded.nil?
289355
command.query['fields'] = fields unless fields.nil?
290356
command.query['quotaUser'] = quota_user unless quota_user.nil?
291357
execute_or_queue_command(command, &block)

0 commit comments

Comments
 (0)