google-apis-aiplatform_v1beta1 0.38.0 → 0.39.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 59616e0ebdb58072ff352ed9a3ebc893c36b6169a5deda265120403ad53a64b1
4
- data.tar.gz: 3aed174affe046f5a077eeaaec40a7cf29ba07a3859a8559c838f67976411a24
3
+ metadata.gz: e86d3e365fd2fb23a02b73141e3636a0a9ad9c0513862e4c58b8abd25e00cf21
4
+ data.tar.gz: 7567569f5b78a948719d360b2c5351993308a6660d86ef0bd094d63417f1f7af
5
5
  SHA512:
6
- metadata.gz: cdffffdb55a68a1d88f1dc5190d8030d274c19f0a59f9e58506b91efdf49326e0242c154d658acaef2104e9efffa711595bcae39c430df287b07338cbc0bb21d
7
- data.tar.gz: 4f722fb6ece61662d06b8f72312e36a679184309faa8423936fb7127c72dc9921e2610b074f2b1de8b938d2f02b1129fc8048e4dfbc89744934155a908c75c6b
6
+ metadata.gz: c0dc4200a261556545412d33423c177a33dd570bb1872a846630304038c8e2690cdc3dadf67a889f941f413013cc9e864dd3038fa3a1fef3fd6b76ebfde42222
7
+ data.tar.gz: 30cfcf950dc5bc92d63c6a974ef89e0843e0a3e2bbf2737a8b21e2e7dc2479b150fe799caf073f0355811ff693db43357a45523ab0cfe2c273b2b9130178d43f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-aiplatform_v1beta1
2
2
 
3
+ ### v0.39.0 (2025-03-16)
4
+
5
+ * Regenerated from discovery document revision 20250304
6
+
3
7
  ### v0.38.0 (2025-03-09)
4
8
 
5
9
  * Regenerated from discovery document revision 20250226
@@ -1370,12 +1370,12 @@ module Google
1370
1370
  # @return [String]
1371
1371
  attr_accessor :api_key_string
1372
1372
 
1373
- # Required. The location of the API key.
1373
+ # Optional. The location of the API key.
1374
1374
  # Corresponds to the JSON property `httpElementLocation`
1375
1375
  # @return [String]
1376
1376
  attr_accessor :http_element_location
1377
1377
 
1378
- # Required. The parameter name of the API key. E.g. If the API request is "https:
1378
+ # Optional. The parameter name of the API key. E.g. If the API request is "https:
1379
1379
  # //example.com/act?api_key=", "api_key" would be the parameter name.
1380
1380
  # Corresponds to the JSON property `name`
1381
1381
  # @return [String]
@@ -6390,7 +6390,7 @@ module Google
6390
6390
  # publisher_model`@`version_id``, or `publishers/hf-`hugging-face-author`/models/
6391
6391
  # `hugging-face-model-name`@001`. 2. Hugging Face model ID like `google/gemma-2-
6392
6392
  # 2b-it`. 3. Custom model Google Cloud Storage URI like `gs://bucket`. 4. Custom
6393
- # model zip file like `https://abc.com/a.zip`.
6393
+ # model zip file like `https://example.com/a.zip`.
6394
6394
  # Corresponds to the JSON property `model`
6395
6395
  # @return [String]
6396
6396
  attr_accessor :model
@@ -7246,9 +7246,10 @@ module Google
7246
7246
  # @return [Fixnum]
7247
7247
  attr_accessor :boot_disk_size_gb
7248
7248
 
7249
- # Type of the boot disk (default is "pd-ssd"). Valid values: "pd-ssd" (
7250
- # Persistent Disk Solid State Drive) or "pd-standard" (Persistent Disk Hard Disk
7251
- # Drive).
7249
+ # Type of the boot disk. For non-A3U machines, the default value is "pd-ssd",
7250
+ # for A3U machines, the default value is "hyperdisk-balanced". Valid values: "pd-
7251
+ # ssd" (Persistent Disk Solid State Drive), "pd-standard" (Persistent Disk Hard
7252
+ # Disk Drive) or "hyperdisk-balanced".
7252
7253
  # Corresponds to the JSON property `bootDiskType`
7253
7254
  # @return [String]
7254
7255
  attr_accessor :boot_disk_type
@@ -13604,6 +13605,11 @@ module Google
13604
13605
  # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModalityTokenCount>]
13605
13606
  attr_accessor :prompt_tokens_details
13606
13607
 
13608
+ # Output only. Number of tokens present in thoughts output.
13609
+ # Corresponds to the JSON property `thoughtsTokenCount`
13610
+ # @return [Fixnum]
13611
+ attr_accessor :thoughts_token_count
13612
+
13607
13613
  # Output only. Number of tokens present in tool-use prompt(s).
13608
13614
  # Corresponds to the JSON property `toolUsePromptTokenCount`
13609
13615
  # @return [Fixnum]
@@ -13633,6 +13639,7 @@ module Google
13633
13639
  @candidates_tokens_details = args[:candidates_tokens_details] if args.key?(:candidates_tokens_details)
13634
13640
  @prompt_token_count = args[:prompt_token_count] if args.key?(:prompt_token_count)
13635
13641
  @prompt_tokens_details = args[:prompt_tokens_details] if args.key?(:prompt_tokens_details)
13642
+ @thoughts_token_count = args[:thoughts_token_count] if args.key?(:thoughts_token_count)
13636
13643
  @tool_use_prompt_token_count = args[:tool_use_prompt_token_count] if args.key?(:tool_use_prompt_token_count)
13637
13644
  @tool_use_prompt_tokens_details = args[:tool_use_prompt_tokens_details] if args.key?(:tool_use_prompt_tokens_details)
