Skip to content

Commit b5d16ca

Browse files
feat: Automated regeneration of AIPlatform client (googleapis#12658)
Auto-created at 2024-12-07 13:14:16 +0000 using the toys pull request generator.
1 parent 836986a commit b5d16ca

File tree

52 files changed

+3060
-48
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+3060
-48
lines changed

clients/ai_platform/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding
1111

1212
```elixir
1313
def deps do
14-
[{:google_api_ai_platform, "~> 0.24"}]
14+
[{:google_api_ai_platform, "~> 0.25"}]
1515
end
1616
```
1717

clients/ai_platform/lib/google_api/ai_platform/v1/api/projects.ex

Lines changed: 770 additions & 42 deletions
Large diffs are not rendered by default.

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 "20241119"
23+
@discovery_revision "20241203"
2424

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

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

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1EvaluateInstances
4646
* `toolNameMatchInput` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ToolNameMatchInput.t`, *default:* `nil`) - Input for tool name match metric.
4747
* `toolParameterKeyMatchInput` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ToolParameterKeyMatchInput.t`, *default:* `nil`) - Input for tool parameter key match metric.
4848
* `toolParameterKvMatchInput` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ToolParameterKVMatchInput.t`, *default:* `nil`) - Input for tool parameter key value match metric.
49+
* `trajectoryAnyOrderMatchInput` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchInput.t`, *default:* `nil`) - Input for trajectory match any order metric.
50+
* `trajectoryExactMatchInput` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryExactMatchInput.t`, *default:* `nil`) - Input for trajectory exact match metric.
51+
* `trajectoryInOrderMatchInput` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryInOrderMatchInput.t`, *default:* `nil`) - Input for trajectory in order match metric.
52+
* `trajectoryPrecisionInput` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryPrecisionInput.t`, *default:* `nil`) - Input for trajectory precision metric.
53+
* `trajectoryRecallInput` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryRecallInput.t`, *default:* `nil`) - Input for trajectory recall metric.
54+
* `trajectorySingleToolUseInput` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectorySingleToolUseInput.t`, *default:* `nil`) - Input for trajectory single tool use metric.
4955
"""
5056

5157
use GoogleApi.Gax.ModelBase
@@ -110,6 +116,23 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1EvaluateInstances
110116
| nil,
111117
:toolParameterKvMatchInput =>
112118
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ToolParameterKVMatchInput.t()
119+
| nil,
120+
:trajectoryAnyOrderMatchInput =>
121+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchInput.t()
122+
| nil,
123+
:trajectoryExactMatchInput =>
124+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryExactMatchInput.t()
125+
| nil,
126+
:trajectoryInOrderMatchInput =>
127+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryInOrderMatchInput.t()
128+
| nil,
129+
:trajectoryPrecisionInput =>
130+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryPrecisionInput.t()
131+
| nil,
132+
:trajectoryRecallInput =>
133+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryRecallInput.t() | nil,
134+
:trajectorySingleToolUseInput =>
135+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectorySingleToolUseInput.t()
113136
| nil
114137
}
115138

@@ -193,6 +216,30 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1EvaluateInstances
193216
field(:toolParameterKvMatchInput,
194217
as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ToolParameterKVMatchInput
195218
)
219+
220+
field(:trajectoryAnyOrderMatchInput,
221+
as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchInput
222+
)
223+
224+
field(:trajectoryExactMatchInput,
225+
as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryExactMatchInput
226+
)
227+
228+
field(:trajectoryInOrderMatchInput,
229+
as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryInOrderMatchInput
230+
)
231+
232+
field(:trajectoryPrecisionInput,
233+
as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryPrecisionInput
234+
)
235+
236+
field(:trajectoryRecallInput,
237+
as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryRecallInput
238+
)
239+
240+
field(:trajectorySingleToolUseInput,
241+
as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectorySingleToolUseInput
242+
)
196243
end
197244

198245
defimpl Poison.Decoder,

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

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1EvaluateInstances
4646
* `toolNameMatchResults` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ToolNameMatchResults.t`, *default:* `nil`) - Results for tool name match metric.
4747
* `toolParameterKeyMatchResults` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ToolParameterKeyMatchResults.t`, *default:* `nil`) - Results for tool parameter key match metric.
4848
* `toolParameterKvMatchResults` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ToolParameterKVMatchResults.t`, *default:* `nil`) - Results for tool parameter key value match metric.
49+
* `trajectoryAnyOrderMatchResults` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchResults.t`, *default:* `nil`) - Result for trajectory any order match metric.
50+
* `trajectoryExactMatchResults` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryExactMatchResults.t`, *default:* `nil`) - Result for trajectory exact match metric.
51+
* `trajectoryInOrderMatchResults` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryInOrderMatchResults.t`, *default:* `nil`) - Result for trajectory in order match metric.
52+
* `trajectoryPrecisionResults` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryPrecisionResults.t`, *default:* `nil`) - Result for trajectory precision metric.
53+
* `trajectoryRecallResults` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryRecallResults.t`, *default:* `nil`) - Results for trajectory recall metric.
54+
* `trajectorySingleToolUseResults` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectorySingleToolUseResults.t`, *default:* `nil`) - Results for trajectory single tool use metric.
4955
"""
5056

5157
use GoogleApi.Gax.ModelBase
@@ -111,6 +117,23 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1EvaluateInstances
111117
| nil,
112118
:toolParameterKvMatchResults =>
113119
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ToolParameterKVMatchResults.t()
120+
| nil,
121+
:trajectoryAnyOrderMatchResults =>
122+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchResults.t()
123+
| nil,
124+
:trajectoryExactMatchResults =>
125+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryExactMatchResults.t()
126+
| nil,
127+
:trajectoryInOrderMatchResults =>
128+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryInOrderMatchResults.t()
129+
| nil,
130+
:trajectoryPrecisionResults =>
131+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryPrecisionResults.t()
132+
| nil,
133+
:trajectoryRecallResults =>
134+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryRecallResults.t() | nil,
135+
:trajectorySingleToolUseResults =>
136+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectorySingleToolUseResults.t()
114137
| nil
115138
}
116139

@@ -199,6 +222,30 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1EvaluateInstances
199222
field(:toolParameterKvMatchResults,
200223
as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ToolParameterKVMatchResults
201224
)
225+
226+
field(:trajectoryAnyOrderMatchResults,
227+
as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryAnyOrderMatchResults
228+
)
229+
230+
field(:trajectoryExactMatchResults,
231+
as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryExactMatchResults
232+
)
233+
234+
field(:trajectoryInOrderMatchResults,
235+
as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryInOrderMatchResults
236+
)
237+
238+
field(:trajectoryPrecisionResults,
239+
as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryPrecisionResults
240+
)
241+
242+
field(:trajectoryRecallResults,
243+
as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectoryRecallResults
244+
)
245+
246+
field(:trajectorySingleToolUseResults,
247+
as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1TrajectorySingleToolUseResults
248+
)
202249
end
203250

204251
defimpl Poison.Decoder,

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,14 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerationConfig
2929
* `presencePenalty` (*type:* `number()`, *default:* `nil`) - Optional. Positive penalties.
3030
* `responseLogprobs` (*type:* `boolean()`, *default:* `nil`) - Optional. If true, export the logprobs results in response.
3131
* `responseMimeType` (*type:* `String.t`, *default:* `nil`) - Optional. Output response mimetype of the generated candidate text. Supported mimetype: - `text/plain`: (default) Text output. - `application/json`: JSON response in the candidates. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. This is a preview feature.
32+
* `responseModalities` (*type:* `list(String.t)`, *default:* `nil`) - Optional. The modalities of the response.
3233
* `responseSchema` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Schema.t`, *default:* `nil`) - Optional. The `Schema` object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema). If set, a compatible response_mime_type must also be set. Compatible mimetypes: `application/json`: Schema for JSON response.
3334
* `routingConfig` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerationConfigRoutingConfig.t`, *default:* `nil`) - Optional. Routing configuration.
3435
* `seed` (*type:* `integer()`, *default:* `nil`) - Optional. Seed.
36+
* `speechConfig` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SpeechConfig.t`, *default:* `nil`) - Optional. The speech generation config.
3537
* `stopSequences` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Stop sequences.
3638
* `temperature` (*type:* `number()`, *default:* `nil`) - Optional. Controls the randomness of predictions.
39+
* `tokenResolution` (*type:* `String.t`, *default:* `nil`) - Optional. If specified, the token resolution specified will be used.
3740
* `topK` (*type:* `number()`, *default:* `nil`) - Optional. If specified, top-k sampling will be used.
3841
* `topP` (*type:* `number()`, *default:* `nil`) - Optional. If specified, nucleus sampling will be used.
3942
"""
@@ -49,14 +52,18 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerationConfig
4952
:presencePenalty => number() | nil,
5053
:responseLogprobs => boolean() | nil,
5154
:responseMimeType => String.t() | nil,
55+
:responseModalities => list(String.t()) | nil,
5256
:responseSchema =>
5357
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Schema.t() | nil,
5458
:routingConfig =>
5559
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerationConfigRoutingConfig.t()
5660
| nil,
5761
:seed => integer() | nil,
62+
:speechConfig =>
63+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SpeechConfig.t() | nil,
5864
:stopSequences => list(String.t()) | nil,
5965
:temperature => number() | nil,
66+
:tokenResolution => String.t() | nil,
6067
:topK => number() | nil,
6168
:topP => number() | nil
6269
}
@@ -69,15 +76,18 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerationConfig
6976
field(:presencePenalty)
7077
field(:responseLogprobs)
7178
field(:responseMimeType)
79+
field(:responseModalities, type: :list)
7280
field(:responseSchema, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Schema)
7381

7482
field(:routingConfig,
7583
as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerationConfigRoutingConfig
7684
)
7785

7886
field(:seed)
87+
field(:speechConfig, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SpeechConfig)
7988
field(:stopSequences, type: :list)
8089
field(:temperature)
90+
field(:tokenResolution)
8191
field(:topK)
8292
field(:topP)
8393
end

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
@@ -28,6 +28,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ImportRagFilesCon
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`.
3030
* `ragFileTransformationConfig` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagFileTransformationConfig.t`, *default:* `nil`) - Specifies the transformation config for RagFiles.
31+
* `sharePointSources` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SharePointSources.t`, *default:* `nil`) - SharePoint sources.
3132
* `slackSource` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SlackSource.t`, *default:* `nil`) - Slack channels with their corresponding access tokens.
3233
"""
3334

@@ -47,6 +48,8 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ImportRagFilesCon
4748
:ragFileTransformationConfig =>
4849
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagFileTransformationConfig.t()
4950
| nil,
51+
:sharePointSources =>
52+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SharePointSources.t() | nil,
5053
:slackSource =>
5154
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SlackSource.t() | nil
5255
}
@@ -72,6 +75,10 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ImportRagFilesCon
7275
as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RagFileTransformationConfig
7376
)
7477

78+
field(:sharePointSources,
79+
as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SharePointSources
80+
)
81+
7582
field(:slackSource, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1SlackSource)
7683
end
7784

0 commit comments

Comments
 (0)