google-apis-aiplatform_v1 0.74.0 → 0.75.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 +4 -0
- data/lib/google/apis/aiplatform_v1/classes.rb +1137 -13
- data/lib/google/apis/aiplatform_v1/gem_version.rb +2 -2
- data/lib/google/apis/aiplatform_v1/representations.rb +452 -0
- data/lib/google/apis/aiplatform_v1/service.rb +2167 -632
- metadata +2 -2
|
@@ -22931,7 +22931,12 @@ module Google
|
|
|
22931
22931
|
# @param [String] update_mask
|
|
22932
22932
|
# Required. The update mask applies to the resource. For the `FieldMask`
|
|
22933
22933
|
# definition, see google.protobuf.FieldMask. Input format: ``paths: "$`
|
|
22934
|
-
#
|
|
22934
|
+
# updated_field`"`` Updatable fields: * `encryption_spec.kms_key_name` * `
|
|
22935
|
+
# display_name` * `software_config.post_startup_script_config.
|
|
22936
|
+
# post_startup_script` * `software_config.post_startup_script_config.
|
|
22937
|
+
# post_startup_script_url` * `software_config.post_startup_script_config.
|
|
22938
|
+
# post_startup_script_behavior` * `software_config.env` * `software_config.
|
|
22939
|
+
# colab_image.release_name`
|
|
22935
22940
|
# @param [String] fields
|
|
22936
22941
|
# Selector specifying which fields to include in a partial response.
|
|
22937
22942
|
# @param [String] quota_user
|
|
@@ -26301,6 +26306,1059 @@ module Google
|
|
|
26301
26306
|
execute_or_queue_command(command, &block)
|
|
26302
26307
|
end
|
|
26303
26308
|
|
|
26309
|
+
# Create a Memory.
|
|
26310
|
+
# @param [String] parent
|
|
26311
|
+
# Required. The resource name of the ReasoningEngine to create the Memory under.
|
|
26312
|
+
# Format: `projects/`project`/locations/`location`/reasoningEngines/`
|
|
26313
|
+
# reasoning_engine``
|
|
26314
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Memory] google_cloud_aiplatform_v1_memory_object
|
|
26315
|
+
# @param [String] fields
|
|
26316
|
+
# Selector specifying which fields to include in a partial response.
|
|
26317
|
+
# @param [String] quota_user
|
|
26318
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
26319
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
26320
|
+
# @param [Google::Apis::RequestOptions] options
|
|
26321
|
+
# Request-specific options
|
|
26322
|
+
#
|
|
26323
|
+
# @yield [result, err] Result & error if block supplied
|
|
26324
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
|
|
26325
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
26326
|
+
#
|
|
26327
|
+
# @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
|
|
26328
|
+
#
|
|
26329
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
26330
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
26331
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
26332
|
+
def create_project_location_reasoning_engine_memory(parent, google_cloud_aiplatform_v1_memory_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
26333
|
+
command = make_simple_command(:post, 'v1/{+parent}/memories', options)
|
|
26334
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Memory::Representation
|
|
26335
|
+
command.request_object = google_cloud_aiplatform_v1_memory_object
|
|
26336
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
|
26337
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
|
26338
|
+
command.params['parent'] = parent unless parent.nil?
|
|
26339
|
+
command.query['fields'] = fields unless fields.nil?
|
|
26340
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
26341
|
+
execute_or_queue_command(command, &block)
|
|
26342
|
+
end
|
|
26343
|
+
|
|
26344
|
+
# Delete a Memory.
|
|
26345
|
+
# @param [String] name
|
|
26346
|
+
# Required. The resource name of the Memory to delete. Format: `projects/`
|
|
26347
|
+
# project`/locations/`location`/reasoningEngines/`reasoning_engine`/memories/`
|
|
26348
|
+
# memory``
|
|
26349
|
+
# @param [String] fields
|
|
26350
|
+
# Selector specifying which fields to include in a partial response.
|
|
26351
|
+
# @param [String] quota_user
|
|
26352
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
26353
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
26354
|
+
# @param [Google::Apis::RequestOptions] options
|
|
26355
|
+
# Request-specific options
|
|
26356
|
+
#
|
|
26357
|
+
# @yield [result, err] Result & error if block supplied
|
|
26358
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
|
|
26359
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
26360
|
+
#
|
|
26361
|
+
# @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
|
|
26362
|
+
#
|
|
26363
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
26364
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
26365
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
26366
|
+
def delete_project_location_reasoning_engine_memory(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
26367
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
|
26368
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
|
26369
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
|
26370
|
+
command.params['name'] = name unless name.nil?
|
|
26371
|
+
command.query['fields'] = fields unless fields.nil?
|
|
26372
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
26373
|
+
execute_or_queue_command(command, &block)
|
|
26374
|
+
end
|
|
26375
|
+
|
|
26376
|
+
# Generate memories.
|
|
26377
|
+
# @param [String] parent
|
|
26378
|
+
# Required. The resource name of the ReasoningEngine to generate memories for.
|
|
26379
|
+
# Format: `projects/`project`/locations/`location`/reasoningEngines/`
|
|
26380
|
+
# reasoning_engine``
|
|
26381
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateMemoriesRequest] google_cloud_aiplatform_v1_generate_memories_request_object
|
|
26382
|
+
# @param [String] fields
|
|
26383
|
+
# Selector specifying which fields to include in a partial response.
|
|
26384
|
+
# @param [String] quota_user
|
|
26385
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
26386
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
26387
|
+
# @param [Google::Apis::RequestOptions] options
|
|
26388
|
+
# Request-specific options
|
|
26389
|
+
#
|
|
26390
|
+
# @yield [result, err] Result & error if block supplied
|
|
26391
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
|
|
26392
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
26393
|
+
#
|
|
26394
|
+
# @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
|
|
26395
|
+
#
|
|
26396
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
26397
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
26398
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
26399
|
+
def generate_project_location_reasoning_engine_memory(parent, google_cloud_aiplatform_v1_generate_memories_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
26400
|
+
command = make_simple_command(:post, 'v1/{+parent}/memories:generate', options)
|
|
26401
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateMemoriesRequest::Representation
|
|
26402
|
+
command.request_object = google_cloud_aiplatform_v1_generate_memories_request_object
|
|
26403
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
|
26404
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
|
26405
|
+
command.params['parent'] = parent unless parent.nil?
|
|
26406
|
+
command.query['fields'] = fields unless fields.nil?
|
|
26407
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
26408
|
+
execute_or_queue_command(command, &block)
|
|
26409
|
+
end
|
|
26410
|
+
|
|
26411
|
+
# Get a Memory.
|
|
26412
|
+
# @param [String] name
|
|
26413
|
+
# Required. The resource name of the Memory. Format: `projects/`project`/
|
|
26414
|
+
# locations/`location`/reasoningEngines/`reasoning_engine`/memories/`memory``
|
|
26415
|
+
# @param [String] fields
|
|
26416
|
+
# Selector specifying which fields to include in a partial response.
|
|
26417
|
+
# @param [String] quota_user
|
|
26418
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
26419
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
26420
|
+
# @param [Google::Apis::RequestOptions] options
|
|
26421
|
+
# Request-specific options
|
|
26422
|
+
#
|
|
26423
|
+
# @yield [result, err] Result & error if block supplied
|
|
26424
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Memory] parsed result object
|
|
26425
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
26426
|
+
#
|
|
26427
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Memory]
|
|
26428
|
+
#
|
|
26429
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
26430
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
26431
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
26432
|
+
def get_project_location_reasoning_engine_memory(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
26433
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
26434
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Memory::Representation
|
|
26435
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Memory
|
|
26436
|
+
command.params['name'] = name unless name.nil?
|
|
26437
|
+
command.query['fields'] = fields unless fields.nil?
|
|
26438
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
26439
|
+
execute_or_queue_command(command, &block)
|
|
26440
|
+
end
|
|
26441
|
+
|
|
26442
|
+
# List Memories.
|
|
26443
|
+
# @param [String] parent
|
|
26444
|
+
# Required. The resource name of the ReasoningEngine to list the Memories under.
|
|
26445
|
+
# Format: `projects/`project`/locations/`location`/reasoningEngines/`
|
|
26446
|
+
# reasoning_engine``
|
|
26447
|
+
# @param [String] filter
|
|
26448
|
+
# Optional. The standard list filter. More detail in [AIP-160](https://google.
|
|
26449
|
+
# aip.dev/160). Supported fields: * `scope` (as a JSON string with equality
|
|
26450
|
+
# match only) * `topics` (i.e. `topics.custom_memory_topic_label: "example topic"
|
|
26451
|
+
# OR topics.managed_memory_topic: USER_PREFERENCES`)
|
|
26452
|
+
# @param [String] order_by
|
|
26453
|
+
# Optional. The standard list order by string. If not specified, the default
|
|
26454
|
+
# order is `create_time desc`. If specified, the default sorting order of
|
|
26455
|
+
# provided fields is ascending. More detail in [AIP-132](https://google.aip.dev/
|
|
26456
|
+
# 132). Supported fields: * `create_time` * `update_time`
|
|
26457
|
+
# @param [Fixnum] page_size
|
|
26458
|
+
# Optional. The standard list page size.
|
|
26459
|
+
# @param [String] page_token
|
|
26460
|
+
# Optional. The standard list page token.
|
|
26461
|
+
# @param [String] fields
|
|
26462
|
+
# Selector specifying which fields to include in a partial response.
|
|
26463
|
+
# @param [String] quota_user
|
|
26464
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
26465
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
26466
|
+
# @param [Google::Apis::RequestOptions] options
|
|
26467
|
+
# Request-specific options
|
|
26468
|
+
#
|
|
26469
|
+
# @yield [result, err] Result & error if block supplied
|
|
26470
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListMemoriesResponse] parsed result object
|
|
26471
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
26472
|
+
#
|
|
26473
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListMemoriesResponse]
|
|
26474
|
+
#
|
|
26475
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
26476
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
26477
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
26478
|
+
def list_project_location_reasoning_engine_memories(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
26479
|
+
command = make_simple_command(:get, 'v1/{+parent}/memories', options)
|
|
26480
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListMemoriesResponse::Representation
|
|
26481
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListMemoriesResponse
|
|
26482
|
+
command.params['parent'] = parent unless parent.nil?
|
|
26483
|
+
command.query['filter'] = filter unless filter.nil?
|
|
26484
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
26485
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
26486
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
26487
|
+
command.query['fields'] = fields unless fields.nil?
|
|
26488
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
26489
|
+
execute_or_queue_command(command, &block)
|
|
26490
|
+
end
|
|
26491
|
+
|
|
26492
|
+
# Update a Memory.
|
|
26493
|
+
# @param [String] name
|
|
26494
|
+
# Identifier. The resource name of the Memory. Format: `projects/`project`/
|
|
26495
|
+
# locations/`location`/reasoningEngines/`reasoning_engine`/memories/`memory``
|
|
26496
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Memory] google_cloud_aiplatform_v1_memory_object
|
|
26497
|
+
# @param [String] update_mask
|
|
26498
|
+
# Optional. Mask specifying which fields to update. Supported fields: * `
|
|
26499
|
+
# display_name` * `description` * `fact`
|
|
26500
|
+
# @param [String] fields
|
|
26501
|
+
# Selector specifying which fields to include in a partial response.
|
|
26502
|
+
# @param [String] quota_user
|
|
26503
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
26504
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
26505
|
+
# @param [Google::Apis::RequestOptions] options
|
|
26506
|
+
# Request-specific options
|
|
26507
|
+
#
|
|
26508
|
+
# @yield [result, err] Result & error if block supplied
|
|
26509
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
|
|
26510
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
26511
|
+
#
|
|
26512
|
+
# @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
|
|
26513
|
+
#
|
|
26514
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
26515
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
26516
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
26517
|
+
def patch_project_location_reasoning_engine_memory(name, google_cloud_aiplatform_v1_memory_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
26518
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
|
26519
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Memory::Representation
|
|
26520
|
+
command.request_object = google_cloud_aiplatform_v1_memory_object
|
|
26521
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
|
26522
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
|
26523
|
+
command.params['name'] = name unless name.nil?
|
|
26524
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
26525
|
+
command.query['fields'] = fields unless fields.nil?
|
|
26526
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
26527
|
+
execute_or_queue_command(command, &block)
|
|
26528
|
+
end
|
|
26529
|
+
|
|
26530
|
+
# Purge memories.
|
|
26531
|
+
# @param [String] parent
|
|
26532
|
+
# Required. The resource name of the ReasoningEngine to purge memories from.
|
|
26533
|
+
# Format: `projects/`project`/locations/`location`/reasoningEngines/`
|
|
26534
|
+
# reasoning_engine``
|
|
26535
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PurgeMemoriesRequest] google_cloud_aiplatform_v1_purge_memories_request_object
|
|
26536
|
+
# @param [String] fields
|
|
26537
|
+
# Selector specifying which fields to include in a partial response.
|
|
26538
|
+
# @param [String] quota_user
|
|
26539
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
26540
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
26541
|
+
# @param [Google::Apis::RequestOptions] options
|
|
26542
|
+
# Request-specific options
|
|
26543
|
+
#
|
|
26544
|
+
# @yield [result, err] Result & error if block supplied
|
|
26545
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
|
|
26546
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
26547
|
+
#
|
|
26548
|
+
# @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
|
|
26549
|
+
#
|
|
26550
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
26551
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
26552
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
26553
|
+
def purge_project_location_reasoning_engine_memory(parent, google_cloud_aiplatform_v1_purge_memories_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
26554
|
+
command = make_simple_command(:post, 'v1/{+parent}/memories:purge', options)
|
|
26555
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PurgeMemoriesRequest::Representation
|
|
26556
|
+
command.request_object = google_cloud_aiplatform_v1_purge_memories_request_object
|
|
26557
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
|
26558
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
|
26559
|
+
command.params['parent'] = parent unless parent.nil?
|
|
26560
|
+
command.query['fields'] = fields unless fields.nil?
|
|
26561
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
26562
|
+
execute_or_queue_command(command, &block)
|
|
26563
|
+
end
|
|
26564
|
+
|
|
26565
|
+
# Retrieve memories.
|
|
26566
|
+
# @param [String] parent
|
|
26567
|
+
# Required. The resource name of the ReasoningEngine to retrieve memories from.
|
|
26568
|
+
# Format: `projects/`project`/locations/`location`/reasoningEngines/`
|
|
26569
|
+
# reasoning_engine``
|
|
26570
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RetrieveMemoriesRequest] google_cloud_aiplatform_v1_retrieve_memories_request_object
|
|
26571
|
+
# @param [String] fields
|
|
26572
|
+
# Selector specifying which fields to include in a partial response.
|
|
26573
|
+
# @param [String] quota_user
|
|
26574
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
26575
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
26576
|
+
# @param [Google::Apis::RequestOptions] options
|
|
26577
|
+
# Request-specific options
|
|
26578
|
+
#
|
|
26579
|
+
# @yield [result, err] Result & error if block supplied
|
|
26580
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RetrieveMemoriesResponse] parsed result object
|
|
26581
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
26582
|
+
#
|
|
26583
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RetrieveMemoriesResponse]
|
|
26584
|
+
#
|
|
26585
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
26586
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
26587
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
26588
|
+
def retrieve_project_location_reasoning_engine_memory(parent, google_cloud_aiplatform_v1_retrieve_memories_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
26589
|
+
command = make_simple_command(:post, 'v1/{+parent}/memories:retrieve', options)
|
|
26590
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RetrieveMemoriesRequest::Representation
|
|
26591
|
+
command.request_object = google_cloud_aiplatform_v1_retrieve_memories_request_object
|
|
26592
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RetrieveMemoriesResponse::Representation
|
|
26593
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RetrieveMemoriesResponse
|
|
26594
|
+
command.params['parent'] = parent unless parent.nil?
|
|
26595
|
+
command.query['fields'] = fields unless fields.nil?
|
|
26596
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
26597
|
+
execute_or_queue_command(command, &block)
|
|
26598
|
+
end
|
|
26599
|
+
|
|
26600
|
+
# Rollback Memory to a specific revision.
|
|
26601
|
+
# @param [String] name
|
|
26602
|
+
# Required. The resource name of the Memory to rollback. Format: `projects/`
|
|
26603
|
+
# project`/locations/`location`/reasoningEngines/`reasoning_engine`/memories/`
|
|
26604
|
+
# memory``
|
|
26605
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RollbackMemoryRequest] google_cloud_aiplatform_v1_rollback_memory_request_object
|
|
26606
|
+
# @param [String] fields
|
|
26607
|
+
# Selector specifying which fields to include in a partial response.
|
|
26608
|
+
# @param [String] quota_user
|
|
26609
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
26610
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
26611
|
+
# @param [Google::Apis::RequestOptions] options
|
|
26612
|
+
# Request-specific options
|
|
26613
|
+
#
|
|
26614
|
+
# @yield [result, err] Result & error if block supplied
|
|
26615
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
|
|
26616
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
26617
|
+
#
|
|
26618
|
+
# @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
|
|
26619
|
+
#
|
|
26620
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
26621
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
26622
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
26623
|
+
def rollback_project_location_reasoning_engine_memory(name, google_cloud_aiplatform_v1_rollback_memory_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
26624
|
+
command = make_simple_command(:post, 'v1/{+name}:rollback', options)
|
|
26625
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RollbackMemoryRequest::Representation
|
|
26626
|
+
command.request_object = google_cloud_aiplatform_v1_rollback_memory_request_object
|
|
26627
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
|
26628
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
|
26629
|
+
command.params['name'] = name unless name.nil?
|
|
26630
|
+
command.query['fields'] = fields unless fields.nil?
|
|
26631
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
26632
|
+
execute_or_queue_command(command, &block)
|
|
26633
|
+
end
|
|
26634
|
+
|
|
26635
|
+
# Starts asynchronous cancellation on a long-running operation. The server makes
|
|
26636
|
+
# a best effort to cancel the operation, but success is not guaranteed. If the
|
|
26637
|
+
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
|
26638
|
+
# Clients can use Operations.GetOperation or other methods to check whether the
|
|
26639
|
+
# cancellation succeeded or whether the operation completed despite cancellation.
|
|
26640
|
+
# On successful cancellation, the operation is not deleted; instead, it becomes
|
|
26641
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
|
26642
|
+
# , corresponding to `Code.CANCELLED`.
|
|
26643
|
+
# @param [String] name
|
|
26644
|
+
# The name of the operation resource to be cancelled.
|
|
26645
|
+
# @param [String] fields
|
|
26646
|
+
# Selector specifying which fields to include in a partial response.
|
|
26647
|
+
# @param [String] quota_user
|
|
26648
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
26649
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
26650
|
+
# @param [Google::Apis::RequestOptions] options
|
|
26651
|
+
# Request-specific options
|
|
26652
|
+
#
|
|
26653
|
+
# @yield [result, err] Result & error if block supplied
|
|
26654
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleProtobufEmpty] parsed result object
|
|
26655
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
26656
|
+
#
|
|
26657
|
+
# @return [Google::Apis::AiplatformV1::GoogleProtobufEmpty]
|
|
26658
|
+
#
|
|
26659
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
26660
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
26661
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
26662
|
+
def cancel_project_location_reasoning_engine_memory_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
26663
|
+
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
|
26664
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
|
|
26665
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
|
|
26666
|
+
command.params['name'] = name unless name.nil?
|
|
26667
|
+
command.query['fields'] = fields unless fields.nil?
|
|
26668
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
26669
|
+
execute_or_queue_command(command, &block)
|
|
26670
|
+
end
|
|
26671
|
+
|
|
26672
|
+
# Deletes a long-running operation. This method indicates that the client is no
|
|
26673
|
+
# longer interested in the operation result. It does not cancel the operation.
|
|
26674
|
+
# If the server doesn't support this method, it returns `google.rpc.Code.
|
|
26675
|
+
# UNIMPLEMENTED`.
|
|
26676
|
+
# @param [String] name
|
|
26677
|
+
# The name of the operation resource to be deleted.
|
|
26678
|
+
# @param [String] fields
|
|
26679
|
+
# Selector specifying which fields to include in a partial response.
|
|
26680
|
+
# @param [String] quota_user
|
|
26681
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
26682
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
26683
|
+
# @param [Google::Apis::RequestOptions] options
|
|
26684
|
+
# Request-specific options
|
|
26685
|
+
#
|
|
26686
|
+
# @yield [result, err] Result & error if block supplied
|
|
26687
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleProtobufEmpty] parsed result object
|
|
26688
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
26689
|
+
#
|
|
26690
|
+
# @return [Google::Apis::AiplatformV1::GoogleProtobufEmpty]
|
|
26691
|
+
#
|
|
26692
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
26693
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
26694
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
26695
|
+
def delete_project_location_reasoning_engine_memory_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
26696
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
|
26697
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
|
|
26698
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
|
|
26699
|
+
command.params['name'] = name unless name.nil?
|
|
26700
|
+
command.query['fields'] = fields unless fields.nil?
|
|
26701
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
26702
|
+
execute_or_queue_command(command, &block)
|
|
26703
|
+
end
|
|
26704
|
+
|
|
26705
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
|
26706
|
+
# to poll the operation result at intervals as recommended by the API service.
|
|
26707
|
+
# @param [String] name
|
|
26708
|
+
# The name of the operation resource.
|
|
26709
|
+
# @param [String] fields
|
|
26710
|
+
# Selector specifying which fields to include in a partial response.
|
|
26711
|
+
# @param [String] quota_user
|
|
26712
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
26713
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
26714
|
+
# @param [Google::Apis::RequestOptions] options
|
|
26715
|
+
# Request-specific options
|
|
26716
|
+
#
|
|
26717
|
+
# @yield [result, err] Result & error if block supplied
|
|
26718
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
|
|
26719
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
26720
|
+
#
|
|
26721
|
+
# @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
|
|
26722
|
+
#
|
|
26723
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
26724
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
26725
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
26726
|
+
def get_project_location_reasoning_engine_memory_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
26727
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
26728
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
|
26729
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
|
26730
|
+
command.params['name'] = name unless name.nil?
|
|
26731
|
+
command.query['fields'] = fields unless fields.nil?
|
|
26732
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
26733
|
+
execute_or_queue_command(command, &block)
|
|
26734
|
+
end
|
|
26735
|
+
|
|
26736
|
+
# Lists operations that match the specified filter in the request. If the server
|
|
26737
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
|
26738
|
+
# @param [String] name
|
|
26739
|
+
# The name of the operation's parent resource.
|
|
26740
|
+
# @param [String] filter
|
|
26741
|
+
# The standard list filter.
|
|
26742
|
+
# @param [Fixnum] page_size
|
|
26743
|
+
# The standard list page size.
|
|
26744
|
+
# @param [String] page_token
|
|
26745
|
+
# The standard list page token.
|
|
26746
|
+
# @param [Boolean] return_partial_success
|
|
26747
|
+
# When set to `true`, operations that are reachable are returned as normal, and
|
|
26748
|
+
# those that are unreachable are returned in the ListOperationsResponse.
|
|
26749
|
+
# unreachable field. This can only be `true` when reading across collections.
|
|
26750
|
+
# For example, when `parent` is set to `"projects/example/locations/-"`. This
|
|
26751
|
+
# field is not supported by default and will result in an `UNIMPLEMENTED` error
|
|
26752
|
+
# if set unless explicitly documented otherwise in service or product specific
|
|
26753
|
+
# documentation.
|
|
26754
|
+
# @param [String] fields
|
|
26755
|
+
# Selector specifying which fields to include in a partial response.
|
|
26756
|
+
# @param [String] quota_user
|
|
26757
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
26758
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
26759
|
+
# @param [Google::Apis::RequestOptions] options
|
|
26760
|
+
# Request-specific options
|
|
26761
|
+
#
|
|
26762
|
+
# @yield [result, err] Result & error if block supplied
|
|
26763
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse] parsed result object
|
|
26764
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
26765
|
+
#
|
|
26766
|
+
# @return [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse]
|
|
26767
|
+
#
|
|
26768
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
26769
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
26770
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
26771
|
+
def list_project_location_reasoning_engine_memory_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
26772
|
+
command = make_simple_command(:get, 'v1/{+name}/operations', options)
|
|
26773
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse::Representation
|
|
26774
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse
|
|
26775
|
+
command.params['name'] = name unless name.nil?
|
|
26776
|
+
command.query['filter'] = filter unless filter.nil?
|
|
26777
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
26778
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
26779
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
|
26780
|
+
command.query['fields'] = fields unless fields.nil?
|
|
26781
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
26782
|
+
execute_or_queue_command(command, &block)
|
|
26783
|
+
end
|
|
26784
|
+
|
|
26785
|
+
# Waits until the specified long-running operation is done or reaches at most a
|
|
26786
|
+
# specified timeout, returning the latest state. If the operation is already
|
|
26787
|
+
# done, the latest state is immediately returned. If the timeout specified is
|
|
26788
|
+
# greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If
|
|
26789
|
+
# the server does not support this method, it returns `google.rpc.Code.
|
|
26790
|
+
# UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return
|
|
26791
|
+
# the latest state before the specified timeout (including immediately), meaning
|
|
26792
|
+
# even an immediate response is no guarantee that the operation is done.
|
|
26793
|
+
# @param [String] name
|
|
26794
|
+
# The name of the operation resource to wait on.
|
|
26795
|
+
# @param [String] timeout
|
|
26796
|
+
# The maximum duration to wait before timing out. If left blank, the wait will
|
|
26797
|
+
# be at most the time permitted by the underlying HTTP/RPC protocol. If RPC
|
|
26798
|
+
# context deadline is also specified, the shorter one will be used.
|
|
26799
|
+
# @param [String] fields
|
|
26800
|
+
# Selector specifying which fields to include in a partial response.
|
|
26801
|
+
# @param [String] quota_user
|
|
26802
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
26803
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
26804
|
+
# @param [Google::Apis::RequestOptions] options
|
|
26805
|
+
# Request-specific options
|
|
26806
|
+
#
|
|
26807
|
+
# @yield [result, err] Result & error if block supplied
|
|
26808
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
|
|
26809
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
26810
|
+
#
|
|
26811
|
+
# @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
|
|
26812
|
+
#
|
|
26813
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
26814
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
26815
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
26816
|
+
def wait_project_location_reasoning_engine_memory_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
26817
|
+
command = make_simple_command(:post, 'v1/{+name}:wait', options)
|
|
26818
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
|
26819
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
|
26820
|
+
command.params['name'] = name unless name.nil?
|
|
26821
|
+
command.query['timeout'] = timeout unless timeout.nil?
|
|
26822
|
+
command.query['fields'] = fields unless fields.nil?
|
|
26823
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
26824
|
+
execute_or_queue_command(command, &block)
|
|
26825
|
+
end
|
|
26826
|
+
|
|
26827
|
+
# Get a Memory Revision.
|
|
26828
|
+
# @param [String] name
|
|
26829
|
+
# Required. The resource name of the Memory Revision to retrieve. Format: `
|
|
26830
|
+
# projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine`/
|
|
26831
|
+
# memories/`memory`/revisions/`revision``
|
|
26832
|
+
# @param [String] fields
|
|
26833
|
+
# Selector specifying which fields to include in a partial response.
|
|
26834
|
+
# @param [String] quota_user
|
|
26835
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
26836
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
26837
|
+
# @param [Google::Apis::RequestOptions] options
|
|
26838
|
+
# Request-specific options
|
|
26839
|
+
#
|
|
26840
|
+
# @yield [result, err] Result & error if block supplied
|
|
26841
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MemoryRevision] parsed result object
|
|
26842
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
26843
|
+
#
|
|
26844
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MemoryRevision]
|
|
26845
|
+
#
|
|
26846
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
26847
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
26848
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
26849
|
+
def get_project_location_reasoning_engine_memory_revision(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
26850
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
26851
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MemoryRevision::Representation
|
|
26852
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1MemoryRevision
|
|
26853
|
+
command.params['name'] = name unless name.nil?
|
|
26854
|
+
command.query['fields'] = fields unless fields.nil?
|
|
26855
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
26856
|
+
execute_or_queue_command(command, &block)
|
|
26857
|
+
end
|
|
26858
|
+
|
|
26859
|
+
# List Memory Revisions for a Memory.
|
|
26860
|
+
# @param [String] parent
|
|
26861
|
+
# Required. The resource name of the Memory to list revisions for. Format: `
|
|
26862
|
+
# projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine`/
|
|
26863
|
+
# memories/`memory``
|
|
26864
|
+
# @param [String] filter
|
|
26865
|
+
# Optional. The standard list filter. More detail in [AIP-160](https://google.
|
|
26866
|
+
# aip.dev/160). Supported fields (equality match only): * `labels`
|
|
26867
|
+
# @param [Fixnum] page_size
|
|
26868
|
+
# Optional. The standard list page size.
|
|
26869
|
+
# @param [String] page_token
|
|
26870
|
+
# Optional. The standard list page token.
|
|
26871
|
+
# @param [String] fields
|
|
26872
|
+
# Selector specifying which fields to include in a partial response.
|
|
26873
|
+
# @param [String] quota_user
|
|
26874
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
26875
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
26876
|
+
# @param [Google::Apis::RequestOptions] options
|
|
26877
|
+
# Request-specific options
|
|
26878
|
+
#
|
|
26879
|
+
# @yield [result, err] Result & error if block supplied
|
|
26880
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListMemoryRevisionsResponse] parsed result object
|
|
26881
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
26882
|
+
#
|
|
26883
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListMemoryRevisionsResponse]
|
|
26884
|
+
#
|
|
26885
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
26886
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
26887
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
26888
|
+
def list_project_location_reasoning_engine_memory_revisions(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
26889
|
+
command = make_simple_command(:get, 'v1/{+parent}/revisions', options)
|
|
26890
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListMemoryRevisionsResponse::Representation
|
|
26891
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListMemoryRevisionsResponse
|
|
26892
|
+
command.params['parent'] = parent unless parent.nil?
|
|
26893
|
+
command.query['filter'] = filter unless filter.nil?
|
|
26894
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
26895
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
26896
|
+
command.query['fields'] = fields unless fields.nil?
|
|
26897
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
26898
|
+
execute_or_queue_command(command, &block)
|
|
26899
|
+
end
|
|
26900
|
+
|
|
26901
|
+
# Starts asynchronous cancellation on a long-running operation. The server makes
|
|
26902
|
+
# a best effort to cancel the operation, but success is not guaranteed. If the
|
|
26903
|
+
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
|
26904
|
+
# Clients can use Operations.GetOperation or other methods to check whether the
|
|
26905
|
+
# cancellation succeeded or whether the operation completed despite cancellation.
|
|
26906
|
+
# On successful cancellation, the operation is not deleted; instead, it becomes
|
|
26907
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
|
26908
|
+
# , corresponding to `Code.CANCELLED`.
|
|
26909
|
+
# @param [String] name
|
|
26910
|
+
# The name of the operation resource to be cancelled.
|
|
26911
|
+
# @param [String] fields
|
|
26912
|
+
# Selector specifying which fields to include in a partial response.
|
|
26913
|
+
# @param [String] quota_user
|
|
26914
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
26915
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
26916
|
+
# @param [Google::Apis::RequestOptions] options
|
|
26917
|
+
# Request-specific options
|
|
26918
|
+
#
|
|
26919
|
+
# @yield [result, err] Result & error if block supplied
|
|
26920
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleProtobufEmpty] parsed result object
|
|
26921
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
26922
|
+
#
|
|
26923
|
+
# @return [Google::Apis::AiplatformV1::GoogleProtobufEmpty]
|
|
26924
|
+
#
|
|
26925
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
26926
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
26927
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
26928
|
+
def cancel_project_location_reasoning_engine_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
26929
|
+
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
|
26930
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
|
|
26931
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
|
|
26932
|
+
command.params['name'] = name unless name.nil?
|
|
26933
|
+
command.query['fields'] = fields unless fields.nil?
|
|
26934
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
26935
|
+
execute_or_queue_command(command, &block)
|
|
26936
|
+
end
|
|
26937
|
+
|
|
26938
|
+
# Deletes a long-running operation. This method indicates that the client is no
|
|
26939
|
+
# longer interested in the operation result. It does not cancel the operation.
|
|
26940
|
+
# If the server doesn't support this method, it returns `google.rpc.Code.
|
|
26941
|
+
# UNIMPLEMENTED`.
|
|
26942
|
+
# @param [String] name
|
|
26943
|
+
# The name of the operation resource to be deleted.
|
|
26944
|
+
# @param [String] fields
|
|
26945
|
+
# Selector specifying which fields to include in a partial response.
|
|
26946
|
+
# @param [String] quota_user
|
|
26947
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
26948
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
26949
|
+
# @param [Google::Apis::RequestOptions] options
|
|
26950
|
+
# Request-specific options
|
|
26951
|
+
#
|
|
26952
|
+
# @yield [result, err] Result & error if block supplied
|
|
26953
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleProtobufEmpty] parsed result object
|
|
26954
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
26955
|
+
#
|
|
26956
|
+
# @return [Google::Apis::AiplatformV1::GoogleProtobufEmpty]
|
|
26957
|
+
#
|
|
26958
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
26959
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
26960
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
26961
|
+
def delete_project_location_reasoning_engine_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
26962
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
|
26963
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
|
|
26964
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
|
|
26965
|
+
command.params['name'] = name unless name.nil?
|
|
26966
|
+
command.query['fields'] = fields unless fields.nil?
|
|
26967
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
26968
|
+
execute_or_queue_command(command, &block)
|
|
26969
|
+
end
|
|
26970
|
+
|
|
26971
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
|
26972
|
+
# to poll the operation result at intervals as recommended by the API service.
|
|
26973
|
+
# @param [String] name
|
|
26974
|
+
# The name of the operation resource.
|
|
26975
|
+
# @param [String] fields
|
|
26976
|
+
# Selector specifying which fields to include in a partial response.
|
|
26977
|
+
# @param [String] quota_user
|
|
26978
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
26979
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
26980
|
+
# @param [Google::Apis::RequestOptions] options
|
|
26981
|
+
# Request-specific options
|
|
26982
|
+
#
|
|
26983
|
+
# @yield [result, err] Result & error if block supplied
|
|
26984
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
|
|
26985
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
26986
|
+
#
|
|
26987
|
+
# @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
|
|
26988
|
+
#
|
|
26989
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
26990
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
26991
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
26992
|
+
def get_project_location_reasoning_engine_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
26993
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
26994
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
|
26995
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
|
26996
|
+
command.params['name'] = name unless name.nil?
|
|
26997
|
+
command.query['fields'] = fields unless fields.nil?
|
|
26998
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
26999
|
+
execute_or_queue_command(command, &block)
|
|
27000
|
+
end
|
|
27001
|
+
|
|
27002
|
+
# Lists operations that match the specified filter in the request. If the server
|
|
27003
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
|
27004
|
+
# @param [String] name
|
|
27005
|
+
# The name of the operation's parent resource.
|
|
27006
|
+
# @param [String] filter
|
|
27007
|
+
# The standard list filter.
|
|
27008
|
+
# @param [Fixnum] page_size
|
|
27009
|
+
# The standard list page size.
|
|
27010
|
+
# @param [String] page_token
|
|
27011
|
+
# The standard list page token.
|
|
27012
|
+
# @param [Boolean] return_partial_success
|
|
27013
|
+
# When set to `true`, operations that are reachable are returned as normal, and
|
|
27014
|
+
# those that are unreachable are returned in the ListOperationsResponse.
|
|
27015
|
+
# unreachable field. This can only be `true` when reading across collections.
|
|
27016
|
+
# For example, when `parent` is set to `"projects/example/locations/-"`. This
|
|
27017
|
+
# field is not supported by default and will result in an `UNIMPLEMENTED` error
|
|
27018
|
+
# if set unless explicitly documented otherwise in service or product specific
|
|
27019
|
+
# documentation.
|
|
27020
|
+
# @param [String] fields
|
|
27021
|
+
# Selector specifying which fields to include in a partial response.
|
|
27022
|
+
# @param [String] quota_user
|
|
27023
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
27024
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
27025
|
+
# @param [Google::Apis::RequestOptions] options
|
|
27026
|
+
# Request-specific options
|
|
27027
|
+
#
|
|
27028
|
+
# @yield [result, err] Result & error if block supplied
|
|
27029
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse] parsed result object
|
|
27030
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
27031
|
+
#
|
|
27032
|
+
# @return [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse]
|
|
27033
|
+
#
|
|
27034
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
27035
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
27036
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
27037
|
+
def list_project_location_reasoning_engine_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
27038
|
+
command = make_simple_command(:get, 'v1/{+name}/operations', options)
|
|
27039
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse::Representation
|
|
27040
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse
|
|
27041
|
+
command.params['name'] = name unless name.nil?
|
|
27042
|
+
command.query['filter'] = filter unless filter.nil?
|
|
27043
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
27044
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
27045
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
|
27046
|
+
command.query['fields'] = fields unless fields.nil?
|
|
27047
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
27048
|
+
execute_or_queue_command(command, &block)
|
|
27049
|
+
end
|
|
27050
|
+
|
|
27051
|
+
# Waits until the specified long-running operation is done or reaches at most a
|
|
27052
|
+
# specified timeout, returning the latest state. If the operation is already
|
|
27053
|
+
# done, the latest state is immediately returned. If the timeout specified is
|
|
27054
|
+
# greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If
|
|
27055
|
+
# the server does not support this method, it returns `google.rpc.Code.
|
|
27056
|
+
# UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return
|
|
27057
|
+
# the latest state before the specified timeout (including immediately), meaning
|
|
27058
|
+
# even an immediate response is no guarantee that the operation is done.
|
|
27059
|
+
# @param [String] name
|
|
27060
|
+
# The name of the operation resource to wait on.
|
|
27061
|
+
# @param [String] timeout
|
|
27062
|
+
# The maximum duration to wait before timing out. If left blank, the wait will
|
|
27063
|
+
# be at most the time permitted by the underlying HTTP/RPC protocol. If RPC
|
|
27064
|
+
# context deadline is also specified, the shorter one will be used.
|
|
27065
|
+
# @param [String] fields
|
|
27066
|
+
# Selector specifying which fields to include in a partial response.
|
|
27067
|
+
# @param [String] quota_user
|
|
27068
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
27069
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
27070
|
+
# @param [Google::Apis::RequestOptions] options
|
|
27071
|
+
# Request-specific options
|
|
27072
|
+
#
|
|
27073
|
+
# @yield [result, err] Result & error if block supplied
|
|
27074
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
|
|
27075
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
27076
|
+
#
|
|
27077
|
+
# @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
|
|
27078
|
+
#
|
|
27079
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
27080
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
27081
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
27082
|
+
def wait_project_location_reasoning_engine_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
27083
|
+
command = make_simple_command(:post, 'v1/{+name}:wait', options)
|
|
27084
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
|
27085
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
|
27086
|
+
command.params['name'] = name unless name.nil?
|
|
27087
|
+
command.query['timeout'] = timeout unless timeout.nil?
|
|
27088
|
+
command.query['fields'] = fields unless fields.nil?
|
|
27089
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
27090
|
+
execute_or_queue_command(command, &block)
|
|
27091
|
+
end
|
|
27092
|
+
|
|
27093
|
+
# Appends an event to a given session.
|
|
27094
|
+
# @param [String] name
|
|
27095
|
+
# Required. The resource name of the session to append event to. Format: `
|
|
27096
|
+
# projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine`/
|
|
27097
|
+
# sessions/`session``
|
|
27098
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SessionEvent] google_cloud_aiplatform_v1_session_event_object
|
|
27099
|
+
# @param [String] fields
|
|
27100
|
+
# Selector specifying which fields to include in a partial response.
|
|
27101
|
+
# @param [String] quota_user
|
|
27102
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
27103
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
27104
|
+
# @param [Google::Apis::RequestOptions] options
|
|
27105
|
+
# Request-specific options
|
|
27106
|
+
#
|
|
27107
|
+
# @yield [result, err] Result & error if block supplied
|
|
27108
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AppendEventResponse] parsed result object
|
|
27109
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
27110
|
+
#
|
|
27111
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AppendEventResponse]
|
|
27112
|
+
#
|
|
27113
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
27114
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
27115
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
27116
|
+
def append_project_location_reasoning_engine_session_event(name, google_cloud_aiplatform_v1_session_event_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
27117
|
+
command = make_simple_command(:post, 'v1/{+name}:appendEvent', options)
|
|
27118
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SessionEvent::Representation
|
|
27119
|
+
command.request_object = google_cloud_aiplatform_v1_session_event_object
|
|
27120
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AppendEventResponse::Representation
|
|
27121
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AppendEventResponse
|
|
27122
|
+
command.params['name'] = name unless name.nil?
|
|
27123
|
+
command.query['fields'] = fields unless fields.nil?
|
|
27124
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
27125
|
+
execute_or_queue_command(command, &block)
|
|
27126
|
+
end
|
|
27127
|
+
|
|
27128
|
+
# Creates a new Session.
|
|
27129
|
+
# @param [String] parent
|
|
27130
|
+
# Required. The resource name of the location to create the session in. Format: `
|
|
27131
|
+
# projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine``
|
|
27132
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session] google_cloud_aiplatform_v1_session_object
|
|
27133
|
+
# @param [String] fields
|
|
27134
|
+
# Selector specifying which fields to include in a partial response.
|
|
27135
|
+
# @param [String] quota_user
|
|
27136
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
27137
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
27138
|
+
# @param [Google::Apis::RequestOptions] options
|
|
27139
|
+
# Request-specific options
|
|
27140
|
+
#
|
|
27141
|
+
# @yield [result, err] Result & error if block supplied
|
|
27142
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
|
|
27143
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
27144
|
+
#
|
|
27145
|
+
# @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
|
|
27146
|
+
#
|
|
27147
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
27148
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
27149
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
27150
|
+
def create_project_location_reasoning_engine_session(parent, google_cloud_aiplatform_v1_session_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
27151
|
+
command = make_simple_command(:post, 'v1/{+parent}/sessions', options)
|
|
27152
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session::Representation
|
|
27153
|
+
command.request_object = google_cloud_aiplatform_v1_session_object
|
|
27154
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
|
27155
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
|
27156
|
+
command.params['parent'] = parent unless parent.nil?
|
|
27157
|
+
command.query['fields'] = fields unless fields.nil?
|
|
27158
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
27159
|
+
execute_or_queue_command(command, &block)
|
|
27160
|
+
end
|
|
27161
|
+
|
|
27162
|
+
# Deletes details of the specific Session.
|
|
27163
|
+
# @param [String] name
|
|
27164
|
+
# Required. The resource name of the session. Format: `projects/`project`/
|
|
27165
|
+
# locations/`location`/reasoningEngines/`reasoning_engine`/sessions/`session``
|
|
27166
|
+
# @param [String] fields
|
|
27167
|
+
# Selector specifying which fields to include in a partial response.
|
|
27168
|
+
# @param [String] quota_user
|
|
27169
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
27170
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
27171
|
+
# @param [Google::Apis::RequestOptions] options
|
|
27172
|
+
# Request-specific options
|
|
27173
|
+
#
|
|
27174
|
+
# @yield [result, err] Result & error if block supplied
|
|
27175
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
|
|
27176
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
27177
|
+
#
|
|
27178
|
+
# @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
|
|
27179
|
+
#
|
|
27180
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
27181
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
27182
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
27183
|
+
def delete_project_location_reasoning_engine_session(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
27184
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
|
27185
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
|
27186
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
|
27187
|
+
command.params['name'] = name unless name.nil?
|
|
27188
|
+
command.query['fields'] = fields unless fields.nil?
|
|
27189
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
27190
|
+
execute_or_queue_command(command, &block)
|
|
27191
|
+
end
|
|
27192
|
+
|
|
27193
|
+
# Gets details of the specific Session.
|
|
27194
|
+
# @param [String] name
|
|
27195
|
+
# Required. The resource name of the session. Format: `projects/`project`/
|
|
27196
|
+
# locations/`location`/reasoningEngines/`reasoning_engine`/sessions/`session``
|
|
27197
|
+
# @param [String] fields
|
|
27198
|
+
# Selector specifying which fields to include in a partial response.
|
|
27199
|
+
# @param [String] quota_user
|
|
27200
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
27201
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
27202
|
+
# @param [Google::Apis::RequestOptions] options
|
|
27203
|
+
# Request-specific options
|
|
27204
|
+
#
|
|
27205
|
+
# @yield [result, err] Result & error if block supplied
|
|
27206
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session] parsed result object
|
|
27207
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
27208
|
+
#
|
|
27209
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session]
|
|
27210
|
+
#
|
|
27211
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
27212
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
27213
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
27214
|
+
def get_project_location_reasoning_engine_session(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
27215
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
27216
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session::Representation
|
|
27217
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session
|
|
27218
|
+
command.params['name'] = name unless name.nil?
|
|
27219
|
+
command.query['fields'] = fields unless fields.nil?
|
|
27220
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
27221
|
+
execute_or_queue_command(command, &block)
|
|
27222
|
+
end
|
|
27223
|
+
|
|
27224
|
+
# Lists Sessions in a given reasoning engine.
|
|
27225
|
+
# @param [String] parent
|
|
27226
|
+
# Required. The resource name of the location to list sessions from. Format: `
|
|
27227
|
+
# projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine``
|
|
27228
|
+
# @param [String] filter
|
|
27229
|
+
# Optional. The standard list filter. Supported fields: * `display_name` * `
|
|
27230
|
+
# user_id` * `labels` Example: `display_name="abc"`, `user_id="123"`, `labels.
|
|
27231
|
+
# key="value"`.
|
|
27232
|
+
# @param [String] order_by
|
|
27233
|
+
# Optional. A comma-separated list of fields to order by, sorted in ascending
|
|
27234
|
+
# order. Use "desc" after a field name for descending. Supported fields: * `
|
|
27235
|
+
# create_time` * `update_time` Example: `create_time desc`.
|
|
27236
|
+
# @param [Fixnum] page_size
|
|
27237
|
+
# Optional. The maximum number of sessions to return. The service may return
|
|
27238
|
+
# fewer than this value. If unspecified, at most 100 sessions will be returned.
|
|
27239
|
+
# @param [String] page_token
|
|
27240
|
+
# Optional. The next_page_token value returned from a previous list
|
|
27241
|
+
# SessionService.ListSessions call.
|
|
27242
|
+
# @param [String] fields
|
|
27243
|
+
# Selector specifying which fields to include in a partial response.
|
|
27244
|
+
# @param [String] quota_user
|
|
27245
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
27246
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
27247
|
+
# @param [Google::Apis::RequestOptions] options
|
|
27248
|
+
# Request-specific options
|
|
27249
|
+
#
|
|
27250
|
+
# @yield [result, err] Result & error if block supplied
|
|
27251
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListSessionsResponse] parsed result object
|
|
27252
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
27253
|
+
#
|
|
27254
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListSessionsResponse]
|
|
27255
|
+
#
|
|
27256
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
27257
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
27258
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
27259
|
+
def list_project_location_reasoning_engine_sessions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
27260
|
+
command = make_simple_command(:get, 'v1/{+parent}/sessions', options)
|
|
27261
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListSessionsResponse::Representation
|
|
27262
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListSessionsResponse
|
|
27263
|
+
command.params['parent'] = parent unless parent.nil?
|
|
27264
|
+
command.query['filter'] = filter unless filter.nil?
|
|
27265
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
27266
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
27267
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
27268
|
+
command.query['fields'] = fields unless fields.nil?
|
|
27269
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
27270
|
+
execute_or_queue_command(command, &block)
|
|
27271
|
+
end
|
|
27272
|
+
|
|
27273
|
+
# Updates the specific Session.
|
|
27274
|
+
# @param [String] name
|
|
27275
|
+
# Identifier. The resource name of the session. Format: 'projects/`project`/
|
|
27276
|
+
# locations/`location`/reasoningEngines/`reasoning_engine`/sessions/`session`'.
|
|
27277
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session] google_cloud_aiplatform_v1_session_object
|
|
27278
|
+
# @param [String] update_mask
|
|
27279
|
+
# Optional. Field mask is used to control which fields get updated. If the mask
|
|
27280
|
+
# is not present, all fields will be updated.
|
|
27281
|
+
# @param [String] fields
|
|
27282
|
+
# Selector specifying which fields to include in a partial response.
|
|
27283
|
+
# @param [String] quota_user
|
|
27284
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
27285
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
27286
|
+
# @param [Google::Apis::RequestOptions] options
|
|
27287
|
+
# Request-specific options
|
|
27288
|
+
#
|
|
27289
|
+
# @yield [result, err] Result & error if block supplied
|
|
27290
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session] parsed result object
|
|
27291
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
27292
|
+
#
|
|
27293
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session]
|
|
27294
|
+
#
|
|
27295
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
27296
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
27297
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
27298
|
+
def patch_project_location_reasoning_engine_session(name, google_cloud_aiplatform_v1_session_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
27299
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
|
27300
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session::Representation
|
|
27301
|
+
command.request_object = google_cloud_aiplatform_v1_session_object
|
|
27302
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session::Representation
|
|
27303
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Session
|
|
27304
|
+
command.params['name'] = name unless name.nil?
|
|
27305
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
27306
|
+
command.query['fields'] = fields unless fields.nil?
|
|
27307
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
27308
|
+
execute_or_queue_command(command, &block)
|
|
27309
|
+
end
|
|
27310
|
+
|
|
27311
|
+
# Lists Events in a given session.
|
|
27312
|
+
# @param [String] parent
|
|
27313
|
+
# Required. The resource name of the session to list events from. Format: `
|
|
27314
|
+
# projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine`/
|
|
27315
|
+
# sessions/`session``
|
|
27316
|
+
# @param [String] filter
|
|
27317
|
+
# Optional. The standard list filter. Supported fields: * `timestamp` range (i.e.
|
|
27318
|
+
# `timestamp>="2025-01-31T11:30:00-04:00"` where the timestamp is in RFC 3339
|
|
27319
|
+
# format) More detail in [AIP-160](https://google.aip.dev/160).
|
|
27320
|
+
# @param [String] order_by
|
|
27321
|
+
# Optional. A comma-separated list of fields to order by, sorted in ascending
|
|
27322
|
+
# order. Use "desc" after a field name for descending. Supported fields: * `
|
|
27323
|
+
# timestamp` Example: `timestamp desc`.
|
|
27324
|
+
# @param [Fixnum] page_size
|
|
27325
|
+
# Optional. The maximum number of events to return. The service may return fewer
|
|
27326
|
+
# than this value. If unspecified, at most 100 events will be returned. These
|
|
27327
|
+
# events are ordered by timestamp in ascending order.
|
|
27328
|
+
# @param [String] page_token
|
|
27329
|
+
# Optional. The next_page_token value returned from a previous list
|
|
27330
|
+
# SessionService.ListEvents call.
|
|
27331
|
+
# @param [String] fields
|
|
27332
|
+
# Selector specifying which fields to include in a partial response.
|
|
27333
|
+
# @param [String] quota_user
|
|
27334
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
27335
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
27336
|
+
# @param [Google::Apis::RequestOptions] options
|
|
27337
|
+
# Request-specific options
|
|
27338
|
+
#
|
|
27339
|
+
# @yield [result, err] Result & error if block supplied
|
|
27340
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListEventsResponse] parsed result object
|
|
27341
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
27342
|
+
#
|
|
27343
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListEventsResponse]
|
|
27344
|
+
#
|
|
27345
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
27346
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
27347
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
27348
|
+
def list_project_location_reasoning_engine_session_events(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
27349
|
+
command = make_simple_command(:get, 'v1/{+parent}/events', options)
|
|
27350
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListEventsResponse::Representation
|
|
27351
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListEventsResponse
|
|
27352
|
+
command.params['parent'] = parent unless parent.nil?
|
|
27353
|
+
command.query['filter'] = filter unless filter.nil?
|
|
27354
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
27355
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
27356
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
27357
|
+
command.query['fields'] = fields unless fields.nil?
|
|
27358
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
27359
|
+
execute_or_queue_command(command, &block)
|
|
27360
|
+
end
|
|
27361
|
+
|
|
26304
27362
|
# Starts asynchronous cancellation on a long-running operation. The server makes
|
|
26305
27363
|
# a best effort to cancel the operation, but success is not guaranteed. If the
|
|
26306
27364
|
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
|
@@ -26328,7 +27386,7 @@ module Google
|
|
|
26328
27386
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
26329
27387
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
26330
27388
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
26331
|
-
def
|
|
27389
|
+
def cancel_project_location_reasoning_engine_session_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
26332
27390
|
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
|
26333
27391
|
command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
|
|
26334
27392
|
command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
|
|
@@ -26361,7 +27419,7 @@ module Google
|
|
|
26361
27419
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
26362
27420
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
26363
27421
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
26364
|
-
def
|
|
27422
|
+
def delete_project_location_reasoning_engine_session_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
26365
27423
|
command = make_simple_command(:delete, 'v1/{+name}', options)
|
|
26366
27424
|
command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
|
|
26367
27425
|
command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
|
|
@@ -26392,7 +27450,7 @@ module Google
|
|
|
26392
27450
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
26393
27451
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
26394
27452
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
26395
|
-
def
|
|
27453
|
+
def get_project_location_reasoning_engine_session_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
26396
27454
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
26397
27455
|
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
|
26398
27456
|
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
|
@@ -26437,7 +27495,7 @@ module Google
|
|
|
26437
27495
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
26438
27496
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
26439
27497
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
26440
|
-
def
|
|
27498
|
+
def list_project_location_reasoning_engine_session_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
26441
27499
|
command = make_simple_command(:get, 'v1/{+name}/operations', options)
|
|
26442
27500
|
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse::Representation
|
|
26443
27501
|
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse
|
|
@@ -26482,7 +27540,7 @@ module Google
|
|
|
26482
27540
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
26483
27541
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
26484
27542
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
26485
|
-
def
|
|
27543
|
+
def wait_project_location_reasoning_engine_session_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
26486
27544
|
command = make_simple_command(:post, 'v1/{+name}:wait', options)
|
|
26487
27545
|
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
|
26488
27546
|
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
|
@@ -29739,20 +30797,212 @@ module Google
|
|
|
29739
30797
|
# Request-specific options
|
|
29740
30798
|
#
|
|
29741
30799
|
# @yield [result, err] Result & error if block supplied
|
|
29742
|
-
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReadTensorboardBlobDataResponse] parsed result object
|
|
30800
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReadTensorboardBlobDataResponse] parsed result object
|
|
30801
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
30802
|
+
#
|
|
30803
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReadTensorboardBlobDataResponse]
|
|
30804
|
+
#
|
|
30805
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
30806
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
30807
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
30808
|
+
def read_project_location_tensorboard_experiment_run_time_series_blob_data(time_series, blob_ids: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
30809
|
+
command = make_simple_command(:get, 'v1/{+timeSeries}:readBlobData', options)
|
|
30810
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReadTensorboardBlobDataResponse::Representation
|
|
30811
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReadTensorboardBlobDataResponse
|
|
30812
|
+
command.params['timeSeries'] = time_series unless time_series.nil?
|
|
30813
|
+
command.query['blobIds'] = blob_ids unless blob_ids.nil?
|
|
30814
|
+
command.query['fields'] = fields unless fields.nil?
|
|
30815
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
30816
|
+
execute_or_queue_command(command, &block)
|
|
30817
|
+
end
|
|
30818
|
+
|
|
30819
|
+
# Starts asynchronous cancellation on a long-running operation. The server makes
|
|
30820
|
+
# a best effort to cancel the operation, but success is not guaranteed. If the
|
|
30821
|
+
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
|
30822
|
+
# Clients can use Operations.GetOperation or other methods to check whether the
|
|
30823
|
+
# cancellation succeeded or whether the operation completed despite cancellation.
|
|
30824
|
+
# On successful cancellation, the operation is not deleted; instead, it becomes
|
|
30825
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
|
30826
|
+
# , corresponding to `Code.CANCELLED`.
|
|
30827
|
+
# @param [String] name
|
|
30828
|
+
# The name of the operation resource to be cancelled.
|
|
30829
|
+
# @param [String] fields
|
|
30830
|
+
# Selector specifying which fields to include in a partial response.
|
|
30831
|
+
# @param [String] quota_user
|
|
30832
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
30833
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
30834
|
+
# @param [Google::Apis::RequestOptions] options
|
|
30835
|
+
# Request-specific options
|
|
30836
|
+
#
|
|
30837
|
+
# @yield [result, err] Result & error if block supplied
|
|
30838
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleProtobufEmpty] parsed result object
|
|
30839
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
30840
|
+
#
|
|
30841
|
+
# @return [Google::Apis::AiplatformV1::GoogleProtobufEmpty]
|
|
30842
|
+
#
|
|
30843
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
30844
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
30845
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
30846
|
+
def cancel_project_location_tensorboard_experiment_run_time_series_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
30847
|
+
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
|
30848
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
|
|
30849
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
|
|
30850
|
+
command.params['name'] = name unless name.nil?
|
|
30851
|
+
command.query['fields'] = fields unless fields.nil?
|
|
30852
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
30853
|
+
execute_or_queue_command(command, &block)
|
|
30854
|
+
end
|
|
30855
|
+
|
|
30856
|
+
# Deletes a long-running operation. This method indicates that the client is no
|
|
30857
|
+
# longer interested in the operation result. It does not cancel the operation.
|
|
30858
|
+
# If the server doesn't support this method, it returns `google.rpc.Code.
|
|
30859
|
+
# UNIMPLEMENTED`.
|
|
30860
|
+
# @param [String] name
|
|
30861
|
+
# The name of the operation resource to be deleted.
|
|
30862
|
+
# @param [String] fields
|
|
30863
|
+
# Selector specifying which fields to include in a partial response.
|
|
30864
|
+
# @param [String] quota_user
|
|
30865
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
30866
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
30867
|
+
# @param [Google::Apis::RequestOptions] options
|
|
30868
|
+
# Request-specific options
|
|
30869
|
+
#
|
|
30870
|
+
# @yield [result, err] Result & error if block supplied
|
|
30871
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleProtobufEmpty] parsed result object
|
|
30872
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
30873
|
+
#
|
|
30874
|
+
# @return [Google::Apis::AiplatformV1::GoogleProtobufEmpty]
|
|
30875
|
+
#
|
|
30876
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
30877
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
30878
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
30879
|
+
def delete_project_location_tensorboard_experiment_run_time_series_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
30880
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
|
30881
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
|
|
30882
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
|
|
30883
|
+
command.params['name'] = name unless name.nil?
|
|
30884
|
+
command.query['fields'] = fields unless fields.nil?
|
|
30885
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
30886
|
+
execute_or_queue_command(command, &block)
|
|
30887
|
+
end
|
|
30888
|
+
|
|
30889
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
|
30890
|
+
# to poll the operation result at intervals as recommended by the API service.
|
|
30891
|
+
# @param [String] name
|
|
30892
|
+
# The name of the operation resource.
|
|
30893
|
+
# @param [String] fields
|
|
30894
|
+
# Selector specifying which fields to include in a partial response.
|
|
30895
|
+
# @param [String] quota_user
|
|
30896
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
30897
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
30898
|
+
# @param [Google::Apis::RequestOptions] options
|
|
30899
|
+
# Request-specific options
|
|
30900
|
+
#
|
|
30901
|
+
# @yield [result, err] Result & error if block supplied
|
|
30902
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
|
|
30903
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
30904
|
+
#
|
|
30905
|
+
# @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
|
|
30906
|
+
#
|
|
30907
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
30908
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
30909
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
30910
|
+
def get_project_location_tensorboard_experiment_run_time_series_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
30911
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
30912
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
|
30913
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
|
30914
|
+
command.params['name'] = name unless name.nil?
|
|
30915
|
+
command.query['fields'] = fields unless fields.nil?
|
|
30916
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
30917
|
+
execute_or_queue_command(command, &block)
|
|
30918
|
+
end
|
|
30919
|
+
|
|
30920
|
+
# Lists operations that match the specified filter in the request. If the server
|
|
30921
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
|
30922
|
+
# @param [String] name
|
|
30923
|
+
# The name of the operation's parent resource.
|
|
30924
|
+
# @param [String] filter
|
|
30925
|
+
# The standard list filter.
|
|
30926
|
+
# @param [Fixnum] page_size
|
|
30927
|
+
# The standard list page size.
|
|
30928
|
+
# @param [String] page_token
|
|
30929
|
+
# The standard list page token.
|
|
30930
|
+
# @param [Boolean] return_partial_success
|
|
30931
|
+
# When set to `true`, operations that are reachable are returned as normal, and
|
|
30932
|
+
# those that are unreachable are returned in the ListOperationsResponse.
|
|
30933
|
+
# unreachable field. This can only be `true` when reading across collections.
|
|
30934
|
+
# For example, when `parent` is set to `"projects/example/locations/-"`. This
|
|
30935
|
+
# field is not supported by default and will result in an `UNIMPLEMENTED` error
|
|
30936
|
+
# if set unless explicitly documented otherwise in service or product specific
|
|
30937
|
+
# documentation.
|
|
30938
|
+
# @param [String] fields
|
|
30939
|
+
# Selector specifying which fields to include in a partial response.
|
|
30940
|
+
# @param [String] quota_user
|
|
30941
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
30942
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
30943
|
+
# @param [Google::Apis::RequestOptions] options
|
|
30944
|
+
# Request-specific options
|
|
30945
|
+
#
|
|
30946
|
+
# @yield [result, err] Result & error if block supplied
|
|
30947
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse] parsed result object
|
|
30948
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
30949
|
+
#
|
|
30950
|
+
# @return [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse]
|
|
30951
|
+
#
|
|
30952
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
30953
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
30954
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
30955
|
+
def list_project_location_tensorboard_experiment_run_time_series_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
30956
|
+
command = make_simple_command(:get, 'v1/{+name}/operations', options)
|
|
30957
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse::Representation
|
|
30958
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse
|
|
30959
|
+
command.params['name'] = name unless name.nil?
|
|
30960
|
+
command.query['filter'] = filter unless filter.nil?
|
|
30961
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
30962
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
30963
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
|
30964
|
+
command.query['fields'] = fields unless fields.nil?
|
|
30965
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
30966
|
+
execute_or_queue_command(command, &block)
|
|
30967
|
+
end
|
|
30968
|
+
|
|
30969
|
+
# Waits until the specified long-running operation is done or reaches at most a
|
|
30970
|
+
# specified timeout, returning the latest state. If the operation is already
|
|
30971
|
+
# done, the latest state is immediately returned. If the timeout specified is
|
|
30972
|
+
# greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If
|
|
30973
|
+
# the server does not support this method, it returns `google.rpc.Code.
|
|
30974
|
+
# UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return
|
|
30975
|
+
# the latest state before the specified timeout (including immediately), meaning
|
|
30976
|
+
# even an immediate response is no guarantee that the operation is done.
|
|
30977
|
+
# @param [String] name
|
|
30978
|
+
# The name of the operation resource to wait on.
|
|
30979
|
+
# @param [String] timeout
|
|
30980
|
+
# The maximum duration to wait before timing out. If left blank, the wait will
|
|
30981
|
+
# be at most the time permitted by the underlying HTTP/RPC protocol. If RPC
|
|
30982
|
+
# context deadline is also specified, the shorter one will be used.
|
|
30983
|
+
# @param [String] fields
|
|
30984
|
+
# Selector specifying which fields to include in a partial response.
|
|
30985
|
+
# @param [String] quota_user
|
|
30986
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
30987
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
30988
|
+
# @param [Google::Apis::RequestOptions] options
|
|
30989
|
+
# Request-specific options
|
|
30990
|
+
#
|
|
30991
|
+
# @yield [result, err] Result & error if block supplied
|
|
30992
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
|
|
29743
30993
|
# @yieldparam err [StandardError] error object if request failed
|
|
29744
30994
|
#
|
|
29745
|
-
# @return [Google::Apis::AiplatformV1::
|
|
30995
|
+
# @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
|
|
29746
30996
|
#
|
|
29747
30997
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
29748
30998
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
29749
30999
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
29750
|
-
def
|
|
29751
|
-
command = make_simple_command(:
|
|
29752
|
-
command.response_representation = Google::Apis::AiplatformV1::
|
|
29753
|
-
command.response_class = Google::Apis::AiplatformV1::
|
|
29754
|
-
command.params['
|
|
29755
|
-
command.query['
|
|
31000
|
+
def wait_project_location_tensorboard_experiment_run_time_series_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
31001
|
+
command = make_simple_command(:post, 'v1/{+name}:wait', options)
|
|
31002
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
|
31003
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
|
31004
|
+
command.params['name'] = name unless name.nil?
|
|
31005
|
+
command.query['timeout'] = timeout unless timeout.nil?
|
|
29756
31006
|
command.query['fields'] = fields unless fields.nil?
|
|
29757
31007
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
29758
31008
|
execute_or_queue_command(command, &block)
|
|
@@ -29785,7 +31035,7 @@ module Google
|
|
|
29785
31035
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
29786
31036
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
29787
31037
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
29788
|
-
def
|
|
31038
|
+
def cancel_project_location_tensorboard_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
29789
31039
|
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
|
29790
31040
|
command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
|
|
29791
31041
|
command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
|
|
@@ -29818,7 +31068,7 @@ module Google
|
|
|
29818
31068
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
29819
31069
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
29820
31070
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
29821
|
-
def
|
|
31071
|
+
def delete_project_location_tensorboard_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
29822
31072
|
command = make_simple_command(:delete, 'v1/{+name}', options)
|
|
29823
31073
|
command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
|
|
29824
31074
|
command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
|
|
@@ -29849,7 +31099,7 @@ module Google
|
|
|
29849
31099
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
29850
31100
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
29851
31101
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
29852
|
-
def
|
|
31102
|
+
def get_project_location_tensorboard_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
29853
31103
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
29854
31104
|
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
|
29855
31105
|
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
|
@@ -29894,7 +31144,7 @@ module Google
|
|
|
29894
31144
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
29895
31145
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
29896
31146
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
29897
|
-
def
|
|
31147
|
+
def list_project_location_tensorboard_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
29898
31148
|
command = make_simple_command(:get, 'v1/{+name}/operations', options)
|
|
29899
31149
|
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse::Representation
|
|
29900
31150
|
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse
|
|
@@ -29939,7 +31189,7 @@ module Google
|
|
|
29939
31189
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
29940
31190
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
29941
31191
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
29942
|
-
def
|
|
31192
|
+
def wait_project_location_tensorboard_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
29943
31193
|
command = make_simple_command(:post, 'v1/{+name}:wait', options)
|
|
29944
31194
|
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
|
29945
31195
|
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
|
@@ -29950,6 +31200,199 @@ module Google
|
|
|
29950
31200
|
execute_or_queue_command(command, &block)
|
|
29951
31201
|
end
|
|
29952
31202
|
|
|
31203
|
+
# Cancels a TrainingPipeline. Starts asynchronous cancellation on the
|
|
31204
|
+
# TrainingPipeline. The server makes a best effort to cancel the pipeline, but
|
|
31205
|
+
# success is not guaranteed. Clients can use PipelineService.GetTrainingPipeline
|
|
31206
|
+
# or other methods to check whether the cancellation succeeded or whether the
|
|
31207
|
+
# pipeline completed despite cancellation. On successful cancellation, the
|
|
31208
|
+
# TrainingPipeline is not deleted; instead it becomes a pipeline with a
|
|
31209
|
+
# TrainingPipeline.error value with a google.rpc.Status.code of 1, corresponding
|
|
31210
|
+
# to `Code.CANCELLED`, and TrainingPipeline.state is set to `CANCELLED`.
|
|
31211
|
+
# @param [String] name
|
|
31212
|
+
# Required. The name of the TrainingPipeline to cancel. Format: `projects/`
|
|
31213
|
+
# project`/locations/`location`/trainingPipelines/`training_pipeline``
|
|
31214
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CancelTrainingPipelineRequest] google_cloud_aiplatform_v1_cancel_training_pipeline_request_object
|
|
31215
|
+
# @param [String] fields
|
|
31216
|
+
# Selector specifying which fields to include in a partial response.
|
|
31217
|
+
# @param [String] quota_user
|
|
31218
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
31219
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
31220
|
+
# @param [Google::Apis::RequestOptions] options
|
|
31221
|
+
# Request-specific options
|
|
31222
|
+
#
|
|
31223
|
+
# @yield [result, err] Result & error if block supplied
|
|
31224
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleProtobufEmpty] parsed result object
|
|
31225
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
31226
|
+
#
|
|
31227
|
+
# @return [Google::Apis::AiplatformV1::GoogleProtobufEmpty]
|
|
31228
|
+
#
|
|
31229
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
31230
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
31231
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
31232
|
+
def cancel_project_location_training_pipeline(name, google_cloud_aiplatform_v1_cancel_training_pipeline_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
31233
|
+
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
|
31234
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CancelTrainingPipelineRequest::Representation
|
|
31235
|
+
command.request_object = google_cloud_aiplatform_v1_cancel_training_pipeline_request_object
|
|
31236
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
|
|
31237
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
|
|
31238
|
+
command.params['name'] = name unless name.nil?
|
|
31239
|
+
command.query['fields'] = fields unless fields.nil?
|
|
31240
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
31241
|
+
execute_or_queue_command(command, &block)
|
|
31242
|
+
end
|
|
31243
|
+
|
|
31244
|
+
# Creates a TrainingPipeline. A created TrainingPipeline right away will be
|
|
31245
|
+
# attempted to be run.
|
|
31246
|
+
# @param [String] parent
|
|
31247
|
+
# Required. The resource name of the Location to create the TrainingPipeline in.
|
|
31248
|
+
# Format: `projects/`project`/locations/`location``
|
|
31249
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1TrainingPipeline] google_cloud_aiplatform_v1_training_pipeline_object
|
|
31250
|
+
# @param [String] fields
|
|
31251
|
+
# Selector specifying which fields to include in a partial response.
|
|
31252
|
+
# @param [String] quota_user
|
|
31253
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
31254
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
31255
|
+
# @param [Google::Apis::RequestOptions] options
|
|
31256
|
+
# Request-specific options
|
|
31257
|
+
#
|
|
31258
|
+
# @yield [result, err] Result & error if block supplied
|
|
31259
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1TrainingPipeline] parsed result object
|
|
31260
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
31261
|
+
#
|
|
31262
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1TrainingPipeline]
|
|
31263
|
+
#
|
|
31264
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
31265
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
31266
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
31267
|
+
def create_project_location_training_pipeline(parent, google_cloud_aiplatform_v1_training_pipeline_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
31268
|
+
command = make_simple_command(:post, 'v1/{+parent}/trainingPipelines', options)
|
|
31269
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1TrainingPipeline::Representation
|
|
31270
|
+
command.request_object = google_cloud_aiplatform_v1_training_pipeline_object
|
|
31271
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1TrainingPipeline::Representation
|
|
31272
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1TrainingPipeline
|
|
31273
|
+
command.params['parent'] = parent unless parent.nil?
|
|
31274
|
+
command.query['fields'] = fields unless fields.nil?
|
|
31275
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
31276
|
+
execute_or_queue_command(command, &block)
|
|
31277
|
+
end
|
|
31278
|
+
|
|
31279
|
+
# Deletes a TrainingPipeline.
|
|
31280
|
+
# @param [String] name
|
|
31281
|
+
# Required. The name of the TrainingPipeline resource to be deleted. Format: `
|
|
31282
|
+
# projects/`project`/locations/`location`/trainingPipelines/`training_pipeline``
|
|
31283
|
+
# @param [String] fields
|
|
31284
|
+
# Selector specifying which fields to include in a partial response.
|
|
31285
|
+
# @param [String] quota_user
|
|
31286
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
31287
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
31288
|
+
# @param [Google::Apis::RequestOptions] options
|
|
31289
|
+
# Request-specific options
|
|
31290
|
+
#
|
|
31291
|
+
# @yield [result, err] Result & error if block supplied
|
|
31292
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
|
|
31293
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
31294
|
+
#
|
|
31295
|
+
# @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
|
|
31296
|
+
#
|
|
31297
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
31298
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
31299
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
31300
|
+
def delete_project_location_training_pipeline(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
31301
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
|
31302
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
|
31303
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
|
31304
|
+
command.params['name'] = name unless name.nil?
|
|
31305
|
+
command.query['fields'] = fields unless fields.nil?
|
|
31306
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
31307
|
+
execute_or_queue_command(command, &block)
|
|
31308
|
+
end
|
|
31309
|
+
|
|
31310
|
+
# Gets a TrainingPipeline.
|
|
31311
|
+
# @param [String] name
|
|
31312
|
+
# Required. The name of the TrainingPipeline resource. Format: `projects/`
|
|
31313
|
+
# project`/locations/`location`/trainingPipelines/`training_pipeline``
|
|
31314
|
+
# @param [String] fields
|
|
31315
|
+
# Selector specifying which fields to include in a partial response.
|
|
31316
|
+
# @param [String] quota_user
|
|
31317
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
31318
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
31319
|
+
# @param [Google::Apis::RequestOptions] options
|
|
31320
|
+
# Request-specific options
|
|
31321
|
+
#
|
|
31322
|
+
# @yield [result, err] Result & error if block supplied
|
|
31323
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1TrainingPipeline] parsed result object
|
|
31324
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
31325
|
+
#
|
|
31326
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1TrainingPipeline]
|
|
31327
|
+
#
|
|
31328
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
31329
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
31330
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
31331
|
+
def get_project_location_training_pipeline(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
31332
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
31333
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1TrainingPipeline::Representation
|
|
31334
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1TrainingPipeline
|
|
31335
|
+
command.params['name'] = name unless name.nil?
|
|
31336
|
+
command.query['fields'] = fields unless fields.nil?
|
|
31337
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
31338
|
+
execute_or_queue_command(command, &block)
|
|
31339
|
+
end
|
|
31340
|
+
|
|
31341
|
+
# Lists TrainingPipelines in a Location.
|
|
31342
|
+
# @param [String] parent
|
|
31343
|
+
# Required. The resource name of the Location to list the TrainingPipelines from.
|
|
31344
|
+
# Format: `projects/`project`/locations/`location``
|
|
31345
|
+
# @param [String] filter
|
|
31346
|
+
# The standard list filter. Supported fields: * `display_name` supports `=`, `!=`
|
|
31347
|
+
# comparisons, and `:` wildcard. * `state` supports `=`, `!=` comparisons. * `
|
|
31348
|
+
# training_task_definition` `=`, `!=` comparisons, and `:` wildcard. * `
|
|
31349
|
+
# create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. `create_time`
|
|
31350
|
+
# must be in RFC 3339 format. * `labels` supports general map functions that is:
|
|
31351
|
+
# `labels.key=value` - key:value equality `labels.key:* - key existence Some
|
|
31352
|
+
# examples of using the filter are: * `state="PIPELINE_STATE_SUCCEEDED" AND
|
|
31353
|
+
# display_name:"my_pipeline_*"` * `state!="PIPELINE_STATE_FAILED" OR
|
|
31354
|
+
# display_name="my_pipeline"` * `NOT display_name="my_pipeline"` * `create_time>"
|
|
31355
|
+
# 2021-05-18T00:00:00Z"` * `training_task_definition:"*
|
|
31356
|
+
# automl_text_classification*"`
|
|
31357
|
+
# @param [Fixnum] page_size
|
|
31358
|
+
# The standard list page size.
|
|
31359
|
+
# @param [String] page_token
|
|
31360
|
+
# The standard list page token. Typically obtained via
|
|
31361
|
+
# ListTrainingPipelinesResponse.next_page_token of the previous PipelineService.
|
|
31362
|
+
# ListTrainingPipelines call.
|
|
31363
|
+
# @param [String] read_mask
|
|
31364
|
+
# Mask specifying which fields to read.
|
|
31365
|
+
# @param [String] fields
|
|
31366
|
+
# Selector specifying which fields to include in a partial response.
|
|
31367
|
+
# @param [String] quota_user
|
|
31368
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
31369
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
31370
|
+
# @param [Google::Apis::RequestOptions] options
|
|
31371
|
+
# Request-specific options
|
|
31372
|
+
#
|
|
31373
|
+
# @yield [result, err] Result & error if block supplied
|
|
31374
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListTrainingPipelinesResponse] parsed result object
|
|
31375
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
31376
|
+
#
|
|
31377
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListTrainingPipelinesResponse]
|
|
31378
|
+
#
|
|
31379
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
31380
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
31381
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
31382
|
+
def list_project_location_training_pipelines(parent, filter: nil, page_size: nil, page_token: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
31383
|
+
command = make_simple_command(:get, 'v1/{+parent}/trainingPipelines', options)
|
|
31384
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListTrainingPipelinesResponse::Representation
|
|
31385
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListTrainingPipelinesResponse
|
|
31386
|
+
command.params['parent'] = parent unless parent.nil?
|
|
31387
|
+
command.query['filter'] = filter unless filter.nil?
|
|
31388
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
31389
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
31390
|
+
command.query['readMask'] = read_mask unless read_mask.nil?
|
|
31391
|
+
command.query['fields'] = fields unless fields.nil?
|
|
31392
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
31393
|
+
execute_or_queue_command(command, &block)
|
|
31394
|
+
end
|
|
31395
|
+
|
|
29953
31396
|
# Starts asynchronous cancellation on a long-running operation. The server makes
|
|
29954
31397
|
# a best effort to cancel the operation, but success is not guaranteed. If the
|
|
29955
31398
|
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
|
@@ -29977,7 +31420,7 @@ module Google
|
|
|
29977
31420
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
29978
31421
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
29979
31422
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
29980
|
-
def
|
|
31423
|
+
def cancel_project_location_training_pipeline_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
29981
31424
|
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
|
29982
31425
|
command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
|
|
29983
31426
|
command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
|
|
@@ -30010,7 +31453,7 @@ module Google
|
|
|
30010
31453
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
30011
31454
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
30012
31455
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
30013
|
-
def
|
|
31456
|
+
def delete_project_location_training_pipeline_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
30014
31457
|
command = make_simple_command(:delete, 'v1/{+name}', options)
|
|
30015
31458
|
command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
|
|
30016
31459
|
command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
|
|
@@ -30041,7 +31484,7 @@ module Google
|
|
|
30041
31484
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
30042
31485
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
30043
31486
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
30044
|
-
def
|
|
31487
|
+
def get_project_location_training_pipeline_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
30045
31488
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
30046
31489
|
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
|
30047
31490
|
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
|
@@ -30086,7 +31529,7 @@ module Google
|
|
|
30086
31529
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
30087
31530
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
30088
31531
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
30089
|
-
def
|
|
31532
|
+
def list_project_location_training_pipeline_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
30090
31533
|
command = make_simple_command(:get, 'v1/{+name}/operations', options)
|
|
30091
31534
|
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse::Representation
|
|
30092
31535
|
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse
|
|
@@ -30131,7 +31574,7 @@ module Google
|
|
|
30131
31574
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
30132
31575
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
30133
31576
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
30134
|
-
def
|
|
31577
|
+
def wait_project_location_training_pipeline_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
30135
31578
|
command = make_simple_command(:post, 'v1/{+name}:wait', options)
|
|
30136
31579
|
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
|
30137
31580
|
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
|
@@ -30142,18 +31585,18 @@ module Google
|
|
|
30142
31585
|
execute_or_queue_command(command, &block)
|
|
30143
31586
|
end
|
|
30144
31587
|
|
|
30145
|
-
# Cancels a
|
|
30146
|
-
#
|
|
30147
|
-
#
|
|
30148
|
-
#
|
|
30149
|
-
#
|
|
30150
|
-
#
|
|
30151
|
-
#
|
|
30152
|
-
#
|
|
31588
|
+
# Cancels a TuningJob. Starts asynchronous cancellation on the TuningJob. The
|
|
31589
|
+
# server makes a best effort to cancel the job, but success is not guaranteed.
|
|
31590
|
+
# Clients can use GenAiTuningService.GetTuningJob or other methods to check
|
|
31591
|
+
# whether the cancellation succeeded or whether the job completed despite
|
|
31592
|
+
# cancellation. On successful cancellation, the TuningJob is not deleted;
|
|
31593
|
+
# instead it becomes a job with a TuningJob.error value with a google.rpc.Status.
|
|
31594
|
+
# code of 1, corresponding to `Code.CANCELLED`, and TuningJob.state is set to `
|
|
31595
|
+
# CANCELLED`.
|
|
30153
31596
|
# @param [String] name
|
|
30154
|
-
# Required. The name of the
|
|
30155
|
-
#
|
|
30156
|
-
# @param [Google::Apis::AiplatformV1::
|
|
31597
|
+
# Required. The name of the TuningJob to cancel. Format: `projects/`project`/
|
|
31598
|
+
# locations/`location`/tuningJobs/`tuning_job``
|
|
31599
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CancelTuningJobRequest] google_cloud_aiplatform_v1_cancel_tuning_job_request_object
|
|
30157
31600
|
# @param [String] fields
|
|
30158
31601
|
# Selector specifying which fields to include in a partial response.
|
|
30159
31602
|
# @param [String] quota_user
|
|
@@ -30171,10 +31614,10 @@ module Google
|
|
|
30171
31614
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
30172
31615
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
30173
31616
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
30174
|
-
def
|
|
31617
|
+
def cancel_project_location_tuning_job(name, google_cloud_aiplatform_v1_cancel_tuning_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
30175
31618
|
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
|
30176
|
-
command.request_representation = Google::Apis::AiplatformV1::
|
|
30177
|
-
command.request_object =
|
|
31619
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CancelTuningJobRequest::Representation
|
|
31620
|
+
command.request_object = google_cloud_aiplatform_v1_cancel_tuning_job_request_object
|
|
30178
31621
|
command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
|
|
30179
31622
|
command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
|
|
30180
31623
|
command.params['name'] = name unless name.nil?
|
|
@@ -30183,12 +31626,12 @@ module Google
|
|
|
30183
31626
|
execute_or_queue_command(command, &block)
|
|
30184
31627
|
end
|
|
30185
31628
|
|
|
30186
|
-
# Creates a
|
|
30187
|
-
#
|
|
31629
|
+
# Creates a TuningJob. A created TuningJob right away will be attempted to be
|
|
31630
|
+
# run.
|
|
30188
31631
|
# @param [String] parent
|
|
30189
|
-
# Required. The resource name of the Location to create the
|
|
30190
|
-
#
|
|
30191
|
-
# @param [Google::Apis::AiplatformV1::
|
|
31632
|
+
# Required. The resource name of the Location to create the TuningJob in. Format:
|
|
31633
|
+
# `projects/`project`/locations/`location``
|
|
31634
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1TuningJob] google_cloud_aiplatform_v1_tuning_job_object
|
|
30192
31635
|
# @param [String] fields
|
|
30193
31636
|
# Selector specifying which fields to include in a partial response.
|
|
30194
31637
|
# @param [String] quota_user
|
|
@@ -30198,30 +31641,30 @@ module Google
|
|
|
30198
31641
|
# Request-specific options
|
|
30199
31642
|
#
|
|
30200
31643
|
# @yield [result, err] Result & error if block supplied
|
|
30201
|
-
# @yieldparam result [Google::Apis::AiplatformV1::
|
|
31644
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1TuningJob] parsed result object
|
|
30202
31645
|
# @yieldparam err [StandardError] error object if request failed
|
|
30203
31646
|
#
|
|
30204
|
-
# @return [Google::Apis::AiplatformV1::
|
|
31647
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1TuningJob]
|
|
30205
31648
|
#
|
|
30206
31649
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
30207
31650
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
30208
31651
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
30209
|
-
def
|
|
30210
|
-
command = make_simple_command(:post, 'v1/{+parent}/
|
|
30211
|
-
command.request_representation = Google::Apis::AiplatformV1::
|
|
30212
|
-
command.request_object =
|
|
30213
|
-
command.response_representation = Google::Apis::AiplatformV1::
|
|
30214
|
-
command.response_class = Google::Apis::AiplatformV1::
|
|
31652
|
+
def create_project_location_tuning_job(parent, google_cloud_aiplatform_v1_tuning_job_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
31653
|
+
command = make_simple_command(:post, 'v1/{+parent}/tuningJobs', options)
|
|
31654
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1TuningJob::Representation
|
|
31655
|
+
command.request_object = google_cloud_aiplatform_v1_tuning_job_object
|
|
31656
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1TuningJob::Representation
|
|
31657
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1TuningJob
|
|
30215
31658
|
command.params['parent'] = parent unless parent.nil?
|
|
30216
31659
|
command.query['fields'] = fields unless fields.nil?
|
|
30217
31660
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
30218
31661
|
execute_or_queue_command(command, &block)
|
|
30219
31662
|
end
|
|
30220
31663
|
|
|
30221
|
-
#
|
|
31664
|
+
# Gets a TuningJob.
|
|
30222
31665
|
# @param [String] name
|
|
30223
|
-
# Required. The name of the
|
|
30224
|
-
#
|
|
31666
|
+
# Required. The name of the TuningJob resource. Format: `projects/`project`/
|
|
31667
|
+
# locations/`location`/tuningJobs/`tuning_job``
|
|
30225
31668
|
# @param [String] fields
|
|
30226
31669
|
# Selector specifying which fields to include in a partial response.
|
|
30227
31670
|
# @param [String] quota_user
|
|
@@ -30231,28 +31674,36 @@ module Google
|
|
|
30231
31674
|
# Request-specific options
|
|
30232
31675
|
#
|
|
30233
31676
|
# @yield [result, err] Result & error if block supplied
|
|
30234
|
-
# @yieldparam result [Google::Apis::AiplatformV1::
|
|
31677
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1TuningJob] parsed result object
|
|
30235
31678
|
# @yieldparam err [StandardError] error object if request failed
|
|
30236
31679
|
#
|
|
30237
|
-
# @return [Google::Apis::AiplatformV1::
|
|
31680
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1TuningJob]
|
|
30238
31681
|
#
|
|
30239
31682
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
30240
31683
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
30241
31684
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
30242
|
-
def
|
|
30243
|
-
command = make_simple_command(:
|
|
30244
|
-
command.response_representation = Google::Apis::AiplatformV1::
|
|
30245
|
-
command.response_class = Google::Apis::AiplatformV1::
|
|
31685
|
+
def get_project_location_tuning_job(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
31686
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
31687
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1TuningJob::Representation
|
|
31688
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1TuningJob
|
|
30246
31689
|
command.params['name'] = name unless name.nil?
|
|
30247
31690
|
command.query['fields'] = fields unless fields.nil?
|
|
30248
31691
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
30249
31692
|
execute_or_queue_command(command, &block)
|
|
30250
31693
|
end
|
|
30251
31694
|
|
|
30252
|
-
#
|
|
30253
|
-
# @param [String]
|
|
30254
|
-
# Required. The name of the
|
|
30255
|
-
# project`/locations/`location
|
|
31695
|
+
# Lists TuningJobs in a Location.
|
|
31696
|
+
# @param [String] parent
|
|
31697
|
+
# Required. The resource name of the Location to list the TuningJobs from.
|
|
31698
|
+
# Format: `projects/`project`/locations/`location``
|
|
31699
|
+
# @param [String] filter
|
|
31700
|
+
# Optional. The standard list filter.
|
|
31701
|
+
# @param [Fixnum] page_size
|
|
31702
|
+
# Optional. The standard list page size.
|
|
31703
|
+
# @param [String] page_token
|
|
31704
|
+
# Optional. The standard list page token. Typically obtained via
|
|
31705
|
+
# ListTuningJobsResponse.next_page_token of the previous GenAiTuningService.
|
|
31706
|
+
# ListTuningJob][] call.
|
|
30256
31707
|
# @param [String] fields
|
|
30257
31708
|
# Selector specifying which fields to include in a partial response.
|
|
30258
31709
|
# @param [String] quota_user
|
|
@@ -30262,48 +31713,32 @@ module Google
|
|
|
30262
31713
|
# Request-specific options
|
|
30263
31714
|
#
|
|
30264
31715
|
# @yield [result, err] Result & error if block supplied
|
|
30265
|
-
# @yieldparam result [Google::Apis::AiplatformV1::
|
|
31716
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListTuningJobsResponse] parsed result object
|
|
30266
31717
|
# @yieldparam err [StandardError] error object if request failed
|
|
30267
31718
|
#
|
|
30268
|
-
# @return [Google::Apis::AiplatformV1::
|
|
31719
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListTuningJobsResponse]
|
|
30269
31720
|
#
|
|
30270
31721
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
30271
31722
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
30272
31723
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
30273
|
-
def
|
|
30274
|
-
command = make_simple_command(:get, 'v1/{+
|
|
30275
|
-
command.response_representation = Google::Apis::AiplatformV1::
|
|
30276
|
-
command.response_class = Google::Apis::AiplatformV1::
|
|
30277
|
-
command.params['
|
|
31724
|
+
def list_project_location_tuning_jobs(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
31725
|
+
command = make_simple_command(:get, 'v1/{+parent}/tuningJobs', options)
|
|
31726
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListTuningJobsResponse::Representation
|
|
31727
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListTuningJobsResponse
|
|
31728
|
+
command.params['parent'] = parent unless parent.nil?
|
|
31729
|
+
command.query['filter'] = filter unless filter.nil?
|
|
31730
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
31731
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
30278
31732
|
command.query['fields'] = fields unless fields.nil?
|
|
30279
31733
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
30280
31734
|
execute_or_queue_command(command, &block)
|
|
30281
31735
|
end
|
|
30282
31736
|
|
|
30283
|
-
#
|
|
31737
|
+
# Rebase a TunedModel.
|
|
30284
31738
|
# @param [String] parent
|
|
30285
|
-
# Required. The resource name of the Location to
|
|
31739
|
+
# Required. The resource name of the Location into which to rebase the Model.
|
|
30286
31740
|
# Format: `projects/`project`/locations/`location``
|
|
30287
|
-
# @param [
|
|
30288
|
-
# The standard list filter. Supported fields: * `display_name` supports `=`, `!=`
|
|
30289
|
-
# comparisons, and `:` wildcard. * `state` supports `=`, `!=` comparisons. * `
|
|
30290
|
-
# training_task_definition` `=`, `!=` comparisons, and `:` wildcard. * `
|
|
30291
|
-
# create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. `create_time`
|
|
30292
|
-
# must be in RFC 3339 format. * `labels` supports general map functions that is:
|
|
30293
|
-
# `labels.key=value` - key:value equality `labels.key:* - key existence Some
|
|
30294
|
-
# examples of using the filter are: * `state="PIPELINE_STATE_SUCCEEDED" AND
|
|
30295
|
-
# display_name:"my_pipeline_*"` * `state!="PIPELINE_STATE_FAILED" OR
|
|
30296
|
-
# display_name="my_pipeline"` * `NOT display_name="my_pipeline"` * `create_time>"
|
|
30297
|
-
# 2021-05-18T00:00:00Z"` * `training_task_definition:"*
|
|
30298
|
-
# automl_text_classification*"`
|
|
30299
|
-
# @param [Fixnum] page_size
|
|
30300
|
-
# The standard list page size.
|
|
30301
|
-
# @param [String] page_token
|
|
30302
|
-
# The standard list page token. Typically obtained via
|
|
30303
|
-
# ListTrainingPipelinesResponse.next_page_token of the previous PipelineService.
|
|
30304
|
-
# ListTrainingPipelines call.
|
|
30305
|
-
# @param [String] read_mask
|
|
30306
|
-
# Mask specifying which fields to read.
|
|
31741
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RebaseTunedModelRequest] google_cloud_aiplatform_v1_rebase_tuned_model_request_object
|
|
30307
31742
|
# @param [String] fields
|
|
30308
31743
|
# Selector specifying which fields to include in a partial response.
|
|
30309
31744
|
# @param [String] quota_user
|
|
@@ -30313,23 +31748,21 @@ module Google
|
|
|
30313
31748
|
# Request-specific options
|
|
30314
31749
|
#
|
|
30315
31750
|
# @yield [result, err] Result & error if block supplied
|
|
30316
|
-
# @yieldparam result [Google::Apis::AiplatformV1::
|
|
31751
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
|
|
30317
31752
|
# @yieldparam err [StandardError] error object if request failed
|
|
30318
31753
|
#
|
|
30319
|
-
# @return [Google::Apis::AiplatformV1::
|
|
31754
|
+
# @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
|
|
30320
31755
|
#
|
|
30321
31756
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
30322
31757
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
30323
31758
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
30324
|
-
def
|
|
30325
|
-
command = make_simple_command(:
|
|
30326
|
-
command.
|
|
30327
|
-
command.
|
|
31759
|
+
def rebase_project_location_tuning_job_tuned_model(parent, google_cloud_aiplatform_v1_rebase_tuned_model_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
31760
|
+
command = make_simple_command(:post, 'v1/{+parent}/tuningJobs:rebaseTunedModel', options)
|
|
31761
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RebaseTunedModelRequest::Representation
|
|
31762
|
+
command.request_object = google_cloud_aiplatform_v1_rebase_tuned_model_request_object
|
|
31763
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
|
31764
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
|
30328
31765
|
command.params['parent'] = parent unless parent.nil?
|
|
30329
|
-
command.query['filter'] = filter unless filter.nil?
|
|
30330
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
|
30331
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
|
30332
|
-
command.query['readMask'] = read_mask unless read_mask.nil?
|
|
30333
31766
|
command.query['fields'] = fields unless fields.nil?
|
|
30334
31767
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
30335
31768
|
execute_or_queue_command(command, &block)
|
|
@@ -30362,7 +31795,7 @@ module Google
|
|
|
30362
31795
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
30363
31796
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
30364
31797
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
30365
|
-
def
|
|
31798
|
+
def cancel_project_location_tuning_job_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
30366
31799
|
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
|
30367
31800
|
command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
|
|
30368
31801
|
command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
|
|
@@ -30395,7 +31828,7 @@ module Google
|
|
|
30395
31828
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
30396
31829
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
30397
31830
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
30398
|
-
def
|
|
31831
|
+
def delete_project_location_tuning_job_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
30399
31832
|
command = make_simple_command(:delete, 'v1/{+name}', options)
|
|
30400
31833
|
command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
|
|
30401
31834
|
command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
|
|
@@ -30426,7 +31859,7 @@ module Google
|
|
|
30426
31859
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
30427
31860
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
30428
31861
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
30429
|
-
def
|
|
31862
|
+
def get_project_location_tuning_job_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
30430
31863
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
30431
31864
|
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
|
30432
31865
|
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
|
@@ -30471,7 +31904,7 @@ module Google
|
|
|
30471
31904
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
30472
31905
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
30473
31906
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
30474
|
-
def
|
|
31907
|
+
def list_project_location_tuning_job_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
30475
31908
|
command = make_simple_command(:get, 'v1/{+name}/operations', options)
|
|
30476
31909
|
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse::Representation
|
|
30477
31910
|
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse
|
|
@@ -30485,20 +31918,80 @@ module Google
|
|
|
30485
31918
|
execute_or_queue_command(command, &block)
|
|
30486
31919
|
end
|
|
30487
31920
|
|
|
30488
|
-
#
|
|
30489
|
-
#
|
|
30490
|
-
#
|
|
30491
|
-
#
|
|
30492
|
-
#
|
|
30493
|
-
#
|
|
30494
|
-
#
|
|
30495
|
-
#
|
|
30496
|
-
#
|
|
30497
|
-
#
|
|
30498
|
-
# @param [
|
|
30499
|
-
#
|
|
30500
|
-
#
|
|
30501
|
-
#
|
|
31921
|
+
# Return a list of tokens based on the input text.
|
|
31922
|
+
# @param [String] endpoint
|
|
31923
|
+
# Required. The name of the Endpoint requested to get lists of tokens and token
|
|
31924
|
+
# ids.
|
|
31925
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ComputeTokensRequest] google_cloud_aiplatform_v1_compute_tokens_request_object
|
|
31926
|
+
# @param [String] fields
|
|
31927
|
+
# Selector specifying which fields to include in a partial response.
|
|
31928
|
+
# @param [String] quota_user
|
|
31929
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
31930
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
31931
|
+
# @param [Google::Apis::RequestOptions] options
|
|
31932
|
+
# Request-specific options
|
|
31933
|
+
#
|
|
31934
|
+
# @yield [result, err] Result & error if block supplied
|
|
31935
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ComputeTokensResponse] parsed result object
|
|
31936
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
31937
|
+
#
|
|
31938
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ComputeTokensResponse]
|
|
31939
|
+
#
|
|
31940
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
31941
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
31942
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
31943
|
+
def compute_publisher_model_tokens(endpoint, google_cloud_aiplatform_v1_compute_tokens_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
31944
|
+
command = make_simple_command(:post, 'v1/{+endpoint}:computeTokens', options)
|
|
31945
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ComputeTokensRequest::Representation
|
|
31946
|
+
command.request_object = google_cloud_aiplatform_v1_compute_tokens_request_object
|
|
31947
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ComputeTokensResponse::Representation
|
|
31948
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ComputeTokensResponse
|
|
31949
|
+
command.params['endpoint'] = endpoint unless endpoint.nil?
|
|
31950
|
+
command.query['fields'] = fields unless fields.nil?
|
|
31951
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
31952
|
+
execute_or_queue_command(command, &block)
|
|
31953
|
+
end
|
|
31954
|
+
|
|
31955
|
+
# Perform a token counting.
|
|
31956
|
+
# @param [String] endpoint
|
|
31957
|
+
# Required. The name of the Endpoint requested to perform token counting. Format:
|
|
31958
|
+
# `projects/`project`/locations/`location`/endpoints/`endpoint``
|
|
31959
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CountTokensRequest] google_cloud_aiplatform_v1_count_tokens_request_object
|
|
31960
|
+
# @param [String] fields
|
|
31961
|
+
# Selector specifying which fields to include in a partial response.
|
|
31962
|
+
# @param [String] quota_user
|
|
31963
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
31964
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
31965
|
+
# @param [Google::Apis::RequestOptions] options
|
|
31966
|
+
# Request-specific options
|
|
31967
|
+
#
|
|
31968
|
+
# @yield [result, err] Result & error if block supplied
|
|
31969
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CountTokensResponse] parsed result object
|
|
31970
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
31971
|
+
#
|
|
31972
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CountTokensResponse]
|
|
31973
|
+
#
|
|
31974
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
31975
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
31976
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
31977
|
+
def count_publisher_model_tokens(endpoint, google_cloud_aiplatform_v1_count_tokens_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
31978
|
+
command = make_simple_command(:post, 'v1/{+endpoint}:countTokens', options)
|
|
31979
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CountTokensRequest::Representation
|
|
31980
|
+
command.request_object = google_cloud_aiplatform_v1_count_tokens_request_object
|
|
31981
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CountTokensResponse::Representation
|
|
31982
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CountTokensResponse
|
|
31983
|
+
command.params['endpoint'] = endpoint unless endpoint.nil?
|
|
31984
|
+
command.query['fields'] = fields unless fields.nil?
|
|
31985
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
31986
|
+
execute_or_queue_command(command, &block)
|
|
31987
|
+
end
|
|
31988
|
+
|
|
31989
|
+
# Fetch an asynchronous online prediction operation.
|
|
31990
|
+
# @param [String] endpoint
|
|
31991
|
+
# Required. The name of the Endpoint requested to serve the prediction. Format: `
|
|
31992
|
+
# projects/`project`/locations/`location`/endpoints/`endpoint`` or `projects/`
|
|
31993
|
+
# project`/locations/`location`/publishers/`publisher`/models/`model``
|
|
31994
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FetchPredictOperationRequest] google_cloud_aiplatform_v1_fetch_predict_operation_request_object
|
|
30502
31995
|
# @param [String] fields
|
|
30503
31996
|
# Selector specifying which fields to include in a partial response.
|
|
30504
31997
|
# @param [String] quota_user
|
|
@@ -30516,29 +32009,25 @@ module Google
|
|
|
30516
32009
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
30517
32010
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
30518
32011
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
30519
|
-
def
|
|
30520
|
-
command = make_simple_command(:post, 'v1/{+
|
|
32012
|
+
def fetch_publisher_model_predict_operation(endpoint, google_cloud_aiplatform_v1_fetch_predict_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
32013
|
+
command = make_simple_command(:post, 'v1/{+endpoint}:fetchPredictOperation', options)
|
|
32014
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FetchPredictOperationRequest::Representation
|
|
32015
|
+
command.request_object = google_cloud_aiplatform_v1_fetch_predict_operation_request_object
|
|
30521
32016
|
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
|
30522
32017
|
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
|
30523
|
-
command.params['
|
|
30524
|
-
command.query['timeout'] = timeout unless timeout.nil?
|
|
32018
|
+
command.params['endpoint'] = endpoint unless endpoint.nil?
|
|
30525
32019
|
command.query['fields'] = fields unless fields.nil?
|
|
30526
32020
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
30527
32021
|
execute_or_queue_command(command, &block)
|
|
30528
32022
|
end
|
|
30529
32023
|
|
|
30530
|
-
#
|
|
30531
|
-
#
|
|
30532
|
-
#
|
|
30533
|
-
#
|
|
30534
|
-
#
|
|
30535
|
-
#
|
|
30536
|
-
#
|
|
30537
|
-
# CANCELLED`.
|
|
30538
|
-
# @param [String] name
|
|
30539
|
-
# Required. The name of the TuningJob to cancel. Format: `projects/`project`/
|
|
30540
|
-
# locations/`location`/tuningJobs/`tuning_job``
|
|
30541
|
-
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CancelTuningJobRequest] google_cloud_aiplatform_v1_cancel_tuning_job_request_object
|
|
32024
|
+
# Generate content with multimodal inputs.
|
|
32025
|
+
# @param [String] model
|
|
32026
|
+
# Required. The fully qualified name of the publisher model or tuned model
|
|
32027
|
+
# endpoint to use. Publisher model format: `projects/`project`/locations/`
|
|
32028
|
+
# location`/publishers/*/models/*` Tuned model endpoint format: `projects/`
|
|
32029
|
+
# project`/locations/`location`/endpoints/`endpoint``
|
|
32030
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentRequest] google_cloud_aiplatform_v1_generate_content_request_object
|
|
30542
32031
|
# @param [String] fields
|
|
30543
32032
|
# Selector specifying which fields to include in a partial response.
|
|
30544
32033
|
# @param [String] quota_user
|
|
@@ -30548,32 +32037,40 @@ module Google
|
|
|
30548
32037
|
# Request-specific options
|
|
30549
32038
|
#
|
|
30550
32039
|
# @yield [result, err] Result & error if block supplied
|
|
30551
|
-
# @yieldparam result [Google::Apis::AiplatformV1::
|
|
32040
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse] parsed result object
|
|
30552
32041
|
# @yieldparam err [StandardError] error object if request failed
|
|
30553
32042
|
#
|
|
30554
|
-
# @return [Google::Apis::AiplatformV1::
|
|
32043
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse]
|
|
30555
32044
|
#
|
|
30556
32045
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
30557
32046
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
30558
32047
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
30559
|
-
def
|
|
30560
|
-
command = make_simple_command(:post, 'v1/{+
|
|
30561
|
-
command.request_representation = Google::Apis::AiplatformV1::
|
|
30562
|
-
command.request_object =
|
|
30563
|
-
command.response_representation = Google::Apis::AiplatformV1::
|
|
30564
|
-
command.response_class = Google::Apis::AiplatformV1::
|
|
30565
|
-
command.params['
|
|
32048
|
+
def generate_publisher_model_content(model, google_cloud_aiplatform_v1_generate_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
32049
|
+
command = make_simple_command(:post, 'v1/{+model}:generateContent', options)
|
|
32050
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentRequest::Representation
|
|
32051
|
+
command.request_object = google_cloud_aiplatform_v1_generate_content_request_object
|
|
32052
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse::Representation
|
|
32053
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse
|
|
32054
|
+
command.params['model'] = model unless model.nil?
|
|
30566
32055
|
command.query['fields'] = fields unless fields.nil?
|
|
30567
32056
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
30568
32057
|
execute_or_queue_command(command, &block)
|
|
30569
32058
|
end
|
|
30570
32059
|
|
|
30571
|
-
#
|
|
30572
|
-
#
|
|
30573
|
-
#
|
|
30574
|
-
#
|
|
30575
|
-
#
|
|
30576
|
-
#
|
|
32060
|
+
# Gets a Model Garden publisher model.
|
|
32061
|
+
# @param [String] name
|
|
32062
|
+
# Required. The name of the PublisherModel resource. Format: `publishers/`
|
|
32063
|
+
# publisher`/models/`publisher_model``
|
|
32064
|
+
# @param [String] hugging_face_token
|
|
32065
|
+
# Optional. Token used to access Hugging Face gated models.
|
|
32066
|
+
# @param [Boolean] is_hugging_face_model
|
|
32067
|
+
# Optional. Boolean indicates whether the requested model is a Hugging Face
|
|
32068
|
+
# model.
|
|
32069
|
+
# @param [String] language_code
|
|
32070
|
+
# Optional. The IETF BCP-47 language code representing the language in which the
|
|
32071
|
+
# publisher model's text information should be written in.
|
|
32072
|
+
# @param [String] view
|
|
32073
|
+
# Optional. PublisherModel view specifying which fields to read.
|
|
30577
32074
|
# @param [String] fields
|
|
30578
32075
|
# Selector specifying which fields to include in a partial response.
|
|
30579
32076
|
# @param [String] quota_user
|
|
@@ -30583,30 +32080,33 @@ module Google
|
|
|
30583
32080
|
# Request-specific options
|
|
30584
32081
|
#
|
|
30585
32082
|
# @yield [result, err] Result & error if block supplied
|
|
30586
|
-
# @yieldparam result [Google::Apis::AiplatformV1::
|
|
32083
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PublisherModel] parsed result object
|
|
30587
32084
|
# @yieldparam err [StandardError] error object if request failed
|
|
30588
32085
|
#
|
|
30589
|
-
# @return [Google::Apis::AiplatformV1::
|
|
32086
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PublisherModel]
|
|
30590
32087
|
#
|
|
30591
32088
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
30592
32089
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
30593
32090
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
30594
|
-
def
|
|
30595
|
-
command = make_simple_command(:
|
|
30596
|
-
command.
|
|
30597
|
-
command.
|
|
30598
|
-
command.
|
|
30599
|
-
command.
|
|
30600
|
-
command.
|
|
32091
|
+
def get_publisher_model(name, hugging_face_token: nil, is_hugging_face_model: nil, language_code: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
32092
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
32093
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PublisherModel::Representation
|
|
32094
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PublisherModel
|
|
32095
|
+
command.params['name'] = name unless name.nil?
|
|
32096
|
+
command.query['huggingFaceToken'] = hugging_face_token unless hugging_face_token.nil?
|
|
32097
|
+
command.query['isHuggingFaceModel'] = is_hugging_face_model unless is_hugging_face_model.nil?
|
|
32098
|
+
command.query['languageCode'] = language_code unless language_code.nil?
|
|
32099
|
+
command.query['view'] = view unless view.nil?
|
|
30601
32100
|
command.query['fields'] = fields unless fields.nil?
|
|
30602
32101
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
30603
32102
|
execute_or_queue_command(command, &block)
|
|
30604
32103
|
end
|
|
30605
32104
|
|
|
30606
|
-
#
|
|
30607
|
-
# @param [String]
|
|
30608
|
-
# Required. The name of the
|
|
30609
|
-
# locations/`location`/
|
|
32105
|
+
# Perform an online prediction.
|
|
32106
|
+
# @param [String] endpoint
|
|
32107
|
+
# Required. The name of the Endpoint requested to serve the prediction. Format: `
|
|
32108
|
+
# projects/`project`/locations/`location`/endpoints/`endpoint``
|
|
32109
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PredictRequest] google_cloud_aiplatform_v1_predict_request_object
|
|
30610
32110
|
# @param [String] fields
|
|
30611
32111
|
# Selector specifying which fields to include in a partial response.
|
|
30612
32112
|
# @param [String] quota_user
|
|
@@ -30616,36 +32116,32 @@ module Google
|
|
|
30616
32116
|
# Request-specific options
|
|
30617
32117
|
#
|
|
30618
32118
|
# @yield [result, err] Result & error if block supplied
|
|
30619
|
-
# @yieldparam result [Google::Apis::AiplatformV1::
|
|
32119
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PredictResponse] parsed result object
|
|
30620
32120
|
# @yieldparam err [StandardError] error object if request failed
|
|
30621
32121
|
#
|
|
30622
|
-
# @return [Google::Apis::AiplatformV1::
|
|
32122
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PredictResponse]
|
|
30623
32123
|
#
|
|
30624
32124
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
30625
32125
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
30626
32126
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
30627
|
-
def
|
|
30628
|
-
command = make_simple_command(:
|
|
30629
|
-
command.
|
|
30630
|
-
command.
|
|
30631
|
-
command.
|
|
32127
|
+
def predict_publisher_model(endpoint, google_cloud_aiplatform_v1_predict_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
32128
|
+
command = make_simple_command(:post, 'v1/{+endpoint}:predict', options)
|
|
32129
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PredictRequest::Representation
|
|
32130
|
+
command.request_object = google_cloud_aiplatform_v1_predict_request_object
|
|
32131
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PredictResponse::Representation
|
|
32132
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PredictResponse
|
|
32133
|
+
command.params['endpoint'] = endpoint unless endpoint.nil?
|
|
30632
32134
|
command.query['fields'] = fields unless fields.nil?
|
|
30633
32135
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
30634
32136
|
execute_or_queue_command(command, &block)
|
|
30635
32137
|
end
|
|
30636
32138
|
|
|
30637
|
-
#
|
|
30638
|
-
# @param [String]
|
|
30639
|
-
# Required. The
|
|
30640
|
-
#
|
|
30641
|
-
#
|
|
30642
|
-
#
|
|
30643
|
-
# @param [Fixnum] page_size
|
|
30644
|
-
# Optional. The standard list page size.
|
|
30645
|
-
# @param [String] page_token
|
|
30646
|
-
# Optional. The standard list page token. Typically obtained via
|
|
30647
|
-
# ListTuningJobsResponse.next_page_token of the previous GenAiTuningService.
|
|
30648
|
-
# ListTuningJob][] call.
|
|
32139
|
+
#
|
|
32140
|
+
# @param [String] endpoint
|
|
32141
|
+
# Required. The name of the Endpoint requested to serve the prediction. Format: `
|
|
32142
|
+
# projects/`project`/locations/`location`/endpoints/`endpoint`` or `projects/`
|
|
32143
|
+
# project`/locations/`location`/publishers/`publisher`/models/`model``
|
|
32144
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PredictLongRunningRequest] google_cloud_aiplatform_v1_predict_long_running_request_object
|
|
30649
32145
|
# @param [String] fields
|
|
30650
32146
|
# Selector specifying which fields to include in a partial response.
|
|
30651
32147
|
# @param [String] quota_user
|
|
@@ -30655,32 +32151,33 @@ module Google
|
|
|
30655
32151
|
# Request-specific options
|
|
30656
32152
|
#
|
|
30657
32153
|
# @yield [result, err] Result & error if block supplied
|
|
30658
|
-
# @yieldparam result [Google::Apis::AiplatformV1::
|
|
32154
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
|
|
30659
32155
|
# @yieldparam err [StandardError] error object if request failed
|
|
30660
32156
|
#
|
|
30661
|
-
# @return [Google::Apis::AiplatformV1::
|
|
32157
|
+
# @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
|
|
30662
32158
|
#
|
|
30663
32159
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
30664
32160
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
30665
32161
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
30666
|
-
def
|
|
30667
|
-
command = make_simple_command(:
|
|
30668
|
-
command.
|
|
30669
|
-
command.
|
|
30670
|
-
command.
|
|
30671
|
-
command.
|
|
30672
|
-
command.
|
|
30673
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
|
32162
|
+
def predict_publisher_model_long_running(endpoint, google_cloud_aiplatform_v1_predict_long_running_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
32163
|
+
command = make_simple_command(:post, 'v1/{+endpoint}:predictLongRunning', options)
|
|
32164
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PredictLongRunningRequest::Representation
|
|
32165
|
+
command.request_object = google_cloud_aiplatform_v1_predict_long_running_request_object
|
|
32166
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
|
32167
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
|
32168
|
+
command.params['endpoint'] = endpoint unless endpoint.nil?
|
|
30674
32169
|
command.query['fields'] = fields unless fields.nil?
|
|
30675
32170
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
30676
32171
|
execute_or_queue_command(command, &block)
|
|
30677
32172
|
end
|
|
30678
32173
|
|
|
30679
|
-
#
|
|
30680
|
-
# @param [String]
|
|
30681
|
-
# Required. The
|
|
30682
|
-
#
|
|
30683
|
-
#
|
|
32174
|
+
# Generate content with multimodal inputs with streaming support.
|
|
32175
|
+
# @param [String] model
|
|
32176
|
+
# Required. The fully qualified name of the publisher model or tuned model
|
|
32177
|
+
# endpoint to use. Publisher model format: `projects/`project`/locations/`
|
|
32178
|
+
# location`/publishers/*/models/*` Tuned model endpoint format: `projects/`
|
|
32179
|
+
# project`/locations/`location`/endpoints/`endpoint``
|
|
32180
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentRequest] google_cloud_aiplatform_v1_generate_content_request_object
|
|
30684
32181
|
# @param [String] fields
|
|
30685
32182
|
# Selector specifying which fields to include in a partial response.
|
|
30686
32183
|
# @param [String] quota_user
|
|
@@ -30690,21 +32187,21 @@ module Google
|
|
|
30690
32187
|
# Request-specific options
|
|
30691
32188
|
#
|
|
30692
32189
|
# @yield [result, err] Result & error if block supplied
|
|
30693
|
-
# @yieldparam result [Google::Apis::AiplatformV1::
|
|
32190
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse] parsed result object
|
|
30694
32191
|
# @yieldparam err [StandardError] error object if request failed
|
|
30695
32192
|
#
|
|
30696
|
-
# @return [Google::Apis::AiplatformV1::
|
|
32193
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse]
|
|
30697
32194
|
#
|
|
30698
32195
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
30699
32196
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
30700
32197
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
30701
|
-
def
|
|
30702
|
-
command = make_simple_command(:post, 'v1/{+
|
|
30703
|
-
command.request_representation = Google::Apis::AiplatformV1::
|
|
30704
|
-
command.request_object =
|
|
30705
|
-
command.response_representation = Google::Apis::AiplatformV1::
|
|
30706
|
-
command.response_class = Google::Apis::AiplatformV1::
|
|
30707
|
-
command.params['
|
|
32198
|
+
def stream_publisher_model_generate_content(model, google_cloud_aiplatform_v1_generate_content_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
32199
|
+
command = make_simple_command(:post, 'v1/{+model}:streamGenerateContent', options)
|
|
32200
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentRequest::Representation
|
|
32201
|
+
command.request_object = google_cloud_aiplatform_v1_generate_content_request_object
|
|
32202
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse::Representation
|
|
32203
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse
|
|
32204
|
+
command.params['model'] = model unless model.nil?
|
|
30708
32205
|
command.query['fields'] = fields unless fields.nil?
|
|
30709
32206
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
30710
32207
|
execute_or_queue_command(command, &block)
|
|
@@ -30737,7 +32234,7 @@ module Google
|
|
|
30737
32234
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
30738
32235
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
30739
32236
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
30740
|
-
def
|
|
32237
|
+
def cancel_rag_corpora_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
30741
32238
|
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
|
30742
32239
|
command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
|
|
30743
32240
|
command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
|
|
@@ -30770,7 +32267,7 @@ module Google
|
|
|
30770
32267
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
30771
32268
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
30772
32269
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
30773
|
-
def
|
|
32270
|
+
def delete_rag_corpora_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
30774
32271
|
command = make_simple_command(:delete, 'v1/{+name}', options)
|
|
30775
32272
|
command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
|
|
30776
32273
|
command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
|
|
@@ -30801,7 +32298,7 @@ module Google
|
|
|
30801
32298
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
30802
32299
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
30803
32300
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
30804
|
-
def
|
|
32301
|
+
def get_rag_corpora_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
30805
32302
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
30806
32303
|
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
|
30807
32304
|
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
|
@@ -30846,7 +32343,7 @@ module Google
|
|
|
30846
32343
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
30847
32344
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
30848
32345
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
30849
|
-
def
|
|
32346
|
+
def list_rag_corpora_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
30850
32347
|
command = make_simple_command(:get, 'v1/{+name}/operations', options)
|
|
30851
32348
|
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse::Representation
|
|
30852
32349
|
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse
|
|
@@ -30860,80 +32357,20 @@ module Google
|
|
|
30860
32357
|
execute_or_queue_command(command, &block)
|
|
30861
32358
|
end
|
|
30862
32359
|
|
|
30863
|
-
#
|
|
30864
|
-
#
|
|
30865
|
-
#
|
|
30866
|
-
#
|
|
30867
|
-
#
|
|
30868
|
-
#
|
|
30869
|
-
#
|
|
30870
|
-
#
|
|
30871
|
-
#
|
|
30872
|
-
#
|
|
30873
|
-
# @param [
|
|
30874
|
-
#
|
|
30875
|
-
#
|
|
30876
|
-
#
|
|
30877
|
-
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ComputeTokensResponse] parsed result object
|
|
30878
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
30879
|
-
#
|
|
30880
|
-
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ComputeTokensResponse]
|
|
30881
|
-
#
|
|
30882
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
30883
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
30884
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
30885
|
-
def compute_publisher_model_tokens(endpoint, google_cloud_aiplatform_v1_compute_tokens_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
30886
|
-
command = make_simple_command(:post, 'v1/{+endpoint}:computeTokens', options)
|
|
30887
|
-
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ComputeTokensRequest::Representation
|
|
30888
|
-
command.request_object = google_cloud_aiplatform_v1_compute_tokens_request_object
|
|
30889
|
-
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ComputeTokensResponse::Representation
|
|
30890
|
-
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ComputeTokensResponse
|
|
30891
|
-
command.params['endpoint'] = endpoint unless endpoint.nil?
|
|
30892
|
-
command.query['fields'] = fields unless fields.nil?
|
|
30893
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
30894
|
-
execute_or_queue_command(command, &block)
|
|
30895
|
-
end
|
|
30896
|
-
|
|
30897
|
-
# Perform a token counting.
|
|
30898
|
-
# @param [String] endpoint
|
|
30899
|
-
# Required. The name of the Endpoint requested to perform token counting. Format:
|
|
30900
|
-
# `projects/`project`/locations/`location`/endpoints/`endpoint``
|
|
30901
|
-
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CountTokensRequest] google_cloud_aiplatform_v1_count_tokens_request_object
|
|
30902
|
-
# @param [String] fields
|
|
30903
|
-
# Selector specifying which fields to include in a partial response.
|
|
30904
|
-
# @param [String] quota_user
|
|
30905
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
30906
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
30907
|
-
# @param [Google::Apis::RequestOptions] options
|
|
30908
|
-
# Request-specific options
|
|
30909
|
-
#
|
|
30910
|
-
# @yield [result, err] Result & error if block supplied
|
|
30911
|
-
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CountTokensResponse] parsed result object
|
|
30912
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
30913
|
-
#
|
|
30914
|
-
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CountTokensResponse]
|
|
30915
|
-
#
|
|
30916
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
30917
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
30918
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
30919
|
-
def count_publisher_model_tokens(endpoint, google_cloud_aiplatform_v1_count_tokens_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
30920
|
-
command = make_simple_command(:post, 'v1/{+endpoint}:countTokens', options)
|
|
30921
|
-
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CountTokensRequest::Representation
|
|
30922
|
-
command.request_object = google_cloud_aiplatform_v1_count_tokens_request_object
|
|
30923
|
-
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CountTokensResponse::Representation
|
|
30924
|
-
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CountTokensResponse
|
|
30925
|
-
command.params['endpoint'] = endpoint unless endpoint.nil?
|
|
30926
|
-
command.query['fields'] = fields unless fields.nil?
|
|
30927
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
30928
|
-
execute_or_queue_command(command, &block)
|
|
30929
|
-
end
|
|
30930
|
-
|
|
30931
|
-
# Fetch an asynchronous online prediction operation.
|
|
30932
|
-
# @param [String] endpoint
|
|
30933
|
-
# Required. The name of the Endpoint requested to serve the prediction. Format: `
|
|
30934
|
-
# projects/`project`/locations/`location`/endpoints/`endpoint`` or `projects/`
|
|
30935
|
-
# project`/locations/`location`/publishers/`publisher`/models/`model``
|
|
30936
|
-
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FetchPredictOperationRequest] google_cloud_aiplatform_v1_fetch_predict_operation_request_object
|
|
32360
|
+
# Waits until the specified long-running operation is done or reaches at most a
|
|
32361
|
+
# specified timeout, returning the latest state. If the operation is already
|
|
32362
|
+
# done, the latest state is immediately returned. If the timeout specified is
|
|
32363
|
+
# greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If
|
|
32364
|
+
# the server does not support this method, it returns `google.rpc.Code.
|
|
32365
|
+
# UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return
|
|
32366
|
+
# the latest state before the specified timeout (including immediately), meaning
|
|
32367
|
+
# even an immediate response is no guarantee that the operation is done.
|
|
32368
|
+
# @param [String] name
|
|
32369
|
+
# The name of the operation resource to wait on.
|
|
32370
|
+
# @param [String] timeout
|
|
32371
|
+
# The maximum duration to wait before timing out. If left blank, the wait will
|
|
32372
|
+
# be at most the time permitted by the underlying HTTP/RPC protocol. If RPC
|
|
32373
|
+
# context deadline is also specified, the shorter one will be used.
|
|
30937
32374
|
# @param [String] fields
|
|
30938
32375
|
# Selector specifying which fields to include in a partial response.
|
|
30939
32376
|
# @param [String] quota_user
|
|
@@ -30949,27 +32386,29 @@ module Google
|
|
|
30949
32386
|
# @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
|
|
30950
32387
|
#
|
|
30951
32388
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
30952
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
30953
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
30954
|
-
def
|
|
30955
|
-
command = make_simple_command(:post, 'v1/{+
|
|
30956
|
-
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1FetchPredictOperationRequest::Representation
|
|
30957
|
-
command.request_object = google_cloud_aiplatform_v1_fetch_predict_operation_request_object
|
|
32389
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
32390
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
32391
|
+
def wait_rag_corpora_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
32392
|
+
command = make_simple_command(:post, 'v1/{+name}:wait', options)
|
|
30958
32393
|
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
|
30959
32394
|
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
|
30960
|
-
command.params['
|
|
32395
|
+
command.params['name'] = name unless name.nil?
|
|
32396
|
+
command.query['timeout'] = timeout unless timeout.nil?
|
|
30961
32397
|
command.query['fields'] = fields unless fields.nil?
|
|
30962
32398
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
30963
32399
|
execute_or_queue_command(command, &block)
|
|
30964
32400
|
end
|
|
30965
32401
|
|
|
30966
|
-
#
|
|
30967
|
-
#
|
|
30968
|
-
#
|
|
30969
|
-
#
|
|
30970
|
-
#
|
|
30971
|
-
#
|
|
30972
|
-
#
|
|
32402
|
+
# Starts asynchronous cancellation on a long-running operation. The server makes
|
|
32403
|
+
# a best effort to cancel the operation, but success is not guaranteed. If the
|
|
32404
|
+
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
|
32405
|
+
# Clients can use Operations.GetOperation or other methods to check whether the
|
|
32406
|
+
# cancellation succeeded or whether the operation completed despite cancellation.
|
|
32407
|
+
# On successful cancellation, the operation is not deleted; instead, it becomes
|
|
32408
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
|
32409
|
+
# , corresponding to `Code.CANCELLED`.
|
|
32410
|
+
# @param [String] name
|
|
32411
|
+
# The name of the operation resource to be cancelled.
|
|
30973
32412
|
# @param [String] fields
|
|
30974
32413
|
# Selector specifying which fields to include in a partial response.
|
|
30975
32414
|
# @param [String] quota_user
|
|
@@ -30979,40 +32418,30 @@ module Google
|
|
|
30979
32418
|
# Request-specific options
|
|
30980
32419
|
#
|
|
30981
32420
|
# @yield [result, err] Result & error if block supplied
|
|
30982
|
-
# @yieldparam result [Google::Apis::AiplatformV1::
|
|
32421
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleProtobufEmpty] parsed result object
|
|
30983
32422
|
# @yieldparam err [StandardError] error object if request failed
|
|
30984
32423
|
#
|
|
30985
|
-
# @return [Google::Apis::AiplatformV1::
|
|
32424
|
+
# @return [Google::Apis::AiplatformV1::GoogleProtobufEmpty]
|
|
30986
32425
|
#
|
|
30987
32426
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
30988
32427
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
30989
32428
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
30990
|
-
def
|
|
30991
|
-
command = make_simple_command(:post, 'v1/{+
|
|
30992
|
-
command.
|
|
30993
|
-
command.
|
|
30994
|
-
command.
|
|
30995
|
-
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateContentResponse
|
|
30996
|
-
command.params['model'] = model unless model.nil?
|
|
32429
|
+
def cancel_rag_corpora_rag_file_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
32430
|
+
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
|
32431
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
|
|
32432
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
|
|
32433
|
+
command.params['name'] = name unless name.nil?
|
|
30997
32434
|
command.query['fields'] = fields unless fields.nil?
|
|
30998
32435
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
30999
32436
|
execute_or_queue_command(command, &block)
|
|
31000
32437
|
end
|
|
31001
32438
|
|
|
31002
|
-
#
|
|
32439
|
+
# Deletes a long-running operation. This method indicates that the client is no
|
|
32440
|
+
# longer interested in the operation result. It does not cancel the operation.
|
|
32441
|
+
# If the server doesn't support this method, it returns `google.rpc.Code.
|
|
32442
|
+
# UNIMPLEMENTED`.
|
|
31003
32443
|
# @param [String] name
|
|
31004
|
-
#
|
|
31005
|
-
# publisher`/models/`publisher_model``
|
|
31006
|
-
# @param [String] hugging_face_token
|
|
31007
|
-
# Optional. Token used to access Hugging Face gated models.
|
|
31008
|
-
# @param [Boolean] is_hugging_face_model
|
|
31009
|
-
# Optional. Boolean indicates whether the requested model is a Hugging Face
|
|
31010
|
-
# model.
|
|
31011
|
-
# @param [String] language_code
|
|
31012
|
-
# Optional. The IETF BCP-47 language code representing the language in which the
|
|
31013
|
-
# publisher model's text information should be written in.
|
|
31014
|
-
# @param [String] view
|
|
31015
|
-
# Optional. PublisherModel view specifying which fields to read.
|
|
32444
|
+
# The name of the operation resource to be deleted.
|
|
31016
32445
|
# @param [String] fields
|
|
31017
32446
|
# Selector specifying which fields to include in a partial response.
|
|
31018
32447
|
# @param [String] quota_user
|
|
@@ -31022,33 +32451,28 @@ module Google
|
|
|
31022
32451
|
# Request-specific options
|
|
31023
32452
|
#
|
|
31024
32453
|
# @yield [result, err] Result & error if block supplied
|
|
31025
|
-
# @yieldparam result [Google::Apis::AiplatformV1::
|
|
32454
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleProtobufEmpty] parsed result object
|
|
31026
32455
|
# @yieldparam err [StandardError] error object if request failed
|
|
31027
32456
|
#
|
|
31028
|
-
# @return [Google::Apis::AiplatformV1::
|
|
32457
|
+
# @return [Google::Apis::AiplatformV1::GoogleProtobufEmpty]
|
|
31029
32458
|
#
|
|
31030
32459
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
31031
32460
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
31032
32461
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
31033
|
-
def
|
|
31034
|
-
command = make_simple_command(:
|
|
31035
|
-
command.response_representation = Google::Apis::AiplatformV1::
|
|
31036
|
-
command.response_class = Google::Apis::AiplatformV1::
|
|
32462
|
+
def delete_rag_corpora_rag_file_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
32463
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
|
32464
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
|
|
32465
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
|
|
31037
32466
|
command.params['name'] = name unless name.nil?
|
|
31038
|
-
command.query['huggingFaceToken'] = hugging_face_token unless hugging_face_token.nil?
|
|
31039
|
-
command.query['isHuggingFaceModel'] = is_hugging_face_model unless is_hugging_face_model.nil?
|
|
31040
|
-
command.query['languageCode'] = language_code unless language_code.nil?
|
|
31041
|
-
command.query['view'] = view unless view.nil?
|
|
31042
32467
|
command.query['fields'] = fields unless fields.nil?
|
|
31043
32468
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
31044
32469
|
execute_or_queue_command(command, &block)
|
|
31045
32470
|
end
|
|
31046
32471
|
|
|
31047
|
-
#
|
|
31048
|
-
#
|
|
31049
|
-
#
|
|
31050
|
-
#
|
|
31051
|
-
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PredictRequest] google_cloud_aiplatform_v1_predict_request_object
|
|
32472
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
|
32473
|
+
# to poll the operation result at intervals as recommended by the API service.
|
|
32474
|
+
# @param [String] name
|
|
32475
|
+
# The name of the operation resource.
|
|
31052
32476
|
# @param [String] fields
|
|
31053
32477
|
# Selector specifying which fields to include in a partial response.
|
|
31054
32478
|
# @param [String] quota_user
|
|
@@ -31058,32 +32482,42 @@ module Google
|
|
|
31058
32482
|
# Request-specific options
|
|
31059
32483
|
#
|
|
31060
32484
|
# @yield [result, err] Result & error if block supplied
|
|
31061
|
-
# @yieldparam result [Google::Apis::AiplatformV1::
|
|
32485
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
|
|
31062
32486
|
# @yieldparam err [StandardError] error object if request failed
|
|
31063
32487
|
#
|
|
31064
|
-
# @return [Google::Apis::AiplatformV1::
|
|
32488
|
+
# @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
|
|
31065
32489
|
#
|
|
31066
32490
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
31067
32491
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
31068
32492
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
31069
|
-
def
|
|
31070
|
-
command = make_simple_command(:
|
|
31071
|
-
command.
|
|
31072
|
-
command.
|
|
31073
|
-
command.
|
|
31074
|
-
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1PredictResponse
|
|
31075
|
-
command.params['endpoint'] = endpoint unless endpoint.nil?
|
|
32493
|
+
def get_rag_corpora_rag_file_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
32494
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
32495
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
|
32496
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
|
32497
|
+
command.params['name'] = name unless name.nil?
|
|
31076
32498
|
command.query['fields'] = fields unless fields.nil?
|
|
31077
32499
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
31078
32500
|
execute_or_queue_command(command, &block)
|
|
31079
32501
|
end
|
|
31080
32502
|
|
|
31081
|
-
#
|
|
31082
|
-
#
|
|
31083
|
-
#
|
|
31084
|
-
#
|
|
31085
|
-
#
|
|
31086
|
-
#
|
|
32503
|
+
# Lists operations that match the specified filter in the request. If the server
|
|
32504
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
|
32505
|
+
# @param [String] name
|
|
32506
|
+
# The name of the operation's parent resource.
|
|
32507
|
+
# @param [String] filter
|
|
32508
|
+
# The standard list filter.
|
|
32509
|
+
# @param [Fixnum] page_size
|
|
32510
|
+
# The standard list page size.
|
|
32511
|
+
# @param [String] page_token
|
|
32512
|
+
# The standard list page token.
|
|
32513
|
+
# @param [Boolean] return_partial_success
|
|
32514
|
+
# When set to `true`, operations that are reachable are returned as normal, and
|
|
32515
|
+
# those that are unreachable are returned in the ListOperationsResponse.
|
|
32516
|
+
# unreachable field. This can only be `true` when reading across collections.
|
|
32517
|
+
# For example, when `parent` is set to `"projects/example/locations/-"`. This
|
|
32518
|
+
# field is not supported by default and will result in an `UNIMPLEMENTED` error
|
|
32519
|
+
# if set unless explicitly documented otherwise in service or product specific
|
|
32520
|
+
# documentation.
|
|
31087
32521
|
# @param [String] fields
|
|
31088
32522
|
# Selector specifying which fields to include in a partial response.
|
|
31089
32523
|
# @param [String] quota_user
|
|
@@ -31093,33 +32527,42 @@ module Google
|
|
|
31093
32527
|
# Request-specific options
|
|
31094
32528
|
#
|
|
31095
32529
|
# @yield [result, err] Result & error if block supplied
|
|
31096
|
-
# @yieldparam result [Google::Apis::AiplatformV1::
|
|
32530
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse] parsed result object
|
|
31097
32531
|
# @yieldparam err [StandardError] error object if request failed
|
|
31098
32532
|
#
|
|
31099
|
-
# @return [Google::Apis::AiplatformV1::
|
|
32533
|
+
# @return [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse]
|
|
31100
32534
|
#
|
|
31101
32535
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
31102
32536
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
31103
32537
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
31104
|
-
def
|
|
31105
|
-
command = make_simple_command(:
|
|
31106
|
-
command.
|
|
31107
|
-
command.
|
|
31108
|
-
command.
|
|
31109
|
-
command.
|
|
31110
|
-
command.
|
|
32538
|
+
def list_rag_corpora_rag_file_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
32539
|
+
command = make_simple_command(:get, 'v1/{+name}/operations', options)
|
|
32540
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse::Representation
|
|
32541
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse
|
|
32542
|
+
command.params['name'] = name unless name.nil?
|
|
32543
|
+
command.query['filter'] = filter unless filter.nil?
|
|
32544
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
32545
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
32546
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
|
31111
32547
|
command.query['fields'] = fields unless fields.nil?
|
|
31112
32548
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
31113
32549
|
execute_or_queue_command(command, &block)
|
|
31114
32550
|
end
|
|
31115
32551
|
|
|
31116
|
-
#
|
|
31117
|
-
#
|
|
31118
|
-
#
|
|
31119
|
-
#
|
|
31120
|
-
#
|
|
31121
|
-
#
|
|
31122
|
-
#
|
|
32552
|
+
# Waits until the specified long-running operation is done or reaches at most a
|
|
32553
|
+
# specified timeout, returning the latest state. If the operation is already
|
|
32554
|
+
# done, the latest state is immediately returned. If the timeout specified is
|
|
32555
|
+
# greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If
|
|
32556
|
+
# the server does not support this method, it returns `google.rpc.Code.
|
|
32557
|
+
# UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return
|
|
32558
|
+
# the latest state before the specified timeout (including immediately), meaning
|
|
32559
|
+
# even an immediate response is no guarantee that the operation is done.
|
|
32560
|
+
# @param [String] name
|
|
32561
|
+
# The name of the operation resource to wait on.
|
|
32562
|
+
# @param [String] timeout
|
|
32563
|
+
# The maximum duration to wait before timing out. If left blank, the wait will
|
|
32564
|
+
# be at most the time permitted by the underlying HTTP/RPC protocol. If RPC
|
|
32565
|
+
# context deadline is also specified, the shorter one will be used.
|
|
31123
32566
|
# @param [String] fields
|
|
31124
32567
|
# Selector specifying which fields to include in a partial response.
|
|
31125
32568
|
# @param [String] quota_user
|
|
@@ -31129,21 +32572,20 @@ module Google
|
|
|
31129
32572
|
# Request-specific options
|
|
31130
32573
|
#
|
|
31131
32574
|
# @yield [result, err] Result & error if block supplied
|
|
31132
|
-
# @yieldparam result [Google::Apis::AiplatformV1::
|
|
32575
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
|
|
31133
32576
|
# @yieldparam err [StandardError] error object if request failed
|
|
31134
32577
|
#
|
|
31135
|
-
# @return [Google::Apis::AiplatformV1::
|
|
32578
|
+
# @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
|
|
31136
32579
|
#
|
|
31137
32580
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
31138
32581
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
31139
32582
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
31140
|
-
def
|
|
31141
|
-
command = make_simple_command(:post, 'v1/{+
|
|
31142
|
-
command.
|
|
31143
|
-
command.
|
|
31144
|
-
command.
|
|
31145
|
-
command.
|
|
31146
|
-
command.params['model'] = model unless model.nil?
|
|
32583
|
+
def wait_rag_corpora_rag_file_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
32584
|
+
command = make_simple_command(:post, 'v1/{+name}:wait', options)
|
|
32585
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
|
32586
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
|
32587
|
+
command.params['name'] = name unless name.nil?
|
|
32588
|
+
command.query['timeout'] = timeout unless timeout.nil?
|
|
31147
32589
|
command.query['fields'] = fields unless fields.nil?
|
|
31148
32590
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
31149
32591
|
execute_or_queue_command(command, &block)
|
|
@@ -31176,7 +32618,7 @@ module Google
|
|
|
31176
32618
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
31177
32619
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
31178
32620
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
31179
|
-
def
|
|
32621
|
+
def cancel_rag_engine_config_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
31180
32622
|
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
|
31181
32623
|
command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
|
|
31182
32624
|
command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
|
|
@@ -31209,7 +32651,7 @@ module Google
|
|
|
31209
32651
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
31210
32652
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
31211
32653
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
31212
|
-
def
|
|
32654
|
+
def delete_rag_engine_config_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
31213
32655
|
command = make_simple_command(:delete, 'v1/{+name}', options)
|
|
31214
32656
|
command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
|
|
31215
32657
|
command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
|
|
@@ -31240,7 +32682,7 @@ module Google
|
|
|
31240
32682
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
31241
32683
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
31242
32684
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
31243
|
-
def
|
|
32685
|
+
def get_rag_engine_config_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
31244
32686
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
31245
32687
|
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
|
31246
32688
|
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
|
@@ -31285,7 +32727,7 @@ module Google
|
|
|
31285
32727
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
31286
32728
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
31287
32729
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
31288
|
-
def
|
|
32730
|
+
def list_rag_engine_config_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
31289
32731
|
command = make_simple_command(:get, 'v1/{+name}/operations', options)
|
|
31290
32732
|
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse::Representation
|
|
31291
32733
|
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse
|
|
@@ -31299,20 +32741,90 @@ module Google
|
|
|
31299
32741
|
execute_or_queue_command(command, &block)
|
|
31300
32742
|
end
|
|
31301
32743
|
|
|
31302
|
-
# Waits until the specified long-running operation is done or reaches at most a
|
|
31303
|
-
# specified timeout, returning the latest state. If the operation is already
|
|
31304
|
-
# done, the latest state is immediately returned. If the timeout specified is
|
|
31305
|
-
# greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If
|
|
31306
|
-
# the server does not support this method, it returns `google.rpc.Code.
|
|
31307
|
-
# UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return
|
|
31308
|
-
# the latest state before the specified timeout (including immediately), meaning
|
|
31309
|
-
# even an immediate response is no guarantee that the operation is done.
|
|
32744
|
+
# Waits until the specified long-running operation is done or reaches at most a
|
|
32745
|
+
# specified timeout, returning the latest state. If the operation is already
|
|
32746
|
+
# done, the latest state is immediately returned. If the timeout specified is
|
|
32747
|
+
# greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If
|
|
32748
|
+
# the server does not support this method, it returns `google.rpc.Code.
|
|
32749
|
+
# UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return
|
|
32750
|
+
# the latest state before the specified timeout (including immediately), meaning
|
|
32751
|
+
# even an immediate response is no guarantee that the operation is done.
|
|
32752
|
+
# @param [String] name
|
|
32753
|
+
# The name of the operation resource to wait on.
|
|
32754
|
+
# @param [String] timeout
|
|
32755
|
+
# The maximum duration to wait before timing out. If left blank, the wait will
|
|
32756
|
+
# be at most the time permitted by the underlying HTTP/RPC protocol. If RPC
|
|
32757
|
+
# context deadline is also specified, the shorter one will be used.
|
|
32758
|
+
# @param [String] fields
|
|
32759
|
+
# Selector specifying which fields to include in a partial response.
|
|
32760
|
+
# @param [String] quota_user
|
|
32761
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
32762
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
32763
|
+
# @param [Google::Apis::RequestOptions] options
|
|
32764
|
+
# Request-specific options
|
|
32765
|
+
#
|
|
32766
|
+
# @yield [result, err] Result & error if block supplied
|
|
32767
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
|
|
32768
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
32769
|
+
#
|
|
32770
|
+
# @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
|
|
32771
|
+
#
|
|
32772
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
32773
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
32774
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
32775
|
+
def wait_rag_engine_config_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
32776
|
+
command = make_simple_command(:post, 'v1/{+name}:wait', options)
|
|
32777
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
|
32778
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
|
32779
|
+
command.params['name'] = name unless name.nil?
|
|
32780
|
+
command.query['timeout'] = timeout unless timeout.nil?
|
|
32781
|
+
command.query['fields'] = fields unless fields.nil?
|
|
32782
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
32783
|
+
execute_or_queue_command(command, &block)
|
|
32784
|
+
end
|
|
32785
|
+
|
|
32786
|
+
# Creates a reasoning engine.
|
|
32787
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReasoningEngine] google_cloud_aiplatform_v1_reasoning_engine_object
|
|
32788
|
+
# @param [String] parent
|
|
32789
|
+
# Required. The resource name of the Location to create the ReasoningEngine in.
|
|
32790
|
+
# Format: `projects/`project`/locations/`location``
|
|
32791
|
+
# @param [String] fields
|
|
32792
|
+
# Selector specifying which fields to include in a partial response.
|
|
32793
|
+
# @param [String] quota_user
|
|
32794
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
32795
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
32796
|
+
# @param [Google::Apis::RequestOptions] options
|
|
32797
|
+
# Request-specific options
|
|
32798
|
+
#
|
|
32799
|
+
# @yield [result, err] Result & error if block supplied
|
|
32800
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
|
|
32801
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
32802
|
+
#
|
|
32803
|
+
# @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
|
|
32804
|
+
#
|
|
32805
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
32806
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
32807
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
32808
|
+
def create_reasoning_engine(google_cloud_aiplatform_v1_reasoning_engine_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
32809
|
+
command = make_simple_command(:post, 'v1/reasoningEngines', options)
|
|
32810
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReasoningEngine::Representation
|
|
32811
|
+
command.request_object = google_cloud_aiplatform_v1_reasoning_engine_object
|
|
32812
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
|
32813
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
|
32814
|
+
command.query['parent'] = parent unless parent.nil?
|
|
32815
|
+
command.query['fields'] = fields unless fields.nil?
|
|
32816
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
32817
|
+
execute_or_queue_command(command, &block)
|
|
32818
|
+
end
|
|
32819
|
+
|
|
32820
|
+
# Deletes a reasoning engine.
|
|
31310
32821
|
# @param [String] name
|
|
31311
|
-
# The name of the
|
|
31312
|
-
#
|
|
31313
|
-
#
|
|
31314
|
-
#
|
|
31315
|
-
#
|
|
32822
|
+
# Required. The name of the ReasoningEngine resource to be deleted. Format: `
|
|
32823
|
+
# projects/`project`/locations/`location`/reasoningEngines/`reasoning_engine``
|
|
32824
|
+
# @param [Boolean] force
|
|
32825
|
+
# Optional. If set to true, child resources of this reasoning engine will also
|
|
32826
|
+
# be deleted. Otherwise, the request will fail with FAILED_PRECONDITION error
|
|
32827
|
+
# when the reasoning engine has undeleted child resources.
|
|
31316
32828
|
# @param [String] fields
|
|
31317
32829
|
# Selector specifying which fields to include in a partial response.
|
|
31318
32830
|
# @param [String] quota_user
|
|
@@ -31330,27 +32842,21 @@ module Google
|
|
|
31330
32842
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
31331
32843
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
31332
32844
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
31333
|
-
def
|
|
31334
|
-
command = make_simple_command(:
|
|
32845
|
+
def delete_reasoning_engine(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
32846
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
|
31335
32847
|
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
|
31336
32848
|
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
|
31337
32849
|
command.params['name'] = name unless name.nil?
|
|
31338
|
-
command.query['
|
|
32850
|
+
command.query['force'] = force unless force.nil?
|
|
31339
32851
|
command.query['fields'] = fields unless fields.nil?
|
|
31340
32852
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
31341
32853
|
execute_or_queue_command(command, &block)
|
|
31342
32854
|
end
|
|
31343
32855
|
|
|
31344
|
-
#
|
|
31345
|
-
# a best effort to cancel the operation, but success is not guaranteed. If the
|
|
31346
|
-
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
|
31347
|
-
# Clients can use Operations.GetOperation or other methods to check whether the
|
|
31348
|
-
# cancellation succeeded or whether the operation completed despite cancellation.
|
|
31349
|
-
# On successful cancellation, the operation is not deleted; instead, it becomes
|
|
31350
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
|
31351
|
-
# , corresponding to `Code.CANCELLED`.
|
|
32856
|
+
# Gets a reasoning engine.
|
|
31352
32857
|
# @param [String] name
|
|
31353
|
-
# The name of the
|
|
32858
|
+
# Required. The name of the ReasoningEngine resource. Format: `projects/`project`
|
|
32859
|
+
# /locations/`location`/reasoningEngines/`reasoning_engine``
|
|
31354
32860
|
# @param [String] fields
|
|
31355
32861
|
# Selector specifying which fields to include in a partial response.
|
|
31356
32862
|
# @param [String] quota_user
|
|
@@ -31360,30 +32866,35 @@ module Google
|
|
|
31360
32866
|
# Request-specific options
|
|
31361
32867
|
#
|
|
31362
32868
|
# @yield [result, err] Result & error if block supplied
|
|
31363
|
-
# @yieldparam result [Google::Apis::AiplatformV1::
|
|
32869
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReasoningEngine] parsed result object
|
|
31364
32870
|
# @yieldparam err [StandardError] error object if request failed
|
|
31365
32871
|
#
|
|
31366
|
-
# @return [Google::Apis::AiplatformV1::
|
|
32872
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReasoningEngine]
|
|
31367
32873
|
#
|
|
31368
32874
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
31369
32875
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
31370
32876
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
31371
|
-
def
|
|
31372
|
-
command = make_simple_command(:
|
|
31373
|
-
command.response_representation = Google::Apis::AiplatformV1::
|
|
31374
|
-
command.response_class = Google::Apis::AiplatformV1::
|
|
32877
|
+
def get_reasoning_engine(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
32878
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
32879
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReasoningEngine::Representation
|
|
32880
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReasoningEngine
|
|
31375
32881
|
command.params['name'] = name unless name.nil?
|
|
31376
32882
|
command.query['fields'] = fields unless fields.nil?
|
|
31377
32883
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
31378
32884
|
execute_or_queue_command(command, &block)
|
|
31379
32885
|
end
|
|
31380
32886
|
|
|
31381
|
-
#
|
|
31382
|
-
#
|
|
31383
|
-
#
|
|
31384
|
-
#
|
|
31385
|
-
# @param [
|
|
31386
|
-
# The
|
|
32887
|
+
# Lists reasoning engines in a location.
|
|
32888
|
+
# @param [String] filter
|
|
32889
|
+
# Optional. The standard list filter. More detail in [AIP-160](https://google.
|
|
32890
|
+
# aip.dev/160).
|
|
32891
|
+
# @param [Fixnum] page_size
|
|
32892
|
+
# Optional. The standard list page size.
|
|
32893
|
+
# @param [String] page_token
|
|
32894
|
+
# Optional. The standard list page token.
|
|
32895
|
+
# @param [String] parent
|
|
32896
|
+
# Required. The resource name of the Location to list the ReasoningEngines from.
|
|
32897
|
+
# Format: `projects/`project`/locations/`location``
|
|
31387
32898
|
# @param [String] fields
|
|
31388
32899
|
# Selector specifying which fields to include in a partial response.
|
|
31389
32900
|
# @param [String] quota_user
|
|
@@ -31393,28 +32904,34 @@ module Google
|
|
|
31393
32904
|
# Request-specific options
|
|
31394
32905
|
#
|
|
31395
32906
|
# @yield [result, err] Result & error if block supplied
|
|
31396
|
-
# @yieldparam result [Google::Apis::AiplatformV1::
|
|
32907
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListReasoningEnginesResponse] parsed result object
|
|
31397
32908
|
# @yieldparam err [StandardError] error object if request failed
|
|
31398
32909
|
#
|
|
31399
|
-
# @return [Google::Apis::AiplatformV1::
|
|
32910
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListReasoningEnginesResponse]
|
|
31400
32911
|
#
|
|
31401
32912
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
31402
32913
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
31403
32914
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
31404
|
-
def
|
|
31405
|
-
command = make_simple_command(:
|
|
31406
|
-
command.response_representation = Google::Apis::AiplatformV1::
|
|
31407
|
-
command.response_class = Google::Apis::AiplatformV1::
|
|
31408
|
-
command.
|
|
32915
|
+
def list_reasoning_engines(filter: nil, page_size: nil, page_token: nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
32916
|
+
command = make_simple_command(:get, 'v1/reasoningEngines', options)
|
|
32917
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListReasoningEnginesResponse::Representation
|
|
32918
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ListReasoningEnginesResponse
|
|
32919
|
+
command.query['filter'] = filter unless filter.nil?
|
|
32920
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
32921
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
32922
|
+
command.query['parent'] = parent unless parent.nil?
|
|
31409
32923
|
command.query['fields'] = fields unless fields.nil?
|
|
31410
32924
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
31411
32925
|
execute_or_queue_command(command, &block)
|
|
31412
32926
|
end
|
|
31413
32927
|
|
|
31414
|
-
#
|
|
31415
|
-
# to poll the operation result at intervals as recommended by the API service.
|
|
32928
|
+
# Updates a reasoning engine.
|
|
31416
32929
|
# @param [String] name
|
|
31417
|
-
# The name of the
|
|
32930
|
+
# Identifier. The resource name of the ReasoningEngine. Format: `projects/`
|
|
32931
|
+
# project`/locations/`location`/reasoningEngines/`reasoning_engine``
|
|
32932
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReasoningEngine] google_cloud_aiplatform_v1_reasoning_engine_object
|
|
32933
|
+
# @param [String] update_mask
|
|
32934
|
+
# Optional. Mask specifying which fields to update.
|
|
31418
32935
|
# @param [String] fields
|
|
31419
32936
|
# Selector specifying which fields to include in a partial response.
|
|
31420
32937
|
# @param [String] quota_user
|
|
@@ -31432,34 +32949,24 @@ module Google
|
|
|
31432
32949
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
31433
32950
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
31434
32951
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
31435
|
-
def
|
|
31436
|
-
command = make_simple_command(:
|
|
32952
|
+
def patch_reasoning_engine(name, google_cloud_aiplatform_v1_reasoning_engine_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
32953
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
|
32954
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReasoningEngine::Representation
|
|
32955
|
+
command.request_object = google_cloud_aiplatform_v1_reasoning_engine_object
|
|
31437
32956
|
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
|
31438
32957
|
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
|
31439
32958
|
command.params['name'] = name unless name.nil?
|
|
32959
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
31440
32960
|
command.query['fields'] = fields unless fields.nil?
|
|
31441
32961
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
31442
32962
|
execute_or_queue_command(command, &block)
|
|
31443
32963
|
end
|
|
31444
32964
|
|
|
31445
|
-
#
|
|
31446
|
-
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
|
32965
|
+
# Queries using a reasoning engine.
|
|
31447
32966
|
# @param [String] name
|
|
31448
|
-
# The name of the
|
|
31449
|
-
#
|
|
31450
|
-
#
|
|
31451
|
-
# @param [Fixnum] page_size
|
|
31452
|
-
# The standard list page size.
|
|
31453
|
-
# @param [String] page_token
|
|
31454
|
-
# The standard list page token.
|
|
31455
|
-
# @param [Boolean] return_partial_success
|
|
31456
|
-
# When set to `true`, operations that are reachable are returned as normal, and
|
|
31457
|
-
# those that are unreachable are returned in the ListOperationsResponse.
|
|
31458
|
-
# unreachable field. This can only be `true` when reading across collections.
|
|
31459
|
-
# For example, when `parent` is set to `"projects/example/locations/-"`. This
|
|
31460
|
-
# field is not supported by default and will result in an `UNIMPLEMENTED` error
|
|
31461
|
-
# if set unless explicitly documented otherwise in service or product specific
|
|
31462
|
-
# documentation.
|
|
32967
|
+
# Required. The name of the ReasoningEngine resource to use. Format: `projects/`
|
|
32968
|
+
# project`/locations/`location`/reasoningEngines/`reasoning_engine``
|
|
32969
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1QueryReasoningEngineRequest] google_cloud_aiplatform_v1_query_reasoning_engine_request_object
|
|
31463
32970
|
# @param [String] fields
|
|
31464
32971
|
# Selector specifying which fields to include in a partial response.
|
|
31465
32972
|
# @param [String] quota_user
|
|
@@ -31469,42 +32976,31 @@ module Google
|
|
|
31469
32976
|
# Request-specific options
|
|
31470
32977
|
#
|
|
31471
32978
|
# @yield [result, err] Result & error if block supplied
|
|
31472
|
-
# @yieldparam result [Google::Apis::AiplatformV1::
|
|
32979
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1QueryReasoningEngineResponse] parsed result object
|
|
31473
32980
|
# @yieldparam err [StandardError] error object if request failed
|
|
31474
32981
|
#
|
|
31475
|
-
# @return [Google::Apis::AiplatformV1::
|
|
32982
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1QueryReasoningEngineResponse]
|
|
31476
32983
|
#
|
|
31477
32984
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
31478
32985
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
31479
32986
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
31480
|
-
def
|
|
31481
|
-
command = make_simple_command(:
|
|
31482
|
-
command.
|
|
31483
|
-
command.
|
|
32987
|
+
def query_reasoning_engine(name, google_cloud_aiplatform_v1_query_reasoning_engine_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
32988
|
+
command = make_simple_command(:post, 'v1/{+name}:query', options)
|
|
32989
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1QueryReasoningEngineRequest::Representation
|
|
32990
|
+
command.request_object = google_cloud_aiplatform_v1_query_reasoning_engine_request_object
|
|
32991
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1QueryReasoningEngineResponse::Representation
|
|
32992
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1QueryReasoningEngineResponse
|
|
31484
32993
|
command.params['name'] = name unless name.nil?
|
|
31485
|
-
command.query['filter'] = filter unless filter.nil?
|
|
31486
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
|
31487
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
|
31488
|
-
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
|
31489
32994
|
command.query['fields'] = fields unless fields.nil?
|
|
31490
32995
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
31491
32996
|
execute_or_queue_command(command, &block)
|
|
31492
32997
|
end
|
|
31493
32998
|
|
|
31494
|
-
#
|
|
31495
|
-
# specified timeout, returning the latest state. If the operation is already
|
|
31496
|
-
# done, the latest state is immediately returned. If the timeout specified is
|
|
31497
|
-
# greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If
|
|
31498
|
-
# the server does not support this method, it returns `google.rpc.Code.
|
|
31499
|
-
# UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return
|
|
31500
|
-
# the latest state before the specified timeout (including immediately), meaning
|
|
31501
|
-
# even an immediate response is no guarantee that the operation is done.
|
|
32999
|
+
# Streams queries using a reasoning engine.
|
|
31502
33000
|
# @param [String] name
|
|
31503
|
-
# The name of the
|
|
31504
|
-
#
|
|
31505
|
-
#
|
|
31506
|
-
# be at most the time permitted by the underlying HTTP/RPC protocol. If RPC
|
|
31507
|
-
# context deadline is also specified, the shorter one will be used.
|
|
33001
|
+
# Required. The name of the ReasoningEngine resource to use. Format: `projects/`
|
|
33002
|
+
# project`/locations/`location`/reasoningEngines/`reasoning_engine``
|
|
33003
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest] google_cloud_aiplatform_v1_stream_query_reasoning_engine_request_object
|
|
31508
33004
|
# @param [String] fields
|
|
31509
33005
|
# Selector specifying which fields to include in a partial response.
|
|
31510
33006
|
# @param [String] quota_user
|
|
@@ -31514,20 +33010,21 @@ module Google
|
|
|
31514
33010
|
# Request-specific options
|
|
31515
33011
|
#
|
|
31516
33012
|
# @yield [result, err] Result & error if block supplied
|
|
31517
|
-
# @yieldparam result [Google::Apis::AiplatformV1::
|
|
33013
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleApiHttpBody] parsed result object
|
|
31518
33014
|
# @yieldparam err [StandardError] error object if request failed
|
|
31519
33015
|
#
|
|
31520
|
-
# @return [Google::Apis::AiplatformV1::
|
|
33016
|
+
# @return [Google::Apis::AiplatformV1::GoogleApiHttpBody]
|
|
31521
33017
|
#
|
|
31522
33018
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
31523
33019
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
31524
33020
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
31525
|
-
def
|
|
31526
|
-
command = make_simple_command(:post, 'v1/{+name}:
|
|
31527
|
-
command.
|
|
31528
|
-
command.
|
|
33021
|
+
def stream_reasoning_engine_query(name, google_cloud_aiplatform_v1_stream_query_reasoning_engine_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
33022
|
+
command = make_simple_command(:post, 'v1/{+name}:streamQuery', options)
|
|
33023
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest::Representation
|
|
33024
|
+
command.request_object = google_cloud_aiplatform_v1_stream_query_reasoning_engine_request_object
|
|
33025
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleApiHttpBody::Representation
|
|
33026
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleApiHttpBody
|
|
31529
33027
|
command.params['name'] = name unless name.nil?
|
|
31530
|
-
command.query['timeout'] = timeout unless timeout.nil?
|
|
31531
33028
|
command.query['fields'] = fields unless fields.nil?
|
|
31532
33029
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
31533
33030
|
execute_or_queue_command(command, &block)
|
|
@@ -31560,7 +33057,7 @@ module Google
|
|
|
31560
33057
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
31561
33058
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
31562
33059
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
31563
|
-
def
|
|
33060
|
+
def cancel_reasoning_engine_memory_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
31564
33061
|
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
|
31565
33062
|
command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
|
|
31566
33063
|
command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
|
|
@@ -31593,7 +33090,7 @@ module Google
|
|
|
31593
33090
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
31594
33091
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
31595
33092
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
31596
|
-
def
|
|
33093
|
+
def delete_reasoning_engine_memory_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
31597
33094
|
command = make_simple_command(:delete, 'v1/{+name}', options)
|
|
31598
33095
|
command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
|
|
31599
33096
|
command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
|
|
@@ -31624,7 +33121,7 @@ module Google
|
|
|
31624
33121
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
31625
33122
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
31626
33123
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
31627
|
-
def
|
|
33124
|
+
def get_reasoning_engine_memory_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
31628
33125
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
31629
33126
|
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
|
31630
33127
|
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
|
@@ -31669,7 +33166,7 @@ module Google
|
|
|
31669
33166
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
31670
33167
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
31671
33168
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
31672
|
-
def
|
|
33169
|
+
def list_reasoning_engine_memory_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
31673
33170
|
command = make_simple_command(:get, 'v1/{+name}/operations', options)
|
|
31674
33171
|
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse::Representation
|
|
31675
33172
|
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse
|
|
@@ -31688,85 +33185,15 @@ module Google
|
|
|
31688
33185
|
# done, the latest state is immediately returned. If the timeout specified is
|
|
31689
33186
|
# greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If
|
|
31690
33187
|
# the server does not support this method, it returns `google.rpc.Code.
|
|
31691
|
-
# UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return
|
|
31692
|
-
# the latest state before the specified timeout (including immediately), meaning
|
|
31693
|
-
# even an immediate response is no guarantee that the operation is done.
|
|
31694
|
-
# @param [String] name
|
|
31695
|
-
# The name of the operation resource to wait on.
|
|
31696
|
-
# @param [String] timeout
|
|
31697
|
-
# The maximum duration to wait before timing out. If left blank, the wait will
|
|
31698
|
-
# be at most the time permitted by the underlying HTTP/RPC protocol. If RPC
|
|
31699
|
-
# context deadline is also specified, the shorter one will be used.
|
|
31700
|
-
# @param [String] fields
|
|
31701
|
-
# Selector specifying which fields to include in a partial response.
|
|
31702
|
-
# @param [String] quota_user
|
|
31703
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
31704
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
31705
|
-
# @param [Google::Apis::RequestOptions] options
|
|
31706
|
-
# Request-specific options
|
|
31707
|
-
#
|
|
31708
|
-
# @yield [result, err] Result & error if block supplied
|
|
31709
|
-
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
|
|
31710
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
31711
|
-
#
|
|
31712
|
-
# @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
|
|
31713
|
-
#
|
|
31714
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
31715
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
31716
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
31717
|
-
def wait_rag_engine_config_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
31718
|
-
command = make_simple_command(:post, 'v1/{+name}:wait', options)
|
|
31719
|
-
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
|
31720
|
-
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
|
31721
|
-
command.params['name'] = name unless name.nil?
|
|
31722
|
-
command.query['timeout'] = timeout unless timeout.nil?
|
|
31723
|
-
command.query['fields'] = fields unless fields.nil?
|
|
31724
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
31725
|
-
execute_or_queue_command(command, &block)
|
|
31726
|
-
end
|
|
31727
|
-
|
|
31728
|
-
# Creates a reasoning engine.
|
|
31729
|
-
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReasoningEngine] google_cloud_aiplatform_v1_reasoning_engine_object
|
|
31730
|
-
# @param [String] parent
|
|
31731
|
-
# Required. The resource name of the Location to create the ReasoningEngine in.
|
|
31732
|
-
# Format: `projects/`project`/locations/`location``
|
|
31733
|
-
# @param [String] fields
|
|
31734
|
-
# Selector specifying which fields to include in a partial response.
|
|
31735
|
-
# @param [String] quota_user
|
|
31736
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
31737
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
31738
|
-
# @param [Google::Apis::RequestOptions] options
|
|
31739
|
-
# Request-specific options
|
|
31740
|
-
#
|
|
31741
|
-
# @yield [result, err] Result & error if block supplied
|
|
31742
|
-
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
|
|
31743
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
31744
|
-
#
|
|
31745
|
-
# @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
|
|
31746
|
-
#
|
|
31747
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
31748
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
31749
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
31750
|
-
def create_reasoning_engine(google_cloud_aiplatform_v1_reasoning_engine_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
31751
|
-
command = make_simple_command(:post, 'v1/reasoningEngines', options)
|
|
31752
|
-
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReasoningEngine::Representation
|
|
31753
|
-
command.request_object = google_cloud_aiplatform_v1_reasoning_engine_object
|
|
31754
|
-
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
|
31755
|
-
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
|
31756
|
-
command.query['parent'] = parent unless parent.nil?
|
|
31757
|
-
command.query['fields'] = fields unless fields.nil?
|
|
31758
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
31759
|
-
execute_or_queue_command(command, &block)
|
|
31760
|
-
end
|
|
31761
|
-
|
|
31762
|
-
# Deletes a reasoning engine.
|
|
33188
|
+
# UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return
|
|
33189
|
+
# the latest state before the specified timeout (including immediately), meaning
|
|
33190
|
+
# even an immediate response is no guarantee that the operation is done.
|
|
31763
33191
|
# @param [String] name
|
|
31764
|
-
#
|
|
31765
|
-
#
|
|
31766
|
-
#
|
|
31767
|
-
#
|
|
31768
|
-
#
|
|
31769
|
-
# when the reasoning engine has undeleted child resources.
|
|
33192
|
+
# The name of the operation resource to wait on.
|
|
33193
|
+
# @param [String] timeout
|
|
33194
|
+
# The maximum duration to wait before timing out. If left blank, the wait will
|
|
33195
|
+
# be at most the time permitted by the underlying HTTP/RPC protocol. If RPC
|
|
33196
|
+
# context deadline is also specified, the shorter one will be used.
|
|
31770
33197
|
# @param [String] fields
|
|
31771
33198
|
# Selector specifying which fields to include in a partial response.
|
|
31772
33199
|
# @param [String] quota_user
|
|
@@ -31784,21 +33211,27 @@ module Google
|
|
|
31784
33211
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
31785
33212
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
31786
33213
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
31787
|
-
def
|
|
31788
|
-
command = make_simple_command(:
|
|
33214
|
+
def wait_reasoning_engine_memory_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
33215
|
+
command = make_simple_command(:post, 'v1/{+name}:wait', options)
|
|
31789
33216
|
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
|
31790
33217
|
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
|
31791
33218
|
command.params['name'] = name unless name.nil?
|
|
31792
|
-
command.query['
|
|
33219
|
+
command.query['timeout'] = timeout unless timeout.nil?
|
|
31793
33220
|
command.query['fields'] = fields unless fields.nil?
|
|
31794
33221
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
31795
33222
|
execute_or_queue_command(command, &block)
|
|
31796
33223
|
end
|
|
31797
33224
|
|
|
31798
|
-
#
|
|
33225
|
+
# Starts asynchronous cancellation on a long-running operation. The server makes
|
|
33226
|
+
# a best effort to cancel the operation, but success is not guaranteed. If the
|
|
33227
|
+
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
|
33228
|
+
# Clients can use Operations.GetOperation or other methods to check whether the
|
|
33229
|
+
# cancellation succeeded or whether the operation completed despite cancellation.
|
|
33230
|
+
# On successful cancellation, the operation is not deleted; instead, it becomes
|
|
33231
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
|
33232
|
+
# , corresponding to `Code.CANCELLED`.
|
|
31799
33233
|
# @param [String] name
|
|
31800
|
-
#
|
|
31801
|
-
# /locations/`location`/reasoningEngines/`reasoning_engine``
|
|
33234
|
+
# The name of the operation resource to be cancelled.
|
|
31802
33235
|
# @param [String] fields
|
|
31803
33236
|
# Selector specifying which fields to include in a partial response.
|
|
31804
33237
|
# @param [String] quota_user
|
|
@@ -31808,35 +33241,30 @@ module Google
|
|
|
31808
33241
|
# Request-specific options
|
|
31809
33242
|
#
|
|
31810
33243
|
# @yield [result, err] Result & error if block supplied
|
|
31811
|
-
# @yieldparam result [Google::Apis::AiplatformV1::
|
|
33244
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleProtobufEmpty] parsed result object
|
|
31812
33245
|
# @yieldparam err [StandardError] error object if request failed
|
|
31813
33246
|
#
|
|
31814
|
-
# @return [Google::Apis::AiplatformV1::
|
|
33247
|
+
# @return [Google::Apis::AiplatformV1::GoogleProtobufEmpty]
|
|
31815
33248
|
#
|
|
31816
33249
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
31817
33250
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
31818
33251
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
31819
|
-
def
|
|
31820
|
-
command = make_simple_command(:
|
|
31821
|
-
command.response_representation = Google::Apis::AiplatformV1::
|
|
31822
|
-
command.response_class = Google::Apis::AiplatformV1::
|
|
33252
|
+
def cancel_reasoning_engine_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
33253
|
+
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
|
33254
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
|
|
33255
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
|
|
31823
33256
|
command.params['name'] = name unless name.nil?
|
|
31824
33257
|
command.query['fields'] = fields unless fields.nil?
|
|
31825
33258
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
31826
33259
|
execute_or_queue_command(command, &block)
|
|
31827
33260
|
end
|
|
31828
33261
|
|
|
31829
|
-
#
|
|
31830
|
-
#
|
|
31831
|
-
#
|
|
31832
|
-
#
|
|
31833
|
-
# @param [
|
|
31834
|
-
#
|
|
31835
|
-
# @param [String] page_token
|
|
31836
|
-
# Optional. The standard list page token.
|
|
31837
|
-
# @param [String] parent
|
|
31838
|
-
# Required. The resource name of the Location to list the ReasoningEngines from.
|
|
31839
|
-
# Format: `projects/`project`/locations/`location``
|
|
33262
|
+
# Deletes a long-running operation. This method indicates that the client is no
|
|
33263
|
+
# longer interested in the operation result. It does not cancel the operation.
|
|
33264
|
+
# If the server doesn't support this method, it returns `google.rpc.Code.
|
|
33265
|
+
# UNIMPLEMENTED`.
|
|
33266
|
+
# @param [String] name
|
|
33267
|
+
# The name of the operation resource to be deleted.
|
|
31840
33268
|
# @param [String] fields
|
|
31841
33269
|
# Selector specifying which fields to include in a partial response.
|
|
31842
33270
|
# @param [String] quota_user
|
|
@@ -31846,34 +33274,28 @@ module Google
|
|
|
31846
33274
|
# Request-specific options
|
|
31847
33275
|
#
|
|
31848
33276
|
# @yield [result, err] Result & error if block supplied
|
|
31849
|
-
# @yieldparam result [Google::Apis::AiplatformV1::
|
|
33277
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleProtobufEmpty] parsed result object
|
|
31850
33278
|
# @yieldparam err [StandardError] error object if request failed
|
|
31851
33279
|
#
|
|
31852
|
-
# @return [Google::Apis::AiplatformV1::
|
|
33280
|
+
# @return [Google::Apis::AiplatformV1::GoogleProtobufEmpty]
|
|
31853
33281
|
#
|
|
31854
33282
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
31855
33283
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
31856
33284
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
31857
|
-
def
|
|
31858
|
-
command = make_simple_command(:
|
|
31859
|
-
command.response_representation = Google::Apis::AiplatformV1::
|
|
31860
|
-
command.response_class = Google::Apis::AiplatformV1::
|
|
31861
|
-
command.
|
|
31862
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
|
31863
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
|
31864
|
-
command.query['parent'] = parent unless parent.nil?
|
|
33285
|
+
def delete_reasoning_engine_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
33286
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
|
33287
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
|
|
33288
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
|
|
33289
|
+
command.params['name'] = name unless name.nil?
|
|
31865
33290
|
command.query['fields'] = fields unless fields.nil?
|
|
31866
33291
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
31867
33292
|
execute_or_queue_command(command, &block)
|
|
31868
33293
|
end
|
|
31869
33294
|
|
|
31870
|
-
#
|
|
33295
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
|
33296
|
+
# to poll the operation result at intervals as recommended by the API service.
|
|
31871
33297
|
# @param [String] name
|
|
31872
|
-
#
|
|
31873
|
-
# project`/locations/`location`/reasoningEngines/`reasoning_engine``
|
|
31874
|
-
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReasoningEngine] google_cloud_aiplatform_v1_reasoning_engine_object
|
|
31875
|
-
# @param [String] update_mask
|
|
31876
|
-
# Optional. Mask specifying which fields to update.
|
|
33298
|
+
# The name of the operation resource.
|
|
31877
33299
|
# @param [String] fields
|
|
31878
33300
|
# Selector specifying which fields to include in a partial response.
|
|
31879
33301
|
# @param [String] quota_user
|
|
@@ -31891,24 +33313,34 @@ module Google
|
|
|
31891
33313
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
31892
33314
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
31893
33315
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
31894
|
-
def
|
|
31895
|
-
command = make_simple_command(:
|
|
31896
|
-
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ReasoningEngine::Representation
|
|
31897
|
-
command.request_object = google_cloud_aiplatform_v1_reasoning_engine_object
|
|
33316
|
+
def get_reasoning_engine_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
33317
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
31898
33318
|
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
|
31899
33319
|
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
|
31900
33320
|
command.params['name'] = name unless name.nil?
|
|
31901
|
-
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
31902
33321
|
command.query['fields'] = fields unless fields.nil?
|
|
31903
33322
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
31904
33323
|
execute_or_queue_command(command, &block)
|
|
31905
33324
|
end
|
|
31906
33325
|
|
|
31907
|
-
#
|
|
33326
|
+
# Lists operations that match the specified filter in the request. If the server
|
|
33327
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
|
31908
33328
|
# @param [String] name
|
|
31909
|
-
#
|
|
31910
|
-
#
|
|
31911
|
-
#
|
|
33329
|
+
# The name of the operation's parent resource.
|
|
33330
|
+
# @param [String] filter
|
|
33331
|
+
# The standard list filter.
|
|
33332
|
+
# @param [Fixnum] page_size
|
|
33333
|
+
# The standard list page size.
|
|
33334
|
+
# @param [String] page_token
|
|
33335
|
+
# The standard list page token.
|
|
33336
|
+
# @param [Boolean] return_partial_success
|
|
33337
|
+
# When set to `true`, operations that are reachable are returned as normal, and
|
|
33338
|
+
# those that are unreachable are returned in the ListOperationsResponse.
|
|
33339
|
+
# unreachable field. This can only be `true` when reading across collections.
|
|
33340
|
+
# For example, when `parent` is set to `"projects/example/locations/-"`. This
|
|
33341
|
+
# field is not supported by default and will result in an `UNIMPLEMENTED` error
|
|
33342
|
+
# if set unless explicitly documented otherwise in service or product specific
|
|
33343
|
+
# documentation.
|
|
31912
33344
|
# @param [String] fields
|
|
31913
33345
|
# Selector specifying which fields to include in a partial response.
|
|
31914
33346
|
# @param [String] quota_user
|
|
@@ -31918,31 +33350,42 @@ module Google
|
|
|
31918
33350
|
# Request-specific options
|
|
31919
33351
|
#
|
|
31920
33352
|
# @yield [result, err] Result & error if block supplied
|
|
31921
|
-
# @yieldparam result [Google::Apis::AiplatformV1::
|
|
33353
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse] parsed result object
|
|
31922
33354
|
# @yieldparam err [StandardError] error object if request failed
|
|
31923
33355
|
#
|
|
31924
|
-
# @return [Google::Apis::AiplatformV1::
|
|
33356
|
+
# @return [Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse]
|
|
31925
33357
|
#
|
|
31926
33358
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
31927
33359
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
31928
33360
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
31929
|
-
def
|
|
31930
|
-
command = make_simple_command(:
|
|
31931
|
-
command.
|
|
31932
|
-
command.
|
|
31933
|
-
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1QueryReasoningEngineResponse::Representation
|
|
31934
|
-
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1QueryReasoningEngineResponse
|
|
33361
|
+
def list_reasoning_engine_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
33362
|
+
command = make_simple_command(:get, 'v1/{+name}/operations', options)
|
|
33363
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse::Representation
|
|
33364
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse
|
|
31935
33365
|
command.params['name'] = name unless name.nil?
|
|
33366
|
+
command.query['filter'] = filter unless filter.nil?
|
|
33367
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
33368
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
33369
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
|
31936
33370
|
command.query['fields'] = fields unless fields.nil?
|
|
31937
33371
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
31938
33372
|
execute_or_queue_command(command, &block)
|
|
31939
33373
|
end
|
|
31940
33374
|
|
|
31941
|
-
#
|
|
33375
|
+
# Waits until the specified long-running operation is done or reaches at most a
|
|
33376
|
+
# specified timeout, returning the latest state. If the operation is already
|
|
33377
|
+
# done, the latest state is immediately returned. If the timeout specified is
|
|
33378
|
+
# greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If
|
|
33379
|
+
# the server does not support this method, it returns `google.rpc.Code.
|
|
33380
|
+
# UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return
|
|
33381
|
+
# the latest state before the specified timeout (including immediately), meaning
|
|
33382
|
+
# even an immediate response is no guarantee that the operation is done.
|
|
31942
33383
|
# @param [String] name
|
|
31943
|
-
#
|
|
31944
|
-
#
|
|
31945
|
-
#
|
|
33384
|
+
# The name of the operation resource to wait on.
|
|
33385
|
+
# @param [String] timeout
|
|
33386
|
+
# The maximum duration to wait before timing out. If left blank, the wait will
|
|
33387
|
+
# be at most the time permitted by the underlying HTTP/RPC protocol. If RPC
|
|
33388
|
+
# context deadline is also specified, the shorter one will be used.
|
|
31946
33389
|
# @param [String] fields
|
|
31947
33390
|
# Selector specifying which fields to include in a partial response.
|
|
31948
33391
|
# @param [String] quota_user
|
|
@@ -31952,21 +33395,20 @@ module Google
|
|
|
31952
33395
|
# Request-specific options
|
|
31953
33396
|
#
|
|
31954
33397
|
# @yield [result, err] Result & error if block supplied
|
|
31955
|
-
# @yieldparam result [Google::Apis::AiplatformV1::
|
|
33398
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
|
|
31956
33399
|
# @yieldparam err [StandardError] error object if request failed
|
|
31957
33400
|
#
|
|
31958
|
-
# @return [Google::Apis::AiplatformV1::
|
|
33401
|
+
# @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
|
|
31959
33402
|
#
|
|
31960
33403
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
31961
33404
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
31962
33405
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
31963
|
-
def
|
|
31964
|
-
command = make_simple_command(:post, 'v1/{+name}:
|
|
31965
|
-
command.
|
|
31966
|
-
command.
|
|
31967
|
-
command.response_representation = Google::Apis::AiplatformV1::GoogleApiHttpBody::Representation
|
|
31968
|
-
command.response_class = Google::Apis::AiplatformV1::GoogleApiHttpBody
|
|
33406
|
+
def wait_reasoning_engine_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
33407
|
+
command = make_simple_command(:post, 'v1/{+name}:wait', options)
|
|
33408
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
|
33409
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
|
31969
33410
|
command.params['name'] = name unless name.nil?
|
|
33411
|
+
command.query['timeout'] = timeout unless timeout.nil?
|
|
31970
33412
|
command.query['fields'] = fields unless fields.nil?
|
|
31971
33413
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
31972
33414
|
execute_or_queue_command(command, &block)
|
|
@@ -31999,7 +33441,7 @@ module Google
|
|
|
31999
33441
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
32000
33442
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
32001
33443
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
32002
|
-
def
|
|
33444
|
+
def cancel_reasoning_engine_session_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
32003
33445
|
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
|
32004
33446
|
command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
|
|
32005
33447
|
command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
|
|
@@ -32032,7 +33474,7 @@ module Google
|
|
|
32032
33474
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
32033
33475
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
32034
33476
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
32035
|
-
def
|
|
33477
|
+
def delete_reasoning_engine_session_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
32036
33478
|
command = make_simple_command(:delete, 'v1/{+name}', options)
|
|
32037
33479
|
command.response_representation = Google::Apis::AiplatformV1::GoogleProtobufEmpty::Representation
|
|
32038
33480
|
command.response_class = Google::Apis::AiplatformV1::GoogleProtobufEmpty
|
|
@@ -32063,7 +33505,7 @@ module Google
|
|
|
32063
33505
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
32064
33506
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
32065
33507
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
32066
|
-
def
|
|
33508
|
+
def get_reasoning_engine_session_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
32067
33509
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
32068
33510
|
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
|
32069
33511
|
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
|
@@ -32108,7 +33550,7 @@ module Google
|
|
|
32108
33550
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
32109
33551
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
32110
33552
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
32111
|
-
def
|
|
33553
|
+
def list_reasoning_engine_session_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
32112
33554
|
command = make_simple_command(:get, 'v1/{+name}/operations', options)
|
|
32113
33555
|
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse::Representation
|
|
32114
33556
|
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningListOperationsResponse
|
|
@@ -32153,7 +33595,7 @@ module Google
|
|
|
32153
33595
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
32154
33596
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
32155
33597
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
32156
|
-
def
|
|
33598
|
+
def wait_reasoning_engine_session_operation(name, timeout: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
32157
33599
|
command = make_simple_command(:post, 'v1/{+name}:wait', options)
|
|
32158
33600
|
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
|
32159
33601
|
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
|
@@ -34041,6 +35483,99 @@ module Google
|
|
|
34041
35483
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
34042
35484
|
execute_or_queue_command(command, &block)
|
|
34043
35485
|
end
|
|
35486
|
+
|
|
35487
|
+
# Evaluates a dataset based on a set of given metrics.
|
|
35488
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluateDatasetRequest] google_cloud_aiplatform_v1_evaluate_dataset_request_object
|
|
35489
|
+
# @param [String] fields
|
|
35490
|
+
# Selector specifying which fields to include in a partial response.
|
|
35491
|
+
# @param [String] quota_user
|
|
35492
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
35493
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
35494
|
+
# @param [Google::Apis::RequestOptions] options
|
|
35495
|
+
# Request-specific options
|
|
35496
|
+
#
|
|
35497
|
+
# @yield [result, err] Result & error if block supplied
|
|
35498
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleLongrunningOperation] parsed result object
|
|
35499
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
35500
|
+
#
|
|
35501
|
+
# @return [Google::Apis::AiplatformV1::GoogleLongrunningOperation]
|
|
35502
|
+
#
|
|
35503
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
35504
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
35505
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
35506
|
+
def evaluate_dataset(google_cloud_aiplatform_v1_evaluate_dataset_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
35507
|
+
command = make_simple_command(:post, 'v1:evaluateDataset', options)
|
|
35508
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluateDatasetRequest::Representation
|
|
35509
|
+
command.request_object = google_cloud_aiplatform_v1_evaluate_dataset_request_object
|
|
35510
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleLongrunningOperation::Representation
|
|
35511
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleLongrunningOperation
|
|
35512
|
+
command.query['fields'] = fields unless fields.nil?
|
|
35513
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
35514
|
+
execute_or_queue_command(command, &block)
|
|
35515
|
+
end
|
|
35516
|
+
|
|
35517
|
+
# Evaluates instances based on a given metric.
|
|
35518
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluateInstancesRequest] google_cloud_aiplatform_v1_evaluate_instances_request_object
|
|
35519
|
+
# @param [String] fields
|
|
35520
|
+
# Selector specifying which fields to include in a partial response.
|
|
35521
|
+
# @param [String] quota_user
|
|
35522
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
35523
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
35524
|
+
# @param [Google::Apis::RequestOptions] options
|
|
35525
|
+
# Request-specific options
|
|
35526
|
+
#
|
|
35527
|
+
# @yield [result, err] Result & error if block supplied
|
|
35528
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluateInstancesResponse] parsed result object
|
|
35529
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
35530
|
+
#
|
|
35531
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluateInstancesResponse]
|
|
35532
|
+
#
|
|
35533
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
35534
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
35535
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
35536
|
+
def evaluate_instances(google_cloud_aiplatform_v1_evaluate_instances_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
35537
|
+
command = make_simple_command(:post, 'v1:evaluateInstances', options)
|
|
35538
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluateInstancesRequest::Representation
|
|
35539
|
+
command.request_object = google_cloud_aiplatform_v1_evaluate_instances_request_object
|
|
35540
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluateInstancesResponse::Representation
|
|
35541
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluateInstancesResponse
|
|
35542
|
+
command.query['fields'] = fields unless fields.nil?
|
|
35543
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
35544
|
+
execute_or_queue_command(command, &block)
|
|
35545
|
+
end
|
|
35546
|
+
|
|
35547
|
+
# Generates rubrics for a given prompt. A rubric represents a single testable
|
|
35548
|
+
# criterion for evaluation. One input prompt could have multiple rubrics This
|
|
35549
|
+
# RPC allows users to get suggested rubrics based on provided prompt, which can
|
|
35550
|
+
# then be reviewed and used for subsequent evaluations.
|
|
35551
|
+
# @param [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateInstanceRubricsRequest] google_cloud_aiplatform_v1_generate_instance_rubrics_request_object
|
|
35552
|
+
# @param [String] fields
|
|
35553
|
+
# Selector specifying which fields to include in a partial response.
|
|
35554
|
+
# @param [String] quota_user
|
|
35555
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
35556
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
35557
|
+
# @param [Google::Apis::RequestOptions] options
|
|
35558
|
+
# Request-specific options
|
|
35559
|
+
#
|
|
35560
|
+
# @yield [result, err] Result & error if block supplied
|
|
35561
|
+
# @yieldparam result [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateInstanceRubricsResponse] parsed result object
|
|
35562
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
35563
|
+
#
|
|
35564
|
+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateInstanceRubricsResponse]
|
|
35565
|
+
#
|
|
35566
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
35567
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
35568
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
35569
|
+
def generate_instance_rubrics(google_cloud_aiplatform_v1_generate_instance_rubrics_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
35570
|
+
command = make_simple_command(:post, 'v1:generateInstanceRubrics', options)
|
|
35571
|
+
command.request_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateInstanceRubricsRequest::Representation
|
|
35572
|
+
command.request_object = google_cloud_aiplatform_v1_generate_instance_rubrics_request_object
|
|
35573
|
+
command.response_representation = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateInstanceRubricsResponse::Representation
|
|
35574
|
+
command.response_class = Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateInstanceRubricsResponse
|
|
35575
|
+
command.query['fields'] = fields unless fields.nil?
|
|
35576
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
35577
|
+
execute_or_queue_command(command, &block)
|
|
35578
|
+
end
|
|
34044
35579
|
|
|
34045
35580
|
protected
|
|
34046
35581
|
|