google-apis-retail_v2alpha 0.3.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3cacfffee52341de303b76232a1ca07e1ab44b23224221f5b7d8e0b9f046d340
4
- data.tar.gz: 4982d84dd2d81385b81011e1e648c12a0d1758a1bfc9ce0e7fb71b7693a7f9bf
3
+ metadata.gz: 713fbfef0fb455421f253072537ef6ddcad2b3abd7c4e829843f66b3d53f083c
4
+ data.tar.gz: 77ed065f22ff640079f9c1a1a50059ef326d80325e838a8e97f15ad8f8729ac6
5
5
  SHA512:
6
- metadata.gz: 7a6fd55ef37fbbd8b2b6e011ae0f35581fd86c42c5472071a0c357c2d168a978661115e9b209ca2f3c4c77b39c48da904b86a4e441ed46af7c5706b73f87d54a
7
- data.tar.gz: 4a417bc79d69cf80b7f95efa853bf8d6560313c7b9b6cd8d62e9754c9404a6ff2529ebf0eeba1da1c48ede024809fc797dc05e202433366dbb697d16a98fec52
6
+ metadata.gz: 7b40fa1e89c828db077265265803e713e598232a8e434824405a0c962a996c198cf25b113b008543c111e727621b334c0de7f8ecc880495b83e019dab7e8d0f1
7
+ data.tar.gz: 1e972fdec897974382df00a61a58c0a6a6890ae2a2e22a640f95482432e110ea39f22872c12d90143d11cbc53a9f25ad22c9169261a95cf0561ebc3714c751b5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # Release history for google-apis-retail_v2alpha
2
2
 
3
+ ### v0.8.0 (2021-05-22)
4
+
5
+ * Regenerated from discovery document revision 20210514
6
+ * Unspecified changes
7
+
8
+ ### v0.7.0 (2021-05-11)
9
+
10
+ * Regenerated from discovery document revision 20210430
11
+
12
+ ### v0.6.0 (2021-04-02)
13
+
14
+ * Regenerated from discovery document revision 20210326
15
+
16
+ ### v0.5.0 (2021-03-20)
17
+
18
+ * Regenerated from discovery document revision 20210312
19
+ * Regenerated using generator version 0.2.0
20
+
21
+ ### v0.4.0 (2021-03-06)
22
+
23
+ * Regenerated from discovery document revision 20210226
24
+ * Unspecified changes
25
+
3
26
  ### v0.3.0 (2021-02-20)
4
27
 
5
28
  * Regenerated from discovery document revision 20210212
@@ -31,7 +31,7 @@ module Google
31
31
  # This is NOT the gem version.
32
32
  VERSION = 'V2alpha'
33
33
 
34
- # View and manage your data across Google Cloud Platform services
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
- # GCS file path of the import source. Can be set for batch operation error.
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
@@ -522,8 +523,8 @@ module Google
522
523
  # @return [String]
523
524
  attr_accessor :gcs_staging_dir
524
525
 
525
- # The project id (can be project # or id) that the BigQuery source is in with a
526
- # length limit of 128 characters. If not specified, inherits the project id from
526
+ # The project ID (can be project # or ID) that the BigQuery source is in with a
527
+ # length limit of 128 characters. If not specified, inherits the project ID from
527
528
  # the parent request.
528
529
  # Corresponds to the JSON property `projectId`
529
530
  # @return [String]
@@ -726,7 +727,7 @@ module Google
726
727
  # product imports: * `product` (default): One JSON Product per line. Each
727
728
  # product must have a valid Product.id. * `product_merchant_center`: See [
728
729
  # Importing catalog data from Merchant Center](https://cloud.google.com/retail/
729
- # recommendations-ai/docs/upload-catalog#mcc). Supported values for user events
730
+ # recommendations-ai/docs/upload-catalog#mc). Supported values for user events
730
731
  # imports: * `user_event` (default): One JSON UserEvent per line. * `
731
732
  # user_event_ga360`: Using https://support.google.com/analytics/answer/3437719?
732
733
  # hl=en.
@@ -739,8 +740,8 @@ module Google
739
740
  # bucket/directory/object.json`) or a pattern matching one or more files, such
740
741
  # as `gs://bucket/directory/*.json`. A request can contain at most 100 files,
