forked from googleapis/elixir-google-api
-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Automated regeneration of Dataflow client (googleapis#12803)
Auto-created at 2025-01-10 13:17:40 +0000 using the toys pull request generator.
- Loading branch information
1 parent
289b080
commit ec33466
Showing
7 changed files
with
114 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
clients/dataflow/lib/google_api/dataflow/v1b3/model/bounded_trie.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
50 changes: 50 additions & 0 deletions
50
clients/dataflow/lib/google_api/dataflow/v1b3/model/bounded_trie_node.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters