google-apis-retail_v2alpha 0.104.0 → 0.105.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -509,6 +509,38 @@ module Google
509
509
  execute_or_queue_command(command, &block)
510
510
  end
511
511
 
512
+ # Manages overal generative question feature state -- enables toggling feature
513
+ # on and off.
514
+ # @param [String] catalog
515
+ # Required. Resource name of the parent catalog. Format: projects/`project`/
516
+ # locations/`location`/catalogs/`catalog`
517
+ # @param [String] fields
518
+ # Selector specifying which fields to include in a partial response.
519
+ # @param [String] quota_user
520
+ # Available to use for quota purposes for server-side applications. Can be any
521
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
522
+ # @param [Google::Apis::RequestOptions] options
523
+ # Request-specific options
524
+ #
525
+ # @yield [result, err] Result & error if block supplied
526
+ # @yieldparam result [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaGenerativeQuestionsFeatureConfig] parsed result object
527
+ # @yieldparam err [StandardError] error object if request failed
528
+ #
529
+ # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaGenerativeQuestionsFeatureConfig]
530
+ #
531
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
532
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
533
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
534
+ def get_project_location_catalog_generative_question_feature(catalog, fields: nil, quota_user: nil, options: nil, &block)
535
+ command = make_simple_command(:get, 'v2alpha/{+catalog}/generativeQuestionFeature', options)
536
+ command.response_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaGenerativeQuestionsFeatureConfig::Representation
537
+ command.response_class = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaGenerativeQuestionsFeatureConfig
538
+ command.params['catalog'] = catalog unless catalog.nil?
539
+ command.query['fields'] = fields unless fields.nil?
540
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
541
+ execute_or_queue_command(command, &block)
542
+ end
543
+
512
544
  # Lists all the Catalogs associated with the project.
513
545
  # @param [String] parent
514
546
  # Required. The account resource name with an associated location. If the caller
@@ -726,6 +758,85 @@ module Google
726
758
  execute_or_queue_command(command, &block)
727
759
  end
728
760
 
761
+ # Allows management of individual questions.
762
+ # @param [String] catalog
763
+ # Required. Resource name of the catalog. Format: projects/`project`/locations/`
764
+ # location`/catalogs/`catalog`
765
+ # @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaGenerativeQuestionConfig] google_cloud_retail_v2alpha_generative_question_config_object
766
+ # @param [String] update_mask
767
+ # Optional. Indicates which fields in the provided GenerativeQuestionConfig to
768
+ # update. The following are NOT supported: * GenerativeQuestionConfig.frequency
769
+ # If not set or empty, all supported fields are updated.
770
+ # @param [String] fields
771
+ # Selector specifying which fields to include in a partial response.
772
+ # @param [String] quota_user
773
+ # Available to use for quota purposes for server-side applications. Can be any
774
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
775
+ # @param [Google::Apis::RequestOptions] options
776
+ # Request-specific options
777
+ #
778
+ # @yield [result, err] Result & error if block supplied
779
+ # @yieldparam result [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaGenerativeQuestionConfig] parsed result object
780
+ # @yieldparam err [StandardError] error object if request failed
781
+ #
782
+ # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaGenerativeQuestionConfig]
783
+ #
784
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
785
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
786
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
787
+ def update_project_location_catalog_generative_question(catalog, google_cloud_retail_v2alpha_generative_question_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
788
+ command = make_simple_command(:patch, 'v2alpha/{+catalog}/generativeQuestion', options)
789
+ command.request_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaGenerativeQuestionConfig::Representation
790
+ command.request_object = google_cloud_retail_v2alpha_generative_question_config_object
791
+ command.response_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaGenerativeQuestionConfig::Representation
792
+ command.response_class = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaGenerativeQuestionConfig
793
+ command.params['catalog'] = catalog unless catalog.nil?
794
+ command.query['updateMask'] = update_mask unless update_mask.nil?
795
+ command.query['fields'] = fields unless fields.nil?
796
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
797
+ execute_or_queue_command(command, &block)
798
+ end
799
+
800
+ # Manages overal generative question feature state -- enables toggling feature
801
+ # on and off.
802
+ # @param [String] catalog
803
+ # Required. Resource name of the affected catalog. Format: projects/`project`/
804
+ # locations/`location`/catalogs/`catalog`
805
+ # @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaGenerativeQuestionsFeatureConfig] google_cloud_retail_v2alpha_generative_questions_feature_config_object
806
+ # @param [String] update_mask
807
+ # Optional. Indicates which fields in the provided
808
+ # GenerativeQuestionsFeatureConfig to update. If not set or empty, all supported
809
+ # fields are updated.
810
+ # @param [String] fields
811
+ # Selector specifying which fields to include in a partial response.
812
+ # @param [String] quota_user
813
+ # Available to use for quota purposes for server-side applications. Can be any
814
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
815
+ # @param [Google::Apis::RequestOptions] options
816
+ # Request-specific options
817
+ #
818
+ # @yield [result, err] Result & error if block supplied
819
+ # @yieldparam result [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaGenerativeQuestionsFeatureConfig] parsed result object
820
+ # @yieldparam err [StandardError] error object if request failed
821
+ #
822
+ # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaGenerativeQuestionsFeatureConfig]
823
+ #
824
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
825
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
826
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
827
+ def update_project_location_catalog_generative_question_feature(catalog, google_cloud_retail_v2alpha_generative_questions_feature_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
828
+ command = make_simple_command(:patch, 'v2alpha/{+catalog}/generativeQuestionFeature', options)
829
+ command.request_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaGenerativeQuestionsFeatureConfig::Representation
830
+ command.request_object = google_cloud_retail_v2alpha_generative_questions_feature_config_object
831
+ command.response_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaGenerativeQuestionsFeatureConfig::Representation
832
+ command.response_class = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaGenerativeQuestionsFeatureConfig
833
+ command.params['catalog'] = catalog unless catalog.nil?
834
+ command.query['updateMask'] = update_mask unless update_mask.nil?
835
+ command.query['fields'] = fields unless fields.nil?
836
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
837
+ execute_or_queue_command(command, &block)
838
+ end
839
+
729
840
  # Adds the specified CatalogAttribute to the AttributesConfig. If the
730
841
  # CatalogAttribute to add already exists, an ALREADY_EXISTS error is returned.
731
842
  # @param [String] attributes_config
@@ -1186,6 +1297,41 @@ module Google
1186
1297
  execute_or_queue_command(command, &block)
1187
1298
  end
1188
1299
 
1300
+ # Exports multiple Products.
1301
+ # @param [String] parent
1302
+ # Required. Resource name of a Branch, and `default_branch` for branch_id
1303
+ # component is supported. For example `projects/1234/locations/global/catalogs/
1304
+ # default_catalog/branches/default_branch`
1305
+ # @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaExportProductsRequest] google_cloud_retail_v2alpha_export_products_request_object
1306
+ # @param [String] fields
1307
+ # Selector specifying which fields to include in a partial response.
1308
+ # @param [String] quota_user
1309
+ # Available to use for quota purposes for server-side applications. Can be any
1310
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1311
+ # @param [Google::Apis::RequestOptions] options
1312
+ # Request-specific options
1313
+ #
1314
+ # @yield [result, err] Result & error if block supplied
1315
+ # @yieldparam result [Google::Apis::RetailV2alpha::GoogleLongrunningOperation] parsed result object
1316
+ # @yieldparam err [StandardError] error object if request failed
1317
+ #
1318
+ # @return [Google::Apis::RetailV2alpha::GoogleLongrunningOperation]
1319
+ #
1320
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1321
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1322
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1323
+ def export_project_location_catalog_branch_product(parent, google_cloud_retail_v2alpha_export_products_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1324
+ command = make_simple_command(:post, 'v2alpha/{+parent}/products:export', options)
1325
+ command.request_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaExportProductsRequest::Representation
1326
+ command.request_object = google_cloud_retail_v2alpha_export_products_request_object
1327
+ command.response_representation = Google::Apis::RetailV2alpha::GoogleLongrunningOperation::Representation
1328
+ command.response_class = Google::Apis::RetailV2alpha::GoogleLongrunningOperation
1329
+ command.params['parent'] = parent unless parent.nil?
1330
+ command.query['fields'] = fields unless fields.nil?
1331
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1332
+ execute_or_queue_command(command, &block)
1333
+ end
1334
+
1189
1335
  # Gets a Product.
1190
1336
  # @param [String] name
1191
1337
  # Required. Full resource name of Product, such as `projects/*/locations/global/
@@ -1796,6 +1942,71 @@ module Google
1796
1942
  execute_or_queue_command(command, &block)
1797
1943
  end
1798
1944
 
1945
+ # Allows management of multiple questions.
1946
+ # @param [String] parent
1947
+ # Optional. Resource name of the parent catalog. Format: projects/`project`/
1948
+ # locations/`location`/catalogs/`catalog`
1949
+ # @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaBatchUpdateGenerativeQuestionConfigsRequest] google_cloud_retail_v2alpha_batch_update_generative_question_configs_request_object
1950
+ # @param [String] fields
1951
+ # Selector specifying which fields to include in a partial response.
1952
+ # @param [String] quota_user
1953
+ # Available to use for quota purposes for server-side applications. Can be any
1954
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1955
+ # @param [Google::Apis::RequestOptions] options
1956
+ # Request-specific options
1957
+ #
1958
+ # @yield [result, err] Result & error if block supplied
1959
+ # @yieldparam result [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaBatchUpdateGenerativeQuestionConfigsResponse] parsed result object
1960
+ # @yieldparam err [StandardError] error object if request failed
1961
+ #
1962
+ # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaBatchUpdateGenerativeQuestionConfigsResponse]
1963
+ #
1964
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1965
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1966
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1967
+ def batch_project_location_catalog_generative_question_update(parent, google_cloud_retail_v2alpha_batch_update_generative_question_configs_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1968
+ command = make_simple_command(:post, 'v2alpha/{+parent}/generativeQuestion:batchUpdate', options)
1969
+ command.request_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaBatchUpdateGenerativeQuestionConfigsRequest::Representation
1970
+ command.request_object = google_cloud_retail_v2alpha_batch_update_generative_question_configs_request_object
1971
+ command.response_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaBatchUpdateGenerativeQuestionConfigsResponse::Representation
1972
+ command.response_class = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaBatchUpdateGenerativeQuestionConfigsResponse
1973
+ command.params['parent'] = parent unless parent.nil?
1974
+ command.query['fields'] = fields unless fields.nil?
1975
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1976
+ execute_or_queue_command(command, &block)
1977
+ end
1978
+
1979
+ # Returns all questions for a given catalog.
1980
+ # @param [String] parent
1981
+ # Required. Resource name of the parent catalog. Format: projects/`project`/
1982
+ # locations/`location`/catalogs/`catalog`
1983
+ # @param [String] fields
1984
+ # Selector specifying which fields to include in a partial response.
1985
+ # @param [String] quota_user
1986
+ # Available to use for quota purposes for server-side applications. Can be any
1987
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1988
+ # @param [Google::Apis::RequestOptions] options
1989
+ # Request-specific options
1990
+ #
1991
+ # @yield [result, err] Result & error if block supplied
1992
+ # @yieldparam result [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaListGenerativeQuestionConfigsResponse] parsed result object
1993
+ # @yieldparam err [StandardError] error object if request failed
1994
+ #
1995
+ # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaListGenerativeQuestionConfigsResponse]
1996
+ #
1997
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1998
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1999
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2000
+ def list_project_location_catalog_generative_questions(parent, fields: nil, quota_user: nil, options: nil, &block)
2001
+ command = make_simple_command(:get, 'v2alpha/{+parent}/generativeQuestions', options)
2002
+ command.response_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaListGenerativeQuestionConfigsResponse::Representation
2003
+ command.response_class = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaListGenerativeQuestionConfigsResponse
2004
+ command.params['parent'] = parent unless parent.nil?
2005
+ command.query['fields'] = fields unless fields.nil?
2006
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2007
+ execute_or_queue_command(command, &block)
2008
+ end
2009
+
1799
2010
  # Creates a MerchantCenterAccountLink.
1800
2011
  # @param [String] parent
1801
2012
  # Required. The branch resource where this MerchantCenterAccountLink will be
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-retail_v2alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.104.0
4
+ version: 0.105.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-07-25 00:00:00.000000000 Z
11
+ date: 2024-12-04 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_v2alpha/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2alpha/v0.104.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2alpha/v0.105.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2alpha
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.5.6
78
+ rubygems_version: 3.5.22
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Vertex AI Search for Retail API V2alpha