Skip to content

Commit f656ac8

Browse files
feat: Automated regeneration of AIPlatform client (#13148)
Auto-created at 2025-03-13 13:18:37 +0000 using the toys pull request generator.
1 parent c1d34aa commit f656ac8

6 files changed

+121
-2
lines changed

clients/ai_platform/lib/google_api/ai_platform/v1/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.AIPlatform.V1 do
2020
API client metadata for GoogleApi.AIPlatform.V1.
2121
"""
2222

23-
@discovery_revision "20250226"
23+
@discovery_revision "20250304"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end

clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_disk_spec.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1DiskSpec do
2222
## Attributes
2323
2424
* `bootDiskSizeGb` (*type:* `integer()`, *default:* `nil`) - Size in GB of the boot disk (default is 100GB).
25-
* `bootDiskType` (*type:* `String.t`, *default:* `nil`) - Type of the boot disk (default is "pd-ssd"). Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or "pd-standard" (Persistent Disk Hard Disk Drive).
25+
* `bootDiskType` (*type:* `String.t`, *default:* `nil`) - Type of the boot disk. For non-A3U machines, the default value is "pd-ssd", for A3U machines, the default value is "hyperdisk-balanced". Valid values: "pd-ssd" (Persistent Disk Solid State Drive), "pd-standard" (Persistent Disk Hard Disk Drive) or "hyperdisk-balanced".
2626
"""
2727

2828
use GoogleApi.Gax.ModelBase

clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_generate_content_response_usage_metadata.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerateContentRe
2727
* `candidatesTokensDetails` (*type:* `list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ModalityTokenCount.t)`, *default:* `nil`) - Output only. List of modalities that were returned in the response.
2828
* `promptTokenCount` (*type:* `integer()`, *default:* `nil`) - Number of tokens in the request. When `cached_content` is set, this is still the total effective prompt size meaning this includes the number of tokens in the cached content.
2929
* `promptTokensDetails` (*type:* `list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ModalityTokenCount.t)`, *default:* `nil`) - Output only. List of modalities that were processed in the request input.
30+
* `thoughtsTokenCount` (*type:* `integer()`, *default:* `nil`) - Output only. Number of tokens present in thoughts output.
3031
* `toolUsePromptTokenCount` (*type:* `integer()`, *default:* `nil`) - Output only. Number of tokens present in tool-use prompt(s).
3132
* `toolUsePromptTokensDetails` (*type:* `list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ModalityTokenCount.t)`, *default:* `nil`) - Output only. List of modalities that were processed for tool-use request inputs.
3233
* `totalTokenCount` (*type:* `integer()`, *default:* `nil`) - Total token count for prompt, response candidates, and tool-use prompts (if present).
@@ -47,6 +48,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerateContentRe
4748
:promptTokensDetails =>
4849
list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ModalityTokenCount.t())
4950
| nil,
51+
:thoughtsTokenCount => integer() | nil,
5052
:toolUsePromptTokenCount => integer() | nil,
5153
:toolUsePromptTokensDetails =>
5254
list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ModalityTokenCount.t())
@@ -74,6 +76,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerateContentRe
7476
type: :list
7577
)
7678

79+
field(:thoughtsTokenCount)
7780
field(:toolUsePromptTokenCount)
7881

