google-apis-retail_v2 0.46.0 → 0.47.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0c411f3232ac21e8173841943e6bd3ebe8ef569faad22d148dbcc136f6f6c99d
4
- data.tar.gz: 3188e1f96e9b087b238ebb099c57c6316c31117e3ccad9278ca9fa7b8c26ca49
3
+ metadata.gz: c09cea59f0e218ebdd11c839834e82295d3a45fd248a8babc8f75714cb705ac4
4
+ data.tar.gz: a2a2fcaee18b8271e0f47474168a1992cc3056006f93cd7519614c14e23346d1
5
5
  SHA512:
6
- metadata.gz: 04a69560d00f69a3e57743921eb727505f02a94cebb5b1b1c67fb76a8782e106f031ea93b452e925909b3eccd7e13d1210d2861ef8fe4c59c012dab349a052af
7
- data.tar.gz: 0522d173371e908a66f921c1a6786d8063d4453cb9d308ff85ca926fa303105d22da0c3c102dd3ee026af96ff0ed5df99d70955f99d220e160899de3e0e63319
6
+ metadata.gz: 7ed356c9d8a968f2c609dd836d0540b2cca6dc1817a0a2394b138cde4ab3edece4b7fce3766fdb228a4e297b8c17143b47cebd73bc45a2b23e264140c928bd1c
7
+ data.tar.gz: 05412fac6d26e5cff7450480c54d1b99e1e298de1e02f78d43e2cee1854678708746c292d00191a190cb17a93c9981806f8604447a87735a78f0b0416f73e2e9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-retail_v2
2
2
 
3
+ ### v0.47.0 (2022-07-19)
4
+
5
+ * Regenerated from discovery document revision 20220716
6
+
3
7
  ### v0.46.0 (2022-07-12)
4
8
 
5
9
  * Regenerated from discovery document revision 20220707
@@ -680,9 +680,8 @@ module Google
680
680
 
681
681
  # Custom attributes for the suggestion term. * For "user-data", the attributes
682
682
  # are additional custom attributes ingested through BigQuery. * For "cloud-
683
- # retail", the attributes are product attributes generated by Cloud Retail. This
684
- # is an experimental feature. Contact Retail Search support team if you are
685
- # interested in enabling it.
683
+ # retail", the attributes are product attributes generated by Cloud Retail. It
684
+ # requires UserEvent.product_details is imported properly.
686
685
  # Corresponds to the JSON property `attributes`
687
686
  # @return [Hash<String,Google::Apis::RetailV2::GoogleCloudRetailV2CustomAttribute>]
688
687
  attr_accessor :attributes
@@ -1411,7 +1410,7 @@ module Google
1411
1410
  # in `PredictRequest.params` to receive empty results instead. Note that the API
1412
1411
  # will never return items with storageStatus of "EXPIRED" or "DELETED"
1413
1412
  # regardless of filter choices. If `filterSyntaxV2` is set to true under the `
1414
- # params` field, then attribute based expressions are expected instead of the
1413
+ # params` field, then attribute-based expressions are expected instead of the
1415
1414
  # above described tag-based syntax. Examples: * (colors: ANY("Red", "Blue")) AND
1416
1415
  # NOT (categories: ANY("Phones")) * (availability: ANY("IN_STOCK")) AND (colors:
1417
1416
  # ANY("Red") OR categories: ANY("Phones"))
@@ -1442,7 +1441,7 @@ module Google
1442
1441
  # @return [Fixnum]
1443
1442
  attr_accessor :page_size
1444
1443
 
1445
- # This field is not used for now, please leave it unset.
1444
+ # This field is not used for now, leave it unset.
1446
1445
  # Corresponds to the JSON property `pageToken`
1447
1446
  # @return [String]
1448
1447
  attr_accessor :page_token
@@ -1464,8 +1463,8 @@ module Google
1464
1463
  # it needs to be one of `'no-diversity', 'low-diversity', 'medium-diversity', '
1465
1464
  # high-diversity', 'auto-diversity'`. This gives request-level control and
1466
1465
  # adjusts prediction results based on product category. * `filterSyntaxV2`:
1467
- # Boolean. False by default. If set to true, the `filter` field will be
1468
- # interpreteted according to the new, attribute-based syntax.
1466
+ # Boolean. False by default. If set to true, the `filter` field is interpreteted
1467
+ # according to the new, attribute-based syntax.
1469
1468
  # Corresponds to the JSON property `params`
1470
1469
  # @return [Hash<String,Object>]
1471
1470
  attr_accessor :params
@@ -3115,7 +3114,7 @@ module Google
3115
3114
 
3116
3115
  # Contains the spell corrected query, if found. If the spell correction type is
3117
3116
  # AUTOMATIC, then the search results are based on corrected_query. Otherwise the
3118
- # original query will be used for search.
3117
+ # original query is used for search.
3119
3118
  # Corresponds to the JSON property `correctedQuery`
3120
3119
  # @return [String]
3121
3120
  attr_accessor :corrected_query
@@ -3868,6 +3867,26 @@ module Google
3868
3867
  end
3869
3868
  end
3870
3869
 
3870
+ # Metadata associated with a create operation.
3871
+ class GoogleCloudRetailV2alphaCreateModelMetadata
3872
+ include Google::Apis::Core::Hashable
3873
+
3874
+ # The resource name of the model that this create applies to. Format: projects/`
3875
+ # project_number`/locations/`location_id`/catalogs/`catalog_id`/models/`model_id`
3876
+ # Corresponds to the JSON property `model`
3877
+ # @return [String]
3878
+ attr_accessor :model
3879
+
3880
+ def initialize(**args)
3881
+ update!(**args)
3882
+ end
3883
+
3884
+ # Update properties of this object
3885
+ def update!(**args)
3886
+ @model = args[:model] if args.key?(:model)
3887
+ end
3888
+ end
3889
+
3871
3890
  # Configuration of destination for Export related errors.
3872
3891
  class GoogleCloudRetailV2alphaExportErrorsConfig
3873
3892
  include Google::Apis::Core::Hashable
@@ -4127,6 +4146,231 @@ module Google
4127
4146
  end
4128
4147
  end
4129
4148
 
4149
+ # Metadata that describes the training and serving parameters of a Model. A
4150
+ # Model can be associated with a ServingConfig and then queried through the
4151
+ # Predict api.
4152
+ class GoogleCloudRetailV2alphaModel
4153
+ include Google::Apis::Core::Hashable
4154
+
4155
+ # Output only. Timestamp the Recommendation Model was created at.
4156
+ # Corresponds to the JSON property `createTime`
4157
+ # @return [String]
4158
+ attr_accessor :create_time
4159
+
4160
+ # Output only. The state of data requirements for this model: DATA_OK and
4161
+ # DATA_ERROR. Recommendation model cannot be trained if the data is in
4162
+ # DATA_ERROR state. Recommendation model can have DATA_ERROR state even if
4163
+ # serving state is ACTIVE: models were trained successfully before, but cannot
4164
+ # be refreshed because model no longer has sufficient data for training.
4165
+ # Corresponds to the JSON property `dataState`
4166
+ # @return [String]
4167
+ attr_accessor :data_state
4168
+
4169
+ # Required. The display name of the model. Should be human readable, used to
4170
+ # display Recommendation Models in the Retail Pantheon Dashboard. UTF-8 encoded
4171
+ # string with limit of 1024 characters.
4172
+ # Corresponds to the JSON property `displayName`
4173
+ # @return [String]
4174
+ attr_accessor :display_name
4175
+
4176
+ # Optional. If RECOMMENDATIONS_FILTERING_ENABLED, recommendation filtering by
4177
+ # attributes is enabled for the model.
4178
+ # Corresponds to the JSON property `filteringOption`
4179
+ # @return [String]
4180
+ attr_accessor :filtering_option
4181
+
4182
+ # Output only. The timestamp when the latest successful tune finished.
4183
+ # Corresponds to the JSON property `lastTuneTime`
4184
+ # @return [String]
4185
+ attr_accessor :last_tune_time
4186
+
4187
+ # Required. The fully qualified resource name of the model. Format: projects/`
4188
+ # project_number`/locations/`location_id`/catalogs/`catalog_id`/models/`model_id`
4189
+ # catalog_id has char limit of 50. recommendation_model_id has char limit of 40.
4190
+ # Corresponds to the JSON property `name`
4191
+ # @return [String]
4192
+ attr_accessor :name
4193
+
4194
+ # Optional. The optimization objective e.g. `cvr`. Currently supported values: `
4195
+ # ctr`, `cvr`, `revenue-per-order`. If not specified, we choose default based on
4196
+ # model type. Default depends on type of recommendation: `recommended-for-you` =>
4197
+ # `ctr` `others-you-may-like` => `ctr` `frequently-bought-together` => `
4198
+ # revenue_per_order`
4199
+ # Corresponds to the JSON property `optimizationObjective`
4200
+ # @return [String]
4201
+ attr_accessor :optimization_objective
4202
+
4203
+ # The PageOptimizationConfig for model training. This determines how many panels
4204
+ # to optimize for, and which serving configurations to consider for each panel.
4205
+ # The purpose of this model is to optimize which ServingConfig to show on which
4206
+ # panels in way that optimizes the visitors shopping journey.
4207
+ # Corresponds to the JSON property `pageOptimizationConfig`
4208
+ # @return [Google::Apis::RetailV2::GoogleCloudRetailV2alphaModelPageOptimizationConfig]
4209
+ attr_accessor :page_optimization_config
4210
+
4211
+ # Optional. The state of periodic tuning. The period we use is 3 months - to do
4212
+ # a one-off tune earlier use the TuneModel method. Default value is
4213
+ # PERIODIC_TUNING_ENABLED.
4214
+ # Corresponds to the JSON property `periodicTuningState`
4215
+ # @return [String]
4216
+ attr_accessor :periodic_tuning_state
4217
+
4218
+ # Output only. The serving state of the model: ACTIVE, NOT_ACTIVE.
4219
+ # Corresponds to the JSON property `servingState`
4220
+ # @return [String]
4221
+ attr_accessor :serving_state
4222
+
4223
+ # Optional. The training state that the model is in (e.g. TRAINING or PAUSED).
4224
+ # Since part of the cost of running the service is frequency of training - this
4225
+ # can be used to determine when to train model in order to control cost. If not
4226
+ # specified: the default value for CreateModel method is TRAINING. the default
4227
+ # value for UpdateModel method is to keep the state the same as before.
4228
+ # Corresponds to the JSON property `trainingState`
4229
+ # @return [String]
4230
+ attr_accessor :training_state
4231
+
4232
+ # Output only. The tune operation associated with the model. Can be used to
4233
+ # determine if there is an ongoing tune for this recommendation. Empty field
4234
+ # implies no tune is goig on.
4235
+ # Corresponds to the JSON property `tuningOperation`
4236
+ # @return [String]
4237
+ attr_accessor :tuning_operation
4238
+
4239
+ # Required. The type of model e.g. `home-page`. Currently supported values: `
4240
+ # recommended-for-you`, `others-you-may-like`, `frequently-bought-together`, `
4241
+ # page-optimization`, 'similar-items', 'buy-it-again', `recently-viewed`(
4242
+ # readonly value).
4243
+ # Corresponds to the JSON property `type`
4244
+ # @return [String]
4245
+ attr_accessor :type
4246
+
4247
+ # Output only. Timestamp the Recommendation Model was last updated. E.g. if a
4248
+ # Recommendation Model was paused - this would be the time the pause was
4249
+ # initiated.
4250
+ # Corresponds to the JSON property `updateTime`
4251
+ # @return [String]
4252
+ attr_accessor :update_time
4253
+
4254
+ def initialize(**args)
4255
+ update!(**args)
4256
+ end
4257
+
4258
+ # Update properties of this object
4259
+ def update!(**args)
4260
+ @create_time = args[:create_time] if args.key?(:create_time)
4261
+ @data_state = args[:data_state] if args.key?(:data_state)
4262
+ @display_name = args[:display_name] if args.key?(:display_name)
4263
+ @filtering_option = args[:filtering_option] if args.key?(:filtering_option)
4264
+ @last_tune_time = args[:last_tune_time] if args.key?(:last_tune_time)
4265
+ @name = args[:name] if args.key?(:name)
4266
+ @optimization_objective = args[:optimization_objective] if args.key?(:optimization_objective)
4267
+ @page_optimization_config = args[:page_optimization_config] if args.key?(:page_optimization_config)
4268
+ @periodic_tuning_state = args[:periodic_tuning_state] if args.key?(:periodic_tuning_state)
4269
+ @serving_state = args[:serving_state] if args.key?(:serving_state)
4270
+ @training_state = args[:training_state] if args.key?(:training_state)
4271
+ @tuning_operation = args[:tuning_operation] if args.key?(:tuning_operation)
4272
+ @type = args[:type] if args.key?(:type)
4273
+ @update_time = args[:update_time] if args.key?(:update_time)
4274
+ end
4275
+ end
4276
+
4277
+ # The PageOptimizationConfig for model training. This determines how many panels
4278
+ # to optimize for, and which serving configurations to consider for each panel.
4279
+ # The purpose of this model is to optimize which ServingConfig to show on which
4280
+ # panels in way that optimizes the visitors shopping journey.
4281
+ class GoogleCloudRetailV2alphaModelPageOptimizationConfig
4282
+ include Google::Apis::Core::Hashable
4283
+
4284
+ # Required. The type of UserEvent this page optimization is shown for. Each page
4285
+ # has an associated event type - this will be the corresponding event type for
4286
+ # the page that the page optimization model is used on. Supported types: * `add-
4287
+ # to-cart`: Products being added to cart. * `detail-page-view`: Products detail
4288
+ # page viewed. * `home-page-view`: Homepage viewed * `category-page-view`:
4289
+ # Homepage viewed * `shopping-cart-page-view`: User viewing a shopping cart. `
4290
+ # home-page-view` only allows models with type `recommended-for-you`. All other
4291
+ # page_optimization_event_type allow all Model.types.
4292
+ # Corresponds to the JSON property `pageOptimizationEventType`
4293
+ # @return [String]
4294
+ attr_accessor :page_optimization_event_type
4295
+
4296
+ # Required. A list of panel configurations. Limit = 5.
4297
+ # Corresponds to the JSON property `panels`
4298
+ # @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2alphaModelPageOptimizationConfigPanel>]
4299
+ attr_accessor :panels
4300
+
4301
+ # Optional. How to restrict results across panels e.g. can the same
4302
+ # ServingConfig be shown on multiple panels at once. If unspecified, default to `
4303
+ # UNIQUE_MODEL_RESTRICTION`.
4304
+ # Corresponds to the JSON property `restriction`
4305
+ # @return [String]
4306
+ attr_accessor :restriction
4307
+
4308
+ def initialize(**args)
4309
+ update!(**args)
4310
+ end
4311
+
4312
+ # Update properties of this object
4313
+ def update!(**args)
4314
+ @page_optimization_event_type = args[:page_optimization_event_type] if args.key?(:page_optimization_event_type)
4315
+ @panels = args[:panels] if args.key?(:panels)
4316
+ @restriction = args[:restriction] if args.key?(:restriction)
4317
+ end
4318
+ end
4319
+
4320
+ # A candidate to consider for a given panel. Currently only ServingConfig are
4321
+ # valid candidates.
4322
+ class GoogleCloudRetailV2alphaModelPageOptimizationConfigCandidate
4323
+ include Google::Apis::Core::Hashable
4324
+
4325
+ # This has to be a valid ServingConfig identifier. e.g. for a ServingConfig with
4326
+ # full name: `projects/*/locations/global/catalogs/default_catalog/
4327
+ # servingConfigs/my_candidate_config` this would be 'my_candidate_config'
4328
+ # Corresponds to the JSON property `servingConfigId`
4329
+ # @return [String]
4330
+ attr_accessor :serving_config_id
4331
+
4332
+ def initialize(**args)
4333
+ update!(**args)
4334
+ end
4335
+
4336
+ # Update properties of this object
4337
+ def update!(**args)
4338
+ @serving_config_id = args[:serving_config_id] if args.key?(:serving_config_id)
4339
+ end
4340
+ end
4341
+
4342
+ # An individual panel with a list of ServingConfigs to consider for it.
4343
+ class GoogleCloudRetailV2alphaModelPageOptimizationConfigPanel
4344
+ include Google::Apis::Core::Hashable
4345
+
4346
+ # Required. The candidates to consider on the panel. Limit = 10.
4347
+ # Corresponds to the JSON property `candidates`
4348
+ # @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2alphaModelPageOptimizationConfigCandidate>]
4349
+ attr_accessor :candidates
4350
+
4351
+ # A candidate to consider for a given panel. Currently only ServingConfig are
4352
+ # valid candidates.
4353
+ # Corresponds to the JSON property `defaultCandidate`
4354
+ # @return [Google::Apis::RetailV2::GoogleCloudRetailV2alphaModelPageOptimizationConfigCandidate]
4355
+ attr_accessor :default_candidate
4356
+
4357
+ # Optional. The name to display for the panel.
4358
+ # Corresponds to the JSON property `displayName`
4359
+ # @return [String]
4360
+ attr_accessor :display_name
4361
+
4362
+ def initialize(**args)
4363
+ update!(**args)
4364
+ end
4365
+
4366
+ # Update properties of this object
4367
+ def update!(**args)
4368
+ @candidates = args[:candidates] if args.key?(:candidates)
4369
+ @default_candidate = args[:default_candidate] if args.key?(:default_candidate)
4370
+ @display_name = args[:display_name] if args.key?(:display_name)
4371
+ end
4372
+ end
4373
+
4130
4374
  # Metadata related to the progress of the Purge operation. This will be returned
4131
4375
  # by the google.longrunning.Operation.metadata field.
4132
4376
  class GoogleCloudRetailV2alphaPurgeMetadata
@@ -4351,6 +4595,39 @@ module Google
4351
4595
  end
4352
4596
  end
4353
4597
 
4598
+ # Metadata associated with a tune operation.
4599
+ class GoogleCloudRetailV2alphaTuneModelMetadata
4600
+ include Google::Apis::Core::Hashable
4601
+
4602
+ # The resource name of the model that this tune applies to. Format: projects/`
4603
+ # project_number`/locations/`location_id`/catalogs/`catalog_id`/models/`model_id`
4604
+ # Corresponds to the JSON property `model`
4605
+ # @return [String]
4606
+ attr_accessor :model
4607
+
4608
+ def initialize(**args)
4609
+ update!(**args)
4610
+ end
4611
+
4612
+ # Update properties of this object
4613
+ def update!(**args)
4614
+ @model = args[:model] if args.key?(:model)
4615
+ end
4616
+ end
4617
+
4618
+ # Response associated with a tune operation.
4619
+ class GoogleCloudRetailV2alphaTuneModelResponse
4620
+ include Google::Apis::Core::Hashable
4621
+
4622
+ def initialize(**args)
4623
+ update!(**args)
4624
+ end
4625
+
4626
+ # Update properties of this object
4627
+ def update!(**args)
4628
+ end
4629
+ end
4630
+
4354
4631
  # A summary of import result. The UserEventImportSummary summarizes the import
