Skip to content

Commit c86c2d9

Browse files
feat: Automated regeneration of AIPlatform client (googleapis#12466)
Auto-created at 2024-11-02 13:16:53 +0000 using the toys pull request generator.
1 parent f528f14 commit c86c2d9

21 files changed

+1168
-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.21"}]
14+
[{:google_api_ai_platform, "~> 0.22"}]
1515
end
1616
```
1717

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

Lines changed: 427 additions & 0 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 "20241025"
23+
@discovery_revision "20241026"
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_video.ex

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,23 @@ defmodule GoogleApi.AIPlatform.V1.Model.CloudAiLargeModelsVisionVideo do
2121
2222
## Attributes
2323
24+
* `encodedVideo` (*type:* `String.t`, *default:* `nil`) - Base 64 encoded video bytes.
25+
* `encoding` (*type:* `String.t`, *default:* `nil`) - Video encoding, for example "video/mp4".
2426
* `uri` (*type:* `String.t`, *default:* `nil`) - Path to another storage (typically Google Cloud Storage).
2527
* `video` (*type:* `String.t`, *default:* `nil`) - Raw bytes.
2628
"""
2729

2830
use GoogleApi.Gax.ModelBase
2931

3032
@type t :: %__MODULE__{
33+
:encodedVideo => String.t() | nil,
34+
:encoding => String.t() | nil,
3135
:uri => String.t() | nil,
3236
:video => String.t() | nil
3337
}
3438

39+
field(:encodedVideo)
40+
field(:encoding)
3541
field(:uri)
3642
field(:video)
3743
end
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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.GoogleCloudAiplatformV1CacheConfig do
19+
@moduledoc """
20+
Config of GenAI caching features. This is a singleton resource.
21+
22+
## Attributes
23+
24+
* `disableCache` (*type:* `boolean()`, *default:* `nil`) - If set to true, disables GenAI caching. Otherwise caching is enabled.
25+
* `name` (*type:* `String.t`, *default:* `nil`) - Identifier. Name of the cache config. Format: - `projects/{project}/cacheConfig`.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:disableCache => boolean() | nil,
32+
:name => String.t() | nil
33+
}
34+
35+
field(:disableCache)
36+
field(:name)
37+
end
38+
39+
defimpl Poison.Decoder, for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CacheConfig do
40+
def decode(value, options) do
41+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CacheConfig.decode(value, options)
42+
end
43+
end
44+
45+
defimpl Poison.Encoder, for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1CacheConfig do
46+
def encode(value, options) do
47+
GoogleApi.Gax.ModelBase.encode(value, options)
48+
end
49+
end
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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.GoogleCloudAiplatformV1FetchPredictOperationRequest do
19+
@moduledoc """
20+
Request message for PredictionService.FetchPredictOperation.
21+
22+
## Attributes
23+
24+
* `operationName` (*type:* `String.t`, *default:* `nil`) - Required. The server-assigned name for the operation.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:operationName => String.t() | nil
31+
}
32+
33+
field(:operationName)
34+
end
35+
36+
defimpl Poison.Decoder,
37+
for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FetchPredictOperationRequest do
38+
def decode(value, options) do
39+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FetchPredictOperationRequest.decode(
40+
value,
41+
options
42+
)
43+
end
44+
end
45+
46+
defimpl Poison.Encoder,
47+
for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FetchPredictOperationRequest do
48+
def encode(value, options) do
49+
GoogleApi.Gax.ModelBase.encode(value, options)
50+
end
51+
end

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FunctionDeclaration do
1919
@moduledoc """
20-
Structured representation of a function declaration as defined by the [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name and parameters. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client.
20+
Structured representation of a function declaration as defined by the [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name, description, parameters and response type. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client.
2121
2222
## Attributes
2323

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1NotebookExecution
2222
## Attributes
2323
2424
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Timestamp when this NotebookExecutionJob was created.
25+
* `customEnvironmentSpec` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec.t`, *default:* `nil`) - The custom compute configuration for an execution job.
2526
* `dataformRepositorySource` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1NotebookExecutionJobDataformRepositorySource.t`, *default:* `nil`) - The Dataform Repository pointing to a single file notebook repository.
2627
* `directNotebookSource` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1NotebookExecutionJobDirectNotebookSource.t`, *default:* `nil`) - The contents of an input notebook file.
2728
* `displayName` (*type:* `String.t`, *default:* `nil`) - The display name of the NotebookExecutionJob. The name can be up to 128 characters long and can consist of any UTF-8 characters.
@@ -44,6 +45,9 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1NotebookExecution
4445

4546
@type t :: %__MODULE__{
4647
:createTime => DateTime.t() | nil,
48+
:customEnvironmentSpec =>
49+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec.t()
50+
| nil,
4751
:dataformRepositorySource =>
4852
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1NotebookExecutionJobDataformRepositorySource.t()
4953
| nil,
@@ -71,6 +75,11 @@ defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1NotebookExecution
7175

7276
field(:createTime, as: DateTime)
7377

78+
field(:customEnvironmentSpec,
79+
as:
80+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec
81+
)
82+
7483
field(:dataformRepositorySource,
7584
as:
7685
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1NotebookExecutionJobDataformRepositorySource
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
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.GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec do
19+
@moduledoc """
20+
Compute configuration to use for an execution job.
21+
22+
## Attributes
23+
24+
* `machineSpec` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1MachineSpec.t`, *default:* `nil`) - The specification of a single machine for the execution job.
25+
* `networkSpec` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1NetworkSpec.t`, *default:* `nil`) - The network configuration to use for the execution job.
26+
* `persistentDiskSpec` (*type:* `GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PersistentDiskSpec.t`, *default:* `nil`) - The specification of a persistent disk to attach for the execution job.
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:machineSpec =>
33+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1MachineSpec.t() | nil,
34+
:networkSpec =>
35+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1NetworkSpec.t() | nil,
36+
:persistentDiskSpec =>
37+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PersistentDiskSpec.t() | nil
38+
}
39+
40+
field(:machineSpec, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1MachineSpec)
41+
field(:networkSpec, as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1NetworkSpec)
42+
43+
field(:persistentDiskSpec,
44+
as: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PersistentDiskSpec
45+
)
46+
end
47+
48+
defimpl Poison.Decoder,
49+
for:
50+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec do
51+
def decode(value, options) do
52+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec.decode(
53+
value,
54+
options
55+
)
56+
end
57+
end
58+
59+
defimpl Poison.Encoder,
60+
for:
61+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec do
62+
def encode(value, options) do
63+
GoogleApi.Gax.ModelBase.encode(value, options)
64+
end
65+
end
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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.GoogleCloudAiplatformV1PredictLongRunningRequest do
19+
@moduledoc """
20+
Request message for PredictionService.PredictLongRunning.
21+
22+
## Attributes
23+
24+
* `instances` (*type:* `list(any())`, *default:* `nil`) - Required. The instances that are the input to the prediction call. A DeployedModel may have an upper limit on the number of instances it supports per request, and when it is exceeded the prediction call errors in case of AutoML Models, or, in case of customer created Models, the behaviour is as documented by that Model. The schema of any single instance may be specified via Endpoint's DeployedModels' Model's PredictSchemata's instance_schema_uri.
25+
* `parameters` (*type:* `any()`, *default:* `nil`) - Optional. The parameters that govern the prediction. The schema of the parameters may be specified via Endpoint's DeployedModels' Model's PredictSchemata's parameters_schema_uri.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:instances => list(any()) | nil,
32+
:parameters => any() | nil
33+
}
34+
35+
field(:instances, type: :list)
36+
field(:parameters)
37+
end
38+
39+
defimpl Poison.Decoder,
40+
for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PredictLongRunningRequest do
41+
def decode(value, options) do
42+
GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PredictLongRunningRequest.decode(
43+
value,
44+
options
45+
)
46+
end
47+
end
48+
49+
defimpl Poison.Encoder,
50+
for: GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1PredictLongRunningRequest do
51+
def encode(value, options) do
52+
GoogleApi.Gax.ModelBase.encode(value, options)
53+
end
54+
end

0 commit comments

Comments
 (0)