13638
13645
  @total_token_count = args[:total_token_count] if args.key?(:total_token_count)
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module AiplatformV1beta1
18
18
  # Version of the google-apis-aiplatform_v1beta1 gem
19
- GEM_VERSION = "0.38.0"
19
+ GEM_VERSION = "0.39.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.16.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250226"
25
+ REVISION = "20250304"
26
26
  end
27
27
  end
28
28
  end
@@ -11359,6 +11359,7 @@ module Google
11359
11359
  property :prompt_token_count, as: 'promptTokenCount'
11360
11360
  collection :prompt_tokens_details, as: 'promptTokensDetails', class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModalityTokenCount, decorator: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModalityTokenCount::Representation
11361
11361
 
11362
+ property :thoughts_token_count, as: 'thoughtsTokenCount'
11362
11363
  property :tool_use_prompt_token_count, as: 'toolUsePromptTokenCount'
11363
11364
  collection :tool_use_prompt_tokens_details, as: 'toolUsePromptTokensDetails', class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModalityTokenCount, decorator: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModalityTokenCount::Representation
11364
11365
 
@@ -816,6 +816,40 @@ module Google
816
816
  execute_or_queue_command(command, &block)
817
817
  end
818
818
 
819
+ # Deploys a model to a new endpoint.
820
+ # @param [String] destination
821
+ # Required. The resource name of the Location to deploy the model in. Format: `
822
+ # projects/`project`/locations/`location``
823
+ # @param [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DeployRequest] google_cloud_aiplatform_v1beta1_deploy_request_object
824
+ # @param [String] fields
825
+ # Selector specifying which fields to include in a partial response.
826
+ # @param [String] quota_user
827
+ # Available to use for quota purposes for server-side applications. Can be any
828
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
829
+ # @param [Google::Apis::RequestOptions] options
830
+ # Request-specific options
831
+ #
832
+ # @yield [result, err] Result & error if block supplied
833
+ # @yieldparam result [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation] parsed result object
834
+ # @yieldparam err [StandardError] error object if request failed
835
+ #
836
+ # @return [Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation]
837
+ #
838
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
839
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
840
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
841
+ def deploy_project_location(destination, google_cloud_aiplatform_v1beta1_deploy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
842
+ command = make_simple_command(:post, 'v1beta1/{+destination}:deploy', options)
843
+ command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DeployRequest::Representation
844
+ command.request_object = google_cloud_aiplatform_v1beta1_deploy_request_object
845
+ command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
846
+ command.response_class = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation
847
+ command.params['destination'] = destination unless destination.nil?
848
+ command.query['fields'] = fields unless fields.nil?
849
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
850
+ execute_or_queue_command(command, &block)
851
+ end
852
+
819
853
  # Deploys publisher models.
820
854
  # @param [String] destination
821
855
  # Required. The resource name of the Location to deploy the model in. Format: `
@@ -838,8 +872,8 @@ module Google
838
872
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
839
873
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
840
874
  # @raise [Google::Apis::AuthorizationError] Authorization is required
841
- def deploy_project_location(destination, google_cloud_aiplatform_v1beta1_deploy_publisher_model_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
842
- command = make_simple_command(:post, 'v1beta1/{+destination}:deploy', options)
875
+ def deploy_project_location_publisher_model(destination, google_cloud_aiplatform_v1beta1_deploy_publisher_model_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
876
+ command = make_simple_command(:post, 'v1beta1/{+destination}:deployPublisherModel', options)
843
877
  command.request_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DeployPublisherModelRequest::Representation
844
878
  command.request_object = google_cloud_aiplatform_v1beta1_deploy_publisher_model_request_object
845
879
  command.response_representation = Google::Apis::AiplatformV1beta1::GoogleLongrunningOperation::Representation
@@ -25815,6 +25849,9 @@ module Google
25815
25849
  # publisher`/models/`publisher_model``
25816
25850
  # @param [String] hugging_face_token
25817
25851
  # Optional. Token used to access Hugging Face gated models.
25852
+ # @param [Boolean] include_equivalent_model_garden_model_deployment_configs
25853
+ # Optional. Whether to cnclude the deployment configs from the equivalent Model
25854
+ # Garden model if the requested model is a Hugging Face model.
25818
25855
  # @param [Boolean] is_hugging_face_model
25819
25856
  # Optional. Boolean indicates whether the requested model is a Hugging Face
25820
25857
  # model.
@@ -25840,12 +25877,13 @@ module Google
25840
25877
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
25841
25878
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
25842
25879
  # @raise [Google::Apis::AuthorizationError] Authorization is required
25843
- 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)
25880
+ def get_publisher_model(name, hugging_face_token: nil, include_equivalent_model_garden_model_deployment_configs: nil, is_hugging_face_model: nil, language_code: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
25844
25881
  command = make_simple_command(:get, 'v1beta1/{+name}', options)
25845
25882
  command.response_representation = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModel::Representation
25846
25883
  command.response_class = Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PublisherModel
25847
25884
  command.params['name'] = name unless name.nil?
25848
25885
  command.query['huggingFaceToken'] = hugging_face_token unless hugging_face_token.nil?
25886
+ command.query['includeEquivalentModelGardenModelDeploymentConfigs'] = include_equivalent_model_garden_model_deployment_configs unless include_equivalent_model_garden_model_deployment_configs.nil?
25849
25887
  command.query['isHuggingFaceModel'] = is_hugging_face_model unless is_hugging_face_model.nil?
25850
25888
  command.query['languageCode'] = language_code unless language_code.nil?
25851
25889
  command.query['view'] = view unless view.nil?
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-aiplatform_v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.38.0
4
+ version: 0.39.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-03-09 00:00:00.000000000 Z
10
+ date: 2025-03-16 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: google-apis-core
@@ -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.38.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-aiplatform_v1beta1/v0.39.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: