Skip to content

Commit 61d39f9

Browse files
feat(tpu): update the API
#### tpu:v1alpha1 The following keys were added: - resources.projects.resources.locations.resources.acceleratorTypes.deprecated - resources.projects.resources.locations.resources.acceleratorTypes.methods.get.deprecated - resources.projects.resources.locations.resources.acceleratorTypes.methods.list.deprecated - resources.projects.resources.locations.resources.nodes.deprecated - resources.projects.resources.locations.resources.nodes.methods.create.deprecated - resources.projects.resources.locations.resources.nodes.methods.delete.deprecated - resources.projects.resources.locations.resources.nodes.methods.get.deprecated - resources.projects.resources.locations.resources.nodes.methods.list.deprecated - resources.projects.resources.locations.resources.nodes.methods.reimage.deprecated - resources.projects.resources.locations.resources.nodes.methods.start.deprecated - resources.projects.resources.locations.resources.nodes.methods.stop.deprecated - resources.projects.resources.locations.resources.tensorflowVersions.deprecated - resources.projects.resources.locations.resources.tensorflowVersions.methods.get.deprecated - resources.projects.resources.locations.resources.tensorflowVersions.methods.list.deprecated - schemas.AcceleratorType.deprecated - schemas.ListAcceleratorTypesResponse.deprecated - schemas.ListNodesResponse.deprecated - schemas.ListTensorFlowVersionsResponse.deprecated - schemas.NetworkEndpoint.deprecated - schemas.Node.deprecated - schemas.OperationMetadata.deprecated - schemas.ReimageNodeRequest.deprecated - schemas.SchedulingConfig.deprecated - schemas.StartNodeRequest.deprecated - schemas.StopNodeRequest.deprecated - schemas.Symptom.deprecated - schemas.TensorFlowVersion.deprecated The following keys were changed: - resources.projects.resources.locations.methods.list.parameters.extraLocationTypes.description - resources.projects.resources.locations.resources.operations.methods.list.parameters.returnPartialSuccess.description - schemas.AcceleratorType.description - schemas.ListAcceleratorTypesResponse.description - schemas.ListNodesResponse.description - schemas.ListOperationsResponse.properties.unreachable.description - schemas.ListTensorFlowVersionsResponse.description - schemas.NetworkEndpoint.description - schemas.Node.description - schemas.OperationMetadata.description - schemas.ReimageNodeRequest.description - schemas.SchedulingConfig.description - schemas.StartNodeRequest.description - schemas.StopNodeRequest.description - schemas.Symptom.description - schemas.TensorFlowVersion.description #### tpu:v2alpha1 The following keys were changed: - resources.projects.resources.locations.methods.list.parameters.extraLocationTypes.description - resources.projects.resources.locations.resources.operations.methods.list.parameters.returnPartialSuccess.description - schemas.ListOperationsResponse.properties.unreachable.description #### tpu:v1 The following keys were added: - resources.projects.resources.locations.resources.acceleratorTypes.deprecated - resources.projects.resources.locations.resources.acceleratorTypes.methods.get.deprecated - resources.projects.resources.locations.resources.acceleratorTypes.methods.list.deprecated - resources.projects.resources.locations.resources.nodes.deprecated - resources.projects.resources.locations.resources.nodes.methods.create.deprecated - resources.projects.resources.locations.resources.nodes.methods.delete.deprecated - resources.projects.resources.locations.resources.nodes.methods.get.deprecated - resources.projects.resources.locations.resources.nodes.methods.list.deprecated - resources.projects.resources.locations.resources.nodes.methods.reimage.deprecated - resources.projects.resources.locations.resources.nodes.methods.start.deprecated - resources.projects.resources.locations.resources.nodes.methods.stop.deprecated - resources.projects.resources.locations.resources.tensorflowVersions.deprecated - resources.projects.resources.locations.resources.tensorflowVersions.methods.get.deprecated - resources.projects.resources.locations.resources.tensorflowVersions.methods.list.deprecated - schemas.AcceleratorType.deprecated - schemas.ListAcceleratorTypesResponse.deprecated - schemas.ListNodesResponse.deprecated - schemas.ListTensorFlowVersionsResponse.deprecated - schemas.NetworkEndpoint.deprecated - schemas.Node.deprecated - schemas.OperationMetadata.deprecated - schemas.ReimageNodeRequest.deprecated - schemas.SchedulingConfig.deprecated - schemas.StartNodeRequest.deprecated - schemas.StopNodeRequest.deprecated - schemas.Symptom.deprecated - schemas.TensorFlowVersion.deprecated The following keys were changed: - resources.projects.resources.locations.methods.list.parameters.extraLocationTypes.description - resources.projects.resources.locations.resources.operations.methods.list.parameters.returnPartialSuccess.description - schemas.ListOperationsResponse.properties.unreachable.description #### tpu:v2 The following keys were changed: - resources.projects.resources.locations.methods.list.parameters.extraLocationTypes.description - resources.projects.resources.locations.resources.operations.methods.list.parameters.returnPartialSuccess.description - schemas.ListOperationsResponse.properties.unreachable.description
1 parent c20efaf commit 61d39f9

File tree

8 files changed

+116
-62
lines changed

8 files changed

+116
-62
lines changed

discovery/tpu-v1.json

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
],
145145
"parameters": {
146146
"extraLocationTypes": {
147-
"description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.",
147+
"description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.",
148148
"location": "query",
149149
"repeated": true,
150150
"type": "string"
@@ -184,8 +184,10 @@
184184
},
185185
"resources": {
186186
"acceleratorTypes": {
187+
"deprecated": true,
187188
"methods": {
188189
"get": {
190+
"deprecated": true,
189191
"description": "Gets AcceleratorType.",
190192
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/acceleratorTypes/{acceleratorTypesId}",
191193
"httpMethod": "GET",
@@ -211,6 +213,7 @@
211213
]
212214
},
213215
"list": {
216+
"deprecated": true,
214217
"description": "Lists accelerator types supported by this API.",
215218
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/acceleratorTypes",
216219
"httpMethod": "GET",
@@ -259,8 +262,10 @@
259262
}
260263
},
261264
"nodes": {
265+
"deprecated": true,
262266
"methods": {
263267
"create": {
268+
"deprecated": true,
264269
"description": "Creates a node.",
265270
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/nodes",
266271
"httpMethod": "POST",
@@ -294,6 +299,7 @@
294299
]
295300
},
296301
"delete": {
302+
"deprecated": true,
297303
"description": "Deletes a node.",
298304
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}",
299305
"httpMethod": "DELETE",
@@ -319,6 +325,7 @@
319325
]
320326
},
321327
"get": {
328+
"deprecated": true,
322329
"description": "Gets the details of a node.",
323330
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}",
324331
"httpMethod": "GET",
@@ -344,6 +351,7 @@
344351
]
345352
},
346353
"list": {
354+
"deprecated": true,
347355
"description": "Lists nodes.",
348356
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/nodes",
349357
"httpMethod": "GET",
@@ -380,6 +388,7 @@
380388
]
381389
},
382390
"reimage": {
391+
"deprecated": true,
383392
"description": "Reimages a node's OS.",
384393
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}:reimage",
385394
"httpMethod": "POST",
@@ -408,6 +417,7 @@
408417
]
409418
},
410419
"start": {
420+
"deprecated": true,
411421
"description": "Starts a node.",
412422
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}:start",
413423
"httpMethod": "POST",
@@ -436,6 +446,7 @@
436446
]
437447
},
438448
"stop": {
449+
"deprecated": true,
439450
"description": "Stops a node, this operation is only available with single TPU nodes.",
440451
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}:stop",
441452
"httpMethod": "POST",
@@ -575,7 +586,7 @@
575586
"type": "string"
576587
},
577588
"returnPartialSuccess": {
578-
"description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.",
589+
"description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `\"projects/example/locations/-\"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.",
579590
"location": "query",
580591
"type": "boolean"
581592
}
@@ -591,8 +602,10 @@
591602
}
592603
},
593604
"tensorflowVersions": {
605+
"deprecated": true,
594606
"methods": {
595607
"get": {
608+
"deprecated": true,
596609
"description": "Gets TensorFlow Version.",
597610
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/tensorflowVersions/{tensorflowVersionsId}",
598611
"httpMethod": "GET",
@@ -618,6 +631,7 @@
618631
]
619632
},
620633
"list": {
634+
"deprecated": true,
621635
"description": "List TensorFlow versions supported by this API.",
622636
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/tensorflowVersions",
623637
"httpMethod": "GET",
@@ -670,10 +684,11 @@
670684
}
671685
}
672686
},
673-
"revision": "20251005",
687+
"revision": "20251130",
674688
"rootUrl": "https://tpu.googleapis.com/",
675689
"schemas": {
676690
"AcceleratorType": {
691+
"deprecated": true,
677692
"description": "A accelerator type that a Node can be configured with.",
678693
"id": "AcceleratorType",
679694
"properties": {
@@ -695,6 +710,7 @@
695710
"type": "object"
696711
},
697712
"ListAcceleratorTypesResponse": {
713+
"deprecated": true,
698714
"description": "Response for ListAcceleratorTypes.",
699715
"id": "ListAcceleratorTypesResponse",
700716
"properties": {
@@ -738,6 +754,7 @@
738754
"type": "object"
739755
},
740756
"ListNodesResponse": {
757+
"deprecated": true,
741758
"description": "Response for ListNodes.",
742759
"id": "ListNodesResponse",
743760
"properties": {
@@ -778,7 +795,7 @@
778795
"type": "array"
779796
},
780797
"unreachable": {
781-
"description": "Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections e.g. when attempting to list all resources across all supported locations.",
798+
"description": "Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections. For example, when attempting to list all resources across all supported locations.",
782799
"items": {
783800
"type": "string"
784801
},
@@ -788,6 +805,7 @@
788805
"type": "object"
789806
},
790807
"ListTensorFlowVersionsResponse": {
808+
"deprecated": true,
791809
"description": "Response for ListTensorFlowVersions.",
792810
"id": "ListTensorFlowVersionsResponse",
793811
"properties": {
@@ -847,6 +865,7 @@
847865
"type": "object"
848866
},
849867
"NetworkEndpoint": {
868+
"deprecated": true,
850869
"description": "A network endpoint over which a TPU worker can be reached.",
851870
"id": "NetworkEndpoint",
852871
"properties": {
@@ -863,6 +882,7 @@
863882
"type": "object"
864883
},
865884
"Node": {
885+
"deprecated": true,
866886
"description": "A TPU instance.",
867887
"id": "Node",
868888
"properties": {
@@ -1065,6 +1085,7 @@
10651085
"type": "object"
10661086
},
10671087
"OperationMetadata": {
1088+
"deprecated": true,
10681089
"description": "Metadata describing an Operation",
10691090
"id": "OperationMetadata",
10701091
"properties": {
@@ -1102,6 +1123,7 @@
11021123
"type": "object"
11031124
},
11041125
"ReimageNodeRequest": {
1126+
"deprecated": true,
11051127
"description": "Request for ReimageNode.",
11061128
"id": "ReimageNodeRequest",
11071129
"properties": {
@@ -1113,6 +1135,7 @@
11131135
"type": "object"
11141136
},
11151137
"SchedulingConfig": {
1138+
"deprecated": true,
11161139
"description": "Sets the scheduling options for this node.",
11171140
"id": "SchedulingConfig",
11181141
"properties": {
@@ -1128,6 +1151,7 @@
11281151
"type": "object"
11291152
},
11301153
"StartNodeRequest": {
1154+
"deprecated": true,
11311155
"description": "Request for StartNode.",
11321156
"id": "StartNodeRequest",
11331157
"properties": {},
@@ -1161,12 +1185,14 @@
11611185
"type": "object"
11621186
},
11631187
"StopNodeRequest": {
1188+
"deprecated": true,
11641189
"description": "Request for StopNode.",
11651190
"id": "StopNodeRequest",
11661191
"properties": {},
11671192
"type": "object"
11681193
},
11691194
"Symptom": {
1195+
"deprecated": true,
11701196
"description": "A Symptom instance.",
11711197
"id": "Symptom",
11721198
"properties": {
@@ -1209,6 +1235,7 @@
12091235
"type": "object"
12101236
},
12111237
"TensorFlowVersion": {
1238+
"deprecated": true,
12121239
"description": "A tensorflow version that a Node can be configured with.",
12131240
"id": "TensorFlowVersion",
12141241
"properties": {

0 commit comments

Comments
 (0)