Skip to content

Commit 768c2bd

Browse files
feat: Automated regeneration of dataflow v1b3 client (googleapis#21366)
Auto-created at 2025-01-12 10:21:55 +0000 using the toys pull request generator.
1 parent 81d245a commit 768c2bd

File tree

5 files changed

+129
-8
lines changed

5 files changed

+129
-8
lines changed

api_names_out.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135518,6 +135518,15 @@
135518135518
"/dataflow:v1b3/BigTableIODetails/instanceId": instance_id
135519135519
"/dataflow:v1b3/BigTableIODetails/projectId": project_id
135520135520
"/dataflow:v1b3/BigTableIODetails/tableId": table_id
135521+
"/dataflow:v1b3/BoundedTrie": bounded_trie
135522+
"/dataflow:v1b3/BoundedTrie/bound": bound
135523+
"/dataflow:v1b3/BoundedTrie/root": root
135524+
"/dataflow:v1b3/BoundedTrie/singleton": singleton
135525+
"/dataflow:v1b3/BoundedTrie/singleton/singleton": singleton
135526+
"/dataflow:v1b3/BoundedTrieNode": bounded_trie_node
135527+
"/dataflow:v1b3/BoundedTrieNode/children": children
135528+
"/dataflow:v1b3/BoundedTrieNode/children/child": child
135529+
"/dataflow:v1b3/BoundedTrieNode/truncated": truncated
135521135530
"/dataflow:v1b3/BucketOptions": bucket_options
135522135531
"/dataflow:v1b3/BucketOptions/exponential": exponential
135523135532
"/dataflow:v1b3/BucketOptions/linear": linear
@@ -135580,6 +135589,7 @@
135580135589
"/dataflow:v1b3/CounterStructuredNameAndMetadata/name": name
135581135590
"/dataflow:v1b3/CounterUpdate": counter_update
135582135591
"/dataflow:v1b3/CounterUpdate/boolean": boolean
135592+
"/dataflow:v1b3/CounterUpdate/boundedTrie": bounded_trie
135583135593
"/dataflow:v1b3/CounterUpdate/cumulative": cumulative
135584135594
"/dataflow:v1b3/CounterUpdate/distribution": distribution
135585135595
"/dataflow:v1b3/CounterUpdate/floatingPoint": floating_point
@@ -135987,6 +135997,7 @@
135987135997
"/dataflow:v1b3/MetricUpdate/name": name
135988135998
"/dataflow:v1b3/MetricUpdate/scalar": scalar
135989135999
"/dataflow:v1b3/MetricUpdate/set": set
136000+
"/dataflow:v1b3/MetricUpdate/trie": trie
135990136001
"/dataflow:v1b3/MetricUpdate/updateTime": update_time
135991136002
"/dataflow:v1b3/MetricValue": metric_value
135992136003
"/dataflow:v1b3/MetricValue/metric": metric

generated/google-apis-dataflow_v1b3/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Release history for google-apis-dataflow_v1b3
22

3+
### v0.64.0 (2025-01-12)
4+
5+
* Regenerated from discovery document revision 20250106
6+
* Regenerated using generator version 0.16.0
7+
38
### v0.63.0 (2024-12-15)
49

510
* Regenerated from discovery document revision 20241209

generated/google-apis-dataflow_v1b3/lib/google/apis/dataflow_v1b3/classes.rb

Lines changed: 76 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,64 @@ def update!(**args)
307307
end
308308
end
309309

310+
# The message type used for encoding metrics of type bounded trie.
311+
class BoundedTrie
312+
include Google::Apis::Core::Hashable
313+
314+
# The maximum number of elements to store before truncation.
315+
# Corresponds to the JSON property `bound`
316+
# @return [Fixnum]
317+
attr_accessor :bound
318+
319+
# A single node in a BoundedTrie.
320+
# Corresponds to the JSON property `root`
321+
# @return [Google::Apis::DataflowV1b3::BoundedTrieNode]
322+
attr_accessor :root
323+
324+
# A more efficient representation for metrics consisting of a single value.
325+
# Corresponds to the JSON property `singleton`
326+
# @return [Array<String>]
327+
attr_accessor :singleton
328+
329+
def initialize(**args)
330+
update!(**args)
331+
end
332+
333+
# Update properties of this object
334+
def update!(**args)
335+
@bound = args[:bound] if args.key?(:bound)
336+
@root = args[:root] if args.key?(:root)
337+
@singleton = args[:singleton] if args.key?(:singleton)
338+
end
339+
end
340+
341+
# A single node in a BoundedTrie.
342+
class BoundedTrieNode
343+
include Google::Apis::Core::Hashable
344+
345+
# Children of this node. Must be empty if truncated is true.
346+
# Corresponds to the JSON property `children`
347+
# @return [Hash<String,Google::Apis::DataflowV1b3::BoundedTrieNode>]
348+
attr_accessor :children
349+
350+
# Whether this node has been truncated. A truncated leaf represents possibly
351+
# many children with the same prefix.
352+
# Corresponds to the JSON property `truncated`
353+
# @return [Boolean]
354+
attr_accessor :truncated
355+
alias_method :truncated?, :truncated
356+
357+
def initialize(**args)
358+
update!(**args)
359+
end
360+
361+
# Update properties of this object
362+
def update!(**args)
363+
@children = args[:children] if args.key?(:children)
364+
@truncated = args[:truncated] if args.key?(:truncated)
365+
end
366+
end
367+
310368
# `BucketOptions` describes the bucket boundaries used in the histogram.
311369
class BucketOptions
312370
include Google::Apis::Core::Hashable
@@ -710,7 +768,7 @@ def update!(**args)
710768
end
711769
end
712770

713-
# An update to a Counter sent from a worker.
771+
# An update to a Counter sent from a worker. Next ID: 17
714772
class CounterUpdate
715773
include Google::Apis::Core::Hashable
716774

@@ -720,6 +778,11 @@ class CounterUpdate
720778
attr_accessor :boolean
721779
alias_method :boolean?, :boolean
722780

781+
# The message type used for encoding metrics of type bounded trie.
782+
# Corresponds to the JSON property `boundedTrie`
783+
# @return [Google::Apis::DataflowV1b3::BoundedTrie]
784+
attr_accessor :bounded_trie
785+
723786
# True if this counter is reported as the total cumulative aggregate value
724787
# accumulated since the worker started working on this WorkItem. By default this
725788
# is false, indicating that this counter is reported as a delta.
@@ -803,6 +866,7 @@ def initialize(**args)
803866
# Update properties of this object
804867
def update!(**args)
805868
@boolean = args[:boolean] if args.key?(:boolean)
869+
@bounded_trie = args[:bounded_trie] if args.key?(:bounded_trie)
806870
@cumulative = args[:cumulative] if args.key?(:cumulative)
807871
@distribution = args[:distribution] if args.key?(:distribution)
808872
@floating_point = args[:floating_point] if args.key?(:floating_point)
@@ -3406,7 +3470,7 @@ def update!(**args)
34063470
end
34073471
end
34083472

3409-
# Describes the state of a metric.
3473+
# Describes the state of a metric. Next ID: 14
34103474
class MetricUpdate
34113475
include Google::Apis::Core::Hashable
34123476

@@ -3471,13 +3535,19 @@ class MetricUpdate
34713535
attr_accessor :scalar
34723536

34733537
# Worker-computed aggregate value for the "Set" aggregation kind. The only
3474-
# possible value type is a list of Values whose type can be Long, Double, or
3475-
# String, according to the metric's type. All Values in the list must be of the
3476-
# same type.
3538+
# possible value type is a list of Values whose type can be Long, Double, String,
3539+
# or BoundedTrie according to the metric's type. All Values in the list must be
3540+
# of the same type.
34773541
# Corresponds to the JSON property `set`
34783542
# @return [Object]
34793543
attr_accessor :set
34803544

3545+
# Worker-computed aggregate value for the "Trie" aggregation kind. The only
3546+
# possible value type is a BoundedTrieNode.
3547+
# Corresponds to the JSON property `trie`
3548+
# @return [Object]
3549+
attr_accessor :trie
3550+
34813551
# Timestamp associated with the metric value. Optional when workers are
34823552
# reporting work progress; it will be filled in responses from the metrics API.
34833553
# Corresponds to the JSON property `updateTime`
@@ -3500,6 +3570,7 @@ def update!(**args)
35003570
@name = args[:name] if args.key?(:name)
35013571
@scalar = args[:scalar] if args.key?(:scalar)
35023572
@set = args[:set] if args.key?(:set)
3573+
@trie = args[:trie] if args.key?(:trie)
35033574
@update_time = args[:update_time] if args.key?(:update_time)
35043575
end
35053576
end

generated/google-apis-dataflow_v1b3/lib/google/apis/dataflow_v1b3/gem_version.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module DataflowV1b3
1818
# Version of the google-apis-dataflow_v1b3 gem
19-
GEM_VERSION = "0.63.0"
19+
GEM_VERSION = "0.64.0"
2020

2121
# Version of the code generator used to generate this client
22-
GENERATOR_VERSION = "0.15.1"
22+
GENERATOR_VERSION = "0.16.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20241209"
25+
REVISION = "20250106"
2626
end
2727
end
2828
end

generated/google-apis-dataflow_v1b3/lib/google/apis/dataflow_v1b3/representations.rb

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
7070
include Google::Apis::Core::JsonObjectSupport
7171
end
7272

73+
class BoundedTrie
74+
class Representation < Google::Apis::Core::JsonRepresentation; end
75+
76+
include Google::Apis::Core::JsonObjectSupport
77+
end
78+
79+
class BoundedTrieNode
80+
class Representation < Google::Apis::Core::JsonRepresentation; end
81+
82+
include Google::Apis::Core::JsonObjectSupport
83+
end
84+
7385
class BucketOptions
7486
class Representation < Google::Apis::Core::JsonRepresentation; end
7587

@@ -1231,6 +1243,25 @@ class Representation < Google::Apis::Core::JsonRepresentation
12311243
end
12321244
end
12331245

1246+
class BoundedTrie
1247+
# @private
1248+
class Representation < Google::Apis::Core::JsonRepresentation
1249+
property :bound, as: 'bound'
1250+
property :root, as: 'root', class: Google::Apis::DataflowV1b3::BoundedTrieNode, decorator: Google::Apis::DataflowV1b3::BoundedTrieNode::Representation
1251+
1252+
collection :singleton, as: 'singleton'
1253+
end
1254+
end
1255+
1256+
class BoundedTrieNode
1257+
# @private
1258+
class Representation < Google::Apis::Core::JsonRepresentation
1259+
hash :children, as: 'children', class: Google::Apis::DataflowV1b3::BoundedTrieNode, decorator: Google::Apis::DataflowV1b3::BoundedTrieNode::Representation
1260+
1261+
property :truncated, as: 'truncated'
1262+
end
1263+
end
1264+
12341265
class BucketOptions
12351266
# @private
12361267
class Representation < Google::Apis::Core::JsonRepresentation
@@ -1349,6 +1380,8 @@ class CounterUpdate
13491380
# @private
13501381
class Representation < Google::Apis::Core::JsonRepresentation
13511382
property :boolean, as: 'boolean'
1383+
property :bounded_trie, as: 'boundedTrie', class: Google::Apis::DataflowV1b3::BoundedTrie, decorator: Google::Apis::DataflowV1b3::BoundedTrie::Representation
1384+
13521385
property :cumulative, as: 'cumulative'
13531386
property :distribution, as: 'distribution', class: Google::Apis::DataflowV1b3::DistributionUpdate, decorator: Google::Apis::DataflowV1b3::DistributionUpdate::Representation
13541387

@@ -2072,6 +2105,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
20722105

20732106
property :scalar, as: 'scalar'
20742107
property :set, as: 'set'
2108+
property :trie, as: 'trie'
20752109
property :update_time, as: 'updateTime'
20762110
end
20772111
end

0 commit comments

Comments
 (0)