Skip to content

Commit 07975d2

Browse files
feat: Automated regeneration of Dataflow client (googleapis#12453)
Auto-created at 2024-10-31 13:16:35 +0000 using the toys pull request generator.
1 parent fd0d073 commit 07975d2

File tree

6 files changed

+101
-3
lines changed

6 files changed

+101
-3
lines changed

clients/dataflow/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_dataflow, "~> 0.50"}]
14+
[{:google_api_dataflow, "~> 0.51"}]
1515
end
1616
```
1717

clients/dataflow/lib/google_api/dataflow/v1b3/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.Dataflow.V1b3 do
2020
API client metadata for GoogleApi.Dataflow.V1b3.
2121
"""
2222

23-
@discovery_revision "20241014"
23+
@discovery_revision "20241028"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
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.Dataflow.V1b3.Model.GPUUsage do
19+
@moduledoc """
20+
Information about the GPU usage on the worker.
21+
22+
## Attributes
23+
24+
* `timestamp` (*type:* `DateTime.t`, *default:* `nil`) - Required. Timestamp of the measurement.
25+
* `utilization` (*type:* `GoogleApi.Dataflow.V1b3.Model.GPUUtilization.t`, *default:* `nil`) - Required. Utilization info about the GPU.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:timestamp => DateTime.t() | nil,
32+
:utilization => GoogleApi.Dataflow.V1b3.Model.GPUUtilization.t() | nil
33+
}
34+
35+
field(:timestamp, as: DateTime)
36+
field(:utilization, as: GoogleApi.Dataflow.V1b3.Model.GPUUtilization)
37+
end
38+
39+
defimpl Poison.Decoder, for: GoogleApi.Dataflow.V1b3.Model.GPUUsage do
40+
def decode(value, options) do
41+
GoogleApi.Dataflow.V1b3.Model.GPUUsage.decode(value, options)
42+
end
43+
end
44+
45+
defimpl Poison.Encoder, for: GoogleApi.Dataflow.V1b3.Model.GPUUsage do
46+
def encode(value, options) do
47+
GoogleApi.Gax.ModelBase.encode(value, options)
48+
end
49+
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.Dataflow.V1b3.Model.GPUUtilization do
19+
@moduledoc """
20+
Utilization details about the GPU.
21+
22+
## Attributes
23+
24+
* `rate` (*type:* `float()`, *default:* `nil`) - Required. GPU utilization rate of any kernel over the last sample period in the range of [0, 1].
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:rate => float() | nil
31+
}
32+
33+
field(:rate)
34+
end
35+
36+
defimpl Poison.Decoder, for: GoogleApi.Dataflow.V1b3.Model.GPUUtilization do
37+
def decode(value, options) do
38+
GoogleApi.Dataflow.V1b3.Model.GPUUtilization.decode(value, options)
39+
end
40+
end
41+
42+
defimpl Poison.Encoder, for: GoogleApi.Dataflow.V1b3.Model.GPUUtilization do
43+
def encode(value, options) do
44+
GoogleApi.Gax.ModelBase.encode(value, options)
45+
end
46+
end

clients/dataflow/lib/google_api/dataflow/v1b3/model/resource_utilization_report.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ defmodule GoogleApi.Dataflow.V1b3.Model.ResourceUtilizationReport do
2323
2424
* `containers` (*type:* `%{optional(String.t) => GoogleApi.Dataflow.V1b3.Model.ResourceUtilizationReport.t}`, *default:* `nil`) - Per container information. Key: container name.
2525
* `cpuTime` (*type:* `list(GoogleApi.Dataflow.V1b3.Model.CPUTime.t)`, *default:* `nil`) - CPU utilization samples.
26+
* `gpuUsage` (*type:* `list(GoogleApi.Dataflow.V1b3.Model.GPUUsage.t)`, *default:* `nil`) - Optional. GPU usage samples.
2627
* `memoryInfo` (*type:* `list(GoogleApi.Dataflow.V1b3.Model.MemInfo.t)`, *default:* `nil`) - Memory utilization samples.
2728
"""
2829

@@ -33,11 +34,13 @@ defmodule GoogleApi.Dataflow.V1b3.Model.ResourceUtilizationReport do
3334
%{optional(String.t()) => GoogleApi.Dataflow.V1b3.Model.ResourceUtilizationReport.t()}
3435
| nil,
3536
:cpuTime => list(GoogleApi.Dataflow.V1b3.Model.CPUTime.t()) | nil,
37+
:gpuUsage => list(GoogleApi.Dataflow.V1b3.Model.GPUUsage.t()) | nil,
3638
:memoryInfo => list(GoogleApi.Dataflow.V1b3.Model.MemInfo.t()) | nil
3739
}
3840

3941
field(:containers, as: GoogleApi.Dataflow.V1b3.Model.ResourceUtilizationReport, type: :map)
4042
field(:cpuTime, as: GoogleApi.Dataflow.V1b3.Model.CPUTime, type: :list)
43+
field(:gpuUsage, as: GoogleApi.Dataflow.V1b3.Model.GPUUsage, type: :list)
4144
field(:memoryInfo, as: GoogleApi.Dataflow.V1b3.Model.MemInfo, type: :list)
4245
end
4346

clients/dataflow/mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
defmodule GoogleApi.Dataflow.Mixfile do
1919
use Mix.Project
2020

21-
@version "0.50.1"
21+
@version "0.51.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)