google-apis-retail_v2beta 0.33.0 → 0.34.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: 927f28b74740703f73d5b7f2b2b6d104a6da7c9227b1f383dfd49331c679f35c
4
- data.tar.gz: 5d672d37634e5af90d09ba14813436923ab5535159bb5e8e1bb407294d256bbd
3
+ metadata.gz: 793b2cf1d7201939c734535abba728b6fe9548a68c91b0e1ead3ec46b149fc24
4
+ data.tar.gz: 80c1a58f6f5a6fc3ac0e6251d191194bc32f5658a883a31858d235ae2c83a1c3
5
5
  SHA512:
6
- metadata.gz: 7cd7d2791d54ce7d5ef13c620d7ee4498232107e8a55c0912190b18b84f5898dd368f12c2fa6fcd2536b6b6b2546329f6a32497a7995d2e7b336edabf2ca0ff8
7
- data.tar.gz: a1158999331cb622b456921103fd53d9d306a087c8e0ba965123532744b5a4e689f8dae25e6a84fe91669fe1b50550a847778cd158c7ccc6348ef8330e520ecc
6
+ metadata.gz: 9d3dc4524f5fcac8007e0e6a397131807a1fdccb2a0e709f0158f7d9fd5e700642aeb883a055d5e52edc06bf00088137cfe36da1fa950be16e1672a21ce89d43
7
+ data.tar.gz: 3fe5693d31911b07e920fec858a517197286bdbcd36d8fddf5f523715dc1d066331a7cc1fe7f1419fe52a0dc425a721f21640a11bbecdd8cecb2e758ef6ff749
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-retail_v2beta
2
2
 
3
+ ### v0.34.0 (2022-03-31)
4
+
5
+ * Regenerated from discovery document revision 20220324
6
+
3
7
  ### v0.33.0 (2022-03-24)
4
8
 
5
9
  * Regenerated from discovery document revision 20220319
@@ -308,6 +308,35 @@ module Google
308
308
  end
309
309
  end
310
310
 
311
+ # Metadata related to the progress of the AddLocalInventories operation.
312
+ # Currently empty because there is no meaningful metadata populated from the
313
+ # AddLocalInventories method.
314
+ class GoogleCloudRetailV2AddLocalInventoriesMetadata
315
+ include Google::Apis::Core::Hashable
316
+
317
+ def initialize(**args)
318
+ update!(**args)
319
+ end
320
+
321
+ # Update properties of this object
322
+ def update!(**args)
323
+ end
324
+ end
325
+
326
+ # Response of the AddLocalInventories API. Currently empty because there is no
327
+ # meaningful response populated from the AddLocalInventories method.
328
+ class GoogleCloudRetailV2AddLocalInventoriesResponse
329
+ include Google::Apis::Core::Hashable
330
+
331
+ def initialize(**args)
332
+ update!(**args)
333
+ end
334
+
335
+ # Update properties of this object
336
+ def update!(**args)
337
+ end
338
+ end
339
+
311
340
  # Response of the ImportCompletionDataRequest. If the long running operation is
312
341
  # done, this message is returned by the google.longrunning.Operations.response
313
342
  # field if the operation is successful.
@@ -561,6 +590,35 @@ module Google
561
590
  end
562
591
  end
563
592
 
593
+ # Metadata related to the progress of the RemoveLocalInventories operation.
594
+ # Currently empty because there is no meaningful metadata populated from the
595
+ # RemoveLocalInventories method.
596
+ class GoogleCloudRetailV2RemoveLocalInventoriesMetadata
597
+ include Google::Apis::Core::Hashable
598
+
599
+ def initialize(**args)
600
+ update!(**args)
601
+ end
602
+
603
+ # Update properties of this object
604
+ def update!(**args)
605
+ end
606
+ end
607
+
608
+ # Response of the RemoveLocalInventories API. Currently empty because there is
609
+ # no meaningful response populated from the RemoveLocalInventories method.
610
+ class GoogleCloudRetailV2RemoveLocalInventoriesResponse
611
+ include Google::Apis::Core::Hashable
612
+
613
+ def initialize(**args)
614
+ update!(**args)
615
+ end
616
+
617
+ # Update properties of this object
618
+ def update!(**args)
619
+ end
620
+ end
621
+
564
622
  # Metadata related to the progress of the SetInventory operation. Currently
565
623
  # empty because there is no meaningful metadata populated from the SetInventory
566
624
  # method.
@@ -1308,6 +1366,86 @@ module Google
1308
1366
  end
1309
1367
  end
1310
1368
 
