Skip to content

Commit 960246a

Browse files
feat: Automated regeneration of tpu v2alpha1 client (#24432)
Auto-created at 2025-09-28 10:20:38 +0000 using the toys pull request generator.
1 parent e230d8b commit 960246a

File tree

6 files changed

+125
-2
lines changed

6 files changed

+125
-2
lines changed

api_names_out.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366953,6 +366953,9 @@
366953366953
"/tpu:v2alpha1/GetGuestAttributesResponse": get_guest_attributes_response
366954366954
"/tpu:v2alpha1/GetGuestAttributesResponse/guestAttributes": guest_attributes
366955366955
"/tpu:v2alpha1/GetGuestAttributesResponse/guestAttributes/guest_attribute": guest_attribute
366956+
"/tpu:v2alpha1/GetMaintenanceInfoResponse": get_maintenance_info_response
366957+
"/tpu:v2alpha1/GetMaintenanceInfoResponse/nodeUpcomingMaintenances": node_upcoming_maintenances
366958+
"/tpu:v2alpha1/GetMaintenanceInfoResponse/nodeUpcomingMaintenances/node_upcoming_maintenance": node_upcoming_maintenance
366956366959
"/tpu:v2alpha1/Guaranteed": guaranteed
366957366960
"/tpu:v2alpha1/Guaranteed/minDuration": min_duration
366958366961
"/tpu:v2alpha1/Guaranteed/reserved": reserved
@@ -367068,6 +367071,10 @@
367068367071
"/tpu:v2alpha1/NodeSpec/node": node
367069367072
"/tpu:v2alpha1/NodeSpec/nodeId": node_id
367070367073
"/tpu:v2alpha1/NodeSpec/parent": parent
367074+
"/tpu:v2alpha1/NodeUpcomingMaintenanceInfo": node_upcoming_maintenance_info
367075+
"/tpu:v2alpha1/NodeUpcomingMaintenanceInfo/nodeName": node_name
367076+
"/tpu:v2alpha1/NodeUpcomingMaintenanceInfo/nodeUid": node_uid
367077+
"/tpu:v2alpha1/NodeUpcomingMaintenanceInfo/upcomingMaintenance": upcoming_maintenance
367071367078
"/tpu:v2alpha1/Operation": operation
367072367079
"/tpu:v2alpha1/Operation/done": done
367073367080
"/tpu:v2alpha1/Operation/error": error
@@ -367249,6 +367256,8 @@
367249367256
"/tpu:v2alpha1/tpu.projects.locations.queuedResources.delete/requestId": request_id
367250367257
"/tpu:v2alpha1/tpu.projects.locations.queuedResources.get": get_project_location_queued_resource
367251367258
"/tpu:v2alpha1/tpu.projects.locations.queuedResources.get/name": name
367259+
"/tpu:v2alpha1/tpu.projects.locations.queuedResources.getMaintenanceInfo": get_project_location_queued_resource_maintenance_info
367260+
"/tpu:v2alpha1/tpu.projects.locations.queuedResources.getMaintenanceInfo/name": name
367252367261
"/tpu:v2alpha1/tpu.projects.locations.queuedResources.list": list_project_location_queued_resources
367253367262
"/tpu:v2alpha1/tpu.projects.locations.queuedResources.list/pageSize": page_size
367254367263
"/tpu:v2alpha1/tpu.projects.locations.queuedResources.list/pageToken": page_token

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

3+
### v0.46.0 (2025-09-28)
4+
5+
* Regenerated from discovery document revision 20250918
6+
37
### v0.45.0 (2025-09-14)
48

59
* Regenerated from discovery document revision 20250903

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

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,25 @@ def update!(**args)
399399
end
400400
end
401401

402+
# Response for GetMaintenanceInfo.
403+
class GetMaintenanceInfoResponse
404+
include Google::Apis::Core::Hashable
405+
406+
# The list of upcoming maintenance entries.
407+
# Corresponds to the JSON property `nodeUpcomingMaintenances`
408+
# @return [Array<Google::Apis::TpuV2alpha1::NodeUpcomingMaintenanceInfo>]
409+
attr_accessor :node_upcoming_maintenances
410+
411+
def initialize(**args)
412+
update!(**args)
413+
end
414+
415+
# Update properties of this object
416+
def update!(**args)
417+
@node_upcoming_maintenances = args[:node_upcoming_maintenances] if args.key?(:node_upcoming_maintenances)
418+
end
419+
end
420+
402421
# Guaranteed tier definition.
403422
class Guaranteed
404423
include Google::Apis::Core::Hashable
@@ -1140,6 +1159,37 @@ def update!(**args)
11401159
end
11411160
end
11421161

1162+
# A tuple containing node name / ID and maintenance info.
1163+
class NodeUpcomingMaintenanceInfo
1164+
include Google::Apis::Core::Hashable
1165+
1166+
# Unqualified node name.
1167+
# Corresponds to the JSON property `nodeName`
1168+
# @return [String]
1169+
attr_accessor :node_name
1170+
1171+
# UID of this node.
1172+
# Corresponds to the JSON property `nodeUid`
1173+
# @return [Fixnum]
1174+
attr_accessor :node_uid
1175+
1176+
# Upcoming Maintenance notification information.
1177+
# Corresponds to the JSON property `upcomingMaintenance`
1178+
# @return [Google::Apis::TpuV2alpha1::UpcomingMaintenance]
1179+
attr_accessor :upcoming_maintenance
1180+
1181+
def initialize(**args)
1182+
update!(**args)
1183+
end
1184+
1185+
# Update properties of this object
1186+
def update!(**args)
1187+
@node_name = args[:node_name] if args.key?(:node_name)
1188+
@node_uid = args[:node_uid] if args.key?(:node_uid)
1189+
@upcoming_maintenance = args[:upcoming_maintenance] if args.key?(:upcoming_maintenance)
1190+
end
1191+
end
1192+
11431193
# This resource represents a long-running operation that is the result of a
11441194
# network API call.
11451195
class Operation

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

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

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

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

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
124124
include Google::Apis::Core::JsonObjectSupport
125125
end
126126

127+
class GetMaintenanceInfoResponse
128+
class Representation < Google::Apis::Core::JsonRepresentation; end
129+
130+
include Google::Apis::Core::JsonObjectSupport
131+
end
132+
127133
class Guaranteed
128134
class Representation < Google::Apis::Core::JsonRepresentation; end
129135

@@ -232,6 +238,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
232238
include Google::Apis::Core::JsonObjectSupport
233239
end
234240

241+
class NodeUpcomingMaintenanceInfo
242+
class Representation < Google::Apis::Core::JsonRepresentation; end
243+
244+
include Google::Apis::Core::JsonObjectSupport
245+
end
246+
235247
class Operation
236248
class Representation < Google::Apis::Core::JsonRepresentation; end
237249

@@ -529,6 +541,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
529541
end
530542
end
531543

544+
class GetMaintenanceInfoResponse
545+
# @private
546+
class Representation < Google::Apis::Core::JsonRepresentation
547+
collection :node_upcoming_maintenances, as: 'nodeUpcomingMaintenances', class: Google::Apis::TpuV2alpha1::NodeUpcomingMaintenanceInfo, decorator: Google::Apis::TpuV2alpha1::NodeUpcomingMaintenanceInfo::Representation
548+
549+
end
550+
end
551+
532552
class Guaranteed
533553
# @private
534554
class Representation < Google::Apis::Core::JsonRepresentation
@@ -736,6 +756,16 @@ class Representation < Google::Apis::Core::JsonRepresentation
736756
end
737757
end
738758

759+
class NodeUpcomingMaintenanceInfo
760+
# @private
761+
class Representation < Google::Apis::Core::JsonRepresentation
762+
property :node_name, as: 'nodeName'
763+
property :node_uid, :numeric_string => true, as: 'nodeUid'
764+
property :upcoming_maintenance, as: 'upcomingMaintenance', class: Google::Apis::TpuV2alpha1::UpcomingMaintenance, decorator: Google::Apis::TpuV2alpha1::UpcomingMaintenance::Representation
765+
766+
end
767+
end
768+
739769
class Operation
740770
# @private
741771
class Representation < Google::Apis::Core::JsonRepresentation

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

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -824,6 +824,36 @@ def get_project_location_queued_resource(name, fields: nil, quota_user: nil, opt
824824
execute_or_queue_command(command, &block)
825825
end
826826

827+
# Gets the maintenance info for a queued resource.
828+
# @param [String] name
829+
# Required. The QueuedResource name.
830+
# @param [String] fields
831+
# Selector specifying which fields to include in a partial response.
832+
# @param [String] quota_user
833+
# Available to use for quota purposes for server-side applications. Can be any
834+
# arbitrary string assigned to a user, but should not exceed 40 characters.
835+
# @param [Google::Apis::RequestOptions] options
836+
# Request-specific options
837+
#
838+
# @yield [result, err] Result & error if block supplied
839+
# @yieldparam result [Google::Apis::TpuV2alpha1::GetMaintenanceInfoResponse] parsed result object
840+
# @yieldparam err [StandardError] error object if request failed
841+
#
842+
# @return [Google::Apis::TpuV2alpha1::GetMaintenanceInfoResponse]
843+
#
844+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
845+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
846+
# @raise [Google::Apis::AuthorizationError] Authorization is required
847+
def get_project_location_queued_resource_maintenance_info(name, fields: nil, quota_user: nil, options: nil, &block)
848+
command = make_simple_command(:get, 'v2alpha1/{+name}:getMaintenanceInfo', options)
849+
command.response_representation = Google::Apis::TpuV2alpha1::GetMaintenanceInfoResponse::Representation
850+
command.response_class = Google::Apis::TpuV2alpha1::GetMaintenanceInfoResponse
851+
command.params['name'] = name unless name.nil?
852+
command.query['fields'] = fields unless fields.nil?
853+
command.query['quotaUser'] = quota_user unless quota_user.nil?
854+
execute_or_queue_command(command, &block)
855+
end
856+
827857
# Lists queued resources.
828858
# @param [String] parent
829859
# Required. The parent resource name.

0 commit comments

Comments
 (0)