google-apis-aiplatform_v1beta1 0.57.0 → 0.59.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/aiplatform_v1beta1/classes.rb +2809 -21
- data/lib/google/apis/aiplatform_v1beta1/gem_version.rb +2 -2
- data/lib/google/apis/aiplatform_v1beta1/representations.rb +1353 -22
- data/lib/google/apis/aiplatform_v1beta1/service.rb +858 -66
- metadata +2 -2
@@ -1242,6 +1242,77 @@ module Google
|
|
1242
1242
|
execute_or_queue_command(command, &block)
|
1243
1243
|
end
|
1244
1244
|
|
1245
|
+
# Generates rubrics for a given prompt. A rubric represents a single testable
|
1246
|
+
# criterion for evaluation. One input prompt could have multiple rubrics This
|
1247
|
+
# RPC allows users to get suggested rubrics based on provided prompt, which can
|
1248
|
+
# then be reviewed and used for subsequent evaluations.
|
1249
|
+
# @param [String] location
|
1250
|
+
# Required. The resource name of the Location to generate rubrics from. Format: `
|
1251
|
+
# projects/`project`/locations/`location``
|
1252
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateInstanceRubricsRequest] google_cloud_aiplatform_v1beta1_generate_instance_rubrics_request_object
|
1253
|
+
# @param [String] fields
|
1254
|
+
# Selector specifying which fields to include in a partial response.
|
1255
|
+
# @param [String] quota_user
|
1256
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1257
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1258
|
+
# @param [Google::Apis::RequestOptions] options
|
1259
|
+
# Request-specific options
|
1260
|
+
#
|
1261
|
+
# @yield [result, err] Result & error if block supplied
|
1262
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateInstanceRubricsResponse] parsed result object
|
1263
|
+
# @yieldparam err [StandardError] error object if request failed
|
1264
|
+
#
|
1265
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateInstanceRubricsResponse]
|
1266
|
+
#
|
1267
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1268
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1269
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1270
|
+
def generate_project_location_instance_rubrics(location, google_cloud_aiplatform_v1beta1_generate_instance_rubrics_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1271
|
+
command = make_simple_command(:post, 'v1beta1/{+location}:generateInstanceRubrics', options)
|
1272
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateInstanceRubricsRequest::Representation
|
1273
|
+
command.request_object = google_cloud_aiplatform_v1beta1_generate_instance_rubrics_request_object
|
1274
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateInstanceRubricsResponse::Representation
|
1275
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateInstanceRubricsResponse
|
1276
|
+
command.params['location'] = location unless location.nil?
|
1277
|
+
command.query['fields'] = fields unless fields.nil?
|
1278
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1279
|
+
execute_or_queue_command(command, &block)
|
1280
|
+
end
|
1281
|
+
|
1282
|
+
# Generates synthetic data based on the provided configuration.
|
1283
|
+
# @param [String] location
|
1284
|
+
# Required. The resource name of the Location to run the job. Format: `projects/`
|
1285
|
+
# project`/locations/`location``
|
1286
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateSyntheticDataRequest] google_cloud_aiplatform_v1beta1_generate_synthetic_data_request_object
|
1287
|
+
# @param [String] fields
|
1288
|
+
# Selector specifying which fields to include in a partial response.
|
1289
|
+
# @param [String] quota_user
|
1290
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1291
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1292
|
+
# @param [Google::Apis::RequestOptions] options
|
1293
|
+
# Request-specific options
|
1294
|
+
#
|
1295
|
+
# @yield [result, err] Result & error if block supplied
|
1296
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateSyntheticDataResponse] parsed result object
|
1297
|
+
# @yieldparam err [StandardError] error object if request failed
|
1298
|
+
#
|
1299
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateSyntheticDataResponse]
|
1300
|
+
#
|
1301
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1302
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1303
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1304
|
+
def generate_project_location_synthetic_data(location, google_cloud_aiplatform_v1beta1_generate_synthetic_data_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1305
|
+
command = make_simple_command(:post, 'v1beta1/{+location}:generateSyntheticData', options)
|
1306
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateSyntheticDataRequest::Representation
|
1307
|
+
command.request_object = google_cloud_aiplatform_v1beta1_generate_synthetic_data_request_object
|
1308
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateSyntheticDataResponse::Representation
|
1309
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenerateSyntheticDataResponse
|
1310
|
+
command.params['location'] = location unless location.nil?
|
1311
|
+
command.query['fields'] = fields unless fields.nil?
|
1312
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1313
|
+
execute_or_queue_command(command, &block)
|
1314
|
+
end
|
1315
|
+
|
1245
1316
|
# Gets information about a location.
|
1246
1317
|
# @param [String] name
|
1247
1318
|
# Resource name for the location.
|
@@ -1307,8 +1378,8 @@ module Google
|
|
1307
1378
|
# @param [String] name
|
1308
1379
|
# The resource that owns the locations collection, if applicable.
|
1309
1380
|
# @param [Array<String>, String] extra_location_types
|
1310
|
-
# Optional.
|
1311
|
-
#
|
1381
|
+
# Optional. Do not use this field. It is unsupported and is ignored unless
|
1382
|
+
# explicitly documented otherwise. This is primarily for internal usage.
|
1312
1383
|
# @param [String] filter
|
1313
1384
|
# A filter to narrow down results to a preferred subset. The filtering language
|
1314
1385
|
# accepts strings like `"displayName=tokyo"`, and is documented in more detail
|
@@ -1350,6 +1421,42 @@ module Google
|
|
1350
1421
|
execute_or_queue_command(command, &block)
|
1351
1422
|
end
|
1352
1423
|
|
1424
|
+
# Gets a Model's spec recommendations. This API is called by UI, SDK, and
|
1425
|
+
# internal.
|
1426
|
+
# @param [String] parent
|
1427
|
+
# Required. The resource name of the Location from which to recommend specs. The
|
1428
|
+
# users must have permission to make a call in the project. Format: `projects/`
|
1429
|
+
# project`/locations/`location``.
|
1430
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RecommendSpecRequest] google_cloud_aiplatform_v1beta1_recommend_spec_request_object
|
1431
|
+
# @param [String] fields
|
1432
|
+
# Selector specifying which fields to include in a partial response.
|
1433
|
+
# @param [String] quota_user
|
1434
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1435
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1436
|
+
# @param [Google::Apis::RequestOptions] options
|
1437
|
+
# Request-specific options
|
1438
|
+
#
|
1439
|
+
# @yield [result, err] Result & error if block supplied
|
1440
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RecommendSpecResponse] parsed result object
|
1441
|
+
# @yieldparam err [StandardError] error object if request failed
|
1442
|
+
#
|
1443
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RecommendSpecResponse]
|
1444
|
+
#
|
1445
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1446
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1447
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1448
|
+
def recommend_project_location_spec(parent, google_cloud_aiplatform_v1beta1_recommend_spec_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1449
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}:recommendSpec', options)
|
1450
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RecommendSpecRequest::Representation
|
1451
|
+
command.request_object = google_cloud_aiplatform_v1beta1_recommend_spec_request_object
|
1452
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RecommendSpecResponse::Representation
|
1453
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RecommendSpecResponse
|
1454
|
+
command.params['parent'] = parent unless parent.nil?
|
1455
|
+
command.query['fields'] = fields unless fields.nil?
|
1456
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1457
|
+
execute_or_queue_command(command, &block)
|
1458
|
+
end
|
1459
|
+
|
1353
1460
|
# Retrieves relevant contexts for a query.
|
1354
1461
|
# @param [String] parent
|
1355
1462
|
# Required. The resource name of the Location from which to retrieve RagContexts.
|
@@ -6359,20 +6466,487 @@ module Google
|
|
6359
6466
|
# Request-specific options
|
6360
6467
|
#
|
6361
6468
|
# @yield [result, err] Result & error if block supplied
|
6362
|
-
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
6469
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
6470
|
+
# @yieldparam err [StandardError] error object if request failed
|
6471
|
+
#
|
6472
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
6473
|
+
#
|
6474
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6475
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6476
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6477
|
+
def wait_project_location_endpoint_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block)
|
6478
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:wait', options)
|
6479
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
6480
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
6481
|
+
command.params['name'] = name unless name.nil?
|
6482
|
+
command.query['timeout'] = timeout unless timeout.nil?
|
6483
|
+
command.query['fields'] = fields unless fields.nil?
|
6484
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6485
|
+
execute_or_queue_command(command, &block)
|
6486
|
+
end
|
6487
|
+
|
6488
|
+
# Creates an Evaluation Item.
|
6489
|
+
# @param [String] parent
|
6490
|
+
# Required. The resource name of the Location to create the Evaluation Item in.
|
6491
|
+
# Format: `projects/`project`/locations/`location``
|
6492
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationItem] google_cloud_aiplatform_v1beta1_evaluation_item_object
|
6493
|
+
# @param [String] fields
|
6494
|
+
# Selector specifying which fields to include in a partial response.
|
6495
|
+
# @param [String] quota_user
|
6496
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
6497
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
6498
|
+
# @param [Google::Apis::RequestOptions] options
|
6499
|
+
# Request-specific options
|
6500
|
+
#
|
6501
|
+
# @yield [result, err] Result & error if block supplied
|
6502
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationItem] parsed result object
|
6503
|
+
# @yieldparam err [StandardError] error object if request failed
|
6504
|
+
#
|
6505
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationItem]
|
6506
|
+
#
|
6507
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6508
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6509
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6510
|
+
def create_project_location_evaluation_item(parent, google_cloud_aiplatform_v1beta1_evaluation_item_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
6511
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/evaluationItems', options)
|
6512
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationItem::Representation
|
6513
|
+
command.request_object = google_cloud_aiplatform_v1beta1_evaluation_item_object
|
6514
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationItem::Representation
|
6515
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationItem
|
6516
|
+
command.params['parent'] = parent unless parent.nil?
|
6517
|
+
command.query['fields'] = fields unless fields.nil?
|
6518
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6519
|
+
execute_or_queue_command(command, &block)
|
6520
|
+
end
|
6521
|
+
|
6522
|
+
# Deletes an Evaluation Item.
|
6523
|
+
# @param [String] name
|
6524
|
+
# Required. The name of the EvaluationItem resource to be deleted. Format: `
|
6525
|
+
# projects/`project`/locations/`location`/evaluationItems/`evaluation_item``
|
6526
|
+
# @param [String] fields
|
6527
|
+
# Selector specifying which fields to include in a partial response.
|
6528
|
+
# @param [String] quota_user
|
6529
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
6530
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
6531
|
+
# @param [Google::Apis::RequestOptions] options
|
6532
|
+
# Request-specific options
|
6533
|
+
#
|
6534
|
+
# @yield [result, err] Result & error if block supplied
|
6535
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
6536
|
+
# @yieldparam err [StandardError] error object if request failed
|
6537
|
+
#
|
6538
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
6539
|
+
#
|
6540
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6541
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6542
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6543
|
+
def delete_project_location_evaluation_item(name, fields: nil, quota_user: nil, options: nil, &block)
|
6544
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
6545
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
6546
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
6547
|
+
command.params['name'] = name unless name.nil?
|
6548
|
+
command.query['fields'] = fields unless fields.nil?
|
6549
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6550
|
+
execute_or_queue_command(command, &block)
|
6551
|
+
end
|
6552
|
+
|
6553
|
+
# Gets an Evaluation Item.
|
6554
|
+
# @param [String] name
|
6555
|
+
# Required. The name of the EvaluationItem resource. Format: `projects/`project`/
|
6556
|
+
# locations/`location`/evaluationItems/`evaluation_item``
|
6557
|
+
# @param [String] fields
|
6558
|
+
# Selector specifying which fields to include in a partial response.
|
6559
|
+
# @param [String] quota_user
|
6560
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
6561
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
6562
|
+
# @param [Google::Apis::RequestOptions] options
|
6563
|
+
# Request-specific options
|
6564
|
+
#
|
6565
|
+
# @yield [result, err] Result & error if block supplied
|
6566
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationItem] parsed result object
|
6567
|
+
# @yieldparam err [StandardError] error object if request failed
|
6568
|
+
#
|
6569
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationItem]
|
6570
|
+
#
|
6571
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6572
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6573
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6574
|
+
def get_project_location_evaluation_item(name, fields: nil, quota_user: nil, options: nil, &block)
|
6575
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
6576
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationItem::Representation
|
6577
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationItem
|
6578
|
+
command.params['name'] = name unless name.nil?
|
6579
|
+
command.query['fields'] = fields unless fields.nil?
|
6580
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6581
|
+
execute_or_queue_command(command, &block)
|
6582
|
+
end
|
6583
|
+
|
6584
|
+
# Lists Evaluation Items.
|
6585
|
+
# @param [String] parent
|
6586
|
+
# Required. The resource name of the Location from which to list the Evaluation
|
6587
|
+
# Items. Format: `projects/`project`/locations/`location``
|
6588
|
+
# @param [String] filter
|
6589
|
+
# Optional. Filter expression that matches a subset of the EvaluationItems to
|
6590
|
+
# show. For field names both snake_case and camelCase are supported. For more
|
6591
|
+
# information about filter syntax, see [AIP-160](https://google.aip.dev/160).
|
6592
|
+
# @param [String] order_by
|
6593
|
+
# Optional. A comma-separated list of fields to order by, sorted in ascending
|
6594
|
+
# order by default. Use `desc` after a field name for descending.
|
6595
|
+
# @param [Fixnum] page_size
|
6596
|
+
# Optional. The maximum number of Evaluation Items to return.
|
6597
|
+
# @param [String] page_token
|
6598
|
+
# Optional. A page token, received from a previous `ListEvaluationItems` call.
|
6599
|
+
# Provide this to retrieve the subsequent page.
|
6600
|
+
# @param [String] fields
|
6601
|
+
# Selector specifying which fields to include in a partial response.
|
6602
|
+
# @param [String] quota_user
|
6603
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
6604
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
6605
|
+
# @param [Google::Apis::RequestOptions] options
|
6606
|
+
# Request-specific options
|
6607
|
+
#
|
6608
|
+
# @yield [result, err] Result & error if block supplied
|
6609
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEvaluationItemsResponse] parsed result object
|
6610
|
+
# @yieldparam err [StandardError] error object if request failed
|
6611
|
+
#
|
6612
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEvaluationItemsResponse]
|
6613
|
+
#
|
6614
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6615
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6616
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6617
|
+
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)
|
6618
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/evaluationItems', options)
|
6619
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEvaluationItemsResponse::Representation
|
6620
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEvaluationItemsResponse
|
6621
|
+
command.params['parent'] = parent unless parent.nil?
|
6622
|
+
command.query['filter'] = filter unless filter.nil?
|
6623
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
6624
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
6625
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
6626
|
+
command.query['fields'] = fields unless fields.nil?
|
6627
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6628
|
+
execute_or_queue_command(command, &block)
|
6629
|
+
end
|
6630
|
+
|
6631
|
+
# Deletes a long-running operation. This method indicates that the client is no
|
6632
|
+
# longer interested in the operation result. It does not cancel the operation.
|
6633
|
+
# If the server doesn't support this method, it returns `google.rpc.Code.
|
6634
|
+
# UNIMPLEMENTED`.
|
6635
|
+
# @param [String] name
|
6636
|
+
# The name of the operation resource to be deleted.
|
6637
|
+
# @param [String] fields
|
6638
|
+
# Selector specifying which fields to include in a partial response.
|
6639
|
+
# @param [String] quota_user
|
6640
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
6641
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
6642
|
+
# @param [Google::Apis::RequestOptions] options
|
6643
|
+
# Request-specific options
|
6644
|
+
#
|
6645
|
+
# @yield [result, err] Result & error if block supplied
|
6646
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object
|
6647
|
+
# @yieldparam err [StandardError] error object if request failed
|
6648
|
+
#
|
6649
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty]
|
6650
|
+
#
|
6651
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6652
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6653
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6654
|
+
def delete_project_location_evaluation_item_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
6655
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
6656
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation
|
6657
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty
|
6658
|
+
command.params['name'] = name unless name.nil?
|
6659
|
+
command.query['fields'] = fields unless fields.nil?
|
6660
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6661
|
+
execute_or_queue_command(command, &block)
|
6662
|
+
end
|
6663
|
+
|
6664
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
6665
|
+
# to poll the operation result at intervals as recommended by the API service.
|
6666
|
+
# @param [String] name
|
6667
|
+
# The name of the operation resource.
|
6668
|
+
# @param [String] fields
|
6669
|
+
# Selector specifying which fields to include in a partial response.
|
6670
|
+
# @param [String] quota_user
|
6671
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
6672
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
6673
|
+
# @param [Google::Apis::RequestOptions] options
|
6674
|
+
# Request-specific options
|
6675
|
+
#
|
6676
|
+
# @yield [result, err] Result & error if block supplied
|
6677
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
6678
|
+
# @yieldparam err [StandardError] error object if request failed
|
6679
|
+
#
|
6680
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
6681
|
+
#
|
6682
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6683
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6684
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6685
|
+
def get_project_location_evaluation_item_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
6686
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
6687
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
6688
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
6689
|
+
command.params['name'] = name unless name.nil?
|
6690
|
+
command.query['fields'] = fields unless fields.nil?
|
6691
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6692
|
+
execute_or_queue_command(command, &block)
|
6693
|
+
end
|
6694
|
+
|
6695
|
+
# Lists operations that match the specified filter in the request. If the server
|
6696
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
6697
|
+
# @param [String] name
|
6698
|
+
# The name of the operation's parent resource.
|
6699
|
+
# @param [String] filter
|
6700
|
+
# The standard list filter.
|
6701
|
+
# @param [Fixnum] page_size
|
6702
|
+
# The standard list page size.
|
6703
|
+
# @param [String] page_token
|
6704
|
+
# The standard list page token.
|
6705
|
+
# @param [String] fields
|
6706
|
+
# Selector specifying which fields to include in a partial response.
|
6707
|
+
# @param [String] quota_user
|
6708
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
6709
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
6710
|
+
# @param [Google::Apis::RequestOptions] options
|
6711
|
+
# Request-specific options
|
6712
|
+
#
|
6713
|
+
# @yield [result, err] Result & error if block supplied
|
6714
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse] parsed result object
|
6715
|
+
# @yieldparam err [StandardError] error object if request failed
|
6716
|
+
#
|
6717
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse]
|
6718
|
+
#
|
6719
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6720
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6721
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6722
|
+
def list_project_location_evaluation_item_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
6723
|
+
command = make_simple_command(:get, 'v1beta1/{+name}/operations', options)
|
6724
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation
|
6725
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse
|
6726
|
+
command.params['name'] = name unless name.nil?
|
6727
|
+
command.query['filter'] = filter unless filter.nil?
|
6728
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
6729
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
6730
|
+
command.query['fields'] = fields unless fields.nil?
|
6731
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6732
|
+
execute_or_queue_command(command, &block)
|
6733
|
+
end
|
6734
|
+
|
6735
|
+
# Waits until the specified long-running operation is done or reaches at most a
|
6736
|
+
# specified timeout, returning the latest state. If the operation is already
|
6737
|
+
# done, the latest state is immediately returned. If the timeout specified is
|
6738
|
+
# greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If
|
6739
|
+
# the server does not support this method, it returns `google.rpc.Code.
|
6740
|
+
# UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return
|
6741
|
+
# the latest state before the specified timeout (including immediately), meaning
|
6742
|
+
# even an immediate response is no guarantee that the operation is done.
|
6743
|
+
# @param [String] name
|
6744
|
+
# The name of the operation resource to wait on.
|
6745
|
+
# @param [String] timeout
|
6746
|
+
# The maximum duration to wait before timing out. If left blank, the wait will
|
6747
|
+
# be at most the time permitted by the underlying HTTP/RPC protocol. If RPC
|
6748
|
+
# context deadline is also specified, the shorter one will be used.
|
6749
|
+
# @param [String] fields
|
6750
|
+
# Selector specifying which fields to include in a partial response.
|
6751
|
+
# @param [String] quota_user
|
6752
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
6753
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
6754
|
+
# @param [Google::Apis::RequestOptions] options
|
6755
|
+
# Request-specific options
|
6756
|
+
#
|
6757
|
+
# @yield [result, err] Result & error if block supplied
|
6758
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
6759
|
+
# @yieldparam err [StandardError] error object if request failed
|
6760
|
+
#
|
6761
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
6762
|
+
#
|
6763
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6764
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6765
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6766
|
+
def wait_project_location_evaluation_item_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block)
|
6767
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:wait', options)
|
6768
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
6769
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
6770
|
+
command.params['name'] = name unless name.nil?
|
6771
|
+
command.query['timeout'] = timeout unless timeout.nil?
|
6772
|
+
command.query['fields'] = fields unless fields.nil?
|
6773
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6774
|
+
execute_or_queue_command(command, &block)
|
6775
|
+
end
|
6776
|
+
|
6777
|
+
# Cancels an Evaluation Run. Attempts to cancel a running Evaluation Run
|
6778
|
+
# asynchronously. Status of run can be checked via GetEvaluationRun.
|
6779
|
+
# @param [String] name
|
6780
|
+
# Required. The name of the EvaluationRun resource to be cancelled. Format: `
|
6781
|
+
# projects/`project`/locations/`location`/evaluationRuns/`evaluation_run``
|
6782
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CancelEvaluationRunRequest] google_cloud_aiplatform_v1beta1_cancel_evaluation_run_request_object
|
6783
|
+
# @param [String] fields
|
6784
|
+
# Selector specifying which fields to include in a partial response.
|
6785
|
+
# @param [String] quota_user
|
6786
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
6787
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
6788
|
+
# @param [Google::Apis::RequestOptions] options
|
6789
|
+
# Request-specific options
|
6790
|
+
#
|
6791
|
+
# @yield [result, err] Result & error if block supplied
|
6792
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty] parsed result object
|
6793
|
+
# @yieldparam err [StandardError] error object if request failed
|
6794
|
+
#
|
6795
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty]
|
6796
|
+
#
|
6797
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6798
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6799
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6800
|
+
def cancel_project_location_evaluation_run(name, google_cloud_aiplatform_v1beta1_cancel_evaluation_run_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
6801
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options)
|
6802
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CancelEvaluationRunRequest::Representation
|
6803
|
+
command.request_object = google_cloud_aiplatform_v1beta1_cancel_evaluation_run_request_object
|
6804
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation
|
6805
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty
|
6806
|
+
command.params['name'] = name unless name.nil?
|
6807
|
+
command.query['fields'] = fields unless fields.nil?
|
6808
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6809
|
+
execute_or_queue_command(command, &block)
|
6810
|
+
end
|
6811
|
+
|
6812
|
+
# Creates an Evaluation Run.
|
6813
|
+
# @param [String] parent
|
6814
|
+
# Required. The resource name of the Location to create the Evaluation Run in.
|
6815
|
+
# Format: `projects/`project`/locations/`location``
|
6816
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRun] google_cloud_aiplatform_v1beta1_evaluation_run_object
|
6817
|
+
# @param [String] fields
|
6818
|
+
# Selector specifying which fields to include in a partial response.
|
6819
|
+
# @param [String] quota_user
|
6820
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
6821
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
6822
|
+
# @param [Google::Apis::RequestOptions] options
|
6823
|
+
# Request-specific options
|
6824
|
+
#
|
6825
|
+
# @yield [result, err] Result & error if block supplied
|
6826
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRun] parsed result object
|
6827
|
+
# @yieldparam err [StandardError] error object if request failed
|
6828
|
+
#
|
6829
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRun]
|
6830
|
+
#
|
6831
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6832
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6833
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6834
|
+
def create_project_location_evaluation_run(parent, google_cloud_aiplatform_v1beta1_evaluation_run_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
6835
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/evaluationRuns', options)
|
6836
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRun::Representation
|
6837
|
+
command.request_object = google_cloud_aiplatform_v1beta1_evaluation_run_object
|
6838
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRun::Representation
|
6839
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRun
|
6840
|
+
command.params['parent'] = parent unless parent.nil?
|
6841
|
+
command.query['fields'] = fields unless fields.nil?
|
6842
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6843
|
+
execute_or_queue_command(command, &block)
|
6844
|
+
end
|
6845
|
+
|
6846
|
+
# Deletes an Evaluation Run.
|
6847
|
+
# @param [String] name
|
6848
|
+
# Required. The name of the EvaluationRun resource to be deleted. Format: `
|
6849
|
+
# projects/`project`/locations/`location`/evaluationRuns/`evaluation_run``
|
6850
|
+
# @param [String] fields
|
6851
|
+
# Selector specifying which fields to include in a partial response.
|
6852
|
+
# @param [String] quota_user
|
6853
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
6854
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
6855
|
+
# @param [Google::Apis::RequestOptions] options
|
6856
|
+
# Request-specific options
|
6857
|
+
#
|
6858
|
+
# @yield [result, err] Result & error if block supplied
|
6859
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
6860
|
+
# @yieldparam err [StandardError] error object if request failed
|
6861
|
+
#
|
6862
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
6863
|
+
#
|
6864
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6865
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6866
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6867
|
+
def delete_project_location_evaluation_run(name, fields: nil, quota_user: nil, options: nil, &block)
|
6868
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
6869
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
6870
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
6871
|
+
command.params['name'] = name unless name.nil?
|
6872
|
+
command.query['fields'] = fields unless fields.nil?
|
6873
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6874
|
+
execute_or_queue_command(command, &block)
|
6875
|
+
end
|
6876
|
+
|
6877
|
+
# Gets an Evaluation Run.
|
6878
|
+
# @param [String] name
|
6879
|
+
# Required. The name of the EvaluationRun resource. Format: `projects/`project`/
|
6880
|
+
# locations/`location`/evaluationRuns/`evaluation_run``
|
6881
|
+
# @param [String] fields
|
6882
|
+
# Selector specifying which fields to include in a partial response.
|
6883
|
+
# @param [String] quota_user
|
6884
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
6885
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
6886
|
+
# @param [Google::Apis::RequestOptions] options
|
6887
|
+
# Request-specific options
|
6888
|
+
#
|
6889
|
+
# @yield [result, err] Result & error if block supplied
|
6890
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRun] parsed result object
|
6891
|
+
# @yieldparam err [StandardError] error object if request failed
|
6892
|
+
#
|
6893
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRun]
|
6894
|
+
#
|
6895
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6896
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6897
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6898
|
+
def get_project_location_evaluation_run(name, fields: nil, quota_user: nil, options: nil, &block)
|
6899
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
6900
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRun::Representation
|
6901
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationRun
|
6902
|
+
command.params['name'] = name unless name.nil?
|
6903
|
+
command.query['fields'] = fields unless fields.nil?
|
6904
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6905
|
+
execute_or_queue_command(command, &block)
|
6906
|
+
end
|
6907
|
+
|
6908
|
+
# Lists Evaluation Runs.
|
6909
|
+
# @param [String] parent
|
6910
|
+
# Required. The resource name of the Location from which to list the Evaluation
|
6911
|
+
# Runs. Format: `projects/`project`/locations/`location``
|
6912
|
+
# @param [String] filter
|
6913
|
+
# Optional. Filter expression that matches a subset of the EvaluationRuns to
|
6914
|
+
# show. For field names both snake_case and camelCase are supported. For more
|
6915
|
+
# information about filter syntax, see [AIP-160](https://google.aip.dev/160).
|
6916
|
+
# @param [String] order_by
|
6917
|
+
# Optional. A comma-separated list of fields to order by, sorted in ascending
|
6918
|
+
# order by default. Use `desc` after a field name for descending.
|
6919
|
+
# @param [Fixnum] page_size
|
6920
|
+
# Optional. The maximum number of Evaluation Runs to return.
|
6921
|
+
# @param [String] page_token
|
6922
|
+
# Optional. A page token, received from a previous `ListEvaluationRuns` call.
|
6923
|
+
# Provide this to retrieve the subsequent page.
|
6924
|
+
# @param [String] fields
|
6925
|
+
# Selector specifying which fields to include in a partial response.
|
6926
|
+
# @param [String] quota_user
|
6927
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
6928
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
6929
|
+
# @param [Google::Apis::RequestOptions] options
|
6930
|
+
# Request-specific options
|
6931
|
+
#
|
6932
|
+
# @yield [result, err] Result & error if block supplied
|
6933
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEvaluationRunsResponse] parsed result object
|
6363
6934
|
# @yieldparam err [StandardError] error object if request failed
|
6364
6935
|
#
|
6365
|
-
# @return [Google::Apis::AiplatformV1beta1::
|
6936
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEvaluationRunsResponse]
|
6366
6937
|
#
|
6367
6938
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6368
6939
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6369
6940
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6370
|
-
def
|
6371
|
-
command = make_simple_command(:
|
6372
|
-
command.response_representation = Google::Apis::AiplatformV1beta1::
|
6373
|
-
command.response_class = Google::Apis::AiplatformV1beta1::
|
6374
|
-
command.params['
|
6375
|
-
command.query['
|
6941
|
+
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)
|
6942
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/evaluationRuns', options)
|
6943
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEvaluationRunsResponse::Representation
|
6944
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEvaluationRunsResponse
|
6945
|
+
command.params['parent'] = parent unless parent.nil?
|
6946
|
+
command.query['filter'] = filter unless filter.nil?
|
6947
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
6948
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
6949
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
6376
6950
|
command.query['fields'] = fields unless fields.nil?
|
6377
6951
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6378
6952
|
execute_or_queue_command(command, &block)
|
@@ -6401,7 +6975,7 @@ module Google
|
|
6401
6975
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6402
6976
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6403
6977
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6404
|
-
def
|
6978
|
+
def delete_project_location_evaluation_run_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
6405
6979
|
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
6406
6980
|
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty::Representation
|
6407
6981
|
command.response_class = Google::Apis::AiplatformV1beta1::GoogleProtobufEmpty
|
@@ -6432,7 +7006,7 @@ module Google
|
|
6432
7006
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6433
7007
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6434
7008
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6435
|
-
def
|
7009
|
+
def get_project_location_evaluation_run_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
6436
7010
|
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
6437
7011
|
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
6438
7012
|
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
@@ -6469,7 +7043,7 @@ module Google
|
|
6469
7043
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6470
7044
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6471
7045
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6472
|
-
def
|
7046
|
+
def list_project_location_evaluation_run_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
6473
7047
|
command = make_simple_command(:get, 'v1beta1/{+name}/operations', options)
|
6474
7048
|
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse::Representation
|
6475
7049
|
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningListOperationsResponse
|
@@ -6513,7 +7087,7 @@ module Google
|
|
6513
7087
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6514
7088
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6515
7089
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6516
|
-
def
|
7090
|
+
def wait_project_location_evaluation_run_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block)
|
6517
7091
|
command = make_simple_command(:post, 'v1beta1/{+name}:wait', options)
|
6518
7092
|
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
6519
7093
|
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
@@ -6524,12 +7098,11 @@ module Google
|
|
6524
7098
|
execute_or_queue_command(command, &block)
|
6525
7099
|
end
|
6526
7100
|
|
6527
|
-
#
|
6528
|
-
#
|
6529
|
-
#
|
6530
|
-
#
|
6531
|
-
# @param [
|
6532
|
-
# The name of the operation resource to be deleted.
|
7101
|
+
# Creates an Evaluation Set.
|
7102
|
+
# @param [String] parent
|
7103
|
+
# Required. The resource name of the Location to create the Evaluation Set in.
|
7104
|
+
# Format: `projects/`project`/locations/`location``
|
7105
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationSet] google_cloud_aiplatform_v1beta1_evaluation_set_object
|
6533
7106
|
# @param [String] fields
|
6534
7107
|
# Selector specifying which fields to include in a partial response.
|
6535
7108
|
# @param [String] quota_user
|
@@ -6539,28 +7112,30 @@ module Google
|
|
6539
7112
|
# Request-specific options
|
6540
7113
|
#
|
6541
7114
|
# @yield [result, err] Result & error if block supplied
|
6542
|
-
# @yieldparam result [Google::Apis::AiplatformV1beta1::
|
7115
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationSet] parsed result object
|
6543
7116
|
# @yieldparam err [StandardError] error object if request failed
|
6544
7117
|
#
|
6545
|
-
# @return [Google::Apis::AiplatformV1beta1::
|
7118
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationSet]
|
6546
7119
|
#
|
6547
7120
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6548
7121
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6549
7122
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6550
|
-
def
|
6551
|
-
command = make_simple_command(:
|
6552
|
-
command.
|
6553
|
-
command.
|
6554
|
-
command.
|
7123
|
+
def create_project_location_evaluation_set(parent, google_cloud_aiplatform_v1beta1_evaluation_set_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
7124
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/evaluationSets', options)
|
7125
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationSet::Representation
|
7126
|
+
command.request_object = google_cloud_aiplatform_v1beta1_evaluation_set_object
|
7127
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationSet::Representation
|
7128
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationSet
|
7129
|
+
command.params['parent'] = parent unless parent.nil?
|
6555
7130
|
command.query['fields'] = fields unless fields.nil?
|
6556
7131
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6557
7132
|
execute_or_queue_command(command, &block)
|
6558
7133
|
end
|
6559
7134
|
|
6560
|
-
#
|
6561
|
-
# to poll the operation result at intervals as recommended by the API service.
|
7135
|
+
# Deletes an Evaluation Set.
|
6562
7136
|
# @param [String] name
|
6563
|
-
# The name of the
|
7137
|
+
# Required. The name of the EvaluationSet resource to be deleted. Format: `
|
7138
|
+
# projects/`project`/locations/`location`/evaluationSets/`evaluation_set``
|
6564
7139
|
# @param [String] fields
|
6565
7140
|
# Selector specifying which fields to include in a partial response.
|
6566
7141
|
# @param [String] quota_user
|
@@ -6578,8 +7153,8 @@ module Google
|
|
6578
7153
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6579
7154
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6580
7155
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6581
|
-
def
|
6582
|
-
command = make_simple_command(:
|
7156
|
+
def delete_project_location_evaluation_set(name, fields: nil, quota_user: nil, options: nil, &block)
|
7157
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
6583
7158
|
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
6584
7159
|
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
6585
7160
|
command.params['name'] = name unless name.nil?
|
@@ -6588,16 +7163,53 @@ module Google
|
|
6588
7163
|
execute_or_queue_command(command, &block)
|
6589
7164
|
end
|
6590
7165
|
|
6591
|
-
#
|
6592
|
-
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
7166
|
+
# Gets an Evaluation Set.
|
6593
7167
|
# @param [String] name
|
6594
|
-
# The name of the
|
7168
|
+
# Required. The name of the EvaluationSet resource. Format: `projects/`project`/
|
7169
|
+
# locations/`location`/evaluationSets/`evaluation_set``
|
7170
|
+
# @param [String] fields
|
7171
|
+
# Selector specifying which fields to include in a partial response.
|
7172
|
+
# @param [String] quota_user
|
7173
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
7174
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
7175
|
+
# @param [Google::Apis::RequestOptions] options
|
7176
|
+
# Request-specific options
|
7177
|
+
#
|
7178
|
+
# @yield [result, err] Result & error if block supplied
|
7179
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationSet] parsed result object
|
7180
|
+
# @yieldparam err [StandardError] error object if request failed
|
7181
|
+
#
|
7182
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationSet]
|
7183
|
+
#
|
7184
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
7185
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
7186
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
7187
|
+
def get_project_location_evaluation_set(name, fields: nil, quota_user: nil, options: nil, &block)
|
7188
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
7189
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationSet::Representation
|
7190
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationSet
|
7191
|
+
command.params['name'] = name unless name.nil?
|
7192
|
+
command.query['fields'] = fields unless fields.nil?
|
7193
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
7194
|
+
execute_or_queue_command(command, &block)
|
7195
|
+
end
|
7196
|
+
|
7197
|
+
# Lists Evaluation Sets.
|
7198
|
+
# @param [String] parent
|
7199
|
+
# Required. The resource name of the Location from which to list the Evaluation
|
7200
|
+
# Sets. Format: `projects/`project`/locations/`location``
|
6595
7201
|
# @param [String] filter
|
6596
|
-
#
|
7202
|
+
# Optional. Filter expression that matches a subset of the EvaluationSets to
|
7203
|
+
# show. For field names both snake_case and camelCase are supported. For more
|
7204
|
+
# information about filter syntax, see [AIP-160](https://google.aip.dev/160).
|
7205
|
+
# @param [String] order_by
|
7206
|
+
# Optional. A comma-separated list of fields to order by, sorted in ascending
|
7207
|
+
# order by default. Use `desc` after a field name for descending.
|
6597
7208
|
# @param [Fixnum] page_size
|
6598
|
-
# The
|
7209
|
+
# Optional. The maximum number of Evaluation Sets to return.
|
6599
7210
|
# @param [String] page_token
|
6600
|
-
#
|
7211
|
+
# Optional. A page token, received from a previous `ListEvaluationSets` call.
|
7212
|
+
# Provide this to retrieve the subsequent page.
|
6601
7213
|
# @param [String] fields
|
6602
7214
|
# Selector specifying which fields to include in a partial response.
|
6603
7215
|
# @param [String] quota_user
|
@@ -6607,20 +7219,21 @@ module Google
|
|
6607
7219
|
# Request-specific options
|
6608
7220
|
#
|
6609
7221
|
# @yield [result, err] Result & error if block supplied
|
6610
|
-
# @yieldparam result [Google::Apis::AiplatformV1beta1::
|
7222
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEvaluationSetsResponse] parsed result object
|
6611
7223
|
# @yieldparam err [StandardError] error object if request failed
|
6612
7224
|
#
|
6613
|
-
# @return [Google::Apis::AiplatformV1beta1::
|
7225
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEvaluationSetsResponse]
|
6614
7226
|
#
|
6615
7227
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6616
7228
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6617
7229
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6618
|
-
def
|
6619
|
-
command = make_simple_command(:get, 'v1beta1/{+
|
6620
|
-
command.response_representation = Google::Apis::AiplatformV1beta1::
|
6621
|
-
command.response_class = Google::Apis::AiplatformV1beta1::
|
6622
|
-
command.params['
|
7230
|
+
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)
|
7231
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/evaluationSets', options)
|
7232
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEvaluationSetsResponse::Representation
|
7233
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListEvaluationSetsResponse
|
7234
|
+
command.params['parent'] = parent unless parent.nil?
|
6623
7235
|
command.query['filter'] = filter unless filter.nil?
|
7236
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
6624
7237
|
command.query['pageSize'] = page_size unless page_size.nil?
|
6625
7238
|
command.query['pageToken'] = page_token unless page_token.nil?
|
6626
7239
|
command.query['fields'] = fields unless fields.nil?
|
@@ -6628,20 +7241,14 @@ module Google
|
|
6628
7241
|
execute_or_queue_command(command, &block)
|
6629
7242
|
end
|
6630
7243
|
|
6631
|
-
#
|
6632
|
-
# specified timeout, returning the latest state. If the operation is already
|
6633
|
-
# done, the latest state is immediately returned. If the timeout specified is
|
6634
|
-
# greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If
|
6635
|
-
# the server does not support this method, it returns `google.rpc.Code.
|
6636
|
-
# UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return
|
6637
|
-
# the latest state before the specified timeout (including immediately), meaning
|
6638
|
-
# even an immediate response is no guarantee that the operation is done.
|
7244
|
+
# Updates an Evaluation Set.
|
6639
7245
|
# @param [String] name
|
6640
|
-
# The name of the
|
6641
|
-
#
|
6642
|
-
#
|
6643
|
-
#
|
6644
|
-
#
|
7246
|
+
# Identifier. The resource name of the EvaluationSet. Format: `projects/`project`
|
7247
|
+
# /locations/`location`/evaluationSets/`evaluation_set``
|
7248
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationSet] google_cloud_aiplatform_v1beta1_evaluation_set_object
|
7249
|
+
# @param [String] update_mask
|
7250
|
+
# Optional. The update mask applies to the resource. For the `FieldMask`
|
7251
|
+
# definition, see google.protobuf.FieldMask.
|
6645
7252
|
# @param [String] fields
|
6646
7253
|
# Selector specifying which fields to include in a partial response.
|
6647
7254
|
# @param [String] quota_user
|
@@ -6651,20 +7258,22 @@ module Google
|
|
6651
7258
|
# Request-specific options
|
6652
7259
|
#
|
6653
7260
|
# @yield [result, err] Result & error if block supplied
|
6654
|
-
# @yieldparam result [Google::Apis::AiplatformV1beta1::
|
7261
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationSet] parsed result object
|
6655
7262
|
# @yieldparam err [StandardError] error object if request failed
|
6656
7263
|
#
|
6657
|
-
# @return [Google::Apis::AiplatformV1beta1::
|
7264
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationSet]
|
6658
7265
|
#
|
6659
7266
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6660
7267
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6661
7268
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6662
|
-
def
|
6663
|
-
command = make_simple_command(:
|
6664
|
-
command.
|
6665
|
-
command.
|
7269
|
+
def patch_project_location_evaluation_set(name, google_cloud_aiplatform_v1beta1_evaluation_set_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
7270
|
+
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
7271
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationSet::Representation
|
7272
|
+
command.request_object = google_cloud_aiplatform_v1beta1_evaluation_set_object
|
7273
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationSet::Representation
|
7274
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1EvaluationSet
|
6666
7275
|
command.params['name'] = name unless name.nil?
|
6667
|
-
command.query['
|
7276
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
6668
7277
|
command.query['fields'] = fields unless fields.nil?
|
6669
7278
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6670
7279
|
execute_or_queue_command(command, &block)
|
@@ -22104,6 +22713,9 @@ module Google
|
|
22104
22713
|
# @param [String] name
|
22105
22714
|
# Required. The name of the RagFile resource to be deleted. Format: `projects/`
|
22106
22715
|
# project`/locations/`location`/ragCorpora/`rag_corpus`/ragFiles/`rag_file``
|
22716
|
+
# @param [Boolean] force_delete
|
22717
|
+
# Optional. If set to true, any errors generated by external vector database
|
22718
|
+
# during the deletion will be ignored. The default value is false.
|
22107
22719
|
# @param [String] fields
|
22108
22720
|
# Selector specifying which fields to include in a partial response.
|
22109
22721
|
# @param [String] quota_user
|
@@ -22121,11 +22733,12 @@ module Google
|
|
22121
22733
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
22122
22734
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
22123
22735
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
22124
|
-
def delete_project_location_rag_corpora_rag_file(name, fields: nil, quota_user: nil, options: nil, &block)
|
22736
|
+
def delete_project_location_rag_corpora_rag_file(name, force_delete: nil, fields: nil, quota_user: nil, options: nil, &block)
|
22125
22737
|
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
22126
22738
|
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
22127
22739
|
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
22128
22740
|
command.params['name'] = name unless name.nil?
|
22741
|
+
command.query['forceDelete'] = force_delete unless force_delete.nil?
|
22129
22742
|
command.query['fields'] = fields unless fields.nil?
|
22130
22743
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
22131
22744
|
execute_or_queue_command(command, &block)
|
@@ -23606,6 +24219,185 @@ module Google
|
|
23606
24219
|
execute_or_queue_command(command, &block)
|
23607
24220
|
end
|
23608
24221
|
|
24222
|
+
# Creates a SandboxEnvironment in a given reasoning engine.
|
24223
|
+
# @param [String] parent
|
24224
|
+
# Required. The resource name of the reasoning engine to create the
|
24225
|
+
# SandboxEnvironment in. Format: `projects/`project`/locations/`location`/
|
24226
|
+
# reasoningEngines/`reasoning_engine``.
|
24227
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SandboxEnvironment] google_cloud_aiplatform_v1beta1_sandbox_environment_object
|
24228
|
+
# @param [String] fields
|
24229
|
+
# Selector specifying which fields to include in a partial response.
|
24230
|
+
# @param [String] quota_user
|
24231
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
24232
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
24233
|
+
# @param [Google::Apis::RequestOptions] options
|
24234
|
+
# Request-specific options
|
24235
|
+
#
|
24236
|
+
# @yield [result, err] Result & error if block supplied
|
24237
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
24238
|
+
# @yieldparam err [StandardError] error object if request failed
|
24239
|
+
#
|
24240
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
24241
|
+
#
|
24242
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
24243
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
24244
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
24245
|
+
def create_project_location_reasoning_engine_sandbox_environment(parent, google_cloud_aiplatform_v1beta1_sandbox_environment_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
24246
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/sandboxEnvironments', options)
|
24247
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SandboxEnvironment::Representation
|
24248
|
+
command.request_object = google_cloud_aiplatform_v1beta1_sandbox_environment_object
|
24249
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
24250
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
24251
|
+
command.params['parent'] = parent unless parent.nil?
|
24252
|
+
command.query['fields'] = fields unless fields.nil?
|
24253
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
24254
|
+
execute_or_queue_command(command, &block)
|
24255
|
+
end
|
24256
|
+
|
24257
|
+
# Deletes the specific SandboxEnvironment.
|
24258
|
+
# @param [String] name
|
24259
|
+
# Required. The resource name of the SandboxEnvironment to delete. Format: `
|
24260
|
+
# projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine`/
|
24261
|
+
# sandboxEnvironments/`sandbox_environment``
|
24262
|
+
# @param [String] fields
|
24263
|
+
# Selector specifying which fields to include in a partial response.
|
24264
|
+
# @param [String] quota_user
|
24265
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
24266
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
24267
|
+
# @param [Google::Apis::RequestOptions] options
|
24268
|
+
# Request-specific options
|
24269
|
+
#
|
24270
|
+
# @yield [result, err] Result & error if block supplied
|
24271
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
|
24272
|
+
# @yieldparam err [StandardError] error object if request failed
|
24273
|
+
#
|
24274
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
|
24275
|
+
#
|
24276
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
24277
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
24278
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
24279
|
+
def delete_project_location_reasoning_engine_sandbox_environment(name, fields: nil, quota_user: nil, options: nil, &block)
|
24280
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
24281
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
|
24282
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
|
24283
|
+
command.params['name'] = name unless name.nil?
|
24284
|
+
command.query['fields'] = fields unless fields.nil?
|
24285
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
24286
|
+
execute_or_queue_command(command, &block)
|
24287
|
+
end
|
24288
|
+
|
24289
|
+
# Executes using a sandbox environment.
|
24290
|
+
# @param [String] name
|
24291
|
+
# Required. The resource name of the sandbox environment to execute. Format: `
|
24292
|
+
# projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine`/
|
24293
|
+
# sandboxEnvironments/`sandbox_environment``
|
24294
|
+
# @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecuteSandboxEnvironmentRequest] google_cloud_aiplatform_v1beta1_execute_sandbox_environment_request_object
|
24295
|
+
# @param [String] fields
|
24296
|
+
# Selector specifying which fields to include in a partial response.
|
24297
|
+
# @param [String] quota_user
|
24298
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
24299
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
24300
|
+
# @param [Google::Apis::RequestOptions] options
|
24301
|
+
# Request-specific options
|
24302
|
+
#
|
24303
|
+
# @yield [result, err] Result & error if block supplied
|
24304
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecuteSandboxEnvironmentResponse] parsed result object
|
24305
|
+
# @yieldparam err [StandardError] error object if request failed
|
24306
|
+
#
|
24307
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecuteSandboxEnvironmentResponse]
|
24308
|
+
#
|
24309
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
24310
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
24311
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
24312
|
+
def execute_project_location_reasoning_engine_sandbox_environment(name, google_cloud_aiplatform_v1beta1_execute_sandbox_environment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
24313
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:execute', options)
|
24314
|
+
command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecuteSandboxEnvironmentRequest::Representation
|
24315
|
+
command.request_object = google_cloud_aiplatform_v1beta1_execute_sandbox_environment_request_object
|
24316
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecuteSandboxEnvironmentResponse::Representation
|
24317
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecuteSandboxEnvironmentResponse
|
24318
|
+
command.params['name'] = name unless name.nil?
|
24319
|
+
command.query['fields'] = fields unless fields.nil?
|
24320
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
24321
|
+
execute_or_queue_command(command, &block)
|
24322
|
+
end
|
24323
|
+
|
24324
|
+
# Gets details of the specific SandboxEnvironment.
|
24325
|
+
# @param [String] name
|
24326
|
+
# Required. The resource name of the sandbox environment. Format: `projects/`
|
24327
|
+
# project`/locations/`location`/reasoningEngines/`reasoning_engine`/
|
24328
|
+
# sandboxEnvironments/`sandbox_environment``
|
24329
|
+
# @param [String] fields
|
24330
|
+
# Selector specifying which fields to include in a partial response.
|
24331
|
+
# @param [String] quota_user
|
24332
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
24333
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
24334
|
+
# @param [Google::Apis::RequestOptions] options
|
24335
|
+
# Request-specific options
|
24336
|
+
#
|
24337
|
+
# @yield [result, err] Result & error if block supplied
|
24338
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SandboxEnvironment] parsed result object
|
24339
|
+
# @yieldparam err [StandardError] error object if request failed
|
24340
|
+
#
|
24341
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SandboxEnvironment]
|
24342
|
+
#
|
24343
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
24344
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
24345
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
24346
|
+
def get_project_location_reasoning_engine_sandbox_environment(name, fields: nil, quota_user: nil, options: nil, &block)
|
24347
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
24348
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SandboxEnvironment::Representation
|
24349
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SandboxEnvironment
|
24350
|
+
command.params['name'] = name unless name.nil?
|
24351
|
+
command.query['fields'] = fields unless fields.nil?
|
24352
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
24353
|
+
execute_or_queue_command(command, &block)
|
24354
|
+
end
|
24355
|
+
|
24356
|
+
# Lists SandboxEnvironments in a given reasoning engine.
|
24357
|
+
# @param [String] parent
|
24358
|
+
# Required. The resource name of the reasoning engine to list sandbox
|
24359
|
+
# environments from. Format: `projects/`project`/locations/`location`/
|
24360
|
+
# reasoningEngines/`reasoning_engine``
|
24361
|
+
# @param [String] filter
|
24362
|
+
# Optional. The standard list filter. More detail in [AIP-160](https://google.
|
24363
|
+
# aip.dev/160).
|
24364
|
+
# @param [Fixnum] page_size
|
24365
|
+
# Optional. The maximum number of SandboxEnvironments to return. The service may
|
24366
|
+
# return fewer than this value. If unspecified, at most 100 SandboxEnvironments
|
24367
|
+
# will be returned.
|
24368
|
+
# @param [String] page_token
|
24369
|
+
# Optional. The standard list page token, received from a previous `
|
24370
|
+
# ListSandboxEnvironments` call. Provide this to retrieve the subsequent page.
|
24371
|
+
# @param [String] fields
|
24372
|
+
# Selector specifying which fields to include in a partial response.
|
24373
|
+
# @param [String] quota_user
|
24374
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
24375
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
24376
|
+
# @param [Google::Apis::RequestOptions] options
|
24377
|
+
# Request-specific options
|
24378
|
+
#
|
24379
|
+
# @yield [result, err] Result & error if block supplied
|
24380
|
+
# @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSandboxEnvironmentsResponse] parsed result object
|
24381
|
+
# @yieldparam err [StandardError] error object if request failed
|
24382
|
+
#
|
24383
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSandboxEnvironmentsResponse]
|
24384
|
+
#
|
24385
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
24386
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
24387
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
24388
|
+
def list_project_location_reasoning_engine_sandbox_environments(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
24389
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/sandboxEnvironments', options)
|
24390
|
+
command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSandboxEnvironmentsResponse::Representation
|
24391
|
+
command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ListSandboxEnvironmentsResponse
|
24392
|
+
command.params['parent'] = parent unless parent.nil?
|
24393
|
+
command.query['filter'] = filter unless filter.nil?
|
24394
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
24395
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
24396
|
+
command.query['fields'] = fields unless fields.nil?
|
24397
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
24398
|
+
execute_or_queue_command(command, &block)
|
24399
|
+
end
|
24400
|
+
|
23609
24401
|
# Starts asynchronous cancellation on a long-running operation. The server makes
|
23610
24402
|
# a best effort to cancel the operation, but success is not guaranteed. If the
|
23611
24403
|
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|