google-apis-aiplatform_v1beta1 0.55.0 → 0.57.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.
@@ -28441,6 +28441,40 @@ module Google
28441
28441
  execute_or_queue_command(command, &block)
28442
28442
  end
28443
28443
 
28444
+ # Optimizes a prompt.
28445
+ # @param [String] parent
28446
+ # Required. The resource name of the Location to optimize the prompt in. Format:
28447
+ # `projects/`project`/locations/`location``
28448
+ # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1OptimizePromptRequest] google_cloud_aiplatform_v1beta1_optimize_prompt_request_object
28449
+ # @param [String] fields
28450
+ # Selector specifying which fields to include in a partial response.
28451
+ # @param [String] quota_user
28452
+ # Available to use for quota purposes for server-side applications. Can be any
28453
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
28454
+ # @param [Google::Apis::RequestOptions] options
28455
+ # Request-specific options
28456
+ #
28457
+ # @yield [result, err] Result & error if block supplied
28458
+ # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1OptimizePromptResponse] parsed result object
28459
+ # @yieldparam err [StandardError] error object if request failed
28460
+ #
28461
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1OptimizePromptResponse]
28462
+ #
28463
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
28464
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
28465
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
28466
+ 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)
28467
+ command = make_simple_command(:post, 'v1beta1/{+parent}/tuningJobs:optimizePrompt', options)
28468
+ command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1OptimizePromptRequest::Representation
28469
+ command.request_object = google_cloud_aiplatform_v1beta1_optimize_prompt_request_object
28470
+ command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1OptimizePromptResponse::Representation
28471
+ command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1OptimizePromptResponse
28472
+ command.params['parent'] = parent unless parent.nil?
28473
+ command.query['fields'] = fields unless fields.nil?
28474
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
28475
+ execute_or_queue_command(command, &block)
28476
+ end
28477
+
28444
28478
  # Rebase a TunedModel.
28445
28479
  # @param [String] parent
28446
28480
  # 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.55.0
4
+ version: 0.57.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.55.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-aiplatform_v1beta1/v0.57.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: