Skip to content

Commit a960ce3

Browse files
feat: Automated regeneration of AIPlatform client (googleapis#13084)
Auto-created at 2025-03-04 13:19:18 +0000 using the toys pull request generator.
1 parent 9cc4e66 commit a960ce3

16 files changed

+434
-10
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 "20250212"
23+
@discovery_revision "20250226"
2424

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

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

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.CloudAiLargeModelsVisionGenerateVideoRes
2424
* `generatedSamples` (*type:* `list(GoogleApi.AIPlatform.V1.Model.CloudAiLargeModelsVisionMedia.t)`, *default:* `nil`) - The generates samples.
2525
* `raiMediaFilteredCount` (*type:* `integer()`, *default:* `nil`) - Returns if any videos were filtered due to RAI policies.
2626
* `raiMediaFilteredReasons` (*type:* `list(String.t)`, *default:* `nil`) - Returns rai failure reasons if any.
27+
* `videos` (*type:* `list(GoogleApi.AIPlatform.V1.Model.CloudAiLargeModelsVisionGenerateVideoResponseVideo.t)`, *default:* `nil`) - List of videos, used to align naming with the external response.
2728
"""
2829

2930
use GoogleApi.Gax.ModelBase
@@ -32,7 +33,12 @@ defmodule GoogleApi.AIPlatform.V1.Model.CloudAiLargeModelsVisionGenerateVideoRes
3233
:generatedSamples =>
3334
list(GoogleApi.AIPlatform.V1.Model.CloudAiLargeModelsVisionMedia.t()) | nil,
3435
:raiMediaFilteredCount => integer() | nil,
35-
:raiMediaFilteredReasons => list(String.t()) | nil
36+
:raiMediaFilteredReasons => list(String.t()) | nil,
37+
:videos =>
38+
list(
39+
GoogleApi.AIPlatform.V1.Model.CloudAiLargeModelsVisionGenerateVideoResponseVideo.t()
40+
)
41+
| nil
3642
}
3743

3844
field(:generatedSamples,
@@ -42,6 +48,11 @@ defmodule GoogleApi.AIPlatform.V1.Model.CloudAiLargeModelsVisionGenerateVideoRes
4248

4349
field(:raiMediaFilteredCount)
4450
field(:raiMediaFilteredReasons, type: :list)
51+
52+
field(:videos,
53+
as: GoogleApi.AIPlatform.V1.Model.CloudAiLargeModelsVisionGenerateVideoResponseVideo,
54+
type: :list
55+
)
4556
end
4657

4758
defimpl Poison.Decoder,
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
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.CloudAiLargeModelsVisionGenerateVideoResponseVideo do
19+
@moduledoc """
20+
21+
22+
## Attributes
23+
24+
* `bytesBase64Encoded` (*type:* `String.t`, *default:* `nil`) - Base64 encoded bytes string representing the video.
25+
* `gcsUri` (*type:* `String.t`, *default:* `nil`) - Cloud Storage URI where the generated video is written.
26+
* `mimeType` (*type:* `String.t`, *default:* `nil`) - The MIME type of the content of the video. - video/mp4
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:bytesBase64Encoded => String.t() | nil,
33+
:gcsUri => String.t() | nil,
34+
:mimeType => String.t() | nil
35+
}
36+
37+
field(:bytesBase64Encoded)
38+
field(:gcsUri)
39+
field(:mimeType)
40+
end
41+
42+
defimpl Poison.Decoder,
43+
for: GoogleApi.AIPlatform.V1.Model.CloudAiLargeModelsVisionGenerateVideoResponseVideo do
44+
def decode(value, options) do
45+
GoogleApi.AIPlatform.V1.Model.CloudAiLargeModelsVisionGenerateVideoResponseVideo.decode(
46+
value,
47+
options
48+
)
49+
end
50+
end
51+
52+
defimpl Poison.Encoder,
53+
for: GoogleApi.AIPlatform.V1.Model.CloudAiLargeModelsVisionGenerateVideoResponseVideo do
54+
def encode(value, options) do
55+
GoogleApi.Gax.ModelBase.encode(value, options)
56+
end
57+
end

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.CloudAiLargeModelsVisionVideo do
2323
2424
* `encodedVideo` (*type:* `String.t`, *default:* `nil`) - Base 64 encoded video bytes.
2525
* `encoding` (*type:* `String.t`, *default:* `nil`) - Video encoding, for example "video/mp4".
26+
* `text` (*type:* `String.t`, *default:* `nil`) - Text/Expanded text input for Help Me Write.
2627
* `uri` (*type:* `String.t`, *default:* `nil`) - Path to another storage (typically Google Cloud Storage).
2728
* `video` (*type:* `String.t`, *default:* `nil`) - Raw bytes.
2829
"""
@@ -32,12 +33,14 @@ defmodule GoogleApi.AIPlatform.V1.Model.CloudAiLargeModelsVisionVideo do
3233
@type t :: %__MODULE__{
3334
:encodedVideo => String.t() | nil,
3435
:encoding => String.t() | nil,
36+
:text => String.t() | nil,
3537
:uri => String.t() | nil,
3638
:video => String.t() | nil
3739
}
3840

3941
field(:encodedVideo)
4042
field(:encoding)
43+
field(:text)
4144
field(:uri)
4245
field(:video)
4346
end
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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.GoogleCloudAiplatformV1EnterpriseWebSearch do
19+
@moduledoc """
20+
Tool to search public web data, powered by Vertex AI Search and Sec4 compliance.
21+
22+
## Attributes
23+
24+
"""
25+
26+
use GoogleApi.Gax.ModelBase
27+
28+
@type t :: %__MODULE__{}
29+
end
30+
31+
defimpl Poison.Decoder,
32+
for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1EnterpriseWebSearch do
33+
def decode(value, options) do
34+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1EnterpriseWebSearch.decode(
35+
value,
36+
options
37+
)
38+
end
39+
end
40+
41+
defimpl Poison.Encoder,
42+
for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1EnterpriseWebSearch do
43+
def encode(value, options) do
44+
GoogleApi.Gax.ModelBase.encode(value, options)
45+
end
46+
end

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

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ 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-
* `totalTokenCount` (*type:* `integer()`, *default:* `nil`) - Total token count for prompt and response candidates.
30+
* `toolUsePromptTokenCount` (*type:* `integer()`, *default:* `nil`) - Output only. Number of tokens present in tool-use prompt(s).
31+
* `toolUsePromptTokensDetails` (*type:* `list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ModalityTokenCount.t)`, *default:* `nil`) - Output only. List of modalities that were processed for tool-use request inputs.
32+
* `totalTokenCount` (*type:* `integer()`, *default:* `nil`) - Total token count for prompt, response candidates, and tool-use prompts (if present).
3133
"""
3234

3335
use GoogleApi.Gax.ModelBase
@@ -45,6 +47,10 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerateContentRe
4547
:promptTokensDetails =>
4648
list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ModalityTokenCount.t())
4749
| nil,
50+
:toolUsePromptTokenCount => integer() | nil,
51+
:toolUsePromptTokensDetails =>
52+
list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ModalityTokenCount.t())
53+
| nil,
4854
:totalTokenCount => integer() | nil
4955
}
5056

@@ -68,6 +74,13 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerateContentRe
6874
type: :list
6975
)
7076

77+
field(:toolUsePromptTokenCount)
78+
79+
field(:toolUsePromptTokensDetails,
80+
as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ModalityTokenCount,
81+
type: :list
82+
)
83+
7184
field(:totalTokenCount)
7285
end
7386

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
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.GoogleCloudAiplatformV1GenerateVideoResponse do
19+
@moduledoc """
20+
Generate video response.
21+
22+
## Attributes
23+
24+
* `generatedSamples` (*type:* `list(String.t)`, *default:* `nil`) - The cloud storage uris of the generated videos.
25+
* `raiMediaFilteredCount` (*type:* `integer()`, *default:* `nil`) - Returns if any videos were filtered due to RAI policies.
26+
* `raiMediaFilteredReasons` (*type:* `list(String.t)`, *default:* `nil`) - Returns rai failure reasons if any.
27+
* `videos` (*type:* `list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerateVideoResponseVideo.t)`, *default:* `nil`) - List of video bytes or Cloud Storage URIs of the generated videos.
28+
"""
29+
30+
use GoogleApi.Gax.ModelBase
31+
32+
@type t :: %__MODULE__{
33+
:generatedSamples => list(String.t()) | nil,
34+
:raiMediaFilteredCount => integer() | nil,
35+
:raiMediaFilteredReasons => list(String.t()) | nil,
36+
:videos =>
37+
list(
38+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerateVideoResponseVideo.t()
39+
)
40+
| nil
41+
}
42+
43+
field(:generatedSamples, type: :list)
44+
field(:raiMediaFilteredCount)
45+
field(:raiMediaFilteredReasons, type: :list)
46+
47+
field(:videos,
48+
as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerateVideoResponseVideo,
49+
type: :list
50+
)
51+
end
52+
53+
defimpl Poison.Decoder,
54+
for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerateVideoResponse do
55+
def decode(value, options) do
56+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerateVideoResponse.decode(
57+
value,
58+
options
59+
)
60+
end
61+
end
62+
63+
defimpl Poison.Encoder,
64+
for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerateVideoResponse do
65+
def encode(value, options) do
66+
GoogleApi.Gax.ModelBase.encode(value, options)
67+
end
68+
end
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
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.GoogleCloudAiplatformV1GenerateVideoResponseVideo do
19+
@moduledoc """
20+
A generated video.
21+
22+
## Attributes
23+
24+
* `bytesBase64Encoded` (*type:* `String.t`, *default:* `nil`) - Base64 encoded bytes string representing the video.
25+
* `gcsUri` (*type:* `String.t`, *default:* `nil`) - Cloud Storage URI where the generated video is written.
26+
* `mimeType` (*type:* `String.t`, *default:* `nil`) - The MIME type of the content of the video. - video/mp4
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:bytesBase64Encoded => String.t() | nil,
33+
:gcsUri => String.t() | nil,
34+
:mimeType => String.t() | nil
35+
}
36+
37+
field(:bytesBase64Encoded)
38+
field(:gcsUri)
39+
field(:mimeType)
40+
end
41+
42+
defimpl Poison.Decoder,
43+
for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerateVideoResponseVideo do
44+
def decode(value, options) do
45+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerateVideoResponseVideo.decode(
46+
value,
47+
options
48+
)
49+
end
50+
end
51+
52+
defimpl Poison.Encoder,
53+
for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerateVideoResponseVideo do
54+
def encode(value, options) do
55+
GoogleApi.Gax.ModelBase.encode(value, options)
56+
end
57+
end

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1MachineSpec do
2424
* `acceleratorCount` (*type:* `integer()`, *default:* `nil`) - The number of accelerators to attach to the machine.
2525
* `acceleratorType` (*type:* `String.t`, *default:* `nil`) - Immutable. The type of accelerator(s) that may be attached to the machine as per accelerator_count.
2626
* `machineType` (*type:* `String.t`, *default:* `nil`) - Immutable. The type of the machine. See the [list of machine types supported for prediction](https://cloud.google.com/vertex-ai/docs/predictions/configure-compute#machine-types) See the [list of machine types supported for custom training](https://cloud.google.com/vertex-ai/docs/training/configure-compute#machine-types). For DeployedModel this field is optional, and the default value is `n1-standard-2`. For BatchPredictionJob or as part of WorkerPoolSpec this field is required.
27-
* `multihostGpuNodeCount` (*type:* `integer()`, *default:* `nil`) - Optional. Immutable. The number of nodes per replica for multihost GPU deployments.
2827
* `reservationAffinity` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ReservationAffinity.t`, *default:* `nil`) - Optional. Immutable. Configuration controlling how this resource pool consumes reservation.
2928
* `tpuTopology` (*type:* `String.t`, *default:* `nil`) - Immutable. The topology of the TPUs. Corresponds to the TPU topologies available from GKE. (Example: tpu_topology: "2x2x1").
3029
"""
@@ -35,7 +34,6 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1MachineSpec do
3534
:acceleratorCount => integer() | nil,
3635
:acceleratorType => String.t() | nil,
3736
:machineType => String.t() | nil,
38-
:multihostGpuNodeCount => integer() | nil,
3937
:reservationAffinity =>
4038
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ReservationAffinity.t() | nil,
4139
:tpuTopology => String.t() | nil
@@ -44,7 +42,6 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1MachineSpec do
4442
field(:acceleratorCount)
4543
field(:acceleratorType)
4644
field(:machineType)
47-
field(:multihostGpuNodeCount)
4845

4946
field(:reservationAffinity,
5047
as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ReservationAffinity

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,28 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ReasoningEngineSp
2222
## Attributes
2323
2424
* `classMethods` (*type:* `list(map())`, *default:* `nil`) - Optional. Declarations for object class methods in OpenAPI specification format.
25+
* `deploymentSpec` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec.t`, *default:* `nil`) - Optional. The specification of a Reasoning Engine deployment.
2526
* `packageSpec` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec.t`, *default:* `nil`) - Required. User provided package spec of the ReasoningEngine.
2627
"""
2728

2829
use GoogleApi.Gax.ModelBase
2930

3031
@type t :: %__MODULE__{
3132
:classMethods => list(map()) | nil,
33+
:deploymentSpec =>
34+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec.t()
35+
| nil,
3236
:packageSpec =>
3337
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec.t()
3438
| nil
3539
}
3640

3741
field(:classMethods, type: :list)
3842

43+
field(:deploymentSpec,
44+
as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ReasoningEngineSpecDeploymentSpec
45+
)
46+
3947
field(:packageSpec,
4048
as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec
4149
)

0 commit comments

Comments
 (0)