diff --git a/api_names_out.yaml b/api_names_out.yaml index 41bf745ccbe..287b64c3696 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -365862,6 +365862,9 @@ "/tpu:v2alpha1/GetGuestAttributesResponse": get_guest_attributes_response "/tpu:v2alpha1/GetGuestAttributesResponse/guestAttributes": guest_attributes "/tpu:v2alpha1/GetGuestAttributesResponse/guestAttributes/guest_attribute": guest_attribute +"/tpu:v2alpha1/GetMaintenanceInfoResponse": get_maintenance_info_response +"/tpu:v2alpha1/GetMaintenanceInfoResponse/nodeUpcomingMaintenances": node_upcoming_maintenances +"/tpu:v2alpha1/GetMaintenanceInfoResponse/nodeUpcomingMaintenances/node_upcoming_maintenance": node_upcoming_maintenance "/tpu:v2alpha1/Guaranteed": guaranteed "/tpu:v2alpha1/Guaranteed/minDuration": min_duration "/tpu:v2alpha1/Guaranteed/reserved": reserved @@ -365977,6 +365980,10 @@ "/tpu:v2alpha1/NodeSpec/node": node "/tpu:v2alpha1/NodeSpec/nodeId": node_id "/tpu:v2alpha1/NodeSpec/parent": parent +"/tpu:v2alpha1/NodeUpcomingMaintenanceInfo": node_upcoming_maintenance_info +"/tpu:v2alpha1/NodeUpcomingMaintenanceInfo/nodeName": node_name +"/tpu:v2alpha1/NodeUpcomingMaintenanceInfo/nodeUid": node_uid +"/tpu:v2alpha1/NodeUpcomingMaintenanceInfo/upcomingMaintenance": upcoming_maintenance "/tpu:v2alpha1/Operation": operation "/tpu:v2alpha1/Operation/done": done "/tpu:v2alpha1/Operation/error": error @@ -366158,6 +366165,8 @@ "/tpu:v2alpha1/tpu.projects.locations.queuedResources.delete/requestId": request_id "/tpu:v2alpha1/tpu.projects.locations.queuedResources.get": get_project_location_queued_resource "/tpu:v2alpha1/tpu.projects.locations.queuedResources.get/name": name +"/tpu:v2alpha1/tpu.projects.locations.queuedResources.getMaintenanceInfo": get_project_location_queued_resource_maintenance_info +"/tpu:v2alpha1/tpu.projects.locations.queuedResources.getMaintenanceInfo/name": name "/tpu:v2alpha1/tpu.projects.locations.queuedResources.list": list_project_location_queued_resources "/tpu:v2alpha1/tpu.projects.locations.queuedResources.list/pageSize": page_size "/tpu:v2alpha1/tpu.projects.locations.queuedResources.list/pageToken": page_token diff --git a/generated/google-apis-tpu_v2alpha1/CHANGELOG.md b/generated/google-apis-tpu_v2alpha1/CHANGELOG.md index 198e2705a02..740d6fccbb5 100644 --- a/generated/google-apis-tpu_v2alpha1/CHANGELOG.md +++ b/generated/google-apis-tpu_v2alpha1/CHANGELOG.md @@ -1,5 +1,9 @@ # Release history for google-apis-tpu_v2alpha1 +### v0.46.0 (2025-09-28) + +* Regenerated from discovery document revision 20250918 + ### v0.45.0 (2025-09-14) * Regenerated from discovery document revision 20250903 diff --git a/generated/google-apis-tpu_v2alpha1/lib/google/apis/tpu_v2alpha1/classes.rb b/generated/google-apis-tpu_v2alpha1/lib/google/apis/tpu_v2alpha1/classes.rb index e209de90b15..f413c1fde06 100644 --- a/generated/google-apis-tpu_v2alpha1/lib/google/apis/tpu_v2alpha1/classes.rb +++ b/generated/google-apis-tpu_v2alpha1/lib/google/apis/tpu_v2alpha1/classes.rb @@ -399,6 +399,25 @@ def update!(**args) end end + # Response for GetMaintenanceInfo. + class GetMaintenanceInfoResponse + include Google::Apis::Core::Hashable + + # The list of upcoming maintenance entries. + # Corresponds to the JSON property `nodeUpcomingMaintenances` + # @return [Array] + attr_accessor :node_upcoming_maintenances + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @node_upcoming_maintenances = args[:node_upcoming_maintenances] if args.key?(:node_upcoming_maintenances) + end + end + # Guaranteed tier definition. class Guaranteed include Google::Apis::Core::Hashable @@ -1140,6 +1159,37 @@ def update!(**args) end end + # A tuple containing node name / ID and maintenance info. + class NodeUpcomingMaintenanceInfo + include Google::Apis::Core::Hashable + + # Unqualified node name. + # Corresponds to the JSON property `nodeName` + # @return [String] + attr_accessor :node_name + + # UID of this node. + # Corresponds to the JSON property `nodeUid` + # @return [Fixnum] + attr_accessor :node_uid + + # Upcoming Maintenance notification information. + # Corresponds to the JSON property `upcomingMaintenance` + # @return [Google::Apis::TpuV2alpha1::UpcomingMaintenance] + attr_accessor :upcoming_maintenance + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @node_name = args[:node_name] if args.key?(:node_name) + @node_uid = args[:node_uid] if args.key?(:node_uid) + @upcoming_maintenance = args[:upcoming_maintenance] if args.key?(:upcoming_maintenance) + end + end + # This resource represents a long-running operation that is the result of a # network API call. class Operation diff --git a/generated/google-apis-tpu_v2alpha1/lib/google/apis/tpu_v2alpha1/gem_version.rb b/generated/google-apis-tpu_v2alpha1/lib/google/apis/tpu_v2alpha1/gem_version.rb index 7871ad4f454..5292b658ab1 100644 --- a/generated/google-apis-tpu_v2alpha1/lib/google/apis/tpu_v2alpha1/gem_version.rb +++ b/generated/google-apis-tpu_v2alpha1/lib/google/apis/tpu_v2alpha1/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module TpuV2alpha1 # Version of the google-apis-tpu_v2alpha1 gem - GEM_VERSION = "0.45.0" + GEM_VERSION = "0.46.0" # Version of the code generator used to generate this client GENERATOR_VERSION = "0.18.0" # Revision of the discovery document this client was generated from - REVISION = "20250903" + REVISION = "20250918" end end end diff --git a/generated/google-apis-tpu_v2alpha1/lib/google/apis/tpu_v2alpha1/representations.rb b/generated/google-apis-tpu_v2alpha1/lib/google/apis/tpu_v2alpha1/representations.rb index 2c204d7f3fb..652c493e779 100644 --- a/generated/google-apis-tpu_v2alpha1/lib/google/apis/tpu_v2alpha1/representations.rb +++ b/generated/google-apis-tpu_v2alpha1/lib/google/apis/tpu_v2alpha1/representations.rb @@ -124,6 +124,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GetMaintenanceInfoResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Guaranteed class Representation < Google::Apis::Core::JsonRepresentation; end @@ -232,6 +238,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class NodeUpcomingMaintenanceInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Operation class Representation < Google::Apis::Core::JsonRepresentation; end @@ -529,6 +541,14 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class GetMaintenanceInfoResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :node_upcoming_maintenances, as: 'nodeUpcomingMaintenances', class: Google::Apis::TpuV2alpha1::NodeUpcomingMaintenanceInfo, decorator: Google::Apis::TpuV2alpha1::NodeUpcomingMaintenanceInfo::Representation + + end + end + class Guaranteed # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -736,6 +756,16 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class NodeUpcomingMaintenanceInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :node_name, as: 'nodeName' + property :node_uid, :numeric_string => true, as: 'nodeUid' + property :upcoming_maintenance, as: 'upcomingMaintenance', class: Google::Apis::TpuV2alpha1::UpcomingMaintenance, decorator: Google::Apis::TpuV2alpha1::UpcomingMaintenance::Representation + + end + end + class Operation # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google-apis-tpu_v2alpha1/lib/google/apis/tpu_v2alpha1/service.rb b/generated/google-apis-tpu_v2alpha1/lib/google/apis/tpu_v2alpha1/service.rb index 282790333c8..31e525c109e 100644 --- a/generated/google-apis-tpu_v2alpha1/lib/google/apis/tpu_v2alpha1/service.rb +++ b/generated/google-apis-tpu_v2alpha1/lib/google/apis/tpu_v2alpha1/service.rb @@ -824,6 +824,36 @@ def get_project_location_queued_resource(name, fields: nil, quota_user: nil, opt execute_or_queue_command(command, &block) end + # Gets the maintenance info for a queued resource. + # @param [String] name + # Required. The QueuedResource name. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::TpuV2alpha1::GetMaintenanceInfoResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::TpuV2alpha1::GetMaintenanceInfoResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_queued_resource_maintenance_info(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2alpha1/{+name}:getMaintenanceInfo', options) + command.response_representation = Google::Apis::TpuV2alpha1::GetMaintenanceInfoResponse::Representation + command.response_class = Google::Apis::TpuV2alpha1::GetMaintenanceInfoResponse + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Lists queued resources. # @param [String] parent # Required. The parent resource name.