google-apis-aiplatform_v1 0.10.0 → 0.11.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.
@@ -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'
@@ -9132,6 +9134,189 @@ module Google
9132
9134
  execute_or_queue_command(command, &block)
9133
9135
  end
9134
9136
 
9137
+ # Starts asynchronous cancellation on a long-running operation. The server makes
9138
+ # a best effort to cancel the operation, but success is not guaranteed. If the
9139
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
9140
+ # Clients can use Operations.GetOperation or other methods to check whether the
9141
+ # cancellation succeeded or whether the operation completed despite cancellation.
9142
+ # On successful cancellation, the operation is not deleted; instead, it becomes
9143
+ # an operation with an Operation.error value with a google.rpc.Status.code of 1,
9144
+ # corresponding to `Code.CANCELLED`.
9145
+ # @param [String] name
9146
+ # The name of the operation resource to be cancelled.
9147
+ # @param [String] fields
9148
+ # Selector specifying which fields to include in a partial response.
9149
+ # @param [String] quota_user
9150
+ # Available to use for quota purposes for server-side applications. Can be any
9151
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9152
+ # @param [Google::Apis::RequestOptions] options
9153
+ # Request-specific options
9154
+ #
9155
+ # @yield [result, err] Result & error if block supplied
9156
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleProtobufEmpty] parsed result object
9157
+ # @yieldparam err [StandardError] error object if request failed
9158
+ #
9159
+ # @return [Google::Apis::AiplatformV1::GoogleProtobufEmpty]
9160
+ #
9161
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9162
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9163
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9164
+ def cancel_project_location_metadata_store_artifact_operation(name, fields: nil, quota_user: nil, options: nil, &block)
9165
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
9166
+ command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
9167
+ command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
9168
+ command.params['name'] = name unless name.nil?
9169
+ command.query['fields'] = fields unless fields.nil?
9170
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9171
+ execute_or_queue_command(command, &block)
9172
+ end
9173
+
9174
+ # Deletes a long-running operation. This method indicates that the client is no
9175
+ # longer interested in the operation result. It does not cancel the operation.
9176
+ # If the server doesn't support this method, it returns `google.rpc.Code.
9177
+ # UNIMPLEMENTED`.
9178
+ # @param [String] name
9179
+ # The name of the operation resource to be deleted.
9180
+ # @param [String] fields
9181
+ # Selector specifying which fields to include in a partial response.
9182
+ # @param [String] quota_user
9183
+ # Available to use for quota purposes for server-side applications. Can be any
9184
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9185
+ # @param [Google::Apis::RequestOptions] options
9186
+ # Request-specific options
9187
+ #
9188
+ # @yield [result, err] Result & error if block supplied
9189
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleProtobufEmpty] parsed result object
9190
+ # @yieldparam err [StandardError] error object if request failed
9191
+ #
9192
+ # @return [Google::Apis::AiplatformV1::GoogleProtobufEmpty]
9193
+ #
9194
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9195
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9196
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9197
+ def delete_project_location_metadata_store_artifact_operation(name, fields: nil, quota_user: nil, options: nil, &block)
9198
+ command = make_simple_command(:delete, 'v1/{+name}', options)
9199
+ command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
9200
+ command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
9201
+ command.params['name'] = name unless name.nil?
9202
+ command.query['fields'] = fields unless fields.nil?
9203
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9204
+ execute_or_queue_command(command, &block)
9205
+ end
9206
+
9207
+ # Gets the latest state of a long-running operation. Clients can use this method
9208
+ # to poll the operation result at intervals as recommended by the API service.
9209
+ # @param [String] name
9210
+ # The name of the operation resource.
9211
+ # @param [String] fields
9212
+ # Selector specifying which fields to include in a partial response.
9213
+ # @param [String] quota_user
9214
+ # Available to use for quota purposes for server-side applications. Can be any
9215
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9216
+ # @param [Google::Apis::RequestOptions] options
9217
+ # Request-specific options
9218
+ #
9219
+ # @yield [result, err] Result & error if block supplied
9220
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
9221
+ # @yieldparam err [StandardError] error object if request failed
9222
+ #
9223
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
9224
+ #
9225
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9226
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9227
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9228
+ def get_project_location_metadata_store_artifact_operation(name, fields: nil, quota_user: nil, options: nil, &block)
9229
+ command = make_simple_command(:get, 'v1/{+name}', options)
9230
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
9231
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
9232
+ command.params['name'] = name unless name.nil?
9233
+ command.query['fields'] = fields unless fields.nil?
9234
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9235
+ execute_or_queue_command(command, &block)
9236
+ end
9237
+
9238
+ # Lists operations that match the specified filter in the request. If the server
9239
+ # doesn't support this method, it returns `UNIMPLEMENTED`.
9240
+ # @param [String] name
9241
+ # The name of the operation's parent resource.
9242
+ # @param [String] filter
9243
+ # The standard list filter.
9244
+ # @param [Fixnum] page_size
9245
+ # The standard list page size.
9246
+ # @param [String] page_token
9247
+ # The standard list page token.
9248
+ # @param [String] fields
9249
+ # Selector specifying which fields to include in a partial response.
9250
+ # @param [String] quota_user
9251
+ # Available to use for quota purposes for server-side applications. Can be any
9252
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9253
+ # @param [Google::Apis::RequestOptions] options
9254
+ # Request-specific options
9255
+ #
9256
+ # @yield [result, err] Result & error if block supplied
9257
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse] parsed result object
9258
+ # @yieldparam err [StandardError] error object if request failed
9259
+ #
9260
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse]
9261
+ #
9262
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9263
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9264
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9265
+ 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)
9266
+ command = make_simple_command(:get, 'v1/{+name}/operations', options)
9267
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse::Representation
9268
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse
9269
+ command.params['name'] = name unless name.nil?
9270
+ command.query['filter'] = filter unless filter.nil?
9271
+ command.query['pageSize'] = page_size unless page_size.nil?
9272
+ command.query['pageToken'] = page_token unless page_token.nil?
9273
+ command.query['fields'] = fields unless fields.nil?
9274
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9275
+ execute_or_queue_command(command, &block)
9276
+ end
9277
+
9278
+ # Waits until the specified long-running operation is done or reaches at most a
9279
+ # specified timeout, returning the latest state. If the operation is already
9280
+ # done, the latest state is immediately returned. If the timeout specified is
9281
+ # greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If
9282
+ # the server does not support this method, it returns `google.rpc.Code.
9283
+ # UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return
9284
+ # the latest state before the specified timeout (including immediately), meaning
9285
+ # even an immediate response is no guarantee that the operation is done.
9286
+ # @param [String] name
9287
+ # The name of the operation resource to wait on.
9288
+ # @param [String] timeout
9289
+ # The maximum duration to wait before timing out. If left blank, the wait will
9290
+ # be at most the time permitted by the underlying HTTP/RPC protocol. If RPC
9291
+ # context deadline is also specified, the shorter one will be used.
9292
+ # @param [String] fields
9293
+ # Selector specifying which fields to include in a partial response.
9294
+ # @param [String] quota_user
9295
+ # Available to use for quota purposes for server-side applications. Can be any
9296
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9297
+ # @param [Google::Apis::RequestOptions] options
9298
+ # Request-specific options
9299
+ #
9300
+ # @yield [result, err] Result & error if block supplied
9301
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
9302
+ # @yieldparam err [StandardError] error object if request failed
9303
+ #
9304
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
9305
+ #
9306
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9307
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9308
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9309
+ def wait_project_location_metadata_store_artifact_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block)
9310
+ command = make_simple_command(:post, 'v1/{+name}:wait', options)
9311
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
9312
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
9313
+ command.params['name'] = name unless name.nil?
9314
+ command.query['timeout'] = timeout unless timeout.nil?
9315
+ command.query['fields'] = fields unless fields.nil?
9316
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9317
+ execute_or_queue_command(command, &block)
9318
+ end
9319
+
9135
9320
  # Adds a set of Artifacts and Executions to a Context. If any of the Artifacts