1369
+ # Metadata related to the progress of the AddLocalInventories operation.
1370
+ # Currently empty because there is no meaningful metadata populated from the
1371
+ # AddLocalInventories method.
1372
+ class GoogleCloudRetailV2betaAddLocalInventoriesMetadata
1373
+ include Google::Apis::Core::Hashable
1374
+
1375
+ def initialize(**args)
1376
+ update!(**args)
1377
+ end
1378
+
1379
+ # Update properties of this object
1380
+ def update!(**args)
1381
+ end
1382
+ end
1383
+
1384
+ # Request message for AddLocalInventories method.
1385
+ class GoogleCloudRetailV2betaAddLocalInventoriesRequest
1386
+ include Google::Apis::Core::Hashable
1387
+
1388
+ # Indicates which inventory fields in the provided list of LocalInventory to
1389
+ # update. The field is updated to the provided value. If a field is set while
1390
+ # the place does not have a previous local inventory, the local inventory at
1391
+ # that store is created. If a field is set while the value of that field is not
1392
+ # provided, the original field value, if it exists, is deleted. If the mask is
1393
+ # not set or set with empty paths, all inventory fields will be updated. If an
1394
+ # unsupported or unknown field is provided, an INVALID_ARGUMENT error is
1395
+ # returned and the entire update will be ignored.
1396
+ # Corresponds to the JSON property `addMask`
1397
+ # @return [String]
1398
+ attr_accessor :add_mask
1399
+
1400
+ # The time when the inventory updates are issued. Used to prevent out-of-order
1401
+ # updates on local inventory fields. If not provided, the internal system time
1402
+ # will be used.
1403
+ # Corresponds to the JSON property `addTime`
1404
+ # @return [String]
1405
+ attr_accessor :add_time
1406
+
1407
+ # If set to true, and the Product is not found, the local inventory will still
1408
+ # be processed and retained for at most 1 day and processed once the Product is
1409
+ # created. If set to false, a NOT_FOUND error is returned if the Product is not
1410
+ # found.
1411
+ # Corresponds to the JSON property `allowMissing`
1412
+ # @return [Boolean]
1413
+ attr_accessor :allow_missing
1414
+ alias_method :allow_missing?, :allow_missing
1415
+
1416
+ # Required. A list of inventory information at difference places. Each place is
1417
+ # identified by its place ID. At most 3000 inventories are allowed per request.
1418
+ # Corresponds to the JSON property `localInventories`
1419
+ # @return [Array<Google::Apis::RetailV2beta::GoogleCloudRetailV2betaLocalInventory>]
1420
+ attr_accessor :local_inventories
1421
+
1422
+ def initialize(**args)
1423
+ update!(**args)
1424
+ end
1425
+
1426
+ # Update properties of this object
1427
+ def update!(**args)
1428
+ @add_mask = args[:add_mask] if args.key?(:add_mask)
1429
+ @add_time = args[:add_time] if args.key?(:add_time)
1430
+ @allow_missing = args[:allow_missing] if args.key?(:allow_missing)
1431
+ @local_inventories = args[:local_inventories] if args.key?(:local_inventories)
1432
+ end
1433
+ end
1434
+
1435
+ # Response of the AddLocalInventories API. Currently empty because there is no
1436
+ # meaningful response populated from the AddLocalInventories method.
1437
+ class GoogleCloudRetailV2betaAddLocalInventoriesResponse
1438
+ include Google::Apis::Core::Hashable
1439
+
1440
+ def initialize(**args)
1441
+ update!(**args)
1442
+ end
1443
+
1444
+ # Update properties of this object
1445
+ def update!(**args)
1446
+ end
1447
+ end
1448
+
1311
1449
  # Catalog level attribute config.
1312
1450
  class GoogleCloudRetailV2betaAttributesConfig
1313
1451
  include Google::Apis::Core::Hashable
@@ -2707,6 +2845,59 @@ module Google
2707
2845
  end
2708
2846
  end
2709
2847
 
2848
+ # The inventory information at a place (e.g. a store) identified by a place ID.
2849
+ class GoogleCloudRetailV2betaLocalInventory
2850
+ include Google::Apis::Core::Hashable
2851
+
2852
+ # Additional local inventory attributes, for example, store name, promotion tags,
2853
+ # etc. This field needs to pass all below criteria, otherwise an
2854
+ # INVALID_ARGUMENT error is returned: * At most 30 attributes are allowed. * The
2855
+ # key must be a UTF-8 encoded string with a length limit of 32 characters. * The
2856
+ # key must match the pattern: `a-zA-Z0-9*`. For example, key0LikeThis or
2857
+ # KEY_1_LIKE_THIS. * The attribute values must be of the same type (text or
2858
+ # number). * Only 1 value is allowed for each attribute. * For text values, the
2859
+ # length limit is 256 UTF-8 characters. * The attribute does not support search.
2860
+ # The `searchable` field should be unset or set to false. * The max summed total
2861
+ # bytes of custom attribute keys and values per product is 5MiB.
2862
+ # Corresponds to the JSON property `attributes`
2863
+ # @return [Hash<String,Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCustomAttribute>]
2864
+ attr_accessor :attributes
2865
+
2866
+ # Input only. Supported fulfillment types. Valid fulfillment type values include
2867
+ # commonly used types (such as pickup in store and same day delivery), and
2868
+ # custom types. Customers have to map custom types to their display names before
2869
+ # rendering UI. Supported values: * "pickup-in-store" * "ship-to-store" * "same-
2870
+ # day-delivery" * "next-day-delivery" * "custom-type-1" * "custom-type-2" * "
2871
+ # custom-type-3" * "custom-type-4" * "custom-type-5" If this field is set to an
2872
+ # invalid value other than these, an INVALID_ARGUMENT error is returned. All the
2873
+ # elements must be distinct. Otherwise, an INVALID_ARGUMENT error is returned.
2874
+ # Corresponds to the JSON property `fulfillmentTypes`
2875
+ # @return [Array<String>]
2876
+ attr_accessor :fulfillment_types
2877
+
2878
+ # The place ID for the current set of inventory information.
2879
+ # Corresponds to the JSON property `placeId`
2880
+ # @return [String]
2881
+ attr_accessor :place_id
2882
+
2883
+ # The price information of a Product.
2884
+ # Corresponds to the JSON property `priceInfo`
2885
+ # @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPriceInfo]
2886
+ attr_accessor :price_info
2887
+
2888
+ def initialize(**args)
2889
+ update!(**args)
2890
+ end
2891
+
2892
+ # Update properties of this object
2893
+ def update!(**args)
2894
+ @attributes = args[:attributes] if args.key?(:attributes)
2895
+ @fulfillment_types = args[:fulfillment_types] if args.key?(:fulfillment_types)
2896
+ @place_id = args[:place_id] if args.key?(:place_id)
2897
+ @price_info = args[:price_info] if args.key?(:price_info)
2898
+ end
2899
+ end
2900
+
2710
2901
  # Represents a link between a Merchant Center account and a branch. Once a link
2711
2902
  # is established, products from the linked merchant center account will be
2712
2903
  # streamed to the linked branch.
@@ -2734,7 +2925,8 @@ module Google
2734
2925
  # Language of the title/description and other string attributes. Use language
2735
2926
  # tags defined by [BCP 47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). ISO
2736
2927
  # 639-1. This specifies the language of offers in Merchant Center that will be
2737
- # accepted. If empty no language filtering will be performed.
2928
+ # accepted. If empty no language filtering will be performed. Example value: `en`
2929
+ # .
2738
2930
  # Corresponds to the JSON property `languageCode`
2739
2931
  # @return [String]
2740
2932
  attr_accessor :language_code
@@ -3912,6 +4104,73 @@ module Google
3912
4104
  end
3913
4105
  end
3914
4106
 
4107
+ # Metadata related to the progress of the RemoveLocalInventories operation.
4108
+ # Currently empty because there is no meaningful metadata populated from the
4109
+ # RemoveLocalInventories method.
4110
+ class GoogleCloudRetailV2betaRemoveLocalInventoriesMetadata
4111
+ include Google::Apis::Core::Hashable
4112
+
4113
+ def initialize(**args)
4114
+ update!(**args)
4115
+ end
4116
+
4117
+ # Update properties of this object
4118
+ def update!(**args)
4119
+ end
4120
+ end
4121
+
4122
+ # Request message for RemoveLocalInventories method.
4123
+ class GoogleCloudRetailV2betaRemoveLocalInventoriesRequest
4124
+ include Google::Apis::Core::Hashable
4125
+
4126
+ # If set to true, and the Product is not found, the local inventory removal
4127
+ # request will still be processed and retained for at most 1 day and processed
4128
+ # once the Product is created. If set to false, a NOT_FOUND error is returned if
4129
+ # the Product is not found.
4130
+ # Corresponds to the JSON property `allowMissing`
4131
+ # @return [Boolean]
4132
+ attr_accessor :allow_missing
4133
+ alias_method :allow_missing?, :allow_missing
4134
+
4135
+ # Required. A list of place IDs to have their inventory deleted. At most 3000
4136
+ # place IDs are allowed per request.
4137
+ # Corresponds to the JSON property `placeIds`
4138
+ # @return [Array<String>]
4139
+ attr_accessor :place_ids
4140
+
4141
+ # The time when the inventory deletions are issued. Used to prevent out-of-order
4142
+ # updates and deletions on local inventory fields. If not provided, the internal
4143
+ # system time will be used.
4144
+ # Corresponds to the JSON property `removeTime`
4145
+ # @return [String]
4146
+ attr_accessor :remove_time
4147
+
4148
+ def initialize(**args)
4149
+ update!(**args)
4150
+ end
4151
+
4152
+ # Update properties of this object
4153
+ def update!(**args)
4154
+ @allow_missing = args[:allow_missing] if args.key?(:allow_missing)
4155
+ @place_ids = args[:place_ids] if args.key?(:place_ids)
4156
+ @remove_time = args[:remove_time] if args.key?(:remove_time)
4157
+ end
4158
+ end
4159
+
4160
+ # Response of the RemoveLocalInventories API. Currently empty because there is
4161
+ # no meaningful response populated from the RemoveLocalInventories method.
4162
+ class GoogleCloudRetailV2betaRemoveLocalInventoriesResponse
4163
+ include Google::Apis::Core::Hashable
4164
+
4165
+ def initialize(**args)
4166
+ update!(**args)
4167
+ end
4168
+
4169
+ # Update properties of this object
4170
+ def update!(**args)
4171
+ end
4172
+ end
4173
+
3915
4174
  # Request for CatalogService.ReplaceCatalogAttribute method.
3916
4175
  class GoogleCloudRetailV2betaReplaceCatalogAttributeRequest
3917
4176
  include Google::Apis::Core::Hashable
@@ -5591,13 +5850,12 @@ module Google
5591
5850
  attr_accessor :direct_user_request
5592
5851
  alias_method :direct_user_request?, :direct_user_request
5593
5852
 
5594
- # The end user's IP address. Required for getting SearchResponse.
5595
- # sponsored_results. This field is used to extract location information for
5596
- # personalization. This field must be either an IPv4 address (e.g. "104.133.9.80"
5597
- # ) or an IPv6 address (e.g. "2001:0db8:85a3:0000:0000:8a2e:0370:7334").
5598
- # Otherwise, an INVALID_ARGUMENT error is returned. This should not be set when
5599
- # using the JavaScript tag in UserEventService.CollectUserEvent or if
5600
- # direct_user_request is set.
5853
+ # The end user's IP address. This field is used to extract location information
5854
+ # for personalization. This field must be either an IPv4 address (e.g. "104.133.
5855
+ # 9.80") or an IPv6 address (e.g. "2001:0db8:85a3:0000:0000:8a2e:0370:7334").
5856
+ # Otherwise, an INVALID_ARGUMENT error is returned. This should not be set when:
5857
+ # * setting SearchRequest.user_info. * using the JavaScript tag in
5858
+ # UserEventService.CollectUserEvent or if direct_user_request is set.
5601
5859
  # Corresponds to the JSON property `ipAddress`
5602
5860
  # @return [String]
5603
5861
  attr_accessor :ip_address
@@ -5613,8 +5871,9 @@ module Google
5613
5871
  attr_accessor :user_agent
5614
5872
 
5615
5873
  # Highly recommended for logged-in users. Unique identifier for logged-in user,
5616
- # such as a user name. The field must be a UTF-8 encoded string with a length
5617
- # limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.
5874
+ # such as a user name. Always use a hashed value for this ID. The field must be
5875
+ # a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an
5876
+ # INVALID_ARGUMENT error is returned.
5618
5877
  # Corresponds to the JSON property `userId`
5619
5878
  # @return [String]
5620
5879
  attr_accessor :user_id
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module RetailV2beta
18
18
  # Version of the google-apis-retail_v2beta gem
19
- GEM_VERSION = "0.33.0"
19
+ GEM_VERSION = "0.34.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220319"
25
+ REVISION = "20220324"
26
26
  end
27
27
  end
28
28
  end
@@ -76,6 +76,18 @@ module Google
76
76
  include Google::Apis::Core::JsonObjectSupport
77
77
  end
78
78
 
79
+ class GoogleCloudRetailV2AddLocalInventoriesMetadata
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class GoogleCloudRetailV2AddLocalInventoriesResponse
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
79
91
  class GoogleCloudRetailV2ImportCompletionDataResponse
80
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
93
 
@@ -142,6 +154,18 @@ module Google
142
154
  include Google::Apis::Core::JsonObjectSupport
143
155
  end
144
156
 
157
+ class GoogleCloudRetailV2RemoveLocalInventoriesMetadata
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class GoogleCloudRetailV2RemoveLocalInventoriesResponse
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
145
169
  class GoogleCloudRetailV2SetInventoryMetadata
146
170
  class Representation < Google::Apis::Core::JsonRepresentation; end
147
171
 
@@ -346,6 +370,24 @@ module Google
346
370
  include Google::Apis::Core::JsonObjectSupport
347
371
  end
348
372
 
373
+ class GoogleCloudRetailV2betaAddLocalInventoriesMetadata
374
+ class Representation < Google::Apis::Core::JsonRepresentation; end
375
+
376
+ include Google::Apis::Core::JsonObjectSupport
377
+ end
378
+
379
+ class GoogleCloudRetailV2betaAddLocalInventoriesRequest
380
+ class Representation < Google::Apis::Core::JsonRepresentation; end
381
+
382
+ include Google::Apis::Core::JsonObjectSupport
383
+ end
384
+
385
+ class GoogleCloudRetailV2betaAddLocalInventoriesResponse
386
+ class Representation < Google::Apis::Core::JsonRepresentation; end
387
+
388
+ include Google::Apis::Core::JsonObjectSupport
389
+ end
390
+
349
391
  class GoogleCloudRetailV2betaAttributesConfig
350
392
  class Representation < Google::Apis::Core::JsonRepresentation; end
351
393
 
@@ -574,6 +616,12 @@ module Google
574
616
  include Google::Apis::Core::JsonObjectSupport
575
617
  end
576
618
 
619
+ class GoogleCloudRetailV2betaLocalInventory
620
+ class Representation < Google::Apis::Core::JsonRepresentation; end
621
+
622
+ include Google::Apis::Core::JsonObjectSupport
623
+ end
624
+
577
625
  class GoogleCloudRetailV2betaMerchantCenterLink
578
626
  class Representation < Google::Apis::Core::JsonRepresentation; end
579
627
 
@@ -730,6 +778,24 @@ module Google
730
778
  include Google::Apis::Core::JsonObjectSupport
731
779
  end
732
780
 
781
+ class GoogleCloudRetailV2betaRemoveLocalInventoriesMetadata
782
+ class Representation < Google::Apis::Core::JsonRepresentation; end
783
+
784
+ include Google::Apis::Core::JsonObjectSupport
785
+ end
786
+
787
+ class GoogleCloudRetailV2betaRemoveLocalInventoriesRequest
788
+ class Representation < Google::Apis::Core::JsonRepresentation; end
789
+
790
+ include Google::Apis::Core::JsonObjectSupport
791
+ end
792
+
793
+ class GoogleCloudRetailV2betaRemoveLocalInventoriesResponse
794
+ class Representation < Google::Apis::Core::JsonRepresentation; end
795
+
796
+ include Google::Apis::Core::JsonObjectSupport
797
+ end
798
+
733
799
  class GoogleCloudRetailV2betaReplaceCatalogAttributeRequest
734
800
  class Representation < Google::Apis::Core::JsonRepresentation; end
735
801
 
@@ -1039,6 +1105,18 @@ module Google
1039
1105
  end
1040
1106
  end
1041
1107
 
1108
+ class GoogleCloudRetailV2AddLocalInventoriesMetadata
1109
+ # @private
1110
+ class Representation < Google::Apis::Core::JsonRepresentation
1111
+ end
1112
+ end
1113
+
1114
+ class GoogleCloudRetailV2AddLocalInventoriesResponse
1115
+ # @private
1116
+ class Representation < Google::Apis::Core::JsonRepresentation
1117
+ end
1118
+ end
1119
+
1042
1120
  class GoogleCloudRetailV2ImportCompletionDataResponse
1043
1121
  # @private
1044
1122
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1126,6 +1204,18 @@ module Google
1126
1204
  end
1127
1205
  end
1128
1206
 
1207
+ class GoogleCloudRetailV2RemoveLocalInventoriesMetadata
1208
+ # @private
1209
+ class Representation < Google::Apis::Core::JsonRepresentation
1210
+ end
1211
+ end
1212
+
1213
+ class GoogleCloudRetailV2RemoveLocalInventoriesResponse
1214
+ # @private
1215
+ class Representation < Google::Apis::Core::JsonRepresentation
1216
+ end
1217
+ end
1218
+
1129
1219
  class GoogleCloudRetailV2SetInventoryMetadata
1130
1220
  # @private
1131
1221
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1379,6 +1469,29 @@ module Google
1379
1469
  end
1380
1470
  end
1381
1471
 
