google-apis-retail_v2 0.32.0 → 0.33.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 +4 -0
- data/lib/google/apis/retail_v2/classes.rb +267 -9
- data/lib/google/apis/retail_v2/gem_version.rb +2 -2
- data/lib/google/apis/retail_v2/representations.rb +146 -0
- data/lib/google/apis/retail_v2/service.rb +103 -19
- 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: 18e916d64c386f6c9b65fcf3e6d27b2460371aa7dc0a23749c10f5c59b27db0f
|
4
|
+
data.tar.gz: f439bdacce1ca3cefdcde5cfdeb3ad8a026141758711ef1a7cc223c6261021ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7d59732abbc3a970e1a29a1eaef0d359ae436415e4166a69a09962fdfc67d766a9071c79050f11f4a77d14dcc30284626a63d24caf5346d3dd05b3929f5bafb
|
7
|
+
data.tar.gz: f1fb7248f0492d2ef6e237b224a75cb1ffb7b9d338e38aa33416eac49b4f5f20e94bdb7b646b14be02c499c0cc3b748a54d9d81bd113414441604114a0defb23
|
data/CHANGELOG.md
CHANGED
@@ -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
|
@@ -1245,6 +1325,59 @@ module Google
|
|
1245
1325
|
end
|
1246
1326
|
end
|
1247
1327
|
|
1328
|
+
# The inventory information at a place (e.g. a store) identified by a place ID.
|
1329
|
+
class GoogleCloudRetailV2LocalInventory
|
1330
|
+
include Google::Apis::Core::Hashable
|
1331
|
+
|
1332
|
+
# Additional local inventory attributes, for example, store name, promotion tags,
|
1333
|
+
# etc. This field needs to pass all below criteria, otherwise an
|
1334
|
+
# INVALID_ARGUMENT error is returned: * At most 30 attributes are allowed. * The
|
1335
|
+
# key must be a UTF-8 encoded string with a length limit of 32 characters. * The
|
1336
|
+
# key must match the pattern: `a-zA-Z0-9*`. For example, key0LikeThis or
|
1337
|
+
# KEY_1_LIKE_THIS. * The attribute values must be of the same type (text or
|
1338
|
+
# number). * Only 1 value is allowed for each attribute. * For text values, the
|
1339
|
+
# length limit is 256 UTF-8 characters. * The attribute does not support search.
|
1340
|
+
# The `searchable` field should be unset or set to false. * The max summed total
|
1341
|
+
# bytes of custom attribute keys and values per product is 5MiB.
|
1342
|
+
# Corresponds to the JSON property `attributes`
|
1343
|
+
# @return [Hash<String,Google::Apis::RetailV2::GoogleCloudRetailV2CustomAttribute>]
|
1344
|
+
attr_accessor :attributes
|
1345
|
+
|
1346
|
+
# Input only. Supported fulfillment types. Valid fulfillment type values include
|
1347
|
+
# commonly used types (such as pickup in store and same day delivery), and
|
1348
|
+
# custom types. Customers have to map custom types to their display names before
|
1349
|
+
# rendering UI. Supported values: * "pickup-in-store" * "ship-to-store" * "same-
|
1350
|
+
# day-delivery" * "next-day-delivery" * "custom-type-1" * "custom-type-2" * "
|
1351
|
+
# custom-type-3" * "custom-type-4" * "custom-type-5" If this field is set to an
|
1352
|
+
# invalid value other than these, an INVALID_ARGUMENT error is returned. All the
|
1353
|
+
# elements must be distinct. Otherwise, an INVALID_ARGUMENT error is returned.
|
1354
|
+
# Corresponds to the JSON property `fulfillmentTypes`
|
1355
|
+
# @return [Array<String>]
|
1356
|
+
attr_accessor :fulfillment_types
|
1357
|
+
|
1358
|
+
# The place ID for the current set of inventory information.
|
1359
|
+
# Corresponds to the JSON property `placeId`
|
1360
|
+
# @return [String]
|
1361
|
+
attr_accessor :place_id
|
1362
|
+
|
1363
|
+
# The price information of a Product.
|
1364
|
+
# Corresponds to the JSON property `priceInfo`
|
1365
|
+
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2PriceInfo]
|
1366
|
+
attr_accessor :price_info
|
1367
|
+
|
1368
|
+
def initialize(**args)
|
1369
|
+
update!(**args)
|
1370
|
+
end
|
1371
|
+
|
1372
|
+
# Update properties of this object
|
1373
|
+
def update!(**args)
|
1374
|
+
@attributes = args[:attributes] if args.key?(:attributes)
|
1375
|
+
@fulfillment_types = args[:fulfillment_types] if args.key?(:fulfillment_types)
|
1376
|
+
@place_id = args[:place_id] if args.key?(:place_id)
|
1377
|
+
@price_info = args[:price_info] if args.key?(:price_info)
|
1378
|
+
end
|
1379
|
+
end
|
1380
|
+
|
1248
1381
|
# Request message for Predict method.
|
1249
1382
|
class GoogleCloudRetailV2PredictRequest
|
1250
1383
|
include Google::Apis::Core::Hashable
|
@@ -2330,6 +2463,73 @@ module Google
|
|
2330
2463
|
end
|
2331
2464
|
end
|
2332
2465
|
|
2466
|
+
# Metadata related to the progress of the RemoveLocalInventories operation.
|
2467
|
+
# Currently empty because there is no meaningful metadata populated from the
|
2468
|
+
# RemoveLocalInventories method.
|
2469
|
+
class GoogleCloudRetailV2RemoveLocalInventoriesMetadata
|
2470
|
+
include Google::Apis::Core::Hashable
|
2471
|
+
|
2472
|
+
def initialize(**args)
|
2473
|
+
update!(**args)
|
2474
|
+
end
|
2475
|
+
|
2476
|
+
# Update properties of this object
|
2477
|
+
def update!(**args)
|
2478
|
+
end
|
2479
|
+
end
|
2480
|
+
|
2481
|
+
# Request message for RemoveLocalInventories method.
|
2482
|
+
class GoogleCloudRetailV2RemoveLocalInventoriesRequest
|
2483
|
+
include Google::Apis::Core::Hashable
|
2484
|
+
|
2485
|
+
# If set to true, and the Product is not found, the local inventory removal
|
2486
|
+
# request will still be processed and retained for at most 1 day and processed
|
2487
|
+
# once the Product is created. If set to false, a NOT_FOUND error is returned if
|
2488
|
+
# the Product is not found.
|
2489
|
+
# Corresponds to the JSON property `allowMissing`
|
2490
|
+
# @return [Boolean]
|
2491
|
+
attr_accessor :allow_missing
|
2492
|
+
alias_method :allow_missing?, :allow_missing
|
2493
|
+
|
2494
|
+
# Required. A list of place IDs to have their inventory deleted. At most 3000
|
2495
|
+
# place IDs are allowed per request.
|
2496
|
+
# Corresponds to the JSON property `placeIds`
|
2497
|
+
# @return [Array<String>]
|
2498
|
+
attr_accessor :place_ids
|
2499
|
+
|
2500
|
+
# The time when the inventory deletions are issued. Used to prevent out-of-order
|
2501
|
+
# updates and deletions on local inventory fields. If not provided, the internal
|
2502
|
+
# system time will be used.
|
2503
|
+
# Corresponds to the JSON property `removeTime`
|
2504
|
+
# @return [String]
|
2505
|
+
attr_accessor :remove_time
|
2506
|
+
|
2507
|
+
def initialize(**args)
|
2508
|
+
update!(**args)
|
2509
|
+
end
|
2510
|
+
|
2511
|
+
# Update properties of this object
|
2512
|
+
def update!(**args)
|
2513
|
+
@allow_missing = args[:allow_missing] if args.key?(:allow_missing)
|
2514
|
+
@place_ids = args[:place_ids] if args.key?(:place_ids)
|
2515
|
+
@remove_time = args[:remove_time] if args.key?(:remove_time)
|
2516
|
+
end
|
2517
|
+
end
|
2518
|
+
|
2519
|
+
# Response of the RemoveLocalInventories API. Currently empty because there is
|
2520
|
+
# no meaningful response populated from the RemoveLocalInventories method.
|
2521
|
+
class GoogleCloudRetailV2RemoveLocalInventoriesResponse
|
2522
|
+
include Google::Apis::Core::Hashable
|
2523
|
+
|
2524
|
+
def initialize(**args)
|
2525
|
+
update!(**args)
|
2526
|
+
end
|
2527
|
+
|
2528
|
+
# Update properties of this object
|
2529
|
+
def update!(**args)
|
2530
|
+
end
|
2531
|
+
end
|
2532
|
+
|
2333
2533
|
# Request message for SearchService.Search method.
|
2334
2534
|
class GoogleCloudRetailV2SearchRequest
|
2335
2535
|
include Google::Apis::Core::Hashable
|
@@ -3477,13 +3677,12 @@ module Google
|
|
3477
3677
|
attr_accessor :direct_user_request
|
3478
3678
|
alias_method :direct_user_request?, :direct_user_request
|
3479
3679
|
|
3480
|
-
# The end user's IP address.
|
3481
|
-
#
|
3482
|
-
#
|
3483
|
-
#
|
3484
|
-
#
|
3485
|
-
#
|
3486
|
-
# direct_user_request is set.
|
3680
|
+
# The end user's IP address. This field is used to extract location information
|
3681
|
+
# for personalization. This field must be either an IPv4 address (e.g. "104.133.
|
3682
|
+
# 9.80") or an IPv6 address (e.g. "2001:0db8:85a3:0000:0000:8a2e:0370:7334").
|
3683
|
+
# Otherwise, an INVALID_ARGUMENT error is returned. This should not be set when:
|
3684
|
+
# * setting SearchRequest.user_info. * using the JavaScript tag in
|
3685
|
+
# UserEventService.CollectUserEvent or if direct_user_request is set.
|
3487
3686
|
# Corresponds to the JSON property `ipAddress`
|
3488
3687
|
# @return [String]
|
3489
3688
|
attr_accessor :ip_address
|
@@ -3499,8 +3698,9 @@ module Google
|
|
3499
3698
|
attr_accessor :user_agent
|
3500
3699
|
|
3501
3700
|
# Highly recommended for logged-in users. Unique identifier for logged-in user,
|
3502
|
-
# such as a user name.
|
3503
|
-
# limit of 128 characters. Otherwise, an
|
3701
|
+
# such as a user name. Always use a hashed value for this ID. The field must be
|
3702
|
+
# a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an
|
3703
|
+
# INVALID_ARGUMENT error is returned.
|
3504
3704
|
# Corresponds to the JSON property `userId`
|
3505
3705
|
# @return [String]
|
3506
3706
|
attr_accessor :user_id
|
@@ -4113,6 +4313,35 @@ module Google
|
|
4113
4313
|
end
|
4114
4314
|
end
|
4115
4315
|
|
4316
|
+
# Metadata related to the progress of the AddLocalInventories operation.
|
4317
|
+
# Currently empty because there is no meaningful metadata populated from the
|
4318
|
+
# AddLocalInventories method.
|
4319
|
+
class GoogleCloudRetailV2betaAddLocalInventoriesMetadata
|
4320
|
+
include Google::Apis::Core::Hashable
|
4321
|
+
|
4322
|
+
def initialize(**args)
|
4323
|
+
update!(**args)
|
4324
|
+
end
|
4325
|
+
|
4326
|
+
# Update properties of this object
|
4327
|
+
def update!(**args)
|
4328
|
+
end
|
4329
|
+
end
|
4330
|
+
|
4331
|
+
# Response of the AddLocalInventories API. Currently empty because there is no
|
4332
|
+
# meaningful response populated from the AddLocalInventories method.
|
4333
|
+
class GoogleCloudRetailV2betaAddLocalInventoriesResponse
|
4334
|
+
include Google::Apis::Core::Hashable
|
4335
|
+
|
4336
|
+
def initialize(**args)
|
4337
|
+
update!(**args)
|
4338
|
+
end
|
4339
|
+
|
4340
|
+
# Update properties of this object
|
4341
|
+
def update!(**args)
|
4342
|
+
end
|
4343
|
+
end
|
4344
|
+
|
4116
4345
|
# Configuration of destination for Export related errors.
|
4117
4346
|
class GoogleCloudRetailV2betaExportErrorsConfig
|
4118
4347
|
include Google::Apis::Core::Hashable
|
@@ -4468,6 +4697,35 @@ module Google
|
|
4468
4697
|
end
|
4469
4698
|
end
|
4470
4699
|
|
4700
|
+
# Metadata related to the progress of the RemoveLocalInventories operation.
|
4701
|
+
# Currently empty because there is no meaningful metadata populated from the
|
4702
|
+
# RemoveLocalInventories method.
|
4703
|
+
class GoogleCloudRetailV2betaRemoveLocalInventoriesMetadata
|
4704
|
+
include Google::Apis::Core::Hashable
|
4705
|
+
|
4706
|
+
def initialize(**args)
|
4707
|
+
update!(**args)
|
4708
|
+
end
|
4709
|
+
|
4710
|
+
# Update properties of this object
|
4711
|
+
def update!(**args)
|
4712
|
+
end
|
4713
|
+
end
|
4714
|
+
|
4715
|
+
# Response of the RemoveLocalInventories API. Currently empty because there is
|
4716
|
+
# no meaningful response populated from the RemoveLocalInventories method.
|
4717
|
+
class GoogleCloudRetailV2betaRemoveLocalInventoriesResponse
|
4718
|
+
include Google::Apis::Core::Hashable
|
4719
|
+
|
4720
|
+
def initialize(**args)
|
4721
|
+
update!(**args)
|
4722
|
+
end
|
4723
|
+
|
4724
|
+
# Update properties of this object
|
4725
|
+
def update!(**args)
|
4726
|
+
end
|
4727
|
+
end
|
4728
|
+
|
4471
4729
|
# Metadata related to the progress of the SetInventory operation. Currently
|
4472
4730
|
# empty because there is no meaningful metadata populated from the SetInventory
|
4473
4731
|
# 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.33.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 = "20220324"
|
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
|
@@ -1825,6 +1947,18 @@ module Google
|
|
1825
1947
|
end
|
1826
1948
|
end
|
1827
1949
|
|
1950
|
+
class GoogleCloudRetailV2betaAddLocalInventoriesMetadata
|
1951
|
+
# @private
|
1952
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1953
|
+
end
|
1954
|
+
end
|
1955
|
+
|
1956
|
+
class GoogleCloudRetailV2betaAddLocalInventoriesResponse
|
1957
|
+
# @private
|
1958
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1959
|
+
end
|
1960
|
+
end
|
1961
|
+
|
1828
1962
|
class GoogleCloudRetailV2betaExportErrorsConfig
|
1829
1963
|
# @private
|
1830
1964
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1947,6 +2081,18 @@ module Google
|
|
1947
2081
|
end
|
1948
2082
|
end
|
1949
2083
|
|
2084
|
+
class GoogleCloudRetailV2betaRemoveLocalInventoriesMetadata
|
2085
|
+
# @private
|
2086
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2087
|
+
end
|
2088
|
+
end
|
2089
|
+
|
2090
|
+
class GoogleCloudRetailV2betaRemoveLocalInventoriesResponse
|
2091
|
+
# @private
|
2092
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2093
|
+
end
|
2094
|
+
end
|
2095
|
+
|
1950
2096
|
class GoogleCloudRetailV2betaSetInventoryMetadata
|
1951
2097
|
# @private
|
1952
2098
|
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/
|
@@ -633,9 +676,8 @@ module Google
|
|
633
676
|
# enqueued and processed downstream. As a consequence, when a response is
|
634
677
|
# returned, the removed place IDs are not immediately manifested in the Product
|
635
678
|
# queried by GetProduct or ListProducts. This feature is only available for
|
636
|
-
# users who have Retail Search enabled. Please
|
637
|
-
#
|
638
|
-
# using Retail Search.
|
679
|
+
# users who have Retail Search enabled. Please enable Retail Search on Cloud
|
680
|
+
# Console before using this feature.
|
639
681
|
# @param [String] product
|
640
682
|
# Required. Full resource name of Product, such as `projects/*/locations/global/
|
641
683
|
# catalogs/default_catalog/branches/default_branch/products/some_product_id`. If
|
@@ -671,6 +713,50 @@ module Google
|
|
671
713
|
execute_or_queue_command(command, &block)
|
672
714
|
end
|
673
715
|
|
716
|
+
# Remove local inventory information for a Product at a list of places at a
|
717
|
+
# removal timestamp. This process is asynchronous. If the request is valid, the
|
718
|
+
# removal will be enqueued and processed downstream. As a consequence, when a
|
719
|
+
# response is returned, removals are not immediately manifested in the Product
|
720
|
+
# queried by GetProduct or ListProducts. Local inventory information can only be
|
721
|
+
# removed using this method. CreateProduct and UpdateProduct has no effect on
|
722
|
+
# local inventories. This feature is only available for users who have Retail
|
723
|
+
# Search enabled. Please enable Retail Search on Cloud Console before using this
|
724
|
+
# feature.
|
725
|
+
# @param [String] product
|
726
|
+
# Required. Full resource name of Product, such as `projects/*/locations/global/
|
727
|
+
# catalogs/default_catalog/branches/default_branch/products/some_product_id`. If
|
728
|
+
# the caller does not have permission to access the Product, regardless of
|
729
|
+
# whether or not it exists, a PERMISSION_DENIED error is returned.
|
730
|
+
# @param [Google::Apis::RetailV2::GoogleCloudRetailV2RemoveLocalInventoriesRequest] google_cloud_retail_v2_remove_local_inventories_request_object
|
731
|
+
# @param [String] fields
|
732
|
+
# Selector specifying which fields to include in a partial response.
|
733
|
+
# @param [String] quota_user
|
734
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
735
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
736
|
+
# @param [Google::Apis::RequestOptions] options
|
737
|
+
# Request-specific options
|
738
|
+
#
|
739
|
+
# @yield [result, err] Result & error if block supplied
|
740
|
+
# @yieldparam result [Google::Apis::RetailV2::GoogleLongrunningOperation] parsed result object
|
741
|
+
# @yieldparam err [StandardError] error object if request failed
|
742
|
+
#
|
743
|
+
# @return [Google::Apis::RetailV2::GoogleLongrunningOperation]
|
744
|
+
#
|
745
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
746
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
747
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
748
|
+
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)
|
749
|
+
command = make_simple_command(:post, 'v2/{+product}:removeLocalInventories', options)
|
750
|
+
command.request_representation = Google::Apis::RetailV2::GoogleCloudRetailV2RemoveLocalInventoriesRequest::Representation
|
751
|
+
command.request_object = google_cloud_retail_v2_remove_local_inventories_request_object
|
752
|
+
command.response_representation = Google::Apis::RetailV2::GoogleLongrunningOperation::Representation
|
753
|
+
command.response_class = Google::Apis::RetailV2::GoogleLongrunningOperation
|
754
|
+
command.params['product'] = product unless product.nil?
|
755
|
+
command.query['fields'] = fields unless fields.nil?
|
756
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
757
|
+
execute_or_queue_command(command, &block)
|
758
|
+
end
|
759
|
+
|
674
760
|
# Updates inventory information for a Product while respecting the last update
|
675
761
|
# timestamps of each inventory field. This process is asynchronous and does not
|
676
762
|
# require the Product to exist before updating fulfillment information. If the
|
@@ -687,9 +773,8 @@ module Google
|
|
687
773
|
# SetInventoryRequest.set_mask, then any existing inventory information will be
|
688
774
|
# preserved. Pre-existing inventory information can only be updated with
|
689
775
|
# 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.
|
776
|
+
# is only available for users who have Retail Search enabled. Please enable
|
777
|
+
# Retail Search on Cloud Console before using this feature.
|
693
778
|
# @param [String] name
|
694
779
|
# Immutable. Full resource name of the product, such as `projects/*/locations/
|
695
780
|
# global/catalogs/default_catalog/branches/default_branch/products/product_id`.
|
@@ -727,9 +812,8 @@ module Google
|
|
727
812
|
# asynchronous. Partial updating is not supported. The operation is successfully
|
728
813
|
# finished only after the imported suggestions are indexed successfully and
|
729
814
|
# 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.
|
815
|
+
# users who have Retail Search enabled. Please enable Retail Search on Cloud
|
816
|
+
# Console before using this feature.
|
733
817
|
# @param [String] parent
|
734
818
|
# Required. The catalog which the suggestions dataset belongs to. Format: `
|
735
819
|
# projects/1234/locations/global/catalogs/default_catalog`.
|
@@ -881,8 +965,8 @@ module Google
|
|
881
965
|
end
|
882
966
|
|
883
967
|
# Performs a search. This feature is only available for users who have Retail
|
884
|
-
# Search enabled. Please
|
885
|
-
#
|
968
|
+
# Search enabled. Please enable Retail Search on Cloud Console before using this
|
969
|
+
# feature.
|
886
970
|
# @param [String] placement
|
887
971
|
# Required. The resource name of the search engine placement, such as `projects/*
|
888
972
|
# /locations/global/catalogs/default_catalog/placements/default_search` or `
|
@@ -960,8 +1044,8 @@ module Google
|
|
960
1044
|
end
|
961
1045
|
|
962
1046
|
# Performs a search. This feature is only available for users who have Retail
|
963
|
-
# Search enabled. Please
|
964
|
-
#
|
1047
|
+
# Search enabled. Please enable Retail Search on Cloud Console before using this
|
1048
|
+
# feature.
|
965
1049
|
# @param [String] placement
|
966
1050
|
# Required. The resource name of the search engine placement, such as `projects/*
|
967
1051
|
# /locations/global/catalogs/default_catalog/placements/default_search` or `
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-retail_v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.33.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-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_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.33.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: []
|