google-apis-aiplatform_v1 0.9.0 → 0.11.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'
@@ -3626,6 +3628,40 @@ module Google
3626
3628
  execute_or_queue_command(command, &block)
3627
3629
  end
3628
3630
 
3631
+ # Generate content with multimodal inputs with streaming support.
3632
+ # @param [String] model
3633
+ # Required. The name of the publisher model requested to serve the prediction.
3634
+ # Format: `projects/`project`/locations/`location`/publishers/*/models/*`
3635
+ # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentRequest] google_cloud_aiplatform_v1_generate_content_request_object
3636
+ # @param [String] fields
3637
+ # Selector specifying which fields to include in a partial response.
3638
+ # @param [String] quota_user
3639
+ # Available to use for quota purposes for server-side applications. Can be any
3640
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3641
+ # @param [Google::Apis::RequestOptions] options
3642
+ # Request-specific options
3643
+ #
3644
+ # @yield [result, err] Result & error if block supplied
3645
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse] parsed result object
3646
+ # @yieldparam err [StandardError] error object if request failed
3647
+ #
3648
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse]
3649
+ #
3650
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3651
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3652
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3653
+ def stream_project_location_endpoint_generate_content(model, google_cloud_aiplatform_v1_generate_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3654
+ command = make_simple_command(:post, 'v1/{+model}:streamGenerateContent', options)
3655
+ command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentRequest::Representation
3656
+ command.request_object = google_cloud_aiplatform_v1_generate_content_request_object
3657
+ command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse::Representation
3658
+ command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse
3659
+ command.params['model'] = model unless model.nil?
3660
+ command.query['fields'] = fields unless fields.nil?
3661
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3662
+ execute_or_queue_command(command, &block)
3663
+ end
3664
+
3629
3665
  # Undeploys a Model from an Endpoint, removing a DeployedModel from it, and
3630
3666
  # freeing all resources it's using.
3631
3667
  # @param [String] endpoint
@@ -9098,6 +9134,189 @@ module Google
9098
9134
  execute_or_queue_command(command, &block)
9099
9135
  end
9100
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
+
9101
9320
  # Adds a set of Artifacts and Executions to a Context. If any of the Artifacts
9102
9321
  # or Executions have already been added to a Context, they are simply skipped.
9103
9322
  # @param [String] context
@@ -9500,14 +9719,16 @@ module Google
9500
9719
  execute_or_queue_command(command, &block)
9501
9720
  end
9502
9721
 
9503
- # Adds Events to the specified Execution. An Event indicates whether an Artifact
9504
- # was used as an input or output for an Execution. If an Event already exists
9505
- # between the Execution and the Artifact, the Event is skipped.
9506
- # @param [String] execution
9507
- # Required. The resource name of the Execution that the Events connect Artifacts
9508
- # with. Format: `projects/`project`/locations/`location`/metadataStores/`
9509
- # metadatastore`/executions/`execution``
9510
- # @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.
9511
9732
  # @param [String] fields
9512
9733
  # Selector specifying which fields to include in a partial response.
9513
9734
  # @param [String] quota_user
@@ -9517,40 +9738,30 @@ module Google
9517
9738
  # Request-specific options
9518
9739
  #
9519
9740
  # @yield [result, err] Result & error if block supplied
9520
- # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AddExecutionEventsResponse] parsed result object
9741
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleProtobufEmpty] parsed result object
9521
9742
  # @yieldparam err [StandardError] error object if request failed
9522
9743
  #
9523
- # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AddExecutionEventsResponse]
9744
+ # @return [Google::Apis::AiplatformV1::GoogleProtobufEmpty]
9524
9745
  #
9525
9746
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9526
9747
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9527
9748
  # @raise [Google::Apis::AuthorizationError] Authorization is required
9528
- 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)
9529
- command = make_simple_command(:post, 'v1/{+execution}:addExecutionEvents', options)
9530
- command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AddExecutionEventsRequest::Representation
9531
- command.request_object = google_cloud_aiplatform_v1_add_execution_events_request_object
9532
- command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AddExecutionEventsResponse::Representation
9533
- command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AddExecutionEventsResponse
9534
- 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?
9535
9754
  command.query['fields'] = fields unless fields.nil?
9536
9755
  command.query['quotaUser'] = quota_user unless quota_user.nil?
9537
9756
  execute_or_queue_command(command, &block)
9538
9757
  end
9539
9758
 
9540
- # Creates an Execution associated with a MetadataStore.
9541
- # @param [String] parent
9542
- # Required. The resource name of the MetadataStore where the Execution should be
9543
- # created. Format: `projects/`project`/locations/`location`/metadataStores/`
9544
- # metadatastore``
9545
- # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Execution] google_cloud_aiplatform_v1_execution_object
9546
- # @param [String] execution_id
9547
- # The `execution` portion of the resource name with the format: `projects/`
9548
- # project`/locations/`location`/metadataStores/`metadatastore`/executions/`
9549
- # execution`` If not provided, the Execution's ID will be a UUID generated by
9550
- # the service. Must be 4-128 characters in length. Valid characters are `/a-z-/`.
9551
- # Must be unique across all Executions in the parent MetadataStore. (Otherwise
9552
- # the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the caller
9553
- # 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.
9554
9765
  # @param [String] fields
9555
9766
  # Selector specifying which fields to include in a partial response.
9556
9767
  # @param [String] quota_user
@@ -9560,7 +9771,198 @@ module Google
9560
9771
  # Request-specific options
9561
9772
  #
9562
9773
  # @yield [result, err] Result & error if block supplied
9563
- # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Execution] parsed result object
9774
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleProtobufEmpty] parsed result object
9775
+ # @yieldparam err [StandardError] error object if request failed
9776
+ #
9777
+ # @return [Google::Apis::AiplatformV1::GoogleProtobufEmpty]
9778
+ #
9779
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9780
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9781
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
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?
9787
+ command.query['fields'] = fields unless fields.nil?
9788
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9789
+ execute_or_queue_command(command, &block)
9790
+ end
9791
+
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.
9794
+ # @param [String] name
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
9564
9966
  # @yieldparam err [StandardError] error object if request failed
9565
9967
  #
9566
9968
  # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Execution]
@@ -9824,20 +10226,16 @@ module Google
9824
10226
  execute_or_queue_command(command, &block)
9825
10227
  end
9826
10228
 
9827
- # Creates a MetadataSchema.
9828
- # @param [String] parent
9829
- # Required. The resource name of the MetadataStore where the MetadataSchema
9830
- # should be created. Format: `projects/`project`/locations/`location`/
9831
- # metadataStores/`metadatastore``
9832
- # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MetadataSchema] google_cloud_aiplatform_v1_metadata_schema_object
9833
- # @param [String] metadata_schema_id
9834
- # The `metadata_schema` portion of the resource name with the format: `projects/`
9835
- # project`/locations/`location`/metadataStores/`metadatastore`/metadataSchemas/`
9836
- # metadataschema`` If not provided, the MetadataStore's ID will be a UUID
9837
- # generated by the service. Must be 4-128 characters in length. Valid characters
9838
- # are `/a-z-/`. Must be unique across all MetadataSchemas in the parent Location.
9839
- # (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if
9840
- # 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.
9841
10239
  # @param [String] fields
9842
10240
  # Selector specifying which fields to include in a partial response.
9843
10241
  # @param [String] quota_user
@@ -9847,32 +10245,401 @@ module Google
9847
10245
  # Request-specific options
9848
10246
  #
9849
10247
  # @yield [result, err] Result & error if block supplied
9850
- # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MetadataSchema] parsed result object
10248
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleProtobufEmpty] parsed result object
9851
10249
  # @yieldparam err [StandardError] error object if request failed
9852
10250
  #
9853
- # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MetadataSchema]
10251
+ # @return [Google::Apis::AiplatformV1::GoogleProtobufEmpty]
10252
+ #
10253
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10254
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10255
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
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?
10261
+ command.query['fields'] = fields unless fields.nil?
10262
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10263
+ execute_or_queue_command(command, &block)
10264
+ end
10265
+
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`.
10270
+ # @param [String] name
10271
+ # The name of the operation resource to be deleted.
10272
+ # @param [String] fields
10273
+ # Selector specifying which fields to include in a partial response.
10274
+ # @param [String] quota_user
10275
+ # Available to use for quota purposes for server-side applications. Can be any
10276
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
10277
+ # @param [Google::Apis::RequestOptions] options
10278
+ # Request-specific options
10279
+ #
10280
+ # @yield [result, err] Result & error if block supplied
10281
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleProtobufEmpty] parsed result object
10282
+ # @yieldparam err [StandardError] error object if request failed
10283
+ #
10284
+ # @return [Google::Apis::AiplatformV1::GoogleProtobufEmpty]
10285
+ #
10286
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10287
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10288
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
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
10293
+ command.params['name'] = name unless name.nil?
10294
+ command.query['fields'] = fields unless fields.nil?
10295
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10296
+ execute_or_queue_command(command, &block)
10297
+ end
10298
+
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.
10489
+ # @param [String] parent
10490
+ # Required. The MetadataStore whose MetadataSchemas should be listed. Format: `
10491
+ # projects/`project`/locations/`location`/metadataStores/`metadatastore``
10492
+ # @param [String] filter
10493
+ # A query to filter available MetadataSchemas for matching results.
10494
+ # @param [Fixnum] page_size
10495
+ # The maximum number of MetadataSchemas to return. The service may return fewer.
10496
+ # Must be in range 1-1000, inclusive. Defaults to 100.
10497
+ # @param [String] page_token
10498
+ # A page token, received from a previous MetadataService.ListMetadataSchemas
10499
+ # call. Provide this to retrieve the next page. When paginating, all other
10500
+ # provided parameters must match the call that provided the page token. (
10501
+ # Otherwise the request will fail with INVALID_ARGUMENT error.)
10502
+ # @param [String] fields
10503
+ # Selector specifying which fields to include in a partial response.
10504
+ # @param [String] quota_user
10505
+ # Available to use for quota purposes for server-side applications. Can be any
10506
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
10507
+ # @param [Google::Apis::RequestOptions] options
10508
+ # Request-specific options
10509
+ #
10510
+ # @yield [result, err] Result & error if block supplied
10511
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListMetadataSchemasResponse] parsed result object
10512
+ # @yieldparam err [StandardError] error object if request failed
10513
+ #
10514
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListMetadataSchemasResponse]
10515
+ #
10516
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10517
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10518
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10519
+ def list_project_location_metadata_store_metadata_schemas(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
10520
+ command = make_simple_command(:get, 'v1/{+parent}/metadataSchemas', options)
10521
+ command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListMetadataSchemasResponse::Representation
10522
+ command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListMetadataSchemasResponse
10523
+ command.params['parent'] = parent unless parent.nil?
10524
+ command.query['filter'] = filter unless filter.nil?
10525
+ command.query['pageSize'] = page_size unless page_size.nil?
10526
+ command.query['pageToken'] = page_token unless page_token.nil?
10527
+ command.query['fields'] = fields unless fields.nil?
10528
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10529
+ execute_or_queue_command(command, &block)
10530
+ end
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]
9854
10619
  #
9855
10620
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9856
10621
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9857
10622
  # @raise [Google::Apis::AuthorizationError] Authorization is required
9858
- 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)
9859
- command = make_simple_command(:post, 'v1/{+parent}/metadataSchemas', options)
9860
- command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MetadataSchema::Representation
9861
- command.request_object = google_cloud_aiplatform_v1_metadata_schema_object
9862
- command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MetadataSchema::Representation
9863
- command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MetadataSchema
9864
- command.params['parent'] = parent unless parent.nil?
9865
- command.query['metadataSchemaId'] = metadata_schema_id unless metadata_schema_id.nil?
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?
9866
10628
  command.query['fields'] = fields unless fields.nil?
9867
10629
  command.query['quotaUser'] = quota_user unless quota_user.nil?
9868
10630
  execute_or_queue_command(command, &block)
9869
10631
  end
9870
10632
 
