Skip to content

Commit ec33466

Browse files
feat: Automated regeneration of Dataflow client (#12803)
Auto-created at 2025-01-10 13:17:40 +0000 using the toys pull request generator.
1 parent 289b080 commit ec33466

File tree

7 files changed

+114
-6
lines changed

7 files changed

+114
-6
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.52"}]
14+
[{:google_api_dataflow, "~> 0.53"}]
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 "20241209"
23+
@discovery_revision "20250106"
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.Dataflow.V1b3.Model.BoundedTrie do
19+
@moduledoc """
20+
The message type used for encoding metrics of type bounded trie.
21+
22+
## Attributes
23+
24+
* `bound` (*type:* `integer()`, *default:* `nil`) - The maximum number of elements to store before truncation.
25+
* `root` (*type:* `GoogleApi.Dataflow.V1b3.Model.BoundedTrieNode.t`, *default:* `nil`) - A compact representation of all the elements in this trie.
26+
* `singleton` (*type:* `list(String.t)`, *default:* `nil`) - A more efficient representation for metrics consisting of a single value.
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:bound => integer() | nil,
33+
:root => GoogleApi.Dataflow.V1b3.Model.BoundedTrieNode.t() | nil,
34+
:singleton => list(String.t()) | nil
35+
}
36+
37+
field(:bound)
38+
field(:root, as: GoogleApi.Dataflow.V1b3.Model.BoundedTrieNode)
39+
field(:singleton, type: :list)
40+
end
41+
42+
defimpl Poison.Decoder, for: GoogleApi.Dataflow.V1b3.Model.BoundedTrie do
43+
def decode(value, options) do
44+
GoogleApi.Dataflow.V1b3.Model.BoundedTrie.decode(value, options)
45+
end
46+
end
47+
48+
defimpl Poison.Encoder, for: GoogleApi.Dataflow.V1b3.Model.BoundedTrie do
49+
def encode(value, options) do
50+
GoogleApi.Gax.ModelBase.encode(value, options)
51+
end
52+
end
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.Dataflow.V1b3.Model.BoundedTrieNode do
19+
@moduledoc """
20+
A single node in a BoundedTrie.
21+
22+
## Attributes
23+
24+
* `children` (*type:* `%{optional(String.t) => GoogleApi.Dataflow.V1b3.Model.BoundedTrieNode.t}`, *default:* `nil`) - Children of this node. Must be empty if truncated is true.
25+
* `truncated` (*type:* `boolean()`, *default:* `nil`) - Whether this node has been truncated. A truncated leaf represents possibly many children with the same prefix.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:children =>
32+
%{optional(String.t()) => GoogleApi.Dataflow.V1b3.Model.BoundedTrieNode.t()} | nil,
33+
:truncated => boolean() | nil
34+
}
35+
36+
field(:children, as: GoogleApi.Dataflow.V1b3.Model.BoundedTrieNode, type: :map)
37+
field(:truncated)
38+
end
39+
40+
defimpl Poison.Decoder, for: GoogleApi.Dataflow.V1b3.Model.BoundedTrieNode do
41+
def decode(value, options) do
42+
GoogleApi.Dataflow.V1b3.Model.BoundedTrieNode.decode(value, options)
43+
end
44+
end
45+
46+
defimpl Poison.Encoder, for: GoogleApi.Dataflow.V1b3.Model.BoundedTrieNode do
47+
def encode(value, options) do
48+
GoogleApi.Gax.ModelBase.encode(value, options)
49+
end
50+
end

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@
1717

1818
defmodule GoogleApi.Dataflow.V1b3.Model.CounterUpdate do
1919
@moduledoc """
20-
An update to a Counter sent from a worker.
20+
An update to a Counter sent from a worker. Next ID: 17
2121
2222
## Attributes
2323
2424
* `boolean` (*type:* `boolean()`, *default:* `nil`) - Boolean value for And, Or.
25+
* `boundedTrie` (*type:* `GoogleApi.Dataflow.V1b3.Model.BoundedTrie.t`, *default:* `nil`) - Bounded trie data
2526
* `cumulative` (*type:* `boolean()`, *default:* `nil`) - True if this counter is reported as the total cumulative aggregate value accumulated since the worker started working on this WorkItem. By default this is false, indicating that this counter is reported as a delta.
2627
* `distribution` (*type:* `GoogleApi.Dataflow.V1b3.Model.DistributionUpdate.t`, *default:* `nil`) - Distribution data
2728
* `floatingPoint` (*type:* `float()`, *default:* `nil`) - Floating point value for Sum, Max, Min.
@@ -42,6 +43,7 @@ defmodule GoogleApi.Dataflow.V1b3.Model.CounterUpdate do
4243

4344
@type t :: %__MODULE__{
4445
:boolean => boolean() | nil,
46+
:boundedTrie => GoogleApi.Dataflow.V1b3.Model.BoundedTrie.t() | nil,
4547
:cumulative => boolean() | nil,
4648
:distribution => GoogleApi.Dataflow.V1b3.Model.DistributionUpdate.t() | nil,
4749
:floatingPoint => float() | nil,
@@ -60,6 +62,7 @@ defmodule GoogleApi.Dataflow.V1b3.Model.CounterUpdate do
6062
}
6163

6264
field(:boolean)
65+
field(:boundedTrie, as: GoogleApi.Dataflow.V1b3.Model.BoundedTrie)
6366
field(:cumulative)
6467
field(:distribution, as: GoogleApi.Dataflow.V1b3.Model.DistributionUpdate)
6568
field(:floatingPoint)

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
defmodule GoogleApi.Dataflow.V1b3.Model.MetricUpdate do
1919
@moduledoc """
20-
Describes the state of a metric.
20+
Describes the state of a metric. Next ID: 14
2121
2222
## Attributes
2323
@@ -30,7 +30,8 @@ defmodule GoogleApi.Dataflow.V1b3.Model.MetricUpdate do
3030
* `meanSum` (*type:* `any()`, *default:* `nil`) - Worker-computed aggregate value for the "Mean" aggregation kind. This holds the sum of the aggregated values and is used in combination with mean_count below to obtain the actual mean aggregate value. The only possible value types are Long and Double.
3131
* `name` (*type:* `GoogleApi.Dataflow.V1b3.Model.MetricStructuredName.t`, *default:* `nil`) - Name of the metric.
3232
* `scalar` (*type:* `any()`, *default:* `nil`) - Worker-computed aggregate value for aggregation kinds "Sum", "Max", "Min", "And", and "Or". The possible value types are Long, Double, and Boolean.
33-
* `set` (*type:* `any()`, *default:* `nil`) - Worker-computed aggregate value for the "Set" aggregation kind. The only possible value type is a list of Values whose type can be Long, Double, or String, according to the metric's type. All Values in the list must be of the same type.
33+
* `set` (*type:* `any()`, *default:* `nil`) - Worker-computed aggregate value for the "Set" aggregation kind. The only possible value type is a list of Values whose type can be Long, Double, String, or BoundedTrie according to the metric's type. All Values in the list must be of the same type.
34+
* `trie` (*type:* `any()`, *default:* `nil`) - Worker-computed aggregate value for the "Trie" aggregation kind. The only possible value type is a BoundedTrieNode.
3435
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Timestamp associated with the metric value. Optional when workers are reporting work progress; it will be filled in responses from the metrics API.
3536
"""
3637

@@ -47,6 +48,7 @@ defmodule GoogleApi.Dataflow.V1b3.Model.MetricUpdate do
4748
:name => GoogleApi.Dataflow.V1b3.Model.MetricStructuredName.t() | nil,
4849
:scalar => any() | nil,
4950
:set => any() | nil,
51+
:trie => any() | nil,
5052
:updateTime => DateTime.t() | nil
5153
}
5254

@@ -60,6 +62,7 @@ defmodule GoogleApi.Dataflow.V1b3.Model.MetricUpdate do
6062
field(:name, as: GoogleApi.Dataflow.V1b3.Model.MetricStructuredName)
6163
field(:scalar)
6264
field(:set)
65+
field(:trie)
6366
field(:updateTime, as: DateTime)
6467
end
6568

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.52.0"
21+
@version "0.53.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)