4355
4632
  # status for user events.
4356
4633
  class GoogleCloudRetailV2alphaUserEventImportSummary
@@ -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.46.0"
19
+ GEM_VERSION = "0.47.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.9.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220707"
25
+ REVISION = "20220716"
26
26
  end
27
27
  end
28
28
  end
@@ -568,6 +568,12 @@ module Google
568
568
  include Google::Apis::Core::JsonObjectSupport
569
569
  end
570
570
 
571
+ class GoogleCloudRetailV2alphaCreateModelMetadata
572
+ class Representation < Google::Apis::Core::JsonRepresentation; end
573
+
574
+ include Google::Apis::Core::JsonObjectSupport
575
+ end
576
+
571
577
  class GoogleCloudRetailV2alphaExportErrorsConfig
572
578
  class Representation < Google::Apis::Core::JsonRepresentation; end
573
579
 
@@ -622,6 +628,30 @@ module Google
622
628
  include Google::Apis::Core::JsonObjectSupport
623
629
  end
624
630
 
631
+ class GoogleCloudRetailV2alphaModel
632
+ class Representation < Google::Apis::Core::JsonRepresentation; end
633
+
634
+ include Google::Apis::Core::JsonObjectSupport
635
+ end
636
+
637
+ class GoogleCloudRetailV2alphaModelPageOptimizationConfig
638
+ class Representation < Google::Apis::Core::JsonRepresentation; end
639
+
640
+ include Google::Apis::Core::JsonObjectSupport
641
+ end
642
+
643
+ class GoogleCloudRetailV2alphaModelPageOptimizationConfigCandidate
644
+ class Representation < Google::Apis::Core::JsonRepresentation; end
645
+
646
+ include Google::Apis::Core::JsonObjectSupport
647
+ end
648
+
649
+ class GoogleCloudRetailV2alphaModelPageOptimizationConfigPanel
650
+ class Representation < Google::Apis::Core::JsonRepresentation; end
651
+
652
+ include Google::Apis::Core::JsonObjectSupport
653
+ end
654
+
625
655
  class GoogleCloudRetailV2alphaPurgeMetadata
626
656
  class Representation < Google::Apis::Core::JsonRepresentation; end
627
657
 
@@ -694,6 +724,18 @@ module Google
694
724
  include Google::Apis::Core::JsonObjectSupport
695
725
  end
696
726
 
727
+ class GoogleCloudRetailV2alphaTuneModelMetadata
728
+ class Representation < Google::Apis::Core::JsonRepresentation; end
729
+
730
+ include Google::Apis::Core::JsonObjectSupport
731
+ end
732
+
733
+ class GoogleCloudRetailV2alphaTuneModelResponse
734
+ class Representation < Google::Apis::Core::JsonRepresentation; end
735
+
736
+ include Google::Apis::Core::JsonObjectSupport
737
+ end
738
+
697
739
  class GoogleCloudRetailV2alphaUserEventImportSummary
698
740
  class Representation < Google::Apis::Core::JsonRepresentation; end
699
741
 
@@ -1780,6 +1822,13 @@ module Google
1780
1822
  end
1781
1823
  end
1782
1824
 
1825
+ class GoogleCloudRetailV2alphaCreateModelMetadata
1826
+ # @private
1827
+ class Representation < Google::Apis::Core::JsonRepresentation
1828
+ property :model, as: 'model'
1829
+ end
1830
+ end
1831
+
1783
1832
  class GoogleCloudRetailV2alphaExportErrorsConfig
1784
1833
  # @private
1785
1834
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1864,6 +1913,55 @@ module Google
1864
1913
  end
1865
1914
  end
1866
1915
 
1916
+ class GoogleCloudRetailV2alphaModel
1917
+ # @private
1918
+ class Representation < Google::Apis::Core::JsonRepresentation
1919
+ property :create_time, as: 'createTime'
1920
+ property :data_state, as: 'dataState'
1921
+ property :display_name, as: 'displayName'
1922
+ property :filtering_option, as: 'filteringOption'
1923
+ property :last_tune_time, as: 'lastTuneTime'
1924
+ property :name, as: 'name'
1925
+ property :optimization_objective, as: 'optimizationObjective'
1926
+ property :page_optimization_config, as: 'pageOptimizationConfig', class: Google::Apis::RetailV2::GoogleCloudRetailV2alphaModelPageOptimizationConfig, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2alphaModelPageOptimizationConfig::Representation
1927
+
1928
+ property :periodic_tuning_state, as: 'periodicTuningState'
1929
+ property :serving_state, as: 'servingState'
1930
+ property :training_state, as: 'trainingState'
1931
+ property :tuning_operation, as: 'tuningOperation'
1932
+ property :type, as: 'type'
1933
+ property :update_time, as: 'updateTime'
1934
+ end
1935
+ end
1936
+
1937
+ class GoogleCloudRetailV2alphaModelPageOptimizationConfig
1938
+ # @private
1939
+ class Representation < Google::Apis::Core::JsonRepresentation
1940
+ property :page_optimization_event_type, as: 'pageOptimizationEventType'
1941
+ collection :panels, as: 'panels', class: Google::Apis::RetailV2::GoogleCloudRetailV2alphaModelPageOptimizationConfigPanel, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2alphaModelPageOptimizationConfigPanel::Representation
1942
+
1943
+ property :restriction, as: 'restriction'
1944
+ end
1945
+ end
1946
+
1947
+ class GoogleCloudRetailV2alphaModelPageOptimizationConfigCandidate
1948
+ # @private
1949
+ class Representation < Google::Apis::Core::JsonRepresentation
1950
+ property :serving_config_id, as: 'servingConfigId'
1951
+ end
1952
+ end
1953
+
1954
+ class GoogleCloudRetailV2alphaModelPageOptimizationConfigPanel
1955
+ # @private
1956
+ class Representation < Google::Apis::Core::JsonRepresentation
1957
+ collection :candidates, as: 'candidates', class: Google::Apis::RetailV2::GoogleCloudRetailV2alphaModelPageOptimizationConfigCandidate, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2alphaModelPageOptimizationConfigCandidate::Representation
1958
+
1959
+ property :default_candidate, as: 'defaultCandidate', class: Google::Apis::RetailV2::GoogleCloudRetailV2alphaModelPageOptimizationConfigCandidate, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2alphaModelPageOptimizationConfigCandidate::Representation
1960
+
1961
+ property :display_name, as: 'displayName'
1962
+ end
1963
+ end
1964
+
1867
1965
  class GoogleCloudRetailV2alphaPurgeMetadata
1868
1966
  # @private
1869
1967
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1944,6 +2042,19 @@ module Google
1944
2042
  end
1945
2043
  end
1946
2044
 
2045
+ class GoogleCloudRetailV2alphaTuneModelMetadata
2046
+ # @private
2047
+ class Representation < Google::Apis::Core::JsonRepresentation
2048
+ property :model, as: 'model'
2049
+ end
2050
+ end
2051
+
2052
+ class GoogleCloudRetailV2alphaTuneModelResponse
2053
+ # @private
2054
+ class Representation < Google::Apis::Core::JsonRepresentation
2055
+ end
2056
+ end
2057
+
1947
2058
  class GoogleCloudRetailV2alphaUserEventImportSummary
1948
2059
  # @private
1949
2060
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -935,9 +935,9 @@ module Google
935
935
 
936
936
  # Makes a recommendation prediction.
937
937
  # @param [String] placement
938
- # Required. Full resource name of the format: `placement=projects/*/locations/
939
- # global/catalogs/default_catalog/servingConfigs/*` or `placement=projects/*/
940
- # locations/global/catalogs/default_catalog/placements/*`. We recommend using
938
+ # Required. Full resource name of the format: ``placement=projects/*/locations/
939
+ # global/catalogs/default_catalog/servingConfigs/*`` or ``placement=projects/*/
940
+ # locations/global/catalogs/default_catalog/placements/*``. We recommend using
941
941
  # the `servingConfigs` resource. `placements` is a legacy resource. The ID of
942
942
  # the Recommendations AI serving config or placement. Before you can request
943
943
  # predictions from your model, you must create at least one serving config or
@@ -1017,9 +1017,9 @@ module Google
1017
1017
 
1018
1018
  # Makes a recommendation prediction.
1019
1019
  # @param [String] placement
1020
- # Required. Full resource name of the format: `placement=projects/*/locations/
1021
- # global/catalogs/default_catalog/servingConfigs/*` or `placement=projects/*/
1022
- # locations/global/catalogs/default_catalog/placements/*`. We recommend using
1020
+ # Required. Full resource name of the format: ``placement=projects/*/locations/
1021
+ # global/catalogs/default_catalog/servingConfigs/*`` or ``placement=projects/*/
1022
+ # locations/global/catalogs/default_catalog/placements/*``. We recommend using
1023
1023
  # the `servingConfigs` resource. `placements` is a legacy resource. The ID of
1024
1024
  # the Recommendations AI serving config or placement. Before you can request
1025
1025
  # predictions from your model, you must create at least one serving config or
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-retail_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.46.0
4
+ version: 0.47.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-07-18 00:00:00.000000000 Z
11
+ date: 2022-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.46.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.47.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: []