google-apis-aiplatform_v1 0.10.0 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -33,6 +33,8 @@ module Google
33
33
  #
34
34
  # @see https://cloud.google.com/vertex-ai/
35
35
  class AiplatformService < Google::Apis::Core::BaseService
36
+ DEFAULT_ENDPOINT_TEMPLATE = "https://aiplatform.$UNIVERSE_DOMAIN$/"
37
+
36
38
  # @return [String]
37
39
  # API key. Your API key identifies your project and provides you with API access,
38
40
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
@@ -44,7 +46,7 @@ module Google
44
46
  attr_accessor :quota_user
45
47
 
46
48
  def initialize
47
- super('https://aiplatform.googleapis.com/', '',
49
+ super(DEFAULT_ENDPOINT_TEMPLATE, '',
48
50
  client_name: 'google-apis-aiplatform_v1',
49
51
  client_version: Google::Apis::AiplatformV1::GEM_VERSION)
50
52
  @batch_path = 'batch'
@@ -3660,6 +3662,40 @@ module Google
3660
3662
  execute_or_queue_command(command, &block)
3661
3663
  end
3662
3664
 
3665
+ #
3666
+ # @param [String] endpoint
3667
+ # Required. The name of the Endpoint requested to serve the prediction. Format: `
3668
+ # projects/`project`/locations/`location`/endpoints/`endpoint``
3669
+ # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1StreamRawPredictRequest] google_cloud_aiplatform_v1_stream_raw_predict_request_object
3670
+ # @param [String] fields
3671
+ # Selector specifying which fields to include in a partial response.
3672
+ # @param [String] quota_user
3673
+ # Available to use for quota purposes for server-side applications. Can be any
3674
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3675
+ # @param [Google::Apis::RequestOptions] options
3676
+ # Request-specific options
3677
+ #
3678
+ # @yield [result, err] Result & error if block supplied
3679
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleApiHttpBody] parsed result object
3680
+ # @yieldparam err [StandardError] error object if request failed
3681
+ #
3682
+ # @return [Google::Apis::AiplatformV1::GoogleApiHttpBody]
3683
+ #
3684
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3685
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3686
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3687
+ def stream_project_location_endpoint_raw_predict(endpoint, google_cloud_aiplatform_v1_stream_raw_predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3688
+ command = make_simple_command(:post, 'v1/{+endpoint}:streamRawPredict', options)
3689
+ command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1StreamRawPredictRequest::Representation
3690
+ command.request_object = google_cloud_aiplatform_v1_stream_raw_predict_request_object
3691
+ command.response_representation = Google::Apis::AiplatformV1::GoogleApiHttpBody::Representation
3692
+ command.response_class = Google::Apis::AiplatformV1::GoogleApiHttpBody
3693
+ command.params['endpoint'] = endpoint unless endpoint.nil?
3694
+ command.query['fields'] = fields unless fields.nil?
3695
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3696
+ execute_or_queue_command(command, &block)
3697
+ end
3698
+
3663
3699
  # Undeploys a Model from an Endpoint, removing a DeployedModel from it, and
3664
3700
  # freeing all resources it's using.
3665
3701
  # @param [String] endpoint
@@ -4607,7 +4643,7 @@ module Google
4607
4643
  # Creates a new FeatureOnlineStore in a given project and location.
4608
4644
  # @param [String] parent
4609
4645
  # Required. The resource name of the Location to create FeatureOnlineStores.
4610
- # Format: `projects/`project`/locations/`location`'`
4646
+ # Format: `projects/`project`/locations/`location``
4611
4647
  # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FeatureOnlineStore] google_cloud_aiplatform_v1_feature_online_store_object
4612
4648
  # @param [String] feature_online_store_id
4613
4649
  # Required. The ID to use for this FeatureOnlineStore, which will become the
@@ -9132,6 +9168,189 @@ module Google
9132
9168
  execute_or_queue_command(command, &block)
9133
9169
  end
9134
9170
 
9171
+ # Starts asynchronous cancellation on a long-running operation. The server makes
9172
+ # a best effort to cancel the operation, but success is not guaranteed. If the
9173
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
9174
+ # Clients can use Operations.GetOperation or other methods to check whether the
9175
+ # cancellation succeeded or whether the operation completed despite cancellation.
9176
+ # On successful cancellation, the operation is not deleted; instead, it becomes
9177
+ # an operation with an Operation.error value with a google.rpc.Status.code of 1,
9178
+ # corresponding to `Code.CANCELLED`.
9179
+ # @param [String] name
9180
+ # The name of the operation resource to be cancelled.
9181
+ # @param [String] fields
9182
+ # Selector specifying which fields to include in a partial response.
9183
+ # @param [String] quota_user
9184
+ # Available to use for quota purposes for server-side applications. Can be any
9185
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9186
+ # @param [Google::Apis::RequestOptions] options
9187
+ # Request-specific options
9188
+ #
9189
+ # @yield [result, err] Result & error if block supplied
9190
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleProtobufEmpty] parsed result object
9191
+ # @yieldparam err [StandardError] error object if request failed
9192
+ #
9193
+ # @return [Google::Apis::AiplatformV1::GoogleProtobufEmpty]
9194
+ #
9195
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9196
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9197
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9198
+ def cancel_project_location_metadata_store_artifact_operation(name, fields: nil, quota_user: nil, options: nil, &block)
9199
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
9200
+ command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
9201
+ command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
9202
+ command.params['name'] = name unless name.nil?
9203
+ command.query['fields'] = fields unless fields.nil?
9204
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9205
+ execute_or_queue_command(command, &block)
9206
+ end
9207
+
9208
+ # Deletes a long-running operation. This method indicates that the client is no
9209
+ # longer interested in the operation result. It does not cancel the operation.
9210
+ # If the server doesn't support this method, it returns `google.rpc.Code.
9211
+ # UNIMPLEMENTED`.
9212
+ # @param [String] name
9213
+ # The name of the operation resource to be deleted.
9214
+ # @param [String] fields
9215
+ # Selector specifying which fields to include in a partial response.
9216
+ # @param [String] quota_user
9217
+ # Available to use for quota purposes for server-side applications. Can be any
9218
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9219
+ # @param [Google::Apis::RequestOptions] options
9220
+ # Request-specific options
9221
+ #
9222
+ # @yield [result, err] Result & error if block supplied
9223
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleProtobufEmpty] parsed result object
9224
+ # @yieldparam err [StandardError] error object if request failed
9225
+ #
9226
+ # @return [Google::Apis::AiplatformV1::GoogleProtobufEmpty]
9227
+ #
9228
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9229
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9230
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9231
+ def delete_project_location_metadata_store_artifact_operation(name, fields: nil, quota_user: nil, options: nil, &block)
9232
+ command = make_simple_command(:delete, 'v1/{+name}', options)
9233
+ command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
9234
+ command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
9235
+ command.params['name'] = name unless name.nil?
9236
+ command.query['fields'] = fields unless fields.nil?
9237
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9238
+ execute_or_queue_command(command, &block)
9239
+ end
9240
+
9241
+ # Gets the latest state of a long-running operation. Clients can use this method
9242
+ # to poll the operation result at intervals as recommended by the API service.
9243
+ # @param [String] name
9244
+ # The name of the operation resource.
9245
+ # @param [String] fields
9246
+ # Selector specifying which fields to include in a partial response.
9247
+ # @param [String] quota_user
9248
+ # Available to use for quota purposes for server-side applications. Can be any
9249
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9250
+ # @param [Google::Apis::RequestOptions] options
9251
+ # Request-specific options
9252
+ #
9253
+ # @yield [result, err] Result & error if block supplied
9254
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
9255
+ # @yieldparam err [StandardError] error object if request failed
9256
+ #
9257
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
9258
+ #
9259
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9260
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9261
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9262
+ def get_project_location_metadata_store_artifact_operation(name, fields: nil, quota_user: nil, options: nil, &block)
9263
+ command = make_simple_command(:get, 'v1/{+name}', options)
9264
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
9265
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
9266
+ command.params['name'] = name unless name.nil?
9267
+ command.query['fields'] = fields unless fields.nil?
9268
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9269
+ execute_or_queue_command(command, &block)
9270
+ end
9271
+
9272
+ # Lists operations that match the specified filter in the request. If the server
9273
+ # doesn't support this method, it returns `UNIMPLEMENTED`.
9274
+ # @param [String] name
9275
+ # The name of the operation's parent resource.
9276
+ # @param [String] filter
9277
+ # The standard list filter.
9278
+ # @param [Fixnum] page_size
9279
+ # The standard list page size.
9280
+ # @param [String] page_token
9281
+ # The standard list page token.
9282
+ # @param [String] fields
9283
+ # Selector specifying which fields to include in a partial response.
9284
+ # @param [String] quota_user
9285
+ # Available to use for quota purposes for server-side applications. Can be any
9286
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9287
+ # @param [Google::Apis::RequestOptions] options
9288
+ # Request-specific options
9289
+ #
9290
+ # @yield [result, err] Result & error if block supplied
9291
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse] parsed result object
9292
+ # @yieldparam err [StandardError] error object if request failed
9293
+ #
9294
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse]
9295
+ #
9296
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9297
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9298
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9299
+ def list_project_location_metadata_store_artifact_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
9300
+ command = make_simple_command(:get, 'v1/{+name}/operations', options)
9301
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse::Representation
9302
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse
9303
+ command.params['name'] = name unless name.nil?
9304
+ command.query['filter'] = filter unless filter.nil?
9305
+ command.query['pageSize'] = page_size unless page_size.nil?
9306
+ command.query['pageToken'] = page_token unless page_token.nil?
9307
+ command.query['fields'] = fields unless fields.nil?
9308
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9309
+ execute_or_queue_command(command, &block)
9310
+ end
9311
+
9312
+ # Waits until the specified long-running operation is done or reaches at most a
9313
+ # specified timeout, returning the latest state. If the operation is already
9314
+ # done, the latest state is immediately returned. If the timeout specified is
9315
+ # greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If
9316
+ # the server does not support this method, it returns `google.rpc.Code.
9317
+ # UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return
9318
+ # the latest state before the specified timeout (including immediately), meaning
9319
+ # even an immediate response is no guarantee that the operation is done.
9320
+ # @param [String] name
9321
+ # The name of the operation resource to wait on.
9322
+ # @param [String] timeout
9323
+ # The maximum duration to wait before timing out. If left blank, the wait will
9324
+ # be at most the time permitted by the underlying HTTP/RPC protocol. If RPC
9325
+ # context deadline is also specified, the shorter one will be used.
9326
+ # @param [String] fields
9327
+ # Selector specifying which fields to include in a partial response.
9328
+ # @param [String] quota_user
9329
+ # Available to use for quota purposes for server-side applications. Can be any
9330
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9331
+ # @param [Google::Apis::RequestOptions] options
9332
+ # Request-specific options
9333
+ #
9334
+ # @yield [result, err] Result & error if block supplied
9335
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
9336
+ # @yieldparam err [StandardError] error object if request failed
9337
+ #
9338
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
9339
+ #
9340
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9341
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9342
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9343
+ def wait_project_location_metadata_store_artifact_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block)
9344
+ command = make_simple_command(:post, 'v1/{+name}:wait', options)
9345
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
9346
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
9347
+ command.params['name'] = name unless name.nil?
9348
+ command.query['timeout'] = timeout unless timeout.nil?
9349
+ command.query['fields'] = fields unless fields.nil?
9350
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9351
+ execute_or_queue_command(command, &block)
9352
+ end
9353
+
9135
9354
  # Adds a set of Artifacts and Executions to a Context. If any of the Artifacts
9136
9355
  # or Executions have already been added to a Context, they are simply skipped.
9137
9356
  # @param [String] context
@@ -9534,14 +9753,16 @@ module Google
9534
9753
  execute_or_queue_command(command, &block)
9535
9754
  end
9536
9755
 
9537
- # Adds Events to the specified Execution. An Event indicates whether an Artifact
9538
- # was used as an input or output for an Execution. If an Event already exists
9539
- # between the Execution and the Artifact, the Event is skipped.
9540
- # @param [String] execution
9541
- # Required. The resource name of the Execution that the Events connect Artifacts
9542
- # with. Format: `projects/`project`/locations/`location`/metadataStores/`
9543
- # metadatastore`/executions/`execution``
9544
- # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AddExecutionEventsRequest] google_cloud_aiplatform_v1_add_execution_events_request_object
9756
+ # Starts asynchronous cancellation on a long-running operation. The server makes
9757
+ # a best effort to cancel the operation, but success is not guaranteed. If the
9758
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
9759
+ # Clients can use Operations.GetOperation or other methods to check whether the
9760
+ # cancellation succeeded or whether the operation completed despite cancellation.
9761
+ # On successful cancellation, the operation is not deleted; instead, it becomes
9762
+ # an operation with an Operation.error value with a google.rpc.Status.code of 1,
9763
+ # corresponding to `Code.CANCELLED`.
9764
+ # @param [String] name
9765
+ # The name of the operation resource to be cancelled.
9545
9766
  # @param [String] fields
9546
9767
  # Selector specifying which fields to include in a partial response.
9547
9768
  # @param [String] quota_user
@@ -9551,41 +9772,222 @@ module Google
9551
9772
  # Request-specific options
9552
9773
  #
9553
9774
  # @yield [result, err] Result & error if block supplied
9554
- # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AddExecutionEventsResponse] parsed result object
9775
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleProtobufEmpty] parsed result object
9555
9776
  # @yieldparam err [StandardError] error object if request failed
9556
9777
  #
9557
- # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AddExecutionEventsResponse]
9778
+ # @return [Google::Apis::AiplatformV1::GoogleProtobufEmpty]
9558
9779
  #
9559
9780
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9560
9781
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9561
9782
  # @raise [Google::Apis::AuthorizationError] Authorization is required
9562
- def add_project_location_metadata_store_execution_execution_events(execution, google_cloud_aiplatform_v1_add_execution_events_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
9563
- command = make_simple_command(:post, 'v1/{+execution}:addExecutionEvents', options)
9564
- command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AddExecutionEventsRequest::Representation
9565
- command.request_object = google_cloud_aiplatform_v1_add_execution_events_request_object
9566
- command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AddExecutionEventsResponse::Representation
9567
- command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AddExecutionEventsResponse
9568
- command.params['execution'] = execution unless execution.nil?
9783
+ def cancel_project_location_metadata_store_context_operation(name, fields: nil, quota_user: nil, options: nil, &block)
9784
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
9785
+ command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
9786
+ command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
9787
+ command.params['name'] = name unless name.nil?
9569
9788
  command.query['fields'] = fields unless fields.nil?
9570
9789
  command.query['quotaUser'] = quota_user unless quota_user.nil?
9571
9790
  execute_or_queue_command(command, &block)
9572
9791
  end
9573
9792
 
9574
- # Creates an Execution associated with a MetadataStore.
9575
- # @param [String] parent
9576
- # Required. The resource name of the MetadataStore where the Execution should be
9577
- # created. Format: `projects/`project`/locations/`location`/metadataStores/`
9578
- # metadatastore``
9579
- # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Execution] google_cloud_aiplatform_v1_execution_object
9580
- # @param [String] execution_id
9581
- # The `execution` portion of the resource name with the format: `projects/`
9582
- # project`/locations/`location`/metadataStores/`metadatastore`/executions/`
9583
- # execution`` If not provided, the Execution's ID will be a UUID generated by
9584
- # the service. Must be 4-128 characters in length. Valid characters are `/a-z-/`.
9585
- # Must be unique across all Executions in the parent MetadataStore. (Otherwise
9586
- # the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the caller
9587
- # can't view the preexisting Execution.)
9588
- # @param [String] fields
9793
+ # Deletes a long-running operation. This method indicates that the client is no
9794
+ # longer interested in the operation result. It does not cancel the operation.
9795
+ # If the server doesn't support this method, it returns `google.rpc.Code.
9796
+ # UNIMPLEMENTED`.
9797
+ # @param [String] name
9798
+ # The name of the operation resource to be deleted.
9799
+ # @param [String] fields
9800
+ # Selector specifying which fields to include in a partial response.
9801
+ # @param [String] quota_user
9802
+ # Available to use for quota purposes for server-side applications. Can be any
9803
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9804
+ # @param [Google::Apis::RequestOptions] options
9805
+ # Request-specific options
9806
+ #
9807
+ # @yield [result, err] Result & error if block supplied
9808
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleProtobufEmpty] parsed result object
9809
+ # @yieldparam err [StandardError] error object if request failed
9810
+ #
9811
+ # @return [Google::Apis::AiplatformV1::GoogleProtobufEmpty]
9812
+ #
9813
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9814
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9815
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9816
+ def delete_project_location_metadata_store_context_operation(name, fields: nil, quota_user: nil, options: nil, &block)
9817
+ command = make_simple_command(:delete, 'v1/{+name}', options)
9818
+ command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
9819
+ command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
9820
+ command.params['name'] = name unless name.nil?
9821
+ command.query['fields'] = fields unless fields.nil?
9822
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9823
+ execute_or_queue_command(command, &block)
9824
+ end
9825
+
9826
+ # Gets the latest state of a long-running operation. Clients can use this method
9827
+ # to poll the operation result at intervals as recommended by the API service.
9828
+ # @param [String] name
9829
+ # The name of the operation resource.
9830
+ # @param [String] fields
9831
+ # Selector specifying which fields to include in a partial response.
9832
+ # @param [String] quota_user
9833
+ # Available to use for quota purposes for server-side applications. Can be any
9834
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9835
+ # @param [Google::Apis::RequestOptions] options
9836
+ # Request-specific options
9837
+ #
9838
+ # @yield [result, err] Result & error if block supplied
9839
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
9840
+ # @yieldparam err [StandardError] error object if request failed
9841
+ #
9842
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
9843
+ #
9844
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9845
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9846
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9847
+ def get_project_location_metadata_store_context_operation(name, fields: nil, quota_user: nil, options: nil, &block)
9848
+ command = make_simple_command(:get, 'v1/{+name}', options)
9849
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
9850
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
9851
+ command.params['name'] = name unless name.nil?
9852
+ command.query['fields'] = fields unless fields.nil?
9853
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9854
+ execute_or_queue_command(command, &block)
9855
+ end
9856
+
9857
+ # Lists operations that match the specified filter in the request. If the server
9858
+ # doesn't support this method, it returns `UNIMPLEMENTED`.
9859
+ # @param [String] name
9860
+ # The name of the operation's parent resource.
9861
+ # @param [String] filter
9862
+ # The standard list filter.
9863
+ # @param [Fixnum] page_size
9864
+ # The standard list page size.
9865
+ # @param [String] page_token
9866
+ # The standard list page token.
9867
+ # @param [String] fields
9868
+ # Selector specifying which fields to include in a partial response.
9869
+ # @param [String] quota_user
9870
+ # Available to use for quota purposes for server-side applications. Can be any
9871
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9872
+ # @param [Google::Apis::RequestOptions] options
9873
+ # Request-specific options
9874
+ #
9875
+ # @yield [result, err] Result & error if block supplied
9876
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse] parsed result object
9877
+ # @yieldparam err [StandardError] error object if request failed
9878
+ #
9879
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse]
9880
+ #
9881
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9882
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9883
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9884
+ def list_project_location_metadata_store_context_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
9885
+ command = make_simple_command(:get, 'v1/{+name}/operations', options)
9886
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse::Representation
9887
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse
9888
+ command.params['name'] = name unless name.nil?
9889
+ command.query['filter'] = filter unless filter.nil?
9890
+ command.query['pageSize'] = page_size unless page_size.nil?
9891
+ command.query['pageToken'] = page_token unless page_token.nil?
9892
+ command.query['fields'] = fields unless fields.nil?
9893
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9894
+ execute_or_queue_command(command, &block)
9895
+ end
9896
+
9897
+ # Waits until the specified long-running operation is done or reaches at most a
9898
+ # specified timeout, returning the latest state. If the operation is already
9899
+ # done, the latest state is immediately returned. If the timeout specified is
9900
+ # greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If
9901
+ # the server does not support this method, it returns `google.rpc.Code.
9902
+ # UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return
9903
+ # the latest state before the specified timeout (including immediately), meaning
9904
+ # even an immediate response is no guarantee that the operation is done.
9905
+ # @param [String] name
9906
+ # The name of the operation resource to wait on.
9907
+ # @param [String] timeout
9908
+ # The maximum duration to wait before timing out. If left blank, the wait will
9909
+ # be at most the time permitted by the underlying HTTP/RPC protocol. If RPC
9910
+ # context deadline is also specified, the shorter one will be used.
9911
+ # @param [String] fields
9912
+ # Selector specifying which fields to include in a partial response.
9913
+ # @param [String] quota_user
9914
+ # Available to use for quota purposes for server-side applications. Can be any
9915
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9916
+ # @param [Google::Apis::RequestOptions] options
9917
+ # Request-specific options
9918
+ #
9919
+ # @yield [result, err] Result & error if block supplied
9920
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
9921
+ # @yieldparam err [StandardError] error object if request failed
9922
+ #
9923
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
9924
+ #
9925
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9926
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9927
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9928
+ def wait_project_location_metadata_store_context_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block)
9929
+ command = make_simple_command(:post, 'v1/{+name}:wait', options)
9930
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
9931
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
9932
+ command.params['name'] = name unless name.nil?
9933
+ command.query['timeout'] = timeout unless timeout.nil?
9934
+ command.query['fields'] = fields unless fields.nil?
9935
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9936
+ execute_or_queue_command(command, &block)
9937
+ end
9938
+
9939
+ # Adds Events to the specified Execution. An Event indicates whether an Artifact
9940
+ # was used as an input or output for an Execution. If an Event already exists
9941
+ # between the Execution and the Artifact, the Event is skipped.
9942
+ # @param [String] execution
9943
+ # Required. The resource name of the Execution that the Events connect Artifacts
9944
+ # with. Format: `projects/`project`/locations/`location`/metadataStores/`
9945
+ # metadatastore`/executions/`execution``
9946
+ # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AddExecutionEventsRequest] google_cloud_aiplatform_v1_add_execution_events_request_object
9947
+ # @param [String] fields
9948
+ # Selector specifying which fields to include in a partial response.
9949
+ # @param [String] quota_user
9950
+ # Available to use for quota purposes for server-side applications. Can be any
9951
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9952
+ # @param [Google::Apis::RequestOptions] options
9953
+ # Request-specific options
9954
+ #
9955
+ # @yield [result, err] Result & error if block supplied
9956
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AddExecutionEventsResponse] parsed result object
9957
+ # @yieldparam err [StandardError] error object if request failed
9958
+ #
9959
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AddExecutionEventsResponse]
9960
+ #
9961
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9962
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9963
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9964
+ def add_project_location_metadata_store_execution_execution_events(execution, google_cloud_aiplatform_v1_add_execution_events_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
9965
+ command = make_simple_command(:post, 'v1/{+execution}:addExecutionEvents', options)
9966
+ command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AddExecutionEventsRequest::Representation
9967
+ command.request_object = google_cloud_aiplatform_v1_add_execution_events_request_object
9968
+ command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AddExecutionEventsResponse::Representation
9969
+ command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AddExecutionEventsResponse
9970
+ command.params['execution'] = execution unless execution.nil?
9971
+ command.query['fields'] = fields unless fields.nil?
9972
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9973
+ execute_or_queue_command(command, &block)
9974
+ end
9975
+
9976
+ # Creates an Execution associated with a MetadataStore.
9977
+ # @param [String] parent
9978
+ # Required. The resource name of the MetadataStore where the Execution should be
9979
+ # created. Format: `projects/`project`/locations/`location`/metadataStores/`
9980
+ # metadatastore``
9981
+ # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Execution] google_cloud_aiplatform_v1_execution_object
9982
+ # @param [String] execution_id
9983
+ # The `execution` portion of the resource name with the format: `projects/`
9984
+ # project`/locations/`location`/metadataStores/`metadatastore`/executions/`
9985
+ # execution`` If not provided, the Execution's ID will be a UUID generated by
9986
+ # the service. Must be 4-128 characters in length. Valid characters are `/a-z-/`.
9987
+ # Must be unique across all Executions in the parent MetadataStore. (Otherwise
9988
+ # the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the caller
9989
+ # can't view the preexisting Execution.)
9990
+ # @param [String] fields
9589
9991
  # Selector specifying which fields to include in a partial response.
9590
9992
  # @param [String] quota_user
9591
9993
  # Available to use for quota purposes for server-side applications. Can be any
@@ -9808,29 +10210,211 @@ module Google
9808
10210
  # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
9809
10211
  # @yieldparam err [StandardError] error object if request failed
9810
10212
  #
9811
- # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
10213
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
10214
+ #
10215
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10216
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10217
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10218
+ def purge_project_location_metadata_store_execution(parent, google_cloud_aiplatform_v1_purge_executions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
10219
+ command = make_simple_command(:post, 'v1/{+parent}/executions:purge', options)
10220
+ command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PurgeExecutionsRequest::Representation
10221
+ command.request_object = google_cloud_aiplatform_v1_purge_executions_request_object
10222
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
10223
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
10224
+ command.params['parent'] = parent unless parent.nil?
10225
+ command.query['fields'] = fields unless fields.nil?
10226
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10227
+ execute_or_queue_command(command, &block)
10228
+ end
10229
+
10230
+ # Obtains the set of input and output Artifacts for this Execution, in the form
10231
+ # of LineageSubgraph that also contains the Execution and connecting Events.
10232
+ # @param [String] execution
10233
+ # Required. The resource name of the Execution whose input and output Artifacts
10234
+ # should be retrieved as a LineageSubgraph. Format: `projects/`project`/
10235
+ # locations/`location`/metadataStores/`metadatastore`/executions/`execution``
10236
+ # @param [String] fields
10237
+ # Selector specifying which fields to include in a partial response.
10238
+ # @param [String] quota_user
10239
+ # Available to use for quota purposes for server-side applications. Can be any
10240
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
10241
+ # @param [Google::Apis::RequestOptions] options
10242
+ # Request-specific options
10243
+ #
10244
+ # @yield [result, err] Result & error if block supplied
10245
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1LineageSubgraph] parsed result object
10246
+ # @yieldparam err [StandardError] error object if request failed
10247
+ #
10248
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1LineageSubgraph]
10249
+ #
10250
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10251
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10252
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10253
+ def query_project_location_metadata_store_execution_execution_inputs_and_outputs(execution, fields: nil, quota_user: nil, options: nil, &block)
10254
+ command = make_simple_command(:get, 'v1/{+execution}:queryExecutionInputsAndOutputs', options)
10255
+ command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1LineageSubgraph::Representation
10256
+ command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1LineageSubgraph
10257
+ command.params['execution'] = execution unless execution.nil?
10258
+ command.query['fields'] = fields unless fields.nil?
10259
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10260
+ execute_or_queue_command(command, &block)
10261
+ end
10262
+
10263
+ # Starts asynchronous cancellation on a long-running operation. The server makes
10264
+ # a best effort to cancel the operation, but success is not guaranteed. If the
10265
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
10266
+ # Clients can use Operations.GetOperation or other methods to check whether the
10267
+ # cancellation succeeded or whether the operation completed despite cancellation.
10268
+ # On successful cancellation, the operation is not deleted; instead, it becomes
10269
+ # an operation with an Operation.error value with a google.rpc.Status.code of 1,
10270
+ # corresponding to `Code.CANCELLED`.
10271
+ # @param [String] name
10272
+ # The name of the operation resource to be cancelled.
10273
+ # @param [String] fields
10274
+ # Selector specifying which fields to include in a partial response.
10275
+ # @param [String] quota_user
10276
+ # Available to use for quota purposes for server-side applications. Can be any
10277
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
10278
+ # @param [Google::Apis::RequestOptions] options
10279
+ # Request-specific options
10280
+ #
10281
+ # @yield [result, err] Result & error if block supplied
10282
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleProtobufEmpty] parsed result object
10283
+ # @yieldparam err [StandardError] error object if request failed
10284
+ #
10285
+ # @return [Google::Apis::AiplatformV1::GoogleProtobufEmpty]
10286
+ #
10287
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10288
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10289
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10290
+ def cancel_project_location_metadata_store_execution_operation(name, fields: nil, quota_user: nil, options: nil, &block)
10291
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
10292
+ command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
10293
+ command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
10294
+ command.params['name'] = name unless name.nil?
10295
+ command.query['fields'] = fields unless fields.nil?
10296
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10297
+ execute_or_queue_command(command, &block)
10298
+ end
10299
+
10300
+ # Deletes a long-running operation. This method indicates that the client is no
10301
+ # longer interested in the operation result. It does not cancel the operation.
10302
+ # If the server doesn't support this method, it returns `google.rpc.Code.
10303
+ # UNIMPLEMENTED`.
10304
+ # @param [String] name
10305
+ # The name of the operation resource to be deleted.
10306
+ # @param [String] fields
10307
+ # Selector specifying which fields to include in a partial response.
10308
+ # @param [String] quota_user
10309
+ # Available to use for quota purposes for server-side applications. Can be any
10310
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
10311
+ # @param [Google::Apis::RequestOptions] options
10312
+ # Request-specific options
10313
+ #
10314
+ # @yield [result, err] Result & error if block supplied
10315
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleProtobufEmpty] parsed result object
10316
+ # @yieldparam err [StandardError] error object if request failed
10317
+ #
10318
+ # @return [Google::Apis::AiplatformV1::GoogleProtobufEmpty]
10319
+ #
10320
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10321
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10322
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10323
+ def delete_project_location_metadata_store_execution_operation(name, fields: nil, quota_user: nil, options: nil, &block)
10324
+ command = make_simple_command(:delete, 'v1/{+name}', options)
10325
+ command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
10326
+ command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
10327
+ command.params['name'] = name unless name.nil?
10328
+ command.query['fields'] = fields unless fields.nil?
10329
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10330
+ execute_or_queue_command(command, &block)
10331
+ end
10332
+
10333
+ # Gets the latest state of a long-running operation. Clients can use this method
10334
+ # to poll the operation result at intervals as recommended by the API service.
10335
+ # @param [String] name
10336
+ # The name of the operation resource.
10337
+ # @param [String] fields
10338
+ # Selector specifying which fields to include in a partial response.
10339
+ # @param [String] quota_user
10340
+ # Available to use for quota purposes for server-side applications. Can be any
10341
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
10342
+ # @param [Google::Apis::RequestOptions] options
10343
+ # Request-specific options
10344
+ #
10345
+ # @yield [result, err] Result & error if block supplied
10346
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
10347
+ # @yieldparam err [StandardError] error object if request failed
10348
+ #
10349
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
10350
+ #
10351
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10352
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10353
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10354
+ def get_project_location_metadata_store_execution_operation(name, fields: nil, quota_user: nil, options: nil, &block)
10355
+ command = make_simple_command(:get, 'v1/{+name}', options)
10356
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
10357
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
10358
+ command.params['name'] = name unless name.nil?
10359
+ command.query['fields'] = fields unless fields.nil?
10360
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10361
+ execute_or_queue_command(command, &block)
10362
+ end
10363
+
10364
+ # Lists operations that match the specified filter in the request. If the server
10365
+ # doesn't support this method, it returns `UNIMPLEMENTED`.
10366
+ # @param [String] name
10367
+ # The name of the operation's parent resource.
10368
+ # @param [String] filter
10369
+ # The standard list filter.
10370
+ # @param [Fixnum] page_size
10371
+ # The standard list page size.
10372
+ # @param [String] page_token
10373
+ # The standard list page token.
10374
+ # @param [String] fields
10375
+ # Selector specifying which fields to include in a partial response.
10376
+ # @param [String] quota_user
10377
+ # Available to use for quota purposes for server-side applications. Can be any
10378
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
10379
+ # @param [Google::Apis::RequestOptions] options
10380
+ # Request-specific options
10381
+ #
10382
+ # @yield [result, err] Result & error if block supplied
10383
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse] parsed result object
10384
+ # @yieldparam err [StandardError] error object if request failed
10385
+ #
10386
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse]
9812
10387
  #
