google-apis-discoveryengine_v1 0.44.0 → 0.45.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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/discoveryengine_v1/classes.rb +1193 -75
- data/lib/google/apis/discoveryengine_v1/gem_version.rb +2 -2
- data/lib/google/apis/discoveryengine_v1/representations.rb +519 -0
- data/lib/google/apis/discoveryengine_v1/service.rb +149 -3
- data/lib/google/apis/discoveryengine_v1.rb +3 -0
- metadata +2 -2
@@ -1153,6 +1153,42 @@ module Google
|
|
1153
1153
|
execute_or_queue_command(command, &block)
|
1154
1154
|
end
|
1155
1155
|
|
1156
|
+
# Completes the user input with advanced keyword suggestions.
|
1157
|
+
# @param [String] completion_config
|
1158
|
+
# Required. The completion_config of the parent dataStore or engine resource
|
1159
|
+
# name for which the completion is performed, such as `projects/*/locations/
|
1160
|
+
# global/collections/default_collection/dataStores/*/completionConfig` `projects/
|
1161
|
+
# */locations/global/collections/default_collection/engines/*/completionConfig`.
|
1162
|
+
# @param [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AdvancedCompleteQueryRequest] google_cloud_discoveryengine_v1_advanced_complete_query_request_object
|
1163
|
+
# @param [String] fields
|
1164
|
+
# Selector specifying which fields to include in a partial response.
|
1165
|
+
# @param [String] quota_user
|
1166
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1167
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1168
|
+
# @param [Google::Apis::RequestOptions] options
|
1169
|
+
# Request-specific options
|
1170
|
+
#
|
1171
|
+
# @yield [result, err] Result & error if block supplied
|
1172
|
+
# @yieldparam result [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AdvancedCompleteQueryResponse] parsed result object
|
1173
|
+
# @yieldparam err [StandardError] error object if request failed
|
1174
|
+
#
|
1175
|
+
# @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AdvancedCompleteQueryResponse]
|
1176
|
+
#
|
1177
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1178
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1179
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1180
|
+
def complete_project_location_collection_data_store_completion_config_query(completion_config, google_cloud_discoveryengine_v1_advanced_complete_query_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1181
|
+
command = make_simple_command(:post, 'v1/{+completionConfig}:completeQuery', options)
|
1182
|
+
command.request_representation = Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AdvancedCompleteQueryRequest::Representation
|
1183
|
+
command.request_object = google_cloud_discoveryengine_v1_advanced_complete_query_request_object
|
1184
|
+
command.response_representation = Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AdvancedCompleteQueryResponse::Representation
|
1185
|
+
command.response_class = Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AdvancedCompleteQueryResponse
|
1186
|
+
command.params['completionConfig'] = completion_config unless completion_config.nil?
|
1187
|
+
command.query['fields'] = fields unless fields.nil?
|
1188
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1189
|
+
execute_or_queue_command(command, &block)
|
1190
|
+
end
|
1191
|
+
|
1156
1192
|
# Imports CompletionSuggestions for a DataStore.
|
1157
1193
|
# @param [String] parent
|
1158
1194
|
# Required. The parent data store resource name for which to import customer
|
@@ -2426,7 +2462,8 @@ module Google
|
|
2426
2462
|
# location`/collections/`collection`/dataStores/`data_store_id``
|
2427
2463
|
# @param [String] filter
|
2428
2464
|
# A filter to apply on the list results. The supported features are:
|
2429
|
-
# user_pseudo_id, state.
|
2465
|
+
# user_pseudo_id, state, starred. Examples: "user_pseudo_id = some_id" "starred =
|
2466
|
+
# true"
|
2430
2467
|
# @param [String] order_by
|
2431
2468
|
# A comma-separated list of fields to order by, sorted in ascending order. Use "
|
2432
2469
|
# desc" after a field name for descending. Supported fields: * `update_time` * `
|
@@ -3617,6 +3654,77 @@ module Google
|
|
3617
3654
|
execute_or_queue_command(command, &block)
|
3618
3655
|
end
|
3619
3656
|
|
3657
|
+
# Assists the user with a query in a streaming fashion.
|
3658
|
+
# @param [String] name
|
3659
|
+
# Required. The resource name of the Assistant. Format: `projects/`project`/
|
3660
|
+
# locations/`location`/collections/`collection`/engines/`engine`/assistants/`
|
3661
|
+
# assistant``
|
3662
|
+
# @param [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1StreamAssistRequest] google_cloud_discoveryengine_v1_stream_assist_request_object
|
3663
|
+
# @param [String] fields
|
3664
|
+
# Selector specifying which fields to include in a partial response.
|
3665
|
+
# @param [String] quota_user
|
3666
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3667
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3668
|
+
# @param [Google::Apis::RequestOptions] options
|
3669
|
+
# Request-specific options
|
3670
|
+
#
|
3671
|
+
# @yield [result, err] Result & error if block supplied
|
3672
|
+
# @yieldparam result [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1StreamAssistResponse] parsed result object
|
3673
|
+
# @yieldparam err [StandardError] error object if request failed
|
3674
|
+
#
|
3675
|
+
# @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1StreamAssistResponse]
|
3676
|
+
#
|
3677
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3678
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3679
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3680
|
+
def stream_project_location_collection_engine_assistant_assist(name, google_cloud_discoveryengine_v1_stream_assist_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3681
|
+
command = make_simple_command(:post, 'v1/{+name}:streamAssist', options)
|
3682
|
+
command.request_representation = Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1StreamAssistRequest::Representation
|
3683
|
+
command.request_object = google_cloud_discoveryengine_v1_stream_assist_request_object
|
3684
|
+
command.response_representation = Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1StreamAssistResponse::Representation
|
3685
|
+
command.response_class = Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1StreamAssistResponse
|
3686
|
+
command.params['name'] = name unless name.nil?
|
3687
|
+
command.query['fields'] = fields unless fields.nil?
|
3688
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3689
|
+
execute_or_queue_command(command, &block)
|
3690
|
+
end
|
3691
|
+
|
3692
|
+
# Completes the user input with advanced keyword suggestions.
|
3693
|
+
# @param [String] completion_config
|
3694
|
+
# Required. The completion_config of the parent dataStore or engine resource
|
3695
|
+
# name for which the completion is performed, such as `projects/*/locations/
|
3696
|
+
# global/collections/default_collection/dataStores/*/completionConfig` `projects/
|
3697
|
+
# */locations/global/collections/default_collection/engines/*/completionConfig`.
|
3698
|
+
# @param [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AdvancedCompleteQueryRequest] google_cloud_discoveryengine_v1_advanced_complete_query_request_object
|
3699
|
+
# @param [String] fields
|
3700
|
+
# Selector specifying which fields to include in a partial response.
|
3701
|
+
# @param [String] quota_user
|
3702
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3703
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3704
|
+
# @param [Google::Apis::RequestOptions] options
|
3705
|
+
# Request-specific options
|
3706
|
+
#
|
3707
|
+
# @yield [result, err] Result & error if block supplied
|
3708
|
+
# @yieldparam result [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AdvancedCompleteQueryResponse] parsed result object
|
3709
|
+
# @yieldparam err [StandardError] error object if request failed
|
3710
|
+
#
|
3711
|
+
# @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AdvancedCompleteQueryResponse]
|
3712
|
+
#
|
3713
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3714
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3715
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3716
|
+
def complete_project_location_collection_engine_completion_config_query(completion_config, google_cloud_discoveryengine_v1_advanced_complete_query_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3717
|
+
command = make_simple_command(:post, 'v1/{+completionConfig}:completeQuery', options)
|
3718
|
+
command.request_representation = Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AdvancedCompleteQueryRequest::Representation
|
3719
|
+
command.request_object = google_cloud_discoveryengine_v1_advanced_complete_query_request_object
|
3720
|
+
command.response_representation = Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AdvancedCompleteQueryResponse::Representation
|
3721
|
+
command.response_class = Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AdvancedCompleteQueryResponse
|
3722
|
+
command.params['completionConfig'] = completion_config unless completion_config.nil?
|
3723
|
+
command.query['fields'] = fields unless fields.nil?
|
3724
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3725
|
+
execute_or_queue_command(command, &block)
|
3726
|
+
end
|
3727
|
+
|
3620
3728
|
# Creates a Control. By default 1000 controls are allowed for a data store. A
|
3621
3729
|
# request can be submitted to adjust this limit. If the Control to create
|
3622
3730
|
# already exists, an ALREADY_EXISTS error is returned.
|
@@ -4500,7 +4608,8 @@ module Google
|
|
4500
4608
|
# location`/collections/`collection`/dataStores/`data_store_id``
|
4501
4609
|
# @param [String] filter
|
4502
4610
|
# A filter to apply on the list results. The supported features are:
|
4503
|
-
# user_pseudo_id, state.
|
4611
|
+
# user_pseudo_id, state, starred. Examples: "user_pseudo_id = some_id" "starred =
|
4612
|
+
# true"
|
4504
4613
|
# @param [String] order_by
|
4505
4614
|
# A comma-separated list of fields to order by, sorted in ascending order. Use "
|
4506
4615
|
# desc" after a field name for descending. Supported fields: * `update_time` * `
|
@@ -5434,6 +5543,42 @@ module Google
|
|
5434
5543
|
execute_or_queue_command(command, &block)
|
5435
5544
|
end
|
5436
5545
|
|
5546
|
+
# Completes the user input with advanced keyword suggestions.
|
5547
|
+
# @param [String] completion_config
|
5548
|
+
# Required. The completion_config of the parent dataStore or engine resource
|
5549
|
+
# name for which the completion is performed, such as `projects/*/locations/
|
5550
|
+
# global/collections/default_collection/dataStores/*/completionConfig` `projects/
|
5551
|
+
# */locations/global/collections/default_collection/engines/*/completionConfig`.
|
5552
|
+
# @param [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AdvancedCompleteQueryRequest] google_cloud_discoveryengine_v1_advanced_complete_query_request_object
|
5553
|
+
# @param [String] fields
|
5554
|
+
# Selector specifying which fields to include in a partial response.
|
5555
|
+
# @param [String] quota_user
|
5556
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5557
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5558
|
+
# @param [Google::Apis::RequestOptions] options
|
5559
|
+
# Request-specific options
|
5560
|
+
#
|
5561
|
+
# @yield [result, err] Result & error if block supplied
|
5562
|
+
# @yieldparam result [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AdvancedCompleteQueryResponse] parsed result object
|
5563
|
+
# @yieldparam err [StandardError] error object if request failed
|
5564
|
+
#
|
5565
|
+
# @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AdvancedCompleteQueryResponse]
|
5566
|
+
#
|
5567
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5568
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5569
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5570
|
+
def complete_project_location_data_store_completion_config_query(completion_config, google_cloud_discoveryengine_v1_advanced_complete_query_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
5571
|
+
command = make_simple_command(:post, 'v1/{+completionConfig}:completeQuery', options)
|
5572
|
+
command.request_representation = Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AdvancedCompleteQueryRequest::Representation
|
5573
|
+
command.request_object = google_cloud_discoveryengine_v1_advanced_complete_query_request_object
|
5574
|
+
command.response_representation = Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AdvancedCompleteQueryResponse::Representation
|
5575
|
+
command.response_class = Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AdvancedCompleteQueryResponse
|
5576
|
+
command.params['completionConfig'] = completion_config unless completion_config.nil?
|
5577
|
+
command.query['fields'] = fields unless fields.nil?
|
5578
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5579
|
+
execute_or_queue_command(command, &block)
|
5580
|
+
end
|
5581
|
+
|
5437
5582
|
# Imports CompletionSuggestions for a DataStore.
|
5438
5583
|
# @param [String] parent
|
5439
5584
|
# Required. The parent data store resource name for which to import customer
|
@@ -6604,7 +6749,8 @@ module Google
|
|
6604
6749
|
# location`/collections/`collection`/dataStores/`data_store_id``
|
6605
6750
|
# @param [String] filter
|
6606
6751
|
# A filter to apply on the list results. The supported features are:
|
6607
|
-
# user_pseudo_id, state.
|
6752
|
+
# user_pseudo_id, state, starred. Examples: "user_pseudo_id = some_id" "starred =
|
6753
|
+
# true"
|
6608
6754
|
# @param [String] order_by
|
6609
6755
|
# A comma-separated list of fields to order by, sorted in ascending order. Use "
|
6610
6756
|
# desc" after a field name for descending. Supported fields: * `update_time` * `
|
@@ -31,6 +31,9 @@ module Google
|
|
31
31
|
|
32
32
|
# See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
|
33
33
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
34
|
+
|
35
|
+
# Search your organization's data in the Cloud Search index
|
36
|
+
AUTH_CLOUD_SEARCH_QUERY = 'https://www.googleapis.com/auth/cloud_search.query'
|
34
37
|
end
|
35
38
|
end
|
36
39
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-discoveryengine_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.45.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
@@ -57,7 +57,7 @@ licenses:
|
|
57
57
|
metadata:
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-discoveryengine_v1/CHANGELOG.md
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-discoveryengine_v1/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-discoveryengine_v1/v0.45.0
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-discoveryengine_v1
|
62
62
|
rdoc_options: []
|
63
63
|
require_paths:
|