741
742
  # and each file can be up to 2 GB. See [Importing product information](https://
742
- # cloud.google.com/recommendations-ai/docs/upload-catalog) for the expected file
743
- # format and setup instructions.
743
+ # cloud.google.com/retail/recommendations-ai/docs/upload-catalog) for the
744
+ # expected file format and setup instructions.
744
745
  # Corresponds to the JSON property `inputUris`
745
746
  # @return [Array<String>]
746
747
  attr_accessor :input_uris
@@ -1008,10 +1009,11 @@ module Google
1008
1009
  # expression is enclosed in parentheses, and must be separated from the tag
1009
1010
  # values by a space. `-"tagA"` is also supported and is equivalent to `NOT "tagA"
1010
1011
  # `. Tag values must be double quoted UTF-8 encoded strings with a size limit of
1011
- # 1,000 characters. * filterOutOfStockItems. Restricts predictions to products
1012
- # that do not have a stockState value of OUT_OF_STOCK. Examples: * tag=("Red" OR
1013
- # "Blue") tag="New-Arrival" tag=(NOT "promotional") * filterOutOfStockItems tag=(
1014
- # -"promotional") * filterOutOfStockItems If your filter blocks all prediction
1012
+ # 1,000 characters. Note: "Recently viewed" models don't support tag filtering
1013
+ # at the moment. * filterOutOfStockItems. Restricts predictions to products that
1014
+ # do not have a stockState value of OUT_OF_STOCK. Examples: * tag=("Red" OR "
1015
+ # Blue") tag="New-Arrival" tag=(NOT "promotional") * filterOutOfStockItems tag=(-
1016
+ # "promotional") * filterOutOfStockItems If your filter blocks all prediction
1015
1017
  # results, nothing will be returned. If you want generic (unfiltered) popular
1016
1018
  # products to be returned instead, set `strictFiltering` to false in `
1017
1019
  # PredictRequest.params`.
@@ -1019,12 +1021,17 @@ module Google
1019
1021
  # @return [String]
1020
1022
  attr_accessor :filter
1021
1023
 
1022
- # The labels for the predict request. * Label keys can contain lowercase letters,
1023
- # digits and hyphens, must start with a letter, and must end with a letter or
1024
- # digit. * Non-zero label values can contain lowercase letters, digits and
1025
- # hyphens, must start with a letter, and must end with a letter or digit. * No
1026
- # more than 64 labels can be associated with a given request. See https://goo.gl/
1027
- # xmQnxf for more information on and examples of labels.
1024
+ # The labels applied to a resource must meet the following requirements: * Each
1025
+ # resource can have multiple labels, up to a maximum of 64. * Each label must be
1026
+ # a key-value pair. * Keys have a minimum length of 1 character and a maximum
1027
+ # length of 63 characters, and cannot be empty. Values can be empty, and have a
1028
+ # maximum length of 63 characters. * Keys and values can contain only lowercase
1029
+ # letters, numeric characters, underscores, and dashes. All characters must use
1030
+ # UTF-8 encoding, and international characters are allowed. * The key portion of
1031
+ # a label must be unique. However, you can use the same key with multiple
1032
+ # resources. * Keys must start with a lowercase letter or international
1033
+ # character. See [Google Cloud Document](https://cloud.google.com/resource-
1034
+ # manager/docs/creating-managing-labels#requirements) for more details.
1028
1035
  # Corresponds to the JSON property `labels`
1029
1036
  # @return [Hash<String,String>]
1030
1037
  attr_accessor :labels
@@ -1215,10 +1222,9 @@ module Google
1215
1222
  # product, or age of a customer. For example: `` "vendor": `"text": ["vendor123",
1216
1223
  # "vendor456"]`, "lengths_cm": `"numbers":[2.3, 15.4]`, "heights_cm": `"numbers"
1217
1224
  # :[8.1, 6.4]` ``. This field needs to pass all below criteria, otherwise an
1218
- # INVALID_ARGUMENT error is returned: * Max entries count: 150 by default; 100
1219
- # for Type.VARIANT. * Max indexable entries count: 150 by default; 40 for Type.
1220
- # VARIANT. * Max searchable entries count: 30. * The key must be a UTF-8 encoded
1221
- # string with a length limit of 128 characters.
1225
+ # INVALID_ARGUMENT error is returned: * Max entries count: 200 by default; 100
1226
+ # for Type.VARIANT. * The key must be a UTF-8 encoded string with a length limit
1227
+ # of 128 characters.
1222
1228
  # Corresponds to the JSON property `attributes`
