google-apis-retail_v2 0.4.0 → 0.9.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 +23 -0
- data/lib/google/apis/retail_v2.rb +1 -1
- data/lib/google/apis/retail_v2/classes.rb +39 -345
- data/lib/google/apis/retail_v2/gem_version.rb +3 -3
- data/lib/google/apis/retail_v2/representations.rb +0 -186
- data/lib/google/apis/retail_v2/service.rb +8 -23
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b9ba89704344d0ac7e22976f2415f0f8ebd0cb30425378877b75a8c6b844b55
|
4
|
+
data.tar.gz: ec0ecc44209e24548a45685d055b2bbecc9a66ae4648a164a0a71da54958d8c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79292fb1c6c548ea462cef33db84ff080e607b7ec1be5713a49a3202643d7e2b5634430a39d19c663b026e2e1602ab80673f96ffe2eb00364867df39ec06bbbc
|
7
|
+
data.tar.gz: 8b778d4e5e329fee2255659771f2819221b778d07ffbe5048801eab593552ce50b64ca739ec6acd120e5026ba110650207b4feb6cf917a15b2111afcb96ed4aa
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,28 @@
|
|
1
1
|
# Release history for google-apis-retail_v2
|
2
2
|
|
3
|
+
### v0.9.0 (2021-06-07)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210528
|
6
|
+
* Regenerated using generator version 0.3.0
|
7
|
+
|
8
|
+
### v0.8.0 (2021-05-22)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20210514
|
11
|
+
* Unspecified changes
|
12
|
+
|
13
|
+
### v0.7.0 (2021-05-11)
|
14
|
+
|
15
|
+
* Regenerated from discovery document revision 20210430
|
16
|
+
|
17
|
+
### v0.6.0 (2021-04-02)
|
18
|
+
|
19
|
+
* Regenerated from discovery document revision 20210326
|
20
|
+
|
21
|
+
### v0.5.0 (2021-03-20)
|
22
|
+
|
23
|
+
* Regenerated from discovery document revision 20210312
|
24
|
+
* Regenerated using generator version 0.2.0
|
25
|
+
|
3
26
|
### v0.4.0 (2021-03-06)
|
4
27
|
|
5
28
|
* Regenerated from discovery document revision 20210226
|
@@ -31,7 +31,7 @@ module Google
|
|
31
31
|
# This is NOT the gem version.
|
32
32
|
VERSION = 'V2'
|
33
33
|
|
34
|
-
#
|
34
|
+
# See, edit, configure, and delete your Google Cloud Platform data
|
35
35
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
36
36
|
end
|
37
37
|
end
|
@@ -197,7 +197,8 @@ module Google
|
|
197
197
|
# @return [String]
|
198
198
|
attr_accessor :catalog_item
|
199
199
|
|
200
|
-
#
|
200
|
+
# Cloud Storage file path of the import source. Can be set for batch operation
|
201
|
+
# error.
|
201
202
|
# Corresponds to the JSON property `gcsPath`
|
202
203
|
# @return [String]
|
203
204
|
attr_accessor :gcs_path
|
@@ -307,8 +308,8 @@ module Google
|
|
307
308
|
# @return [String]
|
308
309
|
attr_accessor :gcs_staging_dir
|
309
310
|
|
310
|
-
# The project
|
311
|
-
# length limit of 128 characters. If not specified, inherits the project
|
311
|
+
# The project ID (can be project # or ID) that the BigQuery source is in with a
|
312
|
+
# length limit of 128 characters. If not specified, inherits the project ID from
|
312
313
|
# the parent request.
|
313
314
|
# Corresponds to the JSON property `projectId`
|
314
315
|
# @return [String]
|
@@ -409,7 +410,7 @@ module Google
|
|
409
410
|
# product imports: * `product` (default): One JSON Product per line. Each
|
410
411
|
# product must have a valid Product.id. * `product_merchant_center`: See [
|
411
412
|
# Importing catalog data from Merchant Center](https://cloud.google.com/retail/
|
412
|
-
# recommendations-ai/docs/upload-catalog#
|
413
|
+
# recommendations-ai/docs/upload-catalog#mc). Supported values for user events
|
413
414
|
# imports: * `user_event` (default): One JSON UserEvent per line. * `
|
414
415
|
# user_event_ga360`: Using https://support.google.com/analytics/answer/3437719?
|
415
416
|
# hl=en.
|
@@ -422,8 +423,8 @@ module Google
|
|
422
423
|
# bucket/directory/object.json`) or a pattern matching one or more files, such
|
423
424
|
# as `gs://bucket/directory/*.json`. A request can contain at most 100 files,
|
424
425
|
# and each file can be up to 2 GB. See [Importing product information](https://
|
425
|
-
# cloud.google.com/recommendations-ai/docs/upload-catalog) for the
|
426
|
-
# format and setup instructions.
|
426
|
+
# cloud.google.com/retail/recommendations-ai/docs/upload-catalog) for the
|
427
|
+
# expected file format and setup instructions.
|
427
428
|
# Corresponds to the JSON property `inputUris`
|
428
429
|
# @return [Array<String>]
|
429
430
|
attr_accessor :input_uris
|
@@ -691,10 +692,11 @@ module Google
|
|
691
692
|
# expression is enclosed in parentheses, and must be separated from the tag
|
692
693
|
# values by a space. `-"tagA"` is also supported and is equivalent to `NOT "tagA"
|
693
694
|
# `. Tag values must be double quoted UTF-8 encoded strings with a size limit of
|
694
|
-
# 1,000 characters.
|
695
|
-
#
|
696
|
-
#
|
697
|
-
# -"promotional") * filterOutOfStockItems
|
695
|
+
# 1,000 characters. Note: "Recently viewed" models don't support tag filtering
|
696
|
+
# at the moment. * filterOutOfStockItems. Restricts predictions to products that
|
697
|
+
# do not have a stockState value of OUT_OF_STOCK. Examples: * tag=("Red" OR "
|
698
|
+
# Blue") tag="New-Arrival" tag=(NOT "promotional") * filterOutOfStockItems tag=(-
|
699
|
+
# "promotional") * filterOutOfStockItems If your filter blocks all prediction
|
698
700
|
# results, nothing will be returned. If you want generic (unfiltered) popular
|
699
701
|
# products to be returned instead, set `strictFiltering` to false in `
|
700
702
|
# PredictRequest.params`.
|
@@ -702,12 +704,17 @@ module Google
|
|
702
704
|
# @return [String]
|
703
705
|
attr_accessor :filter
|
704
706
|
|
705
|
-
# The labels
|
706
|
-
#
|
707
|
-
#
|
708
|
-
#
|
709
|
-
#
|
710
|
-
#
|
707
|
+
# The labels applied to a resource must meet the following requirements: * Each
|
708
|
+
# resource can have multiple labels, up to a maximum of 64. * Each label must be
|
709
|
+
# a key-value pair. * Keys have a minimum length of 1 character and a maximum
|
710
|
+
# length of 63 characters, and cannot be empty. Values can be empty, and have a
|
711
|
+
# maximum length of 63 characters. * Keys and values can contain only lowercase
|
712
|
+
# letters, numeric characters, underscores, and dashes. All characters must use
|
713
|
+
# UTF-8 encoding, and international characters are allowed. * The key portion of
|
714
|
+
# a label must be unique. However, you can use the same key with multiple
|
715
|
+
# resources. * Keys must start with a lowercase letter or international
|
716
|
+
# character. See [Google Cloud Document](https://cloud.google.com/resource-
|
717
|
+
# manager/docs/creating-managing-labels#requirements) for more details.
|
711
718
|
# Corresponds to the JSON property `labels`
|
712
719
|
# @return [Hash<String,String>]
|
713
720
|
attr_accessor :labels
|
@@ -898,7 +905,7 @@ module Google
|
|
898
905
|
# product, or age of a customer. For example: `` "vendor": `"text": ["vendor123",
|
899
906
|
# "vendor456"]`, "lengths_cm": `"numbers":[2.3, 15.4]`, "heights_cm": `"numbers"
|
900
907
|
# :[8.1, 6.4]` ``. This field needs to pass all below criteria, otherwise an
|
901
|
-
# INVALID_ARGUMENT error is returned: * Max entries count:
|
908
|
+
# INVALID_ARGUMENT error is returned: * Max entries count: 200 by default; 100
|
902
909
|
# for Type.VARIANT. * The key must be a UTF-8 encoded string with a length limit
|
903
910
|
# of 128 characters.
|
904
911
|
# Corresponds to the JSON property `attributes`
|
@@ -1015,7 +1022,8 @@ module Google
|
|
1015
1022
|
# @return [String]
|
1016
1023
|
attr_accessor :title
|
1017
1024
|
|
1018
|
-
# Immutable. The type of the product.
|
1025
|
+
# Immutable. The type of the product. Default to Catalog.product_level_config.
|
1026
|
+
# ingestion_product_type if unset.
|
1019
1027
|
# Corresponds to the JSON property `type`
|
1020
1028
|
# @return [String]
|
1021
1029
|
attr_accessor :type
|
@@ -1148,8 +1156,8 @@ module Google
|
|
1148
1156
|
# this field is set to an invalid value other than these, an INVALID_ARGUMENT
|
1149
1157
|
# error is returned. If this field is `variant` and
|
1150
1158
|
# merchant_center_product_id_field is `itemGroupId`, an INVALID_ARGUMENT error
|
1151
|
-
# is returned. See [Using
|
1152
|
-
# catalog#
|
1159
|
+
# is returned. See [Using product levels](https://cloud.google.com/retail/
|
1160
|
+
# recommendations-ai/docs/catalog#product-levels) for more details.
|
1153
1161
|
# Corresponds to the JSON property `ingestionProductType`
|
1154
1162
|
# @return [String]
|
1155
1163
|
attr_accessor :ingestion_product_type
|
@@ -1162,8 +1170,8 @@ module Google
|
|
1162
1170
|
# the item group. If this field is set to an invalid value other than these, an
|
1163
1171
|
# INVALID_ARGUMENT error is returned. If this field is `itemGroupId` and
|
1164
1172
|
# ingestion_product_type is `variant`, an INVALID_ARGUMENT error is returned.
|
1165
|
-
# See [Using
|
1166
|
-
# levels) for more details.
|
1173
|
+
# See [Using product levels](https://cloud.google.com/retail/recommendations-ai/
|
1174
|
+
# docs/catalog#product-levels) for more details.
|
1167
1175
|
# Corresponds to the JSON property `merchantCenterProductIdField`
|
1168
1176
|
# @return [String]
|
1169
1177
|
attr_accessor :merchant_center_product_id_field
|
@@ -1398,11 +1406,12 @@ module Google
|
|
1398
1406
|
|
1399
1407
|
# Required. User event type. Allowed values are: * `add-to-cart`: Products being
|
1400
1408
|
# added to cart. * `category-page-view`: Special pages such as sale or promotion
|
1401
|
-
# pages viewed. * `
|
1402
|
-
# view`:
|
1403
|
-
# * `promotion-
|
1404
|
-
#
|
1405
|
-
#
|
1409
|
+
# pages viewed. * `completion`: Completion query result showed/clicked. * `
|
1410
|
+
# detail-page-view`: Products detail page viewed. * `home-page-view`: Homepage
|
1411
|
+
# viewed. * `promotion-offered`: Promotion is offered to a user. * `promotion-
|
1412
|
+
# not-offered`: Promotion is not offered to a user. * `purchase-complete`: User
|
1413
|
+
# finishing a purchase. * `search`: Product search. * `shopping-cart-page-view`:
|
1414
|
+
# User viewing a shopping cart.
|
1406
1415
|
# Corresponds to the JSON property `eventType`
|
1407
1416
|
# @return [String]
|
1408
1417
|
attr_accessor :event_type
|
@@ -1489,7 +1498,9 @@ module Google
|
|
1489
1498
|
# a visitor on a single device. This unique identifier should not change if the
|
1490
1499
|
# visitor log in/out of the website. The field must be a UTF-8 encoded string
|
1491
1500
|
# with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is
|
1492
|
-
# returned.
|
1501
|
+
# returned. The field should not contain PII or user-data. We recommend to use
|
1502
|
+
# Google Analystics [Client ID](https://developers.google.com/analytics/
|
1503
|
+
# devguides/collection/analyticsjs/field-reference#clientId) for this field.
|
1493
1504
|
# Corresponds to the JSON property `visitorId`
|
1494
1505
|
# @return [String]
|
1495
1506
|
attr_accessor :visitor_id
|
@@ -2283,323 +2294,6 @@ module Google
|
|
2283
2294
|
end
|
2284
2295
|
end
|
2285
2296
|
|
2286
|
-
# Configuration of destination for Export related errors.
|
2287
|
-
class GoogleCloudRetailV2mainExportErrorsConfig
|
2288
|
-
include Google::Apis::Core::Hashable
|
2289
|
-
|
2290
|
-
# Google Cloud Storage path for import errors. This must be an empty, existing
|
2291
|
-
# Cloud Storage bucket. Export errors will be written to a file in this bucket,
|
2292
|
-
# one per line, as a JSON-encoded `google.rpc.Status` message.
|
2293
|
-
# Corresponds to the JSON property `gcsPrefix`
|
2294
|
-
# @return [String]
|
2295
|
-
attr_accessor :gcs_prefix
|
2296
|
-
|
2297
|
-
def initialize(**args)
|
2298
|
-
update!(**args)
|
2299
|
-
end
|
2300
|
-
|
2301
|
-
# Update properties of this object
|
2302
|
-
def update!(**args)
|
2303
|
-
@gcs_prefix = args[:gcs_prefix] if args.key?(:gcs_prefix)
|
2304
|
-
end
|
2305
|
-
end
|
2306
|
-
|
2307
|
-
# Metadata related to the progress of the Export operation. This will be
|
2308
|
-
# returned by the google.longrunning.Operation.metadata field.
|
2309
|
-
class GoogleCloudRetailV2mainExportMetadata
|
2310
|
-
include Google::Apis::Core::Hashable
|
2311
|
-
|
2312
|
-
# Operation create time.
|
2313
|
-
# Corresponds to the JSON property `createTime`
|
2314
|
-
# @return [String]
|
2315
|
-
attr_accessor :create_time
|
2316
|
-
|
2317
|
-
# Operation last update time. If the operation is done, this is also the finish
|
2318
|
-
# time.
|
2319
|
-
# Corresponds to the JSON property `updateTime`
|
2320
|
-
# @return [String]
|
2321
|
-
attr_accessor :update_time
|
2322
|
-
|
2323
|
-
def initialize(**args)
|
2324
|
-
update!(**args)
|
2325
|
-
end
|
2326
|
-
|
2327
|
-
# Update properties of this object
|
2328
|
-
def update!(**args)
|
2329
|
-
@create_time = args[:create_time] if args.key?(:create_time)
|
2330
|
-
@update_time = args[:update_time] if args.key?(:update_time)
|
2331
|
-
end
|
2332
|
-
end
|
2333
|
-
|
2334
|
-
# Response of the ExportProductsRequest. If the long running operation is done,
|
2335
|
-
# then this message is returned by the google.longrunning.Operations.response
|
2336
|
-
# field if the operation was successful.
|
2337
|
-
class GoogleCloudRetailV2mainExportProductsResponse
|
2338
|
-
include Google::Apis::Core::Hashable
|
2339
|
-
|
2340
|
-
# A sample of errors encountered while processing the request.
|
2341
|
-
# Corresponds to the JSON property `errorSamples`
|
2342
|
-
# @return [Array<Google::Apis::RetailV2::GoogleRpcStatus>]
|
2343
|
-
attr_accessor :error_samples
|
2344
|
-
|
2345
|
-
# Configuration of destination for Export related errors.
|
2346
|
-
# Corresponds to the JSON property `errorsConfig`
|
2347
|
-
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2mainExportErrorsConfig]
|
2348
|
-
attr_accessor :errors_config
|
2349
|
-
|
2350
|
-
def initialize(**args)
|
2351
|
-
update!(**args)
|
2352
|
-
end
|
2353
|
-
|
2354
|
-
# Update properties of this object
|
2355
|
-
def update!(**args)
|
2356
|
-
@error_samples = args[:error_samples] if args.key?(:error_samples)
|
2357
|
-
@errors_config = args[:errors_config] if args.key?(:errors_config)
|
2358
|
-
end
|
2359
|
-
end
|
2360
|
-
|
2361
|
-
# Response of the ExportUserEventsRequest. If the long running operation was
|
2362
|
-
# successful, then this message is returned by the google.longrunning.Operations.
|
2363
|
-
# response field if the operation was successful.
|
2364
|
-
class GoogleCloudRetailV2mainExportUserEventsResponse
|
2365
|
-
include Google::Apis::Core::Hashable
|
2366
|
-
|
2367
|
-
# A sample of errors encountered while processing the request.
|
2368
|
-
# Corresponds to the JSON property `errorSamples`
|
2369
|
-
# @return [Array<Google::Apis::RetailV2::GoogleRpcStatus>]
|
2370
|
-
attr_accessor :error_samples
|
2371
|
-
|
2372
|
-
# Configuration of destination for Export related errors.
|
2373
|
-
# Corresponds to the JSON property `errorsConfig`
|
2374
|
-
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2mainExportErrorsConfig]
|
2375
|
-
attr_accessor :errors_config
|
2376
|
-
|
2377
|
-
def initialize(**args)
|
2378
|
-
update!(**args)
|
2379
|
-
end
|
2380
|
-
|
2381
|
-
# Update properties of this object
|
2382
|
-
def update!(**args)
|
2383
|
-
@error_samples = args[:error_samples] if args.key?(:error_samples)
|
2384
|
-
@errors_config = args[:errors_config] if args.key?(:errors_config)
|
2385
|
-
end
|
2386
|
-
end
|
2387
|
-
|
2388
|
-
# Configuration of destination for Import related errors.
|
2389
|
-
class GoogleCloudRetailV2mainImportErrorsConfig
|
2390
|
-
include Google::Apis::Core::Hashable
|
2391
|
-
|
2392
|
-
# Google Cloud Storage path for import errors. This must be an empty, existing
|
2393
|
-
# Cloud Storage bucket. Import errors will be written to a file in this bucket,
|
2394
|
-
# one per line, as a JSON-encoded `google.rpc.Status` message.
|
2395
|
-
# Corresponds to the JSON property `gcsPrefix`
|
2396
|
-
# @return [String]
|
2397
|
-
attr_accessor :gcs_prefix
|
2398
|
-
|
2399
|
-
def initialize(**args)
|
2400
|
-
update!(**args)
|
2401
|
-
end
|
2402
|
-
|
2403
|
-
# Update properties of this object
|
2404
|
-
def update!(**args)
|
2405
|
-
@gcs_prefix = args[:gcs_prefix] if args.key?(:gcs_prefix)
|
2406
|
-
end
|
2407
|
-
end
|
2408
|
-
|
2409
|
-
# Metadata related to the progress of the Import operation. This will be
|
2410
|
-
# returned by the google.longrunning.Operation.metadata field.
|
2411
|
-
class GoogleCloudRetailV2mainImportMetadata
|
2412
|
-
include Google::Apis::Core::Hashable
|
2413
|
-
|
2414
|
-
# Operation create time.
|
2415
|
-
# Corresponds to the JSON property `createTime`
|
2416
|
-
# @return [String]
|
2417
|
-
attr_accessor :create_time
|
2418
|
-
|
2419
|
-
# Count of entries that encountered errors while processing.
|
2420
|
-
# Corresponds to the JSON property `failureCount`
|
2421
|
-
# @return [Fixnum]
|
2422
|
-
attr_accessor :failure_count
|
2423
|
-
|
2424
|
-
# Count of entries that were processed successfully.
|
2425
|
-
# Corresponds to the JSON property `successCount`
|
2426
|
-
# @return [Fixnum]
|
2427
|
-
attr_accessor :success_count
|
2428
|
-
|
2429
|
-
# Operation last update time. If the operation is done, this is also the finish
|
2430
|
-
# time.
|
2431
|
-
# Corresponds to the JSON property `updateTime`
|
2432
|
-
# @return [String]
|
2433
|
-
attr_accessor :update_time
|
2434
|
-
|
2435
|
-
def initialize(**args)
|
2436
|
-
update!(**args)
|
2437
|
-
end
|
2438
|
-
|
2439
|
-
# Update properties of this object
|
2440
|
-
def update!(**args)
|
2441
|
-
@create_time = args[:create_time] if args.key?(:create_time)
|
2442
|
-
@failure_count = args[:failure_count] if args.key?(:failure_count)
|
2443
|
-
@success_count = args[:success_count] if args.key?(:success_count)
|
2444
|
-
@update_time = args[:update_time] if args.key?(:update_time)
|
2445
|
-
end
|
2446
|
-
end
|
2447
|
-
|
2448
|
-
# Response of the ImportProductsRequest. If the long running operation is done,
|
2449
|
-
# then this message is returned by the google.longrunning.Operations.response
|
2450
|
-
# field if the operation was successful.
|
2451
|
-
class GoogleCloudRetailV2mainImportProductsResponse
|
2452
|
-
include Google::Apis::Core::Hashable
|
2453
|
-
|
2454
|
-
# A sample of errors encountered while processing the request.
|
2455
|
-
# Corresponds to the JSON property `errorSamples`
|
2456
|
-
# @return [Array<Google::Apis::RetailV2::GoogleRpcStatus>]
|
2457
|
-
attr_accessor :error_samples
|
2458
|
-
|
2459
|
-
# Configuration of destination for Import related errors.
|
2460
|
-
# Corresponds to the JSON property `errorsConfig`
|
2461
|
-
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2mainImportErrorsConfig]
|
2462
|
-
attr_accessor :errors_config
|
2463
|
-
|
2464
|
-
def initialize(**args)
|
2465
|
-
update!(**args)
|
2466
|
-
end
|
2467
|
-
|
2468
|
-
# Update properties of this object
|
2469
|
-
def update!(**args)
|
2470
|
-
@error_samples = args[:error_samples] if args.key?(:error_samples)
|
2471
|
-
@errors_config = args[:errors_config] if args.key?(:errors_config)
|
2472
|
-
end
|
2473
|
-
end
|
2474
|
-
|
2475
|
-
# Response of the ImportUserEventsRequest. If the long running operation was
|
2476
|
-
# successful, then this message is returned by the google.longrunning.Operations.
|
2477
|
-
# response field if the operation was successful.
|
2478
|
-
class GoogleCloudRetailV2mainImportUserEventsResponse
|
2479
|
-
include Google::Apis::Core::Hashable
|
2480
|
-
|
2481
|
-
# A sample of errors encountered while processing the request.
|
2482
|
-
# Corresponds to the JSON property `errorSamples`
|
2483
|
-
# @return [Array<Google::Apis::RetailV2::GoogleRpcStatus>]
|
2484
|
-
attr_accessor :error_samples
|
2485
|
-
|
2486
|
-
# Configuration of destination for Import related errors.
|
2487
|
-
# Corresponds to the JSON property `errorsConfig`
|
2488
|
-
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2mainImportErrorsConfig]
|
2489
|
-
attr_accessor :errors_config
|
2490
|
-
|
2491
|
-
# A summary of import result. The UserEventImportSummary summarizes the import
|
2492
|
-
# status for user events.
|
2493
|
-
# Corresponds to the JSON property `importSummary`
|
2494
|
-
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2mainUserEventImportSummary]
|
2495
|
-
attr_accessor :import_summary
|
2496
|
-
|
2497
|
-
def initialize(**args)
|
2498
|
-
update!(**args)
|
2499
|
-
end
|
2500
|
-
|
2501
|
-
# Update properties of this object
|
2502
|
-
def update!(**args)
|
2503
|
-
@error_samples = args[:error_samples] if args.key?(:error_samples)
|
2504
|
-
@errors_config = args[:errors_config] if args.key?(:errors_config)
|
2505
|
-
@import_summary = args[:import_summary] if args.key?(:import_summary)
|
2506
|
-
end
|
2507
|
-
end
|
2508
|
-
|
2509
|
-
# Metadata related to the progress of the Purge operation. This will be returned
|
2510
|
-
# by the google.longrunning.Operation.metadata field.
|
2511
|
-
class GoogleCloudRetailV2mainPurgeMetadata
|
2512
|
-
include Google::Apis::Core::Hashable
|
2513
|
-
|
2514
|
-
def initialize(**args)
|
2515
|
-
update!(**args)
|
2516
|
-
end
|
2517
|
-
|
2518
|
-
# Update properties of this object
|
2519
|
-
def update!(**args)
|
2520
|
-
end
|
2521
|
-
end
|
2522
|
-
|
2523
|
-
# Response of the PurgeUserEventsRequest. If the long running operation is
|
2524
|
-
# successfully done, then this message is returned by the google.longrunning.
|
2525
|
-
# Operations.response field.
|
2526
|
-
class GoogleCloudRetailV2mainPurgeUserEventsResponse
|
2527
|
-
include Google::Apis::Core::Hashable
|
2528
|
-
|
2529
|
-
# The total count of events purged as a result of the operation.
|
2530
|
-
# Corresponds to the JSON property `purgedEventsCount`
|
2531
|
-
# @return [Fixnum]
|
2532
|
-
attr_accessor :purged_events_count
|
2533
|
-
|
2534
|
-
def initialize(**args)
|
2535
|
-
update!(**args)
|
2536
|
-
end
|
2537
|
-
|
2538
|
-
# Update properties of this object
|
2539
|
-
def update!(**args)
|
2540
|
-
@purged_events_count = args[:purged_events_count] if args.key?(:purged_events_count)
|
2541
|
-
end
|
2542
|
-
end
|
2543
|
-
|
2544
|
-
# Metadata for RejoinUserEvents method.
|
2545
|
-
class GoogleCloudRetailV2mainRejoinUserEventsMetadata
|
2546
|
-
include Google::Apis::Core::Hashable
|
2547
|
-
|
2548
|
-
def initialize(**args)
|
2549
|
-
update!(**args)
|
2550
|
-
end
|
2551
|
-
|
2552
|
-
# Update properties of this object
|
2553
|
-
def update!(**args)
|
2554
|
-
end
|
2555
|
-
end
|
2556
|
-
|
2557
|
-
# Response message for RejoinUserEvents method.
|
2558
|
-
class GoogleCloudRetailV2mainRejoinUserEventsResponse
|
2559
|
-
include Google::Apis::Core::Hashable
|
2560
|
-
|
2561
|
-
# Number of user events that were joined with latest product catalog.
|
2562
|
-
# Corresponds to the JSON property `rejoinedUserEventsCount`
|
2563
|
-
# @return [Fixnum]
|
2564
|
-
attr_accessor :rejoined_user_events_count
|
2565
|
-
|
2566
|
-
def initialize(**args)
|
2567
|
-
update!(**args)
|
2568
|
-
end
|
2569
|
-
|
2570
|
-
# Update properties of this object
|
2571
|
-
def update!(**args)
|
2572
|
-
@rejoined_user_events_count = args[:rejoined_user_events_count] if args.key?(:rejoined_user_events_count)
|
2573
|
-
end
|
2574
|
-
end
|
2575
|
-
|
2576
|
-
# A summary of import result. The UserEventImportSummary summarizes the import
|
2577
|
-
# status for user events.
|
2578
|
-
class GoogleCloudRetailV2mainUserEventImportSummary
|
2579
|
-
include Google::Apis::Core::Hashable
|
2580
|
-
|
2581
|
-
# Count of user events imported with complete existing catalog information.
|
2582
|
-
# Corresponds to the JSON property `joinedEventsCount`
|
2583
|
-
# @return [Fixnum]
|
2584
|
-
attr_accessor :joined_events_count
|
2585
|
-
|
2586
|
-
# Count of user events imported, but with catalog information not found in the
|
2587
|
-
# imported catalog.
|
2588
|
-
# Corresponds to the JSON property `unjoinedEventsCount`
|
2589
|
-
# @return [Fixnum]
|
2590
|
-
attr_accessor :unjoined_events_count
|
2591
|
-
|
2592
|
-
def initialize(**args)
|
2593
|
-
update!(**args)
|
2594
|
-
end
|
2595
|
-
|
2596
|
-
# Update properties of this object
|
2597
|
-
def update!(**args)
|
2598
|
-
@joined_events_count = args[:joined_events_count] if args.key?(:joined_events_count)
|
2599
|
-
@unjoined_events_count = args[:unjoined_events_count] if args.key?(:unjoined_events_count)
|
2600
|
-
end
|
2601
|
-
end
|
2602
|
-
|
2603
2297
|
# The response message for Operations.ListOperations.
|
2604
2298
|
class GoogleLongrunningListOperationsResponse
|
2605
2299
|
include Google::Apis::Core::Hashable
|
@@ -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.9.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.3.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210528"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -418,84 +418,6 @@ module Google
|
|
418
418
|
include Google::Apis::Core::JsonObjectSupport
|
419
419
|
end
|
420
420
|
|
421
|
-
class GoogleCloudRetailV2mainExportErrorsConfig
|
422
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
423
|
-
|
424
|
-
include Google::Apis::Core::JsonObjectSupport
|
425
|
-
end
|
426
|
-
|
427
|
-
class GoogleCloudRetailV2mainExportMetadata
|
428
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
429
|
-
|
430
|
-
include Google::Apis::Core::JsonObjectSupport
|
431
|
-
end
|
432
|
-
|
433
|
-
class GoogleCloudRetailV2mainExportProductsResponse
|
434
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
435
|
-
|
436
|
-
include Google::Apis::Core::JsonObjectSupport
|
437
|
-
end
|
438
|
-
|
439
|
-
class GoogleCloudRetailV2mainExportUserEventsResponse
|
440
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
441
|
-
|
442
|
-
include Google::Apis::Core::JsonObjectSupport
|
443
|
-
end
|
444
|
-
|
445
|
-
class GoogleCloudRetailV2mainImportErrorsConfig
|
446
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
447
|
-
|
448
|
-
include Google::Apis::Core::JsonObjectSupport
|
449
|
-
end
|
450
|
-
|
451
|
-
class GoogleCloudRetailV2mainImportMetadata
|
452
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
453
|
-
|
454
|
-
include Google::Apis::Core::JsonObjectSupport
|
455
|
-
end
|
456
|
-
|
457
|
-
class GoogleCloudRetailV2mainImportProductsResponse
|
458
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
459
|
-
|
460
|
-
include Google::Apis::Core::JsonObjectSupport
|
461
|
-
end
|
462
|
-
|
463
|
-
class GoogleCloudRetailV2mainImportUserEventsResponse
|
464
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
465
|
-
|
466
|
-
include Google::Apis::Core::JsonObjectSupport
|
467
|
-
end
|
468
|
-
|
469
|
-
class GoogleCloudRetailV2mainPurgeMetadata
|
470
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
471
|
-
|
472
|
-
include Google::Apis::Core::JsonObjectSupport
|
473
|
-
end
|
474
|
-
|
475
|
-
class GoogleCloudRetailV2mainPurgeUserEventsResponse
|
476
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
477
|
-
|
478
|
-
include Google::Apis::Core::JsonObjectSupport
|
479
|
-
end
|
480
|
-
|
481
|
-
class GoogleCloudRetailV2mainRejoinUserEventsMetadata
|
482
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
483
|
-
|
484
|
-
include Google::Apis::Core::JsonObjectSupport
|
485
|
-
end
|
486
|
-
|
487
|
-
class GoogleCloudRetailV2mainRejoinUserEventsResponse
|
488
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
489
|
-
|
490
|
-
include Google::Apis::Core::JsonObjectSupport
|
491
|
-
end
|
492
|
-
|
493
|
-
class GoogleCloudRetailV2mainUserEventImportSummary
|
494
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
495
|
-
|
496
|
-
include Google::Apis::Core::JsonObjectSupport
|
497
|
-
end
|
498
|
-
|
499
421
|
class GoogleLongrunningListOperationsResponse
|
500
422
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
501
423
|
|
@@ -1139,114 +1061,6 @@ module Google
|
|
1139
1061
|
end
|
1140
1062
|
end
|
1141
1063
|
|
1142
|
-
class GoogleCloudRetailV2mainExportErrorsConfig
|
1143
|
-
# @private
|
1144
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
1145
|
-
property :gcs_prefix, as: 'gcsPrefix'
|
1146
|
-
end
|
1147
|
-
end
|
1148
|
-
|
1149
|
-
class GoogleCloudRetailV2mainExportMetadata
|
1150
|
-
# @private
|
1151
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
1152
|
-
property :create_time, as: 'createTime'
|
1153
|
-
property :update_time, as: 'updateTime'
|
1154
|
-
end
|
1155
|
-
end
|
1156
|
-
|
1157
|
-
class GoogleCloudRetailV2mainExportProductsResponse
|
1158
|
-
# @private
|
1159
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
1160
|
-
collection :error_samples, as: 'errorSamples', class: Google::Apis::RetailV2::GoogleRpcStatus, decorator: Google::Apis::RetailV2::GoogleRpcStatus::Representation
|
1161
|
-
|
1162
|
-
property :errors_config, as: 'errorsConfig', class: Google::Apis::RetailV2::GoogleCloudRetailV2mainExportErrorsConfig, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2mainExportErrorsConfig::Representation
|
1163
|
-
|
1164
|
-
end
|
1165
|
-
end
|
1166
|
-
|
1167
|
-
class GoogleCloudRetailV2mainExportUserEventsResponse
|
1168
|
-
# @private
|
1169
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
1170
|
-
collection :error_samples, as: 'errorSamples', class: Google::Apis::RetailV2::GoogleRpcStatus, decorator: Google::Apis::RetailV2::GoogleRpcStatus::Representation
|
1171
|
-
|
1172
|
-
property :errors_config, as: 'errorsConfig', class: Google::Apis::RetailV2::GoogleCloudRetailV2mainExportErrorsConfig, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2mainExportErrorsConfig::Representation
|
1173
|
-
|
1174
|
-
end
|
1175
|
-
end
|
1176
|
-
|
1177
|
-
class GoogleCloudRetailV2mainImportErrorsConfig
|
1178
|
-
# @private
|
1179
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
1180
|
-
property :gcs_prefix, as: 'gcsPrefix'
|
1181
|
-
end
|
1182
|
-
end
|
1183
|
-
|
1184
|
-
class GoogleCloudRetailV2mainImportMetadata
|
1185
|
-
# @private
|
1186
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
1187
|
-
property :create_time, as: 'createTime'
|
1188
|
-
property :failure_count, :numeric_string => true, as: 'failureCount'
|
1189
|
-
property :success_count, :numeric_string => true, as: 'successCount'
|
1190
|
-
property :update_time, as: 'updateTime'
|
1191
|
-
end
|
1192
|
-
end
|
1193
|
-
|
1194
|
-
class GoogleCloudRetailV2mainImportProductsResponse
|
1195
|
-
# @private
|
1196
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
1197
|
-
collection :error_samples, as: 'errorSamples', class: Google::Apis::RetailV2::GoogleRpcStatus, decorator: Google::Apis::RetailV2::GoogleRpcStatus::Representation
|
1198
|
-
|
1199
|
-
property :errors_config, as: 'errorsConfig', class: Google::Apis::RetailV2::GoogleCloudRetailV2mainImportErrorsConfig, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2mainImportErrorsConfig::Representation
|
1200
|
-
|
1201
|
-
end
|
1202
|
-
end
|
1203
|
-
|
1204
|
-
class GoogleCloudRetailV2mainImportUserEventsResponse
|
1205
|
-
# @private
|
1206
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
1207
|
-
collection :error_samples, as: 'errorSamples', class: Google::Apis::RetailV2::GoogleRpcStatus, decorator: Google::Apis::RetailV2::GoogleRpcStatus::Representation
|
1208
|
-
|
1209
|
-
property :errors_config, as: 'errorsConfig', class: Google::Apis::RetailV2::GoogleCloudRetailV2mainImportErrorsConfig, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2mainImportErrorsConfig::Representation
|
1210
|
-
|
1211
|
-
property :import_summary, as: 'importSummary', class: Google::Apis::RetailV2::GoogleCloudRetailV2mainUserEventImportSummary, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2mainUserEventImportSummary::Representation
|
1212
|
-
|
1213
|
-
end
|
1214
|
-
end
|
1215
|
-
|
1216
|
-
class GoogleCloudRetailV2mainPurgeMetadata
|
1217
|
-
# @private
|
1218
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
1219
|
-
end
|
1220
|
-
end
|
1221
|
-
|
1222
|
-
class GoogleCloudRetailV2mainPurgeUserEventsResponse
|
1223
|
-
# @private
|
1224
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
1225
|
-
property :purged_events_count, :numeric_string => true, as: 'purgedEventsCount'
|
1226
|
-
end
|
1227
|
-
end
|
1228
|
-
|
1229
|
-
class GoogleCloudRetailV2mainRejoinUserEventsMetadata
|
1230
|
-
# @private
|
1231
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
1232
|
-
end
|
1233
|
-
end
|
1234
|
-
|
1235
|
-
class GoogleCloudRetailV2mainRejoinUserEventsResponse
|
1236
|
-
# @private
|
1237
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
1238
|
-
property :rejoined_user_events_count, :numeric_string => true, as: 'rejoinedUserEventsCount'
|
1239
|
-
end
|
1240
|
-
end
|
1241
|
-
|
1242
|
-
class GoogleCloudRetailV2mainUserEventImportSummary
|
1243
|
-
# @private
|
1244
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
1245
|
-
property :joined_events_count, :numeric_string => true, as: 'joinedEventsCount'
|
1246
|
-
property :unjoined_events_count, :numeric_string => true, as: 'unjoinedEventsCount'
|
1247
|
-
end
|
1248
|
-
end
|
1249
|
-
|
1250
1064
|
class GoogleLongrunningListOperationsResponse
|
1251
1065
|
# @private
|
1252
1066
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -100,10 +100,8 @@ module Google
|
|
100
100
|
# Required. Immutable. The fully qualified resource name of the catalog.
|
101
101
|
# @param [Google::Apis::RetailV2::GoogleCloudRetailV2Catalog] google_cloud_retail_v2_catalog_object
|
102
102
|
# @param [String] update_mask
|
103
|
-
# Indicates which fields in the provided Catalog to update. If
|
104
|
-
#
|
105
|
-
# currently supported field to update. If an unsupported or unknown field is
|
106
|
-
# provided, an INVALID_ARGUMENT error is returned.
|
103
|
+
# Indicates which fields in the provided Catalog to update. If an unsupported or
|
104
|
+
# unknown field is provided, an INVALID_ARGUMENT error is returned.
|
107
105
|
# @param [String] fields
|
108
106
|
# Selector specifying which fields to include in a partial response.
|
109
107
|
# @param [String] quota_user
|
@@ -443,25 +441,12 @@ module Google
|
|
443
441
|
# Makes a recommendation prediction.
|
444
442
|
# @param [String] placement
|
445
443
|
# Required. Full resource name of the format: `name=projects/*/locations/global/
|
446
|
-
# catalogs/default_catalog/placements/*` The
|
447
|
-
# placement.
|
448
|
-
#
|
449
|
-
#
|
450
|
-
#
|
451
|
-
#
|
452
|
-
# shopping cart page. * `home_page`: Predicts the next product that a user will
|
453
|
-
# most likely engage with or purchase based on the shopping or viewing history
|
454
|
-
# of the specified `userId` or `visitorId`. For example - Recommendations for
|
455
|
-
# you. * `product_detail`: Predicts the next product that a user will most
|
456
|
-
# likely engage with or purchase. The prediction is based on the shopping or
|
457
|
-
# viewing history of the specified `userId` or `visitorId` and its relevance to
|
458
|
-
# a specified `CatalogItem`. Typically used on product detail pages. For example
|
459
|
-
# - More products like this. * `recently_viewed_default`: Returns up to 75
|
460
|
-
# products recently viewed by the specified `userId` or `visitorId`, most recent
|
461
|
-
# ones first. Returns nothing if neither of them has viewed any products yet.
|
462
|
-
# For example - Recently viewed. The full list of available placements can be
|
463
|
-
# seen at https://console.cloud.google.com/recommendation/catalogs/
|
464
|
-
# default_catalog/placements
|
444
|
+
# catalogs/default_catalog/placements/*` The ID of the Recommendations AI
|
445
|
+
# placement. Before you can request predictions from your model, you must create
|
446
|
+
# at least one placement for it. For more information, see [Managing placements](
|
447
|
+
# https://cloud.google.com/retail/recommendations-ai/docs/manage-placements).
|
448
|
+
# The full list of available placements can be seen at https://console.cloud.
|
449
|
+
# google.com/recommendation/catalogs/default_catalog/placements
|
465
450
|
# @param [Google::Apis::RetailV2::GoogleCloudRetailV2PredictRequest] google_cloud_retail_v2_predict_request_object
|
466
451
|
# @param [String] fields
|
467
452
|
# 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.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-06-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -52,7 +52,7 @@ licenses:
|
|
52
52
|
metadata:
|
53
53
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
54
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-retail_v2/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.
|
55
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.9.0
|
56
56
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-retail_v2
|
57
57
|
post_install_message:
|
58
58
|
rdoc_options: []
|
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
71
|
requirements: []
|
72
|
-
rubygems_version: 3.2.
|
72
|
+
rubygems_version: 3.2.17
|
73
73
|
signing_key:
|
74
74
|
specification_version: 4
|
75
75
|
summary: Simple REST client for Retail API V2
|