7982
field(:toolUsePromptTokensDetails,

clients/ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_import_rag_files_config.ex

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ImportRagFilesCon
2727
* `maxEmbeddingRequestsPerMin` (*type:* `integer()`, *default:* `nil`) - Optional. The max number of queries per minute that this job is allowed to make to the embedding model specified on the corpus. This value is specific to this job and not shared across other import jobs. Consult the Quotas page on the project to set an appropriate value here. If unspecified, a default value of 1,000 QPM would be used.
2828
* `partialFailureBigquerySink` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1BigQueryDestination.t`, *default:* `nil`) - The BigQuery destination to write partial failures to. It should be a bigquery table resource name (e.g. "bq://projectId.bqDatasetId.bqTableId"). The dataset must exist. If the table does not exist, it will be created with the expected schema. If the table exists, the schema will be validated and data will be added to this existing table. Deprecated. Prefer to use `import_result_bq_sink`.
2929
* `partialFailureGcsSink` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GcsDestination.t`, *default:* `nil`) - The Cloud Storage path to write partial failures to. Deprecated. Prefer to use `import_result_gcs_sink`.
30+
* `ragFileParsingConfig` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagFileParsingConfig.t`, *default:* `nil`) - Optional. Specifies the parsing config for RagFiles. RAG will use the default parser if this field is not set.
3031
* `ragFileTransformationConfig` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagFileTransformationConfig.t`, *default:* `nil`) - Specifies the transformation config for RagFiles.
3132
* `sharePointSources` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SharePointSources.t`, *default:* `nil`) - SharePoint sources.
3233
* `slackSource` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SlackSource.t`, *default:* `nil`) - Slack channels with their corresponding access tokens.
@@ -45,6 +46,8 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ImportRagFilesCon
4546
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1BigQueryDestination.t() | nil,
4647
:partialFailureGcsSink =>
4748
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GcsDestination.t() | nil,
49+
:ragFileParsingConfig =>
50+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagFileParsingConfig.t() | nil,
4851
:ragFileTransformationConfig =>
4952
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagFileTransformationConfig.t()
5053
| nil,
@@ -71,6 +74,10 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ImportRagFilesCon
7174
as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GcsDestination
7275
)
7376

77+
field(:ragFileParsingConfig,
78+
as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagFileParsingConfig
79+
)
80+
7481
field(:ragFileTransformationConfig,
7582
as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagFileTransformationConfig
7683
)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagFileParsingConfig do
19+
@moduledoc """
20+
Specifies the parsing config for RagFiles.
21+
22+
## Attributes
23+
24+
* `layoutParser` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagFileParsingConfigLayoutParser.t`, *default:* `nil`) - The Layout Parser to use for RagFiles.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:layoutParser =>
31+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagFileParsingConfigLayoutParser.t()
32+
| nil
33+
}
34+
35+
field(:layoutParser,
36+
as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagFileParsingConfigLayoutParser
37+
)
38+
end
39+
40+
defimpl Poison.Decoder,
41+
for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagFileParsingConfig do
42+
def decode(value, options) do
43+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagFileParsingConfig.decode(
44+
value,
45+
options
46+
)
47+
end
48+
end
49+
50+
defimpl Poison.Encoder,
51+
for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagFileParsingConfig do
52+
def encode(value, options) do
53+
GoogleApi.Gax.ModelBase.encode(value, options)
54+
end
55+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagFileParsingConfigLayoutParser do
19+
@moduledoc """
20+
Document AI Layout Parser config.
21+
22+
## Attributes
23+
24+
* `maxParsingRequestsPerMin` (*type:* `integer()`, *default:* `nil`) - The maximum number of requests the job is allowed to make to the Document AI processor per minute. Consult https://cloud.google.com/document-ai/quotas and the Quota page for your project to set an appropriate value here. If unspecified, a default value of 120 QPM would be used.
25+
* `processorName` (*type:* `String.t`, *default:* `nil`) - The full resource name of a Document AI processor or processor version. The processor must have type `LAYOUT_PARSER_PROCESSOR`. If specified, the `additional_config.parse_as_scanned_pdf` field must be false. Format: * `projects/{project_id}/locations/{location}/processors/{processor_id}` * `projects/{project_id}/locations/{location}/processors/{processor_id}/processorVersions/{processor_version_id}`
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:maxParsingRequestsPerMin => integer() | nil,
32+
:processorName => String.t() | nil
33+
}
34+
35+
field(:maxParsingRequestsPerMin)
36+
field(:processorName)
37+
end
38+
39+
defimpl Poison.Decoder,
40+
for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagFileParsingConfigLayoutParser do
41+
def decode(value, options) do
42+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagFileParsingConfigLayoutParser.decode(
43+
value,
44+
options
45+
)
46+
end
47+
end
48+
49+
defimpl Poison.Encoder,
50+
for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagFileParsingConfigLayoutParser do
51+
def encode(value, options) do
52+
GoogleApi.Gax.ModelBase.encode(value, options)
53+
end
54+
end

0 commit comments

Comments
 (0)