google-apis-retail_v2 0.54.0 → 0.55.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: dc3b7a875c27a4f4b8319222fd560f91ebefdbde2d6edd0cb29580691c865681
4
- data.tar.gz: e7e608e604ba650f5fa32e91e5a3d1298b45679c9a45509ba738472bd7b92819
3
+ metadata.gz: 2a9144b4dd277bbaf647869590b84eb34afe68a2d267b76feda0bb4373881be0
4
+ data.tar.gz: 4480c685ef15ec3e9472c438d5235566ae60741777bb394f4435905be7131f87
5
5
  SHA512:
6
- metadata.gz: 04b09be611330904e106fe72dd1085fa29db71f581697e189f8d484011be3f2c7108653f6ffb2d8d9e1f1b9ccc484e45d79d8469052a50578c0f7565a6b7d7d9
7
- data.tar.gz: 0c6fa6b2baaf685e2a54820403b1c428442abaa2bb6da032b9061467643bfc588edfbbed5544378f4a7a694ca9a766200c2444b5006c42ba2bc9567310955275
6
+ metadata.gz: 72fdc4d1474f30803b20b2fa3d7b72614ab1f6502ef4959b5770d8ee9233454473e08fee82a9b68077b4febc8a1705200094f290362b5af3f2b950186498fca2
7
+ data.tar.gz: ef09624a88f184ec348707fb222dd34de91e0bd1e1b768878ba4ca266665fdcc237147cca762617b99f9399a383838a4433d6988a80f3873e162b7de2b344516
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-retail_v2
2
2
 
3
+ ### v0.55.0 (2022-09-23)
4
+
5
+ * Regenerated from discovery document revision 20220917
6
+ * Regenerated using generator version 0.10.0
7
+
3
8
  ### v0.54.0 (2022-09-10)
4
9
 
5
10
  * Regenerated from discovery document revision 20220901
@@ -1852,15 +1852,15 @@ module Google
1852
1852
  # do not have a stockState value of OUT_OF_STOCK. Examples: * tag=("Red" OR "
1853
1853
  # Blue") tag="New-Arrival" tag=(NOT "promotional") * filterOutOfStockItems tag=(-
1854
1854
  # "promotional") * filterOutOfStockItems If your filter blocks all prediction
1855
- # results, the API will return generic (unfiltered) popular products. If you
1856
- # only want results strictly matching the filters, set `strictFiltering` to True
1857
- # in `PredictRequest.params` to receive empty results instead. Note that the API
1858
- # will never return items with storageStatus of "EXPIRED" or "DELETED"
1859
- # regardless of filter choices. If `filterSyntaxV2` is set to true under the `
1860
- # params` field, then attribute-based expressions are expected instead of the
1861
- # above described tag-based syntax. Examples: * (colors: ANY("Red", "Blue")) AND
1862
- # NOT (categories: ANY("Phones")) * (availability: ANY("IN_STOCK")) AND (colors:
1863
- # ANY("Red") OR categories: ANY("Phones"))
1855
+ # results, the API will return *no* results. If instead you want empty result
1856
+ # sets to return generic (unfiltered) popular products, set `strictFiltering` to
1857
+ # False in `PredictRequest.params`. Note that the API will never return items
1858
+ # with storageStatus of "EXPIRED" or "DELETED" regardless of filter choices. If `
1859
+ # filterSyntaxV2` is set to true under the `params` field, then attribute-based
1860
+ # expressions are expected instead of the above described tag-based syntax.
1861
+ # Examples: * (colors: ANY("Red", "Blue")) AND NOT (categories: ANY("Phones")) *
1862
+ # (availability: ANY("IN_STOCK")) AND (colors: ANY("Red") OR categories: ANY("
1863
+ # Phones"))
1864
1864
  # Corresponds to the JSON property `filter`
1865
1865
  # @return [String]
1866
1866
  attr_accessor :filter
@@ -5485,7 +5485,7 @@ module Google
5485
5485
  class GoogleCloudRetailV2alphaModelPageOptimizationConfigPanel
5486
5486
  include Google::Apis::Core::Hashable
5487
5487
 
5488
- # Required. The candidates to consider on the panel. Limit = 10.
5488
+ # Required. The candidates to consider on the panel.
5489
5489
  # Corresponds to the JSON property `candidates`
