google-apis-retail_v2 0.101.0 → 0.102.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: 680a42cf4e9f51dd52a643eb7048e676921274048e424a19ddb013b9315b8b5f
4
- data.tar.gz: 1fdb8add6adb047d7595716b8728df06f6409b67796868c97accd101fde65563
3
+ metadata.gz: 50d7c27a64e08e19a6f529f86ae53beb01553354756e8aef1a8805f6b0e3254a
4
+ data.tar.gz: 9601ce54bb68ca89eead885cf9cbc7b80f5bb9dea13d14e0b5cd56bad5f2895f
5
5
  SHA512:
6
- metadata.gz: 30fc70bd16a6f9363260f365a428e7b17e2caab331fc82fadda12595afa60fecfb8df696a51aad2da27814a9fbe3d05faefa23c88210f103603a0d3c29b88b53
7
- data.tar.gz: e3a4de2117e6901ba6d70ccaa884d3d5af7caeac8812b278fac32735628391736284df60282aa0737eb3f0873a4451652041ba3f2b86986bcc1414b621553710
6
+ metadata.gz: 568da76f00586978646d74b5a85d0ea7ab3acf2228a4f321b848a4fdd1d517abad9b3712717ac4f96a29aae689e797b7a8182dc9887deda7ed703f7a71c46e79
7
+ data.tar.gz: d8b8e997e3c4677bd4992528e7a6b5b851f9cdab9ee706f27908b134b4fc27b2990946ddf94cc6807bae61616aba0a23cddb8ae02942c8ae8b3fd7063adb8c5e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-retail_v2
2
2
 
3
+ ### v0.102.0 (2024-09-29)
4
+
5
+ * Regenerated from discovery document revision 20240920
6
+
3
7
  ### v0.101.0 (2024-09-22)
4
8
 
5
9
  * Regenerated from discovery document revision 20240912
@@ -560,6 +560,44 @@ module Google
560
560
  end
561
561
  end
562
562
 
563
+ # Request for BatchUpdateGenerativeQuestionConfig method.
564
+ class GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsRequest
565
+ include Google::Apis::Core::Hashable
566
+
567
+ # Required. The updates question configs.
568
+ # Corresponds to the JSON property `requests`
569
+ # @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2UpdateGenerativeQuestionConfigRequest>]
570
+ attr_accessor :requests
571
+
572
+ def initialize(**args)
573
+ update!(**args)
574
+ end
575
+
576
+ # Update properties of this object
577
+ def update!(**args)
578
+ @requests = args[:requests] if args.key?(:requests)
579
+ end
580
+ end
581
+
582
+ # Aggregated response for UpdateGenerativeQuestionConfig method.
583
+ class GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsResponse
584
+ include Google::Apis::Core::Hashable
585
+
586
+ # Optional. The updates question configs.
587
+ # Corresponds to the JSON property `generativeQuestionConfigs`
588
+ # @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2GenerativeQuestionConfig>]
589
+ attr_accessor :generative_question_configs
590
+
591
+ def initialize(**args)
592
+ update!(**args)
593
+ end
594
+
595
+ # Update properties of this object
596
+ def update!(**args)
597
+ @generative_question_configs = args[:generative_question_configs] if args.key?(:generative_question_configs)
598
+ end
599
+ end
600
+
563
601
  # A BigQuery output result.
564
602
  class GoogleCloudRetailV2BigQueryOutputResult
565
603
  include Google::Apis::Core::Hashable
@@ -1805,6 +1843,99 @@ module Google
1805
1843
  end
1806
1844
  end
1807
1845
 
1846
+ # Configuration for a single generated question.
1847
+ class GoogleCloudRetailV2GenerativeQuestionConfig
1848
+ include Google::Apis::Core::Hashable
1849
+
1850
+ # Optional. Whether the question is asked at serving time.
1851
+ # Corresponds to the JSON property `allowedInConversation`
1852
+ # @return [Boolean]
1853
+ attr_accessor :allowed_in_conversation
1854
+ alias_method :allowed_in_conversation?, :allowed_in_conversation
1855
+
1856
+ # Required. Resource name of the catalog. Format: projects/`project`/locations/`
1857
+ # location`/catalogs/`catalog`
1858
+ # Corresponds to the JSON property `catalog`
1859
+ # @return [String]
1860
+ attr_accessor :catalog
1861
+
1862
+ # Output only. Values that can be used to answer the question.
1863
+ # Corresponds to the JSON property `exampleValues`
1864
+ # @return [Array<String>]
1865
+ attr_accessor :example_values
1866
+
1867
+ # Required. The facet to which the question is associated.
1868
+ # Corresponds to the JSON property `facet`
1869
+ # @return [String]
1870
+ attr_accessor :facet
1871
+
1872
+ # Optional. The question that will be used at serving time. Question can have a
1873
+ # max length of 300 bytes. When not populated, generated_question should be used.
1874
+ # Corresponds to the JSON property `finalQuestion`
1875
+ # @return [String]
1876
+ attr_accessor :final_question
1877
+
1878
+ # Output only. The ratio of how often a question was asked.
1879
+ # Corresponds to the JSON property `frequency`
1880
+ # @return [Float]
1881
+ attr_accessor :frequency
1882
+
1883
+ # Output only. The LLM generated question.
1884
+ # Corresponds to the JSON property `generatedQuestion`
1885
+ # @return [String]
1886
+ attr_accessor :generated_question
1887
+
1888
+ def initialize(**args)
1889
+ update!(**args)
1890
+ end
1891
+
1892
+ # Update properties of this object
1893
+ def update!(**args)
1894
+ @allowed_in_conversation = args[:allowed_in_conversation] if args.key?(:allowed_in_conversation)
1895
+ @catalog = args[:catalog] if args.key?(:catalog)
1896
+ @example_values = args[:example_values] if args.key?(:example_values)
1897
+ @facet = args[:facet] if args.key?(:facet)
1898
+ @final_question = args[:final_question] if args.key?(:final_question)
1899
+ @frequency = args[:frequency] if args.key?(:frequency)
1900
+ @generated_question = args[:generated_question] if args.key?(:generated_question)
1901
+ end
1902
+ end
1903
+
1904
+ # Configuration for overall generative question feature state.
1905
+ class GoogleCloudRetailV2GenerativeQuestionsFeatureConfig
1906
+ include Google::Apis::Core::Hashable
1907
+
1908
+ # Required. Resource name of the affected catalog. Format: projects/`project`/
1909
+ # locations/`location`/catalogs/`catalog`
1910
+ # Corresponds to the JSON property `catalog`
1911
+ # @return [String]
1912
+ attr_accessor :catalog
1913
+
1914
+ # Optional. Determines whether questions will be used at serving time. Note:
1915
+ # This feature cannot be enabled until initial data requirements are satisfied.
1916
+ # Corresponds to the JSON property `featureEnabled`
1917
+ # @return [Boolean]
1918
+ attr_accessor :feature_enabled
1919
+ alias_method :feature_enabled?, :feature_enabled
1920
+
1921
+ # Optional. Minimum number of products in the response to trigger follow-up
1922
+ # questions. Value must be 0 or positive.
1923
+ # Corresponds to the JSON property `minimumProducts`
1924
+ # @return [Fixnum]
1925
+ attr_accessor :minimum_products
1926
+
1927
+ def initialize(**args)
1928
+ update!(**args)
1929
+ end
1930
+
1931
+ # Update properties of this object
1932
+ def update!(**args)
1933
+ @catalog = args[:catalog] if args.key?(:catalog)
1934
+ @feature_enabled = args[:feature_enabled] if args.key?(:feature_enabled)
1935
+ @minimum_products = args[:minimum_products] if args.key?(:minimum_products)
1936
+ end
1937
+ end
1938
+
1808
1939
  # Response message of CatalogService.GetDefaultBranch.
1809
1940
  class GoogleCloudRetailV2GetDefaultBranchResponse
1810
1941
  include Google::Apis::Core::Hashable
@@ -2235,6 +2366,25 @@ module Google
2235
2366
  end
