google-apis-aiplatform_v1beta1 0.56.0 → 0.58.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.
@@ -1350,6 +1350,42 @@ module Google
1350
1350
  execute_or_queue_command(command, &block)
1351
1351
  end
1352
1352
 
1353
+ # Gets a Model's spec recommendations. This API is called by UI, SDK, and
1354
+ # internal.
1355
+ # @param [String] parent
1356
+ # Required. The resource name of the Location from which to recommend specs. The
1357
+ # users must have permission to make a call in the project. Format: `projects/`
1358
+ # project`/locations/`location``.
1359
+ # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RecommendSpecRequest] google_cloud_aiplatform_v1beta1_recommend_spec_request_object
1360
+ # @param [String] fields
1361
+ # Selector specifying which fields to include in a partial response.
1362
+ # @param [String] quota_user
1363
+ # Available to use for quota purposes for server-side applications. Can be any
1364
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1365
+ # @param [Google::Apis::RequestOptions] options
1366
+ # Request-specific options
1367
+ #
1368
+ # @yield [result, err] Result & error if block supplied
1369
+ # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RecommendSpecResponse] parsed result object
1370
+ # @yieldparam err [StandardError] error object if request failed
1371
+ #
1372
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RecommendSpecResponse]
1373
+ #
1374
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1375
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1376
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1377
+ def recommend_project_location_spec(parent, google_cloud_aiplatform_v1beta1_recommend_spec_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1378
+ command = make_simple_command(:post, 'v1beta1/{+parent}:recommendSpec', options)
1379
+ command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RecommendSpecRequest::Representation
1380
+ command.request_object = google_cloud_aiplatform_v1beta1_recommend_spec_request_object
1381
+ command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RecommendSpecResponse::Representation
1382
+ command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RecommendSpecResponse
1383
+ command.params['parent'] = parent unless parent.nil?
1384
+ command.query['fields'] = fields unless fields.nil?
1385
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1386
+ execute_or_queue_command(command, &block)
1387
+ end
1388
+
1353
1389
  # Retrieves relevant contexts for a query.
1354
1390
  # @param [String] parent
1355
1391
  # Required. The resource name of the Location from which to retrieve RagContexts.
@@ -28441,6 +28477,40 @@ module Google
28441
28477
  execute_or_queue_command(command, &block)
28442
28478
  end
28443
28479
 
28480
+ # Optimizes a prompt.
28481
+ # @param [String] parent
28482
+ # Required. The resource name of the Location to optimize the prompt in. Format:
28483
+ # `projects/`project`/locations/`location``
28484
+ # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1OptimizePromptRequest] google_cloud_aiplatform_v1beta1_optimize_prompt_request_object
28485
+ # @param [String] fields
28486
+ # Selector specifying which fields to include in a partial response.
28487
+ # @param [String] quota_user
28488
+ # Available to use for quota purposes for server-side applications. Can be any
28489
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
28490
+ # @param [Google::Apis::RequestOptions] options
28491
+ # Request-specific options
28492
+ #
28493
+ # @yield [result, err] Result & error if block supplied
28494
+ # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1OptimizePromptResponse] parsed result object
28495
+ # @yieldparam err [StandardError] error object if request failed
28496
+ #
28497
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1OptimizePromptResponse]
28498
+ #
28499
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
28500
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
28501
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
28502
+ def optimize_project_location_tuning_job_prompt(parent, google_cloud_aiplatform_v1beta1_optimize_prompt_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
28503
+ command = make_simple_command(:post, 'v1beta1/{+parent}/tuningJobs:optimizePrompt', options)
28504
+ command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1OptimizePromptRequest::Representation
28505
+ command.request_object = google_cloud_aiplatform_v1beta1_optimize_prompt_request_object
28506
+ command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1OptimizePromptResponse::Representation
28507
+ command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1OptimizePromptResponse
28508
+ command.params['parent'] = parent unless parent.nil?
28509
+ command.query['fields'] = fields unless fields.nil?
28510
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
28511
+ execute_or_queue_command(command, &block)
28512
+ end
28513
+
28444
28514
  # Rebase a TunedModel.
28445
28515
  # @param [String] parent
28446
28516
  # Required. The resource name of the Location into which to rebase the Model.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-aiplatform_v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.56.0
4
+ version: 0.58.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-aiplatform_v1beta1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-aiplatform_v1beta1/v0.56.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-aiplatform_v1beta1/v0.58.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-aiplatform_v1beta1
62
62
  rdoc_options: []
63
63
  require_paths: