Skip to content

Commit eabbf51

Browse files
feat(tpu): update the api
#### tpu:v2 The following keys were added: - schemas.AcceleratorConfig (Total Keys: 4) - schemas.AcceleratorType.properties.acceleratorConfigs (Total Keys: 2) - schemas.Node.properties.acceleratorConfig.$ref (Total Keys: 1)
1 parent 9901278 commit eabbf51

File tree

7 files changed

+74
-8
lines changed

7 files changed

+74
-8
lines changed

docs/dyn/tpu_v2.projects.locations.acceleratorTypes.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,12 @@ <h3>Method Details</h3>
107107
An object of the form:
108108

109109
{ # A accelerator type that a Node can be configured with.
110+
&quot;acceleratorConfigs&quot;: [ # The accelerator config.
111+
{ # A TPU accelerator configuration.
112+
&quot;topology&quot;: &quot;A String&quot;, # Required. Topology of TPU in chips.
113+
&quot;type&quot;: &quot;A String&quot;, # Required. Type of TPU.
114+
},
115+
],
110116
&quot;name&quot;: &quot;A String&quot;, # The resource name.
111117
&quot;type&quot;: &quot;A String&quot;, # the accelerator type.
112118
}</pre>
@@ -133,6 +139,12 @@ <h3>Method Details</h3>
133139
{ # Response for ListAcceleratorTypes.
134140
&quot;acceleratorTypes&quot;: [ # The listed nodes.
135141
{ # A accelerator type that a Node can be configured with.
142+
&quot;acceleratorConfigs&quot;: [ # The accelerator config.
143+
{ # A TPU accelerator configuration.
144+
&quot;topology&quot;: &quot;A String&quot;, # Required. Topology of TPU in chips.
145+
&quot;type&quot;: &quot;A String&quot;, # Required. Type of TPU.
146+
},
147+
],
136148
&quot;name&quot;: &quot;A String&quot;, # The resource name.
137149
&quot;type&quot;: &quot;A String&quot;, # the accelerator type.
138150
},

docs/dyn/tpu_v2.projects.locations.nodes.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@ <h3>Method Details</h3>
120120
The object takes the form of:
121121

122122
{ # A TPU instance.
123+
&quot;acceleratorConfig&quot;: { # A TPU accelerator configuration. # The AccleratorConfig for the TPU Node.
124+
&quot;topology&quot;: &quot;A String&quot;, # Required. Topology of TPU in chips.
125+
&quot;type&quot;: &quot;A String&quot;, # Required. Type of TPU.
126+
},
123127
&quot;acceleratorType&quot;: &quot;A String&quot;, # Required. The type of hardware accelerators associated with this node.
124128
&quot;apiVersion&quot;: &quot;A String&quot;, # Output only. The API version that created this Node.
125129
&quot;cidrBlock&quot;: &quot;A String&quot;, # The CIDR block that the TPU node will use when selecting an IP address. This CIDR block must be a /29 block; the Compute Engine networks API forbids a smaller block, and using a larger block would be wasteful (a node can only consume one IP address). Errors will occur if the CIDR block has already been used for a currently existing TPU node, the CIDR block conflicts with any subnetworks in the user&#x27;s provided network, or the provided network is peered with another network that is using that CIDR block.
@@ -264,6 +268,10 @@ <h3>Method Details</h3>
264268
An object of the form:
265269

266270
{ # A TPU instance.
271+
&quot;acceleratorConfig&quot;: { # A TPU accelerator configuration. # The AccleratorConfig for the TPU Node.
272+
&quot;topology&quot;: &quot;A String&quot;, # Required. Topology of TPU in chips.
273+
&quot;type&quot;: &quot;A String&quot;, # Required. Type of TPU.
274+
},
267275
&quot;acceleratorType&quot;: &quot;A String&quot;, # Required. The type of hardware accelerators associated with this node.
268276
&quot;apiVersion&quot;: &quot;A String&quot;, # Output only. The API version that created this Node.
269277
&quot;cidrBlock&quot;: &quot;A String&quot;, # The CIDR block that the TPU node will use when selecting an IP address. This CIDR block must be a /29 block; the Compute Engine networks API forbids a smaller block, and using a larger block would be wasteful (a node can only consume one IP address). Errors will occur if the CIDR block has already been used for a currently existing TPU node, the CIDR block conflicts with any subnetworks in the user&#x27;s provided network, or the provided network is peered with another network that is using that CIDR block.
@@ -391,6 +399,10 @@ <h3>Method Details</h3>
391399
&quot;nextPageToken&quot;: &quot;A String&quot;, # The next page token or empty if none.
392400
&quot;nodes&quot;: [ # The listed nodes.
393401
{ # A TPU instance.
402+
&quot;acceleratorConfig&quot;: { # A TPU accelerator configuration. # The AccleratorConfig for the TPU Node.
403+
&quot;topology&quot;: &quot;A String&quot;, # Required. Topology of TPU in chips.
404+
&quot;type&quot;: &quot;A String&quot;, # Required. Type of TPU.
405+
},
394406
&quot;acceleratorType&quot;: &quot;A String&quot;, # Required. The type of hardware accelerators associated with this node.
395407
&quot;apiVersion&quot;: &quot;A String&quot;, # Output only. The API version that created this Node.
396408
&quot;cidrBlock&quot;: &quot;A String&quot;, # The CIDR block that the TPU node will use when selecting an IP address. This CIDR block must be a /29 block; the Compute Engine networks API forbids a smaller block, and using a larger block would be wasteful (a node can only consume one IP address). Errors will occur if the CIDR block has already been used for a currently existing TPU node, the CIDR block conflicts with any subnetworks in the user&#x27;s provided network, or the provided network is peered with another network that is using that CIDR block.
@@ -485,6 +497,10 @@ <h3>Method Details</h3>
485497
The object takes the form of:
486498

487499
{ # A TPU instance.
500+
&quot;acceleratorConfig&quot;: { # A TPU accelerator configuration. # The AccleratorConfig for the TPU Node.
501+
&quot;topology&quot;: &quot;A String&quot;, # Required. Topology of TPU in chips.
502+
&quot;type&quot;: &quot;A String&quot;, # Required. Type of TPU.
503+
},
488504
&quot;acceleratorType&quot;: &quot;A String&quot;, # Required. The type of hardware accelerators associated with this node.
489505
&quot;apiVersion&quot;: &quot;A String&quot;, # Output only. The API version that created this Node.
490506
&quot;cidrBlock&quot;: &quot;A String&quot;, # The CIDR block that the TPU node will use when selecting an IP address. This CIDR block must be a /29 block; the Compute Engine networks API forbids a smaller block, and using a larger block would be wasteful (a node can only consume one IP address). Errors will occur if the CIDR block has already been used for a currently existing TPU node, the CIDR block conflicts with any subnetworks in the user&#x27;s provided network, or the provided network is peered with another network that is using that CIDR block.

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ <h3>Method Details</h3>
125125
&quot;validUntilDuration&quot;: &quot;A String&quot;, # A relative time after which resources should not be created. If the request cannot be fulfilled by this time the request will be failed.
126126
&quot;validUntilTime&quot;: &quot;A String&quot;, # An absolute time after which resources should not be created. If the request cannot be fulfilled by this time the request will be failed.
127127
},
128-
&quot;state&quot;: { # QueuedResourceState defines the details of the QueuedResource request. # Output only. State of the QueuedResource request
128+
&quot;state&quot;: { # QueuedResourceState defines the details of the QueuedResource request. # Output only. State of the QueuedResource request.
129129
&quot;acceptedData&quot;: { # Further data for the accepted state. # Further data for the accepted state.
130130
},
131131
&quot;activeData&quot;: { # Further data for the active state. # Further data for the active state.
@@ -331,7 +331,7 @@ <h3>Method Details</h3>
331331
&quot;validUntilDuration&quot;: &quot;A String&quot;, # A relative time after which resources should not be created. If the request cannot be fulfilled by this time the request will be failed.
332332
&quot;validUntilTime&quot;: &quot;A String&quot;, # An absolute time after which resources should not be created. If the request cannot be fulfilled by this time the request will be failed.
333333
},
334-
&quot;state&quot;: { # QueuedResourceState defines the details of the QueuedResource request. # Output only. State of the QueuedResource request
334+
&quot;state&quot;: { # QueuedResourceState defines the details of the QueuedResource request. # Output only. State of the QueuedResource request.
335335
&quot;acceptedData&quot;: { # Further data for the accepted state. # Further data for the accepted state.
336336
},
337337
&quot;activeData&quot;: { # Further data for the active state. # Further data for the active state.
@@ -476,7 +476,7 @@ <h3>Method Details</h3>
476476
&quot;validUntilDuration&quot;: &quot;A String&quot;, # A relative time after which resources should not be created. If the request cannot be fulfilled by this time the request will be failed.
477477
&quot;validUntilTime&quot;: &quot;A String&quot;, # An absolute time after which resources should not be created. If the request cannot be fulfilled by this time the request will be failed.
478478
},
479-
&quot;state&quot;: { # QueuedResourceState defines the details of the QueuedResource request. # Output only. State of the QueuedResource request
479+
&quot;state&quot;: { # QueuedResourceState defines the details of the QueuedResource request. # Output only. State of the QueuedResource request.
480480
&quot;acceptedData&quot;: { # Further data for the accepted state. # Further data for the accepted state.
481481
},
482482
&quot;activeData&quot;: { # Further data for the active state. # Further data for the active state.

googleapiclient/discovery_cache/documents/tpu.v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@
659659
}
660660
}
661661
},
662-
"revision": "20230209",
662+
"revision": "20230216",
663663
"rootUrl": "https://tpu.googleapis.com/",
664664
"schemas": {
665665
"AcceleratorType": {

googleapiclient/discovery_cache/documents/tpu.v1alpha1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@
669669
}
670670
}
671671
},
672-
"revision": "20230209",
672+
"revision": "20230216",
673673
"rootUrl": "https://tpu.googleapis.com/",
674674
"schemas": {
675675
"AcceleratorType": {

googleapiclient/discovery_cache/documents/tpu.v2.json

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,13 +721,47 @@
721721
}
722722
}
723723
},
724-
"revision": "20230209",
724+
"revision": "20230216",
725725
"rootUrl": "https://tpu.googleapis.com/",
726726
"schemas": {
727+
"AcceleratorConfig": {
728+
"description": "A TPU accelerator configuration.",
729+
"id": "AcceleratorConfig",
730+
"properties": {
731+
"topology": {
732+
"description": "Required. Topology of TPU in chips.",
733+
"type": "string"
734+
},
735+
"type": {
736+
"description": "Required. Type of TPU.",
737+
"enum": [
738+
"TYPE_UNSPECIFIED",
739+
"V2",
740+
"V3",
741+
"V4"
742+
],
743+
"enumDescriptions": [
744+
"Unspecified version.",
745+
"TPU v2.",
746+
"TPU v3.",
747+
"TPU v4."
748+
],
749+
"type": "string"
750+
}
751+
},
752+
"type": "object"
753+
},
727754
"AcceleratorType": {
728755
"description": "A accelerator type that a Node can be configured with.",
729756
"id": "AcceleratorType",
730757
"properties": {
758+
"acceleratorConfigs": {
759+
"description": "The accelerator config.",
760+
"items": {
761+
"$ref": "AcceleratorConfig"
762+
},
763+
"type": "array"
764+
},
731765
"name": {
732766
"description": "The resource name.",
733767
"type": "string"
@@ -1071,6 +1105,10 @@
10711105
"description": "A TPU instance.",
10721106
"id": "Node",
10731107
"properties": {
1108+
"acceleratorConfig": {
1109+
"$ref": "AcceleratorConfig",
1110+
"description": "The AccleratorConfig for the TPU Node."
1111+
},
10741112
"acceleratorType": {
10751113
"description": "Required. The type of hardware accelerators associated with this node.",
10761114
"type": "string"

googleapiclient/discovery_cache/documents/tpu.v2alpha1.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,7 @@
892892
}
893893
}
894894
},
895-
"revision": "20230209",
895+
"revision": "20230216",
896896
"rootUrl": "https://tpu.googleapis.com/",
897897
"schemas": {
898898
"AcceleratorConfig": {
@@ -1679,7 +1679,7 @@
16791679
},
16801680
"state": {
16811681
"$ref": "QueuedResourceState",
1682-
"description": "Output only. State of the QueuedResource request",
1682+
"description": "Output only. State of the QueuedResource request.",
16831683
"readOnly": true
16841684
},
16851685
"tpu": {

0 commit comments

Comments
 (0)