1472
+ class GoogleCloudRetailV2betaAddLocalInventoriesMetadata
1473
+ # @private
1474
+ class Representation < Google::Apis::Core::JsonRepresentation
1475
+ end
1476
+ end
1477
+
1478
+ class GoogleCloudRetailV2betaAddLocalInventoriesRequest
1479
+ # @private
1480
+ class Representation < Google::Apis::Core::JsonRepresentation
1481
+ property :add_mask, as: 'addMask'
1482
+ property :add_time, as: 'addTime'
1483
+ property :allow_missing, as: 'allowMissing'
1484
+ collection :local_inventories, as: 'localInventories', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaLocalInventory, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaLocalInventory::Representation
1485
+
1486
+ end
1487
+ end
1488
+
1489
+ class GoogleCloudRetailV2betaAddLocalInventoriesResponse
1490
+ # @private
1491
+ class Representation < Google::Apis::Core::JsonRepresentation
1492
+ end
1493
+ end
1494
+
1382
1495
  class GoogleCloudRetailV2betaAttributesConfig
1383
1496
  # @private
1384
1497
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1754,6 +1867,18 @@ module Google
1754
1867
  end
1755
1868
  end
1756
1869
 
1870
+ class GoogleCloudRetailV2betaLocalInventory
1871
+ # @private
1872
+ class Representation < Google::Apis::Core::JsonRepresentation
1873
+ hash :attributes, as: 'attributes', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCustomAttribute, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCustomAttribute::Representation
1874
+
1875
+ collection :fulfillment_types, as: 'fulfillmentTypes'
1876
+ property :place_id, as: 'placeId'
1877
+ property :price_info, as: 'priceInfo', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPriceInfo, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPriceInfo::Representation
1878
+
1879
+ end
1880
+ end
1881
+
1757
1882
  class GoogleCloudRetailV2betaMerchantCenterLink
1758
1883
  # @private
1759
1884
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2019,6 +2144,27 @@ module Google
2019
2144
  end
2020
2145
  end
2021
2146
 
2147
+ class GoogleCloudRetailV2betaRemoveLocalInventoriesMetadata
2148
+ # @private
2149
+ class Representation < Google::Apis::Core::JsonRepresentation
2150
+ end
2151
+ end
2152
+
2153
+ class GoogleCloudRetailV2betaRemoveLocalInventoriesRequest
2154
+ # @private
2155
+ class Representation < Google::Apis::Core::JsonRepresentation
2156
+ property :allow_missing, as: 'allowMissing'
2157
+ collection :place_ids, as: 'placeIds'
2158
+ property :remove_time, as: 'removeTime'
2159
+ end
2160
+ end
2161
+
2162
+ class GoogleCloudRetailV2betaRemoveLocalInventoriesResponse
2163
+ # @private
2164
+ class Representation < Google::Apis::Core::JsonRepresentation
2165
+ end
2166
+ end
2167
+
2022
2168
  class GoogleCloudRetailV2betaReplaceCatalogAttributeRequest
2023
2169
  # @private
2024
2170
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -52,9 +52,8 @@ module Google
52
52
  end
53
53
 
54
54
  # Completes the specified prefix with keyword suggestions. This feature is only
55
- # available for users who have Retail Search enabled. Please submit a form [here]
56
- # (https://cloud.google.com/contact) to contact cloud sales if you are
57
- # interested in using Retail Search.
55
+ # available for users who have Retail Search enabled. Please enable Retail
56
+ # Search on Cloud Console before using this feature.
58
57
  # @param [String] catalog
59
58
  # Required. Catalog for which the completion is performed. Full resource name of
60
59
  # catalog, such as `projects/*/locations/global/catalogs/default_catalog`.
@@ -579,9 +578,8 @@ module Google
579
578
  # enqueued and processed downstream. As a consequence, when a response is
580
579
  # returned, the added place IDs are not immediately manifested in the Product
581
580
  # queried by GetProduct or ListProducts. This feature is only available for
582
- # users who have Retail Search enabled. Please submit a form [here](https://
583
- # cloud.google.com/contact) to contact cloud sales if you are interested in
584
- # using Retail Search.
581
+ # users who have Retail Search enabled. Please enable Retail Search on Cloud
582
+ # Console before using this feature.
585
583
  # @param [String] product
586
584
  # Required. Full resource name of Product, such as `projects/*/locations/global/
587
585
  # catalogs/default_catalog/branches/default_branch/products/some_product_id`. If
@@ -617,6 +615,51 @@ module Google
617
615
  execute_or_queue_command(command, &block)
618
616
  end
619
617
 
618
+ # Updates local inventory information for a Product at a list of places, while
619
+ # respecting the last update timestamps of each inventory field. This process is
620
+ # asynchronous and does not require the Product to exist before updating
621
+ # inventory information. If the request is valid, the update will be enqueued
622
+ # and processed downstream. As a consequence, when a response is returned,
623
+ # updates are not immediately manifested in the Product queried by GetProduct or
624
+ # ListProducts. Local inventory information can only be modified using this
625
+ # method. CreateProduct and UpdateProduct has no effect on local inventories.
626
+ # This feature is only available for users who have Retail Search enabled.
627
+ # Please enable Retail Search on Cloud Console before using this feature.
628
+ # @param [String] product
629
+ # Required. Full resource name of Product, such as `projects/*/locations/global/
630
+ # catalogs/default_catalog/branches/default_branch/products/some_product_id`. If
631
+ # the caller does not have permission to access the Product, regardless of
632
+ # whether or not it exists, a PERMISSION_DENIED error is returned.
633
+ # @param [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAddLocalInventoriesRequest] google_cloud_retail_v2beta_add_local_inventories_request_object
634
+ # @param [String] fields
635
+ # Selector specifying which fields to include in a partial response.
636
+ # @param [String] quota_user
637
+ # Available to use for quota purposes for server-side applications. Can be any
638
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
639
+ # @param [Google::Apis::RequestOptions] options
640
+ # Request-specific options
641
+ #
642
+ # @yield [result, err] Result & error if block supplied
643
+ # @yieldparam result [Google::Apis::RetailV2beta::GoogleLongrunningOperation] parsed result object
644
+ # @yieldparam err [StandardError] error object if request failed
645
+ #
646
+ # @return [Google::Apis::RetailV2beta::GoogleLongrunningOperation]
647
+ #
648
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
649
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
650
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
651
+ def add_project_location_catalog_branch_product_local_inventories(product, google_cloud_retail_v2beta_add_local_inventories_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
652
+ command = make_simple_command(:post, 'v2beta/{+product}:addLocalInventories', options)
653
+ command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAddLocalInventoriesRequest::Representation
654
+ command.request_object = google_cloud_retail_v2beta_add_local_inventories_request_object
655
+ command.response_representation = Google::Apis::RetailV2beta::GoogleLongrunningOperation::Representation
656
+ command.response_class = Google::Apis::RetailV2beta::GoogleLongrunningOperation
657
+ command.params['product'] = product unless product.nil?
658
+ command.query['fields'] = fields unless fields.nil?
659
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
660
+ execute_or_queue_command(command, &block)
661
+ end
662
+
620
663
  # Creates a Product.
621
664
  # @param [String] parent
622
665
  # Required. The parent catalog resource name, such as `projects/*/locations/
@@ -886,9 +929,8 @@ module Google
886
929
  # enqueued and processed downstream. As a consequence, when a response is
887
930
  # returned, the removed place IDs are not immediately manifested in the Product
888
931
  # queried by GetProduct or ListProducts. This feature is only available for
889
- # users who have Retail Search enabled. Please submit a form [here](https://
890
- # cloud.google.com/contact) to contact cloud sales if you are interested in
891
- # using Retail Search.
932
+ # users who have Retail Search enabled. Please enable Retail Search on Cloud
933
+ # Console before using this feature.
892
934
  # @param [String] product
893
935
  # Required. Full resource name of Product, such as `projects/*/locations/global/
894
936
  # catalogs/default_catalog/branches/default_branch/products/some_product_id`. If
@@ -924,6 +966,50 @@ module Google
924
966
  execute_or_queue_command(command, &block)
925
967
  end
926
968
 
969
+ # Remove local inventory information for a Product at a list of places at a
970
+ # removal timestamp. This process is asynchronous. If the request is valid, the
971
+ # removal will be enqueued and processed downstream. As a consequence, when a
972
+ # response is returned, removals are not immediately manifested in the Product
973
+ # queried by GetProduct or ListProducts. Local inventory information can only be
974
+ # removed using this method. CreateProduct and UpdateProduct has no effect on
975
+ # local inventories. This feature is only available for users who have Retail
976
+ # Search enabled. Please enable Retail Search on Cloud Console before using this
977
+ # feature.
978
+ # @param [String] product
979
+ # Required. Full resource name of Product, such as `projects/*/locations/global/
980
+ # catalogs/default_catalog/branches/default_branch/products/some_product_id`. If
981
+ # the caller does not have permission to access the Product, regardless of
982
+ # whether or not it exists, a PERMISSION_DENIED error is returned.
983
+ # @param [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRemoveLocalInventoriesRequest] google_cloud_retail_v2beta_remove_local_inventories_request_object
984
+ # @param [String] fields
985
+ # Selector specifying which fields to include in a partial response.
986
+ # @param [String] quota_user
987
+ # Available to use for quota purposes for server-side applications. Can be any
988
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
989
+ # @param [Google::Apis::RequestOptions] options
990
+ # Request-specific options
991
+ #
992
+ # @yield [result, err] Result & error if block supplied
993
+ # @yieldparam result [Google::Apis::RetailV2beta::GoogleLongrunningOperation] parsed result object
994
+ # @yieldparam err [StandardError] error object if request failed
995
+ #
996
+ # @return [Google::Apis::RetailV2beta::GoogleLongrunningOperation]
997
+ #
998
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
999
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1000
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1001
+ def remove_project_location_catalog_branch_product_local_inventories(product, google_cloud_retail_v2beta_remove_local_inventories_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1002
+ command = make_simple_command(:post, 'v2beta/{+product}:removeLocalInventories', options)
1003
+ command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRemoveLocalInventoriesRequest::Representation
1004
+ command.request_object = google_cloud_retail_v2beta_remove_local_inventories_request_object
1005
+ command.response_representation = Google::Apis::RetailV2beta::GoogleLongrunningOperation::Representation
1006
+ command.response_class = Google::Apis::RetailV2beta::GoogleLongrunningOperation
1007
+ command.params['product'] = product unless product.nil?
1008
+ command.query['fields'] = fields unless fields.nil?
1009
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1010
+ execute_or_queue_command(command, &block)
1011
+ end
1012
+
927
1013
  # Updates inventory information for a Product while respecting the last update
928
1014
  # timestamps of each inventory field. This process is asynchronous and does not
929
1015
  # require the Product to exist before updating fulfillment information. If the
@@ -940,9 +1026,8 @@ module Google
940
1026
  # SetInventoryRequest.set_mask, then any existing inventory information will be
941
1027
  # preserved. Pre-existing inventory information can only be updated with
942
1028
  # SetInventory, AddFulfillmentPlaces, and RemoveFulfillmentPlaces. This feature
943
- # is only available for users who have Retail Search enabled. Please submit a
944
- # form [here](https://cloud.google.com/contact) to contact cloud sales if you
945
- # are interested in using Retail Search.
1029
+ # is only available for users who have Retail Search enabled. Please enable
1030
+ # Retail Search on Cloud Console before using this feature.
946
1031
  # @param [String] name
947
1032
  # Immutable. Full resource name of the product, such as `projects/*/locations/
948
1033
  # global/catalogs/default_catalog/branches/default_branch/products/product_id`.
@@ -980,9 +1065,8 @@ module Google
980
1065
  # asynchronous. Partial updating is not supported. The operation is successfully
981
1066
  # finished only after the imported suggestions are indexed successfully and
982
1067
  # ready for serving. The process takes hours. This feature is only available for
983
- # users who have Retail Search enabled. Please submit a form [here](https://
984
- # cloud.google.com/contact) to contact cloud sales if you are interested in
985
- # using Retail Search.
1068
+ # users who have Retail Search enabled. Please enable Retail Search on Cloud
1069
+ # Console before using this feature.
986
1070
  # @param [String] parent
987
1071
  # Required. The catalog which the suggestions dataset belongs to. Format: `
988
1072
  # projects/1234/locations/global/catalogs/default_catalog`.
@@ -1325,8 +1409,8 @@ module Google
1325
1409
  end
1326
1410
 
1327
1411
  # Performs a search. This feature is only available for users who have Retail
1328
- # Search enabled. Please submit a form [here](https://cloud.google.com/contact)
1329
- # to contact cloud sales if you are interested in using Retail Search.
1412
+ # Search enabled. Please enable Retail Search on Cloud Console before using this
1413
+ # feature.
1330
1414
  # @param [String] placement
1331
1415
  # Required. The resource name of the search engine placement, such as `projects/*
1332
1416
  # /locations/global/catalogs/default_catalog/placements/default_search` or `
@@ -1665,8 +1749,8 @@ module Google
1665
1749
  end
1666
1750
 
1667
1751
  # Performs a search. This feature is only available for users who have Retail
1668
- # Search enabled. Please submit a form [here](https://cloud.google.com/contact)
1669
- # to contact cloud sales if you are interested in using Retail Search.
1752
+ # Search enabled. Please enable Retail Search on Cloud Console before using this
1753
+ # feature.
1670
1754
  # @param [String] placement
1671
1755
  # Required. The resource name of the search engine placement, such as `projects/*
1672
1756
  # /locations/global/catalogs/default_catalog/placements/default_search` or `
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-retail_v2beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.33.0
4
+ version: 0.34.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: 2022-03-28 00:00:00.000000000 Z
11
+ date: 2022-04-04 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_v2beta/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2beta/v0.33.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2beta/v0.34.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2beta
63
63
  post_install_message:
64
64
  rdoc_options: []