9813
10388
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9814
10389
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9815
10390
  # @raise [Google::Apis::AuthorizationError] Authorization is required
9816
- def purge_project_location_metadata_store_execution(parent, google_cloud_aiplatform_v1_purge_executions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
9817
- command = make_simple_command(:post, 'v1/{+parent}/executions:purge', options)
9818
- command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PurgeExecutionsRequest::Representation
9819
- command.request_object = google_cloud_aiplatform_v1_purge_executions_request_object
9820
- command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
9821
- command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
9822
- command.params['parent'] = parent unless parent.nil?
10391
+ def list_project_location_metadata_store_execution_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
10392
+ command = make_simple_command(:get, 'v1/{+name}/operations', options)
10393
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse::Representation
10394
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse
10395
+ command.params['name'] = name unless name.nil?
10396
+ command.query['filter'] = filter unless filter.nil?
10397
+ command.query['pageSize'] = page_size unless page_size.nil?
10398
+ command.query['pageToken'] = page_token unless page_token.nil?
9823
10399
  command.query['fields'] = fields unless fields.nil?
9824
10400
  command.query['quotaUser'] = quota_user unless quota_user.nil?
9825
10401
  execute_or_queue_command(command, &block)
9826
10402
  end
9827
10403
 
9828
- # Obtains the set of input and output Artifacts for this Execution, in the form
9829
- # of LineageSubgraph that also contains the Execution and connecting Events.
9830
- # @param [String] execution
9831
- # Required. The resource name of the Execution whose input and output Artifacts
9832
- # should be retrieved as a LineageSubgraph. Format: `projects/`project`/
9833
- # locations/`location`/metadataStores/`metadatastore`/executions/`execution``
10404
+ # Waits until the specified long-running operation is done or reaches at most a
10405
+ # specified timeout, returning the latest state. If the operation is already
10406
+ # done, the latest state is immediately returned. If the timeout specified is
10407
+ # greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If
10408
+ # the server does not support this method, it returns `google.rpc.Code.
10409
+ # UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return
10410
+ # the latest state before the specified timeout (including immediately), meaning
10411
+ # even an immediate response is no guarantee that the operation is done.
10412
+ # @param [String] name
10413
+ # The name of the operation resource to wait on.
10414
+ # @param [String] timeout
10415
+ # The maximum duration to wait before timing out. If left blank, the wait will
10416
+ # be at most the time permitted by the underlying HTTP/RPC protocol. If RPC
10417
+ # context deadline is also specified, the shorter one will be used.
9834
10418
  # @param [String] fields
9835
10419
  # Selector specifying which fields to include in a partial response.
9836
10420
  # @param [String] quota_user
@@ -9840,19 +10424,20 @@ module Google
9840
10424
  # Request-specific options
9841
10425
  #
9842
10426
  # @yield [result, err] Result & error if block supplied
9843
- # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1LineageSubgraph] parsed result object
10427
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
9844
10428
  # @yieldparam err [StandardError] error object if request failed
9845
10429
  #
9846
- # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1LineageSubgraph]
10430
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
9847
10431
  #
9848
10432
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9849
10433
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9850
10434
  # @raise [Google::Apis::AuthorizationError] Authorization is required
9851
- def query_project_location_metadata_store_execution_execution_inputs_and_outputs(execution, fields: nil, quota_user: nil, options: nil, &block)
9852
- command = make_simple_command(:get, 'v1/{+execution}:queryExecutionInputsAndOutputs', options)
9853
- command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1LineageSubgraph::Representation
9854
- command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1LineageSubgraph
9855
- command.params['execution'] = execution unless execution.nil?
10435
+ def wait_project_location_metadata_store_execution_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block)
10436
+ command = make_simple_command(:post, 'v1/{+name}:wait', options)
10437
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
10438
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
10439
+ command.params['name'] = name unless name.nil?
10440
+ command.query['timeout'] = timeout unless timeout.nil?
9856
10441
  command.query['fields'] = fields unless fields.nil?
