Skip to content

Commit

Permalink
feat: Automated regeneration of Dataflow client (googleapis#12803)
Browse files Browse the repository at this point in the history
Auto-created at 2025-01-10 13:17:40 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Jan 10, 2025
1 parent 289b080 commit ec33466
Show file tree
Hide file tree
Showing 7 changed files with 114 additions and 6 deletions.
2 changes: 1 addition & 1 deletion clients/dataflow/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding

```elixir
def deps do
[{:google_api_dataflow, "~> 0.52"}]
[{:google_api_dataflow, "~> 0.53"}]
end
```

Expand Down
2 changes: 1 addition & 1 deletion clients/dataflow/lib/google_api/dataflow/v1b3/metadata.ex
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.Dataflow.V1b3 do
API client metadata for GoogleApi.Dataflow.V1b3.
"""

@discovery_revision "20241209"
@discovery_revision "20250106"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.Dataflow.V1b3.Model.BoundedTrie do
@moduledoc """
The message type used for encoding metrics of type bounded trie.
## Attributes
* `bound` (*type:* `integer()`, *default:* `nil`) - The maximum number of elements to store before truncation.
* `root` (*type:* `GoogleApi.Dataflow.V1b3.Model.BoundedTrieNode.t`, *default:* `nil`) - A compact representation of all the elements in this trie.
* `singleton` (*type:* `list(String.t)`, *default:* `nil`) - A more efficient representation for metrics consisting of a single value.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:bound => integer() | nil,
:root => GoogleApi.Dataflow.V1b3.Model.BoundedTrieNode.t() | nil,
:singleton => list(String.t()) | nil
}

field(:bound)
field(:root, as: GoogleApi.Dataflow.V1b3.Model.BoundedTrieNode)
field(:singleton, type: :list)
end

defimpl Poison.Decoder, for: GoogleApi.Dataflow.V1b3.Model.BoundedTrie do
def decode(value, options) do
GoogleApi.Dataflow.V1b3.Model.BoundedTrie.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.Dataflow.V1b3.Model.BoundedTrie do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.Dataflow.V1b3.Model.BoundedTrieNode do
@moduledoc """
A single node in a BoundedTrie.
## Attributes
* `children` (*type:* `%{optional(String.t) => GoogleApi.Dataflow.V1b3.Model.BoundedTrieNode.t}`, *default:* `nil`) - Children of this node. Must be empty if truncated is true.
* `truncated` (*type:* `boolean()`, *default:* `nil`) - Whether this node has been truncated. A truncated leaf represents possibly many children with the same prefix.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:children =>
%{optional(String.t()) => GoogleApi.Dataflow.V1b3.Model.BoundedTrieNode.t()} | nil,
:truncated => boolean() | nil
}

field(:children, as: GoogleApi.Dataflow.V1b3.Model.BoundedTrieNode, type: :map)
field(:truncated)
end

defimpl Poison.Decoder, for: GoogleApi.Dataflow.V1b3.Model.BoundedTrieNode do
def decode(value, options) do
GoogleApi.Dataflow.V1b3.Model.BoundedTrieNode.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.Dataflow.V1b3.Model.BoundedTrieNode do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@

defmodule GoogleApi.Dataflow.V1b3.Model.CounterUpdate do
@moduledoc """
An update to a Counter sent from a worker.
An update to a Counter sent from a worker. Next ID: 17
## Attributes
* `boolean` (*type:* `boolean()`, *default:* `nil`) - Boolean value for And, Or.
* `boundedTrie` (*type:* `GoogleApi.Dataflow.V1b3.Model.BoundedTrie.t`, *default:* `nil`) - Bounded trie data
* `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.
* `distribution` (*type:* `GoogleApi.Dataflow.V1b3.Model.DistributionUpdate.t`, *default:* `nil`) - Distribution data
* `floatingPoint` (*type:* `float()`, *default:* `nil`) - Floating point value for Sum, Max, Min.
Expand All @@ -42,6 +43,7 @@ defmodule GoogleApi.Dataflow.V1b3.Model.CounterUpdate do

@type t :: %__MODULE__{
:boolean => boolean() | nil,
:boundedTrie => GoogleApi.Dataflow.V1b3.Model.BoundedTrie.t() | nil,
:cumulative => boolean() | nil,
:distribution => GoogleApi.Dataflow.V1b3.Model.DistributionUpdate.t() | nil,
:floatingPoint => float() | nil,
Expand All @@ -60,6 +62,7 @@ defmodule GoogleApi.Dataflow.V1b3.Model.CounterUpdate do
}

field(:boolean)
field(:boundedTrie, as: GoogleApi.Dataflow.V1b3.Model.BoundedTrie)
field(:cumulative)
field(:distribution, as: GoogleApi.Dataflow.V1b3.Model.DistributionUpdate)
field(:floatingPoint)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

defmodule GoogleApi.Dataflow.V1b3.Model.MetricUpdate do
@moduledoc """
Describes the state of a metric.
Describes the state of a metric. Next ID: 14
## Attributes
Expand All @@ -30,7 +30,8 @@ defmodule GoogleApi.Dataflow.V1b3.Model.MetricUpdate do
* `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.
* `name` (*type:* `GoogleApi.Dataflow.V1b3.Model.MetricStructuredName.t`, *default:* `nil`) - Name of the metric.
* `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.
* `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.
* `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.
* `trie` (*type:* `any()`, *default:* `nil`) - Worker-computed aggregate value for the "Trie" aggregation kind. The only possible value type is a BoundedTrieNode.
* `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.
"""

Expand All @@ -47,6 +48,7 @@ defmodule GoogleApi.Dataflow.V1b3.Model.MetricUpdate do
:name => GoogleApi.Dataflow.V1b3.Model.MetricStructuredName.t() | nil,
:scalar => any() | nil,
:set => any() | nil,
:trie => any() | nil,
:updateTime => DateTime.t() | nil
}

Expand All @@ -60,6 +62,7 @@ defmodule GoogleApi.Dataflow.V1b3.Model.MetricUpdate do
field(:name, as: GoogleApi.Dataflow.V1b3.Model.MetricStructuredName)
field(:scalar)
field(:set)
field(:trie)
field(:updateTime, as: DateTime)
end

Expand Down
2 changes: 1 addition & 1 deletion clients/dataflow/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
defmodule GoogleApi.Dataflow.Mixfile do
use Mix.Project

@version "0.52.0"
@version "0.53.0"

def project() do
[
Expand Down

0 comments on commit ec33466

Please sign in to comment.