9871
- # Retrieves a specific MetadataSchema.
10633
+ # Lists operations that match the specified filter in the request. If the server
10634
+ # doesn't support this method, it returns `UNIMPLEMENTED`.
9872
10635
  # @param [String] name
9873
- # Required. The resource name of the MetadataSchema to retrieve. Format: `
9874
- # projects/`project`/locations/`location`/metadataStores/`metadatastore`/
9875
- # metadataSchemas/`metadataschema``
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.
9876
10643
  # @param [String] fields
9877
10644
  # Selector specifying which fields to include in a partial response.
9878
10645
  # @param [String] quota_user
@@ -9882,38 +10649,41 @@ module Google
9882
10649
  # Request-specific options
9883
10650
  #
9884
10651
  # @yield [result, err] Result & error if block supplied
9885
- # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MetadataSchema] parsed result object
10652
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse] parsed result object
9886
10653
  # @yieldparam err [StandardError] error object if request failed
9887
10654
  #
9888
- # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MetadataSchema]
10655
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse]
9889
10656
  #
9890
10657
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9891
10658
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9892
10659
  # @raise [Google::Apis::AuthorizationError] Authorization is required
9893
- def get_project_location_metadata_store_metadata_schema(name, fields: nil, quota_user: nil, options: nil, &block)
9894
- command = make_simple_command(:get, 'v1/{+name}', options)
9895
- command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MetadataSchema::Representation
9896
- command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MetadataSchema
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
9897
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?
9898
10668
  command.query['fields'] = fields unless fields.nil?
9899
10669
  command.query['quotaUser'] = quota_user unless quota_user.nil?
9900
10670
  execute_or_queue_command(command, &block)
9901
10671
  end
9902
10672
 
9903
- # Lists MetadataSchemas.
9904
- # @param [String] parent
9905
- # Required. The MetadataStore whose MetadataSchemas should be listed. Format: `
9906
- # projects/`project`/locations/`location`/metadataStores/`metadatastore``
9907
- # @param [String] filter
9908
- # A query to filter available MetadataSchemas for matching results.
9909
- # @param [Fixnum] page_size
9910
- # The maximum number of MetadataSchemas to return. The service may return fewer.
9911
- # Must be in range 1-1000, inclusive. Defaults to 100.
9912
- # @param [String] page_token
9913
- # A page token, received from a previous MetadataService.ListMetadataSchemas
9914
- # call. Provide this to retrieve the next page. When paginating, all other
9915
- # provided parameters must match the call that provided the page token. (
9916
- # Otherwise the request will fail with INVALID_ARGUMENT error.)
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.
9917
10687
  # @param [String] fields
9918
10688
  # Selector specifying which fields to include in a partial response.
9919
10689
  # @param [String] quota_user
@@ -9923,22 +10693,20 @@ module Google
9923
10693
  # Request-specific options
9924
10694
  #
9925
10695
  # @yield [result, err] Result & error if block supplied
9926
- # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListMetadataSchemasResponse] parsed result object
10696
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
9927
10697
  # @yieldparam err [StandardError] error object if request failed
9928
10698
  #
9929
- # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListMetadataSchemasResponse]
10699
+ # @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
9930
10700
  #
9931
10701
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9932
10702
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9933
10703
  # @raise [Google::Apis::AuthorizationError] Authorization is required
9934
- def list_project_location_metadata_store_metadata_schemas(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
9935
- command = make_simple_command(:get, 'v1/{+parent}/metadataSchemas', options)
9936
- command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListMetadataSchemasResponse::Representation
9937
- command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListMetadataSchemasResponse
9938
- command.params['parent'] = parent unless parent.nil?
9939
- command.query['filter'] = filter unless filter.nil?
9940
- command.query['pageSize'] = page_size unless page_size.nil?
9941
- command.query['pageToken'] = page_token unless page_token.nil?
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?
9942
10710
  command.query['fields'] = fields unless fields.nil?
9943
10711
  command.query['quotaUser'] = quota_user unless quota_user.nil?
9944
10712
  execute_or_queue_command(command, &block)
@@ -13251,6 +14019,40 @@ module Google
13251
14019
  execute_or_queue_command(command, &block)
13252
14020
  end
13253
14021
 
14022
+ # Generate content with multimodal inputs with streaming support.
14023
+ # @param [String] model
14024
+ # Required. The name of the publisher model requested to serve the prediction.
14025
+ # Format: `projects/`project`/locations/`location`/publishers/*/models/*`
14026
+ # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentRequest] google_cloud_aiplatform_v1_generate_content_request_object
14027
+ # @param [String] fields
14028
+ # Selector specifying which fields to include in a partial response.
14029
+ # @param [String] quota_user
14030
+ # Available to use for quota purposes for server-side applications. Can be any
14031
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
14032
+ # @param [Google::Apis::RequestOptions] options
14033
+ # Request-specific options
14034
+ #
14035
+ # @yield [result, err] Result & error if block supplied
14036
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse] parsed result object
14037
+ # @yieldparam err [StandardError] error object if request failed
14038
+ #
14039
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse]
14040
+ #
14041
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
14042
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
14043
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
14044
+ def stream_project_location_publisher_model_generate_content(model, google_cloud_aiplatform_v1_generate_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
14045
+ command = make_simple_command(:post, 'v1/{+model}:streamGenerateContent', options)
14046
+ command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentRequest::Representation
14047
+ command.request_object = google_cloud_aiplatform_v1_generate_content_request_object
14048
+ command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse::Representation
14049
+ command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse
14050
+ command.params['model'] = model unless model.nil?
14051
+ command.query['fields'] = fields unless fields.nil?
14052
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
14053
+ execute_or_queue_command(command, &block)
14054
+ end
14055
+
13254
14056
  # Creates a Schedule.
13255
14057
  # @param [String] parent
13256
14058
  # Required. The resource name of the Location to create the Schedule in. Format:
@@ -14956,6 +15758,48 @@ module Google
14956
15758
  execute_or_queue_command(command, &block)
14957
15759
  end
14958
15760
 
15761
+ # Reads multiple TensorboardTimeSeries' data. The data point number limit is
15762
+ # 1000 for scalars, 100 for tensors and blob references. If the number of data
15763
+ # points stored is less than the limit, all data is returned. Otherwise, the
15764
+ # number limit of data points is randomly selected from this time series and
15765
+ # returned.
15766
+ # @param [String] tensorboard
15767
+ # Required. The resource name of the Tensorboard containing
15768
+ # TensorboardTimeSeries to read data from. Format: `projects/`project`/locations/
15769
+ # `location`/tensorboards/`tensorboard``. The TensorboardTimeSeries referenced
15770
+ # by time_series must be sub resources of this Tensorboard.
15771
+ # @param [Array<String>, String] time_series
15772
+ # Required. The resource names of the TensorboardTimeSeries to read data from.
15773
+ # Format: `projects/`project`/locations/`location`/tensorboards/`tensorboard`/
15774
+ # experiments/`experiment`/runs/`run`/timeSeries/`time_series``
15775
+ # @param [String] fields
15776
+ # Selector specifying which fields to include in a partial response.
15777
+ # @param [String] quota_user
15778
+ # Available to use for quota purposes for server-side applications. Can be any
15779
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
15780
+ # @param [Google::Apis::RequestOptions] options
15781
+ # Request-specific options
15782
+ #
15783
+ # @yield [result, err] Result & error if block supplied
15784
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BatchReadTensorboardTimeSeriesDataResponse] parsed result object
15785
+ # @yieldparam err [StandardError] error object if request failed
15786
+ #
15787
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BatchReadTensorboardTimeSeriesDataResponse]
15788
+ #
15789
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15790
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15791
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
15792
+ def batch_project_location_tensorboard_read(tensorboard, time_series: nil, fields: nil, quota_user: nil, options: nil, &block)
15793
+ command = make_simple_command(:get, 'v1/{+tensorboard}:batchRead', options)
15794
+ command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BatchReadTensorboardTimeSeriesDataResponse::Representation
15795
+ command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BatchReadTensorboardTimeSeriesDataResponse
15796
+ command.params['tensorboard'] = tensorboard unless tensorboard.nil?
15797
+ command.query['timeSeries'] = time_series unless time_series.nil?
15798
+ command.query['fields'] = fields unless fields.nil?
15799
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
15800
+ execute_or_queue_command(command, &block)
15801
+ end
15802
+
14959
15803
  # Creates a Tensorboard.
