google-shopping-merchant-inventories-v1beta 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- 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/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: 4519696167998a91ffe09fbc970b27994a10ba8ba328b8a15d2834b0c6ed4982
|
4
|
+
data.tar.gz: 4a9a0ac2124c4ad1ad8470186ace72a527960de35b1d7aa0ae64761d13758531
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4182a100932b1f2f60530939a3eec295004c82f0762cbfd21a5fe7afc310f3e6f06859babddcdce871ead20b504a5c8acd250cc229c9bd1ef62b22a5d3b5175b
|
7
|
+
data.tar.gz: ea3bc9223616b793d91ec4c95e365f98833d4f65523189427593d8949e95e15054c9e17d39b07e2fa722050b324dcfabbb8a18c6aaf03740763d9569905e59fe
|
@@ -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,
|
@@ -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.1
|
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-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|