2236
2367
  end
2237
2368
 
2369
+ # Response for ListQuestions method.
2370
+ class GoogleCloudRetailV2ListGenerativeQuestionConfigsResponse
2371
+ include Google::Apis::Core::Hashable
2372
+
2373
+ # All the questions for a given catalog.
2374
+ # Corresponds to the JSON property `generativeQuestionConfigs`
2375
+ # @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2GenerativeQuestionConfig>]
2376
+ attr_accessor :generative_question_configs
2377
+
2378
+ def initialize(**args)
2379
+ update!(**args)
2380
+ end
2381
+
2382
+ # Update properties of this object
2383
+ def update!(**args)
2384
+ @generative_question_configs = args[:generative_question_configs] if args.key?(:generative_question_configs)
2385
+ end
2386
+ end
2387
+
2238
2388
  # Response to a ListModelRequest.
2239
2389
  class GoogleCloudRetailV2ListModelsResponse
2240
2390
  include Google::Apis::Core::Hashable
@@ -6062,6 +6212,33 @@ module Google
6062
6212
  end
6063
6213
  end
6064
6214
 
6215
+ # Request for UpdateGenerativeQuestionConfig method.
6216
+ class GoogleCloudRetailV2UpdateGenerativeQuestionConfigRequest
6217
+ include Google::Apis::Core::Hashable
6218
+
6219
+ # Configuration for a single generated question.
6220
+ # Corresponds to the JSON property `generativeQuestionConfig`
6221
+ # @return [Google::Apis::RetailV2::GoogleCloudRetailV2GenerativeQuestionConfig]
6222
+ attr_accessor :generative_question_config
6223
+
6224
+ # Optional. Indicates which fields in the provided GenerativeQuestionConfig to
6225
+ # update. The following are NOT supported: * GenerativeQuestionConfig.frequency
6226
+ # If not set or empty, all supported fields are updated.
6227
+ # Corresponds to the JSON property `updateMask`
6228
+ # @return [String]
6229
+ attr_accessor :update_mask
6230
+
6231
+ def initialize(**args)
6232
+ update!(**args)
6233
+ end
6234
+
6235
+ # Update properties of this object
6236
+ def update!(**args)
6237
+ @generative_question_config = args[:generative_question_config] if args.key?(:generative_question_config)
6238
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
6239
+ end
6240
+ end
6241
+
6065
6242
  # UserEvent captures all metadata information Retail API needs to know about how
6066
6243
  # end users interact with customers' website.
6067
6244
  class GoogleCloudRetailV2UserEvent
@@ -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.101.0"
19
+ GEM_VERSION = "0.102.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.15.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240912"
25
+ REVISION = "20240920"
26
26
  end
27
27
  end
28
28
  end
@@ -124,6 +124,18 @@ module Google
124
124
  include Google::Apis::Core::JsonObjectSupport
125
125
  end
126
126
 
127
+ class GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsRequest
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsResponse
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
127
139
  class GoogleCloudRetailV2BigQueryOutputResult
128
140
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
141
 
@@ -316,6 +328,18 @@ module Google
316
328
  include Google::Apis::Core::JsonObjectSupport
317
329
  end
318
330
 
331
+ class GoogleCloudRetailV2GenerativeQuestionConfig
332
+ class Representation < Google::Apis::Core::JsonRepresentation; end
333
+
334
+ include Google::Apis::Core::JsonObjectSupport
335
+ end
336
+
337
+ class GoogleCloudRetailV2GenerativeQuestionsFeatureConfig
338
+ class Representation < Google::Apis::Core::JsonRepresentation; end
339
+
340
+ include Google::Apis::Core::JsonObjectSupport
341
+ end
342
+
319
343
  class GoogleCloudRetailV2GetDefaultBranchResponse
320
344
  class Representation < Google::Apis::Core::JsonRepresentation; end
321
345
 
@@ -394,6 +418,12 @@ module Google
394
418
  include Google::Apis::Core::JsonObjectSupport
395
419
  end
396
420
 