5490
5490
  # @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2alphaModelPageOptimizationConfigCandidate>]
5491
5491
  attr_accessor :candidates
@@ -5949,6 +5949,27 @@ module Google
5949
5949
  end
5950
5950
  end
5951
5951
 
5952
+ # Metadata associated with a create operation.
5953
+ class GoogleCloudRetailV2betaCreateModelMetadata
5954
+ include Google::Apis::Core::Hashable
5955
+
5956
+ # The resource name of the model that this create applies to. Format: `projects/`
5957
+ # project_number`/locations/`location_id`/catalogs/`catalog_id`/models/`model_id`
5958
+ # `
5959
+ # Corresponds to the JSON property `model`
5960
+ # @return [String]
5961
+ attr_accessor :model
5962
+
5963
+ def initialize(**args)
5964
+ update!(**args)
5965
+ end
5966
+
5967
+ # Update properties of this object
5968
+ def update!(**args)
5969
+ @model = args[:model] if args.key?(:model)
5970
+ end
5971
+ end
5972
+
5952
5973
  # Configuration of destination for Export related errors.
5953
5974
  class GoogleCloudRetailV2betaExportErrorsConfig
5954
5975
  include Google::Apis::Core::Hashable
@@ -6220,6 +6241,166 @@ module Google
6220
6241
  end
6221
6242
  end
6222
6243
 
6244
+ # Metadata that describes the training and serving parameters of a Model. A
6245
+ # Model can be associated with a ServingConfig and then queried through the
6246
+ # Predict API.
6247
+ class GoogleCloudRetailV2betaModel
6248
+ include Google::Apis::Core::Hashable
6249
+
6250
+ # Output only. Timestamp the Recommendation Model was created at.
6251
+ # Corresponds to the JSON property `createTime`
6252
+ # @return [String]
6253
+ attr_accessor :create_time
6254
+
6255
+ # Output only. The state of data requirements for this model: `DATA_OK` and `
6256
+ # DATA_ERROR`. Recommendation model cannot be trained if the data is in `
6257
+ # DATA_ERROR` state. Recommendation model can have `DATA_ERROR` state even if
6258
+ # serving state is `ACTIVE`: models were trained successfully before, but cannot
6259
+ # be refreshed because model no longer has sufficient data for training.
6260
+ # Corresponds to the JSON property `dataState`
6261
+ # @return [String]
6262
+ attr_accessor :data_state
6263
+
6264
+ # Required. The display name of the model. Should be human readable, used to
6265
+ # display Recommendation Models in the Retail Cloud Console Dashboard. UTF-8
6266
+ # encoded string with limit of 1024 characters.
6267
+ # Corresponds to the JSON property `displayName`
6268
+ # @return [String]
6269
+ attr_accessor :display_name
6270
+
6271
+ # Optional. If `RECOMMENDATIONS_FILTERING_ENABLED`, recommendation filtering by
6272
+ # attributes is enabled for the model.
6273
+ # Corresponds to the JSON property `filteringOption`
6274
+ # @return [String]
6275
+ attr_accessor :filtering_option
6276
+
6277
+ # Output only. The timestamp when the latest successful tune finished.
6278
+ # Corresponds to the JSON property `lastTuneTime`
6279
+ # @return [String]
6280
+ attr_accessor :last_tune_time
6281
+
6282
+ # Required. The fully qualified resource name of the model. Format: `projects/`
6283
+ # project_number`/locations/`location_id`/catalogs/`catalog_id`/models/`model_id`
6284
+ # ` catalog_id has char limit of 50. recommendation_model_id has char limit of
6285
+ # 40.
6286
+ # Corresponds to the JSON property `name`
6287
+ # @return [String]
6288
+ attr_accessor :name
6289
+
6290
+ # Optional. The optimization objective e.g. `cvr`. Currently supported values: `
6291
+ # ctr`, `cvr`, `revenue-per-order`. If not specified, we choose default based on
6292
+ # model type. Default depends on type of recommendation: `recommended-for-you` =>
6293
+ # `ctr` `others-you-may-like` => `ctr` `frequently-bought-together` => `
6294
+ # revenue_per_order` This field together with optimization_objective describe
6295
+ # model metadata to use to control model training and serving. See https://cloud.
6296
+ # google.com/retail/docs/models for more details on what the model metadata
6297
+ # control and which combination of parameters are valid. For invalid
6298
+ # combinations of parameters (e.g. type = `frequently-bought-together` and
6299
+ # optimization_objective = `ctr`), you receive an error 400 if you try to create/
6300
+ # update a recommendation with this set of knobs.
6301
+ # Corresponds to the JSON property `optimizationObjective`
6302
+ # @return [String]
6303
+ attr_accessor :optimization_objective
6304
+
6305
+ # Optional. The state of periodic tuning. The period we use is 3 months - to do
6306
+ # a one-off tune earlier use the `TuneModel` method. Default value is `
6307
+ # PERIODIC_TUNING_ENABLED`.
6308
+ # Corresponds to the JSON property `periodicTuningState`
6309
+ # @return [String]
6310
+ attr_accessor :periodic_tuning_state
6311
+
6312
+ # Output only. The list of valid serving configs associated with the
6313
+ # PageOptimizationConfig.
6314
+ # Corresponds to the JSON property `servingConfigLists`
6315
+ # @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2betaModelServingConfigList>]
6316
+ attr_accessor :serving_config_lists
6317
+
6318
+ # Output only. The serving state of the model: `ACTIVE`, `NOT_ACTIVE`.
6319
+ # Corresponds to the JSON property `servingState`
6320
+ # @return [String]
6321
+ attr_accessor :serving_state
6322
+
6323
+ # Optional. The training state that the model is in (e.g. `TRAINING` or `PAUSED`)
6324
+ # . Since part of the cost of running the service is frequency of training -
6325
+ # this can be used to determine when to train model in order to control cost. If
6326
+ # not specified: the default value for `CreateModel` method is `TRAINING`. The
6327
+ # default value for `UpdateModel` method is to keep the state the same as before.
6328
+ # Corresponds to the JSON property `trainingState`
6329
+ # @return [String]
6330
+ attr_accessor :training_state
6331
+
6332
+ # Output only. The tune operation associated with the model. Can be used to
6333
+ # determine if there is an ongoing tune for this recommendation. Empty field
6334
+ # implies no tune is goig on.
6335
+ # Corresponds to the JSON property `tuningOperation`
6336
+ # @return [String]
6337
+ attr_accessor :tuning_operation
6338
+
6339
+ # Required. The type of model e.g. `home-page`. Currently supported values: `
6340
+ # recommended-for-you`, `others-you-may-like`, `frequently-bought-together`, `
6341
+ # page-optimization`, `similar-items`, `buy-it-again`, and `recently-viewed`(
6342
+ # readonly value). This field together with optimization_objective describe
6343
+ # model metadata to use to control model training and serving. See https://cloud.
6344
+ # google.com/retail/docs/models for more details on what the model metadata
6345
+ # control and which combination of parameters are valid. For invalid
6346
+ # combinations of parameters (e.g. type = `frequently-bought-together` and
6347
+ # optimization_objective = `ctr`), you receive an error 400 if you try to create/
6348
+ # update a recommendation with this set of knobs.
6349
+ # Corresponds to the JSON property `type`
6350
+ # @return [String]
6351
+ attr_accessor :type
6352
+
6353
+ # Output only. Timestamp the Recommendation Model was last updated. E.g. if a
6354
+ # Recommendation Model was paused - this would be the time the pause was
6355
+ # initiated.
6356
+ # Corresponds to the JSON property `updateTime`
6357
+ # @return [String]
6358
+ attr_accessor :update_time
6359
+
6360
+ def initialize(**args)
6361
+ update!(**args)
6362
+ end
6363
+
6364
+ # Update properties of this object
6365
+ def update!(**args)
6366
+ @create_time = args[:create_time] if args.key?(:create_time)
6367
+ @data_state = args[:data_state] if args.key?(:data_state)
6368
+ @display_name = args[:display_name] if args.key?(:display_name)
6369
+ @filtering_option = args[:filtering_option] if args.key?(:filtering_option)
6370
+ @last_tune_time = args[:last_tune_time] if args.key?(:last_tune_time)
6371
+ @name = args[:name] if args.key?(:name)
6372
+ @optimization_objective = args[:optimization_objective] if args.key?(:optimization_objective)
6373
+ @periodic_tuning_state = args[:periodic_tuning_state] if args.key?(:periodic_tuning_state)
6374
+ @serving_config_lists = args[:serving_config_lists] if args.key?(:serving_config_lists)
6375
+ @serving_state = args[:serving_state] if args.key?(:serving_state)
6376
+ @training_state = args[:training_state] if args.key?(:training_state)
6377
+ @tuning_operation = args[:tuning_operation] if args.key?(:tuning_operation)
6378
+ @type = args[:type] if args.key?(:type)
6379
+ @update_time = args[:update_time] if args.key?(:update_time)
6380
+ end
6381
+ end
6382
+
6383
+ # Represents an ordered combination of valid serving configs, which can be used
6384
+ # for `PAGE_OPTIMIZATION` recommendations.
6385
+ class GoogleCloudRetailV2betaModelServingConfigList
6386
+ include Google::Apis::Core::Hashable
6387
+
6388
+ # Optional. A set of valid serving configs that may be used for `
6389
+ # PAGE_OPTIMIZATION`.
6390
+ # Corresponds to the JSON property `servingConfigIds`
6391
+ # @return [Array<String>]
6392
+ attr_accessor :serving_config_ids
6393
+
6394
+ def initialize(**args)
6395
+ update!(**args)
6396
+ end
6397
+
6398
+ # Update properties of this object
6399
+ def update!(**args)
6400
+ @serving_config_ids = args[:serving_config_ids] if args.key?(:serving_config_ids)
6401
+ end
6402
+ end
6403
+
6223
6404
  # Output result.
6224
6405
  class GoogleCloudRetailV2betaOutputResult
6225
6406
  include Google::Apis::Core::Hashable
@@ -6395,6 +6576,40 @@ module Google
6395
6576
  end
6396
6577
  end
6397
6578
 
6579
+ # Metadata associated with a tune operation.
6580
+ class GoogleCloudRetailV2betaTuneModelMetadata
6581
+ include Google::Apis::Core::Hashable
6582
+
6583
+ # The resource name of the model that this tune applies to. Format: `projects/`
6584
+ # project_number`/locations/`location_id`/catalogs/`catalog_id`/models/`model_id`
6585
+ # `
6586
+ # Corresponds to the JSON property `model`
6587
+ # @return [String]
6588
+ attr_accessor :model
6589
+
6590
+ def initialize(**args)
6591
+ update!(**args)
6592
+ end
6593
+
6594
+ # Update properties of this object
6595
+ def update!(**args)
6596
+ @model = args[:model] if args.key?(:model)
6597
+ end
6598
+ end
6599
+
6600
+ # Response associated with a tune operation.
6601
+ class GoogleCloudRetailV2betaTuneModelResponse
6602
+ include Google::Apis::Core::Hashable
6603
+
6604
+ def initialize(**args)
6605
+ update!(**args)
6606
+ end
6607
+
6608
+ # Update properties of this object
6609
+ def update!(**args)
6610
+ end
6611
+ end
6612
+
6398
6613
  # A summary of import result. The UserEventImportSummary summarizes the import
6399
6614
  # status for user events.
6400
6615
  class GoogleCloudRetailV2betaUserEventImportSummary
@@ -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.54.0"
19
+ GEM_VERSION = "0.55.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.9.0"
22
+ GENERATOR_VERSION = "0.10.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220901"
25
+ REVISION = "20220917"
26
26
  end
27
27
  end
28
28
  end
@@ -940,6 +940,12 @@ module Google
940
940
  include Google::Apis::Core::JsonObjectSupport
941
941
  end
942
942
 
943
+ class GoogleCloudRetailV2betaCreateModelMetadata
944
+ class Representation < Google::Apis::Core::JsonRepresentation; end
945
+
946
+ include Google::Apis::Core::JsonObjectSupport
947
+ end
948
+
943
949
  class GoogleCloudRetailV2betaExportErrorsConfig
944
950
  class Representation < Google::Apis::Core::JsonRepresentation; end
945
951
 
@@ -994,6 +1000,18 @@ module Google
994
1000
  include Google::Apis::Core::JsonObjectSupport
995
1001
  end
996
1002
 
1003
+ class GoogleCloudRetailV2betaModel
1004
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1005
+
1006
+ include Google::Apis::Core::JsonObjectSupport
1007
+ end
1008
+
1009
+ class GoogleCloudRetailV2betaModelServingConfigList
1010
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1011
+
1012
+ include Google::Apis::Core::JsonObjectSupport
1013
+ end
1014
+
997
1015
  class GoogleCloudRetailV2betaOutputResult
998
1016
  class Representation < Google::Apis::Core::JsonRepresentation; end
999
1017
 
@@ -1060,6 +1078,18 @@ module Google
1060
1078
  include Google::Apis::Core::JsonObjectSupport
1061
1079
  end
1062
1080
 
1081
+ class GoogleCloudRetailV2betaTuneModelMetadata
1082
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1083
+
1084
+ include Google::Apis::Core::JsonObjectSupport
1085
+ end
1086
+
1087
+ class GoogleCloudRetailV2betaTuneModelResponse
1088
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1089
+
1090
+ include Google::Apis::Core::JsonObjectSupport
1091
+ end
1092
+
1063
1093
  class GoogleCloudRetailV2betaUserEventImportSummary
1064
1094
  class Representation < Google::Apis::Core::JsonRepresentation; end
1065
1095
 
@@ -2571,6 +2601,13 @@ module Google
2571
2601
  end
2572
2602
  end
2573
2603
 
2604
+ class GoogleCloudRetailV2betaCreateModelMetadata
2605
+ # @private
2606
+ class Representation < Google::Apis::Core::JsonRepresentation
2607
+ property :model, as: 'model'
2608
+ end
2609
+ end
2610
+
2574
2611
  class GoogleCloudRetailV2betaExportErrorsConfig
2575
2612
  # @private
2576
2613
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2659,6 +2696,34 @@ module Google
2659
2696
  end
2660
2697
  end
2661
2698
 
2699
+ class GoogleCloudRetailV2betaModel
2700
+ # @private
2701
+ class Representation < Google::Apis::Core::JsonRepresentation
2702
+ property :create_time, as: 'createTime'
2703
+ property :data_state, as: 'dataState'
2704
+ property :display_name, as: 'displayName'
2705
+ property :filtering_option, as: 'filteringOption'
2706
+ property :last_tune_time, as: 'lastTuneTime'
2707
+ property :name, as: 'name'
2708
+ property :optimization_objective, as: 'optimizationObjective'
2709
+ property :periodic_tuning_state, as: 'periodicTuningState'
2710
+ collection :serving_config_lists, as: 'servingConfigLists', class: Google::Apis::RetailV2::GoogleCloudRetailV2betaModelServingConfigList, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2betaModelServingConfigList::Representation
2711
+
2712
+ property :serving_state, as: 'servingState'
2713
+ property :training_state, as: 'trainingState'
2714
+ property :tuning_operation, as: 'tuningOperation'
2715
+ property :type, as: 'type'
2716
+ property :update_time, as: 'updateTime'
2717
+ end
2718
+ end
2719
+
2720
+ class GoogleCloudRetailV2betaModelServingConfigList
2721
+ # @private
2722
+ class Representation < Google::Apis::Core::JsonRepresentation
2723
+ collection :serving_config_ids, as: 'servingConfigIds'
2724
+ end
2725
+ end
2726
+
2662
2727
  class GoogleCloudRetailV2betaOutputResult
2663
2728
  # @private
2664
2729
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2729,6 +2794,19 @@ module Google
2729
2794
  end
2730
2795
  end
2731
2796
 
2797
+ class GoogleCloudRetailV2betaTuneModelMetadata
2798
+ # @private
2799
+ class Representation < Google::Apis::Core::JsonRepresentation
2800
+ property :model, as: 'model'
2801
+ end
2802
+ end
2803
+
2804
+ class GoogleCloudRetailV2betaTuneModelResponse
2805
+ # @private
2806
+ class Representation < Google::Apis::Core::JsonRepresentation
2807
+ end
2808
+ end
2809
+
2732
2810
  class GoogleCloudRetailV2betaUserEventImportSummary
2733
2811
  # @private
2734
2812
  class Representation < Google::Apis::Core::JsonRepresentation
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.54.0
4
+ version: 0.55.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-12 00:00:00.000000000 Z
11
+ date: 2022-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.7'
19
+ version: 0.9.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.7'
29
+ version: 0.9.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.54.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.55.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2
63
63
  post_install_message:
64
64
  rdoc_options: []