9136
9321
  # or Executions have already been added to a Context, they are simply skipped.
9137
9322
  # @param [String] context
@@ -9534,14 +9719,16 @@ module Google
9534
9719
  execute_or_queue_command(command, &block)
9535
9720
  end
9536
9721
 
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
9722
+ # Starts asynchronous cancellation on a long-running operation. The server makes
9723
+ # a best effort to cancel the operation, but success is not guaranteed. If the
9724
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
9725
+ # Clients can use Operations.GetOperation or other methods to check whether the
9726
+ # cancellation succeeded or whether the operation completed despite cancellation.
9727
+ # On successful cancellation, the operation is not deleted; instead, it becomes
9728
+ # an operation with an Operation.error value with a google.rpc.Status.code of 1,
9729
+ # corresponding to `Code.CANCELLED`.
9730
+ # @param [String] name
9731
+ # The name of the operation resource to be cancelled.
9545
9732
  # @param [String] fields
9546
9733
  # Selector specifying which fields to include in a partial response.
9547
9734
  # @param [String] quota_user
@@ -9551,40 +9738,30 @@ module Google
9551
9738
  # Request-specific options
9552
9739
  #
9553
9740
  # @yield [result, err] Result & error if block supplied
9554
- # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AddExecutionEventsResponse] parsed result object
9741
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleProtobufEmpty] parsed result object
9555
9742
  # @yieldparam err [StandardError] error object if request failed
9556
9743
  #
9557
- # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AddExecutionEventsResponse]
9744
+ # @return [Google::Apis::AiplatformV1::GoogleProtobufEmpty]
9558
9745
  #
9559
9746
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9560
9747
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9561
9748
  # @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?
9749
+ def cancel_project_location_metadata_store_context_operation(name, fields: nil, quota_user: nil, options: nil, &block)
9750
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
9751
+ command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
9752
+ command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
9753
+ command.params['name'] = name unless name.nil?
9569
9754
  command.query['fields'] = fields unless fields.nil?
9570
9755
  command.query['quotaUser'] = quota_user unless quota_user.nil?
9571
9756
  execute_or_queue_command(command, &block)
9572
9757
  end
9573
9758
 
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.)
9759
+ # Deletes a long-running operation. This method indicates that the client is no
9760
+ # longer interested in the operation result. It does not cancel the operation.
9761
+ # If the server doesn't support this method, it returns `google.rpc.Code.
9762
+ # UNIMPLEMENTED`.
9763
+ # @param [String] name
9764
+ # The name of the operation resource to be deleted.
9588
9765
  # @param [String] fields
9589
9766
  # Selector specifying which fields to include in a partial response.
9590
9767
  # @param [String] quota_user
@@ -9594,34 +9771,225 @@ module Google
9594
9771
  # Request-specific options
9595
9772
  #
9596
9773
  # @yield [result, err] Result & error if block supplied
9597
- # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Execution] parsed result object
9774
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleProtobufEmpty] parsed result object
9598
9775
  # @yieldparam err [StandardError] error object if request failed
9599
9776
  #
9600
- # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Execution]
9777
+ # @return [Google::Apis::AiplatformV1::GoogleProtobufEmpty]
9601
9778
  #
9602
9779
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9603
9780
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9604
9781
  # @raise [Google::Apis::AuthorizationError] Authorization is required
9605
- def create_project_location_metadata_store_execution(parent, google_cloud_aiplatform_v1_execution_object = nil, execution_id: nil, fields: nil, quota_user: nil, options: nil, &block)
9606
- command = make_simple_command(:post, 'v1/{+parent}/executions', options)
9607
- command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Execution::Representation
9608
- command.request_object = google_cloud_aiplatform_v1_execution_object
9609
- command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Execution::Representation
9610
- command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Execution
9611
- command.params['parent'] = parent unless parent.nil?
9612
- command.query['executionId'] = execution_id unless execution_id.nil?
9782
+ def delete_project_location_metadata_store_context_operation(name, fields: nil, quota_user: nil, options: nil, &block)
9783
+ command = make_simple_command(:delete, 'v1/{+name}', options)
9784
+ command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
9785
+ command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
9786
+ command.params['name'] = name unless name.nil?
9613
9787
  command.query['fields'] = fields unless fields.nil?
9614
9788
  command.query['quotaUser'] = quota_user unless quota_user.nil?
9615
9789
  execute_or_queue_command(command, &block)
9616
9790
  end
9617
9791
 
9618
- # Deletes an Execution.
9792
+ # Gets the latest state of a long-running operation. Clients can use this method
9793
+ # to poll the operation result at intervals as recommended by the API service.
9619
9794
  # @param [String] name
9620
- # Required. The resource name of the Execution to delete. Format: `projects/`
9621
- # project`/locations/`location`/metadataStores/`metadatastore`/executions/`
9622
- # execution``
9623
- # @param [String] etag
9624
- # Optional. The etag of the Execution to delete. If this is provided, it must
9795
+ # The name of the operation resource.
9796
+ # @param [String] fields
9797
+ # Selector specifying which fields to include in a partial response.
9798
+ # @param [String] quota_user
9799
+ # Available to use for quota purposes for server-side applications. Can be any
9800
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9801
+ # @param [Google::Apis::RequestOptions] options
9802
+ # Request-specific options
9803
+ #
9804
+ # @yield [result, err] Result & error if block supplied
9805
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
9806
+ # @yieldparam err [StandardError] error object if request failed
9807
+ #
9808
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
9809
+ #
9810
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9811
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9812
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9813
+ def get_project_location_metadata_store_context_operation(name, fields: nil, quota_user: nil, options: nil, &block)
9814
+ command = make_simple_command(:get, 'v1/{+name}', options)
9815
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
9816
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
9817
+ command.params['name'] = name unless name.nil?
9818
+ command.query['fields'] = fields unless fields.nil?
9819
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9820
+ execute_or_queue_command(command, &block)
9821
+ end
9822
+
9823
+ # Lists operations that match the specified filter in the request. If the server
9824
+ # doesn't support this method, it returns `UNIMPLEMENTED`.
9825
+ # @param [String] name
9826
+ # The name of the operation's parent resource.
9827
+ # @param [String] filter
9828
+ # The standard list filter.
9829
+ # @param [Fixnum] page_size
9830
+ # The standard list page size.
9831
+ # @param [String] page_token
9832
+ # The standard list page token.
9833
+ # @param [String] fields
9834
+ # Selector specifying which fields to include in a partial response.
9835
+ # @param [String] quota_user
9836
+ # Available to use for quota purposes for server-side applications. Can be any
9837
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9838
+ # @param [Google::Apis::RequestOptions] options
9839
+ # Request-specific options
9840
+ #
9841
+ # @yield [result, err] Result & error if block supplied
9842
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse] parsed result object
9843
+ # @yieldparam err [StandardError] error object if request failed
9844
+ #
9845
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse]
9846
+ #
9847
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9848
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9849
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9850
+ 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)
9851
+ command = make_simple_command(:get, 'v1/{+name}/operations', options)
9852
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse::Representation
9853
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse
9854
+ command.params['name'] = name unless name.nil?
9855
+ command.query['filter'] = filter unless filter.nil?
9856
+ command.query['pageSize'] = page_size unless page_size.nil?
9857
+ command.query['pageToken'] = page_token unless page_token.nil?
9858
+ command.query['fields'] = fields unless fields.nil?
9859
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9860
+ execute_or_queue_command(command, &block)
9861
+ end
9862
+
9863
+ # Waits until the specified long-running operation is done or reaches at most a
9864
+ # specified timeout, returning the latest state. If the operation is already
9865
+ # done, the latest state is immediately returned. If the timeout specified is
9866
+ # greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If
9867
+ # the server does not support this method, it returns `google.rpc.Code.
9868
+ # UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return
9869
+ # the latest state before the specified timeout (including immediately), meaning
9870
+ # even an immediate response is no guarantee that the operation is done.
9871
+ # @param [String] name
9872
+ # The name of the operation resource to wait on.
9873
+ # @param [String] timeout
9874
+ # The maximum duration to wait before timing out. If left blank, the wait will
9875
+ # be at most the time permitted by the underlying HTTP/RPC protocol. If RPC
9876
+ # context deadline is also specified, the shorter one will be used.
9877
+ # @param [String] fields
9878
+ # Selector specifying which fields to include in a partial response.
9879
+ # @param [String] quota_user
9880
+ # Available to use for quota purposes for server-side applications. Can be any
9881
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9882
+ # @param [Google::Apis::RequestOptions] options
9883
+ # Request-specific options
9884
+ #
9885
+ # @yield [result, err] Result & error if block supplied
9886
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
9887
+ # @yieldparam err [StandardError] error object if request failed
9888
+ #
9889
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
9890
+ #
9891
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9892
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9893
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9894
+ def wait_project_location_metadata_store_context_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block)
9895
+ command = make_simple_command(:post, 'v1/{+name}:wait', options)
9896
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
9897
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
9898
+ command.params['name'] = name unless name.nil?
9899
+ command.query['timeout'] = timeout unless timeout.nil?
9900
+ command.query['fields'] = fields unless fields.nil?
9901
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9902
+ execute_or_queue_command(command, &block)
9903
+ end
9904
+
9905
+ # Adds Events to the specified Execution. An Event indicates whether an Artifact
9906
+ # was used as an input or output for an Execution. If an Event already exists
9907
+ # between the Execution and the Artifact, the Event is skipped.
9908
+ # @param [String] execution
9909
+ # Required. The resource name of the Execution that the Events connect Artifacts
9910
+ # with. Format: `projects/`project`/locations/`location`/metadataStores/`
9911
+ # metadatastore`/executions/`execution``
9912
+ # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AddExecutionEventsRequest] google_cloud_aiplatform_v1_add_execution_events_request_object
9913
+ # @param [String] fields
9914
+ # Selector specifying which fields to include in a partial response.
9915
+ # @param [String] quota_user
9916
+ # Available to use for quota purposes for server-side applications. Can be any
9917
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9918
+ # @param [Google::Apis::RequestOptions] options
9919
+ # Request-specific options
9920
+ #
9921
+ # @yield [result, err] Result & error if block supplied
9922
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AddExecutionEventsResponse] parsed result object
9923
+ # @yieldparam err [StandardError] error object if request failed
9924
+ #
9925
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AddExecutionEventsResponse]
9926
+ #
9927
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9928
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9929
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9930
+ 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)
9931
+ command = make_simple_command(:post, 'v1/{+execution}:addExecutionEvents', options)
9932
+ command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AddExecutionEventsRequest::Representation
9933
+ command.request_object = google_cloud_aiplatform_v1_add_execution_events_request_object
9934
+ command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AddExecutionEventsResponse::Representation
9935
+ command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AddExecutionEventsResponse
9936
+ command.params['execution'] = execution unless execution.nil?
9937
+ command.query['fields'] = fields unless fields.nil?
9938
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9939
+ execute_or_queue_command(command, &block)
9940
+ end
9941
+
9942
+ # Creates an Execution associated with a MetadataStore.
9943
+ # @param [String] parent
9944
+ # Required. The resource name of the MetadataStore where the Execution should be
9945
+ # created. Format: `projects/`project`/locations/`location`/metadataStores/`
9946
+ # metadatastore``
9947
+ # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Execution] google_cloud_aiplatform_v1_execution_object
9948
+ # @param [String] execution_id
9949
+ # The `execution` portion of the resource name with the format: `projects/`
9950
+ # project`/locations/`location`/metadataStores/`metadatastore`/executions/`
9951
+ # execution`` If not provided, the Execution's ID will be a UUID generated by
9952
+ # the service. Must be 4-128 characters in length. Valid characters are `/a-z-/`.
9953
+ # Must be unique across all Executions in the parent MetadataStore. (Otherwise
9954
+ # the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the caller
9955
+ # can't view the preexisting Execution.)
9956
+ # @param [String] fields
9957
+ # Selector specifying which fields to include in a partial response.
9958
+ # @param [String] quota_user
9959
+ # Available to use for quota purposes for server-side applications. Can be any
9960
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9961
+ # @param [Google::Apis::RequestOptions] options
9962
+ # Request-specific options
9963
+ #
9964
+ # @yield [result, err] Result & error if block supplied
9965
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Execution] parsed result object
9966
+ # @yieldparam err [StandardError] error object if request failed
9967
+ #
9968
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Execution]
9969
+ #
9970
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9971
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9972
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9973
+ def create_project_location_metadata_store_execution(parent, google_cloud_aiplatform_v1_execution_object = nil, execution_id: nil, fields: nil, quota_user: nil, options: nil, &block)
9974
+ command = make_simple_command(:post, 'v1/{+parent}/executions', options)
9975
+ command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Execution::Representation
9976
+ command.request_object = google_cloud_aiplatform_v1_execution_object
9977
+ command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Execution::Representation
9978
+ command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Execution
9979
+ command.params['parent'] = parent unless parent.nil?
9980
+ command.query['executionId'] = execution_id unless execution_id.nil?
9981
+ command.query['fields'] = fields unless fields.nil?
9982
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9983
+ execute_or_queue_command(command, &block)
9984
+ end
9985
+
9986
+ # Deletes an Execution.
9987
+ # @param [String] name
9988
+ # Required. The resource name of the Execution to delete. Format: `projects/`
9989
+ # project`/locations/`location`/metadataStores/`metadatastore`/executions/`
9990
+ # execution``
9991
+ # @param [String] etag
9992
+ # Optional. The etag of the Execution to delete. If this is provided, it must
9625
9993
  # match the server's etag. Otherwise, the request will fail with a
9626
9994
  # FAILED_PRECONDITION.
9627
9995
  # @param [String] fields
@@ -9858,20 +10226,16 @@ module Google
9858
10226
  execute_or_queue_command(command, &block)
9859
10227
  end
9860
10228
 
