Skip to content

Commit 948c103

Browse files
feat(tpu): update the API
#### tpu:v2alpha1 The following keys were added: - schemas.AttachedDisk.properties.workerIds.description - schemas.AttachedDisk.properties.workerIds.items.type - schemas.AttachedDisk.properties.workerIds.type - schemas.SchedulingConfig.properties.terminationTimestamp.description - schemas.SchedulingConfig.properties.terminationTimestamp.format - schemas.SchedulingConfig.properties.terminationTimestamp.readOnly - schemas.SchedulingConfig.properties.terminationTimestamp.type The following keys were changed: - schemas.AttachedDisk.description
1 parent 4ab28c7 commit 948c103

File tree

2 files changed

+24
-3
lines changed

2 files changed

+24
-3
lines changed

discovery/tpu-v2alpha1.json

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,7 @@
10211021
}
10221022
}
10231023
},
1024-
"revision": "20250116",
1024+
"revision": "20250306",
10251025
"rootUrl": "https://tpu.googleapis.com/",
10261026
"schemas": {
10271027
"AcceleratorConfig": {
@@ -1104,7 +1104,7 @@
11041104
"type": "object"
11051105
},
11061106
"AttachedDisk": {
1107-
"description": "A node-attached disk resource. Next ID: 8;",
1107+
"description": "A node-attached disk resource.",
11081108
"id": "AttachedDisk",
11091109
"properties": {
11101110
"mode": {
@@ -1124,6 +1124,13 @@
11241124
"sourceDisk": {
11251125
"description": "Specifies the full path to an existing disk. For example: \"projects/my-project/zones/us-central1-c/disks/my-disk\".",
11261126
"type": "string"
1127+
},
1128+
"workerIds": {
1129+
"description": "Optional. The list of worker IDs this disk is attached to.",
1130+
"items": {
1131+
"type": "string"
1132+
},
1133+
"type": "array"
11271134
}
11281135
},
11291136
"type": "object"
@@ -2155,6 +2162,12 @@
21552162
"spot": {
21562163
"description": "Optional. Defines whether the node is Spot VM.",
21572164
"type": "boolean"
2165+
},
2166+
"terminationTimestamp": {
2167+
"description": "Output only. The time at which the node will be terminated.",
2168+
"format": "google-datetime",
2169+
"readOnly": true,
2170+
"type": "string"
21582171
}
21592172
},
21602173
"type": "object"

src/apis/tpu/v2alpha1.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export namespace tpu_v2alpha1 {
172172
*/
173173
export interface Schema$ActiveData {}
174174
/**
175-
* A node-attached disk resource. Next ID: 8;
175+
* A node-attached disk resource.
176176
*/
177177
export interface Schema$AttachedDisk {
178178
/**
@@ -183,6 +183,10 @@ export namespace tpu_v2alpha1 {
183183
* Specifies the full path to an existing disk. For example: "projects/my-project/zones/us-central1-c/disks/my-disk".
184184
*/
185185
sourceDisk?: string | null;
186+
/**
187+
* Optional. The list of worker IDs this disk is attached to.
188+
*/
189+
workerIds?: string[] | null;
186190
}
187191
/**
188192
* BestEffort tier definition.
@@ -896,6 +900,10 @@ export namespace tpu_v2alpha1 {
896900
* Optional. Defines whether the node is Spot VM.
897901
*/
898902
spot?: boolean | null;
903+
/**
904+
* Output only. The time at which the node will be terminated.
905+
*/
906+
terminationTimestamp?: string | null;
899907
}
900908
/**
901909
* A service account.

0 commit comments

Comments
 (0)