14960
15804
  # @param [String] parent
14961
15805
  # Required. The resource name of the Location to create the Tensorboard in.
@@ -15206,6 +16050,43 @@ module Google
15206
16050
  execute_or_queue_command(command, &block)
15207
16051
  end
15208
16052
 
16053
+ # Batch create TensorboardTimeSeries that belong to a TensorboardExperiment.
16054
+ # @param [String] parent
16055
+ # Required. The resource name of the TensorboardExperiment to create the
16056
+ # TensorboardTimeSeries in. Format: `projects/`project`/locations/`location`/
16057
+ # tensorboards/`tensorboard`/experiments/`experiment`` The TensorboardRuns
16058
+ # referenced by the parent fields in the CreateTensorboardTimeSeriesRequest
16059
+ # messages must be sub resources of this TensorboardExperiment.
16060
+ # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesRequest] google_cloud_aiplatform_v1_batch_create_tensorboard_time_series_request_object
16061
+ # @param [String] fields
16062
+ # Selector specifying which fields to include in a partial response.
16063
+ # @param [String] quota_user
16064
+ # Available to use for quota purposes for server-side applications. Can be any
16065
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
16066
+ # @param [Google::Apis::RequestOptions] options
16067
+ # Request-specific options
16068
+ #
16069
+ # @yield [result, err] Result & error if block supplied
16070
+ # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesResponse] parsed result object
16071
+ # @yieldparam err [StandardError] error object if request failed
16072
+ #
16073
+ # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesResponse]
16074
+ #
16075
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16076
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16077
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
16078
+ def batch_project_location_tensorboard_experiment_create(parent, google_cloud_aiplatform_v1_batch_create_tensorboard_time_series_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
16079
+ command = make_simple_command(:post, 'v1/{+parent}:batchCreate', options)
16080
+ command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesRequest::Representation
16081
+ command.request_object = google_cloud_aiplatform_v1_batch_create_tensorboard_time_series_request_object
16082
+ command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesResponse::Representation
16083
+ command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesResponse
16084
+ command.params['parent'] = parent unless parent.nil?
16085
+ command.query['fields'] = fields unless fields.nil?
16086
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
16087
+ execute_or_queue_command(command, &block)
16088
+ end
16089
+
15209
16090
  # Creates a TensorboardExperiment.
15210
16091
  # @param [String] parent
15211
16092
  # Required. The resource name of the Tensorboard to create the
@@ -16073,91 +16954,6 @@ module Google
16073
16954
  execute_or_queue_command(command, &block)
16074
16955
  end
16075
16956
 
16076
- # Batch create TensorboardTimeSeries that belong to a TensorboardExperiment.
16077
- # @param [String] parent
16078
- # Required. The resource name of the TensorboardExperiment to create the
16079
- # TensorboardTimeSeries in. Format: `projects/`project`/locations/`location`/
16080
- # tensorboards/`tensorboard`/experiments/`experiment`` The TensorboardRuns
16081
- # referenced by the parent fields in the CreateTensorboardTimeSeriesRequest
16082
- # messages must be sub resources of this TensorboardExperiment.
16083
- # @param [String] runs_id
16084
- # @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesRequest] google_cloud_aiplatform_v1_batch_create_tensorboard_time_series_request_object
16085
- # @param [String] fields
16086
- # Selector specifying which fields to include in a partial response.
16087
- # @param [String] quota_user
16088
- # Available to use for quota purposes for server-side applications. Can be any
16089
- # arbitrary string assigned to a user, but should not exceed 40 characters.
16090
- # @param [Google::Apis::RequestOptions] options
16091
- # Request-specific options
16092
- #
16093
- # @yield [result, err] Result & error if block supplied
16094
- # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesResponse] parsed result object
16095
- # @yieldparam err [StandardError] error object if request failed
16096
- #
16097
- # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesResponse]
16098
- #
16099
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16100
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16101
- # @raise [Google::Apis::AuthorizationError] Authorization is required
16102
- def batch_project_location_tensorboard_experiment_run_time_series_create(parent, runs_id, google_cloud_aiplatform_v1_batch_create_tensorboard_time_series_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
16103
- command = make_simple_command(:post, 'v1/{+parent}/runs/{runsId}/timeSeries:batchCreate', options)
16104
- command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesRequest::Representation
16105
- command.request_object = google_cloud_aiplatform_v1_batch_create_tensorboard_time_series_request_object
16106
- command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesResponse::Representation
16107
- command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BatchCreateTensorboardTimeSeriesResponse
16108
- command.params['parent'] = parent unless parent.nil?
16109
- command.params['runsId'] = runs_id unless runs_id.nil?
16110
- command.query['fields'] = fields unless fields.nil?
16111
- command.query['quotaUser'] = quota_user unless quota_user.nil?
16112
- execute_or_queue_command(command, &block)
16113
- end
16114
-
16115
- # Reads multiple TensorboardTimeSeries' data. The data point number limit is
16116
- # 1000 for scalars, 100 for tensors and blob references. If the number of data
16117
- # points stored is less than the limit, all data is returned. Otherwise, the
16118
- # number limit of data points is randomly selected from this time series and
16119
- # returned.
16120
- # @param [String] tensorboard
16121
- # Required. The resource name of the Tensorboard containing
16122
- # TensorboardTimeSeries to read data from. Format: `projects/`project`/locations/
16123
- # `location`/tensorboards/`tensorboard``. The TensorboardTimeSeries referenced
16124
- # by time_series must be sub resources of this Tensorboard.
16125
- # @param [String] experiments_id
16126
- # @param [String] runs_id
16127
- # @param [Array<String>, String] time_series
16128
- # Required. The resource names of the TensorboardTimeSeries to read data from.
16129
- # Format: `projects/`project`/locations/`location`/tensorboards/`tensorboard`/
16130
- # experiments/`experiment`/runs/`run`/timeSeries/`time_series``
16131
- # @param [String] fields
16132
- # Selector specifying which fields to include in a partial response.
16133
- # @param [String] quota_user
16134
- # Available to use for quota purposes for server-side applications. Can be any
16135
- # arbitrary string assigned to a user, but should not exceed 40 characters.
16136
- # @param [Google::Apis::RequestOptions] options
16137
- # Request-specific options
16138
- #
16139
- # @yield [result, err] Result & error if block supplied
16140
- # @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BatchReadTensorboardTimeSeriesDataResponse] parsed result object
16141
- # @yieldparam err [StandardError] error object if request failed
16142
- #
16143
- # @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BatchReadTensorboardTimeSeriesDataResponse]
16144
- #
16145
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16146
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16147
- # @raise [Google::Apis::AuthorizationError] Authorization is required
16148
- def batch_project_location_tensorboard_experiment_run_time_series_read(tensorboard, experiments_id, runs_id, time_series: nil, fields: nil, quota_user: nil, options: nil, &block)
16149
- command = make_simple_command(:get, 'v1/{+tensorboard}/experiments/{experimentsId}/runs/{runsId}/timeSeries:batchRead', options)
16150
- command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BatchReadTensorboardTimeSeriesDataResponse::Representation
16151
- command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1BatchReadTensorboardTimeSeriesDataResponse
16152
- command.params['tensorboard'] = tensorboard unless tensorboard.nil?
16153
- command.params['experimentsId'] = experiments_id unless experiments_id.nil?
16154
- command.params['runsId'] = runs_id unless runs_id.nil?
16155
- command.query['timeSeries'] = time_series unless time_series.nil?
16156
- command.query['fields'] = fields unless fields.nil?
16157
- command.query['quotaUser'] = quota_user unless quota_user.nil?
16158
- execute_or_queue_command(command, &block)
16159
- end
16160
-
16161
16957
  # Creates a TensorboardTimeSeries.
16162
16958
  # @param [String] parent
16163
16959
  # Required. The resource name of the TensorboardRun to create the