9861
- # Creates a MetadataSchema.
9862
- # @param [String] parent
9863
- # Required. The resource name of the MetadataStore where the MetadataSchema
9864
- # should be created. Format: `projects/`project`/locations/`location`/
9865
- # metadataStores/`metadatastore``
9866
- # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MetadataSchema] google_cloud_aiplatform_v1_metadata_schema_object
9867
- # @param [String] metadata_schema_id
9868
- # The `metadata_schema` portion of the resource name with the format: `projects/`
9869
- # project`/locations/`location`/metadataStores/`metadatastore`/metadataSchemas/`
9870
- # metadataschema`` If not provided, the MetadataStore's ID will be a UUID
9871
- # generated by the service. Must be 4-128 characters in length. Valid characters
9872
- # are `/a-z-/`. Must be unique across all MetadataSchemas in the parent Location.
9873
- # (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if
9874
- # the caller can't view the preexisting MetadataSchema.)
10229
+ # Starts asynchronous cancellation on a long-running operation. The server makes
10230
+ # a best effort to cancel the operation, but success is not guaranteed. If the
10231
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
10232
+ # Clients can use Operations.GetOperation or other methods to check whether the
10233
+ # cancellation succeeded or whether the operation completed despite cancellation.
10234
+ # On successful cancellation, the operation is not deleted; instead, it becomes
10235
+ # an operation with an Operation.error value with a google.rpc.Status.code of 1,
10236
+ # corresponding to `Code.CANCELLED`.
10237
+ # @param [String] name
10238
+ # The name of the operation resource to be cancelled.
9875
10239
  # @param [String] fields
9876
10240
  # Selector specifying which fields to include in a partial response.
9877
10241
  # @param [String] quota_user
@@ -9881,32 +10245,30 @@ module Google
9881
10245
  # Request-specific options
9882
10246
  #
9883
10247
  # @yield [result, err] Result & error if block supplied
9884
- # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MetadataSchema] parsed result object
10248
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleProtobufEmpty] parsed result object
9885
10249
  # @yieldparam err [StandardError] error object if request failed
9886
10250
  #
9887
- # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MetadataSchema]
10251
+ # @return [Google::Apis::AiplatformV1::GoogleProtobufEmpty]
9888
10252
  #
9889
10253
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9890
10254
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9891
10255
  # @raise [Google::Apis::AuthorizationError] Authorization is required
9892
- def create_project_location_metadata_store_metadata_schema(parent, google_cloud_aiplatform_v1_metadata_schema_object = nil, metadata_schema_id: nil, fields: nil, quota_user: nil, options: nil, &block)
9893
- command = make_simple_command(:post, 'v1/{+parent}/metadataSchemas', options)
9894
- command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MetadataSchema::Representation
9895
- command.request_object = google_cloud_aiplatform_v1_metadata_schema_object
9896
- command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MetadataSchema::Representation
9897
- command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MetadataSchema
9898
- command.params['parent'] = parent unless parent.nil?
9899
- command.query['metadataSchemaId'] = metadata_schema_id unless metadata_schema_id.nil?
10256
+ def cancel_project_location_metadata_store_execution_operation(name, fields: nil, quota_user: nil, options: nil, &block)
10257
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
10258
+ command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
10259
+ command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
10260
+ command.params['name'] = name unless name.nil?
9900
10261
  command.query['fields'] = fields unless fields.nil?
9901
10262
  command.query['quotaUser'] = quota_user unless quota_user.nil?
9902
10263
  execute_or_queue_command(command, &block)
9903
10264
  end
9904
10265
 
9905
- # Retrieves a specific MetadataSchema.
10266
+ # Deletes a long-running operation. This method indicates that the client is no
10267
+ # longer interested in the operation result. It does not cancel the operation.
10268
+ # If the server doesn't support this method, it returns `google.rpc.Code.
10269
+ # UNIMPLEMENTED`.
9906
10270
  # @param [String] name
9907
- # Required. The resource name of the MetadataSchema to retrieve. Format: `
9908
- # projects/`project`/locations/`location`/metadataStores/`metadatastore`/
9909
- # metadataSchemas/`metadataschema``
10271
+ # The name of the operation resource to be deleted.
9910
10272
  # @param [String] fields
9911
10273
  # Selector specifying which fields to include in a partial response.
9912
10274
  # @param [String] quota_user
@@ -9916,25 +10278,214 @@ module Google
9916
10278
  # Request-specific options
9917
10279
  #
9918
10280
  # @yield [result, err] Result & error if block supplied
9919
- # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MetadataSchema] parsed result object
10281
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleProtobufEmpty] parsed result object
9920
10282
  # @yieldparam err [StandardError] error object if request failed
9921
10283
  #
9922
- # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MetadataSchema]
10284
+ # @return [Google::Apis::AiplatformV1::GoogleProtobufEmpty]
9923
10285
  #
9924
10286
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9925
10287
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9926
10288
  # @raise [Google::Apis::AuthorizationError] Authorization is required
9927
- def get_project_location_metadata_store_metadata_schema(name, fields: nil, quota_user: nil, options: nil, &block)
9928
- command = make_simple_command(:get, 'v1/{+name}', options)
9929
- command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MetadataSchema::Representation
9930
- command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MetadataSchema
10289
+ def delete_project_location_metadata_store_execution_operation(name, fields: nil, quota_user: nil, options: nil, &block)
10290
+ command = make_simple_command(:delete, 'v1/{+name}', options)
10291
+ command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
10292
+ command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
9931
10293
  command.params['name'] = name unless name.nil?
9932
10294
  command.query['fields'] = fields unless fields.nil?
9933
10295
  command.query['quotaUser'] = quota_user unless quota_user.nil?
9934
10296
  execute_or_queue_command(command, &block)
9935
10297
  end
9936
10298
 
