Skip to content

Commit 1635e9b

Browse files
feat: Automated regeneration of AIPlatform client (#12811)
Auto-created at 2025-01-14 13:11:20 +0000 using the toys pull request generator.
1 parent bd144b9 commit 1635e9b

12 files changed

+113
-10
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.26"}]
14+
[{:google_api_ai_platform, "~> 0.27"}]
1515
end
1616
```
1717

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ defmodule GoogleApi.AIPlatform.V1.Api.Datasets do
665665
## Parameters
666666
667667
* `connection` (*type:* `GoogleApi.AIPlatform.V1.Connection.t`) - Connection to server
668-
* `name` (*type:* `String.t`) - Output only. Identifier. The resource name of the DatasetVersion.
668+
* `name` (*type:* `String.t`) - Output only. Identifier. The resource name of the DatasetVersion. Format: `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
669669
* `optional_params` (*type:* `keyword()`) - Optional parameters
670670
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
671671
* `:access_token` (*type:* `String.t`) - OAuth access token.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40044,7 +40044,7 @@ defmodule GoogleApi.AIPlatform.V1.Api.Projects do
4004440044
## Parameters
4004540045

4004640046
* `connection` (*type:* `GoogleApi.AIPlatform.V1.Connection.t`) - Connection to server
40047-
* `name` (*type:* `String.t`) - Output only. Identifier. The resource name of the DatasetVersion.
40047+
* `name` (*type:* `String.t`) - Output only. Identifier. The resource name of the DatasetVersion. Format: `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
4004840048
* `optional_params` (*type:* `keyword()`) - Optional parameters
4004940049
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
4005040050
* `:access_token` (*type:* `String.t`) - OAuth access token.

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 "20241214"
23+
@discovery_revision "20250107"
2424

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
defmodule GoogleApi.AIPlatform.V1.Model.CloudAiPlatformCommonCreatePipelineJobApiErrorDetail do
1919
@moduledoc """
20-
Create API error message for Vertex Pipeline. Next Id: 3.
20+
Create API error message for Vertex Pipeline.
2121
2222
## Attributes
2323

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ApiAuth do
1919
@moduledoc """
20-
The generic reusable api auth config.
20+
The generic reusable api auth config. Deprecated. Please use AuthConfig (google/cloud/aiplatform/master/auth.proto) instead.
2121
2222
## Attributes
2323

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1DatasetVersion do
2727
* `etag` (*type:* `String.t`, *default:* `nil`) - Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens.
2828
* `metadata` (*type:* `any()`, *default:* `nil`) - Required. Output only. Additional information about the DatasetVersion.
2929
* `modelReference` (*type:* `String.t`, *default:* `nil`) - Output only. Reference to the public base model last used by the dataset version. Only set for prompt dataset versions.
30-
* `name` (*type:* `String.t`, *default:* `nil`) - Output only. Identifier. The resource name of the DatasetVersion.
30+
* `name` (*type:* `String.t`, *default:* `nil`) - Output only. Identifier. The resource name of the DatasetVersion. Format: `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
3131
* `satisfiesPzi` (*type:* `boolean()`, *default:* `nil`) - Output only. Reserved for future use.
3232
* `satisfiesPzs` (*type:* `boolean()`, *default:* `nil`) - Output only. Reserved for future use.
3333
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Timestamp when this DatasetVersion was last updated.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1NotebookExecution
3636
* `labels` (*type:* `map()`, *default:* `nil`) - The labels with user-defined metadata to organize NotebookExecutionJobs. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels. System reserved label keys are prefixed with "aiplatform.googleapis.com/" and are immutable.
3737
* `name` (*type:* `String.t`, *default:* `nil`) - Output only. The resource name of this NotebookExecutionJob. Format: `projects/{project_id}/locations/{location}/notebookExecutionJobs/{job_id}`
3838
* `notebookRuntimeTemplateResourceName` (*type:* `String.t`, *default:* `nil`) - The NotebookRuntimeTemplate to source compute configuration from.
39-
* `scheduleResourceName` (*type:* `String.t`, *default:* `nil`) - Output only. The Schedule resource name if this job is triggered by one. Format: `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
39+
* `scheduleResourceName` (*type:* `String.t`, *default:* `nil`) - The Schedule resource name if this job is triggered by one. Format: `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
4040
* `serviceAccount` (*type:* `String.t`, *default:* `nil`) - The service account to run the execution as.
4141
* `status` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleRpcStatus.t`, *default:* `nil`) - Output only. Populated when the NotebookExecutionJob is completed. When there is an error during notebook execution, the error details are populated.
4242
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Timestamp when this NotebookExecutionJob was most recently updated.
Lines changed: 49 additions & 0 deletions
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.GoogleCloudAiplatformV1RetrievalConfig do
19+
@moduledoc """
20+
Retrieval config.
21+
22+
## Attributes
23+
24+
* `languageCode` (*type:* `String.t`, *default:* `nil`) - The language code of the user.
25+
* `latLng` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleTypeLatLng.t`, *default:* `nil`) - The location of the user.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:languageCode => String.t() | nil,
32+
:latLng => GoogleApi.AIPlatform.V1.Model.GoogleTypeLatLng.t() | nil
33+
}
34+
35+
field(:languageCode)
36+
field(:latLng, as: GoogleApi.AIPlatform.V1.Model.GoogleTypeLatLng)
37+
end
38+
39+
defimpl Poison.Decoder, for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RetrievalConfig do
40+
def decode(value, options) do
41+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RetrievalConfig.decode(value, options)
42+
end
43+
end
44+
45+
defimpl Poison.Encoder, for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RetrievalConfig do
46+
def encode(value, options) do
47+
GoogleApi.Gax.ModelBase.encode(value, options)
48+
end
49+
end

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,23 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ToolConfig do
2222
## Attributes
2323
2424
* `functionCallingConfig` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FunctionCallingConfig.t`, *default:* `nil`) - Optional. Function calling config.
25+
* `retrievalConfig` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RetrievalConfig.t`, *default:* `nil`) - Optional. Retrieval config.
2526
"""
2627

2728
use GoogleApi.Gax.ModelBase
2829

2930
@type t :: %__MODULE__{
3031
:functionCallingConfig =>
31-
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FunctionCallingConfig.t() | nil
32+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FunctionCallingConfig.t() | nil,
33+
:retrievalConfig =>
34+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RetrievalConfig.t() | nil
3235
}
3336

3437
field(:functionCallingConfig,
3538
as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FunctionCallingConfig
3639
)
40+
41+
field(:retrievalConfig, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RetrievalConfig)
3742
end
3843

3944
defimpl Poison.Decoder, for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ToolConfig do

0 commit comments

Comments
 (0)