google-apis-aiplatform_v1 0.64.0 → 0.66.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.
@@ -1179,6 +1179,40 @@ module Google
|
|
1179
1179
|
execute_or_queue_command(command, &block)
|
1180
1180
|
end
|
1181
1181
|
|
1182
|
+
# Generates synthetic data based on the provided configuration.
|
1183
|
+
# @param [String] location
|
1184
|
+
# Required. The resource name of the Location to run the job. Format: `projects/`
|
1185
|
+
# project`/locations/`location``
|
1186
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateSyntheticDataRequest] google_cloud_aiplatform_v1_generate_synthetic_data_request_object
|
1187
|
+
# @param [String] fields
|
1188
|
+
# Selector specifying which fields to include in a partial response.
|
1189
|
+
# @param [String] quota_user
|
1190
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1191
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1192
|
+
# @param [Google::Apis::RequestOptions] options
|
1193
|
+
# Request-specific options
|
1194
|
+
#
|
1195
|
+
# @yield [result, err] Result & error if block supplied
|
1196
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateSyntheticDataResponse] parsed result object
|
1197
|
+
# @yieldparam err [StandardError] error object if request failed
|
1198
|
+
#
|
1199
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateSyntheticDataResponse]
|
1200
|
+
#
|
1201
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1202
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1203
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1204
|
+
def generate_project_location_synthetic_data(location, google_cloud_aiplatform_v1_generate_synthetic_data_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1205
|
+
command = make_simple_command(:post, 'v1/{+location}:generateSyntheticData', options)
|
1206
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateSyntheticDataRequest::Representation
|
1207
|
+
command.request_object = google_cloud_aiplatform_v1_generate_synthetic_data_request_object
|
1208
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateSyntheticDataResponse::Representation
|
1209
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateSyntheticDataResponse
|
1210
|
+
command.params['location'] = location unless location.nil?
|
1211
|
+
command.query['fields'] = fields unless fields.nil?
|
1212
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1213
|
+
execute_or_queue_command(command, &block)
|
1214
|
+
end
|
1215
|
+
|
1182
1216
|
# Gets information about a location.
|
1183
1217
|
# @param [String] name
|
1184
1218
|
# Resource name for the location.
|
@@ -1244,8 +1278,8 @@ module Google
|
|
1244
1278
|
# @param [String] name
|
1245
1279
|
# The resource that owns the locations collection, if applicable.
|
1246
1280
|
# @param [Array<String>, String] extra_location_types
|
1247
|
-
# Optional.
|
1248
|
-
#
|
1281
|
+
# Optional. Unless explicitly documented otherwise, don't use this unsupported
|
1282
|
+
# field which is primarily intended for internal usage.
|
1249
1283
|
# @param [String] filter
|
1250
1284
|
# A filter to narrow down results to a preferred subset. The filtering language
|
1251
1285
|
# accepts strings like `"displayName=tokyo"`, and is documented in more detail
|
@@ -5396,6 +5430,124 @@ module Google
|
|
5396
5430
|
execute_or_queue_command(command, &block)
|
5397
5431
|
end
|
5398
5432
|
|
5433
|
+
# Forwards arbitrary HTTP requests for both streaming and non-streaming cases.
|
5434
|
+
# To use this method, invoke_route_prefix must be set to allow the paths that
|
5435
|
+
# will be specified in the request.
|
5436
|
+
# @param [String] endpoint
|
5437
|
+
# Required. The name of the Endpoint requested to serve the prediction. Format: `
|
5438
|
+
# projects/`project`/locations/`location`/endpoints/`endpoint``
|
5439
|
+
# @param [String] deployed_model_id
|
5440
|
+
# ID of the DeployedModel that serves the invoke request.
|
5441
|
+
# @param [String] invoke_id
|
5442
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1InvokeRequest] google_cloud_aiplatform_v1_invoke_request_object
|
5443
|
+
# @param [String] fields
|
5444
|
+
# Selector specifying which fields to include in a partial response.
|
5445
|
+
# @param [String] quota_user
|
5446
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5447
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5448
|
+
# @param [Google::Apis::RequestOptions] options
|
5449
|
+
# Request-specific options
|
5450
|
+
#
|
5451
|
+
# @yield [result, err] Result & error if block supplied
|
5452
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleApiHttpBody] parsed result object
|
5453
|
+
# @yieldparam err [StandardError] error object if request failed
|
5454
|
+
#
|
5455
|
+
# @return [Google::Apis::AiplatformV1::GoogleApiHttpBody]
|
5456
|
+
#
|
5457
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5458
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5459
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5460
|
+
def invoke_project_location_endpoint_deployed_model_invoke(endpoint, deployed_model_id, invoke_id, google_cloud_aiplatform_v1_invoke_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
5461
|
+
command = make_simple_command(:post, 'v1/{+endpoint}/deployedModels/{deployedModelId}/invoke/{+invokeId}', options)
|
5462
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1InvokeRequest::Representation
|
5463
|
+
command.request_object = google_cloud_aiplatform_v1_invoke_request_object
|
5464
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleApiHttpBody::Representation
|
5465
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleApiHttpBody
|
5466
|
+
command.params['endpoint'] = endpoint unless endpoint.nil?
|
5467
|
+
command.params['deployedModelId'] = deployed_model_id unless deployed_model_id.nil?
|
5468
|
+
command.params['invokeId'] = invoke_id unless invoke_id.nil?
|
5469
|
+
command.query['fields'] = fields unless fields.nil?
|
5470
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5471
|
+
execute_or_queue_command(command, &block)
|
5472
|
+
end
|
5473
|
+
|
5474
|
+
# Forwards arbitrary HTTP requests for both streaming and non-streaming cases.
|
5475
|
+
# To use this method, invoke_route_prefix must be set to allow the paths that
|
5476
|
+
# will be specified in the request.
|
5477
|
+
# @param [String] endpoint
|
5478
|
+
# Required. The name of the Endpoint requested to serve the prediction. Format: `
|
5479
|
+
# projects/`project`/locations/`location`/endpoints/`endpoint``
|
5480
|
+
# @param [String] invoke_id
|
5481
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1InvokeRequest] google_cloud_aiplatform_v1_invoke_request_object
|
5482
|
+
# @param [String] fields
|
5483
|
+
# Selector specifying which fields to include in a partial response.
|
5484
|
+
# @param [String] quota_user
|
5485
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5486
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5487
|
+
# @param [Google::Apis::RequestOptions] options
|
5488
|
+
# Request-specific options
|
5489
|
+
#
|
5490
|
+
# @yield [result, err] Result & error if block supplied
|
5491
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleApiHttpBody] parsed result object
|
5492
|
+
# @yieldparam err [StandardError] error object if request failed
|
5493
|
+
#
|
5494
|
+
# @return [Google::Apis::AiplatformV1::GoogleApiHttpBody]
|
5495
|
+
#
|
5496
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5497
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5498
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5499
|
+
def invoke_project_location_endpoint_invoke(endpoint, invoke_id, google_cloud_aiplatform_v1_invoke_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
5500
|
+
command = make_simple_command(:post, 'v1/{+endpoint}/invoke/{+invokeId}', options)
|
5501
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1InvokeRequest::Representation
|
5502
|
+
command.request_object = google_cloud_aiplatform_v1_invoke_request_object
|
5503
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleApiHttpBody::Representation
|
5504
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleApiHttpBody
|
5505
|
+
command.params['endpoint'] = endpoint unless endpoint.nil?
|
5506
|
+
command.params['invokeId'] = invoke_id unless invoke_id.nil?
|
5507
|
+
command.query['fields'] = fields unless fields.nil?
|
5508
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5509
|
+
execute_or_queue_command(command, &block)
|
5510
|
+
end
|
5511
|
+
|
5512
|
+
# Forwards arbitrary HTTP requests for both streaming and non-streaming cases.
|
5513
|
+
# To use this method, invoke_route_prefix must be set to allow the paths that
|
5514
|
+
# will be specified in the request.
|
5515
|
+
# @param [String] endpoint
|
5516
|
+
# Required. The name of the Endpoint requested to serve the prediction. Format: `
|
5517
|
+
# projects/`project`/locations/`location`/endpoints/`endpoint``
|
5518
|
+
# @param [Google::Apis::AiplatformV1::GoogleApiHttpBody] google_api_http_body_object
|
5519
|
+
# @param [String] deployed_model_id
|
5520
|
+
# ID of the DeployedModel that serves the invoke request.
|
5521
|
+
# @param [String] fields
|
5522
|
+
# Selector specifying which fields to include in a partial response.
|
5523
|
+
# @param [String] quota_user
|
5524
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5525
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5526
|
+
# @param [Google::Apis::RequestOptions] options
|
5527
|
+
# Request-specific options
|
5528
|
+
#
|
5529
|
+
# @yield [result, err] Result & error if block supplied
|
5530
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleApiHttpBody] parsed result object
|
5531
|
+
# @yieldparam err [StandardError] error object if request failed
|
5532
|
+
#
|
5533
|
+
# @return [Google::Apis::AiplatformV1::GoogleApiHttpBody]
|
5534
|
+
#
|
5535
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5536
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5537
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5538
|
+
def embeddings_project_location_endpoint_openapi(endpoint, google_api_http_body_object = nil, deployed_model_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
5539
|
+
command = make_simple_command(:post, 'v1/{+endpoint}/embeddings', options)
|
5540
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleApiHttpBody::Representation
|
5541
|
+
command.request_object = google_api_http_body_object
|
5542
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleApiHttpBody::Representation
|
5543
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleApiHttpBody
|
5544
|
+
command.params['endpoint'] = endpoint unless endpoint.nil?
|
5545
|
+
command.query['deployedModelId'] = deployed_model_id unless deployed_model_id.nil?
|
5546
|
+
command.query['fields'] = fields unless fields.nil?
|
5547
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5548
|
+
execute_or_queue_command(command, &block)
|
5549
|
+
end
|
5550
|
+
|
5399
5551
|
# Starts asynchronous cancellation on a long-running operation. The server makes
|
5400
5552
|
# a best effort to cancel the operation, but success is not guaranteed. If the
|
5401
5553
|
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
@@ -5579,6 +5731,508 @@ module Google
|
|
5579
5731
|
execute_or_queue_command(command, &block)
|
5580
5732
|
end
|
5581
5733
|
|
5734
|
+
# Creates an Evaluation Item.
|
5735
|
+
# @param [String] parent
|
5736
|
+
# Required. The resource name of the Location to create the Evaluation Item in.
|
5737
|
+
# Format: `projects/`project`/locations/`location``
|
5738
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationItem] google_cloud_aiplatform_v1_evaluation_item_object
|
5739
|
+
# @param [String] fields
|
5740
|
+
# Selector specifying which fields to include in a partial response.
|
5741
|
+
# @param [String] quota_user
|
5742
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5743
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5744
|
+
# @param [Google::Apis::RequestOptions] options
|
5745
|
+
# Request-specific options
|
5746
|
+
#
|
5747
|
+
# @yield [result, err] Result & error if block supplied
|
5748
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationItem] parsed result object
|
5749
|
+
# @yieldparam err [StandardError] error object if request failed
|
5750
|
+
#
|
5751
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationItem]
|
5752
|
+
#
|
5753
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5754
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5755
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5756
|
+
def create_project_location_evaluation_item(parent, google_cloud_aiplatform_v1_evaluation_item_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
5757
|
+
command = make_simple_command(:post, 'v1/{+parent}/evaluationItems', options)
|
5758
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationItem::Representation
|
5759
|
+
command.request_object = google_cloud_aiplatform_v1_evaluation_item_object
|
5760
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationItem::Representation
|
5761
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationItem
|
5762
|
+
command.params['parent'] = parent unless parent.nil?
|
5763
|
+
command.query['fields'] = fields unless fields.nil?
|
5764
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5765
|
+
execute_or_queue_command(command, &block)
|
5766
|
+
end
|
5767
|
+
|
5768
|
+
# Deletes an Evaluation Item.
|
5769
|
+
# @param [String] name
|
5770
|
+
# Required. The name of the EvaluationItem resource to be deleted. Format: `
|
5771
|
+
# projects/`project`/locations/`location`/evaluationItems/`evaluation_item``
|
5772
|
+
# @param [String] fields
|
5773
|
+
# Selector specifying which fields to include in a partial response.
|
5774
|
+
# @param [String] quota_user
|
5775
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5776
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5777
|
+
# @param [Google::Apis::RequestOptions] options
|
5778
|
+
# Request-specific options
|
5779
|
+
#
|
5780
|
+
# @yield [result, err] Result & error if block supplied
|
5781
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
|
5782
|
+
# @yieldparam err [StandardError] error object if request failed
|
5783
|
+
#
|
5784
|
+
# @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
|
5785
|
+
#
|
5786
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5787
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5788
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5789
|
+
def delete_project_location_evaluation_item(name, fields: nil, quota_user: nil, options: nil, &block)
|
5790
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
5791
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
5792
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
5793
|
+
command.params['name'] = name unless name.nil?
|
5794
|
+
command.query['fields'] = fields unless fields.nil?
|
5795
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5796
|
+
execute_or_queue_command(command, &block)
|
5797
|
+
end
|
5798
|
+
|
5799
|
+
# Gets an Evaluation Item.
|
5800
|
+
# @param [String] name
|
5801
|
+
# Required. The name of the EvaluationItem resource. Format: `projects/`project`/
|
5802
|
+
# locations/`location`/evaluationItems/`evaluation_item``
|
5803
|
+
# @param [String] fields
|
5804
|
+
# Selector specifying which fields to include in a partial response.
|
5805
|
+
# @param [String] quota_user
|
5806
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5807
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5808
|
+
# @param [Google::Apis::RequestOptions] options
|
5809
|
+
# Request-specific options
|
5810
|
+
#
|
5811
|
+
# @yield [result, err] Result & error if block supplied
|
5812
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationItem] parsed result object
|
5813
|
+
# @yieldparam err [StandardError] error object if request failed
|
5814
|
+
#
|
5815
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationItem]
|
5816
|
+
#
|
5817
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5818
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5819
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5820
|
+
def get_project_location_evaluation_item(name, fields: nil, quota_user: nil, options: nil, &block)
|
5821
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
5822
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationItem::Representation
|
5823
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationItem
|
5824
|
+
command.params['name'] = name unless name.nil?
|
5825
|
+
command.query['fields'] = fields unless fields.nil?
|
5826
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5827
|
+
execute_or_queue_command(command, &block)
|
5828
|
+
end
|
5829
|
+
|
5830
|
+
# Lists Evaluation Items.
|
5831
|
+
# @param [String] parent
|
5832
|
+
# Required. The resource name of the Location from which to list the Evaluation
|
5833
|
+
# Items. Format: `projects/`project`/locations/`location``
|
5834
|
+
# @param [String] filter
|
5835
|
+
# Optional. Filter expression that matches a subset of the EvaluationItems to
|
5836
|
+
# show. For field names both snake_case and camelCase are supported. For more
|
5837
|
+
# information about filter syntax, see [AIP-160](https://google.aip.dev/160).
|
5838
|
+
# @param [String] order_by
|
5839
|
+
# Optional. A comma-separated list of fields to order by, sorted in ascending
|
5840
|
+
# order by default. Use `desc` after a field name for descending.
|
5841
|
+
# @param [Fixnum] page_size
|
5842
|
+
# Optional. The maximum number of Evaluation Items to return.
|
5843
|
+
# @param [String] page_token
|
5844
|
+
# Optional. A page token, received from a previous `ListEvaluationItems` call.
|
5845
|
+
# Provide this to retrieve the subsequent page.
|
5846
|
+
# @param [String] fields
|
5847
|
+
# Selector specifying which fields to include in a partial response.
|
5848
|
+
# @param [String] quota_user
|
5849
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5850
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5851
|
+
# @param [Google::Apis::RequestOptions] options
|
5852
|
+
# Request-specific options
|
5853
|
+
#
|
5854
|
+
# @yield [result, err] Result & error if block supplied
|
5855
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListEvaluationItemsResponse] parsed result object
|
5856
|
+
# @yieldparam err [StandardError] error object if request failed
|
5857
|
+
#
|
5858
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListEvaluationItemsResponse]
|
5859
|
+
#
|
5860
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5861
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5862
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5863
|
+
def list_project_location_evaluation_items(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
5864
|
+
command = make_simple_command(:get, 'v1/{+parent}/evaluationItems', options)
|
5865
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListEvaluationItemsResponse::Representation
|
5866
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListEvaluationItemsResponse
|
5867
|
+
command.params['parent'] = parent unless parent.nil?
|
5868
|
+
command.query['filter'] = filter unless filter.nil?
|
5869
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
5870
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
5871
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
5872
|
+
command.query['fields'] = fields unless fields.nil?
|
5873
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5874
|
+
execute_or_queue_command(command, &block)
|
5875
|
+
end
|
5876
|
+
|
5877
|
+
# Cancels an Evaluation Run. Attempts to cancel a running Evaluation Run
|
5878
|
+
# asynchronously. Status of run can be checked via GetEvaluationRun.
|
5879
|
+
# @param [String] name
|
5880
|
+
# Required. The name of the EvaluationRun resource to be cancelled. Format: `
|
5881
|
+
# projects/`project`/locations/`location`/evaluationRuns/`evaluation_run``
|
5882
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CancelEvaluationRunRequest] google_cloud_aiplatform_v1_cancel_evaluation_run_request_object
|
5883
|
+
# @param [String] fields
|
5884
|
+
# Selector specifying which fields to include in a partial response.
|
5885
|
+
# @param [String] quota_user
|
5886
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5887
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5888
|
+
# @param [Google::Apis::RequestOptions] options
|
5889
|
+
# Request-specific options
|
5890
|
+
#
|
5891
|
+
# @yield [result, err] Result & error if block supplied
|
5892
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleProtobufEmpty] parsed result object
|
5893
|
+
# @yieldparam err [StandardError] error object if request failed
|
5894
|
+
#
|
5895
|
+
# @return [Google::Apis::AiplatformV1::GoogleProtobufEmpty]
|
5896
|
+
#
|
5897
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5898
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5899
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5900
|
+
def cancel_project_location_evaluation_run(name, google_cloud_aiplatform_v1_cancel_evaluation_run_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
5901
|
+
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
5902
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CancelEvaluationRunRequest::Representation
|
5903
|
+
command.request_object = google_cloud_aiplatform_v1_cancel_evaluation_run_request_object
|
5904
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
|
5905
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
|
5906
|
+
command.params['name'] = name unless name.nil?
|
5907
|
+
command.query['fields'] = fields unless fields.nil?
|
5908
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5909
|
+
execute_or_queue_command(command, &block)
|
5910
|
+
end
|
5911
|
+
|
5912
|
+
# Creates an Evaluation Run.
|
5913
|
+
# @param [String] parent
|
5914
|
+
# Required. The resource name of the Location to create the Evaluation Run in.
|
5915
|
+
# Format: `projects/`project`/locations/`location``
|
5916
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationRun] google_cloud_aiplatform_v1_evaluation_run_object
|
5917
|
+
# @param [String] fields
|
5918
|
+
# Selector specifying which fields to include in a partial response.
|
5919
|
+
# @param [String] quota_user
|
5920
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5921
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5922
|
+
# @param [Google::Apis::RequestOptions] options
|
5923
|
+
# Request-specific options
|
5924
|
+
#
|
5925
|
+
# @yield [result, err] Result & error if block supplied
|
5926
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationRun] parsed result object
|
5927
|
+
# @yieldparam err [StandardError] error object if request failed
|
5928
|
+
#
|
5929
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationRun]
|
5930
|
+
#
|
5931
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5932
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5933
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5934
|
+
def create_project_location_evaluation_run(parent, google_cloud_aiplatform_v1_evaluation_run_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
5935
|
+
command = make_simple_command(:post, 'v1/{+parent}/evaluationRuns', options)
|
5936
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationRun::Representation
|
5937
|
+
command.request_object = google_cloud_aiplatform_v1_evaluation_run_object
|
5938
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationRun::Representation
|
5939
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationRun
|
5940
|
+
command.params['parent'] = parent unless parent.nil?
|
5941
|
+
command.query['fields'] = fields unless fields.nil?
|
5942
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5943
|
+
execute_or_queue_command(command, &block)
|
5944
|
+
end
|
5945
|
+
|
5946
|
+
# Deletes an Evaluation Run.
|
5947
|
+
# @param [String] name
|
5948
|
+
# Required. The name of the EvaluationRun resource to be deleted. Format: `
|
5949
|
+
# projects/`project`/locations/`location`/evaluationRuns/`evaluation_run``
|
5950
|
+
# @param [String] fields
|
5951
|
+
# Selector specifying which fields to include in a partial response.
|
5952
|
+
# @param [String] quota_user
|
5953
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5954
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5955
|
+
# @param [Google::Apis::RequestOptions] options
|
5956
|
+
# Request-specific options
|
5957
|
+
#
|
5958
|
+
# @yield [result, err] Result & error if block supplied
|
5959
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
|
5960
|
+
# @yieldparam err [StandardError] error object if request failed
|
5961
|
+
#
|
5962
|
+
# @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
|
5963
|
+
#
|
5964
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5965
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5966
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5967
|
+
def delete_project_location_evaluation_run(name, fields: nil, quota_user: nil, options: nil, &block)
|
5968
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
5969
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
5970
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
5971
|
+
command.params['name'] = name unless name.nil?
|
5972
|
+
command.query['fields'] = fields unless fields.nil?
|
5973
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5974
|
+
execute_or_queue_command(command, &block)
|
5975
|
+
end
|
5976
|
+
|
5977
|
+
# Gets an Evaluation Run.
|
5978
|
+
# @param [String] name
|
5979
|
+
# Required. The name of the EvaluationRun resource. Format: `projects/`project`/
|
5980
|
+
# locations/`location`/evaluationRuns/`evaluation_run``
|
5981
|
+
# @param [String] fields
|
5982
|
+
# Selector specifying which fields to include in a partial response.
|
5983
|
+
# @param [String] quota_user
|
5984
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5985
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5986
|
+
# @param [Google::Apis::RequestOptions] options
|
5987
|
+
# Request-specific options
|
5988
|
+
#
|
5989
|
+
# @yield [result, err] Result & error if block supplied
|
5990
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationRun] parsed result object
|
5991
|
+
# @yieldparam err [StandardError] error object if request failed
|
5992
|
+
#
|
5993
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationRun]
|
5994
|
+
#
|
5995
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5996
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5997
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5998
|
+
def get_project_location_evaluation_run(name, fields: nil, quota_user: nil, options: nil, &block)
|
5999
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
6000
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationRun::Representation
|
6001
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationRun
|
6002
|
+
command.params['name'] = name unless name.nil?
|
6003
|
+
command.query['fields'] = fields unless fields.nil?
|
6004
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6005
|
+
execute_or_queue_command(command, &block)
|
6006
|
+
end
|
6007
|
+
|
6008
|
+
# Lists Evaluation Runs.
|
6009
|
+
# @param [String] parent
|
6010
|
+
# Required. The resource name of the Location from which to list the Evaluation
|
6011
|
+
# Runs. Format: `projects/`project`/locations/`location``
|
6012
|
+
# @param [String] filter
|
6013
|
+
# Optional. Filter expression that matches a subset of the EvaluationRuns to
|
6014
|
+
# show. For field names both snake_case and camelCase are supported. For more
|
6015
|
+
# information about filter syntax, see [AIP-160](https://google.aip.dev/160).
|
6016
|
+
# @param [String] order_by
|
6017
|
+
# Optional. A comma-separated list of fields to order by, sorted in ascending
|
6018
|
+
# order by default. Use `desc` after a field name for descending.
|
6019
|
+
# @param [Fixnum] page_size
|
6020
|
+
# Optional. The maximum number of Evaluation Runs to return.
|
6021
|
+
# @param [String] page_token
|
6022
|
+
# Optional. A page token, received from a previous `ListEvaluationRuns` call.
|
6023
|
+
# Provide this to retrieve the subsequent page.
|
6024
|
+
# @param [String] fields
|
6025
|
+
# Selector specifying which fields to include in a partial response.
|
6026
|
+
# @param [String] quota_user
|
6027
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
6028
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
6029
|
+
# @param [Google::Apis::RequestOptions] options
|
6030
|
+
# Request-specific options
|
6031
|
+
#
|
6032
|
+
# @yield [result, err] Result & error if block supplied
|
6033
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListEvaluationRunsResponse] parsed result object
|
6034
|
+
# @yieldparam err [StandardError] error object if request failed
|
6035
|
+
#
|
6036
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListEvaluationRunsResponse]
|
6037
|
+
#
|
6038
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6039
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6040
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6041
|
+
def list_project_location_evaluation_runs(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
6042
|
+
command = make_simple_command(:get, 'v1/{+parent}/evaluationRuns', options)
|
6043
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListEvaluationRunsResponse::Representation
|
6044
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListEvaluationRunsResponse
|
6045
|
+
command.params['parent'] = parent unless parent.nil?
|
6046
|
+
command.query['filter'] = filter unless filter.nil?
|
6047
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
6048
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
6049
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
6050
|
+
command.query['fields'] = fields unless fields.nil?
|
6051
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6052
|
+
execute_or_queue_command(command, &block)
|
6053
|
+
end
|
6054
|
+
|
6055
|
+
# Creates an Evaluation Set.
|
6056
|
+
# @param [String] parent
|
6057
|
+
# Required. The resource name of the Location to create the Evaluation Set in.
|
6058
|
+
# Format: `projects/`project`/locations/`location``
|
6059
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationSet] google_cloud_aiplatform_v1_evaluation_set_object
|
6060
|
+
# @param [String] fields
|
6061
|
+
# Selector specifying which fields to include in a partial response.
|
6062
|
+
# @param [String] quota_user
|
6063
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
6064
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
6065
|
+
# @param [Google::Apis::RequestOptions] options
|
6066
|
+
# Request-specific options
|
6067
|
+
#
|
6068
|
+
# @yield [result, err] Result & error if block supplied
|
6069
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationSet] parsed result object
|
6070
|
+
# @yieldparam err [StandardError] error object if request failed
|
6071
|
+
#
|
6072
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationSet]
|
6073
|
+
#
|
6074
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6075
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6076
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6077
|
+
def create_project_location_evaluation_set(parent, google_cloud_aiplatform_v1_evaluation_set_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
6078
|
+
command = make_simple_command(:post, 'v1/{+parent}/evaluationSets', options)
|
6079
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationSet::Representation
|
6080
|
+
command.request_object = google_cloud_aiplatform_v1_evaluation_set_object
|
6081
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationSet::Representation
|
6082
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationSet
|
6083
|
+
command.params['parent'] = parent unless parent.nil?
|
6084
|
+
command.query['fields'] = fields unless fields.nil?
|
6085
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6086
|
+
execute_or_queue_command(command, &block)
|
6087
|
+
end
|
6088
|
+
|
6089
|
+
# Deletes an Evaluation Set.
|
6090
|
+
# @param [String] name
|
6091
|
+
# Required. The name of the EvaluationSet resource to be deleted. Format: `
|
6092
|
+
# projects/`project`/locations/`location`/evaluationSets/`evaluation_set``
|
6093
|
+
# @param [String] fields
|
6094
|
+
# Selector specifying which fields to include in a partial response.
|
6095
|
+
# @param [String] quota_user
|
6096
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
6097
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
6098
|
+
# @param [Google::Apis::RequestOptions] options
|
6099
|
+
# Request-specific options
|
6100
|
+
#
|
6101
|
+
# @yield [result, err] Result & error if block supplied
|
6102
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
|
6103
|
+
# @yieldparam err [StandardError] error object if request failed
|
6104
|
+
#
|
6105
|
+
# @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
|
6106
|
+
#
|
6107
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6108
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6109
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6110
|
+
def delete_project_location_evaluation_set(name, fields: nil, quota_user: nil, options: nil, &block)
|
6111
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
6112
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
6113
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
6114
|
+
command.params['name'] = name unless name.nil?
|
6115
|
+
command.query['fields'] = fields unless fields.nil?
|
6116
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6117
|
+
execute_or_queue_command(command, &block)
|
6118
|
+
end
|
6119
|
+
|
6120
|
+
# Gets an Evaluation Set.
|
6121
|
+
# @param [String] name
|
6122
|
+
# Required. The name of the EvaluationSet resource. Format: `projects/`project`/
|
6123
|
+
# locations/`location`/evaluationSets/`evaluation_set``
|
6124
|
+
# @param [String] fields
|
6125
|
+
# Selector specifying which fields to include in a partial response.
|
6126
|
+
# @param [String] quota_user
|
6127
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
6128
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
6129
|
+
# @param [Google::Apis::RequestOptions] options
|
6130
|
+
# Request-specific options
|
6131
|
+
#
|
6132
|
+
# @yield [result, err] Result & error if block supplied
|
6133
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationSet] parsed result object
|
6134
|
+
# @yieldparam err [StandardError] error object if request failed
|
6135
|
+
#
|
6136
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationSet]
|
6137
|
+
#
|
6138
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6139
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6140
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6141
|
+
def get_project_location_evaluation_set(name, fields: nil, quota_user: nil, options: nil, &block)
|
6142
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
6143
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationSet::Representation
|
6144
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationSet
|
6145
|
+
command.params['name'] = name unless name.nil?
|
6146
|
+
command.query['fields'] = fields unless fields.nil?
|
6147
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6148
|
+
execute_or_queue_command(command, &block)
|
6149
|
+
end
|
6150
|
+
|
6151
|
+
# Lists Evaluation Sets.
|
6152
|
+
# @param [String] parent
|
6153
|
+
# Required. The resource name of the Location from which to list the Evaluation
|
6154
|
+
# Sets. Format: `projects/`project`/locations/`location``
|
6155
|
+
# @param [String] filter
|
6156
|
+
# Optional. Filter expression that matches a subset of the EvaluationSets to
|
6157
|
+
# show. For field names both snake_case and camelCase are supported. For more
|
6158
|
+
# information about filter syntax, see [AIP-160](https://google.aip.dev/160).
|
6159
|
+
# @param [String] order_by
|
6160
|
+
# Optional. A comma-separated list of fields to order by, sorted in ascending
|
6161
|
+
# order by default. Use `desc` after a field name for descending.
|
6162
|
+
# @param [Fixnum] page_size
|
6163
|
+
# Optional. The maximum number of Evaluation Sets to return.
|
6164
|
+
# @param [String] page_token
|
6165
|
+
# Optional. A page token, received from a previous `ListEvaluationSets` call.
|
6166
|
+
# Provide this to retrieve the subsequent page.
|
6167
|
+
# @param [String] fields
|
6168
|
+
# Selector specifying which fields to include in a partial response.
|
6169
|
+
# @param [String] quota_user
|
6170
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
6171
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
6172
|
+
# @param [Google::Apis::RequestOptions] options
|
6173
|
+
# Request-specific options
|
6174
|
+
#
|
6175
|
+
# @yield [result, err] Result & error if block supplied
|
6176
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListEvaluationSetsResponse] parsed result object
|
6177
|
+
# @yieldparam err [StandardError] error object if request failed
|
6178
|
+
#
|
6179
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListEvaluationSetsResponse]
|
6180
|
+
#
|
6181
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6182
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6183
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6184
|
+
def list_project_location_evaluation_sets(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
6185
|
+
command = make_simple_command(:get, 'v1/{+parent}/evaluationSets', options)
|
6186
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListEvaluationSetsResponse::Representation
|
6187
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListEvaluationSetsResponse
|
6188
|
+
command.params['parent'] = parent unless parent.nil?
|
6189
|
+
command.query['filter'] = filter unless filter.nil?
|
6190
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
6191
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
6192
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
6193
|
+
command.query['fields'] = fields unless fields.nil?
|
6194
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6195
|
+
execute_or_queue_command(command, &block)
|
6196
|
+
end
|
6197
|
+
|
6198
|
+
# Updates an Evaluation Set.
|
6199
|
+
# @param [String] name
|
6200
|
+
# Identifier. The resource name of the EvaluationSet. Format: `projects/`project`
|
6201
|
+
# /locations/`location`/evaluationSets/`evaluation_set``
|
6202
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationSet] google_cloud_aiplatform_v1_evaluation_set_object
|
6203
|
+
# @param [String] update_mask
|
6204
|
+
# Optional. The update mask applies to the resource. For the `FieldMask`
|
6205
|
+
# definition, see google.protobuf.FieldMask.
|
6206
|
+
# @param [String] fields
|
6207
|
+
# Selector specifying which fields to include in a partial response.
|
6208
|
+
# @param [String] quota_user
|
6209
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
6210
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
6211
|
+
# @param [Google::Apis::RequestOptions] options
|
6212
|
+
# Request-specific options
|
6213
|
+
#
|
6214
|
+
# @yield [result, err] Result & error if block supplied
|
6215
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationSet] parsed result object
|
6216
|
+
# @yieldparam err [StandardError] error object if request failed
|
6217
|
+
#
|
6218
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationSet]
|
6219
|
+
#
|
6220
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6221
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6222
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6223
|
+
def patch_project_location_evaluation_set(name, google_cloud_aiplatform_v1_evaluation_set_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
6224
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
6225
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationSet::Representation
|
6226
|
+
command.request_object = google_cloud_aiplatform_v1_evaluation_set_object
|
6227
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationSet::Representation
|
6228
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationSet
|
6229
|
+
command.params['name'] = name unless name.nil?
|
6230
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
6231
|
+
command.query['fields'] = fields unless fields.nil?
|
6232
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6233
|
+
execute_or_queue_command(command, &block)
|
6234
|
+
end
|
6235
|
+
|
5582
6236
|
# Creates a new FeatureGroup in a given project and location.
|
5583
6237
|
# @param [String] parent
|
5584
6238
|
# Required. The resource name of the Location to create FeatureGroups. Format: `
|