Skip to content

Commit 4254558

Browse files
feat(tpu): update the api
#### tpu:v2alpha1 The following keys were added: - resources.projects.resources.locations.resources.queuedResources.methods.getMaintenanceInfo (Total Keys: 11) - schemas.GetMaintenanceInfoResponse (Total Keys: 4) - schemas.NodeUpcomingMaintenanceInfo (Total Keys: 6)
1 parent ff0931d commit 4254558

File tree

2 files changed

+95
-1
lines changed

2 files changed

+95
-1
lines changed

docs/dyn/tpu_v2alpha1.projects.locations.queuedResources.html

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ <h2>Instance Methods</h2>
8686
<p class="toc_element">
8787
<code><a href="#get">get(name, x__xgafv=None)</a></code></p>
8888
<p class="firstline">Gets details of a queued resource.</p>
89+
<p class="toc_element">
90+
<code><a href="#getMaintenanceInfo">getMaintenanceInfo(name, x__xgafv=None)</a></code></p>
91+
<p class="firstline">Gets the maintenance info for a queued resource.</p>
8992
<p class="toc_element">
9093
<code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
9194
<p class="firstline">Lists queued resources.</p>
@@ -552,6 +555,38 @@ <h3>Method Details</h3>
552555
}</pre>
553556
</div>
554557

558+
<div class="method">
559+
<code class="details" id="getMaintenanceInfo">getMaintenanceInfo(name, x__xgafv=None)</code>
560+
<pre>Gets the maintenance info for a queued resource.
561+
562+
Args:
563+
name: string, Required. The QueuedResource name. (required)
564+
x__xgafv: string, V1 error format.
565+
Allowed values
566+
1 - v1 error format
567+
2 - v2 error format
568+
569+
Returns:
570+
An object of the form:
571+
572+
{ # Response for GetMaintenanceInfo.
573+
&quot;nodeUpcomingMaintenances&quot;: [ # The list of upcoming maintenance entries.
574+
{ # A tuple containing node name / ID and maintenance info.
575+
&quot;nodeName&quot;: &quot;A String&quot;, # Unqualified node name.
576+
&quot;nodeUid&quot;: &quot;A String&quot;, # UID of this node.
577+
&quot;upcomingMaintenance&quot;: { # Upcoming Maintenance notification information. # Upcoming maintenance info for this node.
578+
&quot;canReschedule&quot;: True or False, # Indicates if the maintenance can be customer triggered.
579+
&quot;latestWindowStartTime&quot;: &quot;A String&quot;, # The latest time for the planned maintenance window to start. This timestamp value is in RFC3339 text format.
580+
&quot;maintenanceStatus&quot;: &quot;A String&quot;, # The status of the maintenance.
581+
&quot;type&quot;: &quot;A String&quot;, # Defines the type of maintenance.
582+
&quot;windowEndTime&quot;: &quot;A String&quot;, # The time by which the maintenance disruption will be completed. This timestamp value is in RFC3339 text format.
583+
&quot;windowStartTime&quot;: &quot;A String&quot;, # The current start time of the maintenance window. This timestamp value is in RFC3339 text format.
584+
},
585+
},
586+
],
587+
}</pre>
588+
</div>
589+
555590
<div class="method">
556591
<code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
557592
<pre>Lists queued resources.

googleapiclient/discovery_cache/documents/tpu.v2alpha1.json

Lines changed: 60 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -813,6 +813,31 @@
813813
"https://www.googleapis.com/auth/cloud-platform"
814814
]
815815
},
816+
"getMaintenanceInfo": {
817+
"description": "Gets the maintenance info for a queued resource.",
818+
"flatPath": "v2alpha1/projects/{projectsId}/locations/{locationsId}/queuedResources/{queuedResourcesId}:getMaintenanceInfo",
819+
"httpMethod": "GET",
820+
"id": "tpu.projects.locations.queuedResources.getMaintenanceInfo",
821+
"parameterOrder": [
822+
"name"
823+
],
824+
"parameters": {
825+
"name": {
826+
"description": "Required. The QueuedResource name.",
827+
"location": "path",
828+
"pattern": "^projects/[^/]+/locations/[^/]+/queuedResources/[^/]+$",
829+
"required": true,
830+
"type": "string"
831+
}
832+
},
833+
"path": "v2alpha1/{+name}:getMaintenanceInfo",
834+
"response": {
835+
"$ref": "GetMaintenanceInfoResponse"
836+
},
837+
"scopes": [
838+
"https://www.googleapis.com/auth/cloud-platform"
839+
]
840+
},
816841
"list": {
817842
"description": "Lists queued resources.",
818843
"flatPath": "v2alpha1/projects/{projectsId}/locations/{locationsId}/queuedResources",
@@ -1027,7 +1052,7 @@
10271052
}
10281053
}
10291054
},
1030-
"revision": "20250903",
1055+
"revision": "20250918",
10311056
"rootUrl": "https://tpu.googleapis.com/",
10321057
"schemas": {
10331058
"AcceleratorConfig": {
@@ -1274,6 +1299,20 @@
12741299
},
12751300
"type": "object"
12761301
},
1302+
"GetMaintenanceInfoResponse": {
1303+
"description": "Response for GetMaintenanceInfo.",
1304+
"id": "GetMaintenanceInfoResponse",
1305+
"properties": {
1306+
"nodeUpcomingMaintenances": {
1307+
"description": "The list of upcoming maintenance entries.",
1308+
"items": {
1309+
"$ref": "NodeUpcomingMaintenanceInfo"
1310+
},
1311+
"type": "array"
1312+
}
1313+
},
1314+
"type": "object"
1315+
},
12771316
"Guaranteed": {
12781317
"description": "Guaranteed tier definition.",
12791318
"id": "Guaranteed",
@@ -1859,6 +1898,26 @@
18591898
},
18601899
"type": "object"
18611900
},
1901+
"NodeUpcomingMaintenanceInfo": {
1902+
"description": "A tuple containing node name / ID and maintenance info.",
1903+
"id": "NodeUpcomingMaintenanceInfo",
1904+
"properties": {
1905+
"nodeName": {
1906+
"description": "Unqualified node name.",
1907+
"type": "string"
1908+
},
1909+
"nodeUid": {
1910+
"description": "UID of this node.",
1911+
"format": "int64",
1912+
"type": "string"
1913+
},
1914+
"upcomingMaintenance": {
1915+
"$ref": "UpcomingMaintenance",
1916+
"description": "Upcoming maintenance info for this node."
1917+
}
1918+
},
1919+
"type": "object"
1920+
},
18621921
"Operation": {
18631922
"description": "This resource represents a long-running operation that is the result of a network API call.",
18641923
"id": "Operation",

0 commit comments

Comments
 (0)