google-shopping-merchant-inventories-v1beta 0.4.0 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -1
- data/lib/google/shopping/merchant/inventories/v1beta/local_inventory_service/client.rb +9 -3
- data/lib/google/shopping/merchant/inventories/v1beta/local_inventory_service/rest/client.rb +9 -3
- data/lib/google/shopping/merchant/inventories/v1beta/regional_inventory_service/client.rb +9 -3
- data/lib/google/shopping/merchant/inventories/v1beta/regional_inventory_service/rest/client.rb +9 -3
- data/lib/google/shopping/merchant/inventories/v1beta/version.rb +1 -1
- data/proto_docs/google/api/client.rb +31 -10
- data/proto_docs/google/api/resource.rb +7 -2
- data/proto_docs/google/shopping/merchant/inventories/v1beta/localinventory.rb +6 -6
- data/proto_docs/google/shopping/merchant/inventories/v1beta/regionalinventory.rb +3 -3
- data/proto_docs/google/shopping/type/types.rb +29 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa4dff904dd473f731f4c308e6f5959e90085e1300ce4841bf7ec0f09cd03ded
|
4
|
+
data.tar.gz: dcb8bd3949b88743c909e4bc43e70aa9472e32866e18531c04429277d7e582af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fffa9875b9374565aa2f1ee40bbcf6233ff4e62e5c21257aef2c31d9dcdbe55a887792307785c279846fe35030bd6dfadd0b22593bf93347d2d1b4a1084d817d
|
7
|
+
data.tar.gz: 16ac8f26b9b8d7ba952f2a499be9ea0f5468f3c0f7d722fd2d3ec23a4275acb29f740ec2e4535005f41f91a426c589885242a9b07e9351346c7082742b39c4c9
|
data/README.md
CHANGED
@@ -31,6 +31,9 @@ module Google
|
|
31
31
|
# Service to manage local inventory for products
|
32
32
|
#
|
33
33
|
class Client
|
34
|
+
# @private
|
35
|
+
API_VERSION = ""
|
36
|
+
|
34
37
|
# @private
|
35
38
|
DEFAULT_ENDPOINT_TEMPLATE = "merchantapi.$UNIVERSE_DOMAIN$"
|
36
39
|
|
@@ -246,10 +249,11 @@ module Google
|
|
246
249
|
# Customize the options with defaults
|
247
250
|
metadata = @config.rpcs.list_local_inventories.metadata.to_h
|
248
251
|
|
249
|
-
# Set x-goog-api-client
|
252
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
250
253
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
251
254
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
252
255
|
gapic_version: ::Google::Shopping::Merchant::Inventories::V1beta::VERSION
|
256
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
253
257
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
254
258
|
|
255
259
|
header_params = {}
|
@@ -345,10 +349,11 @@ module Google
|
|
345
349
|
# Customize the options with defaults
|
346
350
|
metadata = @config.rpcs.insert_local_inventory.metadata.to_h
|
347
351
|
|
348
|
-
# Set x-goog-api-client
|
352
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
349
353
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
350
354
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
351
355
|
gapic_version: ::Google::Shopping::Merchant::Inventories::V1beta::VERSION
|
356
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
352
357
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
353
358
|
|
354
359
|
header_params = {}
|
@@ -436,10 +441,11 @@ module Google
|
|
436
441
|
# Customize the options with defaults
|
437
442
|
metadata = @config.rpcs.delete_local_inventory.metadata.to_h
|
438
443
|
|
439
|
-
# Set x-goog-api-client
|
444
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
440
445
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
441
446
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
442
447
|
gapic_version: ::Google::Shopping::Merchant::Inventories::V1beta::VERSION
|
448
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
443
449
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
444
450
|
|
445
451
|
header_params = {}
|
@@ -33,6 +33,9 @@ module Google
|
|
33
33
|
# Service to manage local inventory for products
|
34
34
|
#
|
35
35
|
class Client
|
36
|
+
# @private
|
37
|
+
API_VERSION = ""
|
38
|
+
|
36
39
|
# @private
|
37
40
|
DEFAULT_ENDPOINT_TEMPLATE = "merchantapi.$UNIVERSE_DOMAIN$"
|
38
41
|
|
@@ -238,12 +241,13 @@ module Google
|
|
238
241
|
# Customize the options with defaults
|
239
242
|
call_metadata = @config.rpcs.list_local_inventories.metadata.to_h
|
240
243
|
|
241
|
-
# Set x-goog-api-client
|
244
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
242
245
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
243
246
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
244
247
|
gapic_version: ::Google::Shopping::Merchant::Inventories::V1beta::VERSION,
|
245
248
|
transports_version_send: [:rest]
|
246
249
|
|
250
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
247
251
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
248
252
|
|
249
253
|
options.apply_defaults timeout: @config.rpcs.list_local_inventories.timeout,
|
@@ -330,12 +334,13 @@ module Google
|
|
330
334
|
# Customize the options with defaults
|
331
335
|
call_metadata = @config.rpcs.insert_local_inventory.metadata.to_h
|
332
336
|
|
333
|
-
# Set x-goog-api-client
|
337
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
334
338
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
335
339
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
336
340
|
gapic_version: ::Google::Shopping::Merchant::Inventories::V1beta::VERSION,
|
337
341
|
transports_version_send: [:rest]
|
338
342
|
|
343
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
339
344
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
340
345
|
|
341
346
|
options.apply_defaults timeout: @config.rpcs.insert_local_inventory.timeout,
|
@@ -414,12 +419,13 @@ module Google
|
|
414
419
|
# Customize the options with defaults
|
415
420
|
call_metadata = @config.rpcs.delete_local_inventory.metadata.to_h
|
416
421
|
|
417
|
-
# Set x-goog-api-client
|
422
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
418
423
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
419
424
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
420
425
|
gapic_version: ::Google::Shopping::Merchant::Inventories::V1beta::VERSION,
|
421
426
|
transports_version_send: [:rest]
|
422
427
|
|
428
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
423
429
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
424
430
|
|
425
431
|
options.apply_defaults timeout: @config.rpcs.delete_local_inventory.timeout,
|
@@ -32,6 +32,9 @@ module Google
|
|
32
32
|
# `regions` resource and API to manage regions definitions.
|
33
33
|
#
|
34
34
|
class Client
|
35
|
+
# @private
|
36
|
+
API_VERSION = ""
|
37
|
+
|
35
38
|
# @private
|
36
39
|
DEFAULT_ENDPOINT_TEMPLATE = "merchantapi.$UNIVERSE_DOMAIN$"
|
37
40
|
|
@@ -246,10 +249,11 @@ module Google
|
|
246
249
|
# Customize the options with defaults
|
247
250
|
metadata = @config.rpcs.list_regional_inventories.metadata.to_h
|
248
251
|
|
249
|
-
# Set x-goog-api-client
|
252
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
250
253
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
251
254
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
252
255
|
gapic_version: ::Google::Shopping::Merchant::Inventories::V1beta::VERSION
|
256
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
253
257
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
254
258
|
|
255
259
|
header_params = {}
|
@@ -345,10 +349,11 @@ module Google
|
|
345
349
|
# Customize the options with defaults
|
346
350
|
metadata = @config.rpcs.insert_regional_inventory.metadata.to_h
|
347
351
|
|
348
|
-
# Set x-goog-api-client
|
352
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
349
353
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
350
354
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
351
355
|
gapic_version: ::Google::Shopping::Merchant::Inventories::V1beta::VERSION
|
356
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
352
357
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
353
358
|
|
354
359
|
header_params = {}
|
@@ -436,10 +441,11 @@ module Google
|
|
436
441
|
# Customize the options with defaults
|
437
442
|
metadata = @config.rpcs.delete_regional_inventory.metadata.to_h
|
438
443
|
|
439
|
-
# Set x-goog-api-client
|
444
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
440
445
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
441
446
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
442
447
|
gapic_version: ::Google::Shopping::Merchant::Inventories::V1beta::VERSION
|
448
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
443
449
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
444
450
|
|
445
451
|
header_params = {}
|
data/lib/google/shopping/merchant/inventories/v1beta/regional_inventory_service/rest/client.rb
CHANGED
@@ -34,6 +34,9 @@ module Google
|
|
34
34
|
# `regions` resource and API to manage regions definitions.
|
35
35
|
#
|
36
36
|
class Client
|
37
|
+
# @private
|
38
|
+
API_VERSION = ""
|
39
|
+
|
37
40
|
# @private
|
38
41
|
DEFAULT_ENDPOINT_TEMPLATE = "merchantapi.$UNIVERSE_DOMAIN$"
|
39
42
|
|
@@ -238,12 +241,13 @@ module Google
|
|
238
241
|
# Customize the options with defaults
|
239
242
|
call_metadata = @config.rpcs.list_regional_inventories.metadata.to_h
|
240
243
|
|
241
|
-
# Set x-goog-api-client
|
244
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
242
245
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
243
246
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
244
247
|
gapic_version: ::Google::Shopping::Merchant::Inventories::V1beta::VERSION,
|
245
248
|
transports_version_send: [:rest]
|
246
249
|
|
250
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
247
251
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
248
252
|
|
249
253
|
options.apply_defaults timeout: @config.rpcs.list_regional_inventories.timeout,
|
@@ -330,12 +334,13 @@ module Google
|
|
330
334
|
# Customize the options with defaults
|
331
335
|
call_metadata = @config.rpcs.insert_regional_inventory.metadata.to_h
|
332
336
|
|
333
|
-
# Set x-goog-api-client
|
337
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
334
338
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
335
339
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
336
340
|
gapic_version: ::Google::Shopping::Merchant::Inventories::V1beta::VERSION,
|
337
341
|
transports_version_send: [:rest]
|
338
342
|
|
343
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
339
344
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
340
345
|
|
341
346
|
options.apply_defaults timeout: @config.rpcs.insert_regional_inventory.timeout,
|
@@ -414,12 +419,13 @@ module Google
|
|
414
419
|
# Customize the options with defaults
|
415
420
|
call_metadata = @config.rpcs.delete_regional_inventory.metadata.to_h
|
416
421
|
|
417
|
-
# Set x-goog-api-client
|
422
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
418
423
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
419
424
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
420
425
|
gapic_version: ::Google::Shopping::Merchant::Inventories::V1beta::VERSION,
|
421
426
|
transports_version_send: [:rest]
|
422
427
|
|
428
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
423
429
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
424
430
|
|
425
431
|
options.apply_defaults timeout: @config.rpcs.delete_regional_inventory.timeout,
|
@@ -196,9 +196,26 @@ module Google
|
|
196
196
|
# @!attribute [rw] common
|
197
197
|
# @return [::Google::Api::CommonLanguageSettings]
|
198
198
|
# Some settings.
|
199
|
+
# @!attribute [rw] experimental_features
|
200
|
+
# @return [::Google::Api::PythonSettings::ExperimentalFeatures]
|
201
|
+
# Experimental features to be included during client library generation.
|
199
202
|
class PythonSettings
|
200
203
|
include ::Google::Protobuf::MessageExts
|
201
204
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
205
|
+
|
206
|
+
# Experimental features to be included during client library generation.
|
207
|
+
# These fields will be deprecated once the feature graduates and is enabled
|
208
|
+
# by default.
|
209
|
+
# @!attribute [rw] rest_async_io_enabled
|
210
|
+
# @return [::Boolean]
|
211
|
+
# Enables generation of asynchronous REST clients if `rest` transport is
|
212
|
+
# enabled. By default, asynchronous REST clients will not be generated.
|
213
|
+
# This feature will be enabled by default 1 month after launching the
|
214
|
+
# feature in preview packages.
|
215
|
+
class ExperimentalFeatures
|
216
|
+
include ::Google::Protobuf::MessageExts
|
217
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
218
|
+
end
|
202
219
|
end
|
203
220
|
|
204
221
|
# Settings for Node client libraries.
|
@@ -290,6 +307,13 @@ module Google
|
|
290
307
|
# @return [::String]
|
291
308
|
# The fully qualified name of the method, for which the options below apply.
|
292
309
|
# This is used to find the method to apply the options.
|
310
|
+
#
|
311
|
+
# Example:
|
312
|
+
#
|
313
|
+
# publishing:
|
314
|
+
# method_settings:
|
315
|
+
# - selector: google.storage.control.v2.StorageControl.CreateFolder
|
316
|
+
# # method settings for CreateFolder...
|
293
317
|
# @!attribute [rw] long_running
|
294
318
|
# @return [::Google::Api::MethodSettings::LongRunning]
|
295
319
|
# Describes settings to use for long-running operations when generating
|
@@ -298,17 +322,14 @@ module Google
|
|
298
322
|
#
|
299
323
|
# Example of a YAML configuration::
|
300
324
|
#
|
301
|
-
#
|
302
|
-
#
|
325
|
+
# publishing:
|
326
|
+
# method_settings:
|
303
327
|
# - selector: google.cloud.speech.v2.Speech.BatchRecognize
|
304
328
|
# long_running:
|
305
|
-
# initial_poll_delay:
|
306
|
-
# seconds: 60 # 1 minute
|
329
|
+
# initial_poll_delay: 60s # 1 minute
|
307
330
|
# poll_delay_multiplier: 1.5
|
308
|
-
# max_poll_delay:
|
309
|
-
#
|
310
|
-
# total_poll_timeout:
|
311
|
-
# seconds: 54000 # 90 minutes
|
331
|
+
# max_poll_delay: 360s # 6 minutes
|
332
|
+
# total_poll_timeout: 54000s # 90 minutes
|
312
333
|
# @!attribute [rw] auto_populated_fields
|
313
334
|
# @return [::Array<::String>]
|
314
335
|
# List of top-level fields of the request message, that should be
|
@@ -317,8 +338,8 @@ module Google
|
|
317
338
|
#
|
318
339
|
# Example of a YAML configuration:
|
319
340
|
#
|
320
|
-
#
|
321
|
-
#
|
341
|
+
# publishing:
|
342
|
+
# method_settings:
|
322
343
|
# - selector: google.example.v1.ExampleService.CreateExample
|
323
344
|
# auto_populated_fields:
|
324
345
|
# - request_id
|
@@ -124,8 +124,13 @@ module Google
|
|
124
124
|
# @return [::String]
|
125
125
|
# The plural name used in the resource name and permission names, such as
|
126
126
|
# 'projects' for the resource name of 'projects/\\{project}' and the permission
|
127
|
-
# name of 'cloudresourcemanager.googleapis.com/projects.get'.
|
128
|
-
#
|
127
|
+
# name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception
|
128
|
+
# to this is for Nested Collections that have stuttering names, as defined
|
129
|
+
# in [AIP-122](https://google.aip.dev/122#nested-collections), where the
|
130
|
+
# collection ID in the resource name pattern does not necessarily directly
|
131
|
+
# match the `plural` value.
|
132
|
+
#
|
133
|
+
# It is the same concept of the `plural` field in k8s CRD spec
|
129
134
|
# https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
|
130
135
|
#
|
131
136
|
# Note: The plural form is required even for singleton resources. See
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# for a specific product at the store specified by
|
27
27
|
# {::Google::Shopping::Merchant::Inventories::V1beta::LocalInventory#store_code `storeCode`}.
|
28
28
|
# For a list of all accepted attribute values, see the [local product inventory
|
29
|
-
#
|
29
|
+
# data specification](https://support.google.com/merchants/answer/3061342).
|
30
30
|
# @!attribute [r] name
|
31
31
|
# @return [::String]
|
32
32
|
# Output only. The name of the `LocalInventory` resource.
|
@@ -40,7 +40,7 @@ module Google
|
|
40
40
|
# @return [::String]
|
41
41
|
# Required. Immutable. Store code (the store ID from your Business Profile)
|
42
42
|
# of the physical store the product is sold in. See the [Local product
|
43
|
-
# inventory
|
43
|
+
# inventory data
|
44
44
|
# specification](https://support.google.com/merchants/answer/3061342) for
|
45
45
|
# more information.
|
46
46
|
# @!attribute [rw] price
|
@@ -58,7 +58,7 @@ module Google
|
|
58
58
|
# @!attribute [rw] availability
|
59
59
|
# @return [::String]
|
60
60
|
# Availability of the product at this store.
|
61
|
-
# For accepted attribute values, see the [local product inventory
|
61
|
+
# For accepted attribute values, see the [local product inventory data
|
62
62
|
# specification](https://support.google.com/merchants/answer/3061342)
|
63
63
|
# @!attribute [rw] quantity
|
64
64
|
# @return [::Integer]
|
@@ -69,14 +69,14 @@ module Google
|
|
69
69
|
# Supported pickup method for this product. Unless the value is `"not
|
70
70
|
# supported"`, this field must be submitted together with
|
71
71
|
# `pickupSla`.
|
72
|
-
# For accepted attribute values, see the [local product inventory
|
72
|
+
# For accepted attribute values, see the [local product inventory data
|
73
73
|
# specification](https://support.google.com/merchants/answer/3061342)
|
74
74
|
# @!attribute [rw] pickup_sla
|
75
75
|
# @return [::String]
|
76
76
|
# Relative time period from the order date for an order for this product,
|
77
77
|
# from this store, to be ready for pickup. Must be submitted with
|
78
78
|
# `pickupMethod`.
|
79
|
-
# For accepted attribute values, see the [local product inventory
|
79
|
+
# For accepted attribute values, see the [local product inventory data
|
80
80
|
# specification](https://support.google.com/merchants/answer/3061342)
|
81
81
|
# @!attribute [rw] instore_product_location
|
82
82
|
# @return [::String]
|
@@ -84,7 +84,7 @@ module Google
|
|
84
84
|
# @!attribute [rw] custom_attributes
|
85
85
|
# @return [::Array<::Google::Shopping::Type::CustomAttribute>]
|
86
86
|
# A list of custom (merchant-provided) attributes. You can also use
|
87
|
-
# `CustomAttribute` to submit any attribute of the
|
87
|
+
# `CustomAttribute` to submit any attribute of the data specification in its
|
88
88
|
# generic form.
|
89
89
|
class LocalInventory
|
90
90
|
include ::Google::Protobuf::MessageExts
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# information like price and availability for a given product in a specific
|
27
27
|
# {::Google::Shopping::Merchant::Inventories::V1beta::RegionalInventory#region `region`}.
|
28
28
|
# For a list of all accepted attribute values, see the [regional product
|
29
|
-
# inventory
|
29
|
+
# inventory data
|
30
30
|
# specification](https://support.google.com/merchants/answer/9698880).
|
31
31
|
# @!attribute [r] name
|
32
32
|
# @return [::String]
|
@@ -58,12 +58,12 @@ module Google
|
|
58
58
|
# @!attribute [rw] availability
|
59
59
|
# @return [::String]
|
60
60
|
# Availability of the product in this region.
|
61
|
-
# For accepted attribute values, see the [regional product inventory
|
61
|
+
# For accepted attribute values, see the [regional product inventory data
|
62
62
|
# specification](https://support.google.com/merchants/answer/3061342)
|
63
63
|
# @!attribute [rw] custom_attributes
|
64
64
|
# @return [::Array<::Google::Shopping::Type::CustomAttribute>]
|
65
65
|
# A list of custom (merchant-provided) attributes. You can also use
|
66
|
-
# `CustomAttribute` to submit any attribute of the
|
66
|
+
# `CustomAttribute` to submit any attribute of the data specification in its
|
67
67
|
# generic form.
|
68
68
|
class RegionalInventory
|
69
69
|
include ::Google::Protobuf::MessageExts
|
@@ -20,14 +20,41 @@
|
|
20
20
|
module Google
|
21
21
|
module Shopping
|
22
22
|
module Type
|
23
|
+
# The weight represented as the value in string and the unit.
|
24
|
+
# @!attribute [rw] amount_micros
|
25
|
+
# @return [::Integer]
|
26
|
+
# Required. The weight represented as a number in micros (1 million micros is
|
27
|
+
# an equivalent to one's currency standard unit, for example, 1 kg = 1000000
|
28
|
+
# micros).
|
29
|
+
# This field can also be set as infinity by setting to -1.
|
30
|
+
# This field only support -1 and positive value.
|
31
|
+
# @!attribute [rw] unit
|
32
|
+
# @return [::Google::Shopping::Type::Weight::WeightUnit]
|
33
|
+
# Required. The weight unit.
|
34
|
+
# Acceptable values are: kg and lb
|
35
|
+
class Weight
|
36
|
+
include ::Google::Protobuf::MessageExts
|
37
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
38
|
+
|
39
|
+
# The weight unit.
|
40
|
+
module WeightUnit
|
41
|
+
# unit unspecified
|
42
|
+
WEIGHT_UNIT_UNSPECIFIED = 0
|
43
|
+
|
44
|
+
# lb unit.
|
45
|
+
POUND = 1
|
46
|
+
|
47
|
+
# kg unit.
|
48
|
+
KILOGRAM = 2
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
23
52
|
# The price represented as a number and currency.
|
24
53
|
# @!attribute [rw] amount_micros
|
25
54
|
# @return [::Integer]
|
26
55
|
# The price represented as a number in micros (1 million micros is an
|
27
56
|
# equivalent to one's currency standard unit, for example, 1 USD = 1000000
|
28
57
|
# micros).
|
29
|
-
# This field can also be set as infinity by setting to -1.
|
30
|
-
# This field only support -1 and positive value.
|
31
58
|
# @!attribute [rw] currency_code
|
32
59
|
# @return [::String]
|
33
60
|
# The currency of the price using three-letter acronyms according to [ISO
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-shopping-merchant-inventories-v1beta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|