-
Notifications
You must be signed in to change notification settings - Fork 461
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Automated regeneration of AIPlatform client (#12552)
Auto-created at 2024-11-17 13:11:18 +0000 using the toys pull request generator.
- Loading branch information
1 parent
79bf2f1
commit 9f17f5c
Showing
29 changed files
with
1,662 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
825 changes: 820 additions & 5 deletions
825
clients/ai_platform/lib/google_api/ai_platform/v1/api/projects.ex
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
...ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_comet_input.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# 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.GoogleCloudAiplatformV1CometInput do | ||
@moduledoc """ | ||
Input for Comet metric. | ||
## Attributes | ||
* `instance` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CometInstance.t`, *default:* `nil`) - Required. Comet instance. | ||
* `metricSpec` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CometSpec.t`, *default:* `nil`) - Required. Spec for comet metric. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:instance => | ||
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CometInstance.t() | nil, | ||
:metricSpec => GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CometSpec.t() | nil | ||
} | ||
|
||
field(:instance, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CometInstance) | ||
field(:metricSpec, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CometSpec) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CometInput do | ||
def decode(value, options) do | ||
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CometInput.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CometInput do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
52 changes: 52 additions & 0 deletions
52
...platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_comet_instance.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# 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.GoogleCloudAiplatformV1CometInstance do | ||
@moduledoc """ | ||
Spec for Comet instance - The fields used for evaluation are dependent on the comet version. | ||
## Attributes | ||
* `prediction` (*type:* `String.t`, *default:* `nil`) - Required. Output of the evaluated model. | ||
* `reference` (*type:* `String.t`, *default:* `nil`) - Optional. Ground truth used to compare against the prediction. | ||
* `source` (*type:* `String.t`, *default:* `nil`) - Optional. Source text in original language. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:prediction => String.t() | nil, | ||
:reference => String.t() | nil, | ||
:source => String.t() | nil | ||
} | ||
|
||
field(:prediction) | ||
field(:reference) | ||
field(:source) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CometInstance do | ||
def decode(value, options) do | ||
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CometInstance.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CometInstance do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
46 changes: 46 additions & 0 deletions
46
...i_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_comet_result.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# 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.GoogleCloudAiplatformV1CometResult do | ||
@moduledoc """ | ||
Spec for Comet result - calculates the comet score for the given instance using the version specified in the spec. | ||
## Attributes | ||
* `score` (*type:* `number()`, *default:* `nil`) - Output only. Comet score. Range depends on version. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:score => number() | nil | ||
} | ||
|
||
field(:score) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CometResult do | ||
def decode(value, options) do | ||
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CometResult.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CometResult do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
52 changes: 52 additions & 0 deletions
52
.../ai_platform/lib/google_api/ai_platform/v1/model/google_cloud_aiplatform_v1_comet_spec.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# 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.GoogleCloudAiplatformV1CometSpec do | ||
@moduledoc """ | ||
Spec for Comet metric. | ||
## Attributes | ||
* `sourceLanguage` (*type:* `String.t`, *default:* `nil`) - Optional. Source language in BCP-47 format. | ||
* `targetLanguage` (*type:* `String.t`, *default:* `nil`) - Optional. Target language in BCP-47 format. Covers both prediction and reference. | ||
* `version` (*type:* `String.t`, *default:* `nil`) - Required. Which version to use for evaluation. | ||
""" | ||
|
||
use GoogleApi.Gax.ModelBase | ||
|
||
@type t :: %__MODULE__{ | ||
:sourceLanguage => String.t() | nil, | ||
:targetLanguage => String.t() | nil, | ||
:version => String.t() | nil | ||
} | ||
|
||
field(:sourceLanguage) | ||
field(:targetLanguage) | ||
field(:version) | ||
end | ||
|
||
defimpl Poison.Decoder, for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CometSpec do | ||
def decode(value, options) do | ||
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CometSpec.decode(value, options) | ||
end | ||
end | ||
|
||
defimpl Poison.Encoder, for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CometSpec do | ||
def encode(value, options) do | ||
GoogleApi.Gax.ModelBase.encode(value, options) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.