Skip to content

Commit aa47ae3

Browse files
feat: Automated regeneration of aiplatform v1 client (googleapis#22131)
Auto-created at 2025-03-16 10:44:46 +0000 using the toys pull request generator.
1 parent bf2f1f0 commit aa47ae3

File tree

5 files changed

+112
-5
lines changed

5 files changed

+112
-5
lines changed

api_names_out.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8198,6 +8198,7 @@
81988198
"/aiplatform:v1/GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata/promptTokenCount": prompt_token_count
81998199
"/aiplatform:v1/GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata/promptTokensDetails": prompt_tokens_details
82008200
"/aiplatform:v1/GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata/promptTokensDetails/prompt_tokens_detail": prompt_tokens_detail
8201+
"/aiplatform:v1/GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata/thoughtsTokenCount": thoughts_token_count
82018202
"/aiplatform:v1/GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata/toolUsePromptTokenCount": tool_use_prompt_token_count
82028203
"/aiplatform:v1/GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata/toolUsePromptTokensDetails": tool_use_prompt_tokens_details
82038204
? "/aiplatform:v1/GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata/toolUsePromptTokensDetails/tool_use_prompt_tokens_detail"
@@ -8377,6 +8378,7 @@
83778378
"/aiplatform:v1/GoogleCloudAiplatformV1ImportRagFilesConfig/maxEmbeddingRequestsPerMin": max_embedding_requests_per_min
83788379
"/aiplatform:v1/GoogleCloudAiplatformV1ImportRagFilesConfig/partialFailureBigquerySink": partial_failure_bigquery_sink
83798380
"/aiplatform:v1/GoogleCloudAiplatformV1ImportRagFilesConfig/partialFailureGcsSink": partial_failure_gcs_sink
8381+
"/aiplatform:v1/GoogleCloudAiplatformV1ImportRagFilesConfig/ragFileParsingConfig": rag_file_parsing_config
83808382
"/aiplatform:v1/GoogleCloudAiplatformV1ImportRagFilesConfig/ragFileTransformationConfig": rag_file_transformation_config
83818383
"/aiplatform:v1/GoogleCloudAiplatformV1ImportRagFilesConfig/sharePointSources": share_point_sources
83828384
"/aiplatform:v1/GoogleCloudAiplatformV1ImportRagFilesConfig/slackSource": slack_source
@@ -9799,6 +9801,11 @@
97999801
"/aiplatform:v1/GoogleCloudAiplatformV1RagFileChunkingConfigFixedLengthChunking": google_cloud_aiplatform_v1_rag_file_chunking_config_fixed_length_chunking
98009802
"/aiplatform:v1/GoogleCloudAiplatformV1RagFileChunkingConfigFixedLengthChunking/chunkOverlap": chunk_overlap
98019803
"/aiplatform:v1/GoogleCloudAiplatformV1RagFileChunkingConfigFixedLengthChunking/chunkSize": chunk_size
9804+
"/aiplatform:v1/GoogleCloudAiplatformV1RagFileParsingConfig": google_cloud_aiplatform_v1_rag_file_parsing_config
9805+
"/aiplatform:v1/GoogleCloudAiplatformV1RagFileParsingConfig/layoutParser": layout_parser
9806+
"/aiplatform:v1/GoogleCloudAiplatformV1RagFileParsingConfigLayoutParser": google_cloud_aiplatform_v1_rag_file_parsing_config_layout_parser
9807+
"/aiplatform:v1/GoogleCloudAiplatformV1RagFileParsingConfigLayoutParser/maxParsingRequestsPerMin": max_parsing_requests_per_min
9808+
"/aiplatform:v1/GoogleCloudAiplatformV1RagFileParsingConfigLayoutParser/processorName": processor_name
98029809
"/aiplatform:v1/GoogleCloudAiplatformV1RagFileTransformationConfig": google_cloud_aiplatform_v1_rag_file_transformation_config
98039810
"/aiplatform:v1/GoogleCloudAiplatformV1RagFileTransformationConfig/ragFileChunkingConfig": rag_file_chunking_config
98049811
"/aiplatform:v1/GoogleCloudAiplatformV1RagQuery": google_cloud_aiplatform_v1_rag_query

generated/google-apis-aiplatform_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-aiplatform_v1
22

3+
### v0.46.0 (2025-03-16)
4+
5+
* Regenerated from discovery document revision 20250304
6+
37
### v0.45.0 (2025-03-09)
48

59
* Regenerated from discovery document revision 20250226

generated/google-apis-aiplatform_v1/lib/google/apis/aiplatform_v1/classes.rb

Lines changed: 68 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6443,9 +6443,10 @@ class GoogleCloudAiplatformV1DiskSpec
64436443
# @return [Fixnum]
64446444
attr_accessor :boot_disk_size_gb
64456445

6446-
# Type of the boot disk (default is "pd-ssd"). Valid values: "pd-ssd" (
6447-
# Persistent Disk Solid State Drive) or "pd-standard" (Persistent Disk Hard Disk
6448-
# Drive).
6446+
# Type of the boot disk. For non-A3U machines, the default value is "pd-ssd",
6447+
# for A3U machines, the default value is "hyperdisk-balanced". Valid values: "pd-
6448+
# ssd" (Persistent Disk Solid State Drive), "pd-standard" (Persistent Disk Hard
6449+
# Disk Drive) or "hyperdisk-balanced".
64496450
# Corresponds to the JSON property `bootDiskType`
64506451
# @return [String]
64516452
attr_accessor :boot_disk_type
@@ -11870,6 +11871,11 @@ class GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata
1187011871
# @return [Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ModalityTokenCount>]
1187111872
attr_accessor :prompt_tokens_details
1187211873

11874+
# Output only. Number of tokens present in thoughts output.
11875+
# Corresponds to the JSON property `thoughtsTokenCount`
11876+
# @return [Fixnum]
11877+
attr_accessor :thoughts_token_count
11878+
1187311879
# Output only. Number of tokens present in tool-use prompt(s).
1187411880
# Corresponds to the JSON property `toolUsePromptTokenCount`
1187511881
# @return [Fixnum]
@@ -11899,6 +11905,7 @@ def update!(**args)
1189911905
@candidates_tokens_details = args[:candidates_tokens_details] if args.key?(:candidates_tokens_details)
1190011906
@prompt_token_count = args[:prompt_token_count] if args.key?(:prompt_token_count)
1190111907
@prompt_tokens_details = args[:prompt_tokens_details] if args.key?(:prompt_tokens_details)
11908+
@thoughts_token_count = args[:thoughts_token_count] if args.key?(:thoughts_token_count)
1190211909
@tool_use_prompt_token_count = args[:tool_use_prompt_token_count] if args.key?(:tool_use_prompt_token_count)
1190311910
@tool_use_prompt_tokens_details = args[:tool_use_prompt_tokens_details] if args.key?(:tool_use_prompt_tokens_details)
1190411911
@total_token_count = args[:total_token_count] if args.key?(:total_token_count)
@@ -13085,6 +13092,11 @@ class GoogleCloudAiplatformV1ImportRagFilesConfig
1308513092
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GcsDestination]
1308613093
attr_accessor :partial_failure_gcs_sink
1308713094

13095+
# Specifies the parsing config for RagFiles.
13096+
# Corresponds to the JSON property `ragFileParsingConfig`
13097+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagFileParsingConfig]
13098+
attr_accessor :rag_file_parsing_config
13099+
1308813100
# Specifies the transformation config for RagFiles.
1308913101
# Corresponds to the JSON property `ragFileTransformationConfig`
1309013102
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagFileTransformationConfig]
@@ -13112,6 +13124,7 @@ def update!(**args)
1311213124
@max_embedding_requests_per_min = args[:max_embedding_requests_per_min] if args.key?(:max_embedding_requests_per_min)
1311313125
@partial_failure_bigquery_sink = args[:partial_failure_bigquery_sink] if args.key?(:partial_failure_bigquery_sink)
1311413126
@partial_failure_gcs_sink = args[:partial_failure_gcs_sink] if args.key?(:partial_failure_gcs_sink)
13127+
@rag_file_parsing_config = args[:rag_file_parsing_config] if args.key?(:rag_file_parsing_config)
1311513128
@rag_file_transformation_config = args[:rag_file_transformation_config] if args.key?(:rag_file_transformation_config)
1311613129
@share_point_sources = args[:share_point_sources] if args.key?(:share_point_sources)
1311713130
@slack_source = args[:slack_source] if args.key?(:slack_source)
@@ -23546,6 +23559,58 @@ def update!(**args)
2354623559
end
2354723560
end
2354823561

