Skip to content

Commit e12c32c

Browse files
feat(tpu): update the api
#### tpu:v2 The following keys were added: - schemas.Node.properties.multisliceNode (Total Keys: 2) - schemas.Node.properties.queuedResource (Total Keys: 2) #### tpu:v2alpha1 The following keys were added: - schemas.QueuedResource.properties.spot.$ref (Total Keys: 1) - schemas.Spot (Total Keys: 2)
1 parent 264fa7f commit e12c32c

File tree

7 files changed

+50
-16
lines changed

7 files changed

+50
-16
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ <h3>Method Details</h3>
114114
},
115115
],
116116
&quot;name&quot;: &quot;A String&quot;, # The resource name.
117-
&quot;type&quot;: &quot;A String&quot;, # the accelerator type.
117+
&quot;type&quot;: &quot;A String&quot;, # The accelerator type.
118118
}</pre>
119119
</div>
120120

@@ -146,7 +146,7 @@ <h3>Method Details</h3>
146146
},
147147
],
148148
&quot;name&quot;: &quot;A String&quot;, # The resource name.
149-
&quot;type&quot;: &quot;A String&quot;, # the accelerator type.
149+
&quot;type&quot;: &quot;A String&quot;, # The accelerator type.
150150
},
151151
],
152152
&quot;nextPageToken&quot;: &quot;A String&quot;, # The next page token or empty if none.

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

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ <h3>Method Details</h3>
124124
&quot;topology&quot;: &quot;A String&quot;, # Required. Topology of TPU in chips.
125125
&quot;type&quot;: &quot;A String&quot;, # Required. Type of TPU.
126126
},
127-
&quot;acceleratorType&quot;: &quot;A String&quot;, # Required. The type of hardware accelerators associated with this node.
127+
&quot;acceleratorType&quot;: &quot;A String&quot;, # Optional. The type of hardware accelerators associated with this node.
128128
&quot;apiVersion&quot;: &quot;A String&quot;, # Output only. The API version that created this Node.
129129
&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.
130130
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the node was created.
@@ -144,6 +144,7 @@ <h3>Method Details</h3>
144144
&quot;metadata&quot;: { # Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script
145145
&quot;a_key&quot;: &quot;A String&quot;,
146146
},
147+
&quot;multisliceNode&quot;: True or False, # Output only. Whether the Node belongs to a Multislice group.
147148
&quot;name&quot;: &quot;A String&quot;, # Output only. Immutable. The name of the TPU.
148149
&quot;networkConfig&quot;: { # Network related configurations. # Network configurations for the TPU node.
149150
&quot;canIpForward&quot;: True or False, # Allows the TPU node to send and receive packets with non-matching destination or source IPs. This is required if you plan to use the TPU workers to forward routes.
@@ -160,6 +161,7 @@ <h3>Method Details</h3>
160161
&quot;port&quot;: 42, # The port of this network endpoint.
161162
},
162163
],
164+
&quot;queuedResource&quot;: &quot;A String&quot;, # Output only. The qualified name of the QueuedResource that requested this Node.
163165
&quot;runtimeVersion&quot;: &quot;A String&quot;, # Required. The runtime version running in the Node.
164166
&quot;schedulingConfig&quot;: { # Sets the scheduling options for this node. # The scheduling options for this node.
165167
&quot;preemptible&quot;: True or False, # Defines whether the node is preemptible.
@@ -272,7 +274,7 @@ <h3>Method Details</h3>
272274
&quot;topology&quot;: &quot;A String&quot;, # Required. Topology of TPU in chips.
273275
&quot;type&quot;: &quot;A String&quot;, # Required. Type of TPU.
274276
},
275-
&quot;acceleratorType&quot;: &quot;A String&quot;, # Required. The type of hardware accelerators associated with this node.
277+
&quot;acceleratorType&quot;: &quot;A String&quot;, # Optional. The type of hardware accelerators associated with this node.
276278
&quot;apiVersion&quot;: &quot;A String&quot;, # Output only. The API version that created this Node.
277279
&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.
278280
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the node was created.
@@ -292,6 +294,7 @@ <h3>Method Details</h3>
292294
&quot;metadata&quot;: { # Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script
293295
&quot;a_key&quot;: &quot;A String&quot;,
294296
},
297+
&quot;multisliceNode&quot;: True or False, # Output only. Whether the Node belongs to a Multislice group.
295298
&quot;name&quot;: &quot;A String&quot;, # Output only. Immutable. The name of the TPU.
296299
&quot;networkConfig&quot;: { # Network related configurations. # Network configurations for the TPU node.
297300
&quot;canIpForward&quot;: True or False, # Allows the TPU node to send and receive packets with non-matching destination or source IPs. This is required if you plan to use the TPU workers to forward routes.
@@ -308,6 +311,7 @@ <h3>Method Details</h3>
308311
&quot;port&quot;: 42, # The port of this network endpoint.
309312
},
310313
],
314+
&quot;queuedResource&quot;: &quot;A String&quot;, # Output only. The qualified name of the QueuedResource that requested this Node.
311315
&quot;runtimeVersion&quot;: &quot;A String&quot;, # Required. The runtime version running in the Node.
312316
&quot;schedulingConfig&quot;: { # Sets the scheduling options for this node. # The scheduling options for this node.
313317
&quot;preemptible&quot;: True or False, # Defines whether the node is preemptible.
@@ -403,7 +407,7 @@ <h3>Method Details</h3>
403407
&quot;topology&quot;: &quot;A String&quot;, # Required. Topology of TPU in chips.
404408
&quot;type&quot;: &quot;A String&quot;, # Required. Type of TPU.
405409
},
406-
&quot;acceleratorType&quot;: &quot;A String&quot;, # Required. The type of hardware accelerators associated with this node.
410+
&quot;acceleratorType&quot;: &quot;A String&quot;, # Optional. The type of hardware accelerators associated with this node.
407411
&quot;apiVersion&quot;: &quot;A String&quot;, # Output only. The API version that created this Node.
408412
&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.
409413
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the node was created.
@@ -423,6 +427,7 @@ <h3>Method Details</h3>
423427
&quot;metadata&quot;: { # Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script
424428
&quot;a_key&quot;: &quot;A String&quot;,
425429
},
430+
&quot;multisliceNode&quot;: True or False, # Output only. Whether the Node belongs to a Multislice group.
426431
&quot;name&quot;: &quot;A String&quot;, # Output only. Immutable. The name of the TPU.
427432
&quot;networkConfig&quot;: { # Network related configurations. # Network configurations for the TPU node.
428433
&quot;canIpForward&quot;: True or False, # Allows the TPU node to send and receive packets with non-matching destination or source IPs. This is required if you plan to use the TPU workers to forward routes.
@@ -439,6 +444,7 @@ <h3>Method Details</h3>
439444
&quot;port&quot;: 42, # The port of this network endpoint.
440445
},
441446
],
447+
&quot;queuedResource&quot;: &quot;A String&quot;, # Output only. The qualified name of the QueuedResource that requested this Node.
442448
&quot;runtimeVersion&quot;: &quot;A String&quot;, # Required. The runtime version running in the Node.
443449
&quot;schedulingConfig&quot;: { # Sets the scheduling options for this node. # The scheduling options for this node.
444450
&quot;preemptible&quot;: True or False, # Defines whether the node is preemptible.
@@ -501,7 +507,7 @@ <h3>Method Details</h3>
501507
&quot;topology&quot;: &quot;A String&quot;, # Required. Topology of TPU in chips.
502508
&quot;type&quot;: &quot;A String&quot;, # Required. Type of TPU.
503509
},
504-
&quot;acceleratorType&quot;: &quot;A String&quot;, # Required. The type of hardware accelerators associated with this node.
510+
&quot;acceleratorType&quot;: &quot;A String&quot;, # Optional. The type of hardware accelerators associated with this node.
505511
&quot;apiVersion&quot;: &quot;A String&quot;, # Output only. The API version that created this Node.
506512
&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.
507513
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the node was created.
@@ -521,6 +527,7 @@ <h3>Method Details</h3>
521527
&quot;metadata&quot;: { # Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script
522528
&quot;a_key&quot;: &quot;A String&quot;,
523529
},
530+
&quot;multisliceNode&quot;: True or False, # Output only. Whether the Node belongs to a Multislice group.
524531
&quot;name&quot;: &quot;A String&quot;, # Output only. Immutable. The name of the TPU.
525532
&quot;networkConfig&quot;: { # Network related configurations. # Network configurations for the TPU node.
526533
&quot;canIpForward&quot;: True or False, # Allows the TPU node to send and receive packets with non-matching destination or source IPs. This is required if you plan to use the TPU workers to forward routes.
@@ -537,6 +544,7 @@ <h3>Method Details</h3>
537544
&quot;port&quot;: 42, # The port of this network endpoint.
538545
},
539546
],
547+
&quot;queuedResource&quot;: &quot;A String&quot;, # Output only. The qualified name of the QueuedResource that requested this Node.
540548
&quot;runtimeVersion&quot;: &quot;A String&quot;, # Required. The runtime version running in the Node.
541549
&quot;schedulingConfig&quot;: { # Sets the scheduling options for this node. # The scheduling options for this node.
542550
&quot;preemptible&quot;: True or False, # Defines whether the node is preemptible.

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ <h3>Method Details</h3>
110110
{ # A QueuedResource represents a request for resources that will be placed in a queue and fulfilled when the necessary resources are available.
111111
&quot;bestEffort&quot;: { # BestEffort tier definition. # The BestEffort tier.
112112
},
113-
&quot;guaranteed&quot;: { # Guaranteed tier definition. # The Guaranteed tier
113+
&quot;guaranteed&quot;: { # Guaranteed tier definition. # The Guaranteed tier.
114114
&quot;minDuration&quot;: &quot;A String&quot;, # Optional. Defines the minimum duration of the guarantee. If specified, the requested resources will only be provisioned if they can be allocated for at least the given duration.
115115
&quot;reserved&quot;: True or False, # Optional. Specifies the request should be scheduled on reserved capacity.
116116
},
@@ -126,6 +126,8 @@ <h3>Method Details</h3>
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
},
128128
&quot;reservationName&quot;: &quot;A String&quot;, # Name of the reservation in which the resource should be provisioned. Format: projects/{project}/locations/{zone}/reservations/{reservation}
129+
&quot;spot&quot;: { # Spot tier definition. # Optional. The Spot tier.
130+
},
129131
&quot;state&quot;: { # QueuedResourceState defines the details of the QueuedResource request. # Output only. State of the QueuedResource request.
130132
&quot;acceptedData&quot;: { # Further data for the accepted state. # Further data for the accepted state.
131133
},
@@ -319,7 +321,7 @@ <h3>Method Details</h3>
319321
{ # A QueuedResource represents a request for resources that will be placed in a queue and fulfilled when the necessary resources are available.
320322
&quot;bestEffort&quot;: { # BestEffort tier definition. # The BestEffort tier.
321323
},
322-
&quot;guaranteed&quot;: { # Guaranteed tier definition. # The Guaranteed tier
324+
&quot;guaranteed&quot;: { # Guaranteed tier definition. # The Guaranteed tier.
323325
&quot;minDuration&quot;: &quot;A String&quot;, # Optional. Defines the minimum duration of the guarantee. If specified, the requested resources will only be provisioned if they can be allocated for at least the given duration.
324326
&quot;reserved&quot;: True or False, # Optional. Specifies the request should be scheduled on reserved capacity.
325327
},
@@ -335,6 +337,8 @@ <h3>Method Details</h3>
335337
&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.
336338
},
337339
&quot;reservationName&quot;: &quot;A String&quot;, # Name of the reservation in which the resource should be provisioned. Format: projects/{project}/locations/{zone}/reservations/{reservation}
340+
&quot;spot&quot;: { # Spot tier definition. # Optional. The Spot tier.
341+
},
338342
&quot;state&quot;: { # QueuedResourceState defines the details of the QueuedResource request. # Output only. State of the QueuedResource request.
339343
&quot;acceptedData&quot;: { # Further data for the accepted state. # Further data for the accepted state.
340344
},
@@ -466,7 +470,7 @@ <h3>Method Details</h3>
466470
{ # A QueuedResource represents a request for resources that will be placed in a queue and fulfilled when the necessary resources are available.
467471
&quot;bestEffort&quot;: { # BestEffort tier definition. # The BestEffort tier.
468472
},
469-
&quot;guaranteed&quot;: { # Guaranteed tier definition. # The Guaranteed tier
473+
&quot;guaranteed&quot;: { # Guaranteed tier definition. # The Guaranteed tier.
470474
&quot;minDuration&quot;: &quot;A String&quot;, # Optional. Defines the minimum duration of the guarantee. If specified, the requested resources will only be provisioned if they can be allocated for at least the given duration.
471475
&quot;reserved&quot;: True or False, # Optional. Specifies the request should be scheduled on reserved capacity.
472476
},
@@ -482,6 +486,8 @@ <h3>Method Details</h3>
482486
&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.
483487
},
484488
&quot;reservationName&quot;: &quot;A String&quot;, # Name of the reservation in which the resource should be provisioned. Format: projects/{project}/locations/{zone}/reservations/{reservation}
489+
&quot;spot&quot;: { # Spot tier definition. # Optional. The Spot tier.
490+
},
485491
&quot;state&quot;: { # QueuedResourceState defines the details of the QueuedResource request. # Output only. State of the QueuedResource request.
486492
&quot;acceptedData&quot;: { # Further data for the accepted state. # Further data for the accepted state.
487493
},

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": "20230621",
662+
"revision": "20230707",
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": "20230621",
672+
"revision": "20230707",
673673
"rootUrl": "https://tpu.googleapis.com/",
674674
"schemas": {
675675
"AcceleratorType": {

googleapiclient/discovery_cache/documents/tpu.v2.json

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,7 @@
721721
}
722722
}
723723
},
724-
"revision": "20230621",
724+
"revision": "20230707",
725725
"rootUrl": "https://tpu.googleapis.com/",
726726
"schemas": {
727727
"AcceleratorConfig": {
@@ -767,7 +767,7 @@
767767
"type": "string"
768768
},
769769
"type": {
770-
"description": "the accelerator type.",
770+
"description": "The accelerator type.",
771771
"type": "string"
772772
}
773773
},
@@ -1110,7 +1110,7 @@
11101110
"description": "The AccleratorConfig for the TPU Node."
11111111
},
11121112
"acceleratorType": {
1113-
"description": "Required. The type of hardware accelerators associated with this node.",
1113+
"description": "Optional. The type of hardware accelerators associated with this node.",
11141114
"type": "string"
11151115
},
11161116
"apiVersion": {
@@ -1196,6 +1196,11 @@
11961196
"description": "Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script",
11971197
"type": "object"
11981198
},
1199+
"multisliceNode": {
1200+
"description": "Output only. Whether the Node belongs to a Multislice group.",
1201+
"readOnly": true,
1202+
"type": "boolean"
1203+
},
11991204
"name": {
12001205
"description": "Output only. Immutable. The name of the TPU.",
12011206
"readOnly": true,
@@ -1213,6 +1218,11 @@
12131218
"readOnly": true,
12141219
"type": "array"
12151220
},
1221+
"queuedResource": {
1222+
"description": "Output only. The qualified name of the QueuedResource that requested this Node.",
1223+
"readOnly": true,
1224+
"type": "string"
1225+
},
12161226
"runtimeVersion": {
12171227
"description": "Required. The runtime version running in the Node.",
12181228
"type": "string"

googleapiclient/discovery_cache/documents/tpu.v2alpha1.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,7 @@
897897
}
898898
}
899899
},
900-
"revision": "20230621",
900+
"revision": "20230707",
901901
"rootUrl": "https://tpu.googleapis.com/",
902902
"schemas": {
903903
"AcceleratorConfig": {
@@ -1676,7 +1676,7 @@
16761676
},
16771677
"guaranteed": {
16781678
"$ref": "Guaranteed",
1679-
"description": "The Guaranteed tier"
1679+
"description": "The Guaranteed tier."
16801680
},
16811681
"name": {
16821682
"description": "Output only. Immutable. The name of the QueuedResource.",
@@ -1691,6 +1691,10 @@
16911691
"description": "Name of the reservation in which the resource should be provisioned. Format: projects/{project}/locations/{zone}/reservations/{reservation}",
16921692
"type": "string"
16931693
},
1694+
"spot": {
1695+
"$ref": "Spot",
1696+
"description": "Optional. The Spot tier."
1697+
},
16941698
"state": {
16951699
"$ref": "QueuedResourceState",
16961700
"description": "Output only. State of the QueuedResource request.",
@@ -1883,6 +1887,12 @@
18831887
},
18841888
"type": "object"
18851889
},
1890+
"Spot": {
1891+
"description": "Spot tier definition.",
1892+
"id": "Spot",
1893+
"properties": {},
1894+
"type": "object"
1895+
},
18861896
"StartNodeRequest": {
18871897
"description": "Request for StartNode.",
18881898
"id": "StartNodeRequest",

0 commit comments

Comments
 (0)