Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Automated regeneration of AIPlatform client #12811

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion clients/ai_platform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding

```elixir
def deps do
[{:google_api_ai_platform, "~> 0.26"}]
[{:google_api_ai_platform, "~> 0.27"}]
end
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ defmodule GoogleApi.AIPlatform.V1.Api.Datasets do
## Parameters

* `connection` (*type:* `GoogleApi.AIPlatform.V1.Connection.t`) - Connection to server
* `name` (*type:* `String.t`) - Output only. Identifier. The resource name of the DatasetVersion.
* `name` (*type:* `String.t`) - Output only. Identifier. The resource name of the DatasetVersion. Format: `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
* `optional_params` (*type:* `keyword()`) - Optional parameters
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
* `:access_token` (*type:* `String.t`) - OAuth access token.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40044,7 +40044,7 @@ defmodule GoogleApi.AIPlatform.V1.Api.Projects do
## Parameters

* `connection` (*type:* `GoogleApi.AIPlatform.V1.Connection.t`) - Connection to server
* `name` (*type:* `String.t`) - Output only. Identifier. The resource name of the DatasetVersion.
* `name` (*type:* `String.t`) - Output only. Identifier. The resource name of the DatasetVersion. Format: `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
* `optional_params` (*type:* `keyword()`) - Optional parameters
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
* `:access_token` (*type:* `String.t`) - OAuth access token.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.AIPlatform.V1 do
API client metadata for GoogleApi.AIPlatform.V1.
"""

@discovery_revision "20241214"
@discovery_revision "20250107"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

defmodule GoogleApi.AIPlatform.V1.Model.CloudAiPlatformCommonCreatePipelineJobApiErrorDetail do
@moduledoc """
Create API error message for Vertex Pipeline. Next Id: 3.
Create API error message for Vertex Pipeline.

## Attributes

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ApiAuth do
@moduledoc """
The generic reusable api auth config.
The generic reusable api auth config. Deprecated. Please use AuthConfig (google/cloud/aiplatform/master/auth.proto) instead.

## Attributes

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1DatasetVersion do
* `etag` (*type:* `String.t`, *default:* `nil`) - Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens.
* `metadata` (*type:* `any()`, *default:* `nil`) - Required. Output only. Additional information about the DatasetVersion.
* `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.
* `name` (*type:* `String.t`, *default:* `nil`) - Output only. Identifier. The resource name of the DatasetVersion.
* `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}`
* `satisfiesPzi` (*type:* `boolean()`, *default:* `nil`) - Output only. Reserved for future use.
* `satisfiesPzs` (*type:* `boolean()`, *default:* `nil`) - Output only. Reserved for future use.
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Timestamp when this DatasetVersion was last updated.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1NotebookExecution
* `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.
* `name` (*type:* `String.t`, *default:* `nil`) - Output only. The resource name of this NotebookExecutionJob. Format: `projects/{project_id}/locations/{location}/notebookExecutionJobs/{job_id}`
* `notebookRuntimeTemplateResourceName` (*type:* `String.t`, *default:* `nil`) - The NotebookRuntimeTemplate to source compute configuration from.
* `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}`
* `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}`
* `serviceAccount` (*type:* `String.t`, *default:* `nil`) - The service account to run the execution as.
* `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.
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Timestamp when this NotebookExecutionJob was most recently updated.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RetrievalConfig do
@moduledoc """
Retrieval config.

## Attributes

* `languageCode` (*type:* `String.t`, *default:* `nil`) - The language code of the user.
* `latLng` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleTypeLatLng.t`, *default:* `nil`) - The location of the user.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:languageCode => String.t() | nil,
:latLng => GoogleApi.AIPlatform.V1.Model.GoogleTypeLatLng.t() | nil
}

field(:languageCode)
field(:latLng, as: GoogleApi.AIPlatform.V1.Model.GoogleTypeLatLng)
end

defimpl Poison.Decoder, for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RetrievalConfig do
def decode(value, options) do
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RetrievalConfig.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RetrievalConfig do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,23 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ToolConfig do
## Attributes

* `functionCallingConfig` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FunctionCallingConfig.t`, *default:* `nil`) - Optional. Function calling config.
* `retrievalConfig` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RetrievalConfig.t`, *default:* `nil`) - Optional. Retrieval config.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:functionCallingConfig =>
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FunctionCallingConfig.t() | nil
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FunctionCallingConfig.t() | nil,
:retrievalConfig =>
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RetrievalConfig.t() | nil
}

field(:functionCallingConfig,
as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FunctionCallingConfig
)

field(:retrievalConfig, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1RetrievalConfig)
end

defimpl Poison.Decoder, for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ToolConfig do
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.AIPlatform.V1.Model.GoogleTypeLatLng do
@moduledoc """
An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges.

## Attributes

* `latitude` (*type:* `float()`, *default:* `nil`) - The latitude in degrees. It must be in the range [-90.0, +90.0].
* `longitude` (*type:* `float()`, *default:* `nil`) - The longitude in degrees. It must be in the range [-180.0, +180.0].
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:latitude => float() | nil,
:longitude => float() | nil
}

field(:latitude)
field(:longitude)
end

defimpl Poison.Decoder, for: GoogleApi.AIPlatform.V1.Model.GoogleTypeLatLng do
def decode(value, options) do
GoogleApi.AIPlatform.V1.Model.GoogleTypeLatLng.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.AIPlatform.V1.Model.GoogleTypeLatLng do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
2 changes: 1 addition & 1 deletion clients/ai_platform/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
defmodule GoogleApi.AIPlatform.Mixfile do
use Mix.Project

@version "0.26.1"
@version "0.27.0"

def project() do
[
Expand Down
Loading