diff --git a/clients/dataflow/README.md b/clients/dataflow/README.md index cd67928b4e..7386c3b6ea 100644 --- a/clients/dataflow/README.md +++ b/clients/dataflow/README.md @@ -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 ``` diff --git a/clients/dataflow/lib/google_api/dataflow/v1b3/metadata.ex b/clients/dataflow/lib/google_api/dataflow/v1b3/metadata.ex index 4cf3d5c136..4049ee06a9 100644 --- a/clients/dataflow/lib/google_api/dataflow/v1b3/metadata.ex +++ b/clients/dataflow/lib/google_api/dataflow/v1b3/metadata.ex @@ -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 diff --git a/clients/dataflow/lib/google_api/dataflow/v1b3/model/bounded_trie.ex b/clients/dataflow/lib/google_api/dataflow/v1b3/model/bounded_trie.ex new file mode 100644 index 0000000000..9ce75fcd3e --- /dev/null +++ b/clients/dataflow/lib/google_api/dataflow/v1b3/model/bounded_trie.ex @@ -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 diff --git a/clients/dataflow/lib/google_api/dataflow/v1b3/model/bounded_trie_node.ex b/clients/dataflow/lib/google_api/dataflow/v1b3/model/bounded_trie_node.ex new file mode 100644 index 0000000000..af72c6247a --- /dev/null +++ b/clients/dataflow/lib/google_api/dataflow/v1b3/model/bounded_trie_node.ex @@ -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 diff --git a/clients/dataflow/lib/google_api/dataflow/v1b3/model/counter_update.ex b/clients/dataflow/lib/google_api/dataflow/v1b3/model/counter_update.ex index 885118c9c6..4b42c2253c 100644 --- a/clients/dataflow/lib/google_api/dataflow/v1b3/model/counter_update.ex +++ b/clients/dataflow/lib/google_api/dataflow/v1b3/model/counter_update.ex @@ -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. @@ -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, @@ -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) diff --git a/clients/dataflow/lib/google_api/dataflow/v1b3/model/metric_update.ex b/clients/dataflow/lib/google_api/dataflow/v1b3/model/metric_update.ex index 86a640551e..56284e810a 100644 --- a/clients/dataflow/lib/google_api/dataflow/v1b3/model/metric_update.ex +++ b/clients/dataflow/lib/google_api/dataflow/v1b3/model/metric_update.ex @@ -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 @@ -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. """ @@ -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 } @@ -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 diff --git a/clients/dataflow/mix.exs b/clients/dataflow/mix.exs index 7b9ab9b0f6..d1606f4647 100644 --- a/clients/dataflow/mix.exs +++ b/clients/dataflow/mix.exs @@ -18,7 +18,7 @@ defmodule GoogleApi.Dataflow.Mixfile do use Mix.Project - @version "0.52.0" + @version "0.53.0" def project() do [