Skip to content

Commit 032ac65

Browse files
feat: Automated regeneration of dataflow v1b3 client (#20507)
Auto-created at 2024-11-03 09:49:28 +0000 using the toys pull request generator.
1 parent 891d6d5 commit 032ac65

File tree

5 files changed

+94
-2
lines changed

5 files changed

+94
-2
lines changed

api_names_out.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131508,6 +131508,11 @@
131508131508
"/dataflow:v1b3/FloatingPointMean": floating_point_mean
131509131509
"/dataflow:v1b3/FloatingPointMean/count": count
131510131510
"/dataflow:v1b3/FloatingPointMean/sum": sum
131511+
"/dataflow:v1b3/GPUUsage": gpu_usage
131512+
"/dataflow:v1b3/GPUUsage/timestamp": timestamp
131513+
"/dataflow:v1b3/GPUUsage/utilization": utilization
131514+
"/dataflow:v1b3/GPUUtilization": gpu_utilization
131515+
"/dataflow:v1b3/GPUUtilization/rate": rate
131511131516
"/dataflow:v1b3/GetDebugConfigRequest": get_debug_config_request
131512131517
"/dataflow:v1b3/GetDebugConfigRequest/componentId": component_id
131513131518
"/dataflow:v1b3/GetDebugConfigRequest/location": location
@@ -131897,6 +131902,8 @@
131897131902
"/dataflow:v1b3/ResourceUtilizationReport/containers/container": container
131898131903
"/dataflow:v1b3/ResourceUtilizationReport/cpuTime": cpu_time
131899131904
"/dataflow:v1b3/ResourceUtilizationReport/cpuTime/cpu_time": cpu_time
131905+
"/dataflow:v1b3/ResourceUtilizationReport/gpuUsage": gpu_usage
131906+
"/dataflow:v1b3/ResourceUtilizationReport/gpuUsage/gpu_usage": gpu_usage
131900131907
"/dataflow:v1b3/ResourceUtilizationReport/memoryInfo": memory_info
131901131908
"/dataflow:v1b3/ResourceUtilizationReport/memoryInfo/memory_info": memory_info
131902131909
"/dataflow:v1b3/ResourceUtilizationReportResponse": resource_utilization_report_response

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.62.0 (2024-11-03)
4+
5+
* Regenerated from discovery document revision 20241028
6+
37
### v0.61.0 (2024-10-20)
48

59
* Regenerated from discovery document revision 20241014

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

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1920,6 +1920,51 @@ def update!(**args)
19201920
end
19211921
end
19221922

1923+
# Information about the GPU usage on the worker.
1924+
class GpuUsage
1925+
include Google::Apis::Core::Hashable
1926+
1927+
# Required. Timestamp of the measurement.
1928+
# Corresponds to the JSON property `timestamp`
1929+
# @return [String]
1930+
attr_accessor :timestamp
1931+
1932+
# Utilization details about the GPU.
1933+
# Corresponds to the JSON property `utilization`
1934+
# @return [Google::Apis::DataflowV1b3::GpuUtilization]
1935+
attr_accessor :utilization
1936+
1937+
def initialize(**args)
1938+
update!(**args)
1939+
end
1940+
1941+
# Update properties of this object
1942+
def update!(**args)
1943+
@timestamp = args[:timestamp] if args.key?(:timestamp)
1944+
@utilization = args[:utilization] if args.key?(:utilization)
1945+
end
1946+
end
1947+
1948+
# Utilization details about the GPU.
1949+
class GpuUtilization
1950+
include Google::Apis::Core::Hashable
1951+
1952+
# Required. GPU utilization rate of any kernel over the last sample period in
1953+
# the range of [0, 1].
1954+
# Corresponds to the JSON property `rate`
1955+
# @return [Float]
1956+
attr_accessor :rate
1957+
1958+
def initialize(**args)
1959+
update!(**args)
1960+
end
1961+
1962+
# Update properties of this object
1963+
def update!(**args)
1964+
@rate = args[:rate] if args.key?(:rate)
1965+
end
1966+
end
1967+
19231968
# Request to get updated debug configuration for component.
19241969
class GetDebugConfigRequest
19251970
include Google::Apis::Core::Hashable
@@ -4399,6 +4444,11 @@ class ResourceUtilizationReport
43994444
# @return [Array<Google::Apis::DataflowV1b3::CpuTime>]
44004445
attr_accessor :cpu_time
44014446

4447+
# Optional. GPU usage samples.
4448+
# Corresponds to the JSON property `gpuUsage`
4449+
# @return [Array<Google::Apis::DataflowV1b3::GpuUsage>]
4450+
attr_accessor :gpu_usage
4451+
44024452
# Memory utilization samples.
44034453
# Corresponds to the JSON property `memoryInfo`
44044454
# @return [Array<Google::Apis::DataflowV1b3::MemInfo>]
@@ -4412,6 +4462,7 @@ def initialize(**args)
44124462
def update!(**args)
44134463
@containers = args[:containers] if args.key?(:containers)
44144464
@cpu_time = args[:cpu_time] if args.key?(:cpu_time)
4465+
@gpu_usage = args[:gpu_usage] if args.key?(:gpu_usage)
44154466
@memory_info = args[:memory_info] if args.key?(:memory_info)
44164467
end
44174468
end

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.61.0"
19+
GEM_VERSION = "0.62.0"
2020

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

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

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

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
274274
include Google::Apis::Core::JsonObjectSupport
275275
end
276276

277+
class GpuUsage
278+
class Representation < Google::Apis::Core::JsonRepresentation; end
279+
280+
include Google::Apis::Core::JsonObjectSupport
281+
end
282+
283+
class GpuUtilization
284+
class Representation < Google::Apis::Core::JsonRepresentation; end
285+
286+
include Google::Apis::Core::JsonObjectSupport
287+
end
288+
277289
class GetDebugConfigRequest
278290
class Representation < Google::Apis::Core::JsonRepresentation; end
279291

@@ -1626,6 +1638,22 @@ class Representation < Google::Apis::Core::JsonRepresentation
16261638
end
16271639
end
16281640

1641+
class GpuUsage
1642+
# @private
1643+
class Representation < Google::Apis::Core::JsonRepresentation
1644+
property :timestamp, as: 'timestamp'
1645+
property :utilization, as: 'utilization', class: Google::Apis::DataflowV1b3::GpuUtilization, decorator: Google::Apis::DataflowV1b3::GpuUtilization::Representation
1646+
1647+
end
1648+
end
1649+
1650+
class GpuUtilization
1651+
# @private
1652+
class Representation < Google::Apis::Core::JsonRepresentation
1653+
property :rate, as: 'rate'
1654+
end
1655+
end
1656+
16291657
class GetDebugConfigRequest
16301658
# @private
16311659
class Representation < Google::Apis::Core::JsonRepresentation
@@ -2308,6 +2336,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
23082336

23092337
collection :cpu_time, as: 'cpuTime', class: Google::Apis::DataflowV1b3::CpuTime, decorator: Google::Apis::DataflowV1b3::CpuTime::Representation
23102338

2339+
collection :gpu_usage, as: 'gpuUsage', class: Google::Apis::DataflowV1b3::GpuUsage, decorator: Google::Apis::DataflowV1b3::GpuUsage::Representation
2340+
23112341
collection :memory_info, as: 'memoryInfo', class: Google::Apis::DataflowV1b3::MemInfo, decorator: Google::Apis::DataflowV1b3::MemInfo::Representation
23122342

23132343
end

0 commit comments

Comments
 (0)