9857
10442
  command.query['quotaUser'] = quota_user unless quota_user.nil?
9858
10443
  execute_or_queue_command(command, &block)
@@ -9978,6 +10563,189 @@ module Google
9978
10563
  execute_or_queue_command(command, &block)
9979
10564
  end
9980
10565
 
10566
+ # Starts asynchronous cancellation on a long-running operation. The server makes
10567
+ # a best effort to cancel the operation, but success is not guaranteed. If the
10568
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
10569
+ # Clients can use Operations.GetOperation or other methods to check whether the
10570
+ # cancellation succeeded or whether the operation completed despite cancellation.
10571
+ # On successful cancellation, the operation is not deleted; instead, it becomes
10572
+ # an operation with an Operation.error value with a google.rpc.Status.code of 1,
10573
+ # corresponding to `Code.CANCELLED`.
10574
+ # @param [String] name
10575
+ # The name of the operation resource to be cancelled.
10576
+ # @param [String] fields
10577
+ # Selector specifying which fields to include in a partial response.
10578
+ # @param [String] quota_user
10579
+ # Available to use for quota purposes for server-side applications. Can be any
10580
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
10581
+ # @param [Google::Apis::RequestOptions] options
10582
+ # Request-specific options
10583
+ #
10584
+ # @yield [result, err] Result & error if block supplied
10585
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleProtobufEmpty] parsed result object
10586
+ # @yieldparam err [StandardError] error object if request failed
10587
+ #
10588
+ # @return [Google::Apis::AiplatformV1::GoogleProtobufEmpty]
10589
+ #
10590
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10591
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10592
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10593
+ def cancel_project_location_metadata_store_operation(name, fields: nil, quota_user: nil, options: nil, &block)
10594
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
10595
+ command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
10596
+ command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
10597
+ command.params['name'] = name unless name.nil?
10598
+ command.query['fields'] = fields unless fields.nil?
10599
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10600
+ execute_or_queue_command(command, &block)
10601
+ end
10602
+
10603
+ # Deletes a long-running operation. This method indicates that the client is no
10604
+ # longer interested in the operation result. It does not cancel the operation.
10605
+ # If the server doesn't support this method, it returns `google.rpc.Code.
10606
+ # UNIMPLEMENTED`.
10607
+ # @param [String] name
10608
+ # The name of the operation resource to be deleted.
10609
+ # @param [String] fields
10610
+ # Selector specifying which fields to include in a partial response.
10611
+ # @param [String] quota_user
10612
+ # Available to use for quota purposes for server-side applications. Can be any
10613
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
10614
+ # @param [Google::Apis::RequestOptions] options
10615
+ # Request-specific options
10616
+ #
10617
+ # @yield [result, err] Result & error if block supplied
10618
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleProtobufEmpty] parsed result object
10619
+ # @yieldparam err [StandardError] error object if request failed
10620
+ #
10621
+ # @return [Google::Apis::AiplatformV1::GoogleProtobufEmpty]
10622
+ #
10623
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10624
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10625
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10626
+ def delete_project_location_metadata_store_operation(name, fields: nil, quota_user: nil, options: nil, &block)
10627
+ command = make_simple_command(:delete, 'v1/{+name}', options)
10628
+ command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
10629
+ command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
10630
+ command.params['name'] = name unless name.nil?
10631
+ command.query['fields'] = fields unless fields.nil?
10632
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10633
+ execute_or_queue_command(command, &block)
10634
+ end
10635
+
10636
+ # Gets the latest state of a long-running operation. Clients can use this method
10637
+ # to poll the operation result at intervals as recommended by the API service.
10638
+ # @param [String] name
10639
+ # The name of the operation resource.
10640
+ # @param [String] fields
10641
+ # Selector specifying which fields to include in a partial response.
10642
+ # @param [String] quota_user
10643
+ # Available to use for quota purposes for server-side applications. Can be any
10644
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
10645
+ # @param [Google::Apis::RequestOptions] options
10646
+ # Request-specific options
10647
+ #
10648
+ # @yield [result, err] Result & error if block supplied
10649
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
10650
+ # @yieldparam err [StandardError] error object if request failed
10651
+ #
10652
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
10653
+ #
10654
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10655
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10656
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10657
+ def get_project_location_metadata_store_operation(name, fields: nil, quota_user: nil, options: nil, &block)
10658
+ command = make_simple_command(:get, 'v1/{+name}', options)
10659
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
10660
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
10661
+ command.params['name'] = name unless name.nil?
10662
+ command.query['fields'] = fields unless fields.nil?
10663
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10664
+ execute_or_queue_command(command, &block)
10665
+ end
10666
+
10667
+ # Lists operations that match the specified filter in the request. If the server
10668
+ # doesn't support this method, it returns `UNIMPLEMENTED`.
10669
+ # @param [String] name
10670
+ # The name of the operation's parent resource.
10671
+ # @param [String] filter
10672
+ # The standard list filter.
10673
+ # @param [Fixnum] page_size
10674
+ # The standard list page size.
10675
+ # @param [String] page_token
10676
+ # The standard list page token.
10677
+ # @param [String] fields
10678
+ # Selector specifying which fields to include in a partial response.
10679
+ # @param [String] quota_user
10680
+ # Available to use for quota purposes for server-side applications. Can be any
10681
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
10682
+ # @param [Google::Apis::RequestOptions] options
10683
+ # Request-specific options
10684
+ #
10685
+ # @yield [result, err] Result & error if block supplied
10686
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse] parsed result object
10687
+ # @yieldparam err [StandardError] error object if request failed
10688
+ #
10689
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse]
10690
+ #
10691
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10692
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10693
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10694
+ def list_project_location_metadata_store_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
10695
+ command = make_simple_command(:get, 'v1/{+name}/operations', options)
10696
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse::Representation
10697
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse
10698
+ command.params['name'] = name unless name.nil?
10699
+ command.query['filter'] = filter unless filter.nil?
10700
+ command.query['pageSize'] = page_size unless page_size.nil?
10701
+ command.query['pageToken'] = page_token unless page_token.nil?
10702
+ command.query['fields'] = fields unless fields.nil?
10703
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10704
+ execute_or_queue_command(command, &block)
10705
+ end
10706
+
10707
+ # Waits until the specified long-running operation is done or reaches at most a
10708
+ # specified timeout, returning the latest state. If the operation is already
10709
+ # done, the latest state is immediately returned. If the timeout specified is
10710
+ # greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If
10711
+ # the server does not support this method, it returns `google.rpc.Code.
10712
+ # UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return
10713
+ # the latest state before the specified timeout (including immediately), meaning
10714
+ # even an immediate response is no guarantee that the operation is done.
10715
+ # @param [String] name
10716
+ # The name of the operation resource to wait on.
10717
+ # @param [String] timeout
10718
+ # The maximum duration to wait before timing out. If left blank, the wait will
10719
+ # be at most the time permitted by the underlying HTTP/RPC protocol. If RPC
10720
+ # context deadline is also specified, the shorter one will be used.
10721
+ # @param [String] fields
10722
+ # Selector specifying which fields to include in a partial response.
10723
+ # @param [String] quota_user
10724
+ # Available to use for quota purposes for server-side applications. Can be any
10725
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
10726
+ # @param [Google::Apis::RequestOptions] options
10727
+ # Request-specific options
10728
+ #
10729
+ # @yield [result, err] Result & error if block supplied
10730
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
10731
+ # @yieldparam err [StandardError] error object if request failed
10732
+ #
10733
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
10734
+ #
10735
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10736
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10737
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10738
+ def wait_project_location_metadata_store_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block)
10739
+ command = make_simple_command(:post, 'v1/{+name}:wait', options)
10740
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
10741
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
10742
+ command.params['name'] = name unless name.nil?
10743
+ command.query['timeout'] = timeout unless timeout.nil?
10744
+ command.query['fields'] = fields unless fields.nil?
10745
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10746
+ execute_or_queue_command(command, &block)
10747
+ end
10748
+
9981
10749
  # Batch migrates resources from ml.googleapis.com, automl.googleapis.com, and
