google-apis-aiplatform_v1beta1 0.21.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.
@@ -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
@@ -3659,12 +3772,12 @@ module Google
3659
3772
  # Format: `projects/`project`/locations/`location``
3660
3773
  # @param [String] filter
3661
3774
  # Optional. An expression for filtering the results of the request. For field
3662
- # names both snake_case and camelCase are supported. * `endpoint` supports = and
3663
- # !=. `endpoint` represents the Endpoint ID, i.e. the last segment of the
3664
- # Endpoint's resource name. * `display_name` supports = and, != * `labels`
3775
+ # names both snake_case and camelCase are supported. * `endpoint` supports `=`
3776
+ # and `!=`. `endpoint` represents the Endpoint ID, i.e. the last segment of the
3777
+ # Endpoint's resource name. * `display_name` supports `=` and `!=`. * `labels`
3665
3778
  # supports general map functions that is: * `labels.key=value` - key:value
3666
- # equality * `labels.key:* or labels:key - key existence * A key including a
3667
- # space must be quoted. `labels."a key"`. * `base_model_name` only supports =
3779
+ # equality * `labels.key:*` or `labels:key` - key existence * A key including a
3780
+ # space must be quoted. `labels."a key"`. * `base_model_name` only supports `=`.
3668
3781
  # Some examples: * `endpoint=1` * `displayName="myDisplayName"` * `labels.myKey="
3669
3782
  # myValue"` * `baseModelName="text-bison"`
3670
3783
  # @param [Fixnum] page_size
@@ -4729,6 +4842,255 @@ module Google
4729
4842
  execute_or_queue_command(command, &block)
4730
4843
  end
4731
4844
 
4845
+ # Deletes an Extension.
4846
+ # @param [String] name
4847
+ # Required. The name of the Extension resource to be deleted. Format: `projects/`
4848
+ # project`/locations/`location`/extensions/`extension``
4849
+ # @param [String] fields
4850
+ # Selector specifying which fields to include in a partial response.
4851
+ # @param [String] quota_user
4852
+ # Available to use for quota purposes for server-side applications. Can be any
4853
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4854
+ # @param [Google::Apis::RequestOptions] options
4855
+ # Request-specific options
4856
+ #
4857
+ # @yield [result, err] Result & error if block supplied
4858
+ # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
4859
+ # @yieldparam err [StandardError] error object if request failed
4860
+ #
4861
+ # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
4862
+ #
4863
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4864
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4865
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4866
+ def delete_project_location_extension(name, fields: nil, quota_user: nil, options: nil, &block)
4867
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
4868
+ command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
4869
+ command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
4870
+ command.params['name'] = name unless name.nil?
4871
+ command.query['fields'] = fields unless fields.nil?
4872
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4873
+ execute_or_queue_command(command, &block)
4874
+ end
4875
+
4876
+ # Executes the request against a given extension.
4877
+ # @param [String] name
4878
+ # Required. Name (identifier) of the extension; Format: `projects/`project`/
4879
+ # locations/`location`/extensions/`extension``
4880
+ # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecuteExtensionRequest] google_cloud_aiplatform_v1beta1_execute_extension_request_object
4881
+ # @param [String] fields
4882
+ # Selector specifying which fields to include in a partial response.
4883
+ # @param [String] quota_user
4884
+ # Available to use for quota purposes for server-side applications. Can be any
4885
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4886
+ # @param [Google::Apis::RequestOptions] options
4887
+ # Request-specific options
4888
+ #
4889
+ # @yield [result, err] Result & error if block supplied
4890
+ # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecuteExtensionResponse] parsed result object
4891
+ # @yieldparam err [StandardError] error object if request failed
4892
+ #
4893
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecuteExtensionResponse]
4894
+ #
4895
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4896
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4897
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4898
+ def execute_project_location_extension(name, google_cloud_aiplatform_v1beta1_execute_extension_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4899
+ command = make_simple_command(:post, 'v1beta1/{+name}:execute', options)
4900
+ command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecuteExtensionRequest::Representation
4901
+ command.request_object = google_cloud_aiplatform_v1beta1_execute_extension_request_object
4902
+ command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecuteExtensionResponse::Representation
4903
+ command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecuteExtensionResponse
4904
+ command.params['name'] = name unless name.nil?
4905
+ command.query['fields'] = fields unless fields.nil?
4906
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4907
+ execute_or_queue_command(command, &block)
4908
+ end
4909
+
4910
+ # Gets an Extension.
4911
+ # @param [String] name
4912
+ # Required. The name of the Extension resource. Format: `projects/`project`/
4913
+ # locations/`location`/extensions/`extension``
4914
+ # @param [String] fields
4915
+ # Selector specifying which fields to include in a partial response.
4916
+ # @param [String] quota_user
4917
+ # Available to use for quota purposes for server-side applications. Can be any
4918
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4919
+ # @param [Google::Apis::RequestOptions] options
4920
+ # Request-specific options
4921
+ #
4922
+ # @yield [result, err] Result & error if block supplied
4923
+ # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension] parsed result object
4924
+ # @yieldparam err [StandardError] error object if request failed
4925
+ #
4926
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension]
4927
+ #
4928
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4929
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4930
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4931
+ def get_project_location_extension(name, fields: nil, quota_user: nil, options: nil, &block)
4932
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
4933
+ command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension::Representation
4934
+ command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension
4935
+ command.params['name'] = name unless name.nil?
4936
+ command.query['fields'] = fields unless fields.nil?
4937
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4938
+ execute_or_queue_command(command, &block)
4939
+ end
4940
+
4941
+ # Imports an Extension.
4942
+ # @param [String] parent
4943
+ # Required. The resource name of the Location to import the Extension in. Format:
4944
+ # `projects/`project`/locations/`location``
4945
+ # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension] google_cloud_aiplatform_v1beta1_extension_object
4946
+ # @param [String] fields
4947
+ # Selector specifying which fields to include in a partial response.
4948
+ # @param [String] quota_user
4949
+ # Available to use for quota purposes for server-side applications. Can be any
4950
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4951
+ # @param [Google::Apis::RequestOptions] options
4952
+ # Request-specific options
4953
+ #
4954
+ # @yield [result, err] Result & error if block supplied
4955
+ # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
4956
+ # @yieldparam err [StandardError] error object if request failed
4957
+ #
4958
+ # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
4959
+ #
4960
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4961
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4962
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4963
+ def import_project_location_extension(parent, google_cloud_aiplatform_v1beta1_extension_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4964
+ command = make_simple_command(:post, 'v1beta1/{+parent}/extensions:import', options)
4965
+ command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension::Representation
4966
+ command.request_object = google_cloud_aiplatform_v1beta1_extension_object
4967
+ command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
4968
+ command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
4969
+ command.params['parent'] = parent unless parent.nil?
4970
+ command.query['fields'] = fields unless fields.nil?
4971
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4972
+ execute_or_queue_command(command, &block)
4973
+ end
4974
+
4975
+ # Lists Extensions in a location.
4976
+ # @param [String] parent
4977
+ # Required. The resource name of the Location to list the Extensions from.
4978
+ # Format: `projects/`project`/locations/`location``
4979
+ # @param [String] filter
4980
+ # Optional. The standard list filter. Supported fields: * `display_name` * `
4981
+ # create_time` * `update_time` More detail in [AIP-160](https://google.aip.dev/
4982
+ # 160).
4983
+ # @param [String] order_by
4984
+ # Optional. A comma-separated list of fields to order by, sorted in ascending
4985
+ # order. Use "desc" after a field name for descending. Supported fields: * `
4986
+ # display_name` * `create_time` * `update_time` Example: `display_name,
4987
+ # create_time desc`.
4988
+ # @param [Fixnum] page_size
4989
+ # Optional. The standard list page size.
4990
+ # @param [String] page_token
4991
+ # Optional. The standard list page token.
4992
+ # @param [String] fields
4993
+ # Selector specifying which fields to include in a partial response.
4994
+ # @param [String] quota_user
4995
+ # Available to use for quota purposes for server-side applications. Can be any
4996
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4997
+ # @param [Google::Apis::RequestOptions] options
4998
+ # Request-specific options
4999
+ #
5000
+ # @yield [result, err] Result & error if block supplied
5001
+ # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListExtensionsResponse] parsed result object
5002
+ # @yieldparam err [StandardError] error object if request failed
5003
+ #
5004
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListExtensionsResponse]
5005
+ #
5006
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5007
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5008
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5009
+ def list_project_location_extensions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
5010
+ command = make_simple_command(:get, 'v1beta1/{+parent}/extensions', options)
5011
+ command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListExtensionsResponse::Representation
5012
+ command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListExtensionsResponse
5013
+ command.params['parent'] = parent unless parent.nil?
5014
+ command.query['filter'] = filter unless filter.nil?
5015
+ command.query['orderBy'] = order_by unless order_by.nil?
5016
+ command.query['pageSize'] = page_size unless page_size.nil?
5017
+ command.query['pageToken'] = page_token unless page_token.nil?
5018
+ command.query['fields'] = fields unless fields.nil?
5019
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5020
+ execute_or_queue_command(command, &block)
5021
+ end
5022
+
5023
+ # Updates an Extension.
5024
+ # @param [String] name
5025
+ # Identifier. The resource name of the Extension.
5026
+ # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension] google_cloud_aiplatform_v1beta1_extension_object
5027
+ # @param [String] update_mask
5028
+ # Required. Mask specifying which fields to update. Supported fields: * `
5029
+ # display_name` * `description` * `tool_use_examples`
5030
+ # @param [String] fields
5031
+ # Selector specifying which fields to include in a partial response.
5032
+ # @param [String] quota_user
5033
+ # Available to use for quota purposes for server-side applications. Can be any
5034
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5035
+ # @param [Google::Apis::RequestOptions] options
5036
+ # Request-specific options
5037
+ #
5038
+ # @yield [result, err] Result & error if block supplied
5039
+ # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension] parsed result object
5040
+ # @yieldparam err [StandardError] error object if request failed
5041
+ #
5042
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension]
5043
+ #
5044
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5045
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5046
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5047
+ def patch_project_location_extension(name, google_cloud_aiplatform_v1beta1_extension_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
5048
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
5049
+ command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension::Representation
5050
+ command.request_object = google_cloud_aiplatform_v1beta1_extension_object
5051
+ command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension::Representation
5052
+ command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Extension
5053
+ command.params['name'] = name unless name.nil?
5054
+ command.query['updateMask'] = update_mask unless update_mask.nil?
5055
+ command.query['fields'] = fields unless fields.nil?
5056
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5057
+ execute_or_queue_command(command, &block)
5058
+ end
5059
+
5060
+ # Queries an extension with a default controller.
5061
+ # @param [String] name
5062
+ # Required. Name (identifier) of the extension; Format: `projects/`project`/
5063
+ # locations/`location`/extensions/`extension``
5064
+ # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryExtensionRequest] google_cloud_aiplatform_v1beta1_query_extension_request_object
5065
+ # @param [String] fields
5066
+ # Selector specifying which fields to include in a partial response.
5067
+ # @param [String] quota_user
5068
+ # Available to use for quota purposes for server-side applications. Can be any
5069
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5070
+ # @param [Google::Apis::RequestOptions] options
5071
+ # Request-specific options
5072
+ #
5073
+ # @yield [result, err] Result & error if block supplied
5074
+ # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryExtensionResponse] parsed result object
5075
+ # @yieldparam err [StandardError] error object if request failed
5076
+ #
5077
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryExtensionResponse]
5078
+ #
5079
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5080
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5081
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5082
+ def query_project_location_extension(name, google_cloud_aiplatform_v1beta1_query_extension_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
5083
+ command = make_simple_command(:post, 'v1beta1/{+name}:query', options)
5084
+ command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryExtensionRequest::Representation
5085
+ command.request_object = google_cloud_aiplatform_v1beta1_query_extension_request_object
5086
+ command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryExtensionResponse::Representation
5087
+ command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryExtensionResponse
5088
+ command.params['name'] = name unless name.nil?
5089
+ command.query['fields'] = fields unless fields.nil?
5090
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5091
+ execute_or_queue_command(command, &block)
5092
+ end
5093
+
4732
5094
  # Starts asynchronous cancellation on a long-running operation. The server makes
4733
5095
  # a best effort to cancel the operation, but success is not guaranteed. If the
4734
5096
  # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
@@ -6517,12 +6879,48 @@ module Google
6517
6879
  execute_or_queue_command(command, &block)
6518
6880
  end
6519
6881
 
6520
- # Triggers on-demand sync for the FeatureView.
6882
+ # Bidirectional streaming RPC to fetch feature values under a FeatureView.
6883
+ # Requests may not have a one-to-one mapping to responses and responses may be
6884
+ # returned out-of-order to reduce latency.
6521
6885
  # @param [String] feature_view
6522
- # Required. Format: `projects/`project`/locations/`location`/featureOnlineStores/
6523
- # `feature_online_store`/featureViews/`feature_view``
6524
- # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SyncFeatureViewRequest] google_cloud_aiplatform_v1beta1_sync_feature_view_request_object
6525
- # @param [String] fields
6886
+ # Required. FeatureView resource format `projects/`project`/locations/`location`/
6887
+ # featureOnlineStores/`featureOnlineStore`/featureViews/`featureView``
6888
+ # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamingFetchFeatureValuesRequest] google_cloud_aiplatform_v1beta1_streaming_fetch_feature_values_request_object
6889
+ # @param [String] fields
6890
+ # Selector specifying which fields to include in a partial response.
6891
+ # @param [String] quota_user
6892
+ # Available to use for quota purposes for server-side applications. Can be any
6893
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
6894
+ # @param [Google::Apis::RequestOptions] options
6895
+ # Request-specific options
6896
+ #
6897
+ # @yield [result, err] Result & error if block supplied
6898
+ # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamingFetchFeatureValuesResponse] parsed result object
6899
+ # @yieldparam err [StandardError] error object if request failed
6900
+ #
6901
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamingFetchFeatureValuesResponse]
6902
+ #
6903
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6904
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6905
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6906
+ def streaming_project_location_feature_online_store_feature_view_fetch_feature_values(feature_view, google_cloud_aiplatform_v1beta1_streaming_fetch_feature_values_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
6907
+ command = make_simple_command(:post, 'v1beta1/{+featureView}:streamingFetchFeatureValues', options)
6908
+ command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamingFetchFeatureValuesRequest::Representation
6909
+ command.request_object = google_cloud_aiplatform_v1beta1_streaming_fetch_feature_values_request_object
6910
+ command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamingFetchFeatureValuesResponse::Representation
6911
+ command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1StreamingFetchFeatureValuesResponse
6912
+ command.params['featureView'] = feature_view unless feature_view.nil?
6913
+ command.query['fields'] = fields unless fields.nil?
6914
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6915
+ execute_or_queue_command(command, &block)
6916
+ end
6917
+
6918
+ # Triggers on-demand sync for the FeatureView.
6919
+ # @param [String] feature_view
6920
+ # Required. Format: `projects/`project`/locations/`location`/featureOnlineStores/
6921
+ # `feature_online_store`/featureViews/`feature_view``
6922
+ # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SyncFeatureViewRequest] google_cloud_aiplatform_v1beta1_sync_feature_view_request_object
6923
+ # @param [String] fields
6526
6924
  # Selector specifying which fields to include in a partial response.
6527
6925
  # @param [String] quota_user
6528
6926
  # Available to use for quota purposes for server-side applications. Can be any
@@ -15033,8 +15431,8 @@ module Google
15033
15431
  # supports = and !=. healthState enum: [HEALTHY, UNHEALTHY,
15034
15432
  # HEALTH_STATE_UNSPECIFIED]. * `runtimeState` supports = and !=. runtimeState
15035
15433
  # enum: [RUNTIME_STATE_UNSPECIFIED, RUNNING, BEING_STARTED, BEING_STOPPED,
15036
- # STOPPED, BEING_UPGRADED]. * `runtimeUser` supports = and !=. * API version is
15037
- # UI only: `uiState` supports = and !=. uiState enum: [
15434
+ # STOPPED, BEING_UPGRADED, ERROR, INVALID]. * `runtimeUser` supports = and !=. *
15435
+ # API version is UI only: `uiState` supports = and !=. uiState enum: [
15038
15436
  # UI_RESOURCE_STATE_UNSPECIFIED, UI_RESOURCE_STATE_BEING_CREATED,
15039
15437
  # UI_RESOURCE_STATE_ACTIVE, UI_RESOURCE_STATE_BEING_DELETED,
15040
15438
  # UI_RESOURCE_STATE_CREATION_FAILED]. * `notebookRuntimeType` supports = and !=.
@@ -15556,6 +15954,41 @@ module Google
15556
15954
  execute_or_queue_command(command, &block)
15557
15955
  end
15558
15956
 
15957
+ # Reboots a PersistentResource.
15958
+ # @param [String] name
15959
+ # Required. The name of the PersistentResource resource. Format: `projects/`
15960
+ # project_id_or_number`/locations/`location_id`/persistentResources/`
15961
+ # persistent_resource_id``
15962
+ # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RebootPersistentResourceRequest] google_cloud_aiplatform_v1beta1_reboot_persistent_resource_request_object
15963
+ # @param [String] fields
15964
+ # Selector specifying which fields to include in a partial response.
15965
+ # @param [String] quota_user
15966
+ # Available to use for quota purposes for server-side applications. Can be any
15967
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
15968
+ # @param [Google::Apis::RequestOptions] options
15969
+ # Request-specific options
15970
+ #
15971
+ # @yield [result, err] Result & error if block supplied
15972
+ # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
15973
+ # @yieldparam err [StandardError] error object if request failed
15974
+ #
15975
+ # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
15976
+ #
15977
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15978
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15979
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
15980
+ def reboot_project_location_persistent_resource(name, google_cloud_aiplatform_v1beta1_reboot_persistent_resource_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
15981
+ command = make_simple_command(:post, 'v1beta1/{+name}:reboot', options)
15982
+ command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RebootPersistentResourceRequest::Representation
15983
+ command.request_object = google_cloud_aiplatform_v1beta1_reboot_persistent_resource_request_object
15984
+ command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
15985
+ command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
15986
+ command.params['name'] = name unless name.nil?
15987
+ command.query['fields'] = fields unless fields.nil?
15988
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
15989
+ execute_or_queue_command(command, &block)
15990
+ end
15991
+
15559
15992
  # Starts asynchronous cancellation on a long-running operation. The server makes
15560
15993
  # a best effort to cancel the operation, but success is not guaranteed. If the
15561
15994
  # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
@@ -16498,6 +16931,145 @@ module Google
16498
16931
  execute_or_queue_command(command, &block)
16499
16932
  end
16500
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
+
16501
17073
  # Starts asynchronous cancellation on a long-running operation. The server makes
16502
17074
  # a best effort to cancel the operation, but success is not guaranteed. If the
16503
17075
  # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
@@ -16681,6 +17253,141 @@ module Google
16681
17253
  execute_or_queue_command(command, &block)
16682
17254
  end
16683
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
+
16684
17391
  # Starts asynchronous cancellation on a long-running operation. The server makes
16685
17392
  # a best effort to cancel the operation, but success is not guaranteed. If the
16686
17393
  # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
@@ -16864,6 +17571,177 @@ module Google
16864
17571
  execute_or_queue_command(command, &block)
16865
17572
  end
16866
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
+
16867
17745
  # Starts asynchronous cancellation on a long-running operation. The server makes
16868
17746
  # a best effort to cancel the operation, but success is not guaranteed. If the
16869
17747
  # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.