Skip to content

Commit 9f17f5c

Browse files
feat: Automated regeneration of AIPlatform client (googleapis#12552)
Auto-created at 2024-11-17 13:11:18 +0000 using the toys pull request generator.
1 parent 79bf2f1 commit 9f17f5c

File tree

29 files changed

+1662
-18
lines changed

29 files changed

+1662
-18
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.22"}]
14+
[{:google_api_ai_platform, "~> 0.23"}]
1515
end
1616
```
1717

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

Lines changed: 820 additions & 5 deletions
Large diffs are not rendered by default.

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 "20241026"
23+
@discovery_revision "20241112"
2424

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1BatchMigrateResou
2424
* `dataset` (*type:* `String.t`, *default:* `nil`) - Migrated dataset resource name.
2525
* `error` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleRpcStatus.t`, *default:* `nil`) - The error result of the migration request in case of failure.
2626
* `model` (*type:* `String.t`, *default:* `nil`) - Migrated model resource name.
27-
* `request` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1MigrateResourceRequest.t`, *default:* `nil`) - It's the same as the value in MigrateResourceRequest.migrate_resource_requests.
27+
* `request` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1MigrateResourceRequest.t`, *default:* `nil`) - It's the same as the value in BatchMigrateResourcesRequest.migrate_resource_requests.
2828
"""
2929

3030
use GoogleApi.Gax.ModelBase
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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.GoogleCloudAiplatformV1CometInput do
19+
@moduledoc """
20+
Input for Comet metric.
21+
22+
## Attributes
23+
24+
* `instance` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CometInstance.t`, *default:* `nil`) - Required. Comet instance.
25+
* `metricSpec` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CometSpec.t`, *default:* `nil`) - Required. Spec for comet metric.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:instance =>
32+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CometInstance.t() | nil,
33+
:metricSpec => GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CometSpec.t() | nil
34+
}
35+
36+
field(:instance, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CometInstance)
37+
field(:metricSpec, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CometSpec)
38+
end
39+
40+
defimpl Poison.Decoder, for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CometInput do
41+
def decode(value, options) do
42+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CometInput.decode(value, options)
43+
end
44+
end
45+
46+
defimpl Poison.Encoder, for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CometInput do
47+
def encode(value, options) do
48+
GoogleApi.Gax.ModelBase.encode(value, options)
49+
end
50+
end
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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.GoogleCloudAiplatformV1CometInstance do
19+
@moduledoc """
20+
Spec for Comet instance - The fields used for evaluation are dependent on the comet version.
21+
22+
## Attributes
23+
24+
* `prediction` (*type:* `String.t`, *default:* `nil`) - Required. Output of the evaluated model.
25+
* `reference` (*type:* `String.t`, *default:* `nil`) - Optional. Ground truth used to compare against the prediction.
26+
* `source` (*type:* `String.t`, *default:* `nil`) - Optional. Source text in original language.
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:prediction => String.t() | nil,
33+
:reference => String.t() | nil,
34+
:source => String.t() | nil
35+
}
36+
37+
field(:prediction)
38+
field(:reference)
39+
field(:source)
40+
end
41+
42+
defimpl Poison.Decoder, for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CometInstance do
43+
def decode(value, options) do
44+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CometInstance.decode(value, options)
45+
end
46+
end
47+
48+
defimpl Poison.Encoder, for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CometInstance do
49+
def encode(value, options) do
50+
GoogleApi.Gax.ModelBase.encode(value, options)
51+
end
52+
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.GoogleCloudAiplatformV1CometResult do
19+
@moduledoc """
20+
Spec for Comet result - calculates the comet score for the given instance using the version specified in the spec.
21+
22+
## Attributes
23+
24+
* `score` (*type:* `number()`, *default:* `nil`) - Output only. Comet score. Range depends on version.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:score => number() | nil
31+
}
32+
33+
field(:score)
34+
end
35+
36+
defimpl Poison.Decoder, for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CometResult do
37+
def decode(value, options) do
38+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CometResult.decode(value, options)
39+
end
40+
end
41+
42+
defimpl Poison.Encoder, for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CometResult do
43+
def encode(value, options) do
44+
GoogleApi.Gax.ModelBase.encode(value, options)
45+
end
46+
end
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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.GoogleCloudAiplatformV1CometSpec do
19+
@moduledoc """
20+
Spec for Comet metric.
21+
22+
## Attributes
23+
24+
* `sourceLanguage` (*type:* `String.t`, *default:* `nil`) - Optional. Source language in BCP-47 format.
25+
* `targetLanguage` (*type:* `String.t`, *default:* `nil`) - Optional. Target language in BCP-47 format. Covers both prediction and reference.
26+
* `version` (*type:* `String.t`, *default:* `nil`) - Required. Which version to use for evaluation.
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:sourceLanguage => String.t() | nil,
33+
:targetLanguage => String.t() | nil,
34+
:version => String.t() | nil
35+
}
36+
37+
field(:sourceLanguage)
38+
field(:targetLanguage)
39+
field(:version)
40+
end
41+
42+
defimpl Poison.Decoder, for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CometSpec do
43+
def decode(value, options) do
44+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CometSpec.decode(value, options)
45+
end
46+
end
47+
48+
defimpl Poison.Encoder, for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CometSpec do
49+
def encode(value, options) do
50+
GoogleApi.Gax.ModelBase.encode(value, options)
51+
end
52+
end

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1DeployedModel do
2929
* `displayName` (*type:* `String.t`, *default:* `nil`) - The display name of the DeployedModel. If not provided upon creation, the Model's display_name is used.
3030
* `enableAccessLogging` (*type:* `boolean()`, *default:* `nil`) - If true, online prediction access logs are sent to Cloud Logging. These logs are like standard server access logs, containing information like timestamp and latency for each prediction request. Note that logs may incur a cost, especially if your project receives prediction requests at a high queries per second rate (QPS). Estimate your costs before enabling this option.
3131
* `explanationSpec` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ExplanationSpec.t`, *default:* `nil`) - Explanation configuration for this DeployedModel. When deploying a Model using EndpointService.DeployModel, this value overrides the value of Model.explanation_spec. All fields of explanation_spec are optional in the request. If a field of explanation_spec is not populated, the value of the same field of Model.explanation_spec is inherited. If the corresponding Model.explanation_spec is not populated, all fields of the explanation_spec will be used for the explanation configuration.
32+
* `fasterDeploymentConfig` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FasterDeploymentConfig.t`, *default:* `nil`) - Configuration for faster model deployment.
3233
* `id` (*type:* `String.t`, *default:* `nil`) - Immutable. The ID of the DeployedModel. If not provided upon deployment, Vertex AI will generate a value for this ID. This value should be 1-10 characters, and valid characters are `/[0-9]/`.
3334
* `model` (*type:* `String.t`, *default:* `nil`) - Required. The resource name of the Model that this is the deployment of. Note that the Model may be in a different location than the DeployedModel's Endpoint. The resource name may contain version id or version alias to specify the version. Example: `projects/{project}/locations/{location}/models/{model}@2` or `projects/{project}/locations/{location}/models/{model}@golden` if no version is specified, the default version will be deployed.
3435
* `modelVersionId` (*type:* `String.t`, *default:* `nil`) - Output only. The version ID of the model that is deployed.
@@ -52,6 +53,8 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1DeployedModel do
5253
:enableAccessLogging => boolean() | nil,
5354
:explanationSpec =>
5455
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ExplanationSpec.t() | nil,
56+
:fasterDeploymentConfig =>
57+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FasterDeploymentConfig.t() | nil,
5558
:id => String.t() | nil,
5659
:model => String.t() | nil,
5760
:modelVersionId => String.t() | nil,
@@ -79,6 +82,10 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1DeployedModel do
7982

8083
field(:explanationSpec, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ExplanationSpec)
8184

85+
field(:fasterDeploymentConfig,
86+
as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FasterDeploymentConfig
87+
)
88+
8289
field(:id)
8390
field(:model)
8491
field(:modelVersionId)

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,12 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1EvaluateInstances
2323
2424
* `bleuInput` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1BleuInput.t`, *default:* `nil`) - Instances and metric spec for bleu metric.
2525
* `coherenceInput` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CoherenceInput.t`, *default:* `nil`) - Input for coherence metric.
26+
* `cometInput` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CometInput.t`, *default:* `nil`) - Translation metrics. Input for Comet metric.
2627
* `exactMatchInput` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ExactMatchInput.t`, *default:* `nil`) - Auto metric instances. Instances and metric spec for exact match metric.
2728
* `fluencyInput` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FluencyInput.t`, *default:* `nil`) - LLM-based metric instance. General text generation metrics, applicable to other categories. Input for fluency metric.
2829
* `fulfillmentInput` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FulfillmentInput.t`, *default:* `nil`) - Input for fulfillment metric.
2930
* `groundednessInput` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GroundednessInput.t`, *default:* `nil`) - Input for groundedness metric.
31+
* `metricxInput` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1MetricxInput.t`, *default:* `nil`) - Input for Metricx metric.
3032
* `pairwiseMetricInput` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PairwiseMetricInput.t`, *default:* `nil`) - Input for pairwise metric.
3133
* `pairwiseQuestionAnsweringQualityInput` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInput.t`, *default:* `nil`) - Input for pairwise question answering quality metric.
3234
* `pairwiseSummarizationQualityInput` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PairwiseSummarizationQualityInput.t`, *default:* `nil`) - Input for pairwise summarization quality metric.
@@ -52,6 +54,8 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1EvaluateInstances
5254
:bleuInput => GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1BleuInput.t() | nil,
5355
:coherenceInput =>
5456
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CoherenceInput.t() | nil,
57+
:cometInput =>
58+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CometInput.t() | nil,
5559
:exactMatchInput =>
5660
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ExactMatchInput.t() | nil,
5761
:fluencyInput =>
@@ -60,6 +64,8 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1EvaluateInstances
6064
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FulfillmentInput.t() | nil,
6165
:groundednessInput =>
6266
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GroundednessInput.t() | nil,
67+
:metricxInput =>
68+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1MetricxInput.t() | nil,
6369
:pairwiseMetricInput =>
6470
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PairwiseMetricInput.t() | nil,
6571
:pairwiseQuestionAnsweringQualityInput =>
@@ -109,6 +115,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1EvaluateInstances
109115

110116
field(:bleuInput, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1BleuInput)
111117
field(:coherenceInput, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CoherenceInput)
118+
field(:cometInput, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CometInput)
112119

113120
field(:exactMatchInput, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ExactMatchInput)
114121

@@ -122,6 +129,8 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1EvaluateInstances
122129
as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GroundednessInput
123130
)
124131

132+
field(:metricxInput, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1MetricxInput)
133+
125134
field(:pairwiseMetricInput,
126135
as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PairwiseMetricInput
127136
)

0 commit comments

Comments
 (0)