Skip to content

Commit 457feb8

Browse files
feat: Automated regeneration of AIPlatform client (#13279)
Auto-created at 2025-04-02 13:16:34 +0000 using the toys pull request generator.
1 parent f001b1d commit 457feb8

24 files changed

+713
-130
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,7 @@ defmodule GoogleApi.AIPlatform.V1.Api.Projects do
544544
* `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
545545
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
546546
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
547+
* `:extraLocationTypes` (*type:* `list(String.t)`) - Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.
547548
* `:filter` (*type:* `String.t`) - A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).
548549
* `:pageSize` (*type:* `integer()`) - The maximum number of results to return. If not set, the service selects a default.
549550
* `:pageToken` (*type:* `String.t`) - A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.
@@ -572,6 +573,7 @@ defmodule GoogleApi.AIPlatform.V1.Api.Projects do
572573
:quotaUser => :query,
573574
:uploadType => :query,
574575
:upload_protocol => :query,
576+
:extraLocationTypes => :query,
575577
:filter => :query,
576578
:pageSize => :query,
577579
:pageToken => :query
@@ -5080,6 +5082,7 @@ defmodule GoogleApi.AIPlatform.V1.Api.Projects do
50805082
* `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
50815083
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
50825084
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
5085+
* `:force` (*type:* `boolean()`) - Optional. If set to true, child resources of this reasoning engine will also be deleted. Otherwise, the request will fail with FAILED_PRECONDITION error when the reasoning engine has undeleted child resources.
50835086
* `opts` (*type:* `keyword()`) - Call options
50845087

50855088
## Returns
@@ -5114,7 +5117,8 @@ defmodule GoogleApi.AIPlatform.V1.Api.Projects do
51145117
:prettyPrint => :query,
51155118
:quotaUser => :query,
51165119
:uploadType => :query,
5117-
:upload_protocol => :query
5120+
:upload_protocol => :query,
5121+
:force => :query
51185122
}
51195123

51205124
request =

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 "20250319"
23+
@discovery_revision "20250322"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end
Lines changed: 54 additions & 0 deletions
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.GoogleCloudAiplatformV1ContentMap do
19+
@moduledoc """
20+
Map of placeholder in metric prompt template to contents of model input.
21+
22+
## Attributes
23+
24+
* `values` (*type:* `%{optional(String.t) => GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ContentMapContents.t}`, *default:* `nil`) - Optional. Map of placeholder to contents.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:values =>
31+
%{
32+
optional(String.t()) =>
33+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ContentMapContents.t()
34+
}
35+
| nil
36+
}
37+
38+
field(:values,
39+
as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ContentMapContents,
40+
type: :map
41+
)
42+
end
43+
44+
defimpl Poison.Decoder, for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ContentMap do
45+
def decode(value, options) do
46+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ContentMap.decode(value, options)
47+
end
48+
end
49+
50+
defimpl Poison.Encoder, for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ContentMap do
51+
def encode(value, options) do
52+
GoogleApi.Gax.ModelBase.encode(value, options)
53+
end
54+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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.GoogleCloudAiplatformV1ContentMapContents do
19+
@moduledoc """
20+
Repeated Content type.
21+
22+
## Attributes
23+
24+
* `contents` (*type:* `list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Content.t)`, *default:* `nil`) - Optional. Repeated contents.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:contents =>
31+
list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Content.t()) | nil
32+
}
33+
34+
field(:contents, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Content, type: :list)
35+
end
36+
37+
defimpl Poison.Decoder,
38+
for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ContentMapContents do
39+
def decode(value, options) do
40+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ContentMapContents.decode(value, options)
41+
end
42+
end
43+
44+
defimpl Poison.Encoder,
45+
for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ContentMapContents do
46+
def encode(value, options) do
47+
GoogleApi.Gax.ModelBase.encode(value, options)
48+
end
49+
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.GoogleCloudAiplatformV1CustomOutput do
19+
@moduledoc """
20+
Spec for custom output.
21+
22+
## Attributes
23+
24+
* `rawOutputs` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RawOutput.t`, *default:* `nil`) - Output only. List of raw output strings.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:rawOutputs => GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RawOutput.t() | nil
31+
}
32+
33+
field(:rawOutputs, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RawOutput)
34+
end
35+
36+
defimpl Poison.Decoder, for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CustomOutput do
37+
def decode(value, options) do
38+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CustomOutput.decode(value, options)
39+
end
40+
end
41+
42+
defimpl Poison.Encoder, for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CustomOutput do
43+
def encode(value, options) do
44+
GoogleApi.Gax.ModelBase.encode(value, options)
45+
end
46+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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.GoogleCloudAiplatformV1CustomOutputFormatConfig do
19+
@moduledoc """
20+
Spec for custom output format configuration.
21+
22+
## Attributes
23+
24+
* `returnRawOutput` (*type:* `boolean()`, *default:* `nil`) - Optional. Whether to return raw output.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:returnRawOutput => boolean() | nil
31+
}
32+
33+
field(:returnRawOutput)
34+
end
35+
36+
defimpl Poison.Decoder,
37+
for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CustomOutputFormatConfig do
38+
def decode(value, options) do
39+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CustomOutputFormatConfig.decode(
40+
value,
41+
options
42+
)
43+
end
44+
end
45+
46+
defimpl Poison.Encoder,
47+
for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CustomOutputFormatConfig do
48+
def encode(value, options) do
49+
GoogleApi.Gax.ModelBase.encode(value, options)
50+
end
51+
end

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Endpoint do
2323
2424
* `clientConnectionConfig` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ClientConnectionConfig.t`, *default:* `nil`) - Configurations that are applied to the endpoint for online prediction.
2525
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Timestamp when this Endpoint was created.
26-
* `dedicatedEndpointDns` (*type:* `String.t`, *default:* `nil`) - Output only. DNS of the dedicated endpoint. Will only be populated if dedicated_endpoint_enabled is true. Format: `https://{endpoint_id}.{region}-{project_number}.prediction.vertexai.goog`.
26+
* `dedicatedEndpointDns` (*type:* `String.t`, *default:* `nil`) - Output only. DNS of the dedicated endpoint. Will only be populated if dedicated_endpoint_enabled is true. Depending on the features enabled, uid might be a random number or a string. For example, if fast_tryout is enabled, uid will be fasttryout. Format: `https://{endpoint_id}.{region}-{uid}.prediction.vertexai.goog`.
2727
* `dedicatedEndpointEnabled` (*type:* `boolean()`, *default:* `nil`) - If true, the endpoint will be exposed through a dedicated DNS [Endpoint.dedicated_endpoint_dns]. Your request to the dedicated DNS will be isolated from other users' traffic and will have better performance and reliability. Note: Once you enabled dedicated endpoint, you won't be able to send request to the shared DNS {region}-aiplatform.googleapis.com. The limitation will be removed soon.
2828
* `deployedModels` (*type:* `list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1DeployedModel.t)`, *default:* `nil`) - Output only. The models deployed in this Endpoint. To add or remove DeployedModels use EndpointService.DeployModel and EndpointService.UndeployModel respectively.
2929
* `description` (*type:* `String.t`, *default:* `nil`) - The description of the Endpoint.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1EvaluateDatasetRe
2121
2222
## Attributes
2323
24-
* `autoraterConfig` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1AutoraterConfig.t`, *default:* `nil`) - Optional. Autorater config used for evaluation.
24+
* `autoraterConfig` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1AutoraterConfig.t`, *default:* `nil`) - Optional. Autorater config used for evaluation. Currently only publisher Gemini models are supported. Format: `projects/{PROJECT}/locations/{LOCATION}/publishers/google/models/{MODEL}.`
2525
* `dataset` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1EvaluationDataset.t`, *default:* `nil`) - Required. The dataset used for evaluation.
2626
* `metrics` (*type:* `list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Metric.t)`, *default:* `nil`) - Required. The metrics used for evaluation.
2727
* `outputConfig` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1OutputConfig.t`, *default:* `nil`) - Required. Config for evaluation output.

0 commit comments

Comments
 (0)