1223
1229
  # @return [Hash<String,Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCustomAttribute>]
1224
1230
  attr_accessor :attributes
@@ -1325,7 +1331,7 @@ module Google
1325
1331
  attr_accessor :tags
1326
1332
 
1327
1333
  # Required. Product title. This field must be a UTF-8 encoded string with a
1328
- # length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is
1334
+ # length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is
1329
1335
  # returned. Google Merchant Center property [title](https://support.google.com/
1330
1336
  # merchants/answer/6324415). Schema.org property [Product.name](https://schema.
1331
1337
  # org/name).
@@ -1333,7 +1339,8 @@ module Google
1333
1339
  # @return [String]
1334
1340
  attr_accessor :title
1335
1341
 
1336
- # Immutable. The type of the product. This field is output-only.
1342
+ # Immutable. The type of the product. Default to Catalog.product_level_config.
1343
+ # ingestion_product_type if unset.
1337
1344
  # Corresponds to the JSON property `type`
1338
1345
  # @return [String]
1339
1346
  attr_accessor :type
@@ -1466,8 +1473,8 @@ module Google
1466
1473
  # this field is set to an invalid value other than these, an INVALID_ARGUMENT
1467
1474
  # error is returned. If this field is `variant` and
1468
1475
  # merchant_center_product_id_field is `itemGroupId`, an INVALID_ARGUMENT error
1469
- # is returned. See [Using catalog levels](/retail/recommendations-ai/docs/
1470
- # catalog#catalog-levels) for more details.
1476
+ # is returned. See [Using product levels](https://cloud.google.com/retail/
1477
+ # recommendations-ai/docs/catalog#product-levels) for more details.
1471
1478
  # Corresponds to the JSON property `ingestionProductType`
1472
1479
  # @return [String]
1473
1480
  attr_accessor :ingestion_product_type
@@ -1480,8 +1487,8 @@ module Google
1480
1487
  # the item group. If this field is set to an invalid value other than these, an
1481
1488
  # INVALID_ARGUMENT error is returned. If this field is `itemGroupId` and
1482
1489
  # ingestion_product_type is `variant`, an INVALID_ARGUMENT error is returned.
1483
- # See [Using catalog levels](/retail/recommendations-ai/docs/catalog#catalog-
1484
- # levels) for more details.
1490
+ # See [Using product levels](https://cloud.google.com/retail/recommendations-ai/
1491
+ # docs/catalog#product-levels) for more details.
1485
1492
  # Corresponds to the JSON property `merchantCenterProductIdField`
1486
1493
  # @return [String]
1487
1494
  attr_accessor :merchant_center_product_id_field
@@ -1790,6 +1797,12 @@ module Google
1790
1797
  # @return [String]
1791
1798
  attr_accessor :search_query
1792
1799
 
1800
+ # Represents the user sessions to aggregate user behavior within a time period.
1801
+ # If not set, heuristics will be used to autogenerate one.
1802
+ # Corresponds to the JSON property `sessionId`
1803
+ # @return [String]
1804
+ attr_accessor :session_id
1805
+
1793
1806
  # Complete URL (window.location.href) of the user's current page. When using the
1794
1807
  # client side event reporting with JavaScript pixel and Google Tag Manager, this
1795
1808
  # value is filled in automatically. Maximum length 5,000 characters.
@@ -1807,7 +1820,9 @@ module Google
1807
1820
  # a visitor on a single device. This unique identifier should not change if the
1808
1821
  # visitor log in/out of the website. The field must be a UTF-8 encoded string
1809
1822
  # with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is
1810
- # returned.
1823
+ # returned. The field should not contain PII or user-data. We recommend to use
1824
+ # Google Analystics [Client ID](https://developers.google.com/analytics/
1825
+ # devguides/collection/analyticsjs/field-reference#clientId) for this field.
1811
1826
  # Corresponds to the JSON property `visitorId`
1812
1827
  # @return [String]
1813
1828
  attr_accessor :visitor_id
@@ -1830,6 +1845,7 @@ module Google
1830
1845
  @purchase_transaction = args[:purchase_transaction] if args.key?(:purchase_transaction)
1831
1846
  @referrer_uri = args[:referrer_uri] if args.key?(:referrer_uri)
1832
1847
  @search_query = args[:search_query] if args.key?(:search_query)
1848
+ @session_id = args[:session_id] if args.key?(:session_id)
1833
1849
  @uri = args[:uri] if args.key?(:uri)
1834
1850
  @user_info = args[:user_info] if args.key?(:user_info)
1835
1851
  @visitor_id = args[:visitor_id] if args.key?(:visitor_id)
@@ -2284,323 +2300,6 @@ module Google
2284
2300
  end
2285
2301
  end
2286
2302
 
2287
- # Configuration of destination for Export related errors.
2288
- class GoogleCloudRetailV2mainExportErrorsConfig
2289
- include Google::Apis::Core::Hashable
2290
-
2291
- # Google Cloud Storage path for import errors. This must be an empty, existing
2292
- # Cloud Storage bucket. Export errors will be written to a file in this bucket,
2293
- # one per line, as a JSON-encoded `google.rpc.Status` message.
2294
- # Corresponds to the JSON property `gcsPrefix`
2295
- # @return [String]
2296
- attr_accessor :gcs_prefix
2297
-
2298
- def initialize(**args)
2299
- update!(**args)
2300
- end
2301
-
2302
- # Update properties of this object
2303
- def update!(**args)
2304
- @gcs_prefix = args[:gcs_prefix] if args.key?(:gcs_prefix)
2305
- end
2306
- end
2307
-
2308
- # Metadata related to the progress of the Export operation. This will be
2309
- # returned by the google.longrunning.Operation.metadata field.
2310
- class GoogleCloudRetailV2mainExportMetadata
2311
- include Google::Apis::Core::Hashable
2312
-
2313
- # Operation create time.
2314
- # Corresponds to the JSON property `createTime`
2315
- # @return [String]
2316
- attr_accessor :create_time
2317
-
2318
- # Operation last update time. If the operation is done, this is also the finish
2319
- # time.
2320
- # Corresponds to the JSON property `updateTime`
2321
- # @return [String]
2322
- attr_accessor :update_time
2323
-
2324
- def initialize(**args)
2325
- update!(**args)
2326
- end
2327
-
2328
- # Update properties of this object
2329
- def update!(**args)
2330
- @create_time = args[:create_time] if args.key?(:create_time)
2331
- @update_time = args[:update_time] if args.key?(:update_time)
2332
- end
2333
- end
2334
-
2335
- # Response of the ExportProductsRequest. If the long running operation is done,
2336
- # then this message is returned by the google.longrunning.Operations.response
2337
- # field if the operation was successful.
2338
- class GoogleCloudRetailV2mainExportProductsResponse
2339
- include Google::Apis::Core::Hashable
2340
-
2341
- # A sample of errors encountered while processing the request.
2342
- # Corresponds to the JSON property `errorSamples`
2343
- # @return [Array<Google::Apis::RetailV2alpha::GoogleRpcStatus>]
2344
- attr_accessor :error_samples
2345
-
2346
- # Configuration of destination for Export related errors.
2347
- # Corresponds to the JSON property `errorsConfig`
2348
- # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2mainExportErrorsConfig]
2349
- attr_accessor :errors_config
2350
-
2351
- def initialize(**args)
2352
- update!(**args)
2353
- end
2354
-
2355
- # Update properties of this object
2356
- def update!(**args)
2357
- @error_samples = args[:error_samples] if args.key?(:error_samples)
2358
- @errors_config = args[:errors_config] if args.key?(:errors_config)
2359
- end
2360
- end
2361
-
2362
- # Response of the ExportUserEventsRequest. If the long running operation was
2363
- # successful, then this message is returned by the google.longrunning.Operations.
2364
- # response field if the operation was successful.
2365
- class GoogleCloudRetailV2mainExportUserEventsResponse
2366
- include Google::Apis::Core::Hashable
2367
-
2368
- # A sample of errors encountered while processing the request.
2369
- # Corresponds to the JSON property `errorSamples`
2370
- # @return [Array<Google::Apis::RetailV2alpha::GoogleRpcStatus>]
2371
- attr_accessor :error_samples
2372
-
2373
- # Configuration of destination for Export related errors.
2374
- # Corresponds to the JSON property `errorsConfig`
2375
- # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2mainExportErrorsConfig]
2376
- attr_accessor :errors_config
2377
-
2378
- def initialize(**args)
2379
- update!(**args)
2380
- end
2381
-
2382
- # Update properties of this object
2383
- def update!(**args)
2384
- @error_samples = args[:error_samples] if args.key?(:error_samples)
2385
- @errors_config = args[:errors_config] if args.key?(:errors_config)
2386
- end
2387
- end
2388
-
2389
- # Configuration of destination for Import related errors.
2390
- class GoogleCloudRetailV2mainImportErrorsConfig
2391
- include Google::Apis::Core::Hashable
2392
-
2393
- # Google Cloud Storage path for import errors. This must be an empty, existing
2394
- # Cloud Storage bucket. Import errors will be written to a file in this bucket,
2395
- # one per line, as a JSON-encoded `google.rpc.Status` message.
2396
- # Corresponds to the JSON property `gcsPrefix`
2397
- # @return [String]
2398
- attr_accessor :gcs_prefix
2399
-
2400
- def initialize(**args)
2401
- update!(**args)
2402
- end
2403
-
2404
- # Update properties of this object
2405
- def update!(**args)
2406
- @gcs_prefix = args[:gcs_prefix] if args.key?(:gcs_prefix)
2407
- end
2408
- end
2409
-
2410
- # Metadata related to the progress of the Import operation. This will be
2411
- # returned by the google.longrunning.Operation.metadata field.
2412
- class GoogleCloudRetailV2mainImportMetadata
2413
- include Google::Apis::Core::Hashable
2414
-
2415
- # Operation create time.
2416
- # Corresponds to the JSON property `createTime`
2417
- # @return [String]
2418
- attr_accessor :create_time
2419
-
2420
- # Count of entries that encountered errors while processing.
2421
- # Corresponds to the JSON property `failureCount`
2422
- # @return [Fixnum]
2423
- attr_accessor :failure_count
2424
-
2425
- # Count of entries that were processed successfully.
2426
- # Corresponds to the JSON property `successCount`
2427
- # @return [Fixnum]
2428
- attr_accessor :success_count
2429
-
2430
- # Operation last update time. If the operation is done, this is also the finish
2431
- # time.
2432
- # Corresponds to the JSON property `updateTime`
2433
- # @return [String]
2434
- attr_accessor :update_time
2435
-
2436
- def initialize(**args)
2437
- update!(**args)
2438
- end
2439
-
2440
- # Update properties of this object
2441
- def update!(**args)
2442
- @create_time = args[:create_time] if args.key?(:create_time)
2443
- @failure_count = args[:failure_count] if args.key?(:failure_count)
2444
- @success_count = args[:success_count] if args.key?(:success_count)
2445
- @update_time = args[:update_time] if args.key?(:update_time)
2446
- end
2447
- end
2448
-
2449
- # Response of the ImportProductsRequest. If the long running operation is done,
2450
- # then this message is returned by the google.longrunning.Operations.response
2451
- # field if the operation was successful.
2452
- class GoogleCloudRetailV2mainImportProductsResponse
2453
- include Google::Apis::Core::Hashable
2454
-
2455
- # A sample of errors encountered while processing the request.
2456
- # Corresponds to the JSON property `errorSamples`
2457
- # @return [Array<Google::Apis::RetailV2alpha::GoogleRpcStatus>]
2458
- attr_accessor :error_samples
2459
-
2460
- # Configuration of destination for Import related errors.
2461
- # Corresponds to the JSON property `errorsConfig`
2462
- # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2mainImportErrorsConfig]
2463
- attr_accessor :errors_config
2464
-
2465
- def initialize(**args)
2466
- update!(**args)
2467
- end
2468
-
2469
- # Update properties of this object
2470
- def update!(**args)
2471
- @error_samples = args[:error_samples] if args.key?(:error_samples)
2472
- @errors_config = args[:errors_config] if args.key?(:errors_config)
2473
- end
2474
- end
2475
-
2476
- # Response of the ImportUserEventsRequest. If the long running operation was
2477
- # successful, then this message is returned by the google.longrunning.Operations.
2478
- # response field if the operation was successful.
2479
- class GoogleCloudRetailV2mainImportUserEventsResponse
2480
- include Google::Apis::Core::Hashable
2481
-
2482
- # A sample of errors encountered while processing the request.
2483
- # Corresponds to the JSON property `errorSamples`
2484
- # @return [Array<Google::Apis::RetailV2alpha::GoogleRpcStatus>]
2485
- attr_accessor :error_samples
2486
-
2487
- # Configuration of destination for Import related errors.
2488
- # Corresponds to the JSON property `errorsConfig`
2489
- # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2mainImportErrorsConfig]
2490
- attr_accessor :errors_config
2491
-
2492
- # A summary of import result. The UserEventImportSummary summarizes the import
2493
- # status for user events.
2494
- # Corresponds to the JSON property `importSummary`
2495
- # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2mainUserEventImportSummary]
2496
- attr_accessor :import_summary
2497
-
2498
- def initialize(**args)
2499
- update!(**args)
2500
- end
2501
-
2502
- # Update properties of this object
2503
- def update!(**args)
2504
- @error_samples = args[:error_samples] if args.key?(:error_samples)
2505
- @errors_config = args[:errors_config] if args.key?(:errors_config)
2506
- @import_summary = args[:import_summary] if args.key?(:import_summary)
2507
- end
2508
- end
2509
-
2510
- # Metadata related to the progress of the Purge operation. This will be returned
2511
- # by the google.longrunning.Operation.metadata field.
2512
- class GoogleCloudRetailV2mainPurgeMetadata
2513
- include Google::Apis::Core::Hashable
2514
-
2515
- def initialize(**args)
2516
- update!(**args)
2517
- end
2518
-
2519
- # Update properties of this object
2520
- def update!(**args)
2521
- end
2522
- end
2523
-
2524
- # Response of the PurgeUserEventsRequest. If the long running operation is
2525
- # successfully done, then this message is returned by the google.longrunning.
2526
- # Operations.response field.
2527
- class GoogleCloudRetailV2mainPurgeUserEventsResponse
2528
- include Google::Apis::Core::Hashable
2529
-
2530
- # The total count of events purged as a result of the operation.
2531
- # Corresponds to the JSON property `purgedEventsCount`
2532
- # @return [Fixnum]
2533
- attr_accessor :purged_events_count
2534
-
2535
- def initialize(**args)
2536
- update!(**args)
2537
- end
2538
-
2539
- # Update properties of this object
2540
- def update!(**args)
2541
- @purged_events_count = args[:purged_events_count] if args.key?(:purged_events_count)
2542
- end
2543
- end
2544
-
2545
- # Metadata for RejoinUserEvents method.
2546
- class GoogleCloudRetailV2mainRejoinUserEventsMetadata
2547
- include Google::Apis::Core::Hashable
2548
-
2549
- def initialize(**args)
2550
- update!(**args)
2551
- end
2552
-
2553
- # Update properties of this object
2554
- def update!(**args)
2555
- end
2556
- end
2557
-
2558
- # Response message for RejoinUserEvents method.
2559
- class GoogleCloudRetailV2mainRejoinUserEventsResponse
2560
- include Google::Apis::Core::Hashable
2561
-
2562
- # Number of user events that were joined with latest product catalog.
2563
- # Corresponds to the JSON property `rejoinedUserEventsCount`
2564
- # @return [Fixnum]
2565
- attr_accessor :rejoined_user_events_count
2566
-
2567
- def initialize(**args)
2568
- update!(**args)
2569
- end
2570
-
2571
- # Update properties of this object
2572
- def update!(**args)
2573
- @rejoined_user_events_count = args[:rejoined_user_events_count] if args.key?(:rejoined_user_events_count)
2574
- end
2575
- end
2576
-
2577
- # A summary of import result. The UserEventImportSummary summarizes the import
2578
- # status for user events.
2579
- class GoogleCloudRetailV2mainUserEventImportSummary
2580
- include Google::Apis::Core::Hashable
2581
-
2582
- # Count of user events imported with complete existing catalog information.
2583
- # Corresponds to the JSON property `joinedEventsCount`
2584
- # @return [Fixnum]
2585
- attr_accessor :joined_events_count
2586
-
2587
- # Count of user events imported, but with catalog information not found in the
2588
- # imported catalog.
2589
- # Corresponds to the JSON property `unjoinedEventsCount`
2590
- # @return [Fixnum]
2591
- attr_accessor :unjoined_events_count
2592
-
2593
- def initialize(**args)
2594
- update!(**args)
2595
- end
2596
-
2597
- # Update properties of this object
2598
- def update!(**args)
2599
- @joined_events_count = args[:joined_events_count] if args.key?(:joined_events_count)
2600
- @unjoined_events_count = args[:unjoined_events_count] if args.key?(:unjoined_events_count)
2601
- end
2602
- end
2603
-
2604
2303
  # The response message for Operations.ListOperations.