23562+
# Specifies the parsing config for RagFiles.
23563+
class GoogleCloudAiplatformV1RagFileParsingConfig
23564+
include Google::Apis::Core::Hashable
23565+
23566+
# Document AI Layout Parser config.
23567+
# Corresponds to the JSON property `layoutParser`
23568+
# @return [Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagFileParsingConfigLayoutParser]
23569+
attr_accessor :layout_parser
23570+
23571+
def initialize(**args)
23572+
update!(**args)
23573+
end
23574+
23575+
# Update properties of this object
23576+
def update!(**args)
23577+
@layout_parser = args[:layout_parser] if args.key?(:layout_parser)
23578+
end
23579+
end
23580+
23581+
# Document AI Layout Parser config.
23582+
class GoogleCloudAiplatformV1RagFileParsingConfigLayoutParser
23583+
include Google::Apis::Core::Hashable
23584+
23585+
# The maximum number of requests the job is allowed to make to the Document AI
23586+
# processor per minute. Consult https://cloud.google.com/document-ai/quotas and
23587+
# the Quota page for your project to set an appropriate value here. If
23588+
# unspecified, a default value of 120 QPM would be used.
23589+
# Corresponds to the JSON property `maxParsingRequestsPerMin`
23590+
# @return [Fixnum]
23591+
attr_accessor :max_parsing_requests_per_min
23592+
23593+
# The full resource name of a Document AI processor or processor version. The
23594+
# processor must have type `LAYOUT_PARSER_PROCESSOR`. If specified, the `
23595+
# additional_config.parse_as_scanned_pdf` field must be false. Format: * `
23596+
# projects/`project_id`/locations/`location`/processors/`processor_id`` * `
23597+
# projects/`project_id`/locations/`location`/processors/`processor_id`/
23598+
# processorVersions/`processor_version_id``
23599+
# Corresponds to the JSON property `processorName`
23600+
# @return [String]
23601+
attr_accessor :processor_name
23602+
23603+
def initialize(**args)
23604+
update!(**args)
23605+
end
23606+
23607+
# Update properties of this object
23608+
def update!(**args)
23609+
@max_parsing_requests_per_min = args[:max_parsing_requests_per_min] if args.key?(:max_parsing_requests_per_min)
23610+
@processor_name = args[:processor_name] if args.key?(:processor_name)
23611+
end
23612+
end
23613+
2354923614
# Specifies the transformation config for RagFiles.
2355023615
class GoogleCloudAiplatformV1RagFileTransformationConfig
2355123616
include Google::Apis::Core::Hashable

generated/google-apis-aiplatform_v1/lib/google/apis/aiplatform_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module AiplatformV1
1818
# Version of the google-apis-aiplatform_v1 gem
19-
GEM_VERSION = "0.45.0"
19+
GEM_VERSION = "0.46.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.16.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250226"
25+
REVISION = "20250304"
2626
end
2727
end
2828
end

generated/google-apis-aiplatform_v1/lib/google/apis/aiplatform_v1/representations.rb

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3814,6 +3814,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
38143814
include Google::Apis::Core::JsonObjectSupport
38153815
end
38163816

3817+
class GoogleCloudAiplatformV1RagFileParsingConfig
3818+
class Representation < Google::Apis::Core::JsonRepresentation; end
3819+
3820+
include Google::Apis::Core::JsonObjectSupport
3821+
end
3822+
3823+
class GoogleCloudAiplatformV1RagFileParsingConfigLayoutParser
3824+
class Representation < Google::Apis::Core::JsonRepresentation; end
3825+
3826+
include Google::Apis::Core::JsonObjectSupport
3827+
end
3828+
38173829
class GoogleCloudAiplatformV1RagFileTransformationConfig
38183830
class Representation < Google::Apis::Core::JsonRepresentation; end
38193831

@@ -10011,6 +10023,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
1001110023
property :prompt_token_count, as: 'promptTokenCount'
1001210024
collection :prompt_tokens_details, as: 'promptTokensDetails', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ModalityTokenCount, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ModalityTokenCount::Representation
1001310025

10026+
property :thoughts_token_count, as: 'thoughtsTokenCount'
1001410027
property :tool_use_prompt_token_count, as: 'toolUsePromptTokenCount'
1001510028
collection :tool_use_prompt_tokens_details, as: 'toolUsePromptTokensDetails', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ModalityTokenCount, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ModalityTokenCount::Representation
1001610029

@@ -10359,6 +10372,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
1035910372

1036010373
property :partial_failure_gcs_sink, as: 'partialFailureGcsSink', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GcsDestination, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GcsDestination::Representation
1036110374

10375+
property :rag_file_parsing_config, as: 'ragFileParsingConfig', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagFileParsingConfig, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagFileParsingConfig::Representation
10376+
1036210377
property :rag_file_transformation_config, as: 'ragFileTransformationConfig', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagFileTransformationConfig, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagFileTransformationConfig::Representation
1036310378

1036410379
property :share_point_sources, as: 'sharePointSources', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SharePointSources, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SharePointSources::Representation
@@ -13305,6 +13320,22 @@ class Representation < Google::Apis::Core::JsonRepresentation
1330513320
end
1330613321
end
1330713322

13323+
class GoogleCloudAiplatformV1RagFileParsingConfig
13324+
# @private
13325+
class Representation < Google::Apis::Core::JsonRepresentation
13326+
property :layout_parser, as: 'layoutParser', class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagFileParsingConfigLayoutParser, decorator: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagFileParsingConfigLayoutParser::Representation
13327+
13328+
end
13329+
end
13330+
13331+
class GoogleCloudAiplatformV1RagFileParsingConfigLayoutParser
13332+
# @private
13333+
class Representation < Google::Apis::Core::JsonRepresentation
13334+
property :max_parsing_requests_per_min, as: 'maxParsingRequestsPerMin'
13335+
property :processor_name, as: 'processorName'
13336+
end
13337+
end
13338+
1330813339
class GoogleCloudAiplatformV1RagFileTransformationConfig
1330913340
# @private
1331013341
class Representation < Google::Apis::Core::JsonRepresentation

0 commit comments

Comments
 (0)