google-apis-retail_v2alpha 0.19.0 → 0.20.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81b33fcc38ddd550c3692293c10d9414f0cc3300ae70e825bf0f8da79cfdad95
|
4
|
+
data.tar.gz: c2d1dc89671d11118cf25e8595a6e70ea7dc3ffd4770ec28c723d2cd2e6bac82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5cb84361796d3c4fcca698eea982de98929d9750d18f220d4d7ab8a15c41966c3052636dfc0dae02e3716373aa222a712a85ed3373e2878cb6cc253c95afee7d
|
7
|
+
data.tar.gz: 001feb988f31d678c1b4732fd7200bf327e3254286bfd1882c27b89d7c447f0de664653c524a302aea8cfd7f5859f56fd20ebd1c341e847914320f1f90786948
|
data/CHANGELOG.md
CHANGED
@@ -657,7 +657,7 @@ module Google
|
|
657
657
|
# or the region IDs for "same-day-delivery" to be added for this type. Duplicate
|
658
658
|
# IDs will be automatically ignored. At least 1 value is required, and a maximum
|
659
659
|
# of 2000 values are allowed. Each value must be a string with a length limit of
|
660
|
-
# 10 characters, matching the pattern [a-zA-Z0-9_-]
|
660
|
+
# 10 characters, matching the pattern `[a-zA-Z0-9_-]+`, such as "store1" or "
|
661
661
|
# REGION-2". Otherwise, an INVALID_ARGUMENT error is returned. If the total
|
662
662
|
# number of place IDs exceeds 2000 for this type after adding, then the update
|
663
663
|
# will be rejected.
|
@@ -703,6 +703,86 @@ module Google
|
|
703
703
|
end
|
704
704
|
end
|
705
705
|
|
706
|
+
# Metadata related to the progress of the AddLocalInventories operation.
|
707
|
+
# Currently empty because there is no meaningful metadata populated from the
|
708
|
+
# AddLocalInventories method.
|
709
|
+
class GoogleCloudRetailV2alphaAddLocalInventoriesMetadata
|
710
|
+
include Google::Apis::Core::Hashable
|
711
|
+
|
712
|
+
def initialize(**args)
|
713
|
+
update!(**args)
|
714
|
+
end
|
715
|
+
|
716
|
+
# Update properties of this object
|
717
|
+
def update!(**args)
|
718
|
+
end
|
719
|
+
end
|
720
|
+
|
721
|
+
# Request message for AddLocalInventories method.
|
722
|
+
class GoogleCloudRetailV2alphaAddLocalInventoriesRequest
|
723
|
+
include Google::Apis::Core::Hashable
|
724
|
+
|
725
|
+
# Indicates which inventory fields in the provided list of LocalInventory to
|
726
|
+
# update. The field is updated to the provided value. If a field is set while
|
727
|
+
# the place does not have a previous local inventory, the local inventory at
|
728
|
+
# that store is created. If a field is set while the value of that field is not
|
729
|
+
# provided, the original field value, if it exists, is deleted. If the mask is
|
730
|
+
# not set or set with empty paths, all inventory fields will be updated. If an
|
731
|
+
# unsupported or unknown field is provided, an INVALID_ARGUMENT error is
|
732
|
+
# returned and the entire update will be ignored.
|
733
|
+
# Corresponds to the JSON property `addMask`
|
734
|
+
# @return [String]
|
735
|
+
attr_accessor :add_mask
|
736
|
+
|
737
|
+
# The time when the inventory updates are issued. Used to prevent out-of-order
|
738
|
+
# updates on local inventory fields. If not provided, the internal system time
|
739
|
+
# will be used.
|
740
|
+
# Corresponds to the JSON property `addTime`
|
741
|
+
# @return [String]
|
742
|
+
attr_accessor :add_time
|
743
|
+
|
744
|
+
# If set to true, and the Product is not found, the local inventory will still
|
745
|
+
# be processed and retained for at most 1 day and processed once the Product is
|
746
|
+
# created. If set to false, an INVALID_ARGUMENT error is returned if the Product
|
747
|
+
# is not found.
|
748
|
+
# Corresponds to the JSON property `allowMissing`
|
749
|
+
# @return [Boolean]
|
750
|
+
attr_accessor :allow_missing
|
751
|
+
alias_method :allow_missing?, :allow_missing
|
752
|
+
|
753
|
+
# Required. A list of inventory information at difference places. Each place is
|
754
|
+
# identified by its place ID. At most 1000 inventories are allowed per request.
|
755
|
+
# Corresponds to the JSON property `localInventories`
|
756
|
+
# @return [Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaLocalInventory>]
|
757
|
+
attr_accessor :local_inventories
|
758
|
+
|
759
|
+
def initialize(**args)
|
760
|
+
update!(**args)
|
761
|
+
end
|
762
|
+
|
763
|
+
# Update properties of this object
|
764
|
+
def update!(**args)
|
765
|
+
@add_mask = args[:add_mask] if args.key?(:add_mask)
|
766
|
+
@add_time = args[:add_time] if args.key?(:add_time)
|
767
|
+
@allow_missing = args[:allow_missing] if args.key?(:allow_missing)
|
768
|
+
@local_inventories = args[:local_inventories] if args.key?(:local_inventories)
|
769
|
+
end
|
770
|
+
end
|
771
|
+
|
772
|
+
# Response of the AddLocalInventories API. Currently empty because there is no
|
773
|
+
# meaningful response populated from the AddLocalInventories method.
|
774
|
+
class GoogleCloudRetailV2alphaAddLocalInventoriesResponse
|
775
|
+
include Google::Apis::Core::Hashable
|
776
|
+
|
777
|
+
def initialize(**args)
|
778
|
+
update!(**args)
|
779
|
+
end
|
780
|
+
|
781
|
+
# Update properties of this object
|
782
|
+
def update!(**args)
|
783
|
+
end
|
784
|
+
end
|
785
|
+
|
706
786
|
# An intended audience of the Product for whom it's sold.
|
707
787
|
class GoogleCloudRetailV2alphaAudience
|
708
788
|
include Google::Apis::Core::Hashable
|
@@ -1190,7 +1270,7 @@ module Google
|
|
1190
1270
|
# The IDs for this type, such as the store IDs for FulfillmentInfo.type.pickup-
|
1191
1271
|
# in-store or the region IDs for FulfillmentInfo.type.same-day-delivery. A
|
1192
1272
|
# maximum of 3000 values are allowed. Each value must be a string with a length
|
1193
|
-
# limit of 30 characters, matching the pattern [a-zA-Z0-9_-]
|
1273
|
+
# limit of 30 characters, matching the pattern `[a-zA-Z0-9_-]+`, such as "store1"
|
1194
1274
|
# or "REGION-2". Otherwise, an INVALID_ARGUMENT error is returned.
|
1195
1275
|
# Corresponds to the JSON property `placeIds`
|
1196
1276
|
# @return [Array<String>]
|
@@ -1480,8 +1560,8 @@ module Google
|
|
1480
1560
|
|
1481
1561
|
# Unique identifier provided by client, within the ancestor dataset scope.
|
1482
1562
|
# Ensures idempotency and used for request deduplication. Server-generated if
|
1483
|
-
# unspecified. Up to 128 characters long and must match the pattern:
|
1484
|
-
# 9_]
|
1563
|
+
# unspecified. Up to 128 characters long and must match the pattern: `[a-zA-Z0-
|
1564
|
+
# 9_]+`. This is returned as Operation.name in ImportMetadata. Only supported
|
1485
1565
|
# when ImportProductsRequest.reconciliation_mode is set to `FULL`.
|
1486
1566
|
# Corresponds to the JSON property `requestId`
|
1487
1567
|
# @return [String]
|
@@ -1692,6 +1772,43 @@ module Google
|
|
1692
1772
|
end
|
1693
1773
|
end
|
1694
1774
|
|
1775
|
+
# The inventory information at a place (e.g. a store) identified by a place ID.
|
1776
|
+
class GoogleCloudRetailV2alphaLocalInventory
|
1777
|
+
include Google::Apis::Core::Hashable
|
1778
|
+
|
1779
|
+
# Additional local inventory attributes, for example, store name, promotion tags,
|
1780
|
+
# etc. * At most 5 values are allowed. Otherwise, an INVALID_ARGUMENT error is
|
1781
|
+
# returned. * The key must be a UTF-8 encoded string with a length limit of 10
|
1782
|
+
# characters. * The key must match the pattern: `a-zA-Z0-9*`. For example,
|
1783
|
+
# key0LikeThis or KEY_1_LIKE_THIS. * The attribute values must be of the same
|
1784
|
+
# type (text or number). * The max number of values per attribute is 10. * For
|
1785
|
+
# text values, the length limit is 10 UTF-8 characters.
|
1786
|
+
# Corresponds to the JSON property `attributes`
|
1787
|
+
# @return [Hash<String,Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCustomAttribute>]
|
1788
|
+
attr_accessor :attributes
|
1789
|
+
|
1790
|
+
# The place ID for the current set of inventory information.
|
1791
|
+
# Corresponds to the JSON property `placeId`
|
1792
|
+
# @return [String]
|
1793
|
+
attr_accessor :place_id
|
1794
|
+
|
1795
|
+
# The price information of a Product.
|
1796
|
+
# Corresponds to the JSON property `priceInfo`
|
1797
|
+
# @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPriceInfo]
|
1798
|
+
attr_accessor :price_info
|
1799
|
+
|
1800
|
+
def initialize(**args)
|
1801
|
+
update!(**args)
|
1802
|
+
end
|
1803
|
+
|
1804
|
+
# Update properties of this object
|
1805
|
+
def update!(**args)
|
1806
|
+
@attributes = args[:attributes] if args.key?(:attributes)
|
1807
|
+
@place_id = args[:place_id] if args.key?(:place_id)
|
1808
|
+
@price_info = args[:price_info] if args.key?(:price_info)
|
1809
|
+
end
|
1810
|
+
end
|
1811
|
+
|
1695
1812
|
# Represents a link between a Merchant Center account and a branch. Once a link
|
1696
1813
|
# is established, products from the linked merchant center account will be
|
1697
1814
|
# streamed to the linked branch.
|
@@ -2042,7 +2159,7 @@ module Google
|
|
2042
2159
|
# :[8.1, 6.4]` ``. This field needs to pass all below criteria, otherwise an
|
2043
2160
|
# INVALID_ARGUMENT error is returned: * Max entries count: 200. * The key must
|
2044
2161
|
# be a UTF-8 encoded string with a length limit of 128 characters. * For
|
2045
|
-
# indexable attribute, the key must match the pattern: a-zA-Z0-9
|
2162
|
+
# indexable attribute, the key must match the pattern: `a-zA-Z0-9*`. For example,
|
2046
2163
|
# key0LikeThis or KEY_1_LIKE_THIS.
|
2047
2164
|
# Corresponds to the JSON property `attributes`
|
2048
2165
|
# @return [Hash<String,Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCustomAttribute>]
|
@@ -2515,8 +2632,8 @@ module Google
|
|
2515
2632
|
include Google::Apis::Core::Hashable
|
2516
2633
|
|
2517
2634
|
# ID of the promotion. For example, "free gift". The value value must be a UTF-8
|
2518
|
-
# encoded string with a length limit of 128 characters, and match the pattern:
|
2519
|
-
# zA-Z
|
2635
|
+
# encoded string with a length limit of 128 characters, and match the pattern: `
|
2636
|
+
# a-zA-Z*`. For example, id0LikeThis or ID_1_LIKE_THIS. Otherwise, an
|
2520
2637
|
# INVALID_ARGUMENT error is returned. Google Merchant Center property [promotion]
|
2521
2638
|
# (https://support.google.com/merchants/answer/7050148).
|
2522
2639
|
# Corresponds to the JSON property `promotionId`
|
@@ -2777,7 +2894,7 @@ module Google
|
|
2777
2894
|
# or the region IDs for "same-day-delivery", to be removed for this type. At
|
2778
2895
|
# least 1 value is required, and a maximum of 2000 values are allowed. Each
|
2779
2896
|
# value must be a string with a length limit of 10 characters, matching the
|
2780
|
-
# pattern [a-zA-Z0-9_-]
|
2897
|
+
# pattern `[a-zA-Z0-9_-]+`, such as "store1" or "REGION-2". Otherwise, an
|
2781
2898
|
# INVALID_ARGUMENT error is returned.
|
2782
2899
|
# Corresponds to the JSON property `placeIds`
|
2783
2900
|
# @return [Array<String>]
|
@@ -2828,6 +2945,73 @@ module Google
|
|
2828
2945
|
end
|
2829
2946
|
end
|
2830
2947
|
|
2948
|
+
# Metadata related to the progress of the RemoveLocalInventories operation.
|
2949
|
+
# Currently empty because there is no meaningful metadata populated from the
|
2950
|
+
# RemoveLocalInventories method.
|
2951
|
+
class GoogleCloudRetailV2alphaRemoveLocalInventoriesMetadata
|
2952
|
+
include Google::Apis::Core::Hashable
|
2953
|
+
|
2954
|
+
def initialize(**args)
|
2955
|
+
update!(**args)
|
2956
|
+
end
|
2957
|
+
|
2958
|
+
# Update properties of this object
|
2959
|
+
def update!(**args)
|
2960
|
+
end
|
2961
|
+
end
|
2962
|
+
|
2963
|
+
# Request message for RemoveLocalInventories method.
|
2964
|
+
class GoogleCloudRetailV2alphaRemoveLocalInventoriesRequest
|
2965
|
+
include Google::Apis::Core::Hashable
|
2966
|
+
|
2967
|
+
# If set to true, and the Product is not found, the local inventory removal
|
2968
|
+
# request will still be processed and retained for at most 1 day and processed
|
2969
|
+
# once the Product is created. If set to false, a NOT_FOUND error is returned if
|
2970
|
+
# the Product is not found.
|
2971
|
+
# Corresponds to the JSON property `allowMissing`
|
2972
|
+
# @return [Boolean]
|
2973
|
+
attr_accessor :allow_missing
|
2974
|
+
alias_method :allow_missing?, :allow_missing
|
2975
|
+
|
2976
|
+
# Required. A list of place IDs to have their inventory deleted. At most 1000
|
2977
|
+
# place IDs are allowed per request.
|
2978
|
+
# Corresponds to the JSON property `placeIds`
|
2979
|
+
# @return [Array<String>]
|
2980
|
+
attr_accessor :place_ids
|
2981
|
+
|
2982
|
+
# The time when the inventory deletions are issued. Used to prevent out-of-order
|
2983
|
+
# updates and deletions on local inventory fields. If not provided, the internal
|
2984
|
+
# system time will be used.
|
2985
|
+
# Corresponds to the JSON property `removeTime`
|
2986
|
+
# @return [String]
|
2987
|
+
attr_accessor :remove_time
|
2988
|
+
|
2989
|
+
def initialize(**args)
|
2990
|
+
update!(**args)
|
2991
|
+
end
|
2992
|
+
|
2993
|
+
# Update properties of this object
|
2994
|
+
def update!(**args)
|
2995
|
+
@allow_missing = args[:allow_missing] if args.key?(:allow_missing)
|
2996
|
+
@place_ids = args[:place_ids] if args.key?(:place_ids)
|
2997
|
+
@remove_time = args[:remove_time] if args.key?(:remove_time)
|
2998
|
+
end
|
2999
|
+
end
|
3000
|
+
|
3001
|
+
# Response of the RemoveLocalInventories API. Currently empty because there is
|
3002
|
+
# no meaningful response populated from the RemoveLocalInventories method.
|
3003
|
+
class GoogleCloudRetailV2alphaRemoveLocalInventoriesResponse
|
3004
|
+
include Google::Apis::Core::Hashable
|
3005
|
+
|
3006
|
+
def initialize(**args)
|
3007
|
+
update!(**args)
|
3008
|
+
end
|
3009
|
+
|
3010
|
+
# Update properties of this object
|
3011
|
+
def update!(**args)
|
3012
|
+
end
|
3013
|
+
end
|
3014
|
+
|
2831
3015
|
# Request message for SearchService.Search method.
|
2832
3016
|
class GoogleCloudRetailV2alphaSearchRequest
|
2833
3017
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module RetailV2alpha
|
18
18
|
# Version of the google-apis-retail_v2alpha gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.20.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20211028"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -178,6 +178,24 @@ module Google
|
|
178
178
|
include Google::Apis::Core::JsonObjectSupport
|
179
179
|
end
|
180
180
|
|
181
|
+
class GoogleCloudRetailV2alphaAddLocalInventoriesMetadata
|
182
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
183
|
+
|
184
|
+
include Google::Apis::Core::JsonObjectSupport
|
185
|
+
end
|
186
|
+
|
187
|
+
class GoogleCloudRetailV2alphaAddLocalInventoriesRequest
|
188
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
189
|
+
|
190
|
+
include Google::Apis::Core::JsonObjectSupport
|
191
|
+
end
|
192
|
+
|
193
|
+
class GoogleCloudRetailV2alphaAddLocalInventoriesResponse
|
194
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
195
|
+
|
196
|
+
include Google::Apis::Core::JsonObjectSupport
|
197
|
+
end
|
198
|
+
|
181
199
|
class GoogleCloudRetailV2alphaAudience
|
182
200
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
183
201
|
|
@@ -352,6 +370,12 @@ module Google
|
|
352
370
|
include Google::Apis::Core::JsonObjectSupport
|
353
371
|
end
|
354
372
|
|
373
|
+
class GoogleCloudRetailV2alphaLocalInventory
|
374
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
375
|
+
|
376
|
+
include Google::Apis::Core::JsonObjectSupport
|
377
|
+
end
|
378
|
+
|
355
379
|
class GoogleCloudRetailV2alphaMerchantCenterLink
|
356
380
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
357
381
|
|
@@ -496,6 +520,24 @@ module Google
|
|
496
520
|
include Google::Apis::Core::JsonObjectSupport
|
497
521
|
end
|
498
522
|
|
523
|
+
class GoogleCloudRetailV2alphaRemoveLocalInventoriesMetadata
|
524
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
525
|
+
|
526
|
+
include Google::Apis::Core::JsonObjectSupport
|
527
|
+
end
|
528
|
+
|
529
|
+
class GoogleCloudRetailV2alphaRemoveLocalInventoriesRequest
|
530
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
531
|
+
|
532
|
+
include Google::Apis::Core::JsonObjectSupport
|
533
|
+
end
|
534
|
+
|
535
|
+
class GoogleCloudRetailV2alphaRemoveLocalInventoriesResponse
|
536
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
537
|
+
|
538
|
+
include Google::Apis::Core::JsonObjectSupport
|
539
|
+
end
|
540
|
+
|
499
541
|
class GoogleCloudRetailV2alphaSearchRequest
|
500
542
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
501
543
|
|
@@ -982,6 +1024,29 @@ module Google
|
|
982
1024
|
end
|
983
1025
|
end
|
984
1026
|
|
1027
|
+
class GoogleCloudRetailV2alphaAddLocalInventoriesMetadata
|
1028
|
+
# @private
|
1029
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1030
|
+
end
|
1031
|
+
end
|
1032
|
+
|
1033
|
+
class GoogleCloudRetailV2alphaAddLocalInventoriesRequest
|
1034
|
+
# @private
|
1035
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1036
|
+
property :add_mask, as: 'addMask'
|
1037
|
+
property :add_time, as: 'addTime'
|
1038
|
+
property :allow_missing, as: 'allowMissing'
|
1039
|
+
collection :local_inventories, as: 'localInventories', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaLocalInventory, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaLocalInventory::Representation
|
1040
|
+
|
1041
|
+
end
|
1042
|
+
end
|
1043
|
+
|
1044
|
+
class GoogleCloudRetailV2alphaAddLocalInventoriesResponse
|
1045
|
+
# @private
|
1046
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1047
|
+
end
|
1048
|
+
end
|
1049
|
+
|
985
1050
|
class GoogleCloudRetailV2alphaAudience
|
986
1051
|
# @private
|
987
1052
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1257,6 +1322,17 @@ module Google
|
|
1257
1322
|
end
|
1258
1323
|
end
|
1259
1324
|
|
1325
|
+
class GoogleCloudRetailV2alphaLocalInventory
|
1326
|
+
# @private
|
1327
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1328
|
+
hash :attributes, as: 'attributes', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCustomAttribute, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCustomAttribute::Representation
|
1329
|
+
|
1330
|
+
property :place_id, as: 'placeId'
|
1331
|
+
property :price_info, as: 'priceInfo', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPriceInfo, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPriceInfo::Representation
|
1332
|
+
|
1333
|
+
end
|
1334
|
+
end
|
1335
|
+
|
1260
1336
|
class GoogleCloudRetailV2alphaMerchantCenterLink
|
1261
1337
|
# @private
|
1262
1338
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1506,6 +1582,27 @@ module Google
|
|
1506
1582
|
end
|
1507
1583
|
end
|
1508
1584
|
|
1585
|
+
class GoogleCloudRetailV2alphaRemoveLocalInventoriesMetadata
|
1586
|
+
# @private
|
1587
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1588
|
+
end
|
1589
|
+
end
|
1590
|
+
|
1591
|
+
class GoogleCloudRetailV2alphaRemoveLocalInventoriesRequest
|
1592
|
+
# @private
|
1593
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1594
|
+
property :allow_missing, as: 'allowMissing'
|
1595
|
+
collection :place_ids, as: 'placeIds'
|
1596
|
+
property :remove_time, as: 'removeTime'
|
1597
|
+
end
|
1598
|
+
end
|
1599
|
+
|
1600
|
+
class GoogleCloudRetailV2alphaRemoveLocalInventoriesResponse
|
1601
|
+
# @private
|
1602
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1603
|
+
end
|
1604
|
+
end
|
1605
|
+
|
1509
1606
|
class GoogleCloudRetailV2alphaSearchRequest
|
1510
1607
|
# @private
|
1511
1608
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -67,10 +67,10 @@ module Google
|
|
67
67
|
# cloud-retail, contact Cloud Retail support team first.
|
68
68
|
# @param [String] device_type
|
69
69
|
# The device type context for completion suggestions. It is useful to apply
|
70
|
-
# different suggestions on different device types, e.g. DESKTOP
|
71
|
-
# is empty, the suggestions are across all device types. Supported formats: *
|
72
|
-
# UNKNOWN_DEVICE_TYPE * DESKTOP * MOBILE * A customized string starts with
|
73
|
-
# OTHER_
|
70
|
+
# different suggestions on different device types, e.g. `DESKTOP`, `MOBILE`. If
|
71
|
+
# it is empty, the suggestions are across all device types. Supported formats: *
|
72
|
+
# `UNKNOWN_DEVICE_TYPE` * `DESKTOP` * `MOBILE` * A customized string starts with
|
73
|
+
# `OTHER_`, e.g. `OTHER_IPHONE`.
|
74
74
|
# @param [Array<String>, String] language_codes
|
75
75
|
# The list of languages of the query. This is the BCP-47 language code, such as "
|
76
76
|
# en-US" or "sr-Latn". For more information, see [Tags for Identifying Languages]
|
@@ -367,6 +367,52 @@ module Google
|
|
367
367
|
execute_or_queue_command(command, &block)
|
368
368
|
end
|
369
369
|
|
370
|
+
# Updates local inventory information for a Product at a list of places, while
|
371
|
+
# respecting the last update timestamps of each inventory field. This process is
|
372
|
+
# asynchronous and does not require the Product to exist before updating
|
373
|
+
# inventory information. If the request is valid, the update will be enqueued
|
374
|
+
# and processed downstream. As a consequence, when a response is returned,
|
375
|
+
# updates are not immediately manifested in the Product queried by GetProduct or
|
376
|
+
# ListProducts. Store inventory information can only be modified using this
|
377
|
+
# method. CreateProduct and UpdateProduct has no effect on local inventories.
|
378
|
+
# This feature is only available for users who have Retail Search enabled.
|
379
|
+
# Please submit a form [here](https://cloud.google.com/contact) to contact Cloud
|
380
|
+
# sales if you are interested in using Retail Search.
|
381
|
+
# @param [String] product
|
382
|
+
# Required. Full resource name of Product, such as `projects/*/locations/global/
|
383
|
+
# catalogs/default_catalog/branches/default_branch/products/some_product_id`. If
|
384
|
+
# the caller does not have permission to access the Product, regardless of
|
385
|
+
# whether or not it exists, a PERMISSION_DENIED error is returned.
|
386
|
+
# @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAddLocalInventoriesRequest] google_cloud_retail_v2alpha_add_local_inventories_request_object
|
387
|
+
# @param [String] fields
|
388
|
+
# Selector specifying which fields to include in a partial response.
|
389
|
+
# @param [String] quota_user
|
390
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
391
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
392
|
+
# @param [Google::Apis::RequestOptions] options
|
393
|
+
# Request-specific options
|
394
|
+
#
|
395
|
+
# @yield [result, err] Result & error if block supplied
|
396
|
+
# @yieldparam result [Google::Apis::RetailV2alpha::GoogleLongrunningOperation] parsed result object
|
397
|
+
# @yieldparam err [StandardError] error object if request failed
|
398
|
+
#
|
399
|
+
# @return [Google::Apis::RetailV2alpha::GoogleLongrunningOperation]
|
400
|
+
#
|
401
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
402
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
403
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
404
|
+
def add_project_location_catalog_branch_product_local_inventories(product, google_cloud_retail_v2alpha_add_local_inventories_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
405
|
+
command = make_simple_command(:post, 'v2alpha/{+product}:addLocalInventories', options)
|
406
|
+
command.request_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAddLocalInventoriesRequest::Representation
|
407
|
+
command.request_object = google_cloud_retail_v2alpha_add_local_inventories_request_object
|
408
|
+
command.response_representation = Google::Apis::RetailV2alpha::GoogleLongrunningOperation::Representation
|
409
|
+
command.response_class = Google::Apis::RetailV2alpha::GoogleLongrunningOperation
|
410
|
+
command.params['product'] = product unless product.nil?
|
411
|
+
command.query['fields'] = fields unless fields.nil?
|
412
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
413
|
+
execute_or_queue_command(command, &block)
|
414
|
+
end
|
415
|
+
|
370
416
|
# Creates a Product.
|
371
417
|
# @param [String] parent
|
372
418
|
# Required. The parent catalog resource name, such as `projects/*/locations/
|
@@ -679,6 +725,50 @@ module Google
|
|
679
725
|
execute_or_queue_command(command, &block)
|
680
726
|
end
|
681
727
|
|
728
|
+
# Remove local inventory information for a Product at a list of places at a
|
729
|
+
# removal timestamp. This process is asynchronous. If the request is valid, the
|
730
|
+
# removal will be enqueued and processed downstream. As a consequence, when a
|
731
|
+
# response is returned, removals are not immediately manifested in the Product
|
732
|
+
# queried by GetProduct or ListProducts. Store inventory information can only be
|
733
|
+
# removed using this method. CreateProduct and UpdateProduct has no effect on
|
734
|
+
# local inventories. This feature is only available for users who have Retail
|
735
|
+
# Search enabled. Please submit a form [here](https://cloud.google.com/contact)
|
736
|
+
# to contact Cloud sales if you are interested in using Retail Search.
|
737
|
+
# @param [String] product
|
738
|
+
# Required. Full resource name of Product, such as `projects/*/locations/global/
|
739
|
+
# catalogs/default_catalog/branches/default_branch/products/some_product_id`. If
|
740
|
+
# the caller does not have permission to access the Product, regardless of
|
741
|
+
# whether or not it exists, a PERMISSION_DENIED error is returned.
|
742
|
+
# @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRemoveLocalInventoriesRequest] google_cloud_retail_v2alpha_remove_local_inventories_request_object
|
743
|
+
# @param [String] fields
|
744
|
+
# Selector specifying which fields to include in a partial response.
|
745
|
+
# @param [String] quota_user
|
746
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
747
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
748
|
+
# @param [Google::Apis::RequestOptions] options
|
749
|
+
# Request-specific options
|
750
|
+
#
|
751
|
+
# @yield [result, err] Result & error if block supplied
|
752
|
+
# @yieldparam result [Google::Apis::RetailV2alpha::GoogleLongrunningOperation] parsed result object
|
753
|
+
# @yieldparam err [StandardError] error object if request failed
|
754
|
+
#
|
755
|
+
# @return [Google::Apis::RetailV2alpha::GoogleLongrunningOperation]
|
756
|
+
#
|
757
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
758
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
759
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
760
|
+
def remove_project_location_catalog_branch_product_local_inventories(product, google_cloud_retail_v2alpha_remove_local_inventories_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
761
|
+
command = make_simple_command(:post, 'v2alpha/{+product}:removeLocalInventories', options)
|
762
|
+
command.request_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRemoveLocalInventoriesRequest::Representation
|
763
|
+
command.request_object = google_cloud_retail_v2alpha_remove_local_inventories_request_object
|
764
|
+
command.response_representation = Google::Apis::RetailV2alpha::GoogleLongrunningOperation::Representation
|
765
|
+
command.response_class = Google::Apis::RetailV2alpha::GoogleLongrunningOperation
|
766
|
+
command.params['product'] = product unless product.nil?
|
767
|
+
command.query['fields'] = fields unless fields.nil?
|
768
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
769
|
+
execute_or_queue_command(command, &block)
|
770
|
+
end
|
771
|
+
|
682
772
|
# Updates inventory information for a Product while respecting the last update
|
683
773
|
# timestamps of each inventory field. This process is asynchronous and does not
|
684
774
|
# require the Product to exist before updating fulfillment information. If the
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-retail_v2alpha
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.20.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2alpha/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2alpha/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2alpha/v0.20.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2alpha
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|