421
+ class GoogleCloudRetailV2ListGenerativeQuestionConfigsResponse
422
+ class Representation < Google::Apis::Core::JsonRepresentation; end
423
+
424
+ include Google::Apis::Core::JsonObjectSupport
425
+ end
426
+
397
427
  class GoogleCloudRetailV2ListModelsResponse
398
428
  class Representation < Google::Apis::Core::JsonRepresentation; end
399
429
 
@@ -934,6 +964,12 @@ module Google
934
964
  include Google::Apis::Core::JsonObjectSupport
935
965
  end
936
966
 
967
+ class GoogleCloudRetailV2UpdateGenerativeQuestionConfigRequest
968
+ class Representation < Google::Apis::Core::JsonRepresentation; end
969
+
970
+ include Google::Apis::Core::JsonObjectSupport
971
+ end
972
+
937
973
  class GoogleCloudRetailV2UserEvent
938
974
  class Representation < Google::Apis::Core::JsonRepresentation; end
939
975
 
@@ -1639,6 +1675,22 @@ module Google
1639
1675
  end
1640
1676
  end
1641
1677
 
1678
+ class GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsRequest
1679
+ # @private
1680
+ class Representation < Google::Apis::Core::JsonRepresentation
1681
+ collection :requests, as: 'requests', class: Google::Apis::RetailV2::GoogleCloudRetailV2UpdateGenerativeQuestionConfigRequest, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2UpdateGenerativeQuestionConfigRequest::Representation
1682
+
1683
+ end
1684
+ end
1685
+
1686
+ class GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsResponse
1687
+ # @private
1688
+ class Representation < Google::Apis::Core::JsonRepresentation
1689
+ collection :generative_question_configs, as: 'generativeQuestionConfigs', class: Google::Apis::RetailV2::GoogleCloudRetailV2GenerativeQuestionConfig, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2GenerativeQuestionConfig::Representation
1690
+
1691
+ end
1692
+ end
1693
+
1642
1694
  class GoogleCloudRetailV2BigQueryOutputResult
1643
1695
  # @private
1644
1696
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1948,6 +2000,28 @@ module Google
1948
2000
  end
1949
2001
  end
1950
2002
 
2003
+ class GoogleCloudRetailV2GenerativeQuestionConfig
2004
+ # @private
2005
+ class Representation < Google::Apis::Core::JsonRepresentation
2006
+ property :allowed_in_conversation, as: 'allowedInConversation'
2007
+ property :catalog, as: 'catalog'
2008
+ collection :example_values, as: 'exampleValues'
2009
+ property :facet, as: 'facet'
2010
+ property :final_question, as: 'finalQuestion'
2011
+ property :frequency, as: 'frequency'
2012
+ property :generated_question, as: 'generatedQuestion'
2013
+ end
2014
+ end
2015
+
2016
+ class GoogleCloudRetailV2GenerativeQuestionsFeatureConfig
2017
+ # @private
2018
+ class Representation < Google::Apis::Core::JsonRepresentation
2019
+ property :catalog, as: 'catalog'
2020
+ property :feature_enabled, as: 'featureEnabled'
2021
+ property :minimum_products, as: 'minimumProducts'
2022
+ end
2023
+ end
2024
+
1951
2025
  class GoogleCloudRetailV2GetDefaultBranchResponse
1952
2026
  # @private
1953
2027
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2076,6 +2150,14 @@ module Google
2076
2150
  end
2077
2151
  end
2078
2152
 
2153
+ class GoogleCloudRetailV2ListGenerativeQuestionConfigsResponse
2154
+ # @private
2155
+ class Representation < Google::Apis::Core::JsonRepresentation
2156
+ collection :generative_question_configs, as: 'generativeQuestionConfigs', class: Google::Apis::RetailV2::GoogleCloudRetailV2GenerativeQuestionConfig, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2GenerativeQuestionConfig::Representation
2157
+
2158
+ end
2159
+ end
2160
+
2079
2161
  class GoogleCloudRetailV2ListModelsResponse
2080
2162
  # @private
2081
2163
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2990,6 +3072,15 @@ module Google
2990
3072
  end
2991
3073
  end
2992
3074
 
3075
+ class GoogleCloudRetailV2UpdateGenerativeQuestionConfigRequest
3076
+ # @private
3077
+ class Representation < Google::Apis::Core::JsonRepresentation
3078
+ property :generative_question_config, as: 'generativeQuestionConfig', class: Google::Apis::RetailV2::GoogleCloudRetailV2GenerativeQuestionConfig, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2GenerativeQuestionConfig::Representation
3079
+
3080
+ property :update_mask, as: 'updateMask'
3081
+ end
3082
+ end
3083
+
2993
3084
  class GoogleCloudRetailV2UserEvent
2994
3085
  # @private
2995
3086
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -269,6 +269,38 @@ module Google
269
269
  execute_or_queue_command(command, &block)
270
270
  end
271
271
 
272
+ # Manages overal generative question feature state -- enables toggling feature
273
+ # on and off.
274
+ # @param [String] catalog
275
+ # Required. Resource name of the parent catalog. Format: projects/`project`/
276
+ # locations/`location`/catalogs/`catalog`
277
+ # @param [String] fields
278
+ # Selector specifying which fields to include in a partial response.
279
+ # @param [String] quota_user
280
+ # Available to use for quota purposes for server-side applications. Can be any
281
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
282
+ # @param [Google::Apis::RequestOptions] options
283
+ # Request-specific options
284
+ #
285
+ # @yield [result, err] Result & error if block supplied
286
+ # @yieldparam result [Google::Apis::RetailV2::GoogleCloudRetailV2GenerativeQuestionsFeatureConfig] parsed result object
287
+ # @yieldparam err [StandardError] error object if request failed
288
+ #
289
+ # @return [Google::Apis::RetailV2::GoogleCloudRetailV2GenerativeQuestionsFeatureConfig]
290
+ #
291
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
292
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
293
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
294
+ def get_project_location_catalog_generative_question_feature(catalog, fields: nil, quota_user: nil, options: nil, &block)
295
+ command = make_simple_command(:get, 'v2/{+catalog}/generativeQuestionFeature', options)
296
+ command.response_representation = Google::Apis::RetailV2::GoogleCloudRetailV2GenerativeQuestionsFeatureConfig::Representation
297
+ command.response_class = Google::Apis::RetailV2::GoogleCloudRetailV2GenerativeQuestionsFeatureConfig
298
+ command.params['catalog'] = catalog unless catalog.nil?
299
+ command.query['fields'] = fields unless fields.nil?
300
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
301
+ execute_or_queue_command(command, &block)
302
+ end
303
+
272
304
  # Lists all the Catalogs associated with the project.
273
305
  # @param [String] parent
274
306
  # Required. The account resource name with an associated location. If the caller
@@ -486,6 +518,85 @@ module Google
486
518
  execute_or_queue_command(command, &block)
487
519
  end
488
520
 
521
+ # Allows management of individual questions.
522
+ # @param [String] catalog
523
+ # Required. Resource name of the catalog. Format: projects/`project`/locations/`
524
+ # location`/catalogs/`catalog`
525
+ # @param [Google::Apis::RetailV2::GoogleCloudRetailV2GenerativeQuestionConfig] google_cloud_retail_v2_generative_question_config_object
526
+ # @param [String] update_mask
527
+ # Optional. Indicates which fields in the provided GenerativeQuestionConfig to
528
+ # update. The following are NOT supported: * GenerativeQuestionConfig.frequency
529
+ # If not set or empty, all supported fields are updated.
530
+ # @param [String] fields
531
+ # Selector specifying which fields to include in a partial response.
532
+ # @param [String] quota_user
533
+ # Available to use for quota purposes for server-side applications. Can be any
534
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
535
+ # @param [Google::Apis::RequestOptions] options
536
+ # Request-specific options
537
+ #
538
+ # @yield [result, err] Result & error if block supplied
539
+ # @yieldparam result [Google::Apis::RetailV2::GoogleCloudRetailV2GenerativeQuestionConfig] parsed result object
540
+ # @yieldparam err [StandardError] error object if request failed
541
+ #
542
+ # @return [Google::Apis::RetailV2::GoogleCloudRetailV2GenerativeQuestionConfig]
543
+ #
544
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
545
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
546
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
547
+ def update_project_location_catalog_generative_question(catalog, google_cloud_retail_v2_generative_question_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
548
+ command = make_simple_command(:patch, 'v2/{+catalog}/generativeQuestion', options)
549
+ command.request_representation = Google::Apis::RetailV2::GoogleCloudRetailV2GenerativeQuestionConfig::Representation
550
+ command.request_object = google_cloud_retail_v2_generative_question_config_object
551
+ command.response_representation = Google::Apis::RetailV2::GoogleCloudRetailV2GenerativeQuestionConfig::Representation
552
+ command.response_class = Google::Apis::RetailV2::GoogleCloudRetailV2GenerativeQuestionConfig
553
+ command.params['catalog'] = catalog unless catalog.nil?
554
+ command.query['updateMask'] = update_mask unless update_mask.nil?
555
+ command.query['fields'] = fields unless fields.nil?
556
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
557
+ execute_or_queue_command(command, &block)
558
+ end
559
+
560
+ # Manages overal generative question feature state -- enables toggling feature
561
+ # on and off.
562
+ # @param [String] catalog
563
+ # Required. Resource name of the affected catalog. Format: projects/`project`/
564
+ # locations/`location`/catalogs/`catalog`
565
+ # @param [Google::Apis::RetailV2::GoogleCloudRetailV2GenerativeQuestionsFeatureConfig] google_cloud_retail_v2_generative_questions_feature_config_object
566
+ # @param [String] update_mask
567
+ # Optional. Indicates which fields in the provided
568
+ # GenerativeQuestionsFeatureConfig to update. If not set or empty, all supported
569
+ # fields are updated.
570
+ # @param [String] fields
571
+ # Selector specifying which fields to include in a partial response.
572
+ # @param [String] quota_user
573
+ # Available to use for quota purposes for server-side applications. Can be any
574
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
575
+ # @param [Google::Apis::RequestOptions] options
576
+ # Request-specific options
577
+ #
578
+ # @yield [result, err] Result & error if block supplied
579
+ # @yieldparam result [Google::Apis::RetailV2::GoogleCloudRetailV2GenerativeQuestionsFeatureConfig] parsed result object
580
+ # @yieldparam err [StandardError] error object if request failed
581
+ #
582
+ # @return [Google::Apis::RetailV2::GoogleCloudRetailV2GenerativeQuestionsFeatureConfig]
583
+ #
584
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
585
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
586
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
587
+ def update_project_location_catalog_generative_question_feature(catalog, google_cloud_retail_v2_generative_questions_feature_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
588
+ command = make_simple_command(:patch, 'v2/{+catalog}/generativeQuestionFeature', options)
589
+ command.request_representation = Google::Apis::RetailV2::GoogleCloudRetailV2GenerativeQuestionsFeatureConfig::Representation
590
+ command.request_object = google_cloud_retail_v2_generative_questions_feature_config_object
591
+ command.response_representation = Google::Apis::RetailV2::GoogleCloudRetailV2GenerativeQuestionsFeatureConfig::Representation
592
+ command.response_class = Google::Apis::RetailV2::GoogleCloudRetailV2GenerativeQuestionsFeatureConfig
593
+ command.params['catalog'] = catalog unless catalog.nil?
594
+ command.query['updateMask'] = update_mask unless update_mask.nil?
595
+ command.query['fields'] = fields unless fields.nil?
596
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
597
+ execute_or_queue_command(command, &block)
598
+ end
599
+
489
600
  # Adds the specified CatalogAttribute to the AttributesConfig. If the
490
601
  # CatalogAttribute to add already exists, an ALREADY_EXISTS error is returned.
491
602
  # @param [String] attributes_config
@@ -1405,6 +1516,71 @@ module Google
1405
1516
  execute_or_queue_command(command, &block)
1406
1517
  end
1407
1518
 
1519
+ # Allows management of multiple questions.
1520
+ # @param [String] parent
1521
+ # Optional. Resource name of the parent catalog. Format: projects/`project`/
1522
+ # locations/`location`/catalogs/`catalog`
1523
+ # @param [Google::Apis::RetailV2::GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsRequest] google_cloud_retail_v2_batch_update_generative_question_configs_request_object
1524
+ # @param [String] fields
1525
+ # Selector specifying which fields to include in a partial response.
1526
+ # @param [String] quota_user
1527
+ # Available to use for quota purposes for server-side applications. Can be any
1528
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1529
+ # @param [Google::Apis::RequestOptions] options
1530
+ # Request-specific options
1531
+ #
1532
+ # @yield [result, err] Result & error if block supplied
1533
+ # @yieldparam result [Google::Apis::RetailV2::GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsResponse] parsed result object
1534
+ # @yieldparam err [StandardError] error object if request failed
1535
+ #
1536
+ # @return [Google::Apis::RetailV2::GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsResponse]
1537
+ #
1538
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1539
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1540
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1541
+ def batch_project_location_catalog_generative_question_update(parent, google_cloud_retail_v2_batch_update_generative_question_configs_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1542
+ command = make_simple_command(:post, 'v2/{+parent}/generativeQuestion:batchUpdate', options)
1543
+ command.request_representation = Google::Apis::RetailV2::GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsRequest::Representation
1544
+ command.request_object = google_cloud_retail_v2_batch_update_generative_question_configs_request_object
1545
+ command.response_representation = Google::Apis::RetailV2::GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsResponse::Representation
1546
+ command.response_class = Google::Apis::RetailV2::GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsResponse
1547
+ command.params['parent'] = parent unless parent.nil?
1548
+ command.query['fields'] = fields unless fields.nil?
1549
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1550
+ execute_or_queue_command(command, &block)
1551
+ end
1552
+
1553
+ # Returns all questions for a given catalog.
1554
+ # @param [String] parent
1555
+ # Required. Resource name of the parent catalog. Format: projects/`project`/
1556
+ # locations/`location`/catalogs/`catalog`
1557
+ # @param [String] fields
1558
+ # Selector specifying which fields to include in a partial response.
1559
+ # @param [String] quota_user
1560
+ # Available to use for quota purposes for server-side applications. Can be any
1561
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1562
+ # @param [Google::Apis::RequestOptions] options
1563
+ # Request-specific options
1564
+ #
1565
+ # @yield [result, err] Result & error if block supplied
1566
+ # @yieldparam result [Google::Apis::RetailV2::GoogleCloudRetailV2ListGenerativeQuestionConfigsResponse] parsed result object
1567
+ # @yieldparam err [StandardError] error object if request failed
1568
+ #
1569
+ # @return [Google::Apis::RetailV2::GoogleCloudRetailV2ListGenerativeQuestionConfigsResponse]
1570
+ #
1571
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1572
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1573
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1574
+ def list_project_location_catalog_generative_questions(parent, fields: nil, quota_user: nil, options: nil, &block)
1575
+ command = make_simple_command(:get, 'v2/{+parent}/generativeQuestions', options)
1576
+ command.response_representation = Google::Apis::RetailV2::GoogleCloudRetailV2ListGenerativeQuestionConfigsResponse::Representation
1577
+ command.response_class = Google::Apis::RetailV2::GoogleCloudRetailV2ListGenerativeQuestionConfigsResponse
1578
+ command.params['parent'] = parent unless parent.nil?
1579
+ command.query['fields'] = fields unless fields.nil?
1580
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1581
+ execute_or_queue_command(command, &block)
1582
+ end
1583
+
1408
1584
  # Creates a new model.
1409
1585
  # @param [String] parent
1410
1586
  # Required. The parent resource under which to create the model. Format: `
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.101.0
4
+ version: 0.102.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: 2024-09-22 00:00:00.000000000 Z
11
+ date: 2024-09-29 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.101.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.102.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: []