google-apis-merchantapi_inventories_v1beta 0.10.0 → 0.11.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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c3e8c52ffb7ca5080270c66af1079ee56928b9eb951c81daa66cd2408b79982e
|
|
4
|
+
data.tar.gz: f8b3053626fe89b26d4a715b846e0b0917926c82a5be9599365a3fe3da772a36
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1cf452c440f1e3b68af77abe3c27363c98b914b7f2ec2d88c1d51eca4f0ea687c6cf6dbeb8b539b156d1af1d017bcfc0d262e5edfc03f2000defbb719a7bf9e0
|
|
7
|
+
data.tar.gz: 63ce30a6cdf2eab754009a0504990f8cff15d3a9ddbbec811da14bc2076ab98cd674a6ad2987896cfae7006ea86410a4fd7006f4529e9d8711d4905da8ce4df5
|
data/CHANGELOG.md
CHANGED
|
@@ -189,7 +189,32 @@ module Google
|
|
|
189
189
|
attr_accessor :instore_product_location
|
|
190
190
|
|
|
191
191
|
# Output only. The name of the `LocalInventory` resource. Format: `accounts/`
|
|
192
|
-
# account`/products/`product`/localInventories/`store_code``
|
|
192
|
+
# account`/products/`product`/localInventories/`store_code`` The ``product``
|
|
193
|
+
# segment is a unique identifier for the product. This identifier must be unique
|
|
194
|
+
# within a merchant account and generally follows the structure: `
|
|
195
|
+
# content_language~feed_label~offer_id`. Example: `en~US~sku123` For legacy
|
|
196
|
+
# local products, the structure is: `local~content_language~feed_label~offer_id`.
|
|
197
|
+
# Example: `local~en~US~sku123` The format of the ``product`` segment in the
|
|
198
|
+
# URL is automatically detected by the server, supporting two options: 1. **
|
|
199
|
+
# Encoded Format**: The ``product`` segment is an unpadded base64url encoded
|
|
200
|
+
# string (RFC 4648 Section 5). The decoded string must result in the `
|
|
201
|
+
# content_language~feed_label~offer_id` structure. This encoding MUST be used if
|
|
202
|
+
# any part of the product identifier (like `offer_id`) contains characters such
|
|
203
|
+
# as `/`, `%`, or `~`. * Example: To represent the product ID `en~US~sku/123`
|
|
204
|
+
# for `store_code` "store123", the ``product`` segment must be the base64url
|
|
205
|
+
# encoding of this string, which is `ZW5-VVMtc2t1LzEyMw`. The full resource name
|
|
206
|
+
# for the local inventory would be `accounts/123/products/ZW5-VVMtc2t1LzEyMw/
|
|
207
|
+
# localInventories/store123`. 2. **Plain Format**: The ``product`` segment is
|
|
208
|
+
# the tilde-separated string `content_language~feed_label~offer_id`. This format
|
|
209
|
+
# is suitable only when `content_language`, `feed_label`, and `offer_id` do not
|
|
210
|
+
# contain URL-problematic characters like `/`, `%`, or `~`. We recommend using
|
|
211
|
+
# the **Encoded Format** for all product IDs to ensure correct parsing,
|
|
212
|
+
# especially those containing special characters. The presence of tilde (`~`)
|
|
213
|
+
# characters in the ``product`` segment is used to differentiate between the two
|
|
214
|
+
# formats. Note: For calls to the v1beta version, the plain format for the
|
|
215
|
+
# product segment is `channel~content_language~feed_label~offer_id`. For example,
|
|
216
|
+
# the full resource name for a local inventory at `store_code` "store123" would
|
|
217
|
+
# be: `accounts/123/products/online~en~US~sku123/localInventories/store123`.
|
|
193
218
|
# Corresponds to the JSON property `name`
|
|
194
219
|
# @return [String]
|
|
195
220
|
attr_accessor :name
|
|
@@ -439,9 +464,33 @@ module Google
|
|
|
439
464
|
# @return [Array<Google::Apis::MerchantapiInventoriesV1beta::CustomAttribute>]
|
|
440
465
|
attr_accessor :custom_attributes
|
|
441
466
|
|
|
442
|
-
# Output only. The name of the `RegionalInventory` resource. Format:
|
|
443
|
-
#
|
|
444
|
-
#
|
|
467
|
+
# Output only. The name of the `RegionalInventory` resource. Format: `accounts/`
|
|
468
|
+
# account`/products/`product`/regionalInventories/`region`` The ``product``
|
|
469
|
+
# segment is a unique identifier for the product. This identifier must be unique
|
|
470
|
+
# within a merchant account and generally follows the structure: `
|
|
471
|
+
# content_language~feed_label~offer_id`. Example: `en~US~sku123` For legacy
|
|
472
|
+
# local products, the structure is: `local~content_language~feed_label~offer_id`.
|
|
473
|
+
# Example: `local~en~US~sku123` The format of the ``product`` segment in the
|
|
474
|
+
# URL is automatically detected by the server, supporting two options: 1. **
|
|
475
|
+
# Encoded Format**: The ``product`` segment is an unpadded base64url encoded
|
|
476
|
+
# string (RFC 4648 Section 5). The decoded string must result in the `
|
|
477
|
+
# content_language~feed_label~offer_id` structure. This encoding MUST be used if
|
|
478
|
+
# any part of the product identifier (like `offer_id`) contains characters such
|
|
479
|
+
# as `/`, `%`, or `~`. * Example: To represent the product ID `en~US~sku/123`
|
|
480
|
+
# for `region` "region123", the ``product`` segment must be the base64url
|
|
481
|
+
# encoding of this string, which is `ZW5-VVMtc2t1LzEyMw`. The full resource name
|
|
482
|
+
# for the regional inventory would be `accounts/123/products/ZW5-VVMtc2t1LzEyMw/
|
|
483
|
+
# regionalInventories/region123`. 2. **Plain Format**: The ``product`` segment
|
|
484
|
+
# is the tilde-separated string `content_language~feed_label~offer_id`. This
|
|
485
|
+
# format is suitable only when `content_language`, `feed_label`, and `offer_id`
|
|
486
|
+
# do not contain URL-problematic characters like `/`, `%`, or `~`. We recommend
|
|
487
|
+
# using the **Encoded Format** for all product IDs to ensure correct parsing,
|
|
488
|
+
# especially those containing special characters. The presence of tilde (`~`)
|
|
489
|
+
# characters in the ``product`` segment is used to differentiate between the two
|
|
490
|
+
# formats. Note: For calls to the v1beta version, the plain format for the
|
|
491
|
+
# product segment is `channel~content_language~feed_label~offer_id`. For example,
|
|
492
|
+
# the full resource name for a regional inventory in `region` "region123" would
|
|
493
|
+
# be: `accounts/123/products/online~en~US~sku123/regionalInventories/region123`.
|
|
445
494
|
# Corresponds to the JSON property `name`
|
|
446
495
|
# @return [String]
|
|
447
496
|
attr_accessor :name
|
|
@@ -16,13 +16,13 @@ module Google
|
|
|
16
16
|
module Apis
|
|
17
17
|
module MerchantapiInventoriesV1beta
|
|
18
18
|
# Version of the google-apis-merchantapi_inventories_v1beta gem
|
|
19
|
-
GEM_VERSION = "0.
|
|
19
|
+
GEM_VERSION = "0.11.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
22
|
GENERATOR_VERSION = "0.18.0"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20251118"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -58,16 +58,31 @@ module Google
|
|
|
58
58
|
# @param [String] name
|
|
59
59
|
# Required. The name of the local inventory for the given product to delete.
|
|
60
60
|
# Format: `accounts/`account`/products/`product`/localInventories/`store_code``
|
|
61
|
-
#
|
|
62
|
-
#
|
|
63
|
-
#
|
|
64
|
-
#
|
|
65
|
-
#
|
|
66
|
-
#
|
|
67
|
-
#
|
|
68
|
-
#
|
|
69
|
-
#
|
|
70
|
-
#
|
|
61
|
+
# The ``product`` segment is a unique identifier for the product. This
|
|
62
|
+
# identifier must be unique within a merchant account and generally follows the
|
|
63
|
+
# structure: `content_language~feed_label~offer_id`. Example: `en~US~sku123` For
|
|
64
|
+
# legacy local products, the structure is: `local~content_language~feed_label~
|
|
65
|
+
# offer_id`. Example: `local~en~US~sku123` The format of the ``product`` segment
|
|
66
|
+
# in the URL is automatically detected by the server, supporting two options: 1.
|
|
67
|
+
# **Encoded Format**: The ``product`` segment is an unpadded base64url encoded
|
|
68
|
+
# string (RFC 4648 Section 5). The decoded string must result in the `
|
|
69
|
+
# content_language~feed_label~offer_id` structure. This encoding MUST be used if
|
|
70
|
+
# any part of the product identifier (like `offer_id`) contains characters such
|
|
71
|
+
# as `/`, `%`, or `~`. * Example: To represent the product ID `en~US~sku/123`
|
|
72
|
+
# for `store_code` "store123", the ``product`` segment must be the base64url
|
|
73
|
+
# encoding of this string, which is `ZW5-VVMtc2t1LzEyMw`. The full resource name
|
|
74
|
+
# for the local inventory would be `accounts/123/products/ZW5-VVMtc2t1LzEyMw/
|
|
75
|
+
# localInventories/store123`. 2. **Plain Format**: The ``product`` segment is
|
|
76
|
+
# the tilde-separated string `content_language~feed_label~offer_id`. This format
|
|
77
|
+
# is suitable only when `content_language`, `feed_label`, and `offer_id` do not
|
|
78
|
+
# contain URL-problematic characters like `/`, `%`, or `~`. We recommend using
|
|
79
|
+
# the **Encoded Format** for all product IDs to ensure correct parsing,
|
|
80
|
+
# especially those containing special characters. The presence of tilde (`~`)
|
|
81
|
+
# characters in the ``product`` segment is used to differentiate between the two
|
|
82
|
+
# formats. Note: For calls to the v1beta version, the plain format for the
|
|
83
|
+
# product segment is `channel~content_language~feed_label~offer_id`. For example,
|
|
84
|
+
# the full resource name for a local inventory at `store_code` "store123" would
|
|
85
|
+
# be: `accounts/123/products/online~en~US~sku123/localInventories/store123`.
|
|
71
86
|
# @param [String] fields
|
|
72
87
|
# Selector specifying which fields to include in a partial response.
|
|
73
88
|
# @param [String] quota_user
|
|
@@ -85,12 +100,11 @@ module Google
|
|
|
85
100
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
86
101
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
87
102
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
88
|
-
def delete_account_product_local_inventory(name,
|
|
103
|
+
def delete_account_product_local_inventory(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
89
104
|
command = make_simple_command(:delete, 'inventories/v1beta/{+name}', options)
|
|
90
105
|
command.response_representation = Google::Apis::MerchantapiInventoriesV1beta::Empty::Representation
|
|
91
106
|
command.response_class = Google::Apis::MerchantapiInventoriesV1beta::Empty
|
|
92
107
|
command.params['name'] = name unless name.nil?
|
|
93
|
-
command.query['productIdBase64UrlEncoded'] = product_id_base64_url_encoded unless product_id_base64_url_encoded.nil?
|
|
94
108
|
command.query['fields'] = fields unless fields.nil?
|
|
95
109
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
96
110
|
execute_or_queue_command(command, &block)
|
|
@@ -102,18 +116,31 @@ module Google
|
|
|
102
116
|
# the new or updated `LocalInventory` resource to appear in products.
|
|
103
117
|
# @param [String] parent
|
|
104
118
|
# Required. The account and product where this inventory will be inserted.
|
|
105
|
-
# Format: `accounts/`account`/products/`product``
|
|
119
|
+
# Format: `accounts/`account`/products/`product`` The ``product`` segment is a
|
|
120
|
+
# unique identifier for the product. This identifier must be unique within a
|
|
121
|
+
# merchant account and generally follows the structure: `content_language~
|
|
122
|
+
# feed_label~offer_id`. Example: `en~US~sku123` For legacy local products, the
|
|
123
|
+
# structure is: `local~content_language~feed_label~offer_id`. Example: `local~en~
|
|
124
|
+
# US~sku123` The format of the ``product`` segment in the URL is automatically
|
|
125
|
+
# detected by the server, supporting two options: 1. **Encoded Format**: The ``
|
|
126
|
+
# product`` segment is an unpadded base64url encoded string (RFC 4648 Section 5).
|
|
127
|
+
# The decoded string must result in the `content_language~feed_label~offer_id`
|
|
128
|
+
# structure. This encoding MUST be used if any part of the product identifier (
|
|
129
|
+
# like `offer_id`) contains characters such as `/`, `%`, or `~`. * Example: To
|
|
130
|
+
# represent the product ID `en~US~sku/123`, the ``product`` segment must be the
|
|
131
|
+
# base64url encoding of this string, which is `ZW5-VVMtc2t1LzEyMw`. The full
|
|
132
|
+
# resource name for the product would be `accounts/123/products/ZW5-
|
|
133
|
+
# VVMtc2t1LzEyMw`. 2. **Plain Format**: The ``product`` segment is the tilde-
|
|
134
|
+
# separated string `content_language~feed_label~offer_id`. This format is
|
|
135
|
+
# suitable only when `content_language`, `feed_label`, and `offer_id` do not
|
|
136
|
+
# contain URL-problematic characters like `/`, `%`, or `~`. We recommend using
|
|
137
|
+
# the **Encoded Format** for all product IDs to ensure correct parsing,
|
|
138
|
+
# especially those containing special characters. The presence of tilde (`~`)
|
|
139
|
+
# characters in the ``product`` segment is used to differentiate between the two
|
|
140
|
+
# formats. Note: For calls to the v1beta version, the plain format is `channel~
|
|
141
|
+
# content_language~feed_label~offer_id`, for example: `accounts/123/products/
|
|
142
|
+
# online~en~US~sku123`.
|
|
106
143
|
# @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.
|
|
117
144
|
# @param [String] fields
|
|
118
145
|
# Selector specifying which fields to include in a partial response.
|
|
119
146
|
# @param [String] quota_user
|
|
@@ -131,14 +158,13 @@ module Google
|
|
|
131
158
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
132
159
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
133
160
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
134
|
-
def insert_account_product_local_inventory(parent, local_inventory_object = nil,
|
|
161
|
+
def insert_account_product_local_inventory(parent, local_inventory_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
135
162
|
command = make_simple_command(:post, 'inventories/v1beta/{+parent}/localInventories:insert', options)
|
|
136
163
|
command.request_representation = Google::Apis::MerchantapiInventoriesV1beta::LocalInventory::Representation
|
|
137
164
|
command.request_object = local_inventory_object
|
|
138
165
|
command.response_representation = Google::Apis::MerchantapiInventoriesV1beta::LocalInventory::Representation
|
|
139
166
|
command.response_class = Google::Apis::MerchantapiInventoriesV1beta::LocalInventory
|
|
140
167
|
command.params['parent'] = parent unless parent.nil?
|
|
141
|
-
command.query['productIdBase64UrlEncoded'] = product_id_base64_url_encoded unless product_id_base64_url_encoded.nil?
|
|
142
168
|
command.query['fields'] = fields unless fields.nil?
|
|
143
169
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
144
170
|
execute_or_queue_command(command, &block)
|
|
@@ -151,7 +177,30 @@ module Google
|
|
|
151
177
|
# given account.
|
|
152
178
|
# @param [String] parent
|
|
153
179
|
# Required. The `name` of the parent product to list local inventories for.
|
|
154
|
-
# Format: `accounts/`account`/products/`product``
|
|
180
|
+
# Format: `accounts/`account`/products/`product`` The ``product`` segment is a
|
|
181
|
+
# unique identifier for the product. This identifier must be unique within a
|
|
182
|
+
# merchant account and generally follows the structure: `content_language~
|
|
183
|
+
# feed_label~offer_id`. Example: `en~US~sku123` For legacy local products, the
|
|
184
|
+
# structure is: `local~content_language~feed_label~offer_id`. Example: `local~en~
|
|
185
|
+
# US~sku123` The format of the ``product`` segment in the URL is automatically
|
|
186
|
+
# detected by the server, supporting two options: 1. **Encoded Format**: The ``
|
|
187
|
+
# product`` segment is an unpadded base64url encoded string (RFC 4648 Section 5).
|
|
188
|
+
# The decoded string must result in the `content_language~feed_label~offer_id`
|
|
189
|
+
# structure. This encoding MUST be used if any part of the product identifier (
|
|
190
|
+
# like `offer_id`) contains characters such as `/`, `%`, or `~`. * Example: To
|
|
191
|
+
# represent the product ID `en~US~sku/123`, the ``product`` segment must be the
|
|
192
|
+
# base64url encoding of this string, which is `ZW5-VVMtc2t1LzEyMw`. The full
|
|
193
|
+
# resource name for the product would be `accounts/123/products/ZW5-
|
|
194
|
+
# VVMtc2t1LzEyMw`. 2. **Plain Format**: The ``product`` segment is the tilde-
|
|
195
|
+
# separated string `content_language~feed_label~offer_id`. This format is
|
|
196
|
+
# suitable only when `content_language`, `feed_label`, and `offer_id` do not
|
|
197
|
+
# contain URL-problematic characters like `/`, `%`, or `~`. We recommend using
|
|
198
|
+
# the **Encoded Format** for all product IDs to ensure correct parsing,
|
|
199
|
+
# especially those containing special characters. The presence of tilde (`~`)
|
|
200
|
+
# characters in the ``product`` segment is used to differentiate between the two
|
|
201
|
+
# formats. Note: For calls to the v1beta version, the plain format is `channel~
|
|
202
|
+
# content_language~feed_label~offer_id`, for example: `accounts/123/products/
|
|
203
|
+
# online~en~US~sku123`.
|
|
155
204
|
# @param [Fixnum] page_size
|
|
156
205
|
# The maximum number of `LocalInventory` resources for the given product to
|
|
157
206
|
# return. The service returns fewer than this value if the number of inventories
|
|
@@ -164,16 +213,6 @@ module Google
|
|
|
164
213
|
# parameters provided to `ListLocalInventories` must match the call that
|
|
165
214
|
# provided the page token. The token returned as nextPageToken in the response
|
|
166
215
|
# 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.
|
|
177
216
|
# @param [String] fields
|
|
178
217
|
# Selector specifying which fields to include in a partial response.
|
|
179
218
|
# @param [String] quota_user
|
|
@@ -191,14 +230,13 @@ module Google
|
|
|
191
230
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
192
231
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
193
232
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
194
|
-
def list_account_product_local_inventories(parent, page_size: nil, page_token: nil,
|
|
233
|
+
def list_account_product_local_inventories(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
195
234
|
command = make_simple_command(:get, 'inventories/v1beta/{+parent}/localInventories', options)
|
|
196
235
|
command.response_representation = Google::Apis::MerchantapiInventoriesV1beta::ListLocalInventoriesResponse::Representation
|
|
197
236
|
command.response_class = Google::Apis::MerchantapiInventoriesV1beta::ListLocalInventoriesResponse
|
|
198
237
|
command.params['parent'] = parent unless parent.nil?
|
|
199
238
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
200
239
|
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?
|
|
202
240
|
command.query['fields'] = fields unless fields.nil?
|
|
203
241
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
204
242
|
execute_or_queue_command(command, &block)
|
|
@@ -210,17 +248,32 @@ module Google
|
|
|
210
248
|
# delete response, wait for that period before attempting a delete again.
|
|
211
249
|
# @param [String] name
|
|
212
250
|
# Required. The name of the `RegionalInventory` resource to delete. Format: `
|
|
213
|
-
# accounts/`account`/products/`product`/regionalInventories/`region``
|
|
214
|
-
#
|
|
215
|
-
#
|
|
216
|
-
#
|
|
217
|
-
#
|
|
218
|
-
#
|
|
219
|
-
#
|
|
220
|
-
#
|
|
221
|
-
#
|
|
222
|
-
#
|
|
223
|
-
#
|
|
251
|
+
# accounts/`account`/products/`product`/regionalInventories/`region`` The ``
|
|
252
|
+
# product`` segment is a unique identifier for the product. This identifier must
|
|
253
|
+
# be unique within a merchant account and generally follows the structure: `
|
|
254
|
+
# content_language~feed_label~offer_id`. Example: `en~US~sku123` For legacy
|
|
255
|
+
# local products, the structure is: `local~content_language~feed_label~offer_id`.
|
|
256
|
+
# Example: `local~en~US~sku123` The format of the ``product`` segment in the
|
|
257
|
+
# URL is automatically detected by the server, supporting two options: 1. **
|
|
258
|
+
# Encoded Format**: The ``product`` segment is an unpadded base64url encoded
|
|
259
|
+
# string (RFC 4648 Section 5). The decoded string must result in the `
|
|
260
|
+
# content_language~feed_label~offer_id` structure. This encoding MUST be used if
|
|
261
|
+
# any part of the product identifier (like `offer_id`) contains characters such
|
|
262
|
+
# as `/`, `%`, or `~`. * Example: To represent the product ID `en~US~sku/123`
|
|
263
|
+
# for `region` "region123", the ``product`` segment must be the base64url
|
|
264
|
+
# encoding of this string, which is `ZW5-VVMtc2t1LzEyMw`. The full resource name
|
|
265
|
+
# for the regional inventory would be `accounts/123/products/ZW5-VVMtc2t1LzEyMw/
|
|
266
|
+
# regionalInventories/region123`. 2. **Plain Format**: The ``product`` segment
|
|
267
|
+
# is the tilde-separated string `content_language~feed_label~offer_id`. This
|
|
268
|
+
# format is suitable only when `content_language`, `feed_label`, and `offer_id`
|
|
269
|
+
# do not contain URL-problematic characters like `/`, `%`, or `~`. We recommend
|
|
270
|
+
# using the **Encoded Format** for all product IDs to ensure correct parsing,
|
|
271
|
+
# especially those containing special characters. The presence of tilde (`~`)
|
|
272
|
+
# characters in the ``product`` segment is used to differentiate between the two
|
|
273
|
+
# formats. Note: For calls to the v1beta version, the plain format for the
|
|
274
|
+
# product segment is `channel~content_language~feed_label~offer_id`. For example,
|
|
275
|
+
# the full resource name for a regional inventory in `region` "region123" would
|
|
276
|
+
# be: `accounts/123/products/online~en~US~sku123/regionalInventories/region123`.
|
|
224
277
|
# @param [String] fields
|
|
225
278
|
# Selector specifying which fields to include in a partial response.
|
|
226
279
|
# @param [String] quota_user
|
|
@@ -238,12 +291,11 @@ module Google
|
|
|
238
291
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
239
292
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
240
293
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
241
|
-
def delete_account_product_regional_inventory(name,
|
|
294
|
+
def delete_account_product_regional_inventory(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
242
295
|
command = make_simple_command(:delete, 'inventories/v1beta/{+name}', options)
|
|
243
296
|
command.response_representation = Google::Apis::MerchantapiInventoriesV1beta::Empty::Representation
|
|
244
297
|
command.response_class = Google::Apis::MerchantapiInventoriesV1beta::Empty
|
|
245
298
|
command.params['name'] = name unless name.nil?
|
|
246
|
-
command.query['productIdBase64UrlEncoded'] = product_id_base64_url_encoded unless product_id_base64_url_encoded.nil?
|
|
247
299
|
command.query['fields'] = fields unless fields.nil?
|
|
248
300
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
249
301
|
execute_or_queue_command(command, &block)
|
|
@@ -255,18 +307,31 @@ module Google
|
|
|
255
307
|
# new or updated `RegionalInventory` resource to appear in products.
|
|
256
308
|
# @param [String] parent
|
|
257
309
|
# Required. The account and product where this inventory will be inserted.
|
|
258
|
-
# Format: `accounts/`account`/products/`product``
|
|
310
|
+
# Format: `accounts/`account`/products/`product`` The ``product`` segment is a
|
|
311
|
+
# unique identifier for the product. This identifier must be unique within a
|
|
312
|
+
# merchant account and generally follows the structure: `content_language~
|
|
313
|
+
# feed_label~offer_id`. Example: `en~US~sku123` For legacy local products, the
|
|
314
|
+
# structure is: `local~content_language~feed_label~offer_id`. Example: `local~en~
|
|
315
|
+
# US~sku123` The format of the ``product`` segment in the URL is automatically
|
|
316
|
+
# detected by the server, supporting two options: 1. **Encoded Format**: The ``
|
|
317
|
+
# product`` segment is an unpadded base64url encoded string (RFC 4648 Section 5).
|
|
318
|
+
# The decoded string must result in the `content_language~feed_label~offer_id`
|
|
319
|
+
# structure. This encoding MUST be used if any part of the product identifier (
|
|
320
|
+
# like `offer_id`) contains characters such as `/`, `%`, or `~`. * Example: To
|
|
321
|
+
# represent the product ID `en~US~sku/123`, the ``product`` segment must be the
|
|
322
|
+
# base64url encoding of this string, which is `ZW5-VVMtc2t1LzEyMw`. The full
|
|
323
|
+
# resource name for the product would be `accounts/123/products/ZW5-
|
|
324
|
+
# VVMtc2t1LzEyMw`. 2. **Plain Format**: The ``product`` segment is the tilde-
|
|
325
|
+
# separated string `content_language~feed_label~offer_id`. This format is
|
|
326
|
+
# suitable only when `content_language`, `feed_label`, and `offer_id` do not
|
|
327
|
+
# contain URL-problematic characters like `/`, `%`, or `~`. We recommend using
|
|
328
|
+
# the **Encoded Format** for all product IDs to ensure correct parsing,
|
|
329
|
+
# especially those containing special characters. The presence of tilde (`~`)
|
|
330
|
+
# characters in the ``product`` segment is used to differentiate between the two
|
|
331
|
+
# formats. Note: For calls to the v1beta version, the plain format is `channel~
|
|
332
|
+
# content_language~feed_label~offer_id`, for example: `accounts/123/products/
|
|
333
|
+
# online~en~US~sku123`.
|
|
259
334
|
# @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.
|
|
270
335
|
# @param [String] fields
|
|
271
336
|
# Selector specifying which fields to include in a partial response.
|
|
272
337
|
# @param [String] quota_user
|
|
@@ -284,14 +349,13 @@ module Google
|
|
|
284
349
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
285
350
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
286
351
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
287
|
-
def insert_account_product_regional_inventory(parent, regional_inventory_object = nil,
|
|
352
|
+
def insert_account_product_regional_inventory(parent, regional_inventory_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
288
353
|
command = make_simple_command(:post, 'inventories/v1beta/{+parent}/regionalInventories:insert', options)
|
|
289
354
|
command.request_representation = Google::Apis::MerchantapiInventoriesV1beta::RegionalInventory::Representation
|
|
290
355
|
command.request_object = regional_inventory_object
|
|
291
356
|
command.response_representation = Google::Apis::MerchantapiInventoriesV1beta::RegionalInventory::Representation
|
|
292
357
|
command.response_class = Google::Apis::MerchantapiInventoriesV1beta::RegionalInventory
|
|
293
358
|
command.params['parent'] = parent unless parent.nil?
|
|
294
|
-
command.query['productIdBase64UrlEncoded'] = product_id_base64_url_encoded unless product_id_base64_url_encoded.nil?
|
|
295
359
|
command.query['fields'] = fields unless fields.nil?
|
|
296
360
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
297
361
|
execute_or_queue_command(command, &block)
|
|
@@ -304,7 +368,30 @@ module Google
|
|
|
304
368
|
# given account.
|
|
305
369
|
# @param [String] parent
|
|
306
370
|
# Required. The `name` of the parent product to list `RegionalInventory`
|
|
307
|
-
# resources for. Format: `accounts/`account`/products/`product``
|
|
371
|
+
# resources for. Format: `accounts/`account`/products/`product`` The ``product``
|
|
372
|
+
# segment is a unique identifier for the product. This identifier must be unique
|
|
373
|
+
# within a merchant account and generally follows the structure: `
|
|
374
|
+
# content_language~feed_label~offer_id`. Example: `en~US~sku123` For legacy
|
|
375
|
+
# local products, the structure is: `local~content_language~feed_label~offer_id`.
|
|
376
|
+
# Example: `local~en~US~sku123` The format of the ``product`` segment in the
|
|
377
|
+
# URL is automatically detected by the server, supporting two options: 1. **
|
|
378
|
+
# Encoded Format**: The ``product`` segment is an unpadded base64url encoded
|
|
379
|
+
# string (RFC 4648 Section 5). The decoded string must result in the `
|
|
380
|
+
# content_language~feed_label~offer_id` structure. This encoding MUST be used if
|
|
381
|
+
# any part of the product identifier (like `offer_id`) contains characters such
|
|
382
|
+
# as `/`, `%`, or `~`. * Example: To represent the product ID `en~US~sku/123`,
|
|
383
|
+
# the ``product`` segment must be the base64url encoding of this string, which
|
|
384
|
+
# is `ZW5-VVMtc2t1LzEyMw`. The full resource name for the product would be `
|
|
385
|
+
# accounts/123/products/ZW5-VVMtc2t1LzEyMw`. 2. **Plain Format**: The ``product``
|
|
386
|
+
# segment is the tilde-separated string `content_language~feed_label~offer_id`.
|
|
387
|
+
# This format is suitable only when `content_language`, `feed_label`, and `
|
|
388
|
+
# offer_id` do not contain URL-problematic characters like `/`, `%`, or `~`. We
|
|
389
|
+
# recommend using the **Encoded Format** for all product IDs to ensure correct
|
|
390
|
+
# parsing, especially those containing special characters. The presence of tilde
|
|
391
|
+
# (`~`) characters in the ``product`` segment is used to differentiate between
|
|
392
|
+
# the two formats. Note: For calls to the v1beta version, the plain format is `
|
|
393
|
+
# channel~content_language~feed_label~offer_id`, for example: `accounts/123/
|
|
394
|
+
# products/online~en~US~sku123`.
|
|
308
395
|
# @param [Fixnum] page_size
|
|
309
396
|
# The maximum number of `RegionalInventory` resources for the given product to
|
|
310
397
|
# return. The service returns fewer than this value if the number of inventories
|
|
@@ -317,16 +404,6 @@ module Google
|
|
|
317
404
|
# parameters provided to `ListRegionalInventories` must match the call that
|
|
318
405
|
# provided the page token. The token returned as nextPageToken in the response
|
|
319
406
|
# 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.
|
|
330
407
|
# @param [String] fields
|
|
331
408
|
# Selector specifying which fields to include in a partial response.
|
|
332
409
|
# @param [String] quota_user
|
|
@@ -344,14 +421,13 @@ module Google
|
|
|
344
421
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
345
422
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
346
423
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
347
|
-
def list_account_product_regional_inventories(parent, page_size: nil, page_token: nil,
|
|
424
|
+
def list_account_product_regional_inventories(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
348
425
|
command = make_simple_command(:get, 'inventories/v1beta/{+parent}/regionalInventories', options)
|
|
349
426
|
command.response_representation = Google::Apis::MerchantapiInventoriesV1beta::ListRegionalInventoriesResponse::Representation
|
|
350
427
|
command.response_class = Google::Apis::MerchantapiInventoriesV1beta::ListRegionalInventoriesResponse
|
|
351
428
|
command.params['parent'] = parent unless parent.nil?
|
|
352
429
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
353
430
|
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?
|
|
355
431
|
command.query['fields'] = fields unless fields.nil?
|
|
356
432
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
357
433
|
execute_or_queue_command(command, &block)
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-apis-merchantapi_inventories_v1beta
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.11.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -57,7 +57,7 @@ licenses:
|
|
|
57
57
|
metadata:
|
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-merchantapi_inventories_v1beta/CHANGELOG.md
|
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-merchantapi_inventories_v1beta/v0.
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-merchantapi_inventories_v1beta/v0.11.0
|
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-merchantapi_inventories_v1beta
|
|
62
62
|
rdoc_options: []
|
|
63
63
|
require_paths:
|