google-apis-aiplatform_v1beta1 0.23.0 → 0.24.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.
@@ -52,45 +52,65 @@ 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
55
+ # Gets a GenAI cache config.
56
+ # @param [String] name
57
+ # Required. Name of the cache config. Format: - `projects/`project`/cacheConfig`.
60
58
  # @param [String] fields
61
59
  # Selector specifying which fields to include in a partial response.
62
60
  # @param [String] quota_user
63
61
  # Available to use for quota purposes for server-side applications. Can be any
64
62
  # 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
63
  # @param [Google::Apis::RequestOptions] options
70
64
  # Request-specific options
71
65
  #
72
66
  # @yield [result, err] Result & error if block supplied
73
- # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UploadRagFileResponse] parsed result object
67
+ # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CacheConfig] parsed result object
74
68
  # @yieldparam err [StandardError] error object if request failed
75
69
  #
76
- # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UploadRagFileResponse]
70
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CacheConfig]
77
71
  #
78
72
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
79
73
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
80
74
  # @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?
75
+ def get_project_cache_config(name, fields: nil, quota_user: nil, options: nil, &block)
76
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
77
+ command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CacheConfig::Representation
78
+ command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CacheConfig
79
+ command.params['name'] = name unless name.nil?
80
+ command.query['fields'] = fields unless fields.nil?
81
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
82
+ execute_or_queue_command(command, &block)
83
+ end
84
+
85
+ # Updates a cache config.
86
+ # @param [String] name
87
+ # Identifier. Name of the cache config. Format: - `projects/`project`/
88
+ # cacheConfig`.
89
+ # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CacheConfig] google_cloud_aiplatform_v1beta1_cache_config_object
90
+ # @param [String] fields
91
+ # Selector specifying which fields to include in a partial response.
92
+ # @param [String] quota_user
93
+ # Available to use for quota purposes for server-side applications. Can be any
94
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
95
+ # @param [Google::Apis::RequestOptions] options
96
+ # Request-specific options
97
+ #
98
+ # @yield [result, err] Result & error if block supplied
99
+ # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
100
+ # @yieldparam err [StandardError] error object if request failed
101
+ #
102
+ # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
103
+ #
104
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
105
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
106
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
107
+ def update_project_cache_config(name, google_cloud_aiplatform_v1beta1_cache_config_object = nil, fields: nil, quota_user: nil, options: nil, &block)
108
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
109
+ command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CacheConfig::Representation
110
+ command.request_object = google_cloud_aiplatform_v1beta1_cache_config_object
111
+ command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
112
+ command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
113
+ command.params['name'] = name unless name.nil?
94
114
  command.query['fields'] = fields unless fields.nil?
95
115
  command.query['quotaUser'] = quota_user unless quota_user.nil?
96
116
  execute_or_queue_command(command, &block)
@@ -203,41 +223,6 @@ module Google
203
223
  execute_or_queue_command(command, &block)
204
224
  end
205
225
 
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
-
241
226
  # Cancels a BatchPredictionJob. Starts asynchronous cancellation on the
242
227
  # BatchPredictionJob. The server makes the best effort to cancel the job, but
243
228
  # success is not guaranteed. Clients can use JobService.GetBatchPredictionJob or
@@ -4147,6 +4132,40 @@ module Google
4147
4132
  execute_or_queue_command(command, &block)
4148
4133
  end
4149
4134
 
4135
+ # Exposes an OpenAI-compatible endpoint for chat completions.
4136
+ # @param [String] endpoint
4137
+ # Required. The name of the Endpoint requested to serve the prediction. Format: `
4138
+ # projects/`project`/locations/`location`/endpoints/openapi`
4139
+ # @param [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody] google_api_http_body_object
4140
+ # @param [String] fields
4141
+ # Selector specifying which fields to include in a partial response.
4142
+ # @param [String] quota_user
4143
+ # Available to use for quota purposes for server-side applications. Can be any
4144
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4145
+ # @param [Google::Apis::RequestOptions] options
4146
+ # Request-specific options
4147
+ #
4148
+ # @yield [result, err] Result & error if block supplied
4149
+ # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody] parsed result object
4150
+ # @yieldparam err [StandardError] error object if request failed
4151
+ #
4152
+ # @return [Google::Apis::AiplatformV1beta1::GoogleApiHttpBody]
4153
+ #
4154
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4155
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4156
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4157
+ def completions_project_location_endpoint_chat(endpoint, google_api_http_body_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4158
+ command = make_simple_command(:post, 'v1beta1/{+endpoint}/chat/completions', options)
4159
+ command.request_representation = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody::Representation
4160
+ command.request_object = google_api_http_body_object
4161
+ command.response_representation = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody::Representation
4162
+ command.response_class = Google::Apis::AiplatformV1beta1::GoogleApiHttpBody
4163
+ command.params['endpoint'] = endpoint unless endpoint.nil?
4164
+ command.query['fields'] = fields unless fields.nil?
4165
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4166
+ execute_or_queue_command(command, &block)
4167
+ end
4168
+
4150
4169
  # Starts asynchronous cancellation on a long-running operation. The server makes
4151
4170
  # a best effort to cancel the operation, but success is not guaranteed. If the
4152
4171
  # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
@@ -16931,145 +16950,6 @@ module Google
16931
16950
  execute_or_queue_command(command, &block)
16932
16951
  end
16933
16952
 
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
-
17073
16953
  # Starts asynchronous cancellation on a long-running operation. The server makes
17074
16954
  # a best effort to cancel the operation, but success is not guaranteed. If the
17075
16955
  # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
@@ -17253,141 +17133,6 @@ module Google
17253
17133
  execute_or_queue_command(command, &block)
17254
17134
  end
17255
17135
 
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
-
17391
17136
  # Starts asynchronous cancellation on a long-running operation. The server makes
17392
17137
  # a best effort to cancel the operation, but success is not guaranteed. If the
17393
17138
  # 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.23.0
4
+ version: 0.24.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-31 00:00:00.000000000 Z
11
+ date: 2024-04-07 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.23.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-aiplatform_v1beta1/v0.24.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: []