2605
2304
  class GoogleLongrunningListOperationsResponse
2606
2305
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module RetailV2alpha
18
18
  # Version of the google-apis-retail_v2alpha gem
19
- GEM_VERSION = "0.3.0"
19
+ GEM_VERSION = "0.8.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.2"
22
+ GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210212"
25
+ REVISION = "20210514"
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
 
@@ -986,6 +908,7 @@ module Google
986
908
 
987
909
  property :referrer_uri, as: 'referrerUri'
988
910
  property :search_query, as: 'searchQuery'
911
+ property :session_id, as: 'sessionId'
989
912
  property :uri, as: 'uri'
990
913
  property :user_info, as: 'userInfo', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaUserInfo, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaUserInfo::Representation
991
914
 
@@ -1139,114 +1062,6 @@ module Google
1139
1062
  end
1140
1063
  end
1141
1064
 
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::RetailV2alpha::GoogleRpcStatus, decorator: Google::Apis::RetailV2alpha::GoogleRpcStatus::Representation
1161
-
1162
- property :errors_config, as: 'errorsConfig', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2mainExportErrorsConfig, decorator: Google::Apis::RetailV2alpha::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::RetailV2alpha::GoogleRpcStatus, decorator: Google::Apis::RetailV2alpha::GoogleRpcStatus::Representation
1171
-
1172
- property :errors_config, as: 'errorsConfig', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2mainExportErrorsConfig, decorator: Google::Apis::RetailV2alpha::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::RetailV2alpha::GoogleRpcStatus, decorator: Google::Apis::RetailV2alpha::GoogleRpcStatus::Representation
1198
-
1199
- property :errors_config, as: 'errorsConfig', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2mainImportErrorsConfig, decorator: Google::Apis::RetailV2alpha::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::RetailV2alpha::GoogleRpcStatus, decorator: Google::Apis::RetailV2alpha::GoogleRpcStatus::Representation
1208
-
1209
- property :errors_config, as: 'errorsConfig', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2mainImportErrorsConfig, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2mainImportErrorsConfig::Representation
1210
-
1211
- property :import_summary, as: 'importSummary', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2mainUserEventImportSummary, decorator: Google::Apis::RetailV2alpha::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
1065
  class GoogleLongrunningListOperationsResponse
1251
1066
  # @private
1252
1067
  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::RetailV2alpha::GoogleCloudRetailV2alphaCatalog] google_cloud_retail_v2alpha_catalog_object
102
102
  # @param [String] update_mask
103
- # Indicates which fields in the provided Catalog to update. If not set, will
104
- # only update the Catalog.product_level_config field, which is also the only
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 id of the recommendation engine
447
- # placement. This id is used to identify the set of models that will be used to
448
- # make the prediction. We currently support three placements with the following
449
- # IDs by default: * `shopping_cart`: Predicts products frequently bought
450
- # together with one or more products in the same shopping session. Commonly
451
- # displayed after `add-to-cart` events, on product detail pages, or on the
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::RetailV2alpha::GoogleCloudRetailV2alphaPredictRequest] google_cloud_retail_v2alpha_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_v2alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.8.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-02-22 00:00:00.000000000 Z
11
+ date: 2021-05-24 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_v2alpha/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2alpha/v0.3.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2alpha/v0.8.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-retail_v2alpha
57
57
  post_install_message:
58
58
  rdoc_options: []
@@ -62,14 +62,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
62
62
  requirements:
63
63
  - - ">="
64
64
  - !ruby/object:Gem::Version
65
- version: '2.4'
65
+ version: '2.5'
66
66
  required_rubygems_version: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - ">="
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.2.6
72
+ rubygems_version: 3.2.17
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for Retail API V2alpha