9937
- # Lists MetadataSchemas.
10299
+ # Gets the latest state of a long-running operation. Clients can use this method
10300
+ # to poll the operation result at intervals as recommended by the API service.
10301
+ # @param [String] name
10302
+ # The name of the operation resource.
10303
+ # @param [String] fields
10304
+ # Selector specifying which fields to include in a partial response.
10305
+ # @param [String] quota_user
10306
+ # Available to use for quota purposes for server-side applications. Can be any
10307
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
10308
+ # @param [Google::Apis::RequestOptions] options
10309
+ # Request-specific options
10310
+ #
10311
+ # @yield [result, err] Result & error if block supplied
10312
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
10313
+ # @yieldparam err [StandardError] error object if request failed
10314
+ #
10315
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
10316
+ #
10317
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10318
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10319
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10320
+ def get_project_location_metadata_store_execution_operation(name, fields: nil, quota_user: nil, options: nil, &block)
10321
+ command = make_simple_command(:get, 'v1/{+name}', options)
10322
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
10323
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
10324
+ command.params['name'] = name unless name.nil?
10325
+ command.query['fields'] = fields unless fields.nil?
10326
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10327
+ execute_or_queue_command(command, &block)
10328
+ end
10329
+
10330
+ # Lists operations that match the specified filter in the request. If the server
10331
+ # doesn't support this method, it returns `UNIMPLEMENTED`.
10332
+ # @param [String] name
10333
+ # The name of the operation's parent resource.
10334
+ # @param [String] filter
10335
+ # The standard list filter.
10336
+ # @param [Fixnum] page_size
10337
+ # The standard list page size.
10338
+ # @param [String] page_token
10339
+ # The standard list page token.
10340
+ # @param [String] fields
10341
+ # Selector specifying which fields to include in a partial response.
10342
+ # @param [String] quota_user
10343
+ # Available to use for quota purposes for server-side applications. Can be any
10344
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
10345
+ # @param [Google::Apis::RequestOptions] options
10346
+ # Request-specific options
10347
+ #
10348
+ # @yield [result, err] Result & error if block supplied
10349
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse] parsed result object
10350
+ # @yieldparam err [StandardError] error object if request failed
10351
+ #
10352
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse]
10353
+ #
10354
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10355
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10356
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10357
+ 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)
10358
+ command = make_simple_command(:get, 'v1/{+name}/operations', options)
10359
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse::Representation
10360
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse
10361
+ command.params['name'] = name unless name.nil?
10362
+ command.query['filter'] = filter unless filter.nil?
10363
+ command.query['pageSize'] = page_size unless page_size.nil?
10364
+ command.query['pageToken'] = page_token unless page_token.nil?
10365
+ command.query['fields'] = fields unless fields.nil?
10366
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10367
+ execute_or_queue_command(command, &block)
10368
+ end
10369
+
10370
+ # Waits until the specified long-running operation is done or reaches at most a
10371
+ # specified timeout, returning the latest state. If the operation is already
10372
+ # done, the latest state is immediately returned. If the timeout specified is
10373
+ # greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If
10374
+ # the server does not support this method, it returns `google.rpc.Code.
10375
+ # UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return
10376
+ # the latest state before the specified timeout (including immediately), meaning
10377
+ # even an immediate response is no guarantee that the operation is done.
10378
+ # @param [String] name
10379
+ # The name of the operation resource to wait on.
10380
+ # @param [String] timeout
10381
+ # The maximum duration to wait before timing out. If left blank, the wait will
10382
+ # be at most the time permitted by the underlying HTTP/RPC protocol. If RPC
10383
+ # context deadline is also specified, the shorter one will be used.
10384
+ # @param [String] fields
10385
+ # Selector specifying which fields to include in a partial response.
10386
+ # @param [String] quota_user
10387
+ # Available to use for quota purposes for server-side applications. Can be any
10388
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
10389
+ # @param [Google::Apis::RequestOptions] options
10390
+ # Request-specific options
10391
+ #
10392
+ # @yield [result, err] Result & error if block supplied
10393
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
10394
+ # @yieldparam err [StandardError] error object if request failed
10395
+ #
10396
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
10397
+ #
10398
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10399
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10400
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10401
+ def wait_project_location_metadata_store_execution_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block)
10402
+ command = make_simple_command(:post, 'v1/{+name}:wait', options)
10403
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
10404
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
10405
+ command.params['name'] = name unless name.nil?
10406
+ command.query['timeout'] = timeout unless timeout.nil?
10407
+ command.query['fields'] = fields unless fields.nil?
10408
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10409
+ execute_or_queue_command(command, &block)
10410
+ end
10411
+
10412
+ # Creates a MetadataSchema.
10413
+ # @param [String] parent
10414
+ # Required. The resource name of the MetadataStore where the MetadataSchema
10415
+ # should be created. Format: `projects/`project`/locations/`location`/
10416
+ # metadataStores/`metadatastore``
10417
+ # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MetadataSchema] google_cloud_aiplatform_v1_metadata_schema_object
10418
+ # @param [String] metadata_schema_id
10419
+ # The `metadata_schema` portion of the resource name with the format: `projects/`
10420
+ # project`/locations/`location`/metadataStores/`metadatastore`/metadataSchemas/`
10421
+ # metadataschema`` If not provided, the MetadataStore's ID will be a UUID
10422
+ # generated by the service. Must be 4-128 characters in length. Valid characters
10423
+ # are `/a-z-/`. Must be unique across all MetadataSchemas in the parent Location.
10424
+ # (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if
10425
+ # the caller can't view the preexisting MetadataSchema.)
10426
+ # @param [String] fields
10427
+ # Selector specifying which fields to include in a partial response.
10428
+ # @param [String] quota_user
10429
+ # Available to use for quota purposes for server-side applications. Can be any
10430
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
10431
+ # @param [Google::Apis::RequestOptions] options
10432
+ # Request-specific options
10433
+ #
10434
+ # @yield [result, err] Result & error if block supplied
10435
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MetadataSchema] parsed result object
10436
+ # @yieldparam err [StandardError] error object if request failed
10437
+ #
10438
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MetadataSchema]
10439
+ #
10440
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10441
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10442
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10443
+ def create_project_location_metadata_store_metadata_schema(parent, google_cloud_aiplatform_v1_metadata_schema_object = nil, metadata_schema_id: nil, fields: nil, quota_user: nil, options: nil, &block)
10444
+ command = make_simple_command(:post, 'v1/{+parent}/metadataSchemas', options)
10445
+ command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MetadataSchema::Representation
10446
+ command.request_object = google_cloud_aiplatform_v1_metadata_schema_object
10447
+ command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MetadataSchema::Representation
10448
+ command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MetadataSchema
10449
+ command.params['parent'] = parent unless parent.nil?
10450
+ command.query['metadataSchemaId'] = metadata_schema_id unless metadata_schema_id.nil?
10451
+ command.query['fields'] = fields unless fields.nil?
10452
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10453
+ execute_or_queue_command(command, &block)
10454
+ end
10455
+
10456
+ # Retrieves a specific MetadataSchema.
10457
+ # @param [String] name
10458
+ # Required. The resource name of the MetadataSchema to retrieve. Format: `
10459
+ # projects/`project`/locations/`location`/metadataStores/`metadatastore`/
10460
+ # metadataSchemas/`metadataschema``
10461
+ # @param [String] fields
10462
+ # Selector specifying which fields to include in a partial response.
10463
+ # @param [String] quota_user
10464
+ # Available to use for quota purposes for server-side applications. Can be any
10465
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
10466
+ # @param [Google::Apis::RequestOptions] options
10467
+ # Request-specific options
10468
+ #
10469
+ # @yield [result, err] Result & error if block supplied
10470
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MetadataSchema] parsed result object
10471
+ # @yieldparam err [StandardError] error object if request failed
10472
+ #
10473
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MetadataSchema]
10474
+ #
10475
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10476
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10477
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10478
+ def get_project_location_metadata_store_metadata_schema(name, fields: nil, quota_user: nil, options: nil, &block)
10479
+ command = make_simple_command(:get, 'v1/{+name}', options)
10480
+ command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MetadataSchema::Representation
10481
+ command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MetadataSchema
10482
+ command.params['name'] = name unless name.nil?
10483
+ command.query['fields'] = fields unless fields.nil?
10484
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10485
+ execute_or_queue_command(command, &block)
10486
+ end
10487
+
10488
+ # Lists MetadataSchemas.
9938
10489
  # @param [String] parent
