google-apis-retail_v2 0.32.0 → 0.35.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/lib/google/apis/retail_v2/classes.rb +311 -27
- data/lib/google/apis/retail_v2/gem_version.rb +2 -2
- data/lib/google/apis/retail_v2/representations.rb +147 -0
- data/lib/google/apis/retail_v2/service.rb +134 -42
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 530f53f799eda6665eb83ac1b7e46cad9132092a5beaf31a8efd981ca78d55e0
|
4
|
+
data.tar.gz: 0d5c6a488b5f2e3c9bafec0af8a1e72075aa0cb098b7597a40f5ab7000522891
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f3e416aaf3950c7426053919eb5c9bd38622a339992059bd058e897007d714e2ba8ec91b0acc64310ac3ec311e8944afa82852ae7d3e0557162dc31fc179c35
|
7
|
+
data.tar.gz: 78d37620b41ee26b09aaf923fba197ebde44380e26853e939d9759009732d9cc2d17cda1b2150ac037b8f41e43b040a1379b46ea9101d8dd9bfd8d804e9d595b
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Release history for google-apis-retail_v2
|
2
2
|
|
3
|
+
### v0.35.0 (2022-04-22)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220414
|
6
|
+
|
7
|
+
### v0.34.0 (2022-04-14)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20220408
|
10
|
+
|
11
|
+
### v0.33.0 (2022-03-31)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20220324
|
14
|
+
|
3
15
|
### v0.32.0 (2022-03-24)
|
4
16
|
|
5
17
|
* Regenerated from discovery document revision 20220319
|
@@ -364,6 +364,86 @@ module Google
|
|
364
364
|
end
|
365
365
|
end
|
366
366
|
|
367
|
+
# Metadata related to the progress of the AddLocalInventories operation.
|
368
|
+
# Currently empty because there is no meaningful metadata populated from the
|
369
|
+
# AddLocalInventories method.
|
370
|
+
class GoogleCloudRetailV2AddLocalInventoriesMetadata
|
371
|
+
include Google::Apis::Core::Hashable
|
372
|
+
|
373
|
+
def initialize(**args)
|
374
|
+
update!(**args)
|
375
|
+
end
|
376
|
+
|
377
|
+
# Update properties of this object
|
378
|
+
def update!(**args)
|
379
|
+
end
|
380
|
+
end
|
381
|
+
|
382
|
+
# Request message for AddLocalInventories method.
|
383
|
+
class GoogleCloudRetailV2AddLocalInventoriesRequest
|
384
|
+
include Google::Apis::Core::Hashable
|
385
|
+
|
386
|
+
# Indicates which inventory fields in the provided list of LocalInventory to
|
387
|
+
# update. The field is updated to the provided value. If a field is set while
|
388
|
+
# the place does not have a previous local inventory, the local inventory at
|
389
|
+
# that store is created. If a field is set while the value of that field is not
|
390
|
+
# provided, the original field value, if it exists, is deleted. If the mask is
|
391
|
+
# not set or set with empty paths, all inventory fields will be updated. If an
|
392
|
+
# unsupported or unknown field is provided, an INVALID_ARGUMENT error is
|
393
|
+
# returned and the entire update will be ignored.
|
394
|
+
# Corresponds to the JSON property `addMask`
|
395
|
+
# @return [String]
|
396
|
+
attr_accessor :add_mask
|
397
|
+
|
398
|
+
# The time when the inventory updates are issued. Used to prevent out-of-order
|
399
|
+
# updates on local inventory fields. If not provided, the internal system time
|
400
|
+
# will be used.
|
401
|
+
# Corresponds to the JSON property `addTime`
|
402
|
+
# @return [String]
|
403
|
+
attr_accessor :add_time
|
404
|
+
|
405
|
+
# If set to true, and the Product is not found, the local inventory will still
|
406
|
+
# be processed and retained for at most 1 day and processed once the Product is
|
407
|
+
# created. If set to false, a NOT_FOUND error is returned if the Product is not
|
408
|
+
# found.
|
409
|
+
# Corresponds to the JSON property `allowMissing`
|
410
|
+
# @return [Boolean]
|
411
|
+
attr_accessor :allow_missing
|
412
|
+
alias_method :allow_missing?, :allow_missing
|
413
|
+
|
414
|
+
# Required. A list of inventory information at difference places. Each place is
|
415
|
+
# identified by its place ID. At most 3000 inventories are allowed per request.
|
416
|
+
# Corresponds to the JSON property `localInventories`
|
417
|
+
# @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2LocalInventory>]
|
418
|
+
attr_accessor :local_inventories
|
419
|
+
|
420
|
+
def initialize(**args)
|
421
|
+
update!(**args)
|
422
|
+
end
|
423
|
+
|
424
|
+
# Update properties of this object
|
425
|
+
def update!(**args)
|
426
|
+
@add_mask = args[:add_mask] if args.key?(:add_mask)
|
427
|
+
@add_time = args[:add_time] if args.key?(:add_time)
|
428
|
+
@allow_missing = args[:allow_missing] if args.key?(:allow_missing)
|
429
|
+
@local_inventories = args[:local_inventories] if args.key?(:local_inventories)
|
430
|
+
end
|
431
|
+
end
|
432
|
+
|
433
|
+
# Response of the AddLocalInventories API. Currently empty because there is no
|
434
|
+
# meaningful response populated from the AddLocalInventories method.
|
435
|
+
class GoogleCloudRetailV2AddLocalInventoriesResponse
|
436
|
+
include Google::Apis::Core::Hashable
|
437
|
+
|
438
|
+
def initialize(**args)
|
439
|
+
update!(**args)
|
440
|
+
end
|
441
|
+
|
442
|
+
# Update properties of this object
|
443
|
+
def update!(**args)
|
444
|
+
end
|
445
|
+
end
|
446
|
+
|
367
447
|
# An intended audience of the Product for whom it's sold.
|
368
448
|
class GoogleCloudRetailV2Audience
|
369
449
|
include Google::Apis::Core::Hashable
|
@@ -1029,11 +1109,15 @@ module Google
|
|
1029
1109
|
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2ProductInputConfig]
|
1030
1110
|
attr_accessor :input_config
|
1031
1111
|
|
1032
|
-
# Pub/Sub topic for receiving notification. If this field is set, when
|
1033
|
-
# import is finished, a notification will be sent to specified Pub/Sub topic.
|
1112
|
+
# Full Pub/Sub topic name for receiving notification. If this field is set, when
|
1113
|
+
# the import is finished, a notification will be sent to specified Pub/Sub topic.
|
1034
1114
|
# The message data will be JSON string of a Operation. Format of the Pub/Sub
|
1035
|
-
# topic is `projects/`project`/topics/`topic``.
|
1036
|
-
# ImportProductsRequest.
|
1115
|
+
# topic is `projects/`project`/topics/`topic``. It has to be within the same
|
1116
|
+
# project as ImportProductsRequest.parent. Make sure that both `cloud-retail-
|
1117
|
+
# customer-data-access@system.gserviceaccount.com` and `service-@gcp-sa-retail.
|
1118
|
+
# iam.gserviceaccount.com` have the `pubsub.topics.publish` IAM permission on
|
1119
|
+
# the topic. Only supported when ImportProductsRequest.reconciliation_mode is
|
1120
|
+
# set to `FULL`.
|
1037
1121
|
# Corresponds to the JSON property `notificationPubsubTopic`
|
1038
1122
|
# @return [String]
|
1039
1123
|
attr_accessor :notification_pubsub_topic
|
@@ -1245,6 +1329,59 @@ module Google
|
|
1245
1329
|
end
|
1246
1330
|
end
|
1247
1331
|
|
1332
|
+
# The inventory information at a place (e.g. a store) identified by a place ID.
|
1333
|
+
class GoogleCloudRetailV2LocalInventory
|
1334
|
+
include Google::Apis::Core::Hashable
|
1335
|
+
|
1336
|
+
# Additional local inventory attributes, for example, store name, promotion tags,
|
1337
|
+
# etc. This field needs to pass all below criteria, otherwise an
|
1338
|
+
# INVALID_ARGUMENT error is returned: * At most 30 attributes are allowed. * The
|
1339
|
+
# key must be a UTF-8 encoded string with a length limit of 32 characters. * The
|
1340
|
+
# key must match the pattern: `a-zA-Z0-9*`. For example, key0LikeThis or
|
1341
|
+
# KEY_1_LIKE_THIS. * The attribute values must be of the same type (text or
|
1342
|
+
# number). * Only 1 value is allowed for each attribute. * For text values, the
|
1343
|
+
# length limit is 256 UTF-8 characters. * The attribute does not support search.
|
1344
|
+
# The `searchable` field should be unset or set to false. * The max summed total
|
1345
|
+
# bytes of custom attribute keys and values per product is 5MiB.
|
1346
|
+
# Corresponds to the JSON property `attributes`
|
1347
|
+
# @return [Hash<String,Google::Apis::RetailV2::GoogleCloudRetailV2CustomAttribute>]
|
1348
|
+
attr_accessor :attributes
|
1349
|
+
|
1350
|
+
# Input only. Supported fulfillment types. Valid fulfillment type values include
|
1351
|
+
# commonly used types (such as pickup in store and same day delivery), and
|
1352
|
+
# custom types. Customers have to map custom types to their display names before
|
1353
|
+
# rendering UI. Supported values: * "pickup-in-store" * "ship-to-store" * "same-
|
1354
|
+
# day-delivery" * "next-day-delivery" * "custom-type-1" * "custom-type-2" * "
|
1355
|
+
# custom-type-3" * "custom-type-4" * "custom-type-5" If this field is set to an
|
1356
|
+
# invalid value other than these, an INVALID_ARGUMENT error is returned. All the
|
1357
|
+
# elements must be distinct. Otherwise, an INVALID_ARGUMENT error is returned.
|
1358
|
+
# Corresponds to the JSON property `fulfillmentTypes`
|
1359
|
+
# @return [Array<String>]
|
1360
|
+
attr_accessor :fulfillment_types
|
1361
|
+
|
1362
|
+
# The place ID for the current set of inventory information.
|
1363
|
+
# Corresponds to the JSON property `placeId`
|
1364
|
+
# @return [String]
|
1365
|
+
attr_accessor :place_id
|
1366
|
+
|
1367
|
+
# The price information of a Product.
|
1368
|
+
# Corresponds to the JSON property `priceInfo`
|
1369
|
+
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2PriceInfo]
|
1370
|
+
attr_accessor :price_info
|
1371
|
+
|
1372
|
+
def initialize(**args)
|
1373
|
+
update!(**args)
|
1374
|
+
end
|
1375
|
+
|
1376
|
+
# Update properties of this object
|
1377
|
+
def update!(**args)
|
1378
|
+
@attributes = args[:attributes] if args.key?(:attributes)
|
1379
|
+
@fulfillment_types = args[:fulfillment_types] if args.key?(:fulfillment_types)
|
1380
|
+
@place_id = args[:place_id] if args.key?(:place_id)
|
1381
|
+
@price_info = args[:price_info] if args.key?(:price_info)
|
1382
|
+
end
|
1383
|
+
end
|
1384
|
+
|
1248
1385
|
# Request message for Predict method.
|
1249
1386
|
class GoogleCloudRetailV2PredictRequest
|
1250
1387
|
include Google::Apis::Core::Hashable
|
@@ -1440,7 +1577,8 @@ module Google
|
|
1440
1577
|
attr_accessor :currency_code
|
1441
1578
|
|
1442
1579
|
# Price of the product without any discount. If zero, by default set to be the
|
1443
|
-
# price.
|
1580
|
+
# price. If set, original_price should be greater than or equal to price,
|
1581
|
+
# otherwise an INVALID_ARGUMENT error is thrown.
|
1444
1582
|
# Corresponds to the JSON property `originalPrice`
|
1445
1583
|
# @return [Float]
|
1446
1584
|
attr_accessor :original_price
|
@@ -1976,13 +2114,13 @@ module Google
|
|
1976
2114
|
# The type of Products allowed to be ingested into the catalog. Acceptable
|
1977
2115
|
# values are: * `primary` (default): You can ingest Products of all types. When
|
1978
2116
|
# ingesting a Product, its type will default to Product.Type.PRIMARY if unset. *
|
1979
|
-
# `variant
|
1980
|
-
# Product.primary_product_id cannot be empty. If
|
1981
|
-
# value other than these, an INVALID_ARGUMENT
|
1982
|
-
# is
|
1983
|
-
#
|
1984
|
-
# google.com/retail/
|
1985
|
-
# details.
|
2117
|
+
# `variant` (incompatible with Retail Search): You can only ingest Product.Type.
|
2118
|
+
# VARIANT Products. This means Product.primary_product_id cannot be empty. If
|
2119
|
+
# this field is set to an invalid value other than these, an INVALID_ARGUMENT
|
2120
|
+
# error is returned. If this field is `variant` and
|
2121
|
+
# merchant_center_product_id_field is `itemGroupId`, an INVALID_ARGUMENT error
|
2122
|
+
# is returned. See [Product levels](https://cloud.google.com/retail/docs/catalog#
|
2123
|
+
# product-levels) for more details.
|
1986
2124
|
# Corresponds to the JSON property `ingestionProductType`
|
1987
2125
|
# @return [String]
|
1988
2126
|
attr_accessor :ingestion_product_type
|
@@ -1995,8 +2133,8 @@ module Google
|
|
1995
2133
|
# the item group. If this field is set to an invalid value other than these, an
|
1996
2134
|
# INVALID_ARGUMENT error is returned. If this field is `itemGroupId` and
|
1997
2135
|
# ingestion_product_type is `variant`, an INVALID_ARGUMENT error is returned.
|
1998
|
-
# See [
|
1999
|
-
#
|
2136
|
+
# See [Product levels](https://cloud.google.com/retail/docs/catalog#product-
|
2137
|
+
# levels) for more details.
|
2000
2138
|
# Corresponds to the JSON property `merchantCenterProductIdField`
|
2001
2139
|
# @return [String]
|
2002
2140
|
attr_accessor :merchant_center_product_id_field
|
@@ -2330,6 +2468,73 @@ module Google
|
|
2330
2468
|
end
|
2331
2469
|
end
|
2332
2470
|
|
2471
|
+
# Metadata related to the progress of the RemoveLocalInventories operation.
|
2472
|
+
# Currently empty because there is no meaningful metadata populated from the
|
2473
|
+
# RemoveLocalInventories method.
|
2474
|
+
class GoogleCloudRetailV2RemoveLocalInventoriesMetadata
|
2475
|
+
include Google::Apis::Core::Hashable
|
2476
|
+
|
2477
|
+
def initialize(**args)
|
2478
|
+
update!(**args)
|
2479
|
+
end
|
2480
|
+
|
2481
|
+
# Update properties of this object
|
2482
|
+
def update!(**args)
|
2483
|
+
end
|
2484
|
+
end
|
2485
|
+
|
2486
|
+
# Request message for RemoveLocalInventories method.
|
2487
|
+
class GoogleCloudRetailV2RemoveLocalInventoriesRequest
|
2488
|
+
include Google::Apis::Core::Hashable
|
2489
|
+
|
2490
|
+
# If set to true, and the Product is not found, the local inventory removal
|
2491
|
+
# request will still be processed and retained for at most 1 day and processed
|
2492
|
+
# once the Product is created. If set to false, a NOT_FOUND error is returned if
|
2493
|
+
# the Product is not found.
|
2494
|
+
# Corresponds to the JSON property `allowMissing`
|
2495
|
+
# @return [Boolean]
|
2496
|
+
attr_accessor :allow_missing
|
2497
|
+
alias_method :allow_missing?, :allow_missing
|
2498
|
+
|
2499
|
+
# Required. A list of place IDs to have their inventory deleted. At most 3000
|
2500
|
+
# place IDs are allowed per request.
|
2501
|
+
# Corresponds to the JSON property `placeIds`
|
2502
|
+
# @return [Array<String>]
|
2503
|
+
attr_accessor :place_ids
|
2504
|
+
|
2505
|
+
# The time when the inventory deletions are issued. Used to prevent out-of-order
|
2506
|
+
# updates and deletions on local inventory fields. If not provided, the internal
|
2507
|
+
# system time will be used.
|
2508
|
+
# Corresponds to the JSON property `removeTime`
|
2509
|
+
# @return [String]
|
2510
|
+
attr_accessor :remove_time
|
2511
|
+
|
2512
|
+
def initialize(**args)
|
2513
|
+
update!(**args)
|
2514
|
+
end
|
2515
|
+
|
2516
|
+
# Update properties of this object
|
2517
|
+
def update!(**args)
|
2518
|
+
@allow_missing = args[:allow_missing] if args.key?(:allow_missing)
|
2519
|
+
@place_ids = args[:place_ids] if args.key?(:place_ids)
|
2520
|
+
@remove_time = args[:remove_time] if args.key?(:remove_time)
|
2521
|
+
end
|
2522
|
+
end
|
2523
|
+
|
2524
|
+
# Response of the RemoveLocalInventories API. Currently empty because there is
|
2525
|
+
# no meaningful response populated from the RemoveLocalInventories method.
|
2526
|
+
class GoogleCloudRetailV2RemoveLocalInventoriesResponse
|
2527
|
+
include Google::Apis::Core::Hashable
|
2528
|
+
|
2529
|
+
def initialize(**args)
|
2530
|
+
update!(**args)
|
2531
|
+
end
|
2532
|
+
|
2533
|
+
# Update properties of this object
|
2534
|
+
def update!(**args)
|
2535
|
+
end
|
2536
|
+
end
|
2537
|
+
|
2333
2538
|
# Request message for SearchService.Search method.
|
2334
2539
|
class GoogleCloudRetailV2SearchRequest
|
2335
2540
|
include Google::Apis::Core::Hashable
|
@@ -2378,6 +2583,21 @@ module Google
|
|
2378
2583
|
# @return [String]
|
2379
2584
|
attr_accessor :filter
|
2380
2585
|
|
2586
|
+
# The labels applied to a resource must meet the following requirements: * Each
|
2587
|
+
# resource can have multiple labels, up to a maximum of 64. * Each label must be
|
2588
|
+
# a key-value pair. * Keys have a minimum length of 1 character and a maximum
|
2589
|
+
# length of 63 characters, and cannot be empty. Values can be empty, and have a
|
2590
|
+
# maximum length of 63 characters. * Keys and values can contain only lowercase
|
2591
|
+
# letters, numeric characters, underscores, and dashes. All characters must use
|
2592
|
+
# UTF-8 encoding, and international characters are allowed. * The key portion of
|
2593
|
+
# a label must be unique. However, you can use the same key with multiple
|
2594
|
+
# resources. * Keys must start with a lowercase letter or international
|
2595
|
+
# character. See [Google Cloud Document](https://cloud.google.com/resource-
|
2596
|
+
# manager/docs/creating-managing-labels#requirements) for more details.
|
2597
|
+
# Corresponds to the JSON property `labels`
|
2598
|
+
# @return [Hash<String,String>]
|
2599
|
+
attr_accessor :labels
|
2600
|
+
|
2381
2601
|
# A 0-indexed integer that specifies the current offset (that is, starting
|
2382
2602
|
# result location, amongst the Products deemed by the API as relevant) in search
|
2383
2603
|
# results. This field is only considered if page_token is unset. If this field
|
@@ -2427,7 +2647,8 @@ module Google
|
|
2427
2647
|
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestPersonalizationSpec]
|
2428
2648
|
attr_accessor :personalization_spec
|
2429
2649
|
|
2430
|
-
# Raw search query.
|
2650
|
+
# Raw search query. If this field is empty, the request is considered a category
|
2651
|
+
# browsing request and returned results are based on filter and page_categories.
|
2431
2652
|
# Corresponds to the JSON property `query`
|
2432
2653
|
# @return [String]
|
2433
2654
|
attr_accessor :query
|
@@ -2500,6 +2721,7 @@ module Google
|
|
2500
2721
|
@dynamic_facet_spec = args[:dynamic_facet_spec] if args.key?(:dynamic_facet_spec)
|
2501
2722
|
@facet_specs = args[:facet_specs] if args.key?(:facet_specs)
|
2502
2723
|
@filter = args[:filter] if args.key?(:filter)
|
2724
|
+
@labels = args[:labels] if args.key?(:labels)
|
2503
2725
|
@offset = args[:offset] if args.key?(:offset)
|
2504
2726
|
@order_by = args[:order_by] if args.key?(:order_by)
|
2505
2727
|
@page_categories = args[:page_categories] if args.key?(:page_categories)
|
@@ -3347,10 +3569,12 @@ module Google
|
|
3347
3569
|
# Required. A unique identifier for tracking visitors. For example, this could
|
3348
3570
|
# be implemented with an HTTP cookie, which should be able to uniquely identify
|
3349
3571
|
# a visitor on a single device. This unique identifier should not change if the
|
3350
|
-
# visitor log in/out of the website.
|
3351
|
-
#
|
3352
|
-
#
|
3353
|
-
#
|
3572
|
+
# visitor log in/out of the website. Don't set the field to the same fixed ID
|
3573
|
+
# for different users. This mixes the event history of those users together,
|
3574
|
+
# which results in degraded model quality. The field must be a UTF-8 encoded
|
3575
|
+
# string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT
|
3576
|
+
# error is returned. The field should not contain PII or user-data. We recommend
|
3577
|
+
# to use Google Analystics [Client ID](https://developers.google.com/analytics/
|
3354
3578
|
# devguides/collection/analyticsjs/field-reference#clientId) for this field.
|
3355
3579
|
# Corresponds to the JSON property `visitorId`
|
3356
3580
|
# @return [String]
|
@@ -3477,13 +3701,12 @@ module Google
|
|
3477
3701
|
attr_accessor :direct_user_request
|
3478
3702
|
alias_method :direct_user_request?, :direct_user_request
|
3479
3703
|
|
3480
|
-
# The end user's IP address.
|
3481
|
-
#
|
3482
|
-
#
|
3483
|
-
#
|
3484
|
-
#
|
3485
|
-
#
|
3486
|
-
# direct_user_request is set.
|
3704
|
+
# The end user's IP address. This field is used to extract location information
|
3705
|
+
# for personalization. This field must be either an IPv4 address (e.g. "104.133.
|
3706
|
+
# 9.80") or an IPv6 address (e.g. "2001:0db8:85a3:0000:0000:8a2e:0370:7334").
|
3707
|
+
# Otherwise, an INVALID_ARGUMENT error is returned. This should not be set when:
|
3708
|
+
# * setting SearchRequest.user_info. * using the JavaScript tag in
|
3709
|
+
# UserEventService.CollectUserEvent or if direct_user_request is set.
|
3487
3710
|
# Corresponds to the JSON property `ipAddress`
|
3488
3711
|
# @return [String]
|
3489
3712
|
attr_accessor :ip_address
|
@@ -3499,7 +3722,10 @@ module Google
|
|
3499
3722
|
attr_accessor :user_agent
|
3500
3723
|
|
3501
3724
|
# Highly recommended for logged-in users. Unique identifier for logged-in user,
|
3502
|
-
# such as a user name.
|
3725
|
+
# such as a user name. Don't set for anonymous users. Always use a hashed value
|
3726
|
+
# for this ID. Don't set the field to the same fixed ID for different users.
|
3727
|
+
# This mixes the event history of those users together, which results in
|
3728
|
+
# degraded model quality. The field must be a UTF-8 encoded string with a length
|
3503
3729
|
# limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.
|
3504
3730
|
# Corresponds to the JSON property `userId`
|
3505
3731
|
# @return [String]
|
@@ -4113,6 +4339,35 @@ module Google
|
|
4113
4339
|
end
|
4114
4340
|
end
|
4115
4341
|
|
4342
|
+
# Metadata related to the progress of the AddLocalInventories operation.
|
4343
|
+
# Currently empty because there is no meaningful metadata populated from the
|
4344
|
+
# AddLocalInventories method.
|
4345
|
+
class GoogleCloudRetailV2betaAddLocalInventoriesMetadata
|
4346
|
+
include Google::Apis::Core::Hashable
|
4347
|
+
|
4348
|
+
def initialize(**args)
|
4349
|
+
update!(**args)
|
4350
|
+
end
|
4351
|
+
|
4352
|
+
# Update properties of this object
|
4353
|
+
def update!(**args)
|
4354
|
+
end
|
4355
|
+
end
|
4356
|
+
|
4357
|
+
# Response of the AddLocalInventories API. Currently empty because there is no
|
4358
|
+
# meaningful response populated from the AddLocalInventories method.
|
4359
|
+
class GoogleCloudRetailV2betaAddLocalInventoriesResponse
|
4360
|
+
include Google::Apis::Core::Hashable
|
4361
|
+
|
4362
|
+
def initialize(**args)
|
4363
|
+
update!(**args)
|
4364
|
+
end
|
4365
|
+
|
4366
|
+
# Update properties of this object
|
4367
|
+
def update!(**args)
|
4368
|
+
end
|
4369
|
+
end
|
4370
|
+
|
4116
4371
|
# Configuration of destination for Export related errors.
|
4117
4372
|
class GoogleCloudRetailV2betaExportErrorsConfig
|
4118
4373
|
include Google::Apis::Core::Hashable
|
@@ -4468,6 +4723,35 @@ module Google
|
|
4468
4723
|
end
|
4469
4724
|
end
|
4470
4725
|
|
4726
|
+
# Metadata related to the progress of the RemoveLocalInventories operation.
|
4727
|
+
# Currently empty because there is no meaningful metadata populated from the
|
4728
|
+
# RemoveLocalInventories method.
|
4729
|
+
class GoogleCloudRetailV2betaRemoveLocalInventoriesMetadata
|
4730
|
+
include Google::Apis::Core::Hashable
|
4731
|
+
|
4732
|
+
def initialize(**args)
|
4733
|
+
update!(**args)
|
4734
|
+
end
|
4735
|
+
|
4736
|
+
# Update properties of this object
|
4737
|
+
def update!(**args)
|
4738
|
+
end
|
4739
|
+
end
|
4740
|
+
|
4741
|
+
# Response of the RemoveLocalInventories API. Currently empty because there is
|
4742
|
+
# no meaningful response populated from the RemoveLocalInventories method.
|
4743
|
+
class GoogleCloudRetailV2betaRemoveLocalInventoriesResponse
|
4744
|
+
include Google::Apis::Core::Hashable
|
4745
|
+
|
4746
|
+
def initialize(**args)
|
4747
|
+
update!(**args)
|
4748
|
+
end
|
4749
|
+
|
4750
|
+
# Update properties of this object
|
4751
|
+
def update!(**args)
|
4752
|
+
end
|
4753
|
+
end
|
4754
|
+
|
4471
4755
|
# Metadata related to the progress of the SetInventory operation. Currently
|
4472
4756
|
# empty because there is no meaningful metadata populated from the SetInventory
|
4473
4757
|
# method.
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module RetailV2
|
18
18
|
# Version of the google-apis-retail_v2 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.35.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
|
@@ -82,6 +82,24 @@ module Google
|
|
82
82
|
include Google::Apis::Core::JsonObjectSupport
|
83
83
|
end
|
84
84
|
|
85
|
+
class GoogleCloudRetailV2AddLocalInventoriesMetadata
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
90
|
+
|
91
|
+
class GoogleCloudRetailV2AddLocalInventoriesRequest
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
|
+
end
|
96
|
+
|
97
|
+
class GoogleCloudRetailV2AddLocalInventoriesResponse
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
+
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
101
|
+
end
|
102
|
+
|
85
103
|
class GoogleCloudRetailV2Audience
|
86
104
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
105
|
|
@@ -232,6 +250,12 @@ module Google
|
|
232
250
|
include Google::Apis::Core::JsonObjectSupport
|
233
251
|
end
|
234
252
|
|
253
|
+
class GoogleCloudRetailV2LocalInventory
|
254
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
255
|
+
|
256
|
+
include Google::Apis::Core::JsonObjectSupport
|
257
|
+
end
|
258
|
+
|
235
259
|
class GoogleCloudRetailV2PredictRequest
|
236
260
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
237
261
|
|
@@ -364,6 +388,24 @@ module Google
|
|
364
388
|
include Google::Apis::Core::JsonObjectSupport
|
365
389
|
end
|
366
390
|
|
391
|
+
class GoogleCloudRetailV2RemoveLocalInventoriesMetadata
|
392
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
393
|
+
|
394
|
+
include Google::Apis::Core::JsonObjectSupport
|
395
|
+
end
|
396
|
+
|
397
|
+
class GoogleCloudRetailV2RemoveLocalInventoriesRequest
|
398
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
399
|
+
|
400
|
+
include Google::Apis::Core::JsonObjectSupport
|
401
|
+
end
|
402
|
+
|
403
|
+
class GoogleCloudRetailV2RemoveLocalInventoriesResponse
|
404
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
405
|
+
|
406
|
+
include Google::Apis::Core::JsonObjectSupport
|
407
|
+
end
|
408
|
+
|
367
409
|
class GoogleCloudRetailV2SearchRequest
|
368
410
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
369
411
|
|
@@ -664,6 +706,18 @@ module Google
|
|
664
706
|
include Google::Apis::Core::JsonObjectSupport
|
665
707
|
end
|
666
708
|
|
709
|
+
class GoogleCloudRetailV2betaAddLocalInventoriesMetadata
|
710
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
711
|
+
|
712
|
+
include Google::Apis::Core::JsonObjectSupport
|
713
|
+
end
|
714
|
+
|
715
|
+
class GoogleCloudRetailV2betaAddLocalInventoriesResponse
|
716
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
717
|
+
|
718
|
+
include Google::Apis::Core::JsonObjectSupport
|
719
|
+
end
|
720
|
+
|
667
721
|
class GoogleCloudRetailV2betaExportErrorsConfig
|
668
722
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
669
723
|
|
@@ -754,6 +808,18 @@ module Google
|
|
754
808
|
include Google::Apis::Core::JsonObjectSupport
|
755
809
|
end
|
756
810
|
|
811
|
+
class GoogleCloudRetailV2betaRemoveLocalInventoriesMetadata
|
812
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
813
|
+
|
814
|
+
include Google::Apis::Core::JsonObjectSupport
|
815
|
+
end
|
816
|
+
|
817
|
+
class GoogleCloudRetailV2betaRemoveLocalInventoriesResponse
|
818
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
819
|
+
|
820
|
+
include Google::Apis::Core::JsonObjectSupport
|
821
|
+
end
|
822
|
+
|
757
823
|
class GoogleCloudRetailV2betaSetInventoryMetadata
|
758
824
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
759
825
|
|
@@ -893,6 +959,29 @@ module Google
|
|
893
959
|
end
|
894
960
|
end
|
895
961
|
|
962
|
+
class GoogleCloudRetailV2AddLocalInventoriesMetadata
|
963
|
+
# @private
|
964
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
965
|
+
end
|
966
|
+
end
|
967
|
+
|
968
|
+
class GoogleCloudRetailV2AddLocalInventoriesRequest
|
969
|
+
# @private
|
970
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
971
|
+
property :add_mask, as: 'addMask'
|
972
|
+
property :add_time, as: 'addTime'
|
973
|
+
property :allow_missing, as: 'allowMissing'
|
974
|
+
collection :local_inventories, as: 'localInventories', class: Google::Apis::RetailV2::GoogleCloudRetailV2LocalInventory, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2LocalInventory::Representation
|
975
|
+
|
976
|
+
end
|
977
|
+
end
|
978
|
+
|
979
|
+
class GoogleCloudRetailV2AddLocalInventoriesResponse
|
980
|
+
# @private
|
981
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
982
|
+
end
|
983
|
+
end
|
984
|
+
|
896
985
|
class GoogleCloudRetailV2Audience
|
897
986
|
# @private
|
898
987
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1130,6 +1219,18 @@ module Google
|
|
1130
1219
|
end
|
1131
1220
|
end
|
1132
1221
|
|
1222
|
+
class GoogleCloudRetailV2LocalInventory
|
1223
|
+
# @private
|
1224
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1225
|
+
hash :attributes, as: 'attributes', class: Google::Apis::RetailV2::GoogleCloudRetailV2CustomAttribute, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2CustomAttribute::Representation
|
1226
|
+
|
1227
|
+
collection :fulfillment_types, as: 'fulfillmentTypes'
|
1228
|
+
property :place_id, as: 'placeId'
|
1229
|
+
property :price_info, as: 'priceInfo', class: Google::Apis::RetailV2::GoogleCloudRetailV2PriceInfo, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2PriceInfo::Representation
|
1230
|
+
|
1231
|
+
end
|
1232
|
+
end
|
1233
|
+
|
1133
1234
|
class GoogleCloudRetailV2PredictRequest
|
1134
1235
|
# @private
|
1135
1236
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1362,6 +1463,27 @@ module Google
|
|
1362
1463
|
end
|
1363
1464
|
end
|
1364
1465
|
|
1466
|
+
class GoogleCloudRetailV2RemoveLocalInventoriesMetadata
|
1467
|
+
# @private
|
1468
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1469
|
+
end
|
1470
|
+
end
|
1471
|
+
|
1472
|
+
class GoogleCloudRetailV2RemoveLocalInventoriesRequest
|
1473
|
+
# @private
|
1474
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1475
|
+
property :allow_missing, as: 'allowMissing'
|
1476
|
+
collection :place_ids, as: 'placeIds'
|
1477
|
+
property :remove_time, as: 'removeTime'
|
1478
|
+
end
|
1479
|
+
end
|
1480
|
+
|
1481
|
+
class GoogleCloudRetailV2RemoveLocalInventoriesResponse
|
1482
|
+
# @private
|
1483
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1484
|
+
end
|
1485
|
+
end
|
1486
|
+
|
1365
1487
|
class GoogleCloudRetailV2SearchRequest
|
1366
1488
|
# @private
|
1367
1489
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1374,6 +1496,7 @@ module Google
|
|
1374
1496
|
collection :facet_specs, as: 'facetSpecs', class: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestFacetSpec, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestFacetSpec::Representation
|
1375
1497
|
|
1376
1498
|
property :filter, as: 'filter'
|
1499
|
+
hash :labels, as: 'labels'
|
1377
1500
|
property :offset, as: 'offset'
|
1378
1501
|
property :order_by, as: 'orderBy'
|
1379
1502
|
collection :page_categories, as: 'pageCategories'
|
@@ -1825,6 +1948,18 @@ module Google
|
|
1825
1948
|
end
|
1826
1949
|
end
|
1827
1950
|
|
1951
|
+
class GoogleCloudRetailV2betaAddLocalInventoriesMetadata
|
1952
|
+
# @private
|
1953
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1954
|
+
end
|
1955
|
+
end
|
1956
|
+
|
1957
|
+
class GoogleCloudRetailV2betaAddLocalInventoriesResponse
|
1958
|
+
# @private
|
1959
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1960
|
+
end
|
1961
|
+
end
|
1962
|
+
|
1828
1963
|
class GoogleCloudRetailV2betaExportErrorsConfig
|
1829
1964
|
# @private
|
1830
1965
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1947,6 +2082,18 @@ module Google
|
|
1947
2082
|
end
|
1948
2083
|
end
|
1949
2084
|
|
2085
|
+
class GoogleCloudRetailV2betaRemoveLocalInventoriesMetadata
|
2086
|
+
# @private
|
2087
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2088
|
+
end
|
2089
|
+
end
|
2090
|
+
|
2091
|
+
class GoogleCloudRetailV2betaRemoveLocalInventoriesResponse
|
2092
|
+
# @private
|
2093
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2094
|
+
end
|
2095
|
+
end
|
2096
|
+
|
1950
2097
|
class GoogleCloudRetailV2betaSetInventoryMetadata
|
1951
2098
|
# @private
|
1952
2099
|
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
|
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`.
|
@@ -326,9 +325,8 @@ module Google
|
|
326
325
|
# enqueued and processed downstream. As a consequence, when a response is
|
327
326
|
# returned, the added place IDs are not immediately manifested in the Product
|
328
327
|
# queried by GetProduct or ListProducts. This feature is only available for
|
329
|
-
# users who have Retail Search enabled. Please
|
330
|
-
#
|
331
|
-
# using Retail Search.
|
328
|
+
# users who have Retail Search enabled. Please enable Retail Search on Cloud
|
329
|
+
# Console before using this feature.
|
332
330
|
# @param [String] product
|
333
331
|
# Required. Full resource name of Product, such as `projects/*/locations/global/
|
334
332
|
# catalogs/default_catalog/branches/default_branch/products/some_product_id`. If
|
@@ -364,6 +362,51 @@ module Google
|
|
364
362
|
execute_or_queue_command(command, &block)
|
365
363
|
end
|
366
364
|
|
365
|
+
# Updates local inventory information for a Product at a list of places, while
|
366
|
+
# respecting the last update timestamps of each inventory field. This process is
|
367
|
+
# asynchronous and does not require the Product to exist before updating
|
368
|
+
# inventory information. If the request is valid, the update will be enqueued
|
369
|
+
# and processed downstream. As a consequence, when a response is returned,
|
370
|
+
# updates are not immediately manifested in the Product queried by GetProduct or
|
371
|
+
# ListProducts. Local inventory information can only be modified using this
|
372
|
+
# method. CreateProduct and UpdateProduct has no effect on local inventories.
|
373
|
+
# This feature is only available for users who have Retail Search enabled.
|
374
|
+
# Please enable Retail Search on Cloud Console before using this feature.
|
375
|
+
# @param [String] product
|
376
|
+
# Required. Full resource name of Product, such as `projects/*/locations/global/
|
377
|
+
# catalogs/default_catalog/branches/default_branch/products/some_product_id`. If
|
378
|
+
# the caller does not have permission to access the Product, regardless of
|
379
|
+
# whether or not it exists, a PERMISSION_DENIED error is returned.
|
380
|
+
# @param [Google::Apis::RetailV2::GoogleCloudRetailV2AddLocalInventoriesRequest] google_cloud_retail_v2_add_local_inventories_request_object
|
381
|
+
# @param [String] fields
|
382
|
+
# Selector specifying which fields to include in a partial response.
|
383
|
+
# @param [String] quota_user
|
384
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
385
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
386
|
+
# @param [Google::Apis::RequestOptions] options
|
387
|
+
# Request-specific options
|
388
|
+
#
|
389
|
+
# @yield [result, err] Result & error if block supplied
|
390
|
+
# @yieldparam result [Google::Apis::RetailV2::GoogleLongrunningOperation] parsed result object
|
391
|
+
# @yieldparam err [StandardError] error object if request failed
|
392
|
+
#
|
393
|
+
# @return [Google::Apis::RetailV2::GoogleLongrunningOperation]
|
394
|
+
#
|
395
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
396
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
397
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
398
|
+
def add_project_location_catalog_branch_product_local_inventories(product, google_cloud_retail_v2_add_local_inventories_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
399
|
+
command = make_simple_command(:post, 'v2/{+product}:addLocalInventories', options)
|
400
|
+
command.request_representation = Google::Apis::RetailV2::GoogleCloudRetailV2AddLocalInventoriesRequest::Representation
|
401
|
+
command.request_object = google_cloud_retail_v2_add_local_inventories_request_object
|
402
|
+
command.response_representation = Google::Apis::RetailV2::GoogleLongrunningOperation::Representation
|
403
|
+
command.response_class = Google::Apis::RetailV2::GoogleLongrunningOperation
|
404
|
+
command.params['product'] = product unless product.nil?
|
405
|
+
command.query['fields'] = fields unless fields.nil?
|
406
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
407
|
+
execute_or_queue_command(command, &block)
|
408
|
+
end
|
409
|
+
|
367
410
|
# Creates a Product.
|
368
411
|
# @param [String] parent
|
369
412
|
# Required. The parent catalog resource name, such as `projects/*/locations/
|
@@ -595,7 +638,9 @@ module Google
|
|
595
638
|
# output only fields are NOT supported. If not set, all supported fields (the
|
596
639
|
# fields that are neither immutable nor output only) are updated. If an
|
597
640
|
# unsupported or unknown field is provided, an INVALID_ARGUMENT error is
|
598
|
-
# returned.
|
641
|
+
# returned. The attribute key can be updated by setting the mask path as "
|
642
|
+
# attributes.$`key_name`". If a key name is present in the mask but not in the
|
643
|
+
# patching product from the request, this key will be deleted after the update.
|
599
644
|
# @param [String] fields
|
600
645
|
# Selector specifying which fields to include in a partial response.
|
601
646
|
# @param [String] quota_user
|
@@ -633,9 +678,8 @@ module Google
|
|
633
678
|
# enqueued and processed downstream. As a consequence, when a response is
|
634
679
|
# returned, the removed place IDs are not immediately manifested in the Product
|
635
680
|
# queried by GetProduct or ListProducts. This feature is only available for
|
636
|
-
# users who have Retail Search enabled. Please
|
637
|
-
#
|
638
|
-
# using Retail Search.
|
681
|
+
# users who have Retail Search enabled. Please enable Retail Search on Cloud
|
682
|
+
# Console before using this feature.
|
639
683
|
# @param [String] product
|
640
684
|
# Required. Full resource name of Product, such as `projects/*/locations/global/
|
641
685
|
# catalogs/default_catalog/branches/default_branch/products/some_product_id`. If
|
@@ -671,6 +715,50 @@ module Google
|
|
671
715
|
execute_or_queue_command(command, &block)
|
672
716
|
end
|
673
717
|
|
718
|
+
# Remove local inventory information for a Product at a list of places at a
|
719
|
+
# removal timestamp. This process is asynchronous. If the request is valid, the
|
720
|
+
# removal will be enqueued and processed downstream. As a consequence, when a
|
721
|
+
# response is returned, removals are not immediately manifested in the Product
|
722
|
+
# queried by GetProduct or ListProducts. Local inventory information can only be
|
723
|
+
# removed using this method. CreateProduct and UpdateProduct has no effect on
|
724
|
+
# local inventories. This feature is only available for users who have Retail
|
725
|
+
# Search enabled. Please enable Retail Search on Cloud Console before using this
|
726
|
+
# feature.
|
727
|
+
# @param [String] product
|
728
|
+
# Required. Full resource name of Product, such as `projects/*/locations/global/
|
729
|
+
# catalogs/default_catalog/branches/default_branch/products/some_product_id`. If
|
730
|
+
# the caller does not have permission to access the Product, regardless of
|
731
|
+
# whether or not it exists, a PERMISSION_DENIED error is returned.
|
732
|
+
# @param [Google::Apis::RetailV2::GoogleCloudRetailV2RemoveLocalInventoriesRequest] google_cloud_retail_v2_remove_local_inventories_request_object
|
733
|
+
# @param [String] fields
|
734
|
+
# Selector specifying which fields to include in a partial response.
|
735
|
+
# @param [String] quota_user
|
736
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
737
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
738
|
+
# @param [Google::Apis::RequestOptions] options
|
739
|
+
# Request-specific options
|
740
|
+
#
|
741
|
+
# @yield [result, err] Result & error if block supplied
|
742
|
+
# @yieldparam result [Google::Apis::RetailV2::GoogleLongrunningOperation] parsed result object
|
743
|
+
# @yieldparam err [StandardError] error object if request failed
|
744
|
+
#
|
745
|
+
# @return [Google::Apis::RetailV2::GoogleLongrunningOperation]
|
746
|
+
#
|
747
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
748
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
749
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
750
|
+
def remove_project_location_catalog_branch_product_local_inventories(product, google_cloud_retail_v2_remove_local_inventories_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
751
|
+
command = make_simple_command(:post, 'v2/{+product}:removeLocalInventories', options)
|
752
|
+
command.request_representation = Google::Apis::RetailV2::GoogleCloudRetailV2RemoveLocalInventoriesRequest::Representation
|
753
|
+
command.request_object = google_cloud_retail_v2_remove_local_inventories_request_object
|
754
|
+
command.response_representation = Google::Apis::RetailV2::GoogleLongrunningOperation::Representation
|
755
|
+
command.response_class = Google::Apis::RetailV2::GoogleLongrunningOperation
|
756
|
+
command.params['product'] = product unless product.nil?
|
757
|
+
command.query['fields'] = fields unless fields.nil?
|
758
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
759
|
+
execute_or_queue_command(command, &block)
|
760
|
+
end
|
761
|
+
|
674
762
|
# Updates inventory information for a Product while respecting the last update
|
675
763
|
# timestamps of each inventory field. This process is asynchronous and does not
|
676
764
|
# require the Product to exist before updating fulfillment information. If the
|
@@ -687,9 +775,8 @@ module Google
|
|
687
775
|
# SetInventoryRequest.set_mask, then any existing inventory information will be
|
688
776
|
# preserved. Pre-existing inventory information can only be updated with
|
689
777
|
# SetInventory, AddFulfillmentPlaces, and RemoveFulfillmentPlaces. This feature
|
690
|
-
# is only available for users who have Retail Search enabled. Please
|
691
|
-
#
|
692
|
-
# are interested in using Retail Search.
|
778
|
+
# is only available for users who have Retail Search enabled. Please enable
|
779
|
+
# Retail Search on Cloud Console before using this feature.
|
693
780
|
# @param [String] name
|
694
781
|
# Immutable. Full resource name of the product, such as `projects/*/locations/
|
695
782
|
# global/catalogs/default_catalog/branches/default_branch/products/product_id`.
|
@@ -727,9 +814,8 @@ module Google
|
|
727
814
|
# asynchronous. Partial updating is not supported. The operation is successfully
|
728
815
|
# finished only after the imported suggestions are indexed successfully and
|
729
816
|
# ready for serving. The process takes hours. This feature is only available for
|
730
|
-
# users who have Retail Search enabled. Please
|
731
|
-
#
|
732
|
-
# using Retail Search.
|
817
|
+
# users who have Retail Search enabled. Please enable Retail Search on Cloud
|
818
|
+
# Console before using this feature.
|
733
819
|
# @param [String] parent
|
734
820
|
# Required. The catalog which the suggestions dataset belongs to. Format: `
|
735
821
|
# projects/1234/locations/global/catalogs/default_catalog`.
|
@@ -843,13 +929,15 @@ module Google
|
|
843
929
|
# Makes a recommendation prediction.
|
844
930
|
# @param [String] placement
|
845
931
|
# Required. Full resource name of the format: `name=projects/*/locations/global/
|
846
|
-
# catalogs/default_catalog/
|
847
|
-
# catalogs/default_catalog/
|
848
|
-
#
|
849
|
-
#
|
850
|
-
#
|
851
|
-
#
|
852
|
-
# google.com/
|
932
|
+
# catalogs/default_catalog/servingConfigs/*` or `name=projects/*/locations/
|
933
|
+
# global/catalogs/default_catalog/placements/*`. We recommend using the `
|
934
|
+
# servingConfigs` resource. `placements` is a legacy resource. The ID of the
|
935
|
+
# Recommendations AI serving config or placement. Before you can request
|
936
|
+
# predictions from your model, you must create at least one serving config or
|
937
|
+
# placement for it. For more information, see [Managing serving configurations] (
|
938
|
+
# https://cloud.google.com/retail/docs/manage-configs). The full list of
|
939
|
+
# available serving configs can be seen at https://console.cloud.google.com/ai/
|
940
|
+
# retail/catalogs/default_catalog/configs
|
853
941
|
# @param [Google::Apis::RetailV2::GoogleCloudRetailV2PredictRequest] google_cloud_retail_v2_predict_request_object
|
854
942
|
# @param [String] fields
|
855
943
|
# Selector specifying which fields to include in a partial response.
|
@@ -881,14 +969,15 @@ module Google
|
|
881
969
|
end
|
882
970
|
|
883
971
|
# Performs a search. This feature is only available for users who have Retail
|
884
|
-
# Search enabled. Please
|
885
|
-
#
|
972
|
+
# Search enabled. Please enable Retail Search on Cloud Console before using this
|
973
|
+
# feature.
|
886
974
|
# @param [String] placement
|
887
|
-
# Required. The resource name of the
|
888
|
-
# /locations/global/catalogs/default_catalog/placements/default_search` or `
|
975
|
+
# Required. The resource name of the Retail Search serving config, such as `
|
889
976
|
# projects/*/locations/global/catalogs/default_catalog/servingConfigs/
|
890
|
-
# default_serving_config`
|
891
|
-
#
|
977
|
+
# default_serving_config` or the name of the legacy placement resource, such as `
|
978
|
+
# projects/*/locations/global/catalogs/default_catalog/placements/default_search`
|
979
|
+
# . This field is used to identify the serving configuration name and the set of
|
980
|
+
# models that will be used to make the search.
|
892
981
|
# @param [Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequest] google_cloud_retail_v2_search_request_object
|
893
982
|
# @param [String] fields
|
894
983
|
# Selector specifying which fields to include in a partial response.
|
@@ -922,13 +1011,15 @@ module Google
|
|
922
1011
|
# Makes a recommendation prediction.
|
923
1012
|
# @param [String] placement
|
924
1013
|
# Required. Full resource name of the format: `name=projects/*/locations/global/
|
925
|
-
# catalogs/default_catalog/
|
926
|
-
# catalogs/default_catalog/
|
927
|
-
#
|
928
|
-
#
|
929
|
-
#
|
930
|
-
#
|
931
|
-
# google.com/
|
1014
|
+
# catalogs/default_catalog/servingConfigs/*` or `name=projects/*/locations/
|
1015
|
+
# global/catalogs/default_catalog/placements/*`. We recommend using the `
|
1016
|
+
# servingConfigs` resource. `placements` is a legacy resource. The ID of the
|
1017
|
+
# Recommendations AI serving config or placement. Before you can request
|
1018
|
+
# predictions from your model, you must create at least one serving config or
|
1019
|
+
# placement for it. For more information, see [Managing serving configurations] (
|
1020
|
+
# https://cloud.google.com/retail/docs/manage-configs). The full list of
|
1021
|
+
# available serving configs can be seen at https://console.cloud.google.com/ai/
|
1022
|
+
# retail/catalogs/default_catalog/configs
|
932
1023
|
# @param [Google::Apis::RetailV2::GoogleCloudRetailV2PredictRequest] google_cloud_retail_v2_predict_request_object
|
933
1024
|
# @param [String] fields
|
934
1025
|
# Selector specifying which fields to include in a partial response.
|
@@ -960,14 +1051,15 @@ module Google
|
|
960
1051
|
end
|
961
1052
|
|
962
1053
|
# Performs a search. This feature is only available for users who have Retail
|
963
|
-
# Search enabled. Please
|
964
|
-
#
|
1054
|
+
# Search enabled. Please enable Retail Search on Cloud Console before using this
|
1055
|
+
# feature.
|
965
1056
|
# @param [String] placement
|
966
|
-
# Required. The resource name of the
|
967
|
-
# /locations/global/catalogs/default_catalog/placements/default_search` or `
|
1057
|
+
# Required. The resource name of the Retail Search serving config, such as `
|
968
1058
|
# projects/*/locations/global/catalogs/default_catalog/servingConfigs/
|
969
|
-
# default_serving_config`
|
970
|
-
#
|
1059
|
+
# default_serving_config` or the name of the legacy placement resource, such as `
|
1060
|
+
# projects/*/locations/global/catalogs/default_catalog/placements/default_search`
|
1061
|
+
# . This field is used to identify the serving configuration name and the set of
|
1062
|
+
# models that will be used to make the search.
|
971
1063
|
# @param [Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequest] google_cloud_retail_v2_search_request_object
|
972
1064
|
# @param [String] fields
|
973
1065
|
# 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_v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.35.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_v2/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.35.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|