google-apis-retail_v2 0.1.0 → 0.6.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: d5fe349054b9972b0bfd023632f64d9baf1dfc8f894d2b0b1e030dd5dad6dd35
4
- data.tar.gz: 883ef7965c034d0e5fa8a886113ed0c7be80cfe6797f5a7d1e49297f0a1c694b
3
+ metadata.gz: cd39bd073ca15f31b09279326db6e6114504fbbbd43ed20aa886325103de1186
4
+ data.tar.gz: 2bc298d7a32fca31ce11b3ae5cd4e382452941a56683443efb6c3729bae04344
5
5
  SHA512:
6
- metadata.gz: e551f2bf7dc054d3c3b92ee2dbbd0c12cd21612835d23ade331b0f10293ce9bff0859db7086f350fe78abc313ecbc7fb68218aec641b0c118c92056f793682fb
7
- data.tar.gz: 9b410ebc9c3ea9179fffb85e18acf5e18ab4a638c0897de01ed9a4c9f6750389540cc6f317eb02ea6555f05edaa66e5642ec07e2ddd63940af5486d5014f78ca
6
+ metadata.gz: b4167c699cb9aadaf630bc99651b2e73b3857b8b701dd5aac1462f360159652af4d6bda194dd5b1dafd05c369ecb877383da2071c4facfafb693b97edf53f0cb
7
+ data.tar.gz: 76f637f58f2a9eee560b190951dc4629fd208e8d17c4082d1e6217c54f9e1181dffad49052caf5b2cee50fb7b3a0526c5a9fea44d338d1e7ca817dc5d0006661
data/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # Release history for google-apis-retail_v2
2
2
 
3
+ ### v0.6.0 (2021-04-02)
4
+
5
+ * Regenerated from discovery document revision 20210326
6
+
7
+ ### v0.5.0 (2021-03-20)
8
+
9
+ * Regenerated from discovery document revision 20210312
10
+ * Regenerated using generator version 0.2.0
11
+
12
+ ### v0.4.0 (2021-03-06)
13
+
14
+ * Regenerated from discovery document revision 20210226
15
+ * Unspecified changes
16
+
17
+ ### v0.3.0 (2021-02-20)
18
+
19
+ * Regenerated from discovery document revision 20210212
20
+
21
+ ### v0.2.0 (2021-02-13)
22
+
23
+ * Regenerated from discovery document revision 20210205
24
+
3
25
  ### v0.1.0 (2021-02-05)
4
26
 
5
27
  * Regenerated from discovery document revision 20210129
@@ -31,7 +31,7 @@ module Google
31
31
  # This is NOT the gem version.
32
32
  VERSION = 'V2'
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
@@ -691,10 +691,11 @@ module Google
691
691
  # expression is enclosed in parentheses, and must be separated from the tag
692
692
  # values by a space. `-"tagA"` is also supported and is equivalent to `NOT "tagA"
693
693
  # `. Tag values must be double quoted UTF-8 encoded strings with a size limit of
694
- # 1,000 characters. * filterOutOfStockItems. Restricts predictions to products
695
- # that do not have a stockState value of OUT_OF_STOCK. Examples: * tag=("Red" OR
696
- # "Blue") tag="New-Arrival" tag=(NOT "promotional") * filterOutOfStockItems tag=(
697
- # -"promotional") * filterOutOfStockItems If your filter blocks all prediction
694
+ # 1,000 characters. Note: "Recently viewed" models don't support tag filtering
695
+ # at the moment. * filterOutOfStockItems. Restricts predictions to products that
696
+ # do not have a stockState value of OUT_OF_STOCK. Examples: * tag=("Red" OR "
697
+ # Blue") tag="New-Arrival" tag=(NOT "promotional") * filterOutOfStockItems tag=(-
698
+ # "promotional") * filterOutOfStockItems If your filter blocks all prediction
698
699
  # results, nothing will be returned. If you want generic (unfiltered) popular
699
700
  # products to be returned instead, set `strictFiltering` to false in `
700
701
  # PredictRequest.params`.
@@ -899,9 +900,8 @@ module Google
899
900
  # "vendor456"]`, "lengths_cm": `"numbers":[2.3, 15.4]`, "heights_cm": `"numbers"
900
901
  # :[8.1, 6.4]` ``. This field needs to pass all below criteria, otherwise an
901
902
  # INVALID_ARGUMENT error is returned: * Max entries count: 150 by default; 100
902
- # for Type.VARIANT. * Max indexable entries count: 150 by default; 40 for Type.
903
- # VARIANT. * Max searchable entries count: 30. * The key must be a UTF-8 encoded
904
- # string with a length limit of 128 characters.
903
+ # for Type.VARIANT. * The key must be a UTF-8 encoded string with a length limit
904
+ # of 128 characters.
905
905
  # Corresponds to the JSON property `attributes`
906
906
  # @return [Hash<String,Google::Apis::RetailV2::GoogleCloudRetailV2CustomAttribute>]
907
907
  attr_accessor :attributes
@@ -919,7 +919,7 @@ module Google
919
919
  # @return [Fixnum]
920
920
  attr_accessor :available_quantity
921
921
 
922
- # The timestamp when this Product becomes available recommendation and search.
922
+ # The timestamp when this Product becomes available for recommendation.
923
923
  # Corresponds to the JSON property `availableTime`
924
924
  # @return [String]
925
925
  attr_accessor :available_time
@@ -964,9 +964,10 @@ module Google
964
964
  # @return [String]
965
965
  attr_accessor :id
966
966
 
967
- # Product images for the product. A maximum of 300 images are allowed. Google
968
- # Merchant Center property [image_link](https://support.google.com/merchants/
969
- # answer/6324350). Schema.org property [Product.image](https://schema.org/image).
967
+ # Product images for the product.Highly recommended to put the main image to the
968
+ # first. A maximum of 300 images are allowed. Google Merchant Center property [
969
+ # image_link](https://support.google.com/merchants/answer/6324350). Schema.org
970
+ # property [Product.image](https://schema.org/image).
970
971
  # Corresponds to the JSON property `images`
971
972
  # @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2Image>]
972
973
  attr_accessor :images
@@ -1007,7 +1008,7 @@ module Google
1007
1008
  attr_accessor :tags
1008
1009
 
1009
1010
  # Required. Product title. This field must be a UTF-8 encoded string with a
1010
- # length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is
1011
+ # length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is
1011
1012
  # returned. Google Merchant Center property [title](https://support.google.com/
1012
1013
  # merchants/answer/6324415). Schema.org property [Product.name](https://schema.
1013
1014
  # org/name).
@@ -1015,7 +1016,8 @@ module Google
1015
1016
  # @return [String]
1016
1017
  attr_accessor :title
1017
1018
 
1018
- # Immutable. The type of the product. This field is output-only.
1019
+ # Immutable. The type of the product. This field is output-only. Default to
1020
+ # Catalog.product_level_config.ingestion_product_type if unset.
1019
1021
  # Corresponds to the JSON property `type`
1020
1022
  # @return [String]
1021
1023
  attr_accessor :type
@@ -1148,8 +1150,8 @@ module Google
1148
1150
  # this field is set to an invalid value other than these, an INVALID_ARGUMENT
1149
1151
  # error is returned. If this field is `variant` and
1150
1152
  # merchant_center_product_id_field is `itemGroupId`, an INVALID_ARGUMENT error
1151
- # is returned. See [Using catalog levels](/retail/recommendations-ai/docs/
1152
- # catalog#catalog-levels) for more details.
1153
+ # is returned. See [Using product levels](https://cloud.google.com/retail/
1154
+ # recommendations-ai/docs/catalog#product-levels) for more details.
1153
1155
  # Corresponds to the JSON property `ingestionProductType`
1154
1156
  # @return [String]
1155
1157
  attr_accessor :ingestion_product_type
@@ -1162,8 +1164,8 @@ module Google
1162
1164
  # the item group. If this field is set to an invalid value other than these, an
1163
1165
  # INVALID_ARGUMENT error is returned. If this field is `itemGroupId` and
1164
1166
  # ingestion_product_type is `variant`, an INVALID_ARGUMENT error is returned.
1165
- # See [Using catalog levels](/retail/recommendations-ai/docs/catalog#catalog-
1166
- # levels) for more details.
1167
+ # See [Using product levels](https://cloud.google.com/retail/recommendations-ai/
1168
+ # docs/catalog#product-levels) for more details.
1167
1169
  # Corresponds to the JSON property `merchantCenterProductIdField`
