google-apis-aiplatform_v1beta1 0.22.0 → 0.23.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/aiplatform_v1beta1/classes.rb +3771 -207
- data/lib/google/apis/aiplatform_v1beta1/gem_version.rb +2 -2
- data/lib/google/apis/aiplatform_v1beta1/representations.rb +2087 -152
- data/lib/google/apis/aiplatform_v1beta1/service.rb +558 -0
- metadata +3 -3
@@ -52,6 +52,84 @@ module Google
|
|
52
52
|
@batch_path = 'batch'
|
53
53
|
end
|
54
54
|
|
55
|
+
# Upload a file into a RagCorpus.
|
56
|
+
# @param [String] parent
|
57
|
+
# Required. The name of the RagCorpus resource into which to upload the file.
|
58
|
+
# Format: `projects/`project`/locations/`location`/ragCorpora/`rag_corpus``
|
59
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UploadRagFileRequest] google_cloud_aiplatform_v1beta1_upload_rag_file_request_object
|
60
|
+
# @param [String] fields
|
61
|
+
# Selector specifying which fields to include in a partial response.
|
62
|
+
# @param [String] quota_user
|
63
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
64
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
65
|
+
# @param [IO, String] upload_source
|
66
|
+
# IO stream or filename containing content to upload
|
67
|
+
# @param [String] content_type
|
68
|
+
# Content type of the uploaded content.
|
69
|
+
# @param [Google::Apis::RequestOptions] options
|
70
|
+
# Request-specific options
|
71
|
+
#
|
72
|
+
# @yield [result, err] Result & error if block supplied
|
73
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UploadRagFileResponse] parsed result object
|
74
|
+
# @yieldparam err [StandardError] error object if request failed
|
75
|
+
#
|
76
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UploadRagFileResponse]
|
77
|
+
#
|
78
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
79
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
80
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
81
|
+
def upload_medium(parent, google_cloud_aiplatform_v1beta1_upload_rag_file_request_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
82
|
+
if upload_source.nil?
|
83
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/ragFiles:upload', options)
|
84
|
+
else
|
85
|
+
command = make_upload_command(:post, 'v1beta1/{+parent}/ragFiles:upload', options)
|
86
|
+
command.upload_source = upload_source
|
87
|
+
command.upload_content_type = content_type
|
88
|
+
end
|
89
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UploadRagFileRequest::Representation
|
90
|
+
command.request_object = google_cloud_aiplatform_v1beta1_upload_rag_file_request_object
|
91
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UploadRagFileResponse::Representation
|
92
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UploadRagFileResponse
|
93
|
+
command.params['parent'] = parent unless parent.nil?
|
94
|
+
command.query['fields'] = fields unless fields.nil?
|
95
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
96
|
+
execute_or_queue_command(command, &block)
|
97
|
+
end
|
98
|
+
|
99
|
+
# Evaluates instances based on a given metric.
|
100
|
+
# @param [String] location
|
101
|
+
# Required. The resource name of the Location to evaluate the instances. Format:
|
102
|
+
# `projects/`project`/locations/`location``
|
103
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluateInstancesRequest] google_cloud_aiplatform_v1beta1_evaluate_instances_request_object
|
104
|
+
# @param [String] fields
|
105
|
+
# Selector specifying which fields to include in a partial response.
|
106
|
+
# @param [String] quota_user
|
107
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
108
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
109
|
+
# @param [Google::Apis::RequestOptions] options
|
110
|
+
# Request-specific options
|
111
|
+
#
|
112
|
+
# @yield [result, err] Result & error if block supplied
|
113
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluateInstancesResponse] parsed result object
|
114
|
+
# @yieldparam err [StandardError] error object if request failed
|
115
|
+
#
|
116
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluateInstancesResponse]
|
117
|
+
#
|
118
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
119
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
120
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
121
|
+
def evaluate_project_location_instances(location, google_cloud_aiplatform_v1beta1_evaluate_instances_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
122
|
+
command = make_simple_command(:post, 'v1beta1/{+location}:evaluateInstances', options)
|
123
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluateInstancesRequest::Representation
|
124
|
+
command.request_object = google_cloud_aiplatform_v1beta1_evaluate_instances_request_object
|
125
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluateInstancesResponse::Representation
|
126
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluateInstancesResponse
|
127
|
+
command.params['location'] = location unless location.nil?
|
128
|
+
command.query['fields'] = fields unless fields.nil?
|
129
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
130
|
+
execute_or_queue_command(command, &block)
|
131
|
+
end
|
132
|
+
|
55
133
|
# Gets information about a location.
|
56
134
|
# @param [String] name
|
57
135
|
# Resource name for the location.
|
@@ -125,6 +203,41 @@ module Google
|
|
125
203
|
execute_or_queue_command(command, &block)
|
126
204
|
end
|
127
205
|
|
206
|
+
# Retrieves relevant contexts for a query.
|
207
|
+
# @param [String] parent
|
208
|
+
# Required. The resource name of the Location from which to retrieve RagContexts.
|
209
|
+
# The users must have permission to make a call in the project. Format: `
|
210
|
+
# projects/`project`/locations/`location``.
|
211
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveContextsRequest] google_cloud_aiplatform_v1beta1_retrieve_contexts_request_object
|
212
|
+
# @param [String] fields
|
213
|
+
# Selector specifying which fields to include in a partial response.
|
214
|
+
# @param [String] quota_user
|
215
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
216
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
217
|
+
# @param [Google::Apis::RequestOptions] options
|
218
|
+
# Request-specific options
|
219
|
+
#
|
220
|
+
# @yield [result, err] Result & error if block supplied
|
221
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveContextsResponse] parsed result object
|
222
|
+
# @yieldparam err [StandardError] error object if request failed
|
223
|
+
#
|
224
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveContextsResponse]
|
225
|
+
#
|
226
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
227
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
228
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
229
|
+
def retrieve_project_location_contexts(parent, google_cloud_aiplatform_v1beta1_retrieve_contexts_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
230
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}:retrieveContexts', options)
|
231
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveContextsRequest::Representation
|
232
|
+
command.request_object = google_cloud_aiplatform_v1beta1_retrieve_contexts_request_object
|
233
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveContextsResponse::Representation
|
234
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveContextsResponse
|
235
|
+
command.params['parent'] = parent unless parent.nil?
|
236
|
+
command.query['fields'] = fields unless fields.nil?
|
237
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
238
|
+
execute_or_queue_command(command, &block)
|
239
|
+
end
|
240
|
+
|
128
241
|
# Cancels a BatchPredictionJob. Starts asynchronous cancellation on the
|
129
242
|
# BatchPredictionJob. The server makes the best effort to cancel the job, but
|
130
243
|
# success is not guaranteed. Clients can use JobService.GetBatchPredictionJob or
|
@@ -16818,6 +16931,145 @@ module Google
|
|
16818
16931
|
execute_or_queue_command(command, &block)
|
16819
16932
|
end
|
16820
16933
|
|
16934
|
+
# Creates a RagCorpus.
|
16935
|
+
# @param [String] parent
|
16936
|
+
# Required. The resource name of the Location to create the RagCorpus in. Format:
|
16937
|
+
# `projects/`project`/locations/`location``
|
16938
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagCorpus] google_cloud_aiplatform_v1beta1_rag_corpus_object
|
16939
|
+
# @param [String] fields
|
16940
|
+
# Selector specifying which fields to include in a partial response.
|
16941
|
+
# @param [String] quota_user
|
16942
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
16943
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
16944
|
+
# @param [Google::Apis::RequestOptions] options
|
16945
|
+
# Request-specific options
|
16946
|
+
#
|
16947
|
+
# @yield [result, err] Result & error if block supplied
|
16948
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
16949
|
+
# @yieldparam err [StandardError] error object if request failed
|
16950
|
+
#
|
16951
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
16952
|
+
#
|
16953
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16954
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16955
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16956
|
+
def create_project_location_rag_corpora(parent, google_cloud_aiplatform_v1beta1_rag_corpus_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
16957
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/ragCorpora', options)
|
16958
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagCorpus::Representation
|
16959
|
+
command.request_object = google_cloud_aiplatform_v1beta1_rag_corpus_object
|
16960
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
16961
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
16962
|
+
command.params['parent'] = parent unless parent.nil?
|
16963
|
+
command.query['fields'] = fields unless fields.nil?
|
16964
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
16965
|
+
execute_or_queue_command(command, &block)
|
16966
|
+
end
|
16967
|
+
|
16968
|
+
# Deletes a RagCorpus.
|
16969
|
+
# @param [String] name
|
16970
|
+
# Required. The name of the RagCorpus resource to be deleted. Format: `projects/`
|
16971
|
+
# project`/locations/`location`/ragCorpora/`rag_corpus``
|
16972
|
+
# @param [Boolean] force
|
16973
|
+
# Optional. If set to true, any RagFiles in this RagCorpus will also be deleted.
|
16974
|
+
# Otherwise, the request will only work if the RagCorpus has no RagFiles.
|
16975
|
+
# @param [String] fields
|
16976
|
+
# Selector specifying which fields to include in a partial response.
|
16977
|
+
# @param [String] quota_user
|
16978
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
16979
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
16980
|
+
# @param [Google::Apis::RequestOptions] options
|
16981
|
+
# Request-specific options
|
16982
|
+
#
|
16983
|
+
# @yield [result, err] Result & error if block supplied
|
16984
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
16985
|
+
# @yieldparam err [StandardError] error object if request failed
|
16986
|
+
#
|
16987
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
16988
|
+
#
|
16989
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16990
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16991
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16992
|
+
def delete_project_location_rag_corpora(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
|
16993
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
16994
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
16995
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
16996
|
+
command.params['name'] = name unless name.nil?
|
16997
|
+
command.query['force'] = force unless force.nil?
|
16998
|
+
command.query['fields'] = fields unless fields.nil?
|
16999
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17000
|
+
execute_or_queue_command(command, &block)
|
17001
|
+
end
|
17002
|
+
|
17003
|
+
# Gets a RagCorpus.
|
17004
|
+
# @param [String] name
|
17005
|
+
# Required. The name of the RagCorpus resource. Format: `projects/`project`/
|
17006
|
+
# locations/`location`/ragCorpora/`rag_corpus``
|
17007
|
+
# @param [String] fields
|
17008
|
+
# Selector specifying which fields to include in a partial response.
|
17009
|
+
# @param [String] quota_user
|
17010
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17011
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17012
|
+
# @param [Google::Apis::RequestOptions] options
|
17013
|
+
# Request-specific options
|
17014
|
+
#
|
17015
|
+
# @yield [result, err] Result & error if block supplied
|
17016
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagCorpus] parsed result object
|
17017
|
+
# @yieldparam err [StandardError] error object if request failed
|
17018
|
+
#
|
17019
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagCorpus]
|
17020
|
+
#
|
17021
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17022
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17023
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17024
|
+
def get_project_location_rag_corpora(name, fields: nil, quota_user: nil, options: nil, &block)
|
17025
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
17026
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagCorpus::Representation
|
17027
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagCorpus
|
17028
|
+
command.params['name'] = name unless name.nil?
|
17029
|
+
command.query['fields'] = fields unless fields.nil?
|
17030
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17031
|
+
execute_or_queue_command(command, &block)
|
17032
|
+
end
|
17033
|
+
|
17034
|
+
# Lists RagCorpora in a Location.
|
17035
|
+
# @param [String] parent
|
17036
|
+
# Required. The resource name of the Location from which to list the RagCorpora.
|
17037
|
+
# Format: `projects/`project`/locations/`location``
|
17038
|
+
# @param [Fixnum] page_size
|
17039
|
+
# Optional. The standard list page size.
|
17040
|
+
# @param [String] page_token
|
17041
|
+
# Optional. The standard list page token. Typically obtained via
|
17042
|
+
# ListRagCorporaResponse.next_page_token of the previous VertexRagDataService.
|
17043
|
+
# ListRagCorpora call.
|
17044
|
+
# @param [String] fields
|
17045
|
+
# Selector specifying which fields to include in a partial response.
|
17046
|
+
# @param [String] quota_user
|
17047
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17048
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17049
|
+
# @param [Google::Apis::RequestOptions] options
|
17050
|
+
# Request-specific options
|
17051
|
+
#
|
17052
|
+
# @yield [result, err] Result & error if block supplied
|
17053
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListRagCorporaResponse] parsed result object
|
17054
|
+
# @yieldparam err [StandardError] error object if request failed
|
17055
|
+
#
|
17056
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListRagCorporaResponse]
|
17057
|
+
#
|
17058
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17059
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17060
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17061
|
+
def list_project_location_rag_corporas(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
17062
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/ragCorpora', options)
|
17063
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListRagCorporaResponse::Representation
|
17064
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListRagCorporaResponse
|
17065
|
+
command.params['parent'] = parent unless parent.nil?
|
17066
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
17067
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
17068
|
+
command.query['fields'] = fields unless fields.nil?
|
17069
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17070
|
+
execute_or_queue_command(command, &block)
|
17071
|
+
end
|
17072
|
+
|
16821
17073
|
# Starts asynchronous cancellation on a long-running operation. The server makes
|
16822
17074
|
# a best effort to cancel the operation, but success is not guaranteed. If the
|
16823
17075
|
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
@@ -17001,6 +17253,141 @@ module Google
|
|
17001
17253
|
execute_or_queue_command(command, &block)
|
17002
17254
|
end
|
17003
17255
|
|
17256
|
+
# Deletes a RagFile.
|
17257
|
+
# @param [String] name
|
17258
|
+
# Required. The name of the RagFile resource to be deleted. Format: `projects/`
|
17259
|
+
# project`/locations/`location`/ragCorpora/`rag_corpus`/ragFiles/`rag_file``
|
17260
|
+
# @param [String] fields
|
17261
|
+
# Selector specifying which fields to include in a partial response.
|
17262
|
+
# @param [String] quota_user
|
17263
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17264
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17265
|
+
# @param [Google::Apis::RequestOptions] options
|
17266
|
+
# Request-specific options
|
17267
|
+
#
|
17268
|
+
# @yield [result, err] Result & error if block supplied
|
17269
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
17270
|
+
# @yieldparam err [StandardError] error object if request failed
|
17271
|
+
#
|
17272
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
17273
|
+
#
|
17274
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17275
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17276
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17277
|
+
def delete_project_location_rag_corpora_rag_file(name, fields: nil, quota_user: nil, options: nil, &block)
|
17278
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
17279
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
17280
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
17281
|
+
command.params['name'] = name unless name.nil?
|
17282
|
+
command.query['fields'] = fields unless fields.nil?
|
17283
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17284
|
+
execute_or_queue_command(command, &block)
|
17285
|
+
end
|
17286
|
+
|
17287
|
+
# Gets a RagFile.
|
17288
|
+
# @param [String] name
|
17289
|
+
# Required. The name of the RagFile resource. Format: `projects/`project`/
|
17290
|
+
# locations/`location`/ragCorpora/`rag_corpus`/ragFiles/`rag_file``
|
17291
|
+
# @param [String] fields
|
17292
|
+
# Selector specifying which fields to include in a partial response.
|
17293
|
+
# @param [String] quota_user
|
17294
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17295
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17296
|
+
# @param [Google::Apis::RequestOptions] options
|
17297
|
+
# Request-specific options
|
17298
|
+
#
|
17299
|
+
# @yield [result, err] Result & error if block supplied
|
17300
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagFile] parsed result object
|
17301
|
+
# @yieldparam err [StandardError] error object if request failed
|
17302
|
+
#
|
17303
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagFile]
|
17304
|
+
#
|
17305
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17306
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17307
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17308
|
+
def get_project_location_rag_corpora_rag_file(name, fields: nil, quota_user: nil, options: nil, &block)
|
17309
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
17310
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagFile::Representation
|
17311
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagFile
|
17312
|
+
command.params['name'] = name unless name.nil?
|
17313
|
+
command.query['fields'] = fields unless fields.nil?
|
17314
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17315
|
+
execute_or_queue_command(command, &block)
|
17316
|
+
end
|
17317
|
+
|
17318
|
+
# Import files from Google Cloud Storage or Google Drive into a RagCorpus.
|
17319
|
+
# @param [String] parent
|
17320
|
+
# Required. The name of the RagCorpus resource into which to import files.
|
17321
|
+
# Format: `projects/`project`/locations/`location`/ragCorpora/`rag_corpus``
|
17322
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ImportRagFilesRequest] google_cloud_aiplatform_v1beta1_import_rag_files_request_object
|
17323
|
+
# @param [String] fields
|
17324
|
+
# Selector specifying which fields to include in a partial response.
|
17325
|
+
# @param [String] quota_user
|
17326
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17327
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17328
|
+
# @param [Google::Apis::RequestOptions] options
|
17329
|
+
# Request-specific options
|
17330
|
+
#
|
17331
|
+
# @yield [result, err] Result & error if block supplied
|
17332
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
17333
|
+
# @yieldparam err [StandardError] error object if request failed
|
17334
|
+
#
|
17335
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
17336
|
+
#
|
17337
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17338
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17339
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17340
|
+
def import_project_location_rag_corpora_rag_file(parent, google_cloud_aiplatform_v1beta1_import_rag_files_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
17341
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/ragFiles:import', options)
|
17342
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ImportRagFilesRequest::Representation
|
17343
|
+
command.request_object = google_cloud_aiplatform_v1beta1_import_rag_files_request_object
|
17344
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
17345
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
17346
|
+
command.params['parent'] = parent unless parent.nil?
|
17347
|
+
command.query['fields'] = fields unless fields.nil?
|
17348
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17349
|
+
execute_or_queue_command(command, &block)
|
17350
|
+
end
|
17351
|
+
|
17352
|
+
# Lists RagFiles in a RagCorpus.
|
17353
|
+
# @param [String] parent
|
17354
|
+
# Required. The resource name of the RagCorpus from which to list the RagFiles.
|
17355
|
+
# Format: `projects/`project`/locations/`location`/ragCorpora/`rag_corpus``
|
17356
|
+
# @param [Fixnum] page_size
|
17357
|
+
# Optional. The standard list page size.
|
17358
|
+
# @param [String] page_token
|
17359
|
+
# Optional. The standard list page token. Typically obtained via
|
17360
|
+
# ListRagFilesResponse.next_page_token of the previous VertexRagDataService.
|
17361
|
+
# ListRagFiles call.
|
17362
|
+
# @param [String] fields
|
17363
|
+
# Selector specifying which fields to include in a partial response.
|
17364
|
+
# @param [String] quota_user
|
17365
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17366
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17367
|
+
# @param [Google::Apis::RequestOptions] options
|
17368
|
+
# Request-specific options
|
17369
|
+
#
|
17370
|
+
# @yield [result, err] Result & error if block supplied
|
17371
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListRagFilesResponse] parsed result object
|
17372
|
+
# @yieldparam err [StandardError] error object if request failed
|
17373
|
+
#
|
17374
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListRagFilesResponse]
|
17375
|
+
#
|
17376
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17377
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17378
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17379
|
+
def list_project_location_rag_corpora_rag_files(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
17380
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/ragFiles', options)
|
17381
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListRagFilesResponse::Representation
|
17382
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListRagFilesResponse
|
17383
|
+
command.params['parent'] = parent unless parent.nil?
|
17384
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
17385
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
17386
|
+
command.query['fields'] = fields unless fields.nil?
|
17387
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17388
|
+
execute_or_queue_command(command, &block)
|
17389
|
+
end
|
17390
|
+
|
17004
17391
|
# Starts asynchronous cancellation on a long-running operation. The server makes
|
17005
17392
|
# a best effort to cancel the operation, but success is not guaranteed. If the
|
17006
17393
|
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
@@ -17184,6 +17571,177 @@ module Google
|
|
17184
17571
|
execute_or_queue_command(command, &block)
|
17185
17572
|
end
|
17186
17573
|
|
17574
|
+
# Creates a reasoning engine.
|
17575
|
+
# @param [String] parent
|
17576
|
+
# Required. The resource name of the Location to create the ReasoningEngine in.
|
17577
|
+
# Format: `projects/`project`/locations/`location``
|
17578
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngine] google_cloud_aiplatform_v1beta1_reasoning_engine_object
|
17579
|
+
# @param [String] fields
|
17580
|
+
# Selector specifying which fields to include in a partial response.
|
17581
|
+
# @param [String] quota_user
|
17582
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17583
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17584
|
+
# @param [Google::Apis::RequestOptions] options
|
17585
|
+
# Request-specific options
|
17586
|
+
#
|
17587
|
+
# @yield [result, err] Result & error if block supplied
|
17588
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
17589
|
+
# @yieldparam err [StandardError] error object if request failed
|
17590
|
+
#
|
17591
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
17592
|
+
#
|
17593
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17594
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17595
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17596
|
+
def create_project_location_reasoning_engine(parent, google_cloud_aiplatform_v1beta1_reasoning_engine_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
17597
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/reasoningEngines', options)
|
17598
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngine::Representation
|
17599
|
+
command.request_object = google_cloud_aiplatform_v1beta1_reasoning_engine_object
|
17600
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
17601
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
17602
|
+
command.params['parent'] = parent unless parent.nil?
|
17603
|
+
command.query['fields'] = fields unless fields.nil?
|
17604
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17605
|
+
execute_or_queue_command(command, &block)
|
17606
|
+
end
|
17607
|
+
|
17608
|
+
# Deletes a reasoning engine.
|
17609
|
+
# @param [String] name
|
17610
|
+
# Required. The name of the ReasoningEngine resource to be deleted. Format: `
|
17611
|
+
# projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine``
|
17612
|
+
# @param [String] fields
|
17613
|
+
# Selector specifying which fields to include in a partial response.
|
17614
|
+
# @param [String] quota_user
|
17615
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17616
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17617
|
+
# @param [Google::Apis::RequestOptions] options
|
17618
|
+
# Request-specific options
|
17619
|
+
#
|
17620
|
+
# @yield [result, err] Result & error if block supplied
|
17621
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
17622
|
+
# @yieldparam err [StandardError] error object if request failed
|
17623
|
+
#
|
17624
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
17625
|
+
#
|
17626
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17627
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17628
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17629
|
+
def delete_project_location_reasoning_engine(name, fields: nil, quota_user: nil, options: nil, &block)
|
17630
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
17631
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
17632
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
17633
|
+
command.params['name'] = name unless name.nil?
|
17634
|
+
command.query['fields'] = fields unless fields.nil?
|
17635
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17636
|
+
execute_or_queue_command(command, &block)
|
17637
|
+
end
|
17638
|
+
|
17639
|
+
# Gets a reasoning engine.
|
17640
|
+
# @param [String] name
|
17641
|
+
# Required. The name of the ReasoningEngine resource. Format: `projects/`project`
|
17642
|
+
# /locations/`location`/reasoningEngines/`reasoning_engine``
|
17643
|
+
# @param [String] fields
|
17644
|
+
# Selector specifying which fields to include in a partial response.
|
17645
|
+
# @param [String] quota_user
|
17646
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17647
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17648
|
+
# @param [Google::Apis::RequestOptions] options
|
17649
|
+
# Request-specific options
|
17650
|
+
#
|
17651
|
+
# @yield [result, err] Result & error if block supplied
|
17652
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngine] parsed result object
|
17653
|
+
# @yieldparam err [StandardError] error object if request failed
|
17654
|
+
#
|
17655
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngine]
|
17656
|
+
#
|
17657
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17658
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17659
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17660
|
+
def get_project_location_reasoning_engine(name, fields: nil, quota_user: nil, options: nil, &block)
|
17661
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
17662
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngine::Representation
|
17663
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngine
|
17664
|
+
command.params['name'] = name unless name.nil?
|
17665
|
+
command.query['fields'] = fields unless fields.nil?
|
17666
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17667
|
+
execute_or_queue_command(command, &block)
|
17668
|
+
end
|
17669
|
+
|
17670
|
+
# Lists reasoning engines in a location.
|
17671
|
+
# @param [String] parent
|
17672
|
+
# Required. The resource name of the Location to list the ReasoningEngines from.
|
17673
|
+
# Format: `projects/`project`/locations/`location``
|
17674
|
+
# @param [String] filter
|
17675
|
+
# Optional. The standard list filter. More detail in [AIP-160](https://google.
|
17676
|
+
# aip.dev/160).
|
17677
|
+
# @param [Fixnum] page_size
|
17678
|
+
# Optional. The standard list page size.
|
17679
|
+
# @param [String] page_token
|
17680
|
+
# Optional. The standard list page token.
|
17681
|
+
# @param [String] fields
|
17682
|
+
# Selector specifying which fields to include in a partial response.
|
17683
|
+
# @param [String] quota_user
|
17684
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17685
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17686
|
+
# @param [Google::Apis::RequestOptions] options
|
17687
|
+
# Request-specific options
|
17688
|
+
#
|
17689
|
+
# @yield [result, err] Result & error if block supplied
|
17690
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListReasoningEnginesResponse] parsed result object
|
17691
|
+
# @yieldparam err [StandardError] error object if request failed
|
17692
|
+
#
|
17693
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListReasoningEnginesResponse]
|
17694
|
+
#
|
17695
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17696
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17697
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17698
|
+
def list_project_location_reasoning_engines(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
17699
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/reasoningEngines', options)
|
17700
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListReasoningEnginesResponse::Representation
|
17701
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListReasoningEnginesResponse
|
17702
|
+
command.params['parent'] = parent unless parent.nil?
|
17703
|
+
command.query['filter'] = filter unless filter.nil?
|
17704
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
17705
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
17706
|
+
command.query['fields'] = fields unless fields.nil?
|
17707
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17708
|
+
execute_or_queue_command(command, &block)
|
17709
|
+
end
|
17710
|
+
|
17711
|
+
# Queries using a reasoning engine.
|
17712
|
+
# @param [String] name
|
17713
|
+
# Required. The name of the ReasoningEngine resource to use. Format: `projects/`
|
17714
|
+
# project`/locations/`location`/reasoningEngines/`reasoning_engine``
|
17715
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryReasoningEngineRequest] google_cloud_aiplatform_v1beta1_query_reasoning_engine_request_object
|
17716
|
+
# @param [String] fields
|
17717
|
+
# Selector specifying which fields to include in a partial response.
|
17718
|
+
# @param [String] quota_user
|
17719
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17720
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17721
|
+
# @param [Google::Apis::RequestOptions] options
|
17722
|
+
# Request-specific options
|
17723
|
+
#
|
17724
|
+
# @yield [result, err] Result & error if block supplied
|
17725
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryReasoningEngineResponse] parsed result object
|
17726
|
+
# @yieldparam err [StandardError] error object if request failed
|
17727
|
+
#
|
17728
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryReasoningEngineResponse]
|
17729
|
+
#
|
17730
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17731
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17732
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17733
|
+
def query_project_location_reasoning_engine(name, google_cloud_aiplatform_v1beta1_query_reasoning_engine_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
17734
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:query', options)
|
17735
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryReasoningEngineRequest::Representation
|
17736
|
+
command.request_object = google_cloud_aiplatform_v1beta1_query_reasoning_engine_request_object
|
17737
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryReasoningEngineResponse::Representation
|
17738
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryReasoningEngineResponse
|
17739
|
+
command.params['name'] = name unless name.nil?
|
17740
|
+
command.query['fields'] = fields unless fields.nil?
|
17741
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17742
|
+
execute_or_queue_command(command, &block)
|
17743
|
+
end
|
17744
|
+
|
17187
17745
|
# Starts asynchronous cancellation on a long-running operation. The server makes
|
17188
17746
|
# a best effort to cancel the operation, but success is not guaranteed. If the
|
17189
17747
|
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-aiplatform_v1beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.23.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-03-
|
11
|
+
date: 2024-03-31 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-aiplatform_v1beta1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-aiplatform_v1beta1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-aiplatform_v1beta1/v0.23.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-aiplatform_v1beta1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|