Skip to content

Commit fd90f6c

Browse files
feat: Automated regeneration of tpu v2alpha1 client (#20853)
Auto-created at 2024-12-02 23:09:57 +0000 using the toys pull request generator.
1 parent c676011 commit fd90f6c

File tree

6 files changed

+245
-3
lines changed

6 files changed

+245
-3
lines changed

api_names_out.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328050,6 +328050,7 @@
328050328050
"/tpu:v2alpha1/MultiNodeParams": multi_node_params
328051328051
"/tpu:v2alpha1/MultiNodeParams/nodeCount": node_count
328052328052
"/tpu:v2alpha1/MultiNodeParams/nodeIdPrefix": node_id_prefix
328053+
"/tpu:v2alpha1/MultiNodeParams/workloadType": workload_type
328053328054
"/tpu:v2alpha1/NetworkConfig": network_config
328054328055
"/tpu:v2alpha1/NetworkConfig/canIpForward": can_ip_forward
328055328056
"/tpu:v2alpha1/NetworkConfig/enableExternalIps": enable_external_ips
@@ -328081,6 +328082,8 @@
328081328082
"/tpu:v2alpha1/Node/multisliceNode": multislice_node
328082328083
"/tpu:v2alpha1/Node/name": name
328083328084
"/tpu:v2alpha1/Node/networkConfig": network_config
328085+
"/tpu:v2alpha1/Node/networkConfigs": network_configs
328086+
"/tpu:v2alpha1/Node/networkConfigs/network_config": network_config
328084328087
"/tpu:v2alpha1/Node/networkEndpoints": network_endpoints
328085328088
"/tpu:v2alpha1/Node/networkEndpoints/network_endpoint": network_endpoint
328086328089
"/tpu:v2alpha1/Node/queuedResource": queued_resource
@@ -328093,6 +328096,7 @@
328093328096
"/tpu:v2alpha1/Node/symptoms/symptom": symptom
328094328097
"/tpu:v2alpha1/Node/tags": tags
328095328098
"/tpu:v2alpha1/Node/tags/tag": tag
328099+
"/tpu:v2alpha1/Node/upcomingMaintenance": upcoming_maintenance
328096328100
"/tpu:v2alpha1/NodeSpec": node_spec
328097328101
"/tpu:v2alpha1/NodeSpec/multiNodeParams": multi_node_params
328098328102
"/tpu:v2alpha1/NodeSpec/node": node
@@ -328114,6 +328118,10 @@
328114328118
"/tpu:v2alpha1/OperationMetadata/statusDetail": status_detail
328115328119
"/tpu:v2alpha1/OperationMetadata/target": target
328116328120
"/tpu:v2alpha1/OperationMetadata/verb": verb
328121+
"/tpu:v2alpha1/PerformMaintenanceQueuedResourceRequest": perform_maintenance_queued_resource_request
328122+
"/tpu:v2alpha1/PerformMaintenanceQueuedResourceRequest/nodeNames": node_names
328123+
"/tpu:v2alpha1/PerformMaintenanceQueuedResourceRequest/nodeNames/node_name": node_name
328124+
"/tpu:v2alpha1/PerformMaintenanceRequest": perform_maintenance_request
328117328125
"/tpu:v2alpha1/ProvisioningData": provisioning_data
328118328126
"/tpu:v2alpha1/QueuedResource": queued_resource
328119328127
"/tpu:v2alpha1/QueuedResource/bestEffort": best_effort
@@ -328190,6 +328198,13 @@
328190328198
"/tpu:v2alpha1/Tpu": tpu
328191328199
"/tpu:v2alpha1/Tpu/nodeSpec": node_spec
328192328200
"/tpu:v2alpha1/Tpu/nodeSpec/node_spec": node_spec
328201+
"/tpu:v2alpha1/UpcomingMaintenance": upcoming_maintenance
328202+
"/tpu:v2alpha1/UpcomingMaintenance/canReschedule": can_reschedule
328203+
"/tpu:v2alpha1/UpcomingMaintenance/latestWindowStartTime": latest_window_start_time
328204+
"/tpu:v2alpha1/UpcomingMaintenance/maintenanceStatus": maintenance_status
328205+
"/tpu:v2alpha1/UpcomingMaintenance/type": type
328206+
"/tpu:v2alpha1/UpcomingMaintenance/windowEndTime": window_end_time
328207+
"/tpu:v2alpha1/UpcomingMaintenance/windowStartTime": window_start_time
328193328208
"/tpu:v2alpha1/Usage": usage
328194328209
"/tpu:v2alpha1/Usage/total": total
328195328210
"/tpu:v2alpha1/fields": fields
@@ -328230,6 +328245,8 @@
328230328245
"/tpu:v2alpha1/tpu.projects.locations.nodes.patch": patch_project_location_node
328231328246
"/tpu:v2alpha1/tpu.projects.locations.nodes.patch/name": name
328232328247
"/tpu:v2alpha1/tpu.projects.locations.nodes.patch/updateMask": update_mask
328248+
"/tpu:v2alpha1/tpu.projects.locations.nodes.performMaintenance": perform_node_maintenance
328249+
"/tpu:v2alpha1/tpu.projects.locations.nodes.performMaintenance/name": name
328233328250
"/tpu:v2alpha1/tpu.projects.locations.nodes.simulateMaintenanceEvent": simulate_node_maintenance_event
328234328251
"/tpu:v2alpha1/tpu.projects.locations.nodes.simulateMaintenanceEvent/name": name
328235328252
"/tpu:v2alpha1/tpu.projects.locations.nodes.start": start_node
@@ -328261,6 +328278,8 @@
328261328278
"/tpu:v2alpha1/tpu.projects.locations.queuedResources.list/pageSize": page_size
328262328279
"/tpu:v2alpha1/tpu.projects.locations.queuedResources.list/pageToken": page_token
328263328280
"/tpu:v2alpha1/tpu.projects.locations.queuedResources.list/parent": parent
328281+
"/tpu:v2alpha1/tpu.projects.locations.queuedResources.performMaintenanceQueuedResource": perform_maintenance_queued_resource
328282+
"/tpu:v2alpha1/tpu.projects.locations.queuedResources.performMaintenanceQueuedResource/name": name
328264328283
"/tpu:v2alpha1/tpu.projects.locations.queuedResources.reset": reset_queued_resource
328265328284
"/tpu:v2alpha1/tpu.projects.locations.queuedResources.reset/name": name
328266328285
"/tpu:v2alpha1/tpu.projects.locations.reservations.list": list_project_location_reservations

generated/google-apis-tpu_v2alpha1/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-tpu_v2alpha1
22

3+
### v0.33.0 (2024-12-02)
4+
5+
* Regenerated from discovery document revision 20241025
6+
* Regenerated using generator version 0.15.1
7+
38
### v0.32.0 (2024-05-19)
49

510
* Regenerated using generator version 0.15.0

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

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -755,6 +755,11 @@ class MultiNodeParams
755755
# @return [String]
756756
attr_accessor :node_id_prefix
757757

758+
# Optional. The workload type for the multi-node request.
759+
# Corresponds to the JSON property `workloadType`
760+
# @return [String]
761+
attr_accessor :workload_type
762+
758763
def initialize(**args)
759764
update!(**args)
760765
end
@@ -763,6 +768,7 @@ def initialize(**args)
763768
def update!(**args)
764769
@node_count = args[:node_count] if args.key?(:node_count)
765770
@node_id_prefix = args[:node_id_prefix] if args.key?(:node_id_prefix)
771+
@workload_type = args[:workload_type] if args.key?(:workload_type)
766772
end
767773
end
768774

@@ -948,6 +954,11 @@ class Node
948954
# @return [Google::Apis::TpuV2alpha1::NetworkConfig]
949955
attr_accessor :network_config
950956

957+
# Optional. Repeated network configurations for the TPU node.
958+
# Corresponds to the JSON property `networkConfigs`
959+
# @return [Array<Google::Apis::TpuV2alpha1::NetworkConfig>]
960+
attr_accessor :network_configs
961+
951962
# Output only. The network endpoints where TPU workers can be accessed and sent
952963
# work. It is recommended that runtime clients of the node reach out to the 0th
953964
# entry in this map first.
@@ -996,6 +1007,11 @@ class Node
9961007
# @return [Array<String>]
9971008
attr_accessor :tags
9981009

1010+
# Upcoming Maintenance notification information.
1011+
# Corresponds to the JSON property `upcomingMaintenance`
1012+
# @return [Google::Apis::TpuV2alpha1::UpcomingMaintenance]
1013+
attr_accessor :upcoming_maintenance
1014+
9991015
def initialize(**args)
10001016
update!(**args)
10011017
end
@@ -1019,6 +1035,7 @@ def update!(**args)
10191035
@multislice_node = args[:multislice_node] if args.key?(:multislice_node)
10201036
@name = args[:name] if args.key?(:name)
10211037
@network_config = args[:network_config] if args.key?(:network_config)
1038+
@network_configs = args[:network_configs] if args.key?(:network_configs)
10221039
@network_endpoints = args[:network_endpoints] if args.key?(:network_endpoints)
10231040
@queued_resource = args[:queued_resource] if args.key?(:queued_resource)
10241041
@runtime_version = args[:runtime_version] if args.key?(:runtime_version)
@@ -1028,6 +1045,7 @@ def update!(**args)
10281045
@state = args[:state] if args.key?(:state)
10291046
@symptoms = args[:symptoms] if args.key?(:symptoms)
10301047
@tags = args[:tags] if args.key?(:tags)
1048+
@upcoming_maintenance = args[:upcoming_maintenance] if args.key?(:upcoming_maintenance)
10311049
end
10321050
end
10331051

@@ -1194,6 +1212,38 @@ def update!(**args)
11941212
end
11951213
end
11961214

1215+
# Request for PerformMaintenanceQueuedResource.
1216+
class PerformMaintenanceQueuedResourceRequest
1217+
include Google::Apis::Core::Hashable
1218+
1219+
# The names of the nodes to perform maintenance on.
1220+
# Corresponds to the JSON property `nodeNames`
1221+
# @return [Array<String>]
1222+
attr_accessor :node_names
1223+
1224+
def initialize(**args)
1225+
update!(**args)
1226+
end
1227+
1228+
# Update properties of this object
1229+
def update!(**args)
1230+
@node_names = args[:node_names] if args.key?(:node_names)
1231+
end
1232+
end
1233+
1234+
# Request for PerformMaintenance.
1235+
class PerformMaintenanceRequest
1236+
include Google::Apis::Core::Hashable
1237+
1238+
def initialize(**args)
1239+
update!(**args)
1240+
end
1241+
1242+
# Update properties of this object
1243+
def update!(**args)
1244+
end
1245+
end
1246+
11971247
# Further data for the provisioning state.
11981248
class ProvisioningData
11991249
include Google::Apis::Core::Hashable
@@ -1799,6 +1849,59 @@ def update!(**args)
17991849
end
18001850
end
18011851

1852+
# Upcoming Maintenance notification information.
1853+
class UpcomingMaintenance
1854+
include Google::Apis::Core::Hashable
1855+
1856+
# Indicates if the maintenance can be customer triggered.
1857+
# Corresponds to the JSON property `canReschedule`
1858+
# @return [Boolean]
1859+
attr_accessor :can_reschedule
1860+
alias_method :can_reschedule?, :can_reschedule
1861+
1862+
# The latest time for the planned maintenance window to start. This timestamp
1863+
# value is in RFC3339 text format.
1864+
# Corresponds to the JSON property `latestWindowStartTime`
1865+
# @return [String]
1866+
attr_accessor :latest_window_start_time
1867+
1868+
# The status of the maintenance.
1869+
# Corresponds to the JSON property `maintenanceStatus`
1870+
# @return [String]
1871+
attr_accessor :maintenance_status
1872+
1873+
# Defines the type of maintenance.
1874+
# Corresponds to the JSON property `type`
1875+
# @return [String]
1876+
attr_accessor :type
1877+
1878+
# The time by which the maintenance disruption will be completed. This timestamp
1879+
# value is in RFC3339 text format.
1880+
# Corresponds to the JSON property `windowEndTime`
1881+
# @return [String]
1882+
attr_accessor :window_end_time
1883+
1884+
# The current start time of the maintenance window. This timestamp value is in
1885+
# RFC3339 text format.
1886+
# Corresponds to the JSON property `windowStartTime`
1887+
# @return [String]
1888+
attr_accessor :window_start_time
1889+
1890+
def initialize(**args)
1891+
update!(**args)
1892+
end
1893+
1894+
# Update properties of this object
1895+
def update!(**args)
1896+
@can_reschedule = args[:can_reschedule] if args.key?(:can_reschedule)
1897+
@latest_window_start_time = args[:latest_window_start_time] if args.key?(:latest_window_start_time)
1898+
@maintenance_status = args[:maintenance_status] if args.key?(:maintenance_status)
1899+
@type = args[:type] if args.key?(:type)
1900+
@window_end_time = args[:window_end_time] if args.key?(:window_end_time)
1901+
@window_start_time = args[:window_start_time] if args.key?(:window_start_time)
1902+
end
1903+
end
1904+
18021905
#
18031906
class Usage
18041907
include Google::Apis::Core::Hashable

generated/google-apis-tpu_v2alpha1/lib/google/apis/tpu_v2alpha1/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 TpuV2alpha1
1818
# Version of the google-apis-tpu_v2alpha1 gem
19-
GEM_VERSION = "0.32.0"
19+
GEM_VERSION = "0.33.0"
2020

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

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

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

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
244244
include Google::Apis::Core::JsonObjectSupport
245245
end
246246

247+
class PerformMaintenanceQueuedResourceRequest
248+
class Representation < Google::Apis::Core::JsonRepresentation; end
249+
250+
include Google::Apis::Core::JsonObjectSupport
251+
end
252+
253+
class PerformMaintenanceRequest
254+
class Representation < Google::Apis::Core::JsonRepresentation; end
255+
256+
include Google::Apis::Core::JsonObjectSupport
257+
end
258+
247259
class ProvisioningData
248260
class Representation < Google::Apis::Core::JsonRepresentation; end
249261

@@ -370,6 +382,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
370382
include Google::Apis::Core::JsonObjectSupport
371383
end
372384

385+
class UpcomingMaintenance
386+
class Representation < Google::Apis::Core::JsonRepresentation; end
387+
388+
include Google::Apis::Core::JsonObjectSupport
389+
end
390+
373391
class Usage
374392
class Representation < Google::Apis::Core::JsonRepresentation; end
375393

@@ -624,6 +642,7 @@ class MultiNodeParams
624642
class Representation < Google::Apis::Core::JsonRepresentation
625643
property :node_count, as: 'nodeCount'
626644
property :node_id_prefix, as: 'nodeIdPrefix'
645+
property :workload_type, as: 'workloadType'
627646
end
628647
end
629648

@@ -672,6 +691,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
672691
property :name, as: 'name'
673692
property :network_config, as: 'networkConfig', class: Google::Apis::TpuV2alpha1::NetworkConfig, decorator: Google::Apis::TpuV2alpha1::NetworkConfig::Representation
674693

694+
collection :network_configs, as: 'networkConfigs', class: Google::Apis::TpuV2alpha1::NetworkConfig, decorator: Google::Apis::TpuV2alpha1::NetworkConfig::Representation
695+
675696
collection :network_endpoints, as: 'networkEndpoints', class: Google::Apis::TpuV2alpha1::NetworkEndpoint, decorator: Google::Apis::TpuV2alpha1::NetworkEndpoint::Representation
676697

677698
property :queued_resource, as: 'queuedResource'
@@ -686,6 +707,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
686707
collection :symptoms, as: 'symptoms', class: Google::Apis::TpuV2alpha1::Symptom, decorator: Google::Apis::TpuV2alpha1::Symptom::Representation
687708

688709
collection :tags, as: 'tags'
710+
property :upcoming_maintenance, as: 'upcomingMaintenance', class: Google::Apis::TpuV2alpha1::UpcomingMaintenance, decorator: Google::Apis::TpuV2alpha1::UpcomingMaintenance::Representation
711+
689712
end
690713
end
691714

@@ -726,6 +749,19 @@ class Representation < Google::Apis::Core::JsonRepresentation
726749
end
727750
end
728751

752+
class PerformMaintenanceQueuedResourceRequest
753+
# @private
754+
class Representation < Google::Apis::Core::JsonRepresentation
755+
collection :node_names, as: 'nodeNames'
756+
end
757+
end
758+
759+
class PerformMaintenanceRequest
760+
# @private
761+
class Representation < Google::Apis::Core::JsonRepresentation
762+
end
763+
end
764+
729765
class ProvisioningData
730766
# @private
731767
class Representation < Google::Apis::Core::JsonRepresentation
@@ -921,6 +957,18 @@ class Representation < Google::Apis::Core::JsonRepresentation
921957
end
922958
end
923959

960+
class UpcomingMaintenance
961+
# @private
962+
class Representation < Google::Apis::Core::JsonRepresentation
963+
property :can_reschedule, as: 'canReschedule'
964+
property :latest_window_start_time, as: 'latestWindowStartTime'
965+
property :maintenance_status, as: 'maintenanceStatus'
966+
property :type, as: 'type'
967+
property :window_end_time, as: 'windowEndTime'
968+
property :window_start_time, as: 'windowStartTime'
969+
end
970+
end
971+
924972
class Usage
925973
# @private
926974
class Representation < Google::Apis::Core::JsonRepresentation

0 commit comments

Comments
 (0)