Skip to content

Commit c2866ed

Browse files
feat: Automated regeneration of AIPlatform client (googleapis#12330)
Auto-created at 2024-10-15 13:17:40 +0000 using the toys pull request generator.
1 parent e72989b commit c2866ed

20 files changed

+658
-5
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.19"}]
14+
[{:google_api_ai_platform, "~> 0.20"}]
1515
end
1616
```
1717

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

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8439,6 +8439,80 @@ defmodule GoogleApi.AIPlatform.V1.Api.Projects do
84398439
)
84408440
end
84418441

8442+
@doc """
8443+
Creates a batch of Features in a given FeatureGroup.
8444+
8445+
## Parameters
8446+
8447+
* `connection` (*type:* `GoogleApi.AIPlatform.V1.Connection.t`) - Connection to server
8448+
* `parent` (*type:* `String.t`) - Required. The resource name of the EntityType/FeatureGroup to create the batch of Features under. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` `projects/{project}/locations/{location}/featureGroups/{feature_group}`
8449+
* `optional_params` (*type:* `keyword()`) - Optional parameters
8450+
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
8451+
* `:access_token` (*type:* `String.t`) - OAuth access token.
8452+
* `:alt` (*type:* `String.t`) - Data format for response.
8453+
* `:callback` (*type:* `String.t`) - JSONP
8454+
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
8455+
* `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
8456+
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
8457+
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
8458+
* `: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.
8459+
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
8460+
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
8461+
* `:body` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1BatchCreateFeaturesRequest.t`) -
8462+
* `opts` (*type:* `keyword()`) - Call options
8463+
8464+
## Returns
8465+
8466+
* `{:ok, %GoogleApi.AIPlatform.V1.Model.GoogleLongrunningOperation{}}` on success
8467+
* `{:error, info}` on failure
8468+
"""
8469+
@spec aiplatform_projects_locations_feature_groups_features_batch_create(
8470+
Tesla.Env.client(),
8471+
String.t(),
8472+
keyword(),
8473+
keyword()
8474+
) ::
8475+
{:ok, GoogleApi.AIPlatform.V1.Model.GoogleLongrunningOperation.t()}
8476+
| {:ok, Tesla.Env.t()}
8477+
| {:ok, list()}
8478+
| {:error, any()}
8479+
def aiplatform_projects_locations_feature_groups_features_batch_create(
8480+
connection,
8481+
parent,
8482+
optional_params \\ [],
8483+
opts \\ []
8484+
) do
8485+
optional_params_config = %{
8486+
:"$.xgafv" => :query,
8487+
:access_token => :query,
8488+
:alt => :query,
8489+
:callback => :query,
8490+
:fields => :query,
8491+
:key => :query,
8492+
:oauth_token => :query,
8493+
:prettyPrint => :query,
8494+
:quotaUser => :query,
8495+
:uploadType => :query,
8496+
:upload_protocol => :query,
8497+
:body => :body
8498+
}
8499+
8500+
request =
8501+
Request.new()
8502+
|> Request.method(:post)
8503+
|> Request.url("/v1/{+parent}/features:batchCreate", %{
8504+
"parent" => URI.encode(parent, &URI.char_unreserved?/1)
8505+
})
8506+
|> Request.add_optional_params(optional_params_config, optional_params)
8507+
|> Request.library_version(@library_version)
8508+
8509+
connection
8510+
|> Connection.execute(request)
8511+
|> Response.decode(
8512+
opts ++ [struct: %GoogleApi.AIPlatform.V1.Model.GoogleLongrunningOperation{}]
8513+
)
8514+
end
8515+
84428516
@doc """
84438517
Creates a new Feature in a given FeatureGroup.
84448518

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 "20241001"
23+
@discovery_revision "20241007"
2424

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

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.CloudAiLargeModelsVisionImage do
2525
* `generationSeed` (*type:* `integer()`, *default:* `nil`) - Generation seed for the sampled image. This parameter is exposed to the user only if one of the following is true: 1. The user specified per-example seeds in the request. 2. The user doesn't specify the generation seed in the request.
2626
* `image` (*type:* `String.t`, *default:* `nil`) - Raw bytes.
2727
* `imageRaiScores` (*type:* `GoogleApi.AIPlatform.V1.Model.CloudAiLargeModelsVisionImageRAIScores.t`, *default:* `nil`) - RAI scores for generated image.
28+
* `imageSize` (*type:* `GoogleApi.AIPlatform.V1.Model.CloudAiLargeModelsVisionImageImageSize.t`, *default:* `nil`) - Image size. The size of the image. Can be self reported, or computed from the image bytes.
2829
* `raiInfo` (*type:* `GoogleApi.AIPlatform.V1.Model.CloudAiLargeModelsVisionRaiInfo.t`, *default:* `nil`) - RAI info for image.
2930
* `semanticFilterResponse` (*type:* `GoogleApi.AIPlatform.V1.Model.CloudAiLargeModelsVisionSemanticFilterResponse.t`, *default:* `nil`) - Semantic filter info for image.
3031
* `text` (*type:* `String.t`, *default:* `nil`) - Text/Expanded text input for imagen.
@@ -39,6 +40,8 @@ defmodule GoogleApi.AIPlatform.V1.Model.CloudAiLargeModelsVisionImage do
3940
:image => String.t() | nil,
4041
:imageRaiScores =>
4142
GoogleApi.AIPlatform.V1.Model.CloudAiLargeModelsVisionImageRAIScores.t() | nil,
43+
:imageSize =>
44+
GoogleApi.AIPlatform.V1.Model.CloudAiLargeModelsVisionImageImageSize.t() | nil,
4245
:raiInfo => GoogleApi.AIPlatform.V1.Model.CloudAiLargeModelsVisionRaiInfo.t() | nil,
4346
:semanticFilterResponse =>
4447
GoogleApi.AIPlatform.V1.Model.CloudAiLargeModelsVisionSemanticFilterResponse.t() | nil,
@@ -50,6 +53,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.CloudAiLargeModelsVisionImage do
5053
field(:generationSeed)
5154
field(:image)
5255
field(:imageRaiScores, as: GoogleApi.AIPlatform.V1.Model.CloudAiLargeModelsVisionImageRAIScores)
56+
field(:imageSize, as: GoogleApi.AIPlatform.V1.Model.CloudAiLargeModelsVisionImageImageSize)
5357
field(:raiInfo, as: GoogleApi.AIPlatform.V1.Model.CloudAiLargeModelsVisionRaiInfo)
5458

5559
field(:semanticFilterResponse,
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.CloudAiLargeModelsVisionImageImageSize do
19+
@moduledoc """
20+
Image size.
21+
22+
## Attributes
23+
24+
* `channels` (*type:* `integer()`, *default:* `nil`) -
25+
* `height` (*type:* `integer()`, *default:* `nil`) -
26+
* `width` (*type:* `integer()`, *default:* `nil`) -
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:channels => integer() | nil,
33+
:height => integer() | nil,
34+
:width => integer() | nil
35+
}
36+
37+
field(:channels)
38+
field(:height)
39+
field(:width)
40+
end
41+
42+
defimpl Poison.Decoder, for: GoogleApi.AIPlatform.V1.Model.CloudAiLargeModelsVisionImageImageSize do
43+
def decode(value, options) do
44+
GoogleApi.AIPlatform.V1.Model.CloudAiLargeModelsVisionImageImageSize.decode(value, options)
45+
end
46+
end
47+
48+
defimpl Poison.Encoder, for: GoogleApi.AIPlatform.V1.Model.CloudAiLargeModelsVisionImageImageSize 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_custom_job_spec.ex

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CustomJobSpec do
3030
* `network` (*type:* `String.t`, *default:* `nil`) - Optional. The full name of the Compute Engine [network](/compute/docs/networks-and-firewalls#networks) to which the Job should be peered. For example, `projects/12345/global/networks/myVPC`. [Format](/compute/docs/reference/rest/v1/networks/insert) is of the form `projects/{project}/global/networks/{network}`. Where {project} is a project number, as in `12345`, and {network} is a network name. To specify this field, you must have already [configured VPC Network Peering for Vertex AI](https://cloud.google.com/vertex-ai/docs/general/vpc-peering). If this field is left unspecified, the job is not peered with any network.
3131
* `persistentResourceId` (*type:* `String.t`, *default:* `nil`) - Optional. The ID of the PersistentResource in the same Project and Location which to run If this is specified, the job will be run on existing machines held by the PersistentResource instead of on-demand short-live machines. The network and CMEK configs on the job should be consistent with those on the PersistentResource, otherwise, the job will be rejected.
3232
* `protectedArtifactLocationId` (*type:* `String.t`, *default:* `nil`) - The ID of the location to store protected artifacts. e.g. us-central1. Populate only when the location is different than CustomJob location. List of supported locations: https://cloud.google.com/vertex-ai/docs/general/locations
33+
* `pscInterfaceConfig` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PscInterfaceConfig.t`, *default:* `nil`) - Optional. Configuration for PSC-I for CustomJob.
3334
* `reservedIpRanges` (*type:* `list(String.t)`, *default:* `nil`) - Optional. A list of names for the reserved ip ranges under the VPC network that can be used for this job. If set, we will deploy the job within the provided ip ranges. Otherwise, the job will be deployed to any ip ranges under the provided VPC network. Example: ['vertex-ai-ip-range'].
3435
* `scheduling` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Scheduling.t`, *default:* `nil`) - Scheduling options for a CustomJob.
3536
* `serviceAccount` (*type:* `String.t`, *default:* `nil`) - Specifies the service account for workload run-as account. Users submitting jobs must have act-as permission on this run-as account. If unspecified, the [Vertex AI Custom Code Service Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) for the CustomJob's project is used.
@@ -50,6 +51,8 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CustomJobSpec do
5051
:network => String.t() | nil,
5152
:persistentResourceId => String.t() | nil,
5253
:protectedArtifactLocationId => String.t() | nil,
54+
:pscInterfaceConfig =>
55+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PscInterfaceConfig.t() | nil,
5356
:reservedIpRanges => list(String.t()) | nil,
5457
:scheduling =>
5558
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Scheduling.t() | nil,
@@ -71,6 +74,11 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CustomJobSpec do
7174
field(:network)
7275
field(:persistentResourceId)
7376
field(:protectedArtifactLocationId)
77+
78+
field(:pscInterfaceConfig,
79+
as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PscInterfaceConfig
80+
)
81+
7482
field(:reservedIpRanges, type: :list)
7583
field(:scheduling, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Scheduling)
7684
field(:serviceAccount)

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,18 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FeatureViewSyncCo
2121
2222
## Attributes
2323
24+
* `continuous` (*type:* `boolean()`, *default:* `nil`) - Optional. If true, syncs the FeatureView in a continuous manner to Online Store.
2425
* `cron` (*type:* `String.t`, *default:* `nil`) - Cron schedule (https://en.wikipedia.org/wiki/Cron) to launch scheduled runs. To explicitly set a timezone to the cron tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or "TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone database. For example, "CRON_TZ=America/New_York 1 * * * *", or "TZ=America/New_York 1 * * * *".
2526
"""
2627

2728
use GoogleApi.Gax.ModelBase
2829

2930
@type t :: %__MODULE__{
31+
:continuous => boolean() | nil,
3032
:cron => String.t() | nil
3133
}
3234

35+
field(:continuous)
3336
field(:cron)
3437
end
3538

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerationConfig
2121
2222
## Attributes
2323
24+
* `audioTimestamp` (*type:* `boolean()`, *default:* `nil`) - Optional. If enabled, audio timestamp will be included in the request to the model.
2425
* `candidateCount` (*type:* `integer()`, *default:* `nil`) - Optional. Number of candidates to generate.
2526
* `frequencyPenalty` (*type:* `number()`, *default:* `nil`) - Optional. Frequency penalties.
2627
* `logprobs` (*type:* `integer()`, *default:* `nil`) - Optional. Logit probabilities.
@@ -40,6 +41,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerationConfig
4041
use GoogleApi.Gax.ModelBase
4142

4243
@type t :: %__MODULE__{
44+
:audioTimestamp => boolean() | nil,
4345
:candidateCount => integer() | nil,
4446
:frequencyPenalty => number() | nil,
4547
:logprobs => integer() | nil,
@@ -59,6 +61,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerationConfig
5961
:topP => number() | nil
6062
}
6163

64+
field(:audioTimestamp)
6265
field(:candidateCount)
6366
field(:frequencyPenalty)
6467
field(:logprobs)
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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.GoogleCloudAiplatformV1PscInterfaceConfig do
19+
@moduledoc """
20+
Configuration for PSC-I.
21+
22+
## Attributes
23+
24+
"""
25+
26+
use GoogleApi.Gax.ModelBase
27+
28+
@type t :: %__MODULE__{}
29+
end
30+
31+
defimpl Poison.Decoder,
32+
for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PscInterfaceConfig do
33+
def decode(value, options) do
34+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PscInterfaceConfig.decode(value, options)
35+
end
36+
end
37+
38+
defimpl Poison.Encoder,
39+
for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PscInterfaceConfig do
40+
def encode(value, options) do
41+
GoogleApi.Gax.ModelBase.encode(value, options)
42+
end
43+
end

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Schema do
2424
* `anyOf` (*type:* `list(GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Schema.t)`, *default:* `nil`) - Optional. The value should be validated against any (one or more) of the subschemas in the list.
2525
* `default` (*type:* `any()`, *default:* `nil`) - Optional. Default value of the data.
2626
* `description` (*type:* `String.t`, *default:* `nil`) - Optional. The description of the data.
27-
* `enum` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Possible values of the element of Type.STRING with enum format. For example we can define an Enum Direction as : {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]}
27+
* `enum` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Possible values of the element of primitive type with enum format. Examples: 1. We can define direction as : {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]} 2. We can define apartment number as : {type:INTEGER, format:enum, enum:["101", "201", "301"]}
2828
* `example` (*type:* `any()`, *default:* `nil`) - Optional. Example of the object. Will only populated when the object is the root.
2929
* `format` (*type:* `String.t`, *default:* `nil`) - Optional. The format of the data. Supported formats: for NUMBER type: "float", "double" for INTEGER type: "int32", "int64" for STRING type: "email", "byte", etc
3030
* `items` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1Schema.t`, *default:* `nil`) - Optional. SCHEMA FIELDS FOR TYPE ARRAY Schema of the elements of Type.ARRAY.

0 commit comments

Comments
 (0)