1168
1170
  # @return [String]
1169
1171
  attr_accessor :merchant_center_product_id_field
@@ -1399,9 +1401,10 @@ module Google
1399
1401
  # Required. User event type. Allowed values are: * `add-to-cart`: Products being
1400
1402
  # added to cart. * `category-page-view`: Special pages such as sale or promotion
1401
1403
  # pages viewed. * `detail-page-view`: Products detail page viewed. * `home-page-
1402
- # view`: Homepage viewed. * `purchase-complete`: User finishing a purchase. * `
1403
- # search`: Product search. * `shopping-cart-page-view`: User viewing a shopping
1404
- # cart.
1404
+ # view`: Homepage viewed. * `promotion-offered`: Promotion is offered to a user.
1405
+ # * `promotion-not-offered`: Promotion is not offered to a user. * `purchase-
1406
+ # complete`: User finishing a purchase. * `search`: Product search. * `shopping-
1407
+ # cart-page-view`: User viewing a shopping cart.
1405
1408
  # Corresponds to the JSON property `eventType`
1406
1409
  # @return [String]
1407
1410
  attr_accessor :event_type
@@ -2282,323 +2285,6 @@ module Google
2282
2285
  end
2283
2286
  end
2284
2287
 
2285
- # Configuration of destination for Export related errors.
2286
- class GoogleCloudRetailV2mainExportErrorsConfig
2287
- include Google::Apis::Core::Hashable
2288
-
2289
- # Google Cloud Storage path for import errors. This must be an empty, existing
2290
- # Cloud Storage bucket. Export errors will be written to a file in this bucket,
2291
- # one per line, as a JSON-encoded `google.rpc.Status` message.
2292
- # Corresponds to the JSON property `gcsPrefix`
2293
- # @return [String]
2294
- attr_accessor :gcs_prefix
2295
-
2296
- def initialize(**args)
2297
- update!(**args)
2298
- end
2299
-
2300
- # Update properties of this object
2301
- def update!(**args)
2302
- @gcs_prefix = args[:gcs_prefix] if args.key?(:gcs_prefix)
2303
- end
2304
- end
2305
-
2306
- # Metadata related to the progress of the Export operation. This will be
2307
- # returned by the google.longrunning.Operation.metadata field.
2308
- class GoogleCloudRetailV2mainExportMetadata
2309
- include Google::Apis::Core::Hashable
2310
-
2311
- # Operation create time.
2312
- # Corresponds to the JSON property `createTime`
2313
- # @return [String]
2314
- attr_accessor :create_time
2315
-
2316
- # Operation last update time. If the operation is done, this is also the finish
2317
- # time.
2318
- # Corresponds to the JSON property `updateTime`
2319
- # @return [String]
2320
- attr_accessor :update_time
2321
-
2322
- def initialize(**args)
2323
- update!(**args)
2324
- end
2325
-
2326
- # Update properties of this object
2327
- def update!(**args)
2328
- @create_time = args[:create_time] if args.key?(:create_time)
2329
- @update_time = args[:update_time] if args.key?(:update_time)
2330
- end
2331
- end
2332
-
2333
- # Response of the ExportProductsRequest. If the long running operation is done,
2334
- # then this message is returned by the google.longrunning.Operations.response
2335
- # field if the operation was successful.
2336
- class GoogleCloudRetailV2mainExportProductsResponse
2337
- include Google::Apis::Core::Hashable
2338
-
2339
- # A sample of errors encountered while processing the request.
2340
- # Corresponds to the JSON property `errorSamples`
2341
- # @return [Array<Google::Apis::RetailV2::GoogleRpcStatus>]
2342
- attr_accessor :error_samples
2343
-
2344
- # Configuration of destination for Export related errors.
2345
- # Corresponds to the JSON property `errorsConfig`
2346
- # @return [Google::Apis::RetailV2::GoogleCloudRetailV2mainExportErrorsConfig]
2347
- attr_accessor :errors_config
2348
-
2349
- def initialize(**args)
2350
- update!(**args)
2351
- end
2352
-
2353
- # Update properties of this object
2354
- def update!(**args)
2355
- @error_samples = args[:error_samples] if args.key?(:error_samples)
2356
- @errors_config = args[:errors_config] if args.key?(:errors_config)
2357
- end
2358
- end
2359
-
2360
- # Response of the ExportUserEventsRequest. If the long running operation was
2361
- # successful, then this message is returned by the google.longrunning.Operations.
2362
- # response field if the operation was successful.
2363
- class GoogleCloudRetailV2mainExportUserEventsResponse
2364
- include Google::Apis::Core::Hashable
2365
-
2366
- # A sample of errors encountered while processing the request.
2367
- # Corresponds to the JSON property `errorSamples`
2368
- # @return [Array<Google::Apis::RetailV2::GoogleRpcStatus>]
2369
- attr_accessor :error_samples
2370
-
2371
- # Configuration of destination for Export related errors.
2372
- # Corresponds to the JSON property `errorsConfig`
2373
- # @return [Google::Apis::RetailV2::GoogleCloudRetailV2mainExportErrorsConfig]
2374
- attr_accessor :errors_config
2375
-
2376
- def initialize(**args)
2377
- update!(**args)
2378
- end
2379
-
2380
- # Update properties of this object
2381
- def update!(**args)
2382
- @error_samples = args[:error_samples] if args.key?(:error_samples)
2383
- @errors_config = args[:errors_config] if args.key?(:errors_config)
2384
- end
2385
- end
2386
-
2387
- # Configuration of destination for Import related errors.
2388
- class GoogleCloudRetailV2mainImportErrorsConfig
2389
- include Google::Apis::Core::Hashable
2390
-
2391
- # Google Cloud Storage path for import errors. This must be an empty, existing
2392
- # Cloud Storage bucket. Import errors will be written to a file in this bucket,
2393
- # one per line, as a JSON-encoded `google.rpc.Status` message.
2394
- # Corresponds to the JSON property `gcsPrefix`
2395
- # @return [String]
2396
- attr_accessor :gcs_prefix
2397
-
2398
- def initialize(**args)
2399
- update!(**args)
2400
- end
2401
-
2402
- # Update properties of this object
2403
- def update!(**args)
2404
- @gcs_prefix = args[:gcs_prefix] if args.key?(:gcs_prefix)
2405
- end
2406
- end
2407
-
2408
- # Metadata related to the progress of the Import operation. This will be
2409
- # returned by the google.longrunning.Operation.metadata field.
2410
- class GoogleCloudRetailV2mainImportMetadata
2411
- include Google::Apis::Core::Hashable
2412
-
2413
- # Operation create time.
2414
- # Corresponds to the JSON property `createTime`
2415
- # @return [String]
2416
- attr_accessor :create_time
2417
-
2418
- # Count of entries that encountered errors while processing.
2419
- # Corresponds to the JSON property `failureCount`
2420
- # @return [Fixnum]
2421
- attr_accessor :failure_count
2422
-
2423
- # Count of entries that were processed successfully.
2424
- # Corresponds to the JSON property `successCount`
2425
- # @return [Fixnum]
2426
- attr_accessor :success_count
2427
-
2428
- # Operation last update time. If the operation is done, this is also the finish
2429
- # time.
2430
- # Corresponds to the JSON property `updateTime`
2431
- # @return [String]
2432
- attr_accessor :update_time
2433
-
2434
- def initialize(**args)
2435
- update!(**args)
2436
- end
2437
-
2438
- # Update properties of this object
2439
- def update!(**args)
2440
- @create_time = args[:create_time] if args.key?(:create_time)
2441
- @failure_count = args[:failure_count] if args.key?(:failure_count)
2442
- @success_count = args[:success_count] if args.key?(:success_count)
2443
- @update_time = args[:update_time] if args.key?(:update_time)
2444
- end
2445
- end
2446
-
2447
- # Response of the ImportProductsRequest. If the long running operation is done,
2448
- # then this message is returned by the google.longrunning.Operations.response
2449
- # field if the operation was successful.
2450
- class GoogleCloudRetailV2mainImportProductsResponse
2451
- include Google::Apis::Core::Hashable
2452
-
2453
- # A sample of errors encountered while processing the request.
2454
- # Corresponds to the JSON property `errorSamples`
2455
- # @return [Array<Google::Apis::RetailV2::GoogleRpcStatus>]
2456
- attr_accessor :error_samples
2457
-
2458
- # Configuration of destination for Import related errors.
2459
- # Corresponds to the JSON property `errorsConfig`
2460
- # @return [Google::Apis::RetailV2::GoogleCloudRetailV2mainImportErrorsConfig]
2461
- attr_accessor :errors_config
2462
-
2463
- def initialize(**args)
2464
- update!(**args)
2465
- end
2466
-
2467
- # Update properties of this object
2468
- def update!(**args)
2469
- @error_samples = args[:error_samples] if args.key?(:error_samples)
2470
- @errors_config = args[:errors_config] if args.key?(:errors_config)
2471
- end
2472
- end
2473
-
2474
- # Response of the ImportUserEventsRequest. If the long running operation was
2475
- # successful, then this message is returned by the google.longrunning.Operations.
2476
- # response field if the operation was successful.
2477
- class GoogleCloudRetailV2mainImportUserEventsResponse
2478
- include Google::Apis::Core::Hashable
2479
-
2480
- # A sample of errors encountered while processing the request.
2481
- # Corresponds to the JSON property `errorSamples`
2482
- # @return [Array<Google::Apis::RetailV2::GoogleRpcStatus>]
2483
- attr_accessor :error_samples
2484
-
2485
- # Configuration of destination for Import related errors.
2486
- # Corresponds to the JSON property `errorsConfig`
2487
- # @return [Google::Apis::RetailV2::GoogleCloudRetailV2mainImportErrorsConfig]
2488
- attr_accessor :errors_config
2489
-
2490
- # A summary of import result. The UserEventImportSummary summarizes the import
2491
- # status for user events.
2492
- # Corresponds to the JSON property `importSummary`
2493
- # @return [Google::Apis::RetailV2::GoogleCloudRetailV2mainUserEventImportSummary]
2494
- attr_accessor :import_summary
2495
-
2496
- def initialize(**args)
2497
- update!(**args)
2498
- end
2499
-
2500
- # Update properties of this object
2501
- def update!(**args)
2502
- @error_samples = args[:error_samples] if args.key?(:error_samples)
2503
- @errors_config = args[:errors_config] if args.key?(:errors_config)
2504
- @import_summary = args[:import_summary] if args.key?(:import_summary)
2505
- end
2506
- end
2507
-
2508
- # Metadata related to the progress of the Purge operation. This will be returned
2509
- # by the google.longrunning.Operation.metadata field.
2510
- class GoogleCloudRetailV2mainPurgeMetadata
2511
- include Google::Apis::Core::Hashable
2512
-
2513
- def initialize(**args)
2514
- update!(**args)
2515
- end
2516
-
2517
- # Update properties of this object
2518
- def update!(**args)
2519
- end
2520
- end
2521
-
2522
- # Response of the PurgeUserEventsRequest. If the long running operation is
2523
- # successfully done, then this message is returned by the google.longrunning.
2524
- # Operations.response field.
2525
- class GoogleCloudRetailV2mainPurgeUserEventsResponse
2526
- include Google::Apis::Core::Hashable
2527
-
2528
- # The total count of events purged as a result of the operation.
2529
- # Corresponds to the JSON property `purgedEventsCount`
2530
- # @return [Fixnum]
2531
- attr_accessor :purged_events_count
2532
-
2533
- def initialize(**args)
2534
- update!(**args)
2535
- end
2536
-
2537
- # Update properties of this object
2538
- def update!(**args)
2539
- @purged_events_count = args[:purged_events_count] if args.key?(:purged_events_count)
2540
- end
2541
- end
2542
-
2543
- # Metadata for RejoinUserEvents method.
2544
- class GoogleCloudRetailV2mainRejoinUserEventsMetadata
2545
- include Google::Apis::Core::Hashable
2546
-
2547
- def initialize(**args)
2548
- update!(**args)
2549
- end
2550
-
2551
- # Update properties of this object
2552
- def update!(**args)
2553
- end
2554
- end
2555
-
2556
- # Response message for RejoinUserEvents method.
2557
- class GoogleCloudRetailV2mainRejoinUserEventsResponse
2558
- include Google::Apis::Core::Hashable
2559
-
2560
- # Number of user events that were joined with latest product catalog.
2561
- # Corresponds to the JSON property `rejoinedUserEventsCount`
2562
- # @return [Fixnum]
2563
- attr_accessor :rejoined_user_events_count
2564
-
2565
- def initialize(**args)
2566
- update!(**args)
2567
- end
2568
-
2569
- # Update properties of this object
2570
- def update!(**args)
2571
- @rejoined_user_events_count = args[:rejoined_user_events_count] if args.key?(:rejoined_user_events_count)
2572
- end
2573
- end
2574
-
2575
- # A summary of import result. The UserEventImportSummary summarizes the import
2576
- # status for user events.
2577
- class GoogleCloudRetailV2mainUserEventImportSummary
2578
- include Google::Apis::Core::Hashable
2579
-
2580
- # Count of user events imported with complete existing catalog information.
2581
- # Corresponds to the JSON property `joinedEventsCount`
2582
- # @return [Fixnum]
2583
- attr_accessor :joined_events_count
2584
-
2585
- # Count of user events imported, but with catalog information not found in the
2586
- # imported catalog.
2587
- # Corresponds to the JSON property `unjoinedEventsCount`
2588
- # @return [Fixnum]
2589
- attr_accessor :unjoined_events_count
2590
-
2591
- def initialize(**args)
2592
- update!(**args)
2593
- end
2594
-
2595
- # Update properties of this object
2596
- def update!(**args)
2597
- @joined_events_count = args[:joined_events_count] if args.key?(:joined_events_count)
2598
- @unjoined_events_count = args[:unjoined_events_count] if args.key?(:unjoined_events_count)
2599
- end
2600
- end
2601
-
2602
2288
  # The response message for Operations.ListOperations.
2603
2289
  class GoogleLongrunningListOperationsResponse
2604
2290
  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.1.0"
19
+ GEM_VERSION = "0.6.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 = "20210129"
25
+ REVISION = "20210326"
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 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
@@ -217,7 +215,8 @@ module Google
217
215
  # Product to delete does not exist, a NOT_FOUND error is returned. The Product
218
216
  # to delete can neither be a Product.Type.COLLECTION Product member nor a
219
217
  # Product.Type.PRIMARY Product with more than one variants. Otherwise, an
220
- # INVALID_ARGUMENT error is returned.
218
+ # INVALID_ARGUMENT error is returned. All inventory information for the named
219
+ # Product will be deleted.
221
220
  # @param [String] fields
222
221
  # Selector specifying which fields to include in a partial response.
223
222
  # @param [String] quota_user
@@ -442,25 +441,12 @@ module Google
442
441
  # Makes a recommendation prediction.
443
442
  # @param [String] placement
444
443
  # Required. Full resource name of the format: `name=projects/*/locations/global/
445
- # catalogs/default_catalog/placements/*` The id of the recommendation engine
446
- # placement. This id is used to identify the set of models that will be used to
447
- # make the prediction. We currently support three placements with the following
448
- # IDs by default: * `shopping_cart`: Predicts products frequently bought
449
- # together with one or more products in the same shopping session. Commonly
450
- # displayed after `add-to-cart` events, on product detail pages, or on the
451
- # shopping cart page. * `home_page`: Predicts the next product that a user will
452
- # most likely engage with or purchase based on the shopping or viewing history
453
- # of the specified `userId` or `visitorId`. For example - Recommendations for
454
- # you. * `product_detail`: Predicts the next product that a user will most
455
- # likely engage with or purchase. The prediction is based on the shopping or
456
- # viewing history of the specified `userId` or `visitorId` and its relevance to
457
- # a specified `CatalogItem`. Typically used on product detail pages. For example
458
- # - More products like this. * `recently_viewed_default`: Returns up to 75
459
- # products recently viewed by the specified `userId` or `visitorId`, most recent
460
- # ones first. Returns nothing if neither of them has viewed any products yet.
461
- # For example - Recently viewed. The full list of available placements can be
462
- # seen at https://console.cloud.google.com/recommendation/catalogs/
463
- # 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
464
450
  # @param [Google::Apis::RetailV2::GoogleCloudRetailV2PredictRequest] google_cloud_retail_v2_predict_request_object
465
451
  # @param [String] fields
466
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.1.0
4
+ version: 0.6.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-08 00:00:00.000000000 Z
11
+ date: 2021-04-05 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.1.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.6.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: []
@@ -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.13
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for Retail API V2