9939
10490
  # Required. The MetadataStore whose MetadataSchemas should be listed. Format: `
9940
10491
  # projects/`project`/locations/`location`/metadataStores/`metadatastore``
@@ -9978,6 +10529,189 @@ module Google
9978
10529
  execute_or_queue_command(command, &block)
9979
10530
  end
9980
10531
 
10532
+ # Starts asynchronous cancellation on a long-running operation. The server makes
10533
+ # a best effort to cancel the operation, but success is not guaranteed. If the
10534
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
10535
+ # Clients can use Operations.GetOperation or other methods to check whether the
10536
+ # cancellation succeeded or whether the operation completed despite cancellation.
10537
+ # On successful cancellation, the operation is not deleted; instead, it becomes
10538
+ # an operation with an Operation.error value with a google.rpc.Status.code of 1,
10539
+ # corresponding to `Code.CANCELLED`.
10540
+ # @param [String] name
10541
+ # The name of the operation resource to be cancelled.
10542
+ # @param [String] fields
10543
+ # Selector specifying which fields to include in a partial response.
10544
+ # @param [String] quota_user
10545
+ # Available to use for quota purposes for server-side applications. Can be any
10546
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
10547
+ # @param [Google::Apis::RequestOptions] options
10548
+ # Request-specific options
10549
+ #
10550
+ # @yield [result, err] Result & error if block supplied
10551
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleProtobufEmpty] parsed result object
10552
+ # @yieldparam err [StandardError] error object if request failed
10553
+ #
10554
+ # @return [Google::Apis::AiplatformV1::GoogleProtobufEmpty]
10555
+ #
10556
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10557
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10558
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10559
+ def cancel_project_location_metadata_store_operation(name, fields: nil, quota_user: nil, options: nil, &block)
10560
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
10561
+ command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
10562
+ command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
10563
+ command.params['name'] = name unless name.nil?
10564
+ command.query['fields'] = fields unless fields.nil?
10565
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10566
+ execute_or_queue_command(command, &block)
10567
+ end
10568
+
10569
+ # Deletes a long-running operation. This method indicates that the client is no
10570
+ # longer interested in the operation result. It does not cancel the operation.
10571
+ # If the server doesn't support this method, it returns `google.rpc.Code.
10572
+ # UNIMPLEMENTED`.
10573
+ # @param [String] name
10574
+ # The name of the operation resource to be deleted.
10575
+ # @param [String] fields
10576
+ # Selector specifying which fields to include in a partial response.
10577
+ # @param [String] quota_user
10578
+ # Available to use for quota purposes for server-side applications. Can be any
10579
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
10580
+ # @param [Google::Apis::RequestOptions] options
10581
+ # Request-specific options
10582
+ #
10583
+ # @yield [result, err] Result & error if block supplied
10584
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleProtobufEmpty] parsed result object
10585
+ # @yieldparam err [StandardError] error object if request failed
10586
+ #
10587
+ # @return [Google::Apis::AiplatformV1::GoogleProtobufEmpty]
10588
+ #
10589
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10590
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10591
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10592
+ def delete_project_location_metadata_store_operation(name, fields: nil, quota_user: nil, options: nil, &block)
10593
+ command = make_simple_command(:delete, 'v1/{+name}', options)
10594
+ command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
10595
+ command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
10596
+ command.params['name'] = name unless name.nil?
10597
+ command.query['fields'] = fields unless fields.nil?
10598
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10599
+ execute_or_queue_command(command, &block)
10600
+ end
10601
+
10602
+ # Gets the latest state of a long-running operation. Clients can use this method
10603
+ # to poll the operation result at intervals as recommended by the API service.
10604
+ # @param [String] name
10605
+ # The name of the operation resource.
10606
+ # @param [String] fields
10607
+ # Selector specifying which fields to include in a partial response.
10608
+ # @param [String] quota_user
10609
+ # Available to use for quota purposes for server-side applications. Can be any
10610
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
10611
+ # @param [Google::Apis::RequestOptions] options
10612
+ # Request-specific options
10613
+ #
10614
+ # @yield [result, err] Result & error if block supplied
10615
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
10616
+ # @yieldparam err [StandardError] error object if request failed
10617
+ #
10618
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
10619
+ #
10620
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10621
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10622
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10623
+ def get_project_location_metadata_store_operation(name, fields: nil, quota_user: nil, options: nil, &block)
10624
+ command = make_simple_command(:get, 'v1/{+name}', options)
10625
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
10626
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
10627
+ command.params['name'] = name unless name.nil?
10628
+ command.query['fields'] = fields unless fields.nil?
10629
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10630
+ execute_or_queue_command(command, &block)
10631
+ end
10632
+
10633
+ # Lists operations that match the specified filter in the request. If the server
10634
+ # doesn't support this method, it returns `UNIMPLEMENTED`.
10635
+ # @param [String] name
10636
+ # The name of the operation's parent resource.
10637
+ # @param [String] filter
10638
+ # The standard list filter.
10639
+ # @param [Fixnum] page_size
10640
+ # The standard list page size.
10641
+ # @param [String] page_token
10642
+ # The standard list page token.
10643
+ # @param [String] fields
10644
+ # Selector specifying which fields to include in a partial response.
10645
+ # @param [String] quota_user
10646
+ # Available to use for quota purposes for server-side applications. Can be any
10647
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
10648
+ # @param [Google::Apis::RequestOptions] options
10649
+ # Request-specific options
10650
+ #
10651
+ # @yield [result, err] Result & error if block supplied
10652
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse] parsed result object
10653
+ # @yieldparam err [StandardError] error object if request failed
10654
+ #
10655
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse]
10656
+ #
10657
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10658
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10659
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10660
+ def list_project_location_metadata_store_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
10661
+ command = make_simple_command(:get, 'v1/{+name}/operations', options)
10662
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse::Representation
10663
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse
10664
+ command.params['name'] = name unless name.nil?
10665
+ command.query['filter'] = filter unless filter.nil?
10666
+ command.query['pageSize'] = page_size unless page_size.nil?
10667
+ command.query['pageToken'] = page_token unless page_token.nil?
10668
+ command.query['fields'] = fields unless fields.nil?
10669
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10670
+ execute_or_queue_command(command, &block)
10671
+ end
10672
+
10673
+ # Waits until the specified long-running operation is done or reaches at most a
10674
+ # specified timeout, returning the latest state. If the operation is already
10675
+ # done, the latest state is immediately returned. If the timeout specified is
10676
+ # greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If
10677
+ # the server does not support this method, it returns `google.rpc.Code.
10678
+ # UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return
10679
+ # the latest state before the specified timeout (including immediately), meaning
10680
+ # even an immediate response is no guarantee that the operation is done.
10681
+ # @param [String] name
10682
+ # The name of the operation resource to wait on.
10683
+ # @param [String] timeout
10684
+ # The maximum duration to wait before timing out. If left blank, the wait will
10685
+ # be at most the time permitted by the underlying HTTP/RPC protocol. If RPC
10686
+ # context deadline is also specified, the shorter one will be used.
10687
+ # @param [String] fields
10688
+ # Selector specifying which fields to include in a partial response.
10689
+ # @param [String] quota_user
10690
+ # Available to use for quota purposes for server-side applications. Can be any
10691
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
10692
+ # @param [Google::Apis::RequestOptions] options
10693
+ # Request-specific options
10694
+ #
10695
+ # @yield [result, err] Result & error if block supplied
10696
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
10697
+ # @yieldparam err [StandardError] error object if request failed
10698
+ #
10699
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
10700
+ #
10701
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10702
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10703
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10704
+ def wait_project_location_metadata_store_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block)
10705
+ command = make_simple_command(:post, 'v1/{+name}:wait', options)
10706
+ command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
10707
+ command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
10708
+ command.params['name'] = name unless name.nil?
10709
+ command.query['timeout'] = timeout unless timeout.nil?
10710
+ command.query['fields'] = fields unless fields.nil?
10711
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10712
+ execute_or_queue_command(command, &block)
10713
+ end
10714
+
9981
10715
  # Batch migrates resources from ml.googleapis.com, automl.googleapis.com, and
9982
10716
  # datalabeling.googleapis.com to Vertex AI.
9983
10717
  # @param [String] parent