9982
10750
  # datalabeling.googleapis.com to Vertex AI.
9983
10751
  # @param [String] parent
@@ -12763,6 +13531,9 @@ module Google
12763
13531
  # the PipelineJob name. If not provided, an ID will be automatically generated.
12764
13532
  # This value should be less than 128 characters, and valid characters are `/a-z-/
12765
13533
  # `.
13534
+ # @param [Boolean] preflight_validations
13535
+ # Optional. Whether to do component level validations before job creation.
13536
+ # Currently we only support Google First Party Component/Pipelines.
12766
13537
  # @param [String] fields
12767
13538
  # Selector specifying which fields to include in a partial response.
12768
13539
  # @param [String] quota_user
@@ -12780,7 +13551,7 @@ module Google
12780
13551
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
12781
13552
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
12782
13553
  # @raise [Google::Apis::AuthorizationError] Authorization is required
12783
- def create_project_location_pipeline_job(parent, google_cloud_aiplatform_v1_pipeline_job_object = nil, pipeline_job_id: nil, fields: nil, quota_user: nil, options: nil, &block)
13554
+ def create_project_location_pipeline_job(parent, google_cloud_aiplatform_v1_pipeline_job_object = nil, pipeline_job_id: nil, preflight_validations: nil, fields: nil, quota_user: nil, options: nil, &block)
12784
13555
  command = make_simple_command(:post, 'v1/{+parent}/pipelineJobs', options)
12785
13556
  command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PipelineJob::Representation
12786
13557
  command.request_object = google_cloud_aiplatform_v1_pipeline_job_object
@@ -12788,6 +13559,7 @@ module Google
12788
13559
  command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PipelineJob
12789
13560
  command.params['parent'] = parent unless parent.nil?
12790
13561
  command.query['pipelineJobId'] = pipeline_job_id unless pipeline_job_id.nil?
13562
+ command.query['preflightValidations'] = preflight_validations unless preflight_validations.nil?
12791
13563
  command.query['fields'] = fields unless fields.nil?
12792
13564
  command.query['quotaUser'] = quota_user unless quota_user.nil?
12793
13565
  execute_or_queue_command(command, &block)
@@ -13319,6 +14091,40 @@ module Google
13319
14091
  execute_or_queue_command(command, &block)
13320
14092
  end
13321
14093
 
14094
+ #
14095
+ # @param [String] endpoint
14096
+ # Required. The name of the Endpoint requested to serve the prediction. Format: `
14097
+ # projects/`project`/locations/`location`/endpoints/`endpoint``
14098
+ # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1StreamRawPredictRequest] google_cloud_aiplatform_v1_stream_raw_predict_request_object
14099
+ # @param [String] fields
14100
+ # Selector specifying which fields to include in a partial response.
14101
+ # @param [String] quota_user
14102
+ # Available to use for quota purposes for server-side applications. Can be any
14103
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
14104
+ # @param [Google::Apis::RequestOptions] options
14105
+ # Request-specific options
14106
+ #
14107
+ # @yield [result, err] Result & error if block supplied
14108
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleApiHttpBody] parsed result object
14109
+ # @yieldparam err [StandardError] error object if request failed
14110
+ #
14111
+ # @return [Google::Apis::AiplatformV1::GoogleApiHttpBody]
14112
+ #
14113
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
14114
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
14115
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
14116
+ def stream_project_location_publisher_model_raw_predict(endpoint, google_cloud_aiplatform_v1_stream_raw_predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
14117
+ command = make_simple_command(:post, 'v1/{+endpoint}:streamRawPredict', options)
14118
+ command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1StreamRawPredictRequest::Representation
14119
+ command.request_object = google_cloud_aiplatform_v1_stream_raw_predict_request_object
14120
+ command.response_representation = Google::Apis::AiplatformV1::GoogleApiHttpBody::Representation
14121
+ command.response_class = Google::Apis::AiplatformV1::GoogleApiHttpBody
14122
+ command.params['endpoint'] = endpoint unless endpoint.nil?
14123
+ command.query['fields'] = fields unless fields.nil?
14124
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
14125
+ execute_or_queue_command(command, &block)
14126
+ end
14127
+
13322
14128
  # Creates a Schedule.
13323
14129
  # @param [String] parent
13324
14130
  # Required. The resource name of the Location to create the Schedule in. Format: