Skip to content

Commit c7eb203

Browse files
feat: Automated regeneration of AIPlatform client (googleapis#12951)
Auto-created at 2025-02-11 13:15:19 +0000 using the toys pull request generator.
1 parent 3d6e83d commit c7eb203

9 files changed

+86
-5
lines changed

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
@@ -6131,7 +6131,7 @@ defmodule GoogleApi.AIPlatform.V1.Api.Projects do
61316131
* `: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.
61326132
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
61336133
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
6134-
* `:updateMask` (*type:* `String.t`) - Field mask is used to specify the fields to be overwritten in the FeatureGroup resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `labels` * `description` * `big_query` * `big_query.entity_id_columns`
6134+
* `:updateMask` (*type:* `String.t`) - Field mask is used to specify the fields to be overwritten in the FeatureGroup resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `labels` * `description` * `big_query` * `big_query.entity_id_columns` * `service_agent_type`
61356135
* `:body` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FeatureGroup.t`) -
61366136
* `opts` (*type:* `keyword()`) - Call options
61376137

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 "20250131"
23+
@discovery_revision "20250205"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
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.GoogleCloudAiplatformV1AutoraterConfig do
19+
@moduledoc """
20+
The configs for autorater. This is applicable to both EvaluateInstances and EvaluateDataset.
21+
22+
## Attributes
23+
24+
* `autoraterModel` (*type:* `String.t`, *default:* `nil`) - Optional. The fully qualified name of the publisher model or tuned autorater endpoint to use. Publisher model format: `projects/{project}/locations/{location}/publishers/*/models/*` Tuned model endpoint format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
25+
* `flipEnabled` (*type:* `boolean()`, *default:* `nil`) - Optional. Whether to flip the candidate and baseline responses. This is only applicable to the pairwise metric. If enabled, also provide PairwiseMetricSpec.candidate_response_field_name and PairwiseMetricSpec.baseline_response_field_name. When rendering PairwiseMetricSpec.metric_prompt_template, the candidate and baseline fields will be flipped for half of the samples to reduce bias.
26+
* `samplingCount` (*type:* `integer()`, *default:* `nil`) - Optional. Number of samples for each instance in the dataset. If not specified, the default is 4. Minimum value is 1, maximum value is 32.
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:autoraterModel => String.t() | nil,
33+
:flipEnabled => boolean() | nil,
34+
:samplingCount => integer() | nil
35+
}
36+
37+
field(:autoraterModel)
38+
field(:flipEnabled)
39+
field(:samplingCount)
40+
end
41+
42+
defimpl Poison.Decoder, for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1AutoraterConfig do
43+
def decode(value, options) do
44+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1AutoraterConfig.decode(value, options)
45+
end
46+
end
47+
48+
defimpl Poison.Encoder, for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1AutoraterConfig 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_evaluate_instances_request.ex

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1EvaluateInstances
2121
2222
## Attributes
2323
24+
* `autoraterConfig` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1AutoraterConfig.t`, *default:* `nil`) - Optional. Autorater config used for evaluation.
2425
* `bleuInput` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1BleuInput.t`, *default:* `nil`) - Instances and metric spec for bleu metric.
2526
* `coherenceInput` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CoherenceInput.t`, *default:* `nil`) - Input for coherence metric.
2627
* `cometInput` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CometInput.t`, *default:* `nil`) - Translation metrics. Input for Comet metric.
@@ -57,6 +58,8 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1EvaluateInstances
5758
use GoogleApi.Gax.ModelBase
5859

5960
@type t :: %__MODULE__{
61+
:autoraterConfig =>
62+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1AutoraterConfig.t() | nil,
6063
:bleuInput => GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1BleuInput.t() | nil,
6164
:coherenceInput =>
6265
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CoherenceInput.t() | nil,
@@ -136,6 +139,8 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1EvaluateInstances
136139
| nil
137140
}
138141

142+
field(:autoraterConfig, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1AutoraterConfig)
143+
139144
field(:bleuInput, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1BleuInput)
140145
field(:coherenceInput, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CoherenceInput)
141146
field(:cometInput, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CometInput)

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1MachineSpec do
2424
* `acceleratorCount` (*type:* `integer()`, *default:* `nil`) - The number of accelerators to attach to the machine.
2525
* `acceleratorType` (*type:* `String.t`, *default:* `nil`) - Immutable. The type of accelerator(s) that may be attached to the machine as per accelerator_count.
2626
* `machineType` (*type:* `String.t`, *default:* `nil`) - Immutable. The type of the machine. See the [list of machine types supported for prediction](https://cloud.google.com/vertex-ai/docs/predictions/configure-compute#machine-types) See the [list of machine types supported for custom training](https://cloud.google.com/vertex-ai/docs/training/configure-compute#machine-types). For DeployedModel this field is optional, and the default value is `n1-standard-2`. For BatchPredictionJob or as part of WorkerPoolSpec this field is required.
27+
* `multihostGpuNodeCount` (*type:* `integer()`, *default:* `nil`) - Optional. Immutable. The number of nodes per replica for multihost GPU deployments.
2728
* `reservationAffinity` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ReservationAffinity.t`, *default:* `nil`) - Optional. Immutable. Configuration controlling how this resource pool consumes reservation.
2829
* `tpuTopology` (*type:* `String.t`, *default:* `nil`) - Immutable. The topology of the TPUs. Corresponds to the TPU topologies available from GKE. (Example: tpu_topology: "2x2x1").
2930
"""
@@ -34,6 +35,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1MachineSpec do
3435
:acceleratorCount => integer() | nil,
3536
:acceleratorType => String.t() | nil,
3637
:machineType => String.t() | nil,
38+
:multihostGpuNodeCount => integer() | nil,
3739
:reservationAffinity =>
3840
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ReservationAffinity.t() | nil,
3941
:tpuTopology => String.t() | nil
@@ -42,6 +44,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1MachineSpec do
4244
field(:acceleratorCount)
4345
field(:acceleratorType)
4446
field(:machineType)
47+
field(:multihostGpuNodeCount)
4548

4649
field(:reservationAffinity,
4750
as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ReservationAffinity

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ModelExportFormat
2222
## Attributes
2323
2424
* `exportableContents` (*type:* `list(String.t)`, *default:* `nil`) - Output only. The content of this Model that may be exported.
25-
* `id` (*type:* `String.t`, *default:* `nil`) - Output only. The ID of the export format. The possible format IDs are: * `tflite` Used for Android mobile devices. * `edgetpu-tflite` Used for [Edge TPU](https://cloud.google.com/edge-tpu/) devices. * `tf-saved-model` A tensorflow model in SavedModel format. * `tf-js` A [TensorFlow.js](https://www.tensorflow.org/js) model that can be used in the browser and in Node.js using JavaScript. * `core-ml` Used for iOS mobile devices. * `custom-trained` A Model that was uploaded or trained by custom code.
25+
* `id` (*type:* `String.t`, *default:* `nil`) - Output only. The ID of the export format. The possible format IDs are: * `tflite` Used for Android mobile devices. * `edgetpu-tflite` Used for [Edge TPU](https://cloud.google.com/edge-tpu/) devices. * `tf-saved-model` A tensorflow model in SavedModel format. * `tf-js` A [TensorFlow.js](https://www.tensorflow.org/js) model that can be used in the browser and in Node.js using JavaScript. * `core-ml` Used for iOS mobile devices. * `custom-trained` A Model that was uploaded or trained by custom code. * `genie` A tuned Model Garden model.
2626
"""
2727

2828
use GoogleApi.Gax.ModelBase

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,25 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PairwiseMetricSpe
2121
2222
## Attributes
2323
24+
* `baselineResponseFieldName` (*type:* `String.t`, *default:* `nil`) - Optional. The field name of the baseline response.
25+
* `candidateResponseFieldName` (*type:* `String.t`, *default:* `nil`) - Optional. The field name of the candidate response.
2426
* `metricPromptTemplate` (*type:* `String.t`, *default:* `nil`) - Required. Metric prompt template for pairwise metric.
27+
* `systemInstruction` (*type:* `String.t`, *default:* `nil`) - Optional. System instructions for pairwise metric.
2528
"""
2629

2730
use GoogleApi.Gax.ModelBase
2831

2932
@type t :: %__MODULE__{
30-
:metricPromptTemplate => String.t() | nil
33+
:baselineResponseFieldName => String.t() | nil,
34+
:candidateResponseFieldName => String.t() | nil,
35+
:metricPromptTemplate => String.t() | nil,
36+
:systemInstruction => String.t() | nil
3137
}
3238

39+
field(:baselineResponseFieldName)
40+
field(:candidateResponseFieldName)
3341
field(:metricPromptTemplate)
42+
field(:systemInstruction)
3443
end
3544

3645
defimpl Poison.Decoder,

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,18 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PointwiseMetricSp
2222
## Attributes
2323
2424
* `metricPromptTemplate` (*type:* `String.t`, *default:* `nil`) - Required. Metric prompt template for pointwise metric.
25+
* `systemInstruction` (*type:* `String.t`, *default:* `nil`) - Optional. System instructions for pointwise metric.
2526
"""
2627

2728
use GoogleApi.Gax.ModelBase
2829

2930
@type t :: %__MODULE__{
30-
:metricPromptTemplate => String.t() | nil
31+
:metricPromptTemplate => String.t() | nil,
32+
:systemInstruction => String.t() | nil
3133
}
3234

3335
field(:metricPromptTemplate)
36+
field(:systemInstruction)
3437
end
3538

3639
defimpl Poison.Decoder,

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,12 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Probe do
2222
## Attributes
2323
2424
* `exec` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ProbeExecAction.t`, *default:* `nil`) - ExecAction probes the health of a container by executing a command.
25+
* `failureThreshold` (*type:* `integer()`, *default:* `nil`) - Number of consecutive failures before the probe is considered failed. Defaults to 3. Minimum value is 1. Maps to Kubernetes probe argument 'failureThreshold'.
2526
* `grpc` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ProbeGrpcAction.t`, *default:* `nil`) - GrpcAction probes the health of a container by sending a gRPC request.
2627
* `httpGet` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ProbeHttpGetAction.t`, *default:* `nil`) - HttpGetAction probes the health of a container by sending an HTTP GET request.
28+
* `initialDelaySeconds` (*type:* `integer()`, *default:* `nil`) - Number of seconds to wait before starting the probe. Defaults to 0. Minimum value is 0. Maps to Kubernetes probe argument 'initialDelaySeconds'.
2729
* `periodSeconds` (*type:* `integer()`, *default:* `nil`) - How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Must be less than timeout_seconds. Maps to Kubernetes probe argument 'periodSeconds'.
30+
* `successThreshold` (*type:* `integer()`, *default:* `nil`) - Number of consecutive successes before the probe is considered successful. Defaults to 1. Minimum value is 1. Maps to Kubernetes probe argument 'successThreshold'.
2831
* `tcpSocket` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ProbeTcpSocketAction.t`, *default:* `nil`) - TcpSocketAction probes the health of a container by opening a TCP socket connection.
2932
* `timeoutSeconds` (*type:* `integer()`, *default:* `nil`) - Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Must be greater or equal to period_seconds. Maps to Kubernetes probe argument 'timeoutSeconds'.
3033
"""
@@ -33,19 +36,25 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Probe do
3336

3437
@type t :: %__MODULE__{
3538
:exec => GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ProbeExecAction.t() | nil,
39+
:failureThreshold => integer() | nil,
3640
:grpc => GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ProbeGrpcAction.t() | nil,
3741
:httpGet =>
3842
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ProbeHttpGetAction.t() | nil,
43+
:initialDelaySeconds => integer() | nil,
3944
:periodSeconds => integer() | nil,
45+
:successThreshold => integer() | nil,
4046
:tcpSocket =>
4147
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ProbeTcpSocketAction.t() | nil,
4248
:timeoutSeconds => integer() | nil
4349
}
4450

4551
field(:exec, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ProbeExecAction)
52+
field(:failureThreshold)
4653
field(:grpc, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ProbeGrpcAction)
4754
field(:httpGet, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ProbeHttpGetAction)
55+
field(:initialDelaySeconds)
4856
field(:periodSeconds)
57+
field(:successThreshold)
4958
field(:tcpSocket, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1ProbeTcpSocketAction)
5059
field(:timeoutSeconds)
5160
end

0 commit comments

Comments
 (0)