google-apis-aiplatform_v1 0.75.0 → 0.76.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.
@@ -11680,7 +11680,8 @@ module Google
11680
11680
  # Perform a streaming online prediction with an arbitrary HTTP payload.
11681
11681
  # @param [String] endpoint
11682
11682
  # Required. The name of the Endpoint requested to serve the prediction. Format: `
11683
- # projects/`project`/locations/`location`/endpoints/`endpoint``
11683
+ # projects/`project`/locations/`location`/endpoints/`endpoint`` or `projects/`
11684
+ # project`/locations/`location`/publishers/`publisher`/models/`model``
11684
11685
  # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1StreamRawPredictRequest] google_cloud_aiplatform_v1_stream_raw_predict_request_object
11685
11686
  # @param [String] fields
11686
11687
  # Selector specifying which fields to include in a partial response.
@@ -11931,6 +11932,45 @@ module Google
11931
11932
  execute_or_queue_command(command, &block)
11932
11933
  end
11933
11934
 
11935
+ # Forwards arbitrary HTTP requests for both streaming and non-streaming cases.
11936
+ # To use this method, invoke_route_prefix must be set to allow the paths that
11937
+ # will be specified in the request.
11938
+ # @param [String] endpoint
11939
+ # Required. The name of the Endpoint requested to serve the prediction. Format: `
11940
+ # projects/`project`/locations/`location`/endpoints/`endpoint``
11941
+ # @param [Google::Apis::AiplatformV1::GoogleApiHttpBody] google_api_http_body_object
11942
+ # @param [String] deployed_model_id
11943
+ # ID of the DeployedModel that serves the invoke request.
11944
+ # @param [String] fields
11945
+ # Selector specifying which fields to include in a partial response.
11946
+ # @param [String] quota_user
11947
+ # Available to use for quota purposes for server-side applications. Can be any
11948
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
11949
+ # @param [Google::Apis::RequestOptions] options
11950
+ # Request-specific options
11951
+ #
11952
+ # @yield [result, err] Result & error if block supplied
11953
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleApiHttpBody] parsed result object
11954
+ # @yieldparam err [StandardError] error object if request failed
11955
+ #
11956
+ # @return [Google::Apis::AiplatformV1::GoogleApiHttpBody]
11957
+ #
11958
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
11959
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
11960
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
11961
+ def completions_project_location_endpoint_openapi(endpoint, google_api_http_body_object = nil, deployed_model_id: nil, fields: nil, quota_user: nil, options: nil, &block)
11962
+ command = make_simple_command(:post, 'v1/{+endpoint}/completions', options)
11963
+ command.request_representation = Google::Apis::AiplatformV1::GoogleApiHttpBody::Representation
11964
+ command.request_object = google_api_http_body_object
11965
+ command.response_representation = Google::Apis::AiplatformV1::GoogleApiHttpBody::Representation
11966
+ command.response_class = Google::Apis::AiplatformV1::GoogleApiHttpBody
11967
+ command.params['endpoint'] = endpoint unless endpoint.nil?
11968
+ command.query['deployedModelId'] = deployed_model_id unless deployed_model_id.nil?
11969
+ command.query['fields'] = fields unless fields.nil?
11970
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
11971
+ execute_or_queue_command(command, &block)
11972
+ end
11973
+
11934
11974
  # Forwards arbitrary HTTP requests for both streaming and non-streaming cases.
11935
11975
  # To use this method, invoke_route_prefix must be set to allow the paths that
11936
11976
  # will be specified in the request.
@@ -25141,7 +25181,8 @@ module Google
25141
25181
  # Perform a streaming online prediction with an arbitrary HTTP payload.
25142
25182
  # @param [String] endpoint
25143
25183
  # Required. The name of the Endpoint requested to serve the prediction. Format: `
25144
- # projects/`project`/locations/`location`/endpoints/`endpoint``
25184
+ # projects/`project`/locations/`location`/endpoints/`endpoint`` or `projects/`
25185
+ # project`/locations/`location`/publishers/`publisher`/models/`model``
25145
25186
  # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1StreamRawPredictRequest] google_cloud_aiplatform_v1_stream_raw_predict_request_object
25146
25187
  # @param [String] fields
25147
25188
  # Selector specifying which fields to include in a partial response.
@@ -26129,6 +26170,40 @@ module Google
26129
26170
  execute_or_queue_command(command, &block)
26130
26171
  end
26131
26172
 
26173
+ # Executes code statelessly.
26174
+ # @param [String] name
26175
+ # Required. The resource name of the sandbox environment to execute. Format: `
26176
+ # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine``
26177
+ # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExecuteCodeRequest] google_cloud_aiplatform_v1_execute_code_request_object
26178
+ # @param [String] fields
26179
+ # Selector specifying which fields to include in a partial response.
26180
+ # @param [String] quota_user
26181
+ # Available to use for quota purposes for server-side applications. Can be any
26182
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
26183
+ # @param [Google::Apis::RequestOptions] options
26184
+ # Request-specific options
26185
+ #
26186
+ # @yield [result, err] Result & error if block supplied
26187
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExecuteCodeResponse] parsed result object
26188
+ # @yieldparam err [StandardError] error object if request failed
26189
+ #
26190
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExecuteCodeResponse]
26191
+ #
26192
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26193
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26194
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
26195
+ def execute_project_location_reasoning_engine_code(name, google_cloud_aiplatform_v1_execute_code_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
26196
+ command = make_simple_command(:post, 'v1/{+name}:executeCode', options)
26197
+ command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExecuteCodeRequest::Representation
26198
+ command.request_object = google_cloud_aiplatform_v1_execute_code_request_object
26199
+ command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExecuteCodeResponse::Representation
26200
+ command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExecuteCodeResponse
26201
+ command.params['name'] = name unless name.nil?
26202
+ command.query['fields'] = fields unless fields.nil?
26203
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
26204
+ execute_or_queue_command(command, &block)
26205
+ end
26206
+
26132
26207
  # Gets a reasoning engine.
26133
26208
  # @param [String] name
26134
26209
  # Required. The name of the ReasoningEngine resource. Format: `projects/`project`
@@ -27090,46 +27165,12 @@ module Google
27090
27165
  execute_or_queue_command(command, &block)
27091
27166
  end
27092
27167
 
27093
- # Appends an event to a given session.
27094
- # @param [String] name
27095
- # Required. The resource name of the session to append event to. Format: `
27096
- # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine`/
27097
- # sessions/`session``
27098
- # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SessionEvent] google_cloud_aiplatform_v1_session_event_object
27099
- # @param [String] fields
27100
- # Selector specifying which fields to include in a partial response.
27101
- # @param [String] quota_user
27102
- # Available to use for quota purposes for server-side applications. Can be any
27103
- # arbitrary string assigned to a user, but should not exceed 40 characters.
27104
- # @param [Google::Apis::RequestOptions] options
27105
- # Request-specific options
27106
- #
27107
- # @yield [result, err] Result & error if block supplied
27108
- # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AppendEventResponse] parsed result object
27109
- # @yieldparam err [StandardError] error object if request failed
27110
- #
27111
- # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AppendEventResponse]
27112
- #
27113
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
27114
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
27115
- # @raise [Google::Apis::AuthorizationError] Authorization is required
27116
- def append_project_location_reasoning_engine_session_event(name, google_cloud_aiplatform_v1_session_event_object = nil, fields: nil, quota_user: nil, options: nil, &block)
27117
- command = make_simple_command(:post, 'v1/{+name}:appendEvent', options)
27118
- command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SessionEvent::Representation
27119
- command.request_object = google_cloud_aiplatform_v1_session_event_object
27120
- command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AppendEventResponse::Representation
27121
- command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AppendEventResponse
27122
- command.params['name'] = name unless name.nil?
27123
- command.query['fields'] = fields unless fields.nil?
27124
- command.query['quotaUser'] = quota_user unless quota_user.nil?
27125
- execute_or_queue_command(command, &block)
27126
- end
27127
-
27128
- # Creates a new Session.
27168
+ # Creates a SandboxEnvironment in a given reasoning engine.
27129
27169
  # @param [String] parent
27130
- # Required. The resource name of the location to create the session in. Format: `
27131
- # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine``
27132
- # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session] google_cloud_aiplatform_v1_session_object
27170
+ # Required. The resource name of the reasoning engine to create the
27171
+ # SandboxEnvironment in. Format: `projects/`project`/locations/`location`/
27172
+ # reasoningEngines/`reasoning_engine``.
27173
+ # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SandboxEnvironment] google_cloud_aiplatform_v1_sandbox_environment_object
27133
27174
  # @param [String] fields
27134
27175
  # Selector specifying which fields to include in a partial response.
27135
27176
  # @param [String] quota_user
@@ -27147,10 +27188,10 @@ module Google
27147
27188
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
27148
27189
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
27149
27190
  # @raise [Google::Apis::AuthorizationError] Authorization is required
27150
- def create_project_location_reasoning_engine_session(parent, google_cloud_aiplatform_v1_session_object = nil, fields: nil, quota_user: nil, options: nil, &block)
27151
- command = make_simple_command(:post, 'v1/{+parent}/sessions', options)
27152
- command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session::Representation
27153
- command.request_object = google_cloud_aiplatform_v1_session_object
27191
+ def create_project_location_reasoning_engine_sandbox_environment(parent, google_cloud_aiplatform_v1_sandbox_environment_object = nil, fields: nil, quota_user: nil, options: nil, &block)
27192
+ command = make_simple_command(:post, 'v1/{+parent}/sandboxEnvironments', options)
27193
+ command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SandboxEnvironment::Representation
27194
+ command.request_object = google_cloud_aiplatform_v1_sandbox_environment_object
27154
27195
  command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
27155
27196
  command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
27156
27197
  command.params['parent'] = parent unless parent.nil?
@@ -27159,10 +27200,11 @@ module Google
27159
27200
  execute_or_queue_command(command, &block)
27160
27201
  end
27161
27202
 
27162
- # Deletes details of the specific Session.
27203
+ # Deletes the specific SandboxEnvironment.
27163
27204
  # @param [String] name
27164
- # Required. The resource name of the session. Format: `projects/`project`/
27165
- # locations/`location`/reasoningEngines/`reasoning_engine`/sessions/`session``
27205
+ # Required. The resource name of the SandboxEnvironment to delete. Format: `
27206
+ # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine`/
27207
+ # sandboxEnvironments/`sandbox_environment``
27166
27208
  # @param [String] fields
27167
27209
  # Selector specifying which fields to include in a partial response.
27168
27210
  # @param [String] quota_user
@@ -27180,7 +27222,7 @@ module Google
27180
27222
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
27181
27223
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
27182
27224
  # @raise [Google::Apis::AuthorizationError] Authorization is required
27183
- def delete_project_location_reasoning_engine_session(name, fields: nil, quota_user: nil, options: nil, &block)
27225
+ def delete_project_location_reasoning_engine_sandbox_environment(name, fields: nil, quota_user: nil, options: nil, &block)
27184
27226
  command = make_simple_command(:delete, 'v1/{+name}', options)
27185
27227
  command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
27186
27228
  command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
@@ -27190,10 +27232,12 @@ module Google
27190
27232
  execute_or_queue_command(command, &block)
27191
27233
  end
27192
27234
 
27193
- # Gets details of the specific Session.
27235
+ # Executes using a sandbox environment.
27194
27236
  # @param [String] name
27195
- # Required. The resource name of the session. Format: `projects/`project`/
27196
- # locations/`location`/reasoningEngines/`reasoning_engine`/sessions/`session``
27237
+ # Required. The resource name of the sandbox environment to execute. Format: `
27238
+ # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine`/
27239
+ # sandboxEnvironments/`sandbox_environment``
27240
+ # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExecuteSandboxEnvironmentRequest] google_cloud_aiplatform_v1_execute_sandbox_environment_request_object
27197
27241
  # @param [String] fields
27198
27242
  # Selector specifying which fields to include in a partial response.
27199
27243
  # @param [String] quota_user
@@ -27203,81 +27247,31 @@ module Google
27203
27247
  # Request-specific options
27204
27248
  #
27205
27249
  # @yield [result, err] Result & error if block supplied
27206
- # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session] parsed result object
27250
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExecuteSandboxEnvironmentResponse] parsed result object
27207
27251
  # @yieldparam err [StandardError] error object if request failed
27208
27252
  #
27209
- # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session]
27253
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExecuteSandboxEnvironmentResponse]
27210
27254
  #
27211
27255
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
27212
27256
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
27213
27257
  # @raise [Google::Apis::AuthorizationError] Authorization is required
27214
- def get_project_location_reasoning_engine_session(name, fields: nil, quota_user: nil, options: nil, &block)
27215
- command = make_simple_command(:get, 'v1/{+name}', options)
27216
- command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session::Representation
27217
- command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session
27258
+ def execute_project_location_reasoning_engine_sandbox_environment(name, google_cloud_aiplatform_v1_execute_sandbox_environment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
27259
+ command = make_simple_command(:post, 'v1/{+name}:execute', options)
27260
+ command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExecuteSandboxEnvironmentRequest::Representation
27261
+ command.request_object = google_cloud_aiplatform_v1_execute_sandbox_environment_request_object
27262
+ command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExecuteSandboxEnvironmentResponse::Representation
27263
+ command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExecuteSandboxEnvironmentResponse
27218
27264
  command.params['name'] = name unless name.nil?
27219
27265
  command.query['fields'] = fields unless fields.nil?
27220
27266
  command.query['quotaUser'] = quota_user unless quota_user.nil?
27221
27267
  execute_or_queue_command(command, &block)
27222
27268
  end
27223
27269
 
27224
- # Lists Sessions in a given reasoning engine.
27225
- # @param [String] parent
27226
- # Required. The resource name of the location to list sessions from. Format: `
27227
- # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine``
27228
- # @param [String] filter
27229
- # Optional. The standard list filter. Supported fields: * `display_name` * `
27230
- # user_id` * `labels` Example: `display_name="abc"`, `user_id="123"`, `labels.
27231
- # key="value"`.
27232
- # @param [String] order_by
27233
- # Optional. A comma-separated list of fields to order by, sorted in ascending
27234
- # order. Use "desc" after a field name for descending. Supported fields: * `
27235
- # create_time` * `update_time` Example: `create_time desc`.
27236
- # @param [Fixnum] page_size
27237
- # Optional. The maximum number of sessions to return. The service may return
27238
- # fewer than this value. If unspecified, at most 100 sessions will be returned.
27239
- # @param [String] page_token
27240
- # Optional. The next_page_token value returned from a previous list
27241
- # SessionService.ListSessions call.
27242
- # @param [String] fields
27243
- # Selector specifying which fields to include in a partial response.
27244
- # @param [String] quota_user
27245
- # Available to use for quota purposes for server-side applications. Can be any
27246
- # arbitrary string assigned to a user, but should not exceed 40 characters.
27247
- # @param [Google::Apis::RequestOptions] options
27248
- # Request-specific options
27249
- #
27250
- # @yield [result, err] Result & error if block supplied
27251
- # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListSessionsResponse] parsed result object
27252
- # @yieldparam err [StandardError] error object if request failed
27253
- #
27254
- # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListSessionsResponse]
27255
- #
27256
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
27257
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
27258
- # @raise [Google::Apis::AuthorizationError] Authorization is required
27259
- def list_project_location_reasoning_engine_sessions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
27260
- command = make_simple_command(:get, 'v1/{+parent}/sessions', options)
27261
- command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListSessionsResponse::Representation
27262
- command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListSessionsResponse
27263
- command.params['parent'] = parent unless parent.nil?
27264
- command.query['filter'] = filter unless filter.nil?
27265
- command.query['orderBy'] = order_by unless order_by.nil?
27266
- command.query['pageSize'] = page_size unless page_size.nil?
27267
- command.query['pageToken'] = page_token unless page_token.nil?
27268
- command.query['fields'] = fields unless fields.nil?
27269
- command.query['quotaUser'] = quota_user unless quota_user.nil?
27270
- execute_or_queue_command(command, &block)
27271
- end
27272
-
27273
- # Updates the specific Session.
27270
+ # Gets details of the specific SandboxEnvironment.
27274
27271
  # @param [String] name
27275
- # Identifier. The resource name of the session. Format: 'projects/`project`/
27276
- # locations/`location`/reasoningEngines/`reasoning_engine`/sessions/`session`'.
27277
- # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session] google_cloud_aiplatform_v1_session_object
27278
- # @param [String] update_mask
27279
- # Optional. Field mask is used to control which fields get updated. If the mask
27280
- # is not present, all fields will be updated.
27272
+ # Required. The resource name of the sandbox environment. Format: `projects/`
27273
+ # project`/locations/`location`/reasoningEngines/`reasoning_engine`/
27274
+ # sandboxEnvironments/`sandbox_environment``
27281
27275
  # @param [String] fields
27282
27276
  # Selector specifying which fields to include in a partial response.
27283
27277
  # @param [String] quota_user
@@ -27287,47 +27281,39 @@ module Google
27287
27281
  # Request-specific options
27288
27282
  #
27289
27283
  # @yield [result, err] Result & error if block supplied
27290
- # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session] parsed result object
27284
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SandboxEnvironment] parsed result object
27291
27285
  # @yieldparam err [StandardError] error object if request failed
27292
27286
  #
27293
- # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session]
27287
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SandboxEnvironment]
27294
27288
  #
27295
27289
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
27296
27290
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
27297
27291
  # @raise [Google::Apis::AuthorizationError] Authorization is required
27298
- def patch_project_location_reasoning_engine_session(name, google_cloud_aiplatform_v1_session_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
27299
- command = make_simple_command(:patch, 'v1/{+name}', options)
27300
- command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session::Representation
27301
- command.request_object = google_cloud_aiplatform_v1_session_object
27302
- command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session::Representation
27303
- command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session
27292
+ def get_project_location_reasoning_engine_sandbox_environment(name, fields: nil, quota_user: nil, options: nil, &block)
27293
+ command = make_simple_command(:get, 'v1/{+name}', options)
27294
+ command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SandboxEnvironment::Representation
27295
+ command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SandboxEnvironment
27304
27296
  command.params['name'] = name unless name.nil?
27305
- command.query['updateMask'] = update_mask unless update_mask.nil?
27306
27297
  command.query['fields'] = fields unless fields.nil?
27307
27298
  command.query['quotaUser'] = quota_user unless quota_user.nil?
27308
27299
  execute_or_queue_command(command, &block)
27309
27300
  end
27310
27301
 
27311
- # Lists Events in a given session.
27302
+ # Lists SandboxEnvironments in a given reasoning engine.
27312
27303
  # @param [String] parent
27313
- # Required. The resource name of the session to list events from. Format: `
27314
- # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine`/
27315
- # sessions/`session``
27304
+ # Required. The resource name of the reasoning engine to list sandbox
27305
+ # environments from. Format: `projects/`project`/locations/`location`/
27306
+ # reasoningEngines/`reasoning_engine``
27316
27307
  # @param [String] filter
27317
- # Optional. The standard list filter. Supported fields: * `timestamp` range (i.e.
27318
- # `timestamp>="2025-01-31T11:30:00-04:00"` where the timestamp is in RFC 3339
27319
- # format) More detail in [AIP-160](https://google.aip.dev/160).
27320
- # @param [String] order_by
27321
- # Optional. A comma-separated list of fields to order by, sorted in ascending
27322
- # order. Use "desc" after a field name for descending. Supported fields: * `
27323
- # timestamp` Example: `timestamp desc`.
27308
+ # Optional. The standard list filter. More detail in [AIP-160](https://google.
27309
+ # aip.dev/160).
27324
27310
  # @param [Fixnum] page_size
27325
- # Optional. The maximum number of events to return. The service may return fewer
27326
- # than this value. If unspecified, at most 100 events will be returned. These
27327
- # events are ordered by timestamp in ascending order.
27311
+ # Optional. The maximum number of SandboxEnvironments to return. The service may
27312
+ # return fewer than this value. If unspecified, at most 100 SandboxEnvironments
27313
+ # will be returned.
27328
27314
  # @param [String] page_token
27329
- # Optional. The next_page_token value returned from a previous list
27330
- # SessionService.ListEvents call.
27315
+ # Optional. The standard list page token, received from a previous `
27316
+ # ListSandboxEnvironments` call. Provide this to retrieve the subsequent page.
27331
27317
  # @param [String] fields
27332
27318
  # Selector specifying which fields to include in a partial response.
27333
27319
  # @param [String] quota_user
@@ -27337,21 +27323,20 @@ module Google
27337
27323
  # Request-specific options
27338
27324
  #
27339
27325
  # @yield [result, err] Result & error if block supplied
27340
- # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListEventsResponse] parsed result object
27326
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListSandboxEnvironmentsResponse] parsed result object
27341
27327
  # @yieldparam err [StandardError] error object if request failed
27342
27328
  #
27343
- # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListEventsResponse]
27329
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListSandboxEnvironmentsResponse]
27344
27330
  #
27345
27331
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
27346
27332
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
27347
27333
  # @raise [Google::Apis::AuthorizationError] Authorization is required
27348
- def list_project_location_reasoning_engine_session_events(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
27349
- command = make_simple_command(:get, 'v1/{+parent}/events', options)
27350
- command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListEventsResponse::Representation
27351
- command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListEventsResponse
27334
+ def list_project_location_reasoning_engine_sandbox_environments(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
27335
+ command = make_simple_command(:get, 'v1/{+parent}/sandboxEnvironments', options)
27336
+ command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListSandboxEnvironmentsResponse::Representation
27337
+ command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListSandboxEnvironmentsResponse
27352
27338
  command.params['parent'] = parent unless parent.nil?
27353
27339
  command.query['filter'] = filter unless filter.nil?
27354
- command.query['orderBy'] = order_by unless order_by.nil?
27355
27340
  command.query['pageSize'] = page_size unless page_size.nil?
27356
27341
  command.query['pageToken'] = page_token unless page_token.nil?
27357
27342
  command.query['fields'] = fields unless fields.nil?
@@ -27386,7 +27371,7 @@ module Google
27386
27371
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
27387
27372
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
27388
27373
  # @raise [Google::Apis::AuthorizationError] Authorization is required
27389
- def cancel_project_location_reasoning_engine_session_operation(name, fields: nil, quota_user: nil, options: nil, &block)
27374
+ def cancel_project_location_reasoning_engine_sandbox_environment_operation(name, fields: nil, quota_user: nil, options: nil, &block)
27390
27375
  command = make_simple_command(:post, 'v1/{+name}:cancel', options)
27391
27376
  command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
27392
27377
  command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
@@ -27419,7 +27404,7 @@ module Google
27419
27404
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
27420
27405
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
27421
27406
  # @raise [Google::Apis::AuthorizationError] Authorization is required
27422
- def delete_project_location_reasoning_engine_session_operation(name, fields: nil, quota_user: nil, options: nil, &block)
27407
+ def delete_project_location_reasoning_engine_sandbox_environment_operation(name, fields: nil, quota_user: nil, options: nil, &block)
27423
27408
  command = make_simple_command(:delete, 'v1/{+name}', options)
27424
27409
  command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
27425
27410
  command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
@@ -27450,7 +27435,7 @@ module Google
27450
27435
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
27451
27436
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
27452
27437
  # @raise [Google::Apis::AuthorizationError] Authorization is required
27453
- def get_project_location_reasoning_engine_session_operation(name, fields: nil, quota_user: nil, options: nil, &block)
27438
+ def get_project_location_reasoning_engine_sandbox_environment_operation(name, fields: nil, quota_user: nil, options: nil, &block)
27454
27439
  command = make_simple_command(:get, 'v1/{+name}', options)
27455
27440
  command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
27456
27441
  command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
@@ -27460,24 +27445,20 @@ module Google
27460
27445
  execute_or_queue_command(command, &block)
27461
27446
  end
27462
27447
 
27463
- # Lists operations that match the specified filter in the request. If the server
27464
- # doesn't support this method, it returns `UNIMPLEMENTED`.
27448
+ # Waits until the specified long-running operation is done or reaches at most a
27449
+ # specified timeout, returning the latest state. If the operation is already
27450
+ # done, the latest state is immediately returned. If the timeout specified is
27451
+ # greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If
27452
+ # the server does not support this method, it returns `google.rpc.Code.
27453
+ # UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return
27454
+ # the latest state before the specified timeout (including immediately), meaning
27455
+ # even an immediate response is no guarantee that the operation is done.
27465
27456
  # @param [String] name
27466
- # The name of the operation's parent resource.
27467
- # @param [String] filter
27468
- # The standard list filter.
27469
- # @param [Fixnum] page_size
27470
- # The standard list page size.
27471
- # @param [String] page_token
27472
- # The standard list page token.
27473
- # @param [Boolean] return_partial_success
27474
- # When set to `true`, operations that are reachable are returned as normal, and
27475
- # those that are unreachable are returned in the ListOperationsResponse.
27476
- # unreachable field. This can only be `true` when reading across collections.
27477
- # For example, when `parent` is set to `"projects/example/locations/-"`. This
27478
- # field is not supported by default and will result in an `UNIMPLEMENTED` error
27479
- # if set unless explicitly documented otherwise in service or product specific
27480
- # documentation.
27457
+ # The name of the operation resource to wait on.
27458
+ # @param [String] timeout
27459
+ # The maximum duration to wait before timing out. If left blank, the wait will
27460
+ # be at most the time permitted by the underlying HTTP/RPC protocol. If RPC
27461
+ # context deadline is also specified, the shorter one will be used.
27481
27462
  # @param [String] fields
27482
27463
  # Selector specifying which fields to include in a partial response.
27483
27464
  # @param [String] quota_user
@@ -27487,18 +27468,434 @@ module Google
27487
27468
  # Request-specific options
27488
27469
  #
27489
27470
  # @yield [result, err] Result & error if block supplied
27490
- # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse] parsed result object
27471
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
27491
27472
  # @yieldparam err [StandardError] error object if request failed
27492
27473
  #
27493
- # @return [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse]
27474
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
27494
27475
  #
27495
27476
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
27496
27477
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
27497
27478
  # @raise [Google::Apis::AuthorizationError] Authorization is required
27498
- def list_project_location_reasoning_engine_session_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block)
27499
- command = make_simple_command(:get, 'v1/{+name}/operations', options)
27500
- command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse::Representation
27501
- command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse
27479
+ def wait_project_location_reasoning_engine_sandbox_environment_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block)
27480
+ command = make_simple_command(:post, 'v1/{+name}:wait', options)
27481
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
27482
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
27483
+ command.params['name'] = name unless name.nil?
27484
+ command.query['timeout'] = timeout unless timeout.nil?
27485
+ command.query['fields'] = fields unless fields.nil?
27486
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
27487
+ execute_or_queue_command(command, &block)
27488
+ end
27489
+
27490
+ # Appends an event to a given session.
27491
+ # @param [String] name
27492
+ # Required. The resource name of the session to append event to. Format: `
27493
+ # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine`/
27494
+ # sessions/`session``
27495
+ # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SessionEvent] google_cloud_aiplatform_v1_session_event_object
27496
+ # @param [String] fields
27497
+ # Selector specifying which fields to include in a partial response.
27498
+ # @param [String] quota_user
27499
+ # Available to use for quota purposes for server-side applications. Can be any
27500
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
27501
+ # @param [Google::Apis::RequestOptions] options
27502
+ # Request-specific options
27503
+ #
27504
+ # @yield [result, err] Result & error if block supplied
27505
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AppendEventResponse] parsed result object
27506
+ # @yieldparam err [StandardError] error object if request failed
27507
+ #
27508
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AppendEventResponse]
27509
+ #
27510
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
27511
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
27512
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
27513
+ def append_project_location_reasoning_engine_session_event(name, google_cloud_aiplatform_v1_session_event_object = nil, fields: nil, quota_user: nil, options: nil, &block)
27514
+ command = make_simple_command(:post, 'v1/{+name}:appendEvent', options)
27515
+ command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SessionEvent::Representation
27516
+ command.request_object = google_cloud_aiplatform_v1_session_event_object
27517
+ command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AppendEventResponse::Representation
27518
+ command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AppendEventResponse
27519
+ command.params['name'] = name unless name.nil?
27520
+ command.query['fields'] = fields unless fields.nil?
27521
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
27522
+ execute_or_queue_command(command, &block)
27523
+ end
27524
+
27525
+ # Creates a new Session.
27526
+ # @param [String] parent
27527
+ # Required. The resource name of the location to create the session in. Format: `
27528
+ # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine``
27529
+ # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session] google_cloud_aiplatform_v1_session_object
27530
+ # @param [String] fields
27531
+ # Selector specifying which fields to include in a partial response.
27532
+ # @param [String] quota_user
27533
+ # Available to use for quota purposes for server-side applications. Can be any
27534
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
27535
+ # @param [Google::Apis::RequestOptions] options
27536
+ # Request-specific options
27537
+ #
27538
+ # @yield [result, err] Result & error if block supplied
27539
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
27540
+ # @yieldparam err [StandardError] error object if request failed
27541
+ #
27542
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
27543
+ #
27544
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
27545
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
27546
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
27547
+ def create_project_location_reasoning_engine_session(parent, google_cloud_aiplatform_v1_session_object = nil, fields: nil, quota_user: nil, options: nil, &block)
27548
+ command = make_simple_command(:post, 'v1/{+parent}/sessions', options)
27549
+ command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session::Representation
27550
+ command.request_object = google_cloud_aiplatform_v1_session_object
27551
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
27552
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
27553
+ command.params['parent'] = parent unless parent.nil?
27554
+ command.query['fields'] = fields unless fields.nil?
27555
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
27556
+ execute_or_queue_command(command, &block)
27557
+ end
27558
+
27559
+ # Deletes details of the specific Session.
27560
+ # @param [String] name
27561
+ # Required. The resource name of the session. Format: `projects/`project`/
27562
+ # locations/`location`/reasoningEngines/`reasoning_engine`/sessions/`session``
27563
+ # @param [String] fields
27564
+ # Selector specifying which fields to include in a partial response.
27565
+ # @param [String] quota_user
27566
+ # Available to use for quota purposes for server-side applications. Can be any
27567
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
27568
+ # @param [Google::Apis::RequestOptions] options
27569
+ # Request-specific options
27570
+ #
27571
+ # @yield [result, err] Result & error if block supplied
27572
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
27573
+ # @yieldparam err [StandardError] error object if request failed
27574
+ #
27575
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
27576
+ #
27577
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
27578
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
27579
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
27580
+ def delete_project_location_reasoning_engine_session(name, fields: nil, quota_user: nil, options: nil, &block)
27581
+ command = make_simple_command(:delete, 'v1/{+name}', options)
27582
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
27583
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
27584
+ command.params['name'] = name unless name.nil?
27585
+ command.query['fields'] = fields unless fields.nil?
27586
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
27587
+ execute_or_queue_command(command, &block)
27588
+ end
27589
+
27590
+ # Gets details of the specific Session.
27591
+ # @param [String] name
27592
+ # Required. The resource name of the session. Format: `projects/`project`/
27593
+ # locations/`location`/reasoningEngines/`reasoning_engine`/sessions/`session``
27594
+ # @param [String] fields
27595
+ # Selector specifying which fields to include in a partial response.
27596
+ # @param [String] quota_user
27597
+ # Available to use for quota purposes for server-side applications. Can be any
27598
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
27599
+ # @param [Google::Apis::RequestOptions] options
27600
+ # Request-specific options
27601
+ #
27602
+ # @yield [result, err] Result & error if block supplied
27603
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session] parsed result object
27604
+ # @yieldparam err [StandardError] error object if request failed
27605
+ #
27606
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session]
27607
+ #
27608
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
27609
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
27610
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
27611
+ def get_project_location_reasoning_engine_session(name, fields: nil, quota_user: nil, options: nil, &block)
27612
+ command = make_simple_command(:get, 'v1/{+name}', options)
27613
+ command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session::Representation
27614
+ command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session
27615
+ command.params['name'] = name unless name.nil?
27616
+ command.query['fields'] = fields unless fields.nil?
27617
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
27618
+ execute_or_queue_command(command, &block)
27619
+ end
27620
+
27621
+ # Lists Sessions in a given reasoning engine.
27622
+ # @param [String] parent
27623
+ # Required. The resource name of the location to list sessions from. Format: `
27624
+ # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine``
27625
+ # @param [String] filter
27626
+ # Optional. The standard list filter. Supported fields: * `display_name` * `
27627
+ # user_id` * `labels` Example: `display_name="abc"`, `user_id="123"`, `labels.
27628
+ # key="value"`.
27629
+ # @param [String] order_by
27630
+ # Optional. A comma-separated list of fields to order by, sorted in ascending
27631
+ # order. Use "desc" after a field name for descending. Supported fields: * `
27632
+ # create_time` * `update_time` Example: `create_time desc`.
27633
+ # @param [Fixnum] page_size
27634
+ # Optional. The maximum number of sessions to return. The service may return
27635
+ # fewer than this value. If unspecified, at most 100 sessions will be returned.
27636
+ # @param [String] page_token
27637
+ # Optional. The next_page_token value returned from a previous list
27638
+ # SessionService.ListSessions call.
27639
+ # @param [String] fields
27640
+ # Selector specifying which fields to include in a partial response.
27641
+ # @param [String] quota_user
27642
+ # Available to use for quota purposes for server-side applications. Can be any
27643
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
27644
+ # @param [Google::Apis::RequestOptions] options
27645
+ # Request-specific options
27646
+ #
27647
+ # @yield [result, err] Result & error if block supplied
27648
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListSessionsResponse] parsed result object
27649
+ # @yieldparam err [StandardError] error object if request failed
27650
+ #
27651
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListSessionsResponse]
27652
+ #
27653
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
27654
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
27655
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
27656
+ def list_project_location_reasoning_engine_sessions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
27657
+ command = make_simple_command(:get, 'v1/{+parent}/sessions', options)
27658
+ command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListSessionsResponse::Representation
27659
+ command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListSessionsResponse
27660
+ command.params['parent'] = parent unless parent.nil?
27661
+ command.query['filter'] = filter unless filter.nil?
27662
+ command.query['orderBy'] = order_by unless order_by.nil?
27663
+ command.query['pageSize'] = page_size unless page_size.nil?
27664
+ command.query['pageToken'] = page_token unless page_token.nil?
27665
+ command.query['fields'] = fields unless fields.nil?
27666
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
27667
+ execute_or_queue_command(command, &block)
27668
+ end
27669
+
27670
+ # Updates the specific Session.
27671
+ # @param [String] name
27672
+ # Identifier. The resource name of the session. Format: 'projects/`project`/
27673
+ # locations/`location`/reasoningEngines/`reasoning_engine`/sessions/`session`'.
27674
+ # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session] google_cloud_aiplatform_v1_session_object
27675
+ # @param [String] update_mask
27676
+ # Optional. Field mask is used to control which fields get updated. If the mask
27677
+ # is not present, all fields will be updated.
27678
+ # @param [String] fields
27679
+ # Selector specifying which fields to include in a partial response.
27680
+ # @param [String] quota_user
27681
+ # Available to use for quota purposes for server-side applications. Can be any
27682
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
27683
+ # @param [Google::Apis::RequestOptions] options
27684
+ # Request-specific options
27685
+ #
27686
+ # @yield [result, err] Result & error if block supplied
27687
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session] parsed result object
27688
+ # @yieldparam err [StandardError] error object if request failed
27689
+ #
27690
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session]
27691
+ #
27692
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
27693
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
27694
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
27695
+ def patch_project_location_reasoning_engine_session(name, google_cloud_aiplatform_v1_session_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
27696
+ command = make_simple_command(:patch, 'v1/{+name}', options)
27697
+ command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session::Representation
27698
+ command.request_object = google_cloud_aiplatform_v1_session_object
27699
+ command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session::Representation
27700
+ command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session
27701
+ command.params['name'] = name unless name.nil?
27702
+ command.query['updateMask'] = update_mask unless update_mask.nil?
27703
+ command.query['fields'] = fields unless fields.nil?
27704
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
27705
+ execute_or_queue_command(command, &block)
27706
+ end
27707
+
27708
+ # Lists Events in a given session.
27709
+ # @param [String] parent
27710
+ # Required. The resource name of the session to list events from. Format: `
27711
+ # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine`/
27712
+ # sessions/`session``
27713
+ # @param [String] filter
27714
+ # Optional. The standard list filter. Supported fields: * `timestamp` range (i.e.
27715
+ # `timestamp>="2025-01-31T11:30:00-04:00"` where the timestamp is in RFC 3339
27716
+ # format) More detail in [AIP-160](https://google.aip.dev/160).
27717
+ # @param [String] order_by
27718
+ # Optional. A comma-separated list of fields to order by, sorted in ascending
27719
+ # order. Use "desc" after a field name for descending. Supported fields: * `
27720
+ # timestamp` Example: `timestamp desc`.
27721
+ # @param [Fixnum] page_size
27722
+ # Optional. The maximum number of events to return. The service may return fewer
27723
+ # than this value. If unspecified, at most 100 events will be returned. These
27724
+ # events are ordered by timestamp in ascending order.
27725
+ # @param [String] page_token
27726
+ # Optional. The next_page_token value returned from a previous list
27727
+ # SessionService.ListEvents call.
27728
+ # @param [String] fields
27729
+ # Selector specifying which fields to include in a partial response.
27730
+ # @param [String] quota_user
27731
+ # Available to use for quota purposes for server-side applications. Can be any
27732
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
27733
+ # @param [Google::Apis::RequestOptions] options
27734
+ # Request-specific options
27735
+ #
27736
+ # @yield [result, err] Result & error if block supplied
27737
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListEventsResponse] parsed result object
27738
+ # @yieldparam err [StandardError] error object if request failed
27739
+ #
27740
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListEventsResponse]
27741
+ #
27742
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
27743
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
27744
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
27745
+ def list_project_location_reasoning_engine_session_events(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
27746
+ command = make_simple_command(:get, 'v1/{+parent}/events', options)
27747
+ command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListEventsResponse::Representation
27748
+ command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListEventsResponse
27749
+ command.params['parent'] = parent unless parent.nil?
27750
+ command.query['filter'] = filter unless filter.nil?
27751
+ command.query['orderBy'] = order_by unless order_by.nil?
27752
+ command.query['pageSize'] = page_size unless page_size.nil?
27753
+ command.query['pageToken'] = page_token unless page_token.nil?
27754
+ command.query['fields'] = fields unless fields.nil?
27755
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
27756
+ execute_or_queue_command(command, &block)
27757
+ end
27758
+
27759
+ # Starts asynchronous cancellation on a long-running operation. The server makes
27760
+ # a best effort to cancel the operation, but success is not guaranteed. If the
27761
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
27762
+ # Clients can use Operations.GetOperation or other methods to check whether the
27763
+ # cancellation succeeded or whether the operation completed despite cancellation.
27764
+ # On successful cancellation, the operation is not deleted; instead, it becomes
27765
+ # an operation with an Operation.error value with a google.rpc.Status.code of `1`
27766
+ # , corresponding to `Code.CANCELLED`.
27767
+ # @param [String] name
27768
+ # The name of the operation resource to be cancelled.
27769
+ # @param [String] fields
27770
+ # Selector specifying which fields to include in a partial response.
27771
+ # @param [String] quota_user
27772
+ # Available to use for quota purposes for server-side applications. Can be any
27773
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
27774
+ # @param [Google::Apis::RequestOptions] options
27775
+ # Request-specific options
27776
+ #
27777
+ # @yield [result, err] Result & error if block supplied
27778
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleProtobufEmpty] parsed result object
27779
+ # @yieldparam err [StandardError] error object if request failed
27780
+ #
27781
+ # @return [Google::Apis::AiplatformV1::GoogleProtobufEmpty]
27782
+ #
27783
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
27784
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
27785
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
27786
+ def cancel_project_location_reasoning_engine_session_operation(name, fields: nil, quota_user: nil, options: nil, &block)
27787
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
27788
+ command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
27789
+ command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
27790
+ command.params['name'] = name unless name.nil?
27791
+ command.query['fields'] = fields unless fields.nil?
27792
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
27793
+ execute_or_queue_command(command, &block)
27794
+ end
27795
+
27796
+ # Deletes a long-running operation. This method indicates that the client is no
27797
+ # longer interested in the operation result. It does not cancel the operation.
27798
+ # If the server doesn't support this method, it returns `google.rpc.Code.
27799
+ # UNIMPLEMENTED`.
27800
+ # @param [String] name
27801
+ # The name of the operation resource to be deleted.
27802
+ # @param [String] fields
27803
+ # Selector specifying which fields to include in a partial response.
27804
+ # @param [String] quota_user
27805
+ # Available to use for quota purposes for server-side applications. Can be any
27806
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
27807
+ # @param [Google::Apis::RequestOptions] options
27808
+ # Request-specific options
27809
+ #
27810
+ # @yield [result, err] Result & error if block supplied
27811
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleProtobufEmpty] parsed result object
27812
+ # @yieldparam err [StandardError] error object if request failed
27813
+ #
27814
+ # @return [Google::Apis::AiplatformV1::GoogleProtobufEmpty]
27815
+ #
27816
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
27817
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
27818
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
27819
+ def delete_project_location_reasoning_engine_session_operation(name, fields: nil, quota_user: nil, options: nil, &block)
27820
+ command = make_simple_command(:delete, 'v1/{+name}', options)
27821
+ command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
27822
+ command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
27823
+ command.params['name'] = name unless name.nil?
27824
+ command.query['fields'] = fields unless fields.nil?
27825
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
27826
+ execute_or_queue_command(command, &block)
27827
+ end
27828
+
27829
+ # Gets the latest state of a long-running operation. Clients can use this method
27830
+ # to poll the operation result at intervals as recommended by the API service.
27831
+ # @param [String] name
27832
+ # The name of the operation resource.
27833
+ # @param [String] fields
27834
+ # Selector specifying which fields to include in a partial response.
27835
+ # @param [String] quota_user
27836
+ # Available to use for quota purposes for server-side applications. Can be any
27837
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
27838
+ # @param [Google::Apis::RequestOptions] options
27839
+ # Request-specific options
27840
+ #
27841
+ # @yield [result, err] Result & error if block supplied
27842
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
27843
+ # @yieldparam err [StandardError] error object if request failed
27844
+ #
27845
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
27846
+ #
27847
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
27848
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
27849
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
27850
+ def get_project_location_reasoning_engine_session_operation(name, fields: nil, quota_user: nil, options: nil, &block)
27851
+ command = make_simple_command(:get, 'v1/{+name}', options)
27852
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
27853
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
27854
+ command.params['name'] = name unless name.nil?
27855
+ command.query['fields'] = fields unless fields.nil?
27856
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
27857
+ execute_or_queue_command(command, &block)
27858
+ end
27859
+
27860
+ # Lists operations that match the specified filter in the request. If the server
27861
+ # doesn't support this method, it returns `UNIMPLEMENTED`.
27862
+ # @param [String] name
27863
+ # The name of the operation's parent resource.
27864
+ # @param [String] filter
27865
+ # The standard list filter.
27866
+ # @param [Fixnum] page_size
27867
+ # The standard list page size.
27868
+ # @param [String] page_token
27869
+ # The standard list page token.
27870
+ # @param [Boolean] return_partial_success
27871
+ # When set to `true`, operations that are reachable are returned as normal, and
27872
+ # those that are unreachable are returned in the ListOperationsResponse.
27873
+ # unreachable field. This can only be `true` when reading across collections.
27874
+ # For example, when `parent` is set to `"projects/example/locations/-"`. This
27875
+ # field is not supported by default and will result in an `UNIMPLEMENTED` error
27876
+ # if set unless explicitly documented otherwise in service or product specific
27877
+ # documentation.
27878
+ # @param [String] fields
27879
+ # Selector specifying which fields to include in a partial response.
27880
+ # @param [String] quota_user
27881
+ # Available to use for quota purposes for server-side applications. Can be any
27882
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
27883
+ # @param [Google::Apis::RequestOptions] options
27884
+ # Request-specific options
27885
+ #
27886
+ # @yield [result, err] Result & error if block supplied
27887
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse] parsed result object
27888
+ # @yieldparam err [StandardError] error object if request failed
27889
+ #
27890
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse]
27891
+ #
27892
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
27893
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
27894
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
27895
+ def list_project_location_reasoning_engine_session_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block)
27896
+ command = make_simple_command(:get, 'v1/{+name}/operations', options)
27897
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse::Representation
27898
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse
27502
27899
  command.params['name'] = name unless name.nil?
27503
27900
  command.query['filter'] = filter unless filter.nil?
27504
27901
  command.query['pageSize'] = page_size unless page_size.nil?
@@ -32853,6 +33250,40 @@ module Google
32853
33250
  execute_or_queue_command(command, &block)
32854
33251
  end
32855
33252
 
33253
+ # Executes code statelessly.
33254
+ # @param [String] name
33255
+ # Required. The resource name of the sandbox environment to execute. Format: `
33256
+ # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine``
33257
+ # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExecuteCodeRequest] google_cloud_aiplatform_v1_execute_code_request_object
33258
+ # @param [String] fields
33259
+ # Selector specifying which fields to include in a partial response.
33260
+ # @param [String] quota_user
33261
+ # Available to use for quota purposes for server-side applications. Can be any
33262
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
33263
+ # @param [Google::Apis::RequestOptions] options
33264
+ # Request-specific options
33265
+ #
33266
+ # @yield [result, err] Result & error if block supplied
33267
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExecuteCodeResponse] parsed result object
33268
+ # @yieldparam err [StandardError] error object if request failed
33269
+ #
33270
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExecuteCodeResponse]
33271
+ #
33272
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33273
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33274
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
33275
+ def execute_reasoning_engine_code(name, google_cloud_aiplatform_v1_execute_code_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
33276
+ command = make_simple_command(:post, 'v1/{+name}:executeCode', options)
33277
+ command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExecuteCodeRequest::Representation
33278
+ command.request_object = google_cloud_aiplatform_v1_execute_code_request_object
33279
+ command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExecuteCodeResponse::Representation
33280
+ command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExecuteCodeResponse
33281
+ command.params['name'] = name unless name.nil?
33282
+ command.query['fields'] = fields unless fields.nil?
33283
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
33284
+ execute_or_queue_command(command, &block)
33285
+ end
33286
+
32856
33287
  # Gets a reasoning engine.
32857
33288
  # @param [String] name
32858
33289
  # Required. The name of the ReasoningEngine resource. Format: `projects/`project`
@@ -32976,31 +33407,224 @@ module Google
32976
33407
  # Request-specific options
32977
33408
  #
32978
33409
  # @yield [result, err] Result & error if block supplied
32979
- # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1QueryReasoningEngineResponse] parsed result object
33410
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1QueryReasoningEngineResponse] parsed result object
33411
+ # @yieldparam err [StandardError] error object if request failed
33412
+ #
33413
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1QueryReasoningEngineResponse]
33414
+ #
33415
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33416
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33417
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
33418
+ def query_reasoning_engine(name, google_cloud_aiplatform_v1_query_reasoning_engine_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
33419
+ command = make_simple_command(:post, 'v1/{+name}:query', options)
33420
+ command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1QueryReasoningEngineRequest::Representation
33421
+ command.request_object = google_cloud_aiplatform_v1_query_reasoning_engine_request_object
33422
+ command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1QueryReasoningEngineResponse::Representation
33423
+ command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1QueryReasoningEngineResponse
33424
+ command.params['name'] = name unless name.nil?
33425
+ command.query['fields'] = fields unless fields.nil?
33426
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
33427
+ execute_or_queue_command(command, &block)
33428
+ end
33429
+
33430
+ # Streams queries using a reasoning engine.
33431
+ # @param [String] name
33432
+ # Required. The name of the ReasoningEngine resource to use. Format: `projects/`
33433
+ # project`/locations/`location`/reasoningEngines/`reasoning_engine``
33434
+ # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest] google_cloud_aiplatform_v1_stream_query_reasoning_engine_request_object
33435
+ # @param [String] fields
33436
+ # Selector specifying which fields to include in a partial response.
33437
+ # @param [String] quota_user
33438
+ # Available to use for quota purposes for server-side applications. Can be any
33439
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
33440
+ # @param [Google::Apis::RequestOptions] options
33441
+ # Request-specific options
33442
+ #
33443
+ # @yield [result, err] Result & error if block supplied
33444
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleApiHttpBody] parsed result object
33445
+ # @yieldparam err [StandardError] error object if request failed
33446
+ #
33447
+ # @return [Google::Apis::AiplatformV1::GoogleApiHttpBody]
33448
+ #
33449
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33450
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33451
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
33452
+ def stream_reasoning_engine_query(name, google_cloud_aiplatform_v1_stream_query_reasoning_engine_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
33453
+ command = make_simple_command(:post, 'v1/{+name}:streamQuery', options)
33454
+ command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest::Representation
33455
+ command.request_object = google_cloud_aiplatform_v1_stream_query_reasoning_engine_request_object
33456
+ command.response_representation = Google::Apis::AiplatformV1::GoogleApiHttpBody::Representation
33457
+ command.response_class = Google::Apis::AiplatformV1::GoogleApiHttpBody
33458
+ command.params['name'] = name unless name.nil?
33459
+ command.query['fields'] = fields unless fields.nil?
33460
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
33461
+ execute_or_queue_command(command, &block)
33462
+ end
33463
+
33464
+ # Starts asynchronous cancellation on a long-running operation. The server makes
33465
+ # a best effort to cancel the operation, but success is not guaranteed. If the
33466
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
33467
+ # Clients can use Operations.GetOperation or other methods to check whether the
33468
+ # cancellation succeeded or whether the operation completed despite cancellation.
33469
+ # On successful cancellation, the operation is not deleted; instead, it becomes
33470
+ # an operation with an Operation.error value with a google.rpc.Status.code of `1`
33471
+ # , corresponding to `Code.CANCELLED`.
33472
+ # @param [String] name
33473
+ # The name of the operation resource to be cancelled.
33474
+ # @param [String] fields
33475
+ # Selector specifying which fields to include in a partial response.
33476
+ # @param [String] quota_user
33477
+ # Available to use for quota purposes for server-side applications. Can be any
33478
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
33479
+ # @param [Google::Apis::RequestOptions] options
33480
+ # Request-specific options
33481
+ #
33482
+ # @yield [result, err] Result & error if block supplied
33483
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleProtobufEmpty] parsed result object
33484
+ # @yieldparam err [StandardError] error object if request failed
33485
+ #
33486
+ # @return [Google::Apis::AiplatformV1::GoogleProtobufEmpty]
33487
+ #
33488
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33489
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33490
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
33491
+ def cancel_reasoning_engine_memory_operation(name, fields: nil, quota_user: nil, options: nil, &block)
33492
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
33493
+ command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
33494
+ command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
33495
+ command.params['name'] = name unless name.nil?
33496
+ command.query['fields'] = fields unless fields.nil?
33497
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
33498
+ execute_or_queue_command(command, &block)
33499
+ end
33500
+
33501
+ # Deletes a long-running operation. This method indicates that the client is no
33502
+ # longer interested in the operation result. It does not cancel the operation.
33503
+ # If the server doesn't support this method, it returns `google.rpc.Code.
33504
+ # UNIMPLEMENTED`.
33505
+ # @param [String] name
33506
+ # The name of the operation resource to be deleted.
33507
+ # @param [String] fields
33508
+ # Selector specifying which fields to include in a partial response.
33509
+ # @param [String] quota_user
33510
+ # Available to use for quota purposes for server-side applications. Can be any
33511
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
33512
+ # @param [Google::Apis::RequestOptions] options
33513
+ # Request-specific options
33514
+ #
33515
+ # @yield [result, err] Result & error if block supplied
33516
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleProtobufEmpty] parsed result object
33517
+ # @yieldparam err [StandardError] error object if request failed
33518
+ #
33519
+ # @return [Google::Apis::AiplatformV1::GoogleProtobufEmpty]
33520
+ #
33521
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33522
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33523
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
33524
+ def delete_reasoning_engine_memory_operation(name, fields: nil, quota_user: nil, options: nil, &block)
33525
+ command = make_simple_command(:delete, 'v1/{+name}', options)
33526
+ command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
33527
+ command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
33528
+ command.params['name'] = name unless name.nil?
33529
+ command.query['fields'] = fields unless fields.nil?
33530
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
33531
+ execute_or_queue_command(command, &block)
33532
+ end
33533
+
33534
+ # Gets the latest state of a long-running operation. Clients can use this method
33535
+ # to poll the operation result at intervals as recommended by the API service.
33536
+ # @param [String] name
33537
+ # The name of the operation resource.
33538
+ # @param [String] fields
33539
+ # Selector specifying which fields to include in a partial response.
33540
+ # @param [String] quota_user
33541
+ # Available to use for quota purposes for server-side applications. Can be any
33542
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
33543
+ # @param [Google::Apis::RequestOptions] options
33544
+ # Request-specific options
33545
+ #
33546
+ # @yield [result, err] Result & error if block supplied
33547
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
33548
+ # @yieldparam err [StandardError] error object if request failed
33549
+ #
33550
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
33551
+ #
33552
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33553
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33554
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
33555
+ def get_reasoning_engine_memory_operation(name, fields: nil, quota_user: nil, options: nil, &block)
33556
+ command = make_simple_command(:get, 'v1/{+name}', options)
33557
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
33558
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
33559
+ command.params['name'] = name unless name.nil?
33560
+ command.query['fields'] = fields unless fields.nil?
33561
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
33562
+ execute_or_queue_command(command, &block)
33563
+ end
33564
+
33565
+ # Lists operations that match the specified filter in the request. If the server
33566
+ # doesn't support this method, it returns `UNIMPLEMENTED`.
33567
+ # @param [String] name
33568
+ # The name of the operation's parent resource.
33569
+ # @param [String] filter
33570
+ # The standard list filter.
33571
+ # @param [Fixnum] page_size
33572
+ # The standard list page size.
33573
+ # @param [String] page_token
33574
+ # The standard list page token.
33575
+ # @param [Boolean] return_partial_success
33576
+ # When set to `true`, operations that are reachable are returned as normal, and
33577
+ # those that are unreachable are returned in the ListOperationsResponse.
33578
+ # unreachable field. This can only be `true` when reading across collections.
33579
+ # For example, when `parent` is set to `"projects/example/locations/-"`. This
33580
+ # field is not supported by default and will result in an `UNIMPLEMENTED` error
33581
+ # if set unless explicitly documented otherwise in service or product specific
33582
+ # documentation.
33583
+ # @param [String] fields
33584
+ # Selector specifying which fields to include in a partial response.
33585
+ # @param [String] quota_user
33586
+ # Available to use for quota purposes for server-side applications. Can be any
33587
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
33588
+ # @param [Google::Apis::RequestOptions] options
33589
+ # Request-specific options
33590
+ #
33591
+ # @yield [result, err] Result & error if block supplied
33592
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse] parsed result object
32980
33593
  # @yieldparam err [StandardError] error object if request failed
32981
33594
  #
32982
- # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1QueryReasoningEngineResponse]
33595
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse]
32983
33596
  #
32984
33597
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
32985
33598
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
32986
33599
  # @raise [Google::Apis::AuthorizationError] Authorization is required
32987
- def query_reasoning_engine(name, google_cloud_aiplatform_v1_query_reasoning_engine_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
32988
- command = make_simple_command(:post, 'v1/{+name}:query', options)
32989
- command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1QueryReasoningEngineRequest::Representation
32990
- command.request_object = google_cloud_aiplatform_v1_query_reasoning_engine_request_object
32991
- command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1QueryReasoningEngineResponse::Representation
32992
- command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1QueryReasoningEngineResponse
33600
+ def list_reasoning_engine_memory_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block)
33601
+ command = make_simple_command(:get, 'v1/{+name}/operations', options)
33602
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse::Representation
33603
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse
32993
33604
  command.params['name'] = name unless name.nil?
33605
+ command.query['filter'] = filter unless filter.nil?
33606
+ command.query['pageSize'] = page_size unless page_size.nil?
33607
+ command.query['pageToken'] = page_token unless page_token.nil?
33608
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
32994
33609
  command.query['fields'] = fields unless fields.nil?
32995
33610
  command.query['quotaUser'] = quota_user unless quota_user.nil?
32996
33611
  execute_or_queue_command(command, &block)
32997
33612
  end
32998
33613
 
32999
- # Streams queries using a reasoning engine.
33614
+ # Waits until the specified long-running operation is done or reaches at most a
33615
+ # specified timeout, returning the latest state. If the operation is already
33616
+ # done, the latest state is immediately returned. If the timeout specified is
33617
+ # greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If
33618
+ # the server does not support this method, it returns `google.rpc.Code.
33619
+ # UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return
33620
+ # the latest state before the specified timeout (including immediately), meaning
33621
+ # even an immediate response is no guarantee that the operation is done.
33000
33622
  # @param [String] name
33001
- # Required. The name of the ReasoningEngine resource to use. Format: `projects/`
33002
- # project`/locations/`location`/reasoningEngines/`reasoning_engine``
33003
- # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest] google_cloud_aiplatform_v1_stream_query_reasoning_engine_request_object
33623
+ # The name of the operation resource to wait on.
33624
+ # @param [String] timeout
33625
+ # The maximum duration to wait before timing out. If left blank, the wait will
33626
+ # be at most the time permitted by the underlying HTTP/RPC protocol. If RPC
33627
+ # context deadline is also specified, the shorter one will be used.
33004
33628
  # @param [String] fields
33005
33629
  # Selector specifying which fields to include in a partial response.
33006
33630
  # @param [String] quota_user
@@ -33010,21 +33634,20 @@ module Google
33010
33634
  # Request-specific options
33011
33635
  #
33012
33636
  # @yield [result, err] Result & error if block supplied
33013
- # @yieldparam result [Google::Apis::AiplatformV1::GoogleApiHttpBody] parsed result object
33637
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
33014
33638
  # @yieldparam err [StandardError] error object if request failed
33015
33639
  #
33016
- # @return [Google::Apis::AiplatformV1::GoogleApiHttpBody]
33640
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
33017
33641
  #
33018
33642
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33019
33643
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33020
33644
  # @raise [Google::Apis::AuthorizationError] Authorization is required
33021
- def stream_reasoning_engine_query(name, google_cloud_aiplatform_v1_stream_query_reasoning_engine_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
33022
- command = make_simple_command(:post, 'v1/{+name}:streamQuery', options)
33023
- command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest::Representation
33024
- command.request_object = google_cloud_aiplatform_v1_stream_query_reasoning_engine_request_object
33025
- command.response_representation = Google::Apis::AiplatformV1::GoogleApiHttpBody::Representation
33026
- command.response_class = Google::Apis::AiplatformV1::GoogleApiHttpBody
33645
+ def wait_reasoning_engine_memory_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block)
33646
+ command = make_simple_command(:post, 'v1/{+name}:wait', options)
33647
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
33648
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
33027
33649
  command.params['name'] = name unless name.nil?
33650
+ command.query['timeout'] = timeout unless timeout.nil?
33028
33651
  command.query['fields'] = fields unless fields.nil?
33029
33652
  command.query['quotaUser'] = quota_user unless quota_user.nil?
33030
33653
  execute_or_queue_command(command, &block)
@@ -33057,7 +33680,7 @@ module Google
33057
33680
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33058
33681
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33059
33682
  # @raise [Google::Apis::AuthorizationError] Authorization is required
33060
- def cancel_reasoning_engine_memory_operation(name, fields: nil, quota_user: nil, options: nil, &block)
33683
+ def cancel_reasoning_engine_operation(name, fields: nil, quota_user: nil, options: nil, &block)
33061
33684
  command = make_simple_command(:post, 'v1/{+name}:cancel', options)
33062
33685
  command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
33063
33686
  command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
@@ -33090,7 +33713,7 @@ module Google
33090
33713
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33091
33714
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33092
33715
  # @raise [Google::Apis::AuthorizationError] Authorization is required
33093
- def delete_reasoning_engine_memory_operation(name, fields: nil, quota_user: nil, options: nil, &block)
33716
+ def delete_reasoning_engine_operation(name, fields: nil, quota_user: nil, options: nil, &block)
33094
33717
  command = make_simple_command(:delete, 'v1/{+name}', options)
33095
33718
  command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
33096
33719
  command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
@@ -33121,7 +33744,7 @@ module Google
33121
33744
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33122
33745
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33123
33746
  # @raise [Google::Apis::AuthorizationError] Authorization is required
33124
- def get_reasoning_engine_memory_operation(name, fields: nil, quota_user: nil, options: nil, &block)
33747
+ def get_reasoning_engine_operation(name, fields: nil, quota_user: nil, options: nil, &block)
33125
33748
  command = make_simple_command(:get, 'v1/{+name}', options)
33126
33749
  command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
33127
33750
  command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
@@ -33166,7 +33789,7 @@ module Google
33166
33789
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33167
33790
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33168
33791
  # @raise [Google::Apis::AuthorizationError] Authorization is required
33169
- def list_reasoning_engine_memory_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block)
33792
+ def list_reasoning_engine_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block)
33170
33793
  command = make_simple_command(:get, 'v1/{+name}/operations', options)
33171
33794
  command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse::Representation
33172
33795
  command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse
@@ -33211,7 +33834,7 @@ module Google
33211
33834
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33212
33835
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33213
33836
  # @raise [Google::Apis::AuthorizationError] Authorization is required
33214
- def wait_reasoning_engine_memory_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block)
33837
+ def wait_reasoning_engine_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block)
33215
33838
  command = make_simple_command(:post, 'v1/{+name}:wait', options)
33216
33839
  command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
33217
33840
  command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
@@ -33222,6 +33845,185 @@ module Google
33222
33845
  execute_or_queue_command(command, &block)
33223
33846
  end
33224
33847
 
33848
+ # Creates a SandboxEnvironment in a given reasoning engine.
33849
+ # @param [String] parent
33850
+ # Required. The resource name of the reasoning engine to create the
33851
+ # SandboxEnvironment in. Format: `projects/`project`/locations/`location`/
33852
+ # reasoningEngines/`reasoning_engine``.
33853
+ # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SandboxEnvironment] google_cloud_aiplatform_v1_sandbox_environment_object
33854
+ # @param [String] fields
33855
+ # Selector specifying which fields to include in a partial response.
33856
+ # @param [String] quota_user
33857
+ # Available to use for quota purposes for server-side applications. Can be any
33858
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
33859
+ # @param [Google::Apis::RequestOptions] options
33860
+ # Request-specific options
33861
+ #
33862
+ # @yield [result, err] Result & error if block supplied
33863
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
33864
+ # @yieldparam err [StandardError] error object if request failed
33865
+ #
33866
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
33867
+ #
33868
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33869
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33870
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
33871
+ def create_reasoning_engine_sandbox_environment(parent, google_cloud_aiplatform_v1_sandbox_environment_object = nil, fields: nil, quota_user: nil, options: nil, &block)
33872
+ command = make_simple_command(:post, 'v1/{+parent}/sandboxEnvironments', options)
33873
+ command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SandboxEnvironment::Representation
33874
+ command.request_object = google_cloud_aiplatform_v1_sandbox_environment_object
33875
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
33876
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
33877
+ command.params['parent'] = parent unless parent.nil?
33878
+ command.query['fields'] = fields unless fields.nil?
33879
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
33880
+ execute_or_queue_command(command, &block)
33881
+ end
33882
+
33883
+ # Deletes the specific SandboxEnvironment.
33884
+ # @param [String] name
33885
+ # Required. The resource name of the SandboxEnvironment to delete. Format: `
33886
+ # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine`/
33887
+ # sandboxEnvironments/`sandbox_environment``
33888
+ # @param [String] fields
33889
+ # Selector specifying which fields to include in a partial response.
33890
+ # @param [String] quota_user
33891
+ # Available to use for quota purposes for server-side applications. Can be any
33892
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
33893
+ # @param [Google::Apis::RequestOptions] options
33894
+ # Request-specific options
33895
+ #
33896
+ # @yield [result, err] Result & error if block supplied
33897
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
33898
+ # @yieldparam err [StandardError] error object if request failed
33899
+ #
33900
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
33901
+ #
33902
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33903
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33904
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
33905
+ def delete_reasoning_engine_sandbox_environment(name, fields: nil, quota_user: nil, options: nil, &block)
33906
+ command = make_simple_command(:delete, 'v1/{+name}', options)
33907
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
33908
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
33909
+ command.params['name'] = name unless name.nil?
33910
+ command.query['fields'] = fields unless fields.nil?
33911
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
33912
+ execute_or_queue_command(command, &block)
33913
+ end
33914
+
33915
+ # Executes using a sandbox environment.
33916
+ # @param [String] name
33917
+ # Required. The resource name of the sandbox environment to execute. Format: `
33918
+ # projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine`/
33919
+ # sandboxEnvironments/`sandbox_environment``
33920
+ # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExecuteSandboxEnvironmentRequest] google_cloud_aiplatform_v1_execute_sandbox_environment_request_object
33921
+ # @param [String] fields
33922
+ # Selector specifying which fields to include in a partial response.
33923
+ # @param [String] quota_user
33924
+ # Available to use for quota purposes for server-side applications. Can be any
33925
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
33926
+ # @param [Google::Apis::RequestOptions] options
33927
+ # Request-specific options
33928
+ #
33929
+ # @yield [result, err] Result & error if block supplied
33930
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExecuteSandboxEnvironmentResponse] parsed result object
33931
+ # @yieldparam err [StandardError] error object if request failed
33932
+ #
33933
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExecuteSandboxEnvironmentResponse]
33934
+ #
33935
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33936
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33937
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
33938
+ def execute_reasoning_engine_sandbox_environment(name, google_cloud_aiplatform_v1_execute_sandbox_environment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
33939
+ command = make_simple_command(:post, 'v1/{+name}:execute', options)
33940
+ command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExecuteSandboxEnvironmentRequest::Representation
33941
+ command.request_object = google_cloud_aiplatform_v1_execute_sandbox_environment_request_object
33942
+ command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExecuteSandboxEnvironmentResponse::Representation
33943
+ command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExecuteSandboxEnvironmentResponse
33944
+ command.params['name'] = name unless name.nil?
33945
+ command.query['fields'] = fields unless fields.nil?
33946
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
33947
+ execute_or_queue_command(command, &block)
33948
+ end
33949
+
33950
+ # Gets details of the specific SandboxEnvironment.
33951
+ # @param [String] name
33952
+ # Required. The resource name of the sandbox environment. Format: `projects/`
33953
+ # project`/locations/`location`/reasoningEngines/`reasoning_engine`/
33954
+ # sandboxEnvironments/`sandbox_environment``
33955
+ # @param [String] fields
33956
+ # Selector specifying which fields to include in a partial response.
33957
+ # @param [String] quota_user
33958
+ # Available to use for quota purposes for server-side applications. Can be any
33959
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
33960
+ # @param [Google::Apis::RequestOptions] options
33961
+ # Request-specific options
33962
+ #
33963
+ # @yield [result, err] Result & error if block supplied
33964
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SandboxEnvironment] parsed result object
33965
+ # @yieldparam err [StandardError] error object if request failed
33966
+ #
33967
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SandboxEnvironment]
33968
+ #
33969
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33970
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33971
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
33972
+ def get_reasoning_engine_sandbox_environment(name, fields: nil, quota_user: nil, options: nil, &block)
33973
+ command = make_simple_command(:get, 'v1/{+name}', options)
33974
+ command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SandboxEnvironment::Representation
33975
+ command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SandboxEnvironment
33976
+ command.params['name'] = name unless name.nil?
33977
+ command.query['fields'] = fields unless fields.nil?
33978
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
33979
+ execute_or_queue_command(command, &block)
33980
+ end
33981
+
33982
+ # Lists SandboxEnvironments in a given reasoning engine.
33983
+ # @param [String] parent
33984
+ # Required. The resource name of the reasoning engine to list sandbox
33985
+ # environments from. Format: `projects/`project`/locations/`location`/
33986
+ # reasoningEngines/`reasoning_engine``
33987
+ # @param [String] filter
33988
+ # Optional. The standard list filter. More detail in [AIP-160](https://google.
33989
+ # aip.dev/160).
33990
+ # @param [Fixnum] page_size
33991
+ # Optional. The maximum number of SandboxEnvironments to return. The service may
33992
+ # return fewer than this value. If unspecified, at most 100 SandboxEnvironments
33993
+ # will be returned.
33994
+ # @param [String] page_token
33995
+ # Optional. The standard list page token, received from a previous `
33996
+ # ListSandboxEnvironments` call. Provide this to retrieve the subsequent page.
33997
+ # @param [String] fields
33998
+ # Selector specifying which fields to include in a partial response.
33999
+ # @param [String] quota_user
34000
+ # Available to use for quota purposes for server-side applications. Can be any
34001
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
34002
+ # @param [Google::Apis::RequestOptions] options
34003
+ # Request-specific options
34004
+ #
34005
+ # @yield [result, err] Result & error if block supplied
34006
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListSandboxEnvironmentsResponse] parsed result object
34007
+ # @yieldparam err [StandardError] error object if request failed
34008
+ #
34009
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListSandboxEnvironmentsResponse]
34010
+ #
34011
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
34012
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
34013
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
34014
+ def list_reasoning_engine_sandbox_environments(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
34015
+ command = make_simple_command(:get, 'v1/{+parent}/sandboxEnvironments', options)
34016
+ command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListSandboxEnvironmentsResponse::Representation
34017
+ command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListSandboxEnvironmentsResponse
34018
+ command.params['parent'] = parent unless parent.nil?
34019
+ command.query['filter'] = filter unless filter.nil?
34020
+ command.query['pageSize'] = page_size unless page_size.nil?
34021
+ command.query['pageToken'] = page_token unless page_token.nil?
34022
+ command.query['fields'] = fields unless fields.nil?
34023
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
34024
+ execute_or_queue_command(command, &block)
34025
+ end
34026
+
33225
34027
  # Starts asynchronous cancellation on a long-running operation. The server makes
33226
34028
  # a best effort to cancel the operation, but success is not guaranteed. If the
33227
34029
  # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
@@ -33249,7 +34051,7 @@ module Google
33249
34051
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33250
34052
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33251
34053
  # @raise [Google::Apis::AuthorizationError] Authorization is required
33252
- def cancel_reasoning_engine_operation(name, fields: nil, quota_user: nil, options: nil, &block)
34054
+ def cancel_reasoning_engine_sandbox_environment_operation(name, fields: nil, quota_user: nil, options: nil, &block)
33253
34055
  command = make_simple_command(:post, 'v1/{+name}:cancel', options)
33254
34056
  command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
33255
34057
  command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
@@ -33282,7 +34084,7 @@ module Google
33282
34084
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33283
34085
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33284
34086
  # @raise [Google::Apis::AuthorizationError] Authorization is required
33285
- def delete_reasoning_engine_operation(name, fields: nil, quota_user: nil, options: nil, &block)
34087
+ def delete_reasoning_engine_sandbox_environment_operation(name, fields: nil, quota_user: nil, options: nil, &block)
33286
34088
  command = make_simple_command(:delete, 'v1/{+name}', options)
33287
34089
  command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
33288
34090
  command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
@@ -33313,7 +34115,7 @@ module Google
33313
34115
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33314
34116
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33315
34117
  # @raise [Google::Apis::AuthorizationError] Authorization is required
33316
- def get_reasoning_engine_operation(name, fields: nil, quota_user: nil, options: nil, &block)
34118
+ def get_reasoning_engine_sandbox_environment_operation(name, fields: nil, quota_user: nil, options: nil, &block)
33317
34119
  command = make_simple_command(:get, 'v1/{+name}', options)
33318
34120
  command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
33319
34121
  command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
@@ -33323,55 +34125,6 @@ module Google
33323
34125
  execute_or_queue_command(command, &block)
33324
34126
  end
33325
34127
 
33326
- # Lists operations that match the specified filter in the request. If the server
33327
- # doesn't support this method, it returns `UNIMPLEMENTED`.
33328
- # @param [String] name
33329
- # The name of the operation's parent resource.
33330
- # @param [String] filter
33331
- # The standard list filter.
33332
- # @param [Fixnum] page_size
33333
- # The standard list page size.
33334
- # @param [String] page_token
33335
- # The standard list page token.
33336
- # @param [Boolean] return_partial_success
33337
- # When set to `true`, operations that are reachable are returned as normal, and
33338
- # those that are unreachable are returned in the ListOperationsResponse.
33339
- # unreachable field. This can only be `true` when reading across collections.
33340
- # For example, when `parent` is set to `"projects/example/locations/-"`. This
33341
- # field is not supported by default and will result in an `UNIMPLEMENTED` error
33342
- # if set unless explicitly documented otherwise in service or product specific
33343
- # documentation.
33344
- # @param [String] fields
33345
- # Selector specifying which fields to include in a partial response.
33346
- # @param [String] quota_user
33347
- # Available to use for quota purposes for server-side applications. Can be any
33348
- # arbitrary string assigned to a user, but should not exceed 40 characters.
33349
- # @param [Google::Apis::RequestOptions] options
33350
- # Request-specific options
33351
- #
33352
- # @yield [result, err] Result & error if block supplied
33353
- # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse] parsed result object
33354
- # @yieldparam err [StandardError] error object if request failed
33355
- #
33356
- # @return [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse]
33357
- #
33358
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33359
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33360
- # @raise [Google::Apis::AuthorizationError] Authorization is required
33361
- def list_reasoning_engine_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block)
33362
- command = make_simple_command(:get, 'v1/{+name}/operations', options)
33363
- command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse::Representation
33364
- command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse
33365
- command.params['name'] = name unless name.nil?
33366
- command.query['filter'] = filter unless filter.nil?
33367
- command.query['pageSize'] = page_size unless page_size.nil?
33368
- command.query['pageToken'] = page_token unless page_token.nil?
33369
- command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
33370
- command.query['fields'] = fields unless fields.nil?
33371
- command.query['quotaUser'] = quota_user unless quota_user.nil?
33372
- execute_or_queue_command(command, &block)
33373
- end
33374
-
33375
34128
  # Waits until the specified long-running operation is done or reaches at most a
33376
34129
  # specified timeout, returning the latest state. If the operation is already
33377
34130
  # done, the latest state is immediately returned. If the timeout specified is
@@ -33403,7 +34156,7 @@ module Google
33403
34156
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33404
34157
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33405
34158
  # @raise [Google::Apis::AuthorizationError] Authorization is required
33406
- def wait_reasoning_engine_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block)
34159
+ def wait_reasoning_engine_sandbox_environment_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block)
33407
34160
  command = make_simple_command(:post, 'v1/{+name}:wait', options)
33408
34161
  command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
33409
34162
  command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation