Skip to content

Commit 7c309f9

Browse files
feat: Automated regeneration of dataflow v1b3 client (googleapis#23211)
Auto-created at 2025-05-21 21:19:47 +0000 using the toys pull request generator.
1 parent c9926dd commit 7c309f9

File tree

6 files changed

+228
-2
lines changed

6 files changed

+228
-2
lines changed

api_names_out.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142176,6 +142176,11 @@
142176142176
"/dataflow:v1b3/GetTemplateResponse/runtimeMetadata": runtime_metadata
142177142177
"/dataflow:v1b3/GetTemplateResponse/status": status
142178142178
"/dataflow:v1b3/GetTemplateResponse/templateType": template_type
142179+
"/dataflow:v1b3/GetWorkerStacktracesRequest": get_worker_stacktraces_request
142180+
"/dataflow:v1b3/GetWorkerStacktracesRequest/workerId": worker_id
142181+
"/dataflow:v1b3/GetWorkerStacktracesResponse": get_worker_stacktraces_response
142182+
"/dataflow:v1b3/GetWorkerStacktracesResponse/sdks": sdks
142183+
"/dataflow:v1b3/GetWorkerStacktracesResponse/sdks/sdk": sdk
142179142184
"/dataflow:v1b3/Histogram": histogram
142180142185
"/dataflow:v1b3/Histogram/bucketCounts": bucket_counts
142181142186
"/dataflow:v1b3/Histogram/bucketCounts/bucket_count": bucket_count
@@ -142596,6 +142601,10 @@
142596142601
"/dataflow:v1b3/SDKInfo": sdk_info
142597142602
"/dataflow:v1b3/SDKInfo/language": language
142598142603
"/dataflow:v1b3/SDKInfo/version": version
142604+
"/dataflow:v1b3/Sdk": sdk
142605+
"/dataflow:v1b3/Sdk/sdkId": sdk_id
142606+
"/dataflow:v1b3/Sdk/stacks": stacks
142607+
"/dataflow:v1b3/Sdk/stacks/stack": stack
142599142608
"/dataflow:v1b3/SdkBug": sdk_bug
142600142609
"/dataflow:v1b3/SdkBug/severity": severity
142601142610
"/dataflow:v1b3/SdkBug/type": type
@@ -142731,6 +142740,12 @@
142731142740
"/dataflow:v1b3/SplitInt64": split_int64
142732142741
"/dataflow:v1b3/SplitInt64/highBits": high_bits
142733142742
"/dataflow:v1b3/SplitInt64/lowBits": low_bits
142743+
"/dataflow:v1b3/Stack": stack
142744+
"/dataflow:v1b3/Stack/stackContent": stack_content
142745+
"/dataflow:v1b3/Stack/threadCount": thread_count
142746+
"/dataflow:v1b3/Stack/threadName": thread_name
142747+
"/dataflow:v1b3/Stack/threadState": thread_state
142748+
"/dataflow:v1b3/Stack/timestamp": timestamp
142734142749
"/dataflow:v1b3/StageExecutionDetails": stage_execution_details
142735142750
"/dataflow:v1b3/StageExecutionDetails/nextPageToken": next_page_token
142736142751
"/dataflow:v1b3/StageExecutionDetails/workers": workers
@@ -143107,6 +143122,9 @@
143107143122
"/dataflow:v1b3/dataflow.projects.jobs.debug.getConfig": get_project_job_debug_config
143108143123
"/dataflow:v1b3/dataflow.projects.jobs.debug.getConfig/jobId": job_id
143109143124
"/dataflow:v1b3/dataflow.projects.jobs.debug.getConfig/projectId": project_id
143125+
"/dataflow:v1b3/dataflow.projects.jobs.debug.getWorkerStacktraces": get_debug_worker_stacktraces
143126+
"/dataflow:v1b3/dataflow.projects.jobs.debug.getWorkerStacktraces/jobId": job_id
143127+
"/dataflow:v1b3/dataflow.projects.jobs.debug.getWorkerStacktraces/projectId": project_id
143110143128
"/dataflow:v1b3/dataflow.projects.jobs.debug.sendCapture": send_project_job_debug_capture
143111143129
"/dataflow:v1b3/dataflow.projects.jobs.debug.sendCapture/jobId": job_id
143112143130
"/dataflow:v1b3/dataflow.projects.jobs.debug.sendCapture/projectId": project_id

generated/google-apis-dataflow_v1b3/CHANGELOG.md

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

3+
### v0.70.0 (2025-05-21)
4+
5+
* Regenerated from discovery document revision 20250519
6+
37
### v0.69.0 (2025-05-11)
48

59
* Regenerated from discovery document revision 20250505

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

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2160,6 +2160,45 @@ def update!(**args)
21602160
end
21612161
end
21622162

2163+
# Request to get worker stacktraces from debug capture.
2164+
class GetWorkerStacktracesRequest
2165+
include Google::Apis::Core::Hashable
2166+
2167+
# The worker for which to get stacktraces. The returned stacktraces will be for
2168+
# the SDK harness running on this worker.
2169+
# Corresponds to the JSON property `workerId`
2170+
# @return [String]
2171+
attr_accessor :worker_id
2172+
2173+
def initialize(**args)
2174+
update!(**args)
2175+
end
2176+
2177+
# Update properties of this object
2178+
def update!(**args)
2179+
@worker_id = args[:worker_id] if args.key?(:worker_id)
2180+
end
2181+
end
2182+
2183+
# Response to get worker stacktraces from debug capture.
2184+
class GetWorkerStacktracesResponse
2185+
include Google::Apis::Core::Hashable
2186+
2187+
# Repeated as unified worker may have multiple SDK processes.
2188+
# Corresponds to the JSON property `sdks`
2189+
# @return [Array<Google::Apis::DataflowV1b3::Sdk>]
2190+
attr_accessor :sdks
2191+
2192+
def initialize(**args)
2193+
update!(**args)
2194+
end
2195+
2196+
# Update properties of this object
2197+
def update!(**args)
2198+
@sdks = args[:sdks] if args.key?(:sdks)
2199+
end
2200+
end
2201+
21632202
# Histogram of value counts for a distribution. Buckets have an inclusive lower
21642203
# bound and exclusive upper bound and use "1,2,5 bucketing": The first bucket
21652204
# range is from [0,1) and all subsequent bucket boundaries are powers of ten
@@ -4856,6 +4895,31 @@ def update!(**args)
48564895
end
48574896
end
48584897

4898+
# A structured representation of an SDK.
4899+
class Sdk
4900+
include Google::Apis::Core::Hashable
4901+
4902+
# The SDK harness id.
4903+
# Corresponds to the JSON property `sdkId`
4904+
# @return [String]
4905+
attr_accessor :sdk_id
4906+
4907+
# The stacktraces for the processes running on the SDK harness.
4908+
# Corresponds to the JSON property `stacks`
4909+
# @return [Array<Google::Apis::DataflowV1b3::Stack>]
4910+
attr_accessor :stacks
4911+
4912+
def initialize(**args)
4913+
update!(**args)
4914+
end
4915+
4916+
# Update properties of this object
4917+
def update!(**args)
4918+
@sdk_id = args[:sdk_id] if args.key?(:sdk_id)
4919+
@stacks = args[:stacks] if args.key?(:stacks)
4920+
end
4921+
end
4922+
48594923
# A bug found in the Dataflow SDK.
48604924
class SdkBug
48614925
include Google::Apis::Core::Hashable
@@ -5809,6 +5873,51 @@ def update!(**args)
58095873
end
58105874
end
58115875

5876+
# A structuredstacktrace for a process running on the worker.
5877+
class Stack
5878+
include Google::Apis::Core::Hashable
5879+
5880+
# The raw stack trace.
5881+
# Corresponds to the JSON property `stackContent`
5882+
# @return [String]
5883+
attr_accessor :stack_content
5884+
5885+
# With java thread dumps we may get collapsed stacks e.g., N threads in stack "".
5886+
# Instead of having to copy over the same stack trace N times, this int field
5887+
# captures this.
5888+
# Corresponds to the JSON property `threadCount`
5889+
# @return [Fixnum]
5890+
attr_accessor :thread_count
5891+
5892+
# Thread name. For example, "CommitThread-0,10,main"
5893+
# Corresponds to the JSON property `threadName`
5894+
# @return [String]
5895+
attr_accessor :thread_name
5896+
5897+
# The state of the thread. For example, "WAITING".
5898+
# Corresponds to the JSON property `threadState`
5899+
# @return [String]
5900+
attr_accessor :thread_state
5901+
5902+
# Timestamp at which the stack was captured.
5903+
# Corresponds to the JSON property `timestamp`
5904+
# @return [String]
5905+
attr_accessor :timestamp
5906+
5907+
def initialize(**args)
5908+
update!(**args)
5909+
end
5910+
5911+
# Update properties of this object
5912+
def update!(**args)
5913+
@stack_content = args[:stack_content] if args.key?(:stack_content)
5914+
@thread_count = args[:thread_count] if args.key?(:thread_count)
5915+
@thread_name = args[:thread_name] if args.key?(:thread_name)
5916+
@thread_state = args[:thread_state] if args.key?(:thread_state)
5917+
@timestamp = args[:timestamp] if args.key?(:timestamp)
5918+
end
5919+
end
5920+
58125921
# Information about the workers and work items within a stage.
58135922
class StageExecutionDetails
58145923
include Google::Apis::Core::Hashable

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

Lines changed: 2 additions & 2 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.69.0"
19+
GEM_VERSION = "0.70.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.17.0"
2323

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

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

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
322322
include Google::Apis::Core::JsonObjectSupport
323323
end
324324

325+
class GetWorkerStacktracesRequest
326+
class Representation < Google::Apis::Core::JsonRepresentation; end
327+
328+
include Google::Apis::Core::JsonObjectSupport
329+
end
330+
331+
class GetWorkerStacktracesResponse
332+
class Representation < Google::Apis::Core::JsonRepresentation; end
333+
334+
include Google::Apis::Core::JsonObjectSupport
335+
end
336+
325337
class Histogram
326338
class Representation < Google::Apis::Core::JsonRepresentation; end
327339

@@ -712,6 +724,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
712724
include Google::Apis::Core::JsonObjectSupport
713725
end
714726

727+
class Sdk
728+
class Representation < Google::Apis::Core::JsonRepresentation; end
729+
730+
include Google::Apis::Core::JsonObjectSupport
731+
end
732+
715733
class SdkBug
716734
class Representation < Google::Apis::Core::JsonRepresentation; end
717735

@@ -880,6 +898,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
880898
include Google::Apis::Core::JsonObjectSupport
881899
end
882900

901+
class Stack
902+
class Representation < Google::Apis::Core::JsonRepresentation; end
903+
904+
include Google::Apis::Core::JsonObjectSupport
905+
end
906+
883907
class StageExecutionDetails
884908
class Representation < Google::Apis::Core::JsonRepresentation; end
885909

@@ -1732,6 +1756,21 @@ class Representation < Google::Apis::Core::JsonRepresentation
17321756
end
17331757
end
17341758

1759+
class GetWorkerStacktracesRequest
1760+
# @private
1761+
class Representation < Google::Apis::Core::JsonRepresentation
1762+
property :worker_id, as: 'workerId'
1763+
end
1764+
end
1765+
1766+
class GetWorkerStacktracesResponse
1767+
# @private
1768+
class Representation < Google::Apis::Core::JsonRepresentation
1769+
collection :sdks, as: 'sdks', class: Google::Apis::DataflowV1b3::Sdk, decorator: Google::Apis::DataflowV1b3::Sdk::Representation
1770+
1771+
end
1772+
end
1773+
17351774
class Histogram
17361775
# @private
17371776
class Representation < Google::Apis::Core::JsonRepresentation
@@ -2454,6 +2493,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
24542493
end
24552494
end
24562495

2496+
class Sdk
2497+
# @private
2498+
class Representation < Google::Apis::Core::JsonRepresentation
2499+
property :sdk_id, as: 'sdkId'
2500+
collection :stacks, as: 'stacks', class: Google::Apis::DataflowV1b3::Stack, decorator: Google::Apis::DataflowV1b3::Stack::Representation
2501+
2502+
end
2503+
end
2504+
24572505
class SdkBug
24582506
# @private
24592507
class Representation < Google::Apis::Core::JsonRepresentation
@@ -2731,6 +2779,17 @@ class Representation < Google::Apis::Core::JsonRepresentation
27312779
end
27322780
end
27332781

2782+
class Stack
2783+
# @private
2784+
class Representation < Google::Apis::Core::JsonRepresentation
2785+
property :stack_content, as: 'stackContent'
2786+
property :thread_count, as: 'threadCount'
2787+
property :thread_name, as: 'threadName'
2788+
property :thread_state, as: 'threadState'
2789+
property :timestamp, as: 'timestamp'
2790+
end
2791+
end
2792+
27342793
class StageExecutionDetails
27352794
# @private
27362795
class Representation < Google::Apis::Core::JsonRepresentation

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

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,42 @@ def get_project_job_debug_config(project_id, job_id, get_debug_config_request_ob
495495
execute_or_queue_command(command, &block)
496496
end
497497

498+
# Get worker stacktraces from debug capture.
499+
# @param [String] project_id
500+
# The project id.
501+
# @param [String] job_id
502+
# The job for which to get stacktraces.
503+
# @param [Google::Apis::DataflowV1b3::GetWorkerStacktracesRequest] get_worker_stacktraces_request_object
504+
# @param [String] fields
505+
# Selector specifying which fields to include in a partial response.
506+
# @param [String] quota_user
507+
# Available to use for quota purposes for server-side applications. Can be any
508+
# arbitrary string assigned to a user, but should not exceed 40 characters.
509+
# @param [Google::Apis::RequestOptions] options
510+
# Request-specific options
511+
#
512+
# @yield [result, err] Result & error if block supplied
513+
# @yieldparam result [Google::Apis::DataflowV1b3::GetWorkerStacktracesResponse] parsed result object
514+
# @yieldparam err [StandardError] error object if request failed
515+
#
516+
# @return [Google::Apis::DataflowV1b3::GetWorkerStacktracesResponse]
517+
#
518+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
519+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
520+
# @raise [Google::Apis::AuthorizationError] Authorization is required
521+
def get_debug_worker_stacktraces(project_id, job_id, get_worker_stacktraces_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
522+
command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs/{jobId}/debug/getWorkerStacktraces', options)
523+
command.request_representation = Google::Apis::DataflowV1b3::GetWorkerStacktracesRequest::Representation
524+
command.request_object = get_worker_stacktraces_request_object
525+
command.response_representation = Google::Apis::DataflowV1b3::GetWorkerStacktracesResponse::Representation
526+
command.response_class = Google::Apis::DataflowV1b3::GetWorkerStacktracesResponse
527+
command.params['projectId'] = project_id unless project_id.nil?
528+
command.params['jobId'] = job_id unless job_id.nil?
529+
command.query['fields'] = fields unless fields.nil?
530+
command.query['quotaUser'] = quota_user unless quota_user.nil?
531+
execute_or_queue_command(command, &block)
532+
end
533+
498534
# Send encoded debug capture data for component.
499535
# @param [String] project_id
500536
# The project id.

0 commit comments

Comments
 (0)