google-apis-discoveryengine_v1alpha 0.31.0 → 0.32.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -32,6 +32,8 @@ module Google
32
32
  #
33
33
  # @see https://cloud.google.com/discovery-engine/docs
34
34
  class DiscoveryEngineService < Google::Apis::Core::BaseService
35
+ DEFAULT_ENDPOINT_TEMPLATE = "https://discoveryengine.$UNIVERSE_DOMAIN$/"
36
+
35
37
  # @return [String]
36
38
  # API key. Your API key identifies your project and provides you with API access,
37
39
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
@@ -43,7 +45,7 @@ module Google
43
45
  attr_accessor :quota_user
44
46
 
45
47
  def initialize
46
- super('https://discoveryengine.googleapis.com/', '',
48
+ super(DEFAULT_ENDPOINT_TEMPLATE, '',
47
49
  client_name: 'google-apis-discoveryengine_v1alpha',
48
50
  client_version: Google::Apis::DiscoveryengineV1alpha::GEM_VERSION)
49
51
  @batch_path = 'batch'
@@ -308,10 +310,11 @@ module Google
308
310
  # Required. The typeahead input used to fetch suggestions. Maximum length is 128
309
311
  # characters.
310
312
  # @param [String] query_model
311
- # Selects data model of query suggestions for serving. Currently supported
312
- # values: * `document` - Using suggestions generated from user-imported
313
- # documents. * `search-history` - Using suggestions generated from the past
314
- # history of SearchService.Search API calls. Do not use it when there is no
313
+ # Specifies the autocomplete data model. This overrides any model specified in
314
+ # the Configuration > Autocomplete section of the Cloud console. Currently
315
+ # supported values: * `document` - Using suggestions generated from user-
316
+ # imported documents. * `search-history` - Using suggestions generated from the
317
+ # past history of SearchService.Search API calls. Do not use it when there is no
315
318
  # traffic for Search API. * `user-event` - Using suggestions generated from user-
316
319
  # imported search events. * `document-completable` - Using suggestions taken
317
320
  # directly from user-imported document fields marked as completable. Default
@@ -543,7 +546,7 @@ module Google
543
546
  # @param [String] parent
544
547
  # Required. The parent branch resource name, such as `projects/`project`/
545
548
  # locations/`location`/collections/`collection_id``. If the caller does not have
546
- # permission to list DataStoress under this location, regardless of whether or
549
+ # permission to list DataStores under this location, regardless of whether or
547
550
  # not this data store exists, a PERMISSION_DENIED error is returned.
548
551
  # @param [String] filter
549
552
  # Filter by solution type. For example: filter = 'solution_type:
@@ -1247,7 +1250,7 @@ module Google
1247
1250
  # @param [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaConversation] google_cloud_discoveryengine_v1alpha_conversation_object
1248
1251
  # @param [String] update_mask
1249
1252
  # Indicates which fields in the provided Conversation to update. The following
1250
- # are NOT supported: * conversation.name If not set or empty, all supported
1253
+ # are NOT supported: * Conversation.name If not set or empty, all supported
1251
1254
  # fields are updated.
1252
1255
  # @param [String] fields
1253
1256
  # Selector specifying which fields to include in a partial response.
@@ -1688,7 +1691,7 @@ module Google
1688
1691
  # used as the ID of the default serving config. For example, for Engine `
1689
1692
  # projects/*/locations/global/collections/*/engines/my-engine`, you can use `
1690
1693
  # projects/*/locations/global/collections/*/engines/my-engine/servingConfigs/my-
1691
- # engine` for your Recommend requests.
1694
+ # engine` for your RecommendationService.Recommend requests.
1692
1695
  # @param [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRecommendRequest] google_cloud_discoveryengine_v1alpha_recommend_request_object
1693
1696
  # @param [String] fields
1694
1697
  # Selector specifying which fields to include in a partial response.
@@ -2304,6 +2307,74 @@ module Google
2304
2307
  execute_or_queue_command(command, &block)
2305
2308
  end
2306
2309
 
2310
+ # Imports all SuggestionDenyListEntry for a DataStore.
2311
+ # @param [String] parent
2312
+ # Required. The parent data store resource name for which to import denylist
2313
+ # entries. Follows pattern projects/*/locations/*/collections/*/dataStores/*.
2314
+ # @param [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesRequest] google_cloud_discoveryengine_v1alpha_import_suggestion_deny_list_entries_request_object
2315
+ # @param [String] fields
2316
+ # Selector specifying which fields to include in a partial response.
2317
+ # @param [String] quota_user
2318
+ # Available to use for quota purposes for server-side applications. Can be any
2319
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2320
+ # @param [Google::Apis::RequestOptions] options
2321
+ # Request-specific options
2322
+ #
2323
+ # @yield [result, err] Result & error if block supplied
2324
+ # @yieldparam result [Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation] parsed result object
2325
+ # @yieldparam err [StandardError] error object if request failed
2326
+ #
2327
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation]
2328
+ #
2329
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2330
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2331
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2332
+ def import_project_location_collection_data_store_suggestion_deny_list_entry(parent, google_cloud_discoveryengine_v1alpha_import_suggestion_deny_list_entries_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2333
+ command = make_simple_command(:post, 'v1alpha/{+parent}/suggestionDenyListEntries:import', options)
2334
+ command.request_representation = Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesRequest::Representation
2335
+ command.request_object = google_cloud_discoveryengine_v1alpha_import_suggestion_deny_list_entries_request_object
2336
+ command.response_representation = Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation::Representation
2337
+ command.response_class = Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation
2338
+ command.params['parent'] = parent unless parent.nil?
2339
+ command.query['fields'] = fields unless fields.nil?
2340
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2341
+ execute_or_queue_command(command, &block)
2342
+ end
2343
+
2344
+ # Permanently deletes all SuggestionDenyListEntry for a DataStore.
2345
+ # @param [String] parent
2346
+ # Required. The parent data store resource name for which to import denylist
2347
+ # entries. Follows pattern projects/*/locations/*/collections/*/dataStores/*.
2348
+ # @param [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesRequest] google_cloud_discoveryengine_v1alpha_purge_suggestion_deny_list_entries_request_object
2349
+ # @param [String] fields
2350
+ # Selector specifying which fields to include in a partial response.
2351
+ # @param [String] quota_user
2352
+ # Available to use for quota purposes for server-side applications. Can be any
2353
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2354
+ # @param [Google::Apis::RequestOptions] options
2355
+ # Request-specific options
2356
+ #
2357
+ # @yield [result, err] Result & error if block supplied
2358
+ # @yieldparam result [Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation] parsed result object
2359
+ # @yieldparam err [StandardError] error object if request failed
2360
+ #
2361
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation]
2362
+ #
2363
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2364
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2365
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2366
+ def purge_project_location_collection_data_store_suggestion_deny_list_entry(parent, google_cloud_discoveryengine_v1alpha_purge_suggestion_deny_list_entries_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2367
+ command = make_simple_command(:post, 'v1alpha/{+parent}/suggestionDenyListEntries:purge', options)
2368
+ command.request_representation = Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesRequest::Representation
2369
+ command.request_object = google_cloud_discoveryengine_v1alpha_purge_suggestion_deny_list_entries_request_object
2370
+ command.response_representation = Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation::Representation
2371
+ command.response_class = Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation
2372
+ command.params['parent'] = parent unless parent.nil?
2373
+ command.query['fields'] = fields unless fields.nil?
2374
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2375
+ execute_or_queue_command(command, &block)
2376
+ end
2377
+
2307
2378
  # Writes a single user event from the browser. This uses a GET request to due to
2308
2379
  # browser restriction of POST-ing to a third-party domain. This method is used
2309
2380
  # only by the Discovery Engine API JavaScript pixel and Google Tag Manager.
@@ -2649,7 +2720,7 @@ module Google
2649
2720
  execute_or_queue_command(command, &block)
2650
2721
  end
2651
2722
 
2652
- # Pauses the training of an existing engine. Only applicable if solution_type is
2723
+ # Pauses the training of an existing engine. Only applicable if SolutionType is
2653
2724
  # SOLUTION_TYPE_RECOMMENDATION.
2654
2725
  # @param [String] name
2655
2726
  # Required. The name of the engine to pause. Format: `projects/`project_number`/
@@ -2684,8 +2755,8 @@ module Google
2684
2755
  execute_or_queue_command(command, &block)
2685
2756
  end
2686
2757
 
2687
- # Resumes the training of an existing engine. Only applicable if solution_type
2688
- # is SOLUTION_TYPE_RECOMMENDATION.
2758
+ # Resumes the training of an existing engine. Only applicable if SolutionType is
2759
+ # SOLUTION_TYPE_RECOMMENDATION.
2689
2760
  # @param [String] name
2690
2761
  # Required. The name of the engine to resume. Format: `projects/`project_number`/
2691
2762
  # locations/`location_id`/collections/`collection_id`/engines/`engine_id``
@@ -2719,7 +2790,7 @@ module Google
2719
2790
  execute_or_queue_command(command, &block)
2720
2791
  end
2721
2792
 
2722
- # Tunes an existing engine. Only applicable if solution_type is
2793
+ # Tunes an existing engine. Only applicable if SolutionType is
2723
2794
  # SOLUTION_TYPE_RECOMMENDATION.
2724
2795
  # @param [String] name
2725
2796
  # Required. The resource name of the engine to tune. Format: `projects/`
@@ -2951,7 +3022,7 @@ module Google
2951
3022
  # @param [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaConversation] google_cloud_discoveryengine_v1alpha_conversation_object
2952
3023
  # @param [String] update_mask
2953
3024
  # Indicates which fields in the provided Conversation to update. The following
2954
- # are NOT supported: * conversation.name If not set or empty, all supported
3025
+ # are NOT supported: * Conversation.name If not set or empty, all supported
2955
3026
  # fields are updated.
2956
3027
  # @param [String] fields
2957
3028
  # Selector specifying which fields to include in a partial response.
@@ -3063,7 +3134,7 @@ module Google
3063
3134
  # used as the ID of the default serving config. For example, for Engine `
3064
3135
  # projects/*/locations/global/collections/*/engines/my-engine`, you can use `
3065
3136
  # projects/*/locations/global/collections/*/engines/my-engine/servingConfigs/my-
3066
- # engine` for your Recommend requests.
3137
+ # engine` for your RecommendationService.Recommend requests.
3067
3138
  # @param [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRecommendRequest] google_cloud_discoveryengine_v1alpha_recommend_request_object
3068
3139
  # @param [String] fields
3069
3140
  # Selector specifying which fields to include in a partial response.
@@ -3216,10 +3287,11 @@ module Google
3216
3287
  # Required. The typeahead input used to fetch suggestions. Maximum length is 128
3217
3288
  # characters.
3218
3289
  # @param [String] query_model
3219
- # Selects data model of query suggestions for serving. Currently supported
3220
- # values: * `document` - Using suggestions generated from user-imported
3221
- # documents. * `search-history` - Using suggestions generated from the past
3222
- # history of SearchService.Search API calls. Do not use it when there is no
3290
+ # Specifies the autocomplete data model. This overrides any model specified in
3291
+ # the Configuration > Autocomplete section of the Cloud console. Currently
3292
+ # supported values: * `document` - Using suggestions generated from user-
3293
+ # imported documents. * `search-history` - Using suggestions generated from the
3294
+ # past history of SearchService.Search API calls. Do not use it when there is no
3223
3295
  # traffic for Search API. * `user-event` - Using suggestions generated from user-
3224
3296
  # imported search events. * `document-completable` - Using suggestions taken
3225
3297
  # directly from user-imported document fields marked as completable. Default
@@ -3451,7 +3523,7 @@ module Google
3451
3523
  # @param [String] parent
3452
3524
  # Required. The parent branch resource name, such as `projects/`project`/
3453
3525
  # locations/`location`/collections/`collection_id``. If the caller does not have
3454
- # permission to list DataStoress under this location, regardless of whether or
3526
+ # permission to list DataStores under this location, regardless of whether or
3455
3527
  # not this data store exists, a PERMISSION_DENIED error is returned.
3456
3528
  # @param [String] filter
3457
3529
  # Filter by solution type. For example: filter = 'solution_type:
@@ -4120,7 +4192,7 @@ module Google
4120
4192
  # @param [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaConversation] google_cloud_discoveryengine_v1alpha_conversation_object
4121
4193
  # @param [String] update_mask
4122
4194
  # Indicates which fields in the provided Conversation to update. The following
4123
- # are NOT supported: * conversation.name If not set or empty, all supported
4195
+ # are NOT supported: * Conversation.name If not set or empty, all supported
4124
4196
  # fields are updated.
4125
4197
  # @param [String] fields
4126
4198
  # Selector specifying which fields to include in a partial response.
@@ -4490,7 +4562,7 @@ module Google
4490
4562
  # used as the ID of the default serving config. For example, for Engine `
4491
4563
  # projects/*/locations/global/collections/*/engines/my-engine`, you can use `
4492
4564
  # projects/*/locations/global/collections/*/engines/my-engine/servingConfigs/my-
4493
- # engine` for your Recommend requests.
4565
+ # engine` for your RecommendationService.Recommend requests.
4494
4566
  # @param [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRecommendRequest] google_cloud_discoveryengine_v1alpha_recommend_request_object
4495
4567
  # @param [String] fields
4496
4568
  # Selector specifying which fields to include in a partial response.
@@ -4883,6 +4955,74 @@ module Google
4883
4955
  execute_or_queue_command(command, &block)
4884
4956
  end
4885
4957
 
4958
+ # Imports all SuggestionDenyListEntry for a DataStore.
4959
+ # @param [String] parent
4960
+ # Required. The parent data store resource name for which to import denylist
4961
+ # entries. Follows pattern projects/*/locations/*/collections/*/dataStores/*.
4962
+ # @param [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesRequest] google_cloud_discoveryengine_v1alpha_import_suggestion_deny_list_entries_request_object
4963
+ # @param [String] fields
4964
+ # Selector specifying which fields to include in a partial response.
4965
+ # @param [String] quota_user
4966
+ # Available to use for quota purposes for server-side applications. Can be any
4967
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4968
+ # @param [Google::Apis::RequestOptions] options
4969
+ # Request-specific options
4970
+ #
4971
+ # @yield [result, err] Result & error if block supplied
4972
+ # @yieldparam result [Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation] parsed result object
4973
+ # @yieldparam err [StandardError] error object if request failed
4974
+ #
4975
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation]
4976
+ #
4977
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4978
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4979
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4980
+ def import_project_location_data_store_suggestion_deny_list_entry(parent, google_cloud_discoveryengine_v1alpha_import_suggestion_deny_list_entries_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4981
+ command = make_simple_command(:post, 'v1alpha/{+parent}/suggestionDenyListEntries:import', options)
4982
+ command.request_representation = Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesRequest::Representation
4983
+ command.request_object = google_cloud_discoveryengine_v1alpha_import_suggestion_deny_list_entries_request_object
4984
+ command.response_representation = Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation::Representation
4985
+ command.response_class = Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation
4986
+ command.params['parent'] = parent unless parent.nil?
4987
+ command.query['fields'] = fields unless fields.nil?
4988
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4989
+ execute_or_queue_command(command, &block)
4990
+ end
4991
+
4992
+ # Permanently deletes all SuggestionDenyListEntry for a DataStore.
4993
+ # @param [String] parent
4994
+ # Required. The parent data store resource name for which to import denylist
4995
+ # entries. Follows pattern projects/*/locations/*/collections/*/dataStores/*.
4996
+ # @param [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesRequest] google_cloud_discoveryengine_v1alpha_purge_suggestion_deny_list_entries_request_object
4997
+ # @param [String] fields
4998
+ # Selector specifying which fields to include in a partial response.
4999
+ # @param [String] quota_user
5000
+ # Available to use for quota purposes for server-side applications. Can be any
5001
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5002
+ # @param [Google::Apis::RequestOptions] options
5003
+ # Request-specific options
5004
+ #
5005
+ # @yield [result, err] Result & error if block supplied
5006
+ # @yieldparam result [Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation] parsed result object
5007
+ # @yieldparam err [StandardError] error object if request failed
5008
+ #
5009
+ # @return [Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation]
5010
+ #
5011
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5012
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5013
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5014
+ def purge_project_location_data_store_suggestion_deny_list_entry(parent, google_cloud_discoveryengine_v1alpha_purge_suggestion_deny_list_entries_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
5015
+ command = make_simple_command(:post, 'v1alpha/{+parent}/suggestionDenyListEntries:purge', options)
5016
+ command.request_representation = Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesRequest::Representation
5017
+ command.request_object = google_cloud_discoveryengine_v1alpha_purge_suggestion_deny_list_entries_request_object
5018
+ command.response_representation = Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation::Representation
5019
+ command.response_class = Google::Apis::DiscoveryengineV1alpha::GoogleLongrunningOperation
5020
+ command.params['parent'] = parent unless parent.nil?
5021
+ command.query['fields'] = fields unless fields.nil?
5022
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5023
+ execute_or_queue_command(command, &block)
5024
+ end
5025
+
4886
5026
  # Writes a single user event from the browser. This uses a GET request to due to
4887
5027
  # browser restriction of POST-ing to a third-party domain. This method is used
4888
5028
  # only by the Discovery Engine API JavaScript pixel and Google Tag Manager.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-discoveryengine_v1alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.31.0
4
+ version: 0.32.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: 2023-12-24 00:00:00.000000000 Z
11
+ date: 2024-01-23 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.11.0
19
+ version: 0.12.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.11.0
29
+ version: 0.12.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-discoveryengine_v1alpha/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-discoveryengine_v1alpha/v0.31.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-discoveryengine_v1alpha/v0.32.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-discoveryengine_v1alpha
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.4.19
78
+ rubygems_version: 3.5.3
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Discovery Engine API V1alpha