Skip to content

Commit ac29b4d

Browse files
feat(tpu): update the api
#### tpu:v2alpha1 The following keys were added: - resources.projects.resources.locations.resources.queuedResources.methods.delete.parameters.force (Total Keys: 2) - schemas.Node.properties.multisliceNode (Total Keys: 2)
1 parent c54c68a commit ac29b4d

10 files changed

+36
-18
lines changed

docs/dyn/tpu_v1.projects.locations.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ <h3>Method Details</h3>
126126
Returns:
127127
An object of the form:
128128

129-
{ # A resource that represents Google Cloud Platform location.
129+
{ # A resource that represents a Google Cloud location.
130130
&quot;displayName&quot;: &quot;A String&quot;, # The friendly name for this location, typically a nearby city name. For example, &quot;Tokyo&quot;.
131131
&quot;labels&quot;: { # Cross-service attributes for the location. For example {&quot;cloud.googleapis.com/region&quot;: &quot;us-east1&quot;}
132132
&quot;a_key&quot;: &quot;A String&quot;,
@@ -158,7 +158,7 @@ <h3>Method Details</h3>
158158

159159
{ # The response message for Locations.ListLocations.
160160
&quot;locations&quot;: [ # A list of locations that matches the specified filter in the request.
161-
{ # A resource that represents Google Cloud Platform location.
161+
{ # A resource that represents a Google Cloud location.
162162
&quot;displayName&quot;: &quot;A String&quot;, # The friendly name for this location, typically a nearby city name. For example, &quot;Tokyo&quot;.
163163
&quot;labels&quot;: { # Cross-service attributes for the location. For example {&quot;cloud.googleapis.com/region&quot;: &quot;us-east1&quot;}
164164
&quot;a_key&quot;: &quot;A String&quot;,

docs/dyn/tpu_v1alpha1.projects.locations.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ <h3>Method Details</h3>
126126
Returns:
127127
An object of the form:
128128

129-
{ # A resource that represents Google Cloud Platform location.
129+
{ # A resource that represents a Google Cloud location.
130130
&quot;displayName&quot;: &quot;A String&quot;, # The friendly name for this location, typically a nearby city name. For example, &quot;Tokyo&quot;.
131131
&quot;labels&quot;: { # Cross-service attributes for the location. For example {&quot;cloud.googleapis.com/region&quot;: &quot;us-east1&quot;}
132132
&quot;a_key&quot;: &quot;A String&quot;,
@@ -158,7 +158,7 @@ <h3>Method Details</h3>
158158

159159
{ # The response message for Locations.ListLocations.
160160
&quot;locations&quot;: [ # A list of locations that matches the specified filter in the request.
161-
{ # A resource that represents Google Cloud Platform location.
161+
{ # A resource that represents a Google Cloud location.
162162
&quot;displayName&quot;: &quot;A String&quot;, # The friendly name for this location, typically a nearby city name. For example, &quot;Tokyo&quot;.
163163
&quot;labels&quot;: { # Cross-service attributes for the location. For example {&quot;cloud.googleapis.com/region&quot;: &quot;us-east1&quot;}
164164
&quot;a_key&quot;: &quot;A String&quot;,

docs/dyn/tpu_v2.projects.locations.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ <h3>Method Details</h3>
156156
Returns:
157157
An object of the form:
158158

159-
{ # A resource that represents Google Cloud Platform location.
159+
{ # A resource that represents a Google Cloud location.
160160
&quot;displayName&quot;: &quot;A String&quot;, # The friendly name for this location, typically a nearby city name. For example, &quot;Tokyo&quot;.
161161
&quot;labels&quot;: { # Cross-service attributes for the location. For example {&quot;cloud.googleapis.com/region&quot;: &quot;us-east1&quot;}
162162
&quot;a_key&quot;: &quot;A String&quot;,
@@ -188,7 +188,7 @@ <h3>Method Details</h3>
188188

189189
{ # The response message for Locations.ListLocations.
190190
&quot;locations&quot;: [ # A list of locations that matches the specified filter in the request.
191-
{ # A resource that represents Google Cloud Platform location.
191+
{ # A resource that represents a Google Cloud location.
192192
&quot;displayName&quot;: &quot;A String&quot;, # The friendly name for this location, typically a nearby city name. For example, &quot;Tokyo&quot;.
193193
&quot;labels&quot;: { # Cross-service attributes for the location. For example {&quot;cloud.googleapis.com/region&quot;: &quot;us-east1&quot;}
194194
&quot;a_key&quot;: &quot;A String&quot;,

docs/dyn/tpu_v2alpha1.projects.locations.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ <h3>Method Details</h3>
161161
Returns:
162162
An object of the form:
163163

164-
{ # A resource that represents Google Cloud Platform location.
164+
{ # A resource that represents a Google Cloud location.
165165
&quot;displayName&quot;: &quot;A String&quot;, # The friendly name for this location, typically a nearby city name. For example, &quot;Tokyo&quot;.
166166
&quot;labels&quot;: { # Cross-service attributes for the location. For example {&quot;cloud.googleapis.com/region&quot;: &quot;us-east1&quot;}
167167
&quot;a_key&quot;: &quot;A String&quot;,
@@ -193,7 +193,7 @@ <h3>Method Details</h3>
193193

194194
{ # The response message for Locations.ListLocations.
195195
&quot;locations&quot;: [ # A list of locations that matches the specified filter in the request.
196-
{ # A resource that represents Google Cloud Platform location.
196+
{ # A resource that represents a Google Cloud location.
197197
&quot;displayName&quot;: &quot;A String&quot;, # The friendly name for this location, typically a nearby city name. For example, &quot;Tokyo&quot;.
198198
&quot;labels&quot;: { # Cross-service attributes for the location. For example {&quot;cloud.googleapis.com/region&quot;: &quot;us-east1&quot;}
199199
&quot;a_key&quot;: &quot;A String&quot;,

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ <h3>Method Details</h3>
147147
&quot;metadata&quot;: { # Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script
148148
&quot;a_key&quot;: &quot;A String&quot;,
149149
},
150+
&quot;multisliceNode&quot;: True or False, # Output only. Whether the Node belongs to a Multislice group.
150151
&quot;name&quot;: &quot;A String&quot;, # Output only. Immutable. The name of the TPU.
151152
&quot;networkConfig&quot;: { # Network related configurations. # Network configurations for the TPU node.
152153
&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.
@@ -298,6 +299,7 @@ <h3>Method Details</h3>
298299
&quot;metadata&quot;: { # Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script
299300
&quot;a_key&quot;: &quot;A String&quot;,
300301
},
302+
&quot;multisliceNode&quot;: True or False, # Output only. Whether the Node belongs to a Multislice group.
301303
&quot;name&quot;: &quot;A String&quot;, # Output only. Immutable. The name of the TPU.
302304
&quot;networkConfig&quot;: { # Network related configurations. # Network configurations for the TPU node.
303305
&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.
@@ -430,6 +432,7 @@ <h3>Method Details</h3>
430432
&quot;metadata&quot;: { # Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script
431433
&quot;a_key&quot;: &quot;A String&quot;,
432434
},
435+
&quot;multisliceNode&quot;: True or False, # Output only. Whether the Node belongs to a Multislice group.
433436
&quot;name&quot;: &quot;A String&quot;, # Output only. Immutable. The name of the TPU.
434437
&quot;networkConfig&quot;: { # Network related configurations. # Network configurations for the TPU node.
435438
&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.
@@ -529,6 +532,7 @@ <h3>Method Details</h3>
529532
&quot;metadata&quot;: { # Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script
530533
&quot;a_key&quot;: &quot;A String&quot;,
531534
},
535+
&quot;multisliceNode&quot;: True or False, # Output only. Whether the Node belongs to a Multislice group.
532536
&quot;name&quot;: &quot;A String&quot;, # Output only. Immutable. The name of the TPU.
533537
&quot;networkConfig&quot;: { # Network related configurations. # Network configurations for the TPU node.
534538
&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.

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ <h2>Instance Methods</h2>
8181
<code><a href="#create">create(parent, body=None, queuedResourceId=None, requestId=None, x__xgafv=None)</a></code></p>
8282
<p class="firstline">Creates a QueuedResource TPU instance.</p>
8383
<p class="toc_element">
84-
<code><a href="#delete">delete(name, requestId=None, x__xgafv=None)</a></code></p>
84+
<code><a href="#delete">delete(name, force=None, requestId=None, x__xgafv=None)</a></code></p>
8585
<p class="firstline">Deletes a QueuedResource TPU instance.</p>
8686
<p class="toc_element">
8787
<code><a href="#get">get(name, x__xgafv=None)</a></code></p>
@@ -182,6 +182,7 @@ <h3>Method Details</h3>
182182
&quot;metadata&quot;: { # Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script
183183
&quot;a_key&quot;: &quot;A String&quot;,
184184
},
185+
&quot;multisliceNode&quot;: True or False, # Output only. Whether the Node belongs to a Multislice group.
185186
&quot;name&quot;: &quot;A String&quot;, # Output only. Immutable. The name of the TPU.
186187
&quot;networkConfig&quot;: { # Network related configurations. # Network configurations for the TPU node.
187188
&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.
@@ -265,11 +266,12 @@ <h3>Method Details</h3>
265266
</div>
266267

267268
<div class="method">
268-
<code class="details" id="delete">delete(name, requestId=None, x__xgafv=None)</code>
269+
<code class="details" id="delete">delete(name, force=None, requestId=None, x__xgafv=None)</code>
269270
<pre>Deletes a QueuedResource TPU instance.
270271

271272
Args:
272273
name: string, Required. The resource name. (required)
274+
force: boolean, If set to true, all running nodes belonging to this queued resource will be deleted first and then the queued resource will be deleted. Otherwise (i.e. force=false), the queued resource will only be deleted if its nodes have already been deleted or the queued resource is in the ACCEPTED, FAILED, or SUSPENDED state.
273275
requestId: string, Idempotent request UUID.
274276
x__xgafv: string, V1 error format.
275277
Allowed values
@@ -389,6 +391,7 @@ <h3>Method Details</h3>
389391
&quot;metadata&quot;: { # Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script
390392
&quot;a_key&quot;: &quot;A String&quot;,
391393
},
394+
&quot;multisliceNode&quot;: True or False, # Output only. Whether the Node belongs to a Multislice group.
392395
&quot;name&quot;: &quot;A String&quot;, # Output only. Immutable. The name of the TPU.
393396
&quot;networkConfig&quot;: { # Network related configurations. # Network configurations for the TPU node.
394397
&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.
@@ -535,6 +538,7 @@ <h3>Method Details</h3>
535538
&quot;metadata&quot;: { # Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script
536539
&quot;a_key&quot;: &quot;A String&quot;,
537540
},
541+
&quot;multisliceNode&quot;: True or False, # Output only. Whether the Node belongs to a Multislice group.
538542
&quot;name&quot;: &quot;A String&quot;, # Output only. Immutable. The name of the TPU.
539543
&quot;networkConfig&quot;: { # Network related configurations. # Network configurations for the TPU node.
540544
&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.

googleapiclient/discovery_cache/documents/tpu.v1.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@
659659
}
660660
}
661661
},
662-
"revision": "20230410",
662+
"revision": "20230512",
663663
"rootUrl": "https://tpu.googleapis.com/",
664664
"schemas": {
665665
"AcceleratorType": {
@@ -795,7 +795,7 @@
795795
"type": "object"
796796
},
797797
"Location": {
798-
"description": "A resource that represents Google Cloud Platform location.",
798+
"description": "A resource that represents a Google Cloud location.",
799799
"id": "Location",
800800
"properties": {
801801
"displayName": {

googleapiclient/discovery_cache/documents/tpu.v1alpha1.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@
669669
}
670670
}
671671
},
672-
"revision": "20230410",
672+
"revision": "20230512",
673673
"rootUrl": "https://tpu.googleapis.com/",
674674
"schemas": {
675675
"AcceleratorType": {
@@ -805,7 +805,7 @@
805805
"type": "object"
806806
},
807807
"Location": {
808-
"description": "A resource that represents Google Cloud Platform location.",
808+
"description": "A resource that represents a Google Cloud location.",
809809
"id": "Location",
810810
"properties": {
811811
"displayName": {

googleapiclient/discovery_cache/documents/tpu.v2.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,7 @@
721721
}
722722
}
723723
},
724-
"revision": "20230410",
724+
"revision": "20230512",
725725
"rootUrl": "https://tpu.googleapis.com/",
726726
"schemas": {
727727
"AcceleratorConfig": {
@@ -1025,7 +1025,7 @@
10251025
"type": "object"
10261026
},
10271027
"Location": {
1028-
"description": "A resource that represents Google Cloud Platform location.",
1028+
"description": "A resource that represents a Google Cloud location.",
10291029
"id": "Location",
10301030
"properties": {
10311031
"displayName": {

googleapiclient/discovery_cache/documents/tpu.v2alpha1.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,11 @@
728728
"name"
729729
],
730730
"parameters": {
731+
"force": {
732+
"description": "If set to true, all running nodes belonging to this queued resource will be deleted first and then the queued resource will be deleted. Otherwise (i.e. force=false), the queued resource will only be deleted if its nodes have already been deleted or the queued resource is in the ACCEPTED, FAILED, or SUSPENDED state.",
733+
"location": "query",
734+
"type": "boolean"
735+
},
731736
"name": {
732737
"description": "Required. The resource name.",
733738
"location": "path",
@@ -892,7 +897,7 @@
892897
}
893898
}
894899
},
895-
"revision": "20230410",
900+
"revision": "20230512",
896901
"rootUrl": "https://tpu.googleapis.com/",
897902
"schemas": {
898903
"AcceleratorConfig": {
@@ -1295,7 +1300,7 @@
12951300
"type": "object"
12961301
},
12971302
"Location": {
1298-
"description": "A resource that represents Google Cloud Platform location.",
1303+
"description": "A resource that represents a Google Cloud location.",
12991304
"id": "Location",
13001305
"properties": {
13011306
"displayName": {
@@ -1464,6 +1469,11 @@
14641469
"description": "Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script",
14651470
"type": "object"
14661471
},
1472+
"multisliceNode": {
1473+
"description": "Output only. Whether the Node belongs to a Multislice group.",
1474+
"readOnly": true,
1475+
"type": "boolean"
1476+
},
14671477
"name": {
14681478
"description": "Output only. Immutable. The name of the TPU.",
14691479
"readOnly": true,

0 commit comments

Comments
 (0)