google-apis-retail_v2beta 0.33.0 → 0.36.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: 44cf423c7ab4fde9b6f15c075befe8dc7fa579383879e5143d796c1fdfcd6125
|
4
|
+
data.tar.gz: 1f4e0fe60920a8d21aef45e1e3d7357cfd214c98ac8d8e8122d093bfec6a9358
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 410497307d187e4d7eb7d2efa3a0ec793f700cbba51726b51fc592306e5cec7cd76bc57c9db3c12523c9f2cde5186464f8c79d5beb68292c748741add9bd5ec7
|
7
|
+
data.tar.gz: eecbab370046cdec13c99420007858c108bd6fb36bba852b6795404f25114dedff8bf74ae11bfde5d0fce3aaa1dbd0611d0d646f00ec3d9809a89fe892f49ca8
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Release history for google-apis-retail_v2beta
|
2
2
|
|
3
|
+
### v0.36.0 (2022-04-22)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220414
|
6
|
+
|
7
|
+
### v0.35.0 (2022-04-14)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20220408
|
10
|
+
|
11
|
+
### v0.34.0 (2022-03-31)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20220324
|
14
|
+
|
3
15
|
### v0.33.0 (2022-03-24)
|
4
16
|
|
5
17
|
* 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
|
@@ -1968,14 +2106,6 @@ module Google
|
|
1968
2106
|
# @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRule]
|
1969
2107
|
attr_accessor :rule
|
1970
2108
|
|
1971
|
-
# Required. Specifies the use case for the control. Affects what condition
|
1972
|
-
# fields can be set. Only settable by search controls. Will default to
|
1973
|
-
# SEARCH_SOLUTION_USE_CASE_SEARCH if not specified. Currently only allow one
|
1974
|
-
# search_solution_use_case per control.
|
1975
|
-
# Corresponds to the JSON property `searchSolutionUseCase`
|
1976
|
-
# @return [Array<String>]
|
1977
|
-
attr_accessor :search_solution_use_case
|
1978
|
-
|
1979
2109
|
# Required. Immutable. The solution types that the serving config is used for.
|
1980
2110
|
# Currently we support setting only one type of solution at creation time. Only `
|
1981
2111
|
# SOLUTION_TYPE_SEARCH` value is supported at the moment. If no solution type is
|
@@ -1995,7 +2125,6 @@ module Google
|
|
1995
2125
|
@facet_spec = args[:facet_spec] if args.key?(:facet_spec)
|
1996
2126
|
@name = args[:name] if args.key?(:name)
|
1997
2127
|
@rule = args[:rule] if args.key?(:rule)
|
1998
|
-
@search_solution_use_case = args[:search_solution_use_case] if args.key?(:search_solution_use_case)
|
1999
2128
|
@solution_types = args[:solution_types] if args.key?(:solution_types)
|
2000
2129
|
end
|
2001
2130
|
end
|
@@ -2441,11 +2570,15 @@ module Google
|
|
2441
2570
|
# @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaProductInputConfig]
|
2442
2571
|
attr_accessor :input_config
|
2443
2572
|
|
2444
|
-
# Pub/Sub topic for receiving notification. If this field is set, when
|
2445
|
-
# import is finished, a notification will be sent to specified Pub/Sub topic.
|
2573
|
+
# Full Pub/Sub topic name for receiving notification. If this field is set, when
|
2574
|
+
# the import is finished, a notification will be sent to specified Pub/Sub topic.
|
2446
2575
|
# The message data will be JSON string of a Operation. Format of the Pub/Sub
|
2447
|
-
# topic is `projects/`project`/topics/`topic``.
|
2448
|
-
# ImportProductsRequest.
|
2576
|
+
# topic is `projects/`project`/topics/`topic``. It has to be within the same
|
2577
|
+
# project as ImportProductsRequest.parent. Make sure that both `cloud-retail-
|
2578
|
+
# customer-data-access@system.gserviceaccount.com` and `service-@gcp-sa-retail.
|
2579
|
+
# iam.gserviceaccount.com` have the `pubsub.topics.publish` IAM permission on
|
2580
|
+
# the topic. Only supported when ImportProductsRequest.reconciliation_mode is
|
2581
|
+
# set to `FULL`.
|
2449
2582
|
# Corresponds to the JSON property `notificationPubsubTopic`
|
2450
2583
|
# @return [String]
|
2451
2584
|
attr_accessor :notification_pubsub_topic
|
@@ -2707,6 +2840,59 @@ module Google
|
|
2707
2840
|
end
|
2708
2841
|
end
|
2709
2842
|
|
2843
|
+
# The inventory information at a place (e.g. a store) identified by a place ID.
|
2844
|
+
class GoogleCloudRetailV2betaLocalInventory
|
2845
|
+
include Google::Apis::Core::Hashable
|
2846
|
+
|
2847
|
+
# Additional local inventory attributes, for example, store name, promotion tags,
|
2848
|
+
# etc. This field needs to pass all below criteria, otherwise an
|
2849
|
+
# INVALID_ARGUMENT error is returned: * At most 30 attributes are allowed. * The
|
2850
|
+
# key must be a UTF-8 encoded string with a length limit of 32 characters. * The
|
2851
|
+
# key must match the pattern: `a-zA-Z0-9*`. For example, key0LikeThis or
|
2852
|
+
# KEY_1_LIKE_THIS. * The attribute values must be of the same type (text or
|
2853
|
+
# number). * Only 1 value is allowed for each attribute. * For text values, the
|
2854
|
+
# length limit is 256 UTF-8 characters. * The attribute does not support search.
|
2855
|
+
# The `searchable` field should be unset or set to false. * The max summed total
|
2856
|
+
# bytes of custom attribute keys and values per product is 5MiB.
|
2857
|
+
# Corresponds to the JSON property `attributes`
|
2858
|
+
# @return [Hash<String,Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCustomAttribute>]
|
2859
|
+
attr_accessor :attributes
|
2860
|
+
|
2861
|
+
# Input only. Supported fulfillment types. Valid fulfillment type values include
|
2862
|
+
# commonly used types (such as pickup in store and same day delivery), and
|
2863
|
+
# custom types. Customers have to map custom types to their display names before
|
2864
|
+
# rendering UI. Supported values: * "pickup-in-store" * "ship-to-store" * "same-
|
2865
|
+
# day-delivery" * "next-day-delivery" * "custom-type-1" * "custom-type-2" * "
|
2866
|
+
# custom-type-3" * "custom-type-4" * "custom-type-5" If this field is set to an
|
2867
|
+
# invalid value other than these, an INVALID_ARGUMENT error is returned. All the
|
2868
|
+
# elements must be distinct. Otherwise, an INVALID_ARGUMENT error is returned.
|
2869
|
+
# Corresponds to the JSON property `fulfillmentTypes`
|
2870
|
+
# @return [Array<String>]
|
2871
|
+
attr_accessor :fulfillment_types
|
2872
|
+
|
2873
|
+
# The place ID for the current set of inventory information.
|
2874
|
+
# Corresponds to the JSON property `placeId`
|
2875
|
+
# @return [String]
|
2876
|
+
attr_accessor :place_id
|
2877
|
+
|
2878
|
+
# The price information of a Product.
|
2879
|
+
# Corresponds to the JSON property `priceInfo`
|
2880
|
+
# @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPriceInfo]
|
2881
|
+
attr_accessor :price_info
|
2882
|
+
|
2883
|
+
def initialize(**args)
|
2884
|
+
update!(**args)
|
2885
|
+
end
|
2886
|
+
|
2887
|
+
# Update properties of this object
|
2888
|
+
def update!(**args)
|
2889
|
+
@attributes = args[:attributes] if args.key?(:attributes)
|
2890
|
+
@fulfillment_types = args[:fulfillment_types] if args.key?(:fulfillment_types)
|
2891
|
+
@place_id = args[:place_id] if args.key?(:place_id)
|
2892
|
+
@price_info = args[:price_info] if args.key?(:price_info)
|
2893
|
+
end
|
2894
|
+
end
|
2895
|
+
|
2710
2896
|
# Represents a link between a Merchant Center account and a branch. Once a link
|
2711
2897
|
# is established, products from the linked merchant center account will be
|
2712
2898
|
# streamed to the linked branch.
|
@@ -2734,7 +2920,8 @@ module Google
|
|
2734
2920
|
# Language of the title/description and other string attributes. Use language
|
2735
2921
|
# tags defined by [BCP 47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). ISO
|
2736
2922
|
# 639-1. This specifies the language of offers in Merchant Center that will be
|
2737
|
-
# accepted. If empty no language filtering will be performed.
|
2923
|
+
# accepted. If empty no language filtering will be performed. Example value: `en`
|
2924
|
+
# .
|
2738
2925
|
# Corresponds to the JSON property `languageCode`
|
2739
2926
|
# @return [String]
|
2740
2927
|
attr_accessor :language_code
|
@@ -2983,7 +3170,8 @@ module Google
|
|
2983
3170
|
attr_accessor :currency_code
|
2984
3171
|
|
2985
3172
|
# Price of the product without any discount. If zero, by default set to be the
|
2986
|
-
# price.
|
3173
|
+
# price. If set, original_price should be greater than or equal to price,
|
3174
|
+
# otherwise an INVALID_ARGUMENT error is thrown.
|
2987
3175
|
# Corresponds to the JSON property `originalPrice`
|
2988
3176
|
# @return [Float]
|
2989
3177
|
attr_accessor :original_price
|
@@ -3519,13 +3707,13 @@ module Google
|
|
3519
3707
|
# The type of Products allowed to be ingested into the catalog. Acceptable
|
3520
3708
|
# values are: * `primary` (default): You can ingest Products of all types. When
|
3521
3709
|
# ingesting a Product, its type will default to Product.Type.PRIMARY if unset. *
|
3522
|
-
# `variant
|
3523
|
-
# Product.primary_product_id cannot be empty. If
|
3524
|
-
# value other than these, an INVALID_ARGUMENT
|
3525
|
-
# is
|
3526
|
-
#
|
3527
|
-
# google.com/retail/
|
3528
|
-
# details.
|
3710
|
+
# `variant` (incompatible with Retail Search): You can only ingest Product.Type.
|
3711
|
+
# VARIANT Products. This means Product.primary_product_id cannot be empty. If
|
3712
|
+
# this field is set to an invalid value other than these, an INVALID_ARGUMENT
|
3713
|
+
# error is returned. If this field is `variant` and
|
3714
|
+
# merchant_center_product_id_field is `itemGroupId`, an INVALID_ARGUMENT error
|
3715
|
+
# is returned. See [Product levels](https://cloud.google.com/retail/docs/catalog#
|
3716
|
+
# product-levels) for more details.
|
3529
3717
|
# Corresponds to the JSON property `ingestionProductType`
|
3530
3718
|
# @return [String]
|
3531
3719
|
attr_accessor :ingestion_product_type
|
@@ -3538,8 +3726,8 @@ module Google
|
|
3538
3726
|
# the item group. If this field is set to an invalid value other than these, an
|
3539
3727
|
# INVALID_ARGUMENT error is returned. If this field is `itemGroupId` and
|
3540
3728
|
# ingestion_product_type is `variant`, an INVALID_ARGUMENT error is returned.
|
3541
|
-
# See [
|
3542
|
-
#
|
3729
|
+
# See [Product levels](https://cloud.google.com/retail/docs/catalog#product-
|
3730
|
+
# levels) for more details.
|
3543
3731
|
# Corresponds to the JSON property `merchantCenterProductIdField`
|
3544
3732
|
# @return [String]
|
3545
3733
|
attr_accessor :merchant_center_product_id_field
|
@@ -3912,6 +4100,73 @@ module Google
|
|
3912
4100
|
end
|
3913
4101
|
end
|
3914
4102
|
|
4103
|
+
# Metadata related to the progress of the RemoveLocalInventories operation.
|
4104
|
+
# Currently empty because there is no meaningful metadata populated from the
|
4105
|
+
# RemoveLocalInventories method.
|
4106
|
+
class GoogleCloudRetailV2betaRemoveLocalInventoriesMetadata
|
4107
|
+
include Google::Apis::Core::Hashable
|
4108
|
+
|
4109
|
+
def initialize(**args)
|
4110
|
+
update!(**args)
|
4111
|
+
end
|
4112
|
+
|
4113
|
+
# Update properties of this object
|
4114
|
+
def update!(**args)
|
4115
|
+
end
|
4116
|
+
end
|
4117
|
+
|
4118
|
+
# Request message for RemoveLocalInventories method.
|
4119
|
+
class GoogleCloudRetailV2betaRemoveLocalInventoriesRequest
|
4120
|
+
include Google::Apis::Core::Hashable
|
4121
|
+
|
4122
|
+
# If set to true, and the Product is not found, the local inventory removal
|
4123
|
+
# request will still be processed and retained for at most 1 day and processed
|
4124
|
+
# once the Product is created. If set to false, a NOT_FOUND error is returned if
|
4125
|
+
# the Product is not found.
|
4126
|
+
# Corresponds to the JSON property `allowMissing`
|
4127
|
+
# @return [Boolean]
|
4128
|
+
attr_accessor :allow_missing
|
4129
|
+
alias_method :allow_missing?, :allow_missing
|
4130
|
+
|
4131
|
+
# Required. A list of place IDs to have their inventory deleted. At most 3000
|
4132
|
+
# place IDs are allowed per request.
|
4133
|
+
# Corresponds to the JSON property `placeIds`
|
4134
|
+
# @return [Array<String>]
|
4135
|
+
attr_accessor :place_ids
|
4136
|
+
|
4137
|
+
# The time when the inventory deletions are issued. Used to prevent out-of-order
|
4138
|
+
# updates and deletions on local inventory fields. If not provided, the internal
|
4139
|
+
# system time will be used.
|
4140
|
+
# Corresponds to the JSON property `removeTime`
|
4141
|
+
# @return [String]
|
4142
|
+
attr_accessor :remove_time
|
4143
|
+
|
4144
|
+
def initialize(**args)
|
4145
|
+
update!(**args)
|
4146
|
+
end
|
4147
|
+
|
4148
|
+
# Update properties of this object
|
4149
|
+
def update!(**args)
|
4150
|
+
@allow_missing = args[:allow_missing] if args.key?(:allow_missing)
|
4151
|
+
@place_ids = args[:place_ids] if args.key?(:place_ids)
|
4152
|
+
@remove_time = args[:remove_time] if args.key?(:remove_time)
|
4153
|
+
end
|
4154
|
+
end
|
4155
|
+
|
4156
|
+
# Response of the RemoveLocalInventories API. Currently empty because there is
|
4157
|
+
# no meaningful response populated from the RemoveLocalInventories method.
|
4158
|
+
class GoogleCloudRetailV2betaRemoveLocalInventoriesResponse
|
4159
|
+
include Google::Apis::Core::Hashable
|
4160
|
+
|
4161
|
+
def initialize(**args)
|
4162
|
+
update!(**args)
|
4163
|
+
end
|
4164
|
+
|
4165
|
+
# Update properties of this object
|
4166
|
+
def update!(**args)
|
4167
|
+
end
|
4168
|
+
end
|
4169
|
+
|
3915
4170
|
# Request for CatalogService.ReplaceCatalogAttribute method.
|
3916
4171
|
class GoogleCloudRetailV2betaReplaceCatalogAttributeRequest
|
3917
4172
|
include Google::Apis::Core::Hashable
|
@@ -4315,6 +4570,21 @@ module Google
|
|
4315
4570
|
# @return [String]
|
4316
4571
|
attr_accessor :filter
|
4317
4572
|
|
4573
|
+
# The labels applied to a resource must meet the following requirements: * Each
|
4574
|
+
# resource can have multiple labels, up to a maximum of 64. * Each label must be
|
4575
|
+
# a key-value pair. * Keys have a minimum length of 1 character and a maximum
|
4576
|
+
# length of 63 characters, and cannot be empty. Values can be empty, and have a
|
4577
|
+
# maximum length of 63 characters. * Keys and values can contain only lowercase
|
4578
|
+
# letters, numeric characters, underscores, and dashes. All characters must use
|
4579
|
+
# UTF-8 encoding, and international characters are allowed. * The key portion of
|
4580
|
+
# a label must be unique. However, you can use the same key with multiple
|
4581
|
+
# resources. * Keys must start with a lowercase letter or international
|
4582
|
+
# character. See [Google Cloud Document](https://cloud.google.com/resource-
|
4583
|
+
# manager/docs/creating-managing-labels#requirements) for more details.
|
4584
|
+
# Corresponds to the JSON property `labels`
|
4585
|
+
# @return [Hash<String,String>]
|
4586
|
+
attr_accessor :labels
|
4587
|
+
|
4318
4588
|
# A 0-indexed integer that specifies the current offset (that is, starting
|
4319
4589
|
# result location, amongst the Products deemed by the API as relevant) in search
|
4320
4590
|
# results. This field is only considered if page_token is unset. If this field
|
@@ -4364,7 +4634,8 @@ module Google
|
|
4364
4634
|
# @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestPersonalizationSpec]
|
4365
4635
|
attr_accessor :personalization_spec
|
4366
4636
|
|
4367
|
-
# Raw search query.
|
4637
|
+
# Raw search query. If this field is empty, the request is considered a category
|
4638
|
+
# browsing request and returned results are based on filter and page_categories.
|
4368
4639
|
# Corresponds to the JSON property `query`
|
4369
4640
|
# @return [String]
|
4370
4641
|
attr_accessor :query
|
@@ -4437,6 +4708,7 @@ module Google
|
|
4437
4708
|
@dynamic_facet_spec = args[:dynamic_facet_spec] if args.key?(:dynamic_facet_spec)
|
4438
4709
|
@facet_specs = args[:facet_specs] if args.key?(:facet_specs)
|
4439
4710
|
@filter = args[:filter] if args.key?(:filter)
|
4711
|
+
@labels = args[:labels] if args.key?(:labels)
|
4440
4712
|
@offset = args[:offset] if args.key?(:offset)
|
4441
4713
|
@order_by = args[:order_by] if args.key?(:order_by)
|
4442
4714
|
@page_categories = args[:page_categories] if args.key?(:page_categories)
|
@@ -5461,10 +5733,12 @@ module Google
|
|
5461
5733
|
# Required. A unique identifier for tracking visitors. For example, this could
|
5462
5734
|
# be implemented with an HTTP cookie, which should be able to uniquely identify
|
5463
5735
|
# a visitor on a single device. This unique identifier should not change if the
|
5464
|
-
# visitor log in/out of the website.
|
5465
|
-
#
|
5466
|
-
#
|
5467
|
-
#
|
5736
|
+
# visitor log in/out of the website. Don't set the field to the same fixed ID
|
5737
|
+
# for different users. This mixes the event history of those users together,
|
5738
|
+
# which results in degraded model quality. The field must be a UTF-8 encoded
|
5739
|
+
# string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT
|
5740
|
+
# error is returned. The field should not contain PII or user-data. We recommend
|
5741
|
+
# to use Google Analystics [Client ID](https://developers.google.com/analytics/
|
5468
5742
|
# devguides/collection/analyticsjs/field-reference#clientId) for this field.
|
5469
5743
|
# Corresponds to the JSON property `visitorId`
|
5470
5744
|
# @return [String]
|
@@ -5591,13 +5865,12 @@ module Google
|
|
5591
5865
|
attr_accessor :direct_user_request
|
5592
5866
|
alias_method :direct_user_request?, :direct_user_request
|
5593
5867
|
|
5594
|
-
# The end user's IP address.
|
5595
|
-
#
|
5596
|
-
#
|
5597
|
-
#
|
5598
|
-
#
|
5599
|
-
#
|
5600
|
-
# direct_user_request is set.
|
5868
|
+
# The end user's IP address. This field is used to extract location information
|
5869
|
+
# for personalization. This field must be either an IPv4 address (e.g. "104.133.
|
5870
|
+
# 9.80") or an IPv6 address (e.g. "2001:0db8:85a3:0000:0000:8a2e:0370:7334").
|
5871
|
+
# Otherwise, an INVALID_ARGUMENT error is returned. This should not be set when:
|
5872
|
+
# * setting SearchRequest.user_info. * using the JavaScript tag in
|
5873
|
+
# UserEventService.CollectUserEvent or if direct_user_request is set.
|
5601
5874
|
# Corresponds to the JSON property `ipAddress`
|
5602
5875
|
# @return [String]
|
5603
5876
|
attr_accessor :ip_address
|
@@ -5613,7 +5886,10 @@ module Google
|
|
5613
5886
|
attr_accessor :user_agent
|
5614
5887
|
|
5615
5888
|
# Highly recommended for logged-in users. Unique identifier for logged-in user,
|
5616
|
-
# such as a user name.
|
5889
|
+
# such as a user name. Don't set for anonymous users. Always use a hashed value
|
5890
|
+
# for this ID. Don't set the field to the same fixed ID for different users.
|
5891
|
+
# This mixes the event history of those users together, which results in
|
5892
|
+
# degraded model quality. The field must be a UTF-8 encoded string with a length
|
5617
5893
|
# limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.
|
5618
5894
|
# Corresponds to the JSON property `userId`
|
5619
5895
|
# @return [String]
|
@@ -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.
|
19
|
+
GEM_VERSION = "0.36.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 = "
|
25
|
+
REVISION = "20220414"
|
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
|
@@ -1542,7 +1655,6 @@ module Google
|
|
1542
1655
|
property :name, as: 'name'
|
1543
1656
|
property :rule, as: 'rule', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRule, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRule::Representation
|
1544
1657
|
|
1545
|
-
collection :search_solution_use_case, as: 'searchSolutionUseCase'
|
1546
1658
|
collection :solution_types, as: 'solutionTypes'
|
1547
1659
|
end
|
1548
1660
|
end
|
@@ -1754,6 +1866,18 @@ module Google
|
|
1754
1866
|
end
|
1755
1867
|
end
|
1756
1868
|
|
1869
|
+
class GoogleCloudRetailV2betaLocalInventory
|
1870
|
+
# @private
|
1871
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1872
|
+
hash :attributes, as: 'attributes', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCustomAttribute, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCustomAttribute::Representation
|
1873
|
+
|
1874
|
+
collection :fulfillment_types, as: 'fulfillmentTypes'
|
1875
|
+
property :place_id, as: 'placeId'
|
1876
|
+
property :price_info, as: 'priceInfo', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPriceInfo, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPriceInfo::Representation
|
1877
|
+
|
1878
|
+
end
|
1879
|
+
end
|
1880
|
+
|
1757
1881
|
class GoogleCloudRetailV2betaMerchantCenterLink
|
1758
1882
|
# @private
|
1759
1883
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2019,6 +2143,27 @@ module Google
|
|
2019
2143
|
end
|
2020
2144
|
end
|
2021
2145
|
|
2146
|
+
class GoogleCloudRetailV2betaRemoveLocalInventoriesMetadata
|
2147
|
+
# @private
|
2148
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2149
|
+
end
|
2150
|
+
end
|
2151
|
+
|
2152
|
+
class GoogleCloudRetailV2betaRemoveLocalInventoriesRequest
|
2153
|
+
# @private
|
2154
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2155
|
+
property :allow_missing, as: 'allowMissing'
|
2156
|
+
collection :place_ids, as: 'placeIds'
|
2157
|
+
property :remove_time, as: 'removeTime'
|
2158
|
+
end
|
2159
|
+
end
|
2160
|
+
|
2161
|
+
class GoogleCloudRetailV2betaRemoveLocalInventoriesResponse
|
2162
|
+
# @private
|
2163
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2164
|
+
end
|
2165
|
+
end
|
2166
|
+
|
2022
2167
|
class GoogleCloudRetailV2betaReplaceCatalogAttributeRequest
|
2023
2168
|
# @private
|
2024
2169
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2127,6 +2272,7 @@ module Google
|
|
2127
2272
|
collection :facet_specs, as: 'facetSpecs', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestFacetSpec, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestFacetSpec::Representation
|
2128
2273
|
|
2129
2274
|
property :filter, as: 'filter'
|
2275
|
+
hash :labels, as: 'labels'
|
2130
2276
|
property :offset, as: 'offset'
|
2131
2277
|
property :order_by, as: 'orderBy'
|
2132
2278
|
collection :page_categories, as: 'pageCategories'
|
@@ -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
|
56
|
-
#
|
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
|
583
|
-
#
|
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/
|
@@ -848,7 +891,9 @@ module Google
|
|
848
891
|
# output only fields are NOT supported. If not set, all supported fields (the
|
849
892
|
# fields that are neither immutable nor output only) are updated. If an
|
850
893
|
# unsupported or unknown field is provided, an INVALID_ARGUMENT error is
|
851
|
-
# returned.
|
894
|
+
# returned. The attribute key can be updated by setting the mask path as "
|
895
|
+
# attributes.$`key_name`". If a key name is present in the mask but not in the
|
896
|
+
# patching product from the request, this key will be deleted after the update.
|
852
897
|
# @param [String] fields
|
853
898
|
# Selector specifying which fields to include in a partial response.
|
854
899
|
# @param [String] quota_user
|
@@ -886,9 +931,8 @@ module Google
|
|
886
931
|
# enqueued and processed downstream. As a consequence, when a response is
|
887
932
|
# returned, the removed place IDs are not immediately manifested in the Product
|
888
933
|
# queried by GetProduct or ListProducts. This feature is only available for
|
889
|
-
# users who have Retail Search enabled. Please
|
890
|
-
#
|
891
|
-
# using Retail Search.
|
934
|
+
# users who have Retail Search enabled. Please enable Retail Search on Cloud
|
935
|
+
# Console before using this feature.
|
892
936
|
# @param [String] product
|
893
937
|
# Required. Full resource name of Product, such as `projects/*/locations/global/
|
894
938
|
# catalogs/default_catalog/branches/default_branch/products/some_product_id`. If
|
@@ -924,6 +968,50 @@ module Google
|
|
924
968
|
execute_or_queue_command(command, &block)
|
925
969
|
end
|
926
970
|
|
971
|
+
# Remove local inventory information for a Product at a list of places at a
|
972
|
+
# removal timestamp. This process is asynchronous. If the request is valid, the
|
973
|
+
# removal will be enqueued and processed downstream. As a consequence, when a
|
974
|
+
# response is returned, removals are not immediately manifested in the Product
|
975
|
+
# queried by GetProduct or ListProducts. Local inventory information can only be
|
976
|
+
# removed using this method. CreateProduct and UpdateProduct has no effect on
|
977
|
+
# local inventories. This feature is only available for users who have Retail
|
978
|
+
# Search enabled. Please enable Retail Search on Cloud Console before using this
|
979
|
+
# feature.
|
980
|
+
# @param [String] product
|
981
|
+
# Required. Full resource name of Product, such as `projects/*/locations/global/
|
982
|
+
# catalogs/default_catalog/branches/default_branch/products/some_product_id`. If
|
983
|
+
# the caller does not have permission to access the Product, regardless of
|
984
|
+
# whether or not it exists, a PERMISSION_DENIED error is returned.
|
985
|
+
# @param [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRemoveLocalInventoriesRequest] google_cloud_retail_v2beta_remove_local_inventories_request_object
|
986
|
+
# @param [String] fields
|
987
|
+
# Selector specifying which fields to include in a partial response.
|
988
|
+
# @param [String] quota_user
|
989
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
990
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
991
|
+
# @param [Google::Apis::RequestOptions] options
|
992
|
+
# Request-specific options
|
993
|
+
#
|
994
|
+
# @yield [result, err] Result & error if block supplied
|
995
|
+
# @yieldparam result [Google::Apis::RetailV2beta::GoogleLongrunningOperation] parsed result object
|
996
|
+
# @yieldparam err [StandardError] error object if request failed
|
997
|
+
#
|
998
|
+
# @return [Google::Apis::RetailV2beta::GoogleLongrunningOperation]
|
999
|
+
#
|
1000
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1001
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1002
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1003
|
+
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)
|
1004
|
+
command = make_simple_command(:post, 'v2beta/{+product}:removeLocalInventories', options)
|
1005
|
+
command.request_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRemoveLocalInventoriesRequest::Representation
|
1006
|
+
command.request_object = google_cloud_retail_v2beta_remove_local_inventories_request_object
|
1007
|
+
command.response_representation = Google::Apis::RetailV2beta::GoogleLongrunningOperation::Representation
|
1008
|
+
command.response_class = Google::Apis::RetailV2beta::GoogleLongrunningOperation
|
1009
|
+
command.params['product'] = product unless product.nil?
|
1010
|
+
command.query['fields'] = fields unless fields.nil?
|
1011
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1012
|
+
execute_or_queue_command(command, &block)
|
1013
|
+
end
|
1014
|
+
|
927
1015
|
# Updates inventory information for a Product while respecting the last update
|
928
1016
|
# timestamps of each inventory field. This process is asynchronous and does not
|
929
1017
|
# require the Product to exist before updating fulfillment information. If the
|
@@ -940,9 +1028,8 @@ module Google
|
|
940
1028
|
# SetInventoryRequest.set_mask, then any existing inventory information will be
|
941
1029
|
# preserved. Pre-existing inventory information can only be updated with
|
942
1030
|
# SetInventory, AddFulfillmentPlaces, and RemoveFulfillmentPlaces. This feature
|
943
|
-
# is only available for users who have Retail Search enabled. Please
|
944
|
-
#
|
945
|
-
# are interested in using Retail Search.
|
1031
|
+
# is only available for users who have Retail Search enabled. Please enable
|
1032
|
+
# Retail Search on Cloud Console before using this feature.
|
946
1033
|
# @param [String] name
|
947
1034
|
# Immutable. Full resource name of the product, such as `projects/*/locations/
|
948
1035
|
# global/catalogs/default_catalog/branches/default_branch/products/product_id`.
|
@@ -980,9 +1067,8 @@ module Google
|
|
980
1067
|
# asynchronous. Partial updating is not supported. The operation is successfully
|
981
1068
|
# finished only after the imported suggestions are indexed successfully and
|
982
1069
|
# ready for serving. The process takes hours. This feature is only available for
|
983
|
-
# users who have Retail Search enabled. Please
|
984
|
-
#
|
985
|
-
# using Retail Search.
|
1070
|
+
# users who have Retail Search enabled. Please enable Retail Search on Cloud
|
1071
|
+
# Console before using this feature.
|
986
1072
|
# @param [String] parent
|
987
1073
|
# Required. The catalog which the suggestions dataset belongs to. Format: `
|
988
1074
|
# projects/1234/locations/global/catalogs/default_catalog`.
|
@@ -1287,13 +1373,15 @@ module Google
|
|
1287
1373
|
# Makes a recommendation prediction.
|
1288
1374
|
# @param [String] placement
|
1289
1375
|
# Required. Full resource name of the format: `name=projects/*/locations/global/
|
1290
|
-
# catalogs/default_catalog/
|
1291
|
-
# catalogs/default_catalog/
|
1292
|
-
#
|
1293
|
-
#
|
1294
|
-
#
|
1295
|
-
#
|
1296
|
-
# google.com/
|
1376
|
+
# catalogs/default_catalog/servingConfigs/*` or `name=projects/*/locations/
|
1377
|
+
# global/catalogs/default_catalog/placements/*`. We recommend using the `
|
1378
|
+
# servingConfigs` resource. `placements` is a legacy resource. The ID of the
|
1379
|
+
# Recommendations AI serving config or placement. Before you can request
|
1380
|
+
# predictions from your model, you must create at least one serving config or
|
1381
|
+
# placement for it. For more information, see [Managing serving configurations] (
|
1382
|
+
# https://cloud.google.com/retail/docs/manage-configs). The full list of
|
1383
|
+
# available serving configs can be seen at https://console.cloud.google.com/ai/
|
1384
|
+
# retail/catalogs/default_catalog/configs
|
1297
1385
|
# @param [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPredictRequest] google_cloud_retail_v2beta_predict_request_object
|
1298
1386
|
# @param [String] fields
|
1299
1387
|
# Selector specifying which fields to include in a partial response.
|
@@ -1325,14 +1413,15 @@ module Google
|
|
1325
1413
|
end
|
1326
1414
|
|
1327
1415
|
# Performs a search. This feature is only available for users who have Retail
|
1328
|
-
# Search enabled. Please
|
1329
|
-
#
|
1416
|
+
# Search enabled. Please enable Retail Search on Cloud Console before using this
|
1417
|
+
# feature.
|
1330
1418
|
# @param [String] placement
|
1331
|
-
# Required. The resource name of the
|
1332
|
-
# /locations/global/catalogs/default_catalog/placements/default_search` or `
|
1419
|
+
# Required. The resource name of the Retail Search serving config, such as `
|
1333
1420
|
# projects/*/locations/global/catalogs/default_catalog/servingConfigs/
|
1334
|
-
# default_serving_config`
|
1335
|
-
#
|
1421
|
+
# default_serving_config` or the name of the legacy placement resource, such as `
|
1422
|
+
# projects/*/locations/global/catalogs/default_catalog/placements/default_search`
|
1423
|
+
# . This field is used to identify the serving configuration name and the set of
|
1424
|
+
# models that will be used to make the search.
|
1336
1425
|
# @param [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequest] google_cloud_retail_v2beta_search_request_object
|
1337
1426
|
# @param [String] fields
|
1338
1427
|
# Selector specifying which fields to include in a partial response.
|
@@ -1590,13 +1679,15 @@ module Google
|
|
1590
1679
|
# Makes a recommendation prediction.
|
1591
1680
|
# @param [String] placement
|
1592
1681
|
# Required. Full resource name of the format: `name=projects/*/locations/global/
|
1593
|
-
# catalogs/default_catalog/
|
1594
|
-
# catalogs/default_catalog/
|
1595
|
-
#
|
1596
|
-
#
|
1597
|
-
#
|
1598
|
-
#
|
1599
|
-
# google.com/
|
1682
|
+
# catalogs/default_catalog/servingConfigs/*` or `name=projects/*/locations/
|
1683
|
+
# global/catalogs/default_catalog/placements/*`. We recommend using the `
|
1684
|
+
# servingConfigs` resource. `placements` is a legacy resource. The ID of the
|
1685
|
+
# Recommendations AI serving config or placement. Before you can request
|
1686
|
+
# predictions from your model, you must create at least one serving config or
|
1687
|
+
# placement for it. For more information, see [Managing serving configurations] (
|
1688
|
+
# https://cloud.google.com/retail/docs/manage-configs). The full list of
|
1689
|
+
# available serving configs can be seen at https://console.cloud.google.com/ai/
|
1690
|
+
# retail/catalogs/default_catalog/configs
|
1600
1691
|
# @param [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPredictRequest] google_cloud_retail_v2beta_predict_request_object
|
1601
1692
|
# @param [String] fields
|
1602
1693
|
# Selector specifying which fields to include in a partial response.
|
@@ -1665,14 +1756,15 @@ module Google
|
|
1665
1756
|
end
|
1666
1757
|
|
1667
1758
|
# Performs a search. This feature is only available for users who have Retail
|
1668
|
-
# Search enabled. Please
|
1669
|
-
#
|
1759
|
+
# Search enabled. Please enable Retail Search on Cloud Console before using this
|
1760
|
+
# feature.
|
1670
1761
|
# @param [String] placement
|
1671
|
-
# Required. The resource name of the
|
1672
|
-
# /locations/global/catalogs/default_catalog/placements/default_search` or `
|
1762
|
+
# Required. The resource name of the Retail Search serving config, such as `
|
1673
1763
|
# projects/*/locations/global/catalogs/default_catalog/servingConfigs/
|
1674
|
-
# default_serving_config`
|
1675
|
-
#
|
1764
|
+
# default_serving_config` or the name of the legacy placement resource, such as `
|
1765
|
+
# projects/*/locations/global/catalogs/default_catalog/placements/default_search`
|
1766
|
+
# . This field is used to identify the serving configuration name and the set of
|
1767
|
+
# models that will be used to make the search.
|
1676
1768
|
# @param [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequest] google_cloud_retail_v2beta_search_request_object
|
1677
1769
|
# @param [String] fields
|
1678
1770
|
# Selector specifying which fields to include in a partial response.
|
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.
|
4
|
+
version: 0.36.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-
|
11
|
+
date: 2022-04-25 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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2beta/v0.36.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: []
|