blob: 01c80d30adc9ee0d9c7b6086258ca37c792b624f [file] [log] [blame]
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="tpu_v2alpha1.html">Cloud TPU API</a> . <a href="tpu_v2alpha1.projects.html">projects</a> . <a href="tpu_v2alpha1.projects.locations.html">locations</a> . <a href="tpu_v2alpha1.projects.locations.nodes.html">nodes</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
81 <code><a href="#create">create(parent, body=None, nodeId=None, x__xgafv=None)</a></code></p>
82<p class="firstline">Creates a node.</p>
83<p class="toc_element">
84 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
85<p class="firstline">Deletes a node.</p>
86<p class="toc_element">
87 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
88<p class="firstline">Gets the details of a node.</p>
89<p class="toc_element">
90 <code><a href="#getGuestAttributes">getGuestAttributes(name, body=None, x__xgafv=None)</a></code></p>
91<p class="firstline">Retrieves the guest attributes for the node.</p>
92<p class="toc_element">
93 <code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
94<p class="firstline">Lists nodes.</p>
95<p class="toc_element">
96 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
97<p class="firstline">Retrieves the next page of results.</p>
98<p class="toc_element">
99 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
100<p class="firstline">Updates the configurations of a node.</p>
101<p class="toc_element">
102 <code><a href="#start">start(name, body=None, x__xgafv=None)</a></code></p>
103<p class="firstline">Starts a node.</p>
104<p class="toc_element">
105 <code><a href="#stop">stop(name, body=None, x__xgafv=None)</a></code></p>
106<p class="firstline">Stops a node. This operation is only available with single TPU nodes.</p>
107<h3>Method Details</h3>
108<div class="method">
109 <code class="details" id="close">close()</code>
110 <pre>Close httplib2 connections.</pre>
111</div>
112
113<div class="method">
114 <code class="details" id="create">create(parent, body=None, nodeId=None, x__xgafv=None)</code>
115 <pre>Creates a node.
116
117Args:
118 parent: string, Required. The parent resource name. (required)
119 body: object, The request body.
120 The object takes the form of:
121
122{ # A TPU instance.
123 &quot;acceleratorType&quot;: &quot;A String&quot;, # Required. The type of hardware accelerators associated with this node.
124 &quot;apiVersion&quot;: &quot;A String&quot;, # Output only. The API version that created this Node.
125 &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.
126 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the node was created.
127 &quot;dataDisks&quot;: [ # The additional data disks for the Node.
128 { # A node-attached disk resource. Next ID: 8;
129 &quot;mode&quot;: &quot;A String&quot;, # The mode in which to attach this disk. If not specified, the default is READ_WRITE mode. Only applicable to data_disks.
130 &quot;sourceDisk&quot;: &quot;A String&quot;, # Specifies the full path to an existing disk. For example: &quot;projects/my-project/zones/us-central1-c/disks/my-disk&quot;.
131 },
132 ],
133 &quot;description&quot;: &quot;A String&quot;, # The user-supplied description of the TPU. Maximum of 512 characters.
134 &quot;health&quot;: &quot;A String&quot;, # The health status of the TPU node.
135 &quot;healthDescription&quot;: &quot;A String&quot;, # Output only. If this field is populated, it contains a description of why the TPU Node is unhealthy.
136 &quot;id&quot;: &quot;A String&quot;, # Output only. The unique identifier for the TPU Node.
137 &quot;labels&quot;: { # Resource labels to represent user-provided metadata.
138 &quot;a_key&quot;: &quot;A String&quot;,
139 },
140 &quot;metadata&quot;: { # Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script
141 &quot;a_key&quot;: &quot;A String&quot;,
142 },
143 &quot;name&quot;: &quot;A String&quot;, # Output only. Immutable. The name of the TPU.
144 &quot;networkConfig&quot;: { # Network related configurations. # Network configurations for the TPU node.
145 &quot;enableExternalIps&quot;: True or False, # Indicates that external IP addresses would be associated with the TPU workers. If set to false, the specified subnetwork or network should have Private Google Access enabled.
146 &quot;network&quot;: &quot;A String&quot;, # The name of the network for the TPU node. It must be a preexisting Google Compute Engine network. If none is provided, &quot;default&quot; will be used.
147 &quot;subnetwork&quot;: &quot;A String&quot;, # The name of the subnetwork for the TPU node. It must be a preexisting Google Compute Engine subnetwork. If none is provided, &quot;default&quot; will be used.
148 },
149 &quot;networkEndpoints&quot;: [ # Output only. The network endpoints where TPU workers can be accessed and sent work. It is recommended that runtime clients of the node reach out to the 0th entry in this map first.
150 { # A network endpoint over which a TPU worker can be reached.
151 &quot;accessConfig&quot;: { # An access config attached to the TPU worker. # The access config for the TPU worker.
152 &quot;externalIp&quot;: &quot;A String&quot;, # Output only. An external IP address associated with the TPU worker.
153 },
154 &quot;ipAddress&quot;: &quot;A String&quot;, # The internal IP address of this network endpoint.
155 &quot;port&quot;: 42, # The port of this network endpoint.
156 },
157 ],
158 &quot;runtimeVersion&quot;: &quot;A String&quot;, # Required. The runtime version running in the Node.
159 &quot;schedulingConfig&quot;: { # Sets the scheduling options for this node. # The scheduling options for this node.
160 &quot;preemptible&quot;: True or False, # Defines whether the node is preemptible.
161 &quot;reserved&quot;: True or False, # Whether the node is created under a reservation.
162 },
163 &quot;serviceAccount&quot;: { # A service account. # The Google Cloud Platform Service Account to be used by the TPU node VMs. If None is specified, the default compute service account will be used.
164 &quot;email&quot;: &quot;A String&quot;, # Email address of the service account. If empty, default Compute service account will be used.
165 &quot;scope&quot;: [ # The list of scopes to be made available for this service account. If empty, access to all Cloud APIs will be allowed.
166 &quot;A String&quot;,
167 ],
168 },
169 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state for the TPU Node.
170 &quot;symptoms&quot;: [ # Output only. The Symptoms that have occurred to the TPU Node.
171 { # A Symptom instance.
172 &quot;createTime&quot;: &quot;A String&quot;, # Timestamp when the Symptom is created.
173 &quot;details&quot;: &quot;A String&quot;, # Detailed information of the current Symptom.
174 &quot;symptomType&quot;: &quot;A String&quot;, # Type of the Symptom.
175 &quot;workerId&quot;: &quot;A String&quot;, # A string used to uniquely distinguish a worker within a TPU node.
176 },
177 ],
178 &quot;tags&quot;: [ # Tags to apply to the TPU Node. Tags are used to identify valid sources or targets for network firewalls.
179 &quot;A String&quot;,
180 ],
181}
182
183 nodeId: string, The unqualified resource name.
184 x__xgafv: string, V1 error format.
185 Allowed values
186 1 - v1 error format
187 2 - v2 error format
188
189Returns:
190 An object of the form:
191
192 { # This resource represents a long-running operation that is the result of a network API call.
193 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
194 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
195 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
196 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
197 {
198 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
199 },
200 ],
201 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
202 },
203 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
204 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
205 },
206 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
207 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
208 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
209 },
210}</pre>
211</div>
212
213<div class="method">
214 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
215 <pre>Deletes a node.
216
217Args:
218 name: string, Required. The resource name. (required)
219 x__xgafv: string, V1 error format.
220 Allowed values
221 1 - v1 error format
222 2 - v2 error format
223
224Returns:
225 An object of the form:
226
227 { # This resource represents a long-running operation that is the result of a network API call.
228 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
229 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
230 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
231 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
232 {
233 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
234 },
235 ],
236 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
237 },
238 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
239 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
240 },
241 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
242 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
243 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
244 },
245}</pre>
246</div>
247
248<div class="method">
249 <code class="details" id="get">get(name, x__xgafv=None)</code>
250 <pre>Gets the details of a node.
251
252Args:
253 name: string, Required. The resource name. (required)
254 x__xgafv: string, V1 error format.
255 Allowed values
256 1 - v1 error format
257 2 - v2 error format
258
259Returns:
260 An object of the form:
261
262 { # A TPU instance.
263 &quot;acceleratorType&quot;: &quot;A String&quot;, # Required. The type of hardware accelerators associated with this node.
264 &quot;apiVersion&quot;: &quot;A String&quot;, # Output only. The API version that created this Node.
265 &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.
266 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the node was created.
267 &quot;dataDisks&quot;: [ # The additional data disks for the Node.
268 { # A node-attached disk resource. Next ID: 8;
269 &quot;mode&quot;: &quot;A String&quot;, # The mode in which to attach this disk. If not specified, the default is READ_WRITE mode. Only applicable to data_disks.
270 &quot;sourceDisk&quot;: &quot;A String&quot;, # Specifies the full path to an existing disk. For example: &quot;projects/my-project/zones/us-central1-c/disks/my-disk&quot;.
271 },
272 ],
273 &quot;description&quot;: &quot;A String&quot;, # The user-supplied description of the TPU. Maximum of 512 characters.
274 &quot;health&quot;: &quot;A String&quot;, # The health status of the TPU node.
275 &quot;healthDescription&quot;: &quot;A String&quot;, # Output only. If this field is populated, it contains a description of why the TPU Node is unhealthy.
276 &quot;id&quot;: &quot;A String&quot;, # Output only. The unique identifier for the TPU Node.
277 &quot;labels&quot;: { # Resource labels to represent user-provided metadata.
278 &quot;a_key&quot;: &quot;A String&quot;,
279 },
280 &quot;metadata&quot;: { # Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script
281 &quot;a_key&quot;: &quot;A String&quot;,
282 },
283 &quot;name&quot;: &quot;A String&quot;, # Output only. Immutable. The name of the TPU.
284 &quot;networkConfig&quot;: { # Network related configurations. # Network configurations for the TPU node.
285 &quot;enableExternalIps&quot;: True or False, # Indicates that external IP addresses would be associated with the TPU workers. If set to false, the specified subnetwork or network should have Private Google Access enabled.
286 &quot;network&quot;: &quot;A String&quot;, # The name of the network for the TPU node. It must be a preexisting Google Compute Engine network. If none is provided, &quot;default&quot; will be used.
287 &quot;subnetwork&quot;: &quot;A String&quot;, # The name of the subnetwork for the TPU node. It must be a preexisting Google Compute Engine subnetwork. If none is provided, &quot;default&quot; will be used.
288 },
289 &quot;networkEndpoints&quot;: [ # Output only. The network endpoints where TPU workers can be accessed and sent work. It is recommended that runtime clients of the node reach out to the 0th entry in this map first.
290 { # A network endpoint over which a TPU worker can be reached.
291 &quot;accessConfig&quot;: { # An access config attached to the TPU worker. # The access config for the TPU worker.
292 &quot;externalIp&quot;: &quot;A String&quot;, # Output only. An external IP address associated with the TPU worker.
293 },
294 &quot;ipAddress&quot;: &quot;A String&quot;, # The internal IP address of this network endpoint.
295 &quot;port&quot;: 42, # The port of this network endpoint.
296 },
297 ],
298 &quot;runtimeVersion&quot;: &quot;A String&quot;, # Required. The runtime version running in the Node.
299 &quot;schedulingConfig&quot;: { # Sets the scheduling options for this node. # The scheduling options for this node.
300 &quot;preemptible&quot;: True or False, # Defines whether the node is preemptible.
301 &quot;reserved&quot;: True or False, # Whether the node is created under a reservation.
302 },
303 &quot;serviceAccount&quot;: { # A service account. # The Google Cloud Platform Service Account to be used by the TPU node VMs. If None is specified, the default compute service account will be used.
304 &quot;email&quot;: &quot;A String&quot;, # Email address of the service account. If empty, default Compute service account will be used.
305 &quot;scope&quot;: [ # The list of scopes to be made available for this service account. If empty, access to all Cloud APIs will be allowed.
306 &quot;A String&quot;,
307 ],
308 },
309 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state for the TPU Node.
310 &quot;symptoms&quot;: [ # Output only. The Symptoms that have occurred to the TPU Node.
311 { # A Symptom instance.
312 &quot;createTime&quot;: &quot;A String&quot;, # Timestamp when the Symptom is created.
313 &quot;details&quot;: &quot;A String&quot;, # Detailed information of the current Symptom.
314 &quot;symptomType&quot;: &quot;A String&quot;, # Type of the Symptom.
315 &quot;workerId&quot;: &quot;A String&quot;, # A string used to uniquely distinguish a worker within a TPU node.
316 },
317 ],
318 &quot;tags&quot;: [ # Tags to apply to the TPU Node. Tags are used to identify valid sources or targets for network firewalls.
319 &quot;A String&quot;,
320 ],
321}</pre>
322</div>
323
324<div class="method">
325 <code class="details" id="getGuestAttributes">getGuestAttributes(name, body=None, x__xgafv=None)</code>
326 <pre>Retrieves the guest attributes for the node.
327
328Args:
329 name: string, Required. The resource name. (required)
330 body: object, The request body.
331 The object takes the form of:
332
333{ # Request for GetGuestAttributes.
334 &quot;queryPath&quot;: &quot;A String&quot;, # The guest attributes path to be queried.
335 &quot;workerIds&quot;: [ # The 0-based worker ID. If it is empty, all workers&#x27; GuestAttributes will be returned.
336 &quot;A String&quot;,
337 ],
338}
339
340 x__xgafv: string, V1 error format.
341 Allowed values
342 1 - v1 error format
343 2 - v2 error format
344
345Returns:
346 An object of the form:
347
348 { # Response for GetGuestAttributes.
349 &quot;guestAttributes&quot;: [ # The guest attributes for the TPU workers.
350 { # A guest attributes.
351 &quot;queryPath&quot;: &quot;A String&quot;, # The path to be queried. This can be the default namespace (&#x27;/&#x27;) or a nested namespace (&#x27;/\/&#x27;) or a specified key (&#x27;/\/\&#x27;)
352 &quot;queryValue&quot;: { # Array of guest attribute namespace/key/value tuples. # The value of the requested queried path.
353 &quot;items&quot;: [ # The list of guest attributes entries.
354 { # A guest attributes namespace/key/value entry.
355 &quot;key&quot;: &quot;A String&quot;, # Key for the guest attribute entry.
356 &quot;namespace&quot;: &quot;A String&quot;, # Namespace for the guest attribute entry.
357 &quot;value&quot;: &quot;A String&quot;, # Value for the guest attribute entry.
358 },
359 ],
360 },
361 },
362 ],
363}</pre>
364</div>
365
366<div class="method">
367 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
368 <pre>Lists nodes.
369
370Args:
371 parent: string, Required. The parent resource name. (required)
372 pageSize: integer, The maximum number of items to return.
373 pageToken: string, The next_page_token value returned from a previous List request, if any.
374 x__xgafv: string, V1 error format.
375 Allowed values
376 1 - v1 error format
377 2 - v2 error format
378
379Returns:
380 An object of the form:
381
382 { # Response for ListNodes.
383 &quot;nextPageToken&quot;: &quot;A String&quot;, # The next page token or empty if none.
384 &quot;nodes&quot;: [ # The listed nodes.
385 { # A TPU instance.
386 &quot;acceleratorType&quot;: &quot;A String&quot;, # Required. The type of hardware accelerators associated with this node.
387 &quot;apiVersion&quot;: &quot;A String&quot;, # Output only. The API version that created this Node.
388 &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.
389 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the node was created.
390 &quot;dataDisks&quot;: [ # The additional data disks for the Node.
391 { # A node-attached disk resource. Next ID: 8;
392 &quot;mode&quot;: &quot;A String&quot;, # The mode in which to attach this disk. If not specified, the default is READ_WRITE mode. Only applicable to data_disks.
393 &quot;sourceDisk&quot;: &quot;A String&quot;, # Specifies the full path to an existing disk. For example: &quot;projects/my-project/zones/us-central1-c/disks/my-disk&quot;.
394 },
395 ],
396 &quot;description&quot;: &quot;A String&quot;, # The user-supplied description of the TPU. Maximum of 512 characters.
397 &quot;health&quot;: &quot;A String&quot;, # The health status of the TPU node.
398 &quot;healthDescription&quot;: &quot;A String&quot;, # Output only. If this field is populated, it contains a description of why the TPU Node is unhealthy.
399 &quot;id&quot;: &quot;A String&quot;, # Output only. The unique identifier for the TPU Node.
400 &quot;labels&quot;: { # Resource labels to represent user-provided metadata.
401 &quot;a_key&quot;: &quot;A String&quot;,
402 },
403 &quot;metadata&quot;: { # Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script
404 &quot;a_key&quot;: &quot;A String&quot;,
405 },
406 &quot;name&quot;: &quot;A String&quot;, # Output only. Immutable. The name of the TPU.
407 &quot;networkConfig&quot;: { # Network related configurations. # Network configurations for the TPU node.
408 &quot;enableExternalIps&quot;: True or False, # Indicates that external IP addresses would be associated with the TPU workers. If set to false, the specified subnetwork or network should have Private Google Access enabled.
409 &quot;network&quot;: &quot;A String&quot;, # The name of the network for the TPU node. It must be a preexisting Google Compute Engine network. If none is provided, &quot;default&quot; will be used.
410 &quot;subnetwork&quot;: &quot;A String&quot;, # The name of the subnetwork for the TPU node. It must be a preexisting Google Compute Engine subnetwork. If none is provided, &quot;default&quot; will be used.
411 },
412 &quot;networkEndpoints&quot;: [ # Output only. The network endpoints where TPU workers can be accessed and sent work. It is recommended that runtime clients of the node reach out to the 0th entry in this map first.
413 { # A network endpoint over which a TPU worker can be reached.
414 &quot;accessConfig&quot;: { # An access config attached to the TPU worker. # The access config for the TPU worker.
415 &quot;externalIp&quot;: &quot;A String&quot;, # Output only. An external IP address associated with the TPU worker.
416 },
417 &quot;ipAddress&quot;: &quot;A String&quot;, # The internal IP address of this network endpoint.
418 &quot;port&quot;: 42, # The port of this network endpoint.
419 },
420 ],
421 &quot;runtimeVersion&quot;: &quot;A String&quot;, # Required. The runtime version running in the Node.
422 &quot;schedulingConfig&quot;: { # Sets the scheduling options for this node. # The scheduling options for this node.
423 &quot;preemptible&quot;: True or False, # Defines whether the node is preemptible.
424 &quot;reserved&quot;: True or False, # Whether the node is created under a reservation.
425 },
426 &quot;serviceAccount&quot;: { # A service account. # The Google Cloud Platform Service Account to be used by the TPU node VMs. If None is specified, the default compute service account will be used.
427 &quot;email&quot;: &quot;A String&quot;, # Email address of the service account. If empty, default Compute service account will be used.
428 &quot;scope&quot;: [ # The list of scopes to be made available for this service account. If empty, access to all Cloud APIs will be allowed.
429 &quot;A String&quot;,
430 ],
431 },
432 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state for the TPU Node.
433 &quot;symptoms&quot;: [ # Output only. The Symptoms that have occurred to the TPU Node.
434 { # A Symptom instance.
435 &quot;createTime&quot;: &quot;A String&quot;, # Timestamp when the Symptom is created.
436 &quot;details&quot;: &quot;A String&quot;, # Detailed information of the current Symptom.
437 &quot;symptomType&quot;: &quot;A String&quot;, # Type of the Symptom.
438 &quot;workerId&quot;: &quot;A String&quot;, # A string used to uniquely distinguish a worker within a TPU node.
439 },
440 ],
441 &quot;tags&quot;: [ # Tags to apply to the TPU Node. Tags are used to identify valid sources or targets for network firewalls.
442 &quot;A String&quot;,
443 ],
444 },
445 ],
446 &quot;unreachable&quot;: [ # Locations that could not be reached.
447 &quot;A String&quot;,
448 ],
449}</pre>
450</div>
451
452<div class="method">
453 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
454 <pre>Retrieves the next page of results.
455
456Args:
457 previous_request: The request for the previous page. (required)
458 previous_response: The response from the request for the previous page. (required)
459
460Returns:
461 A request object that you can call &#x27;execute()&#x27; on to request the next
462 page. Returns None if there are no more items in the collection.
463 </pre>
464</div>
465
466<div class="method">
467 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
468 <pre>Updates the configurations of a node.
469
470Args:
471 name: string, Output only. Immutable. The name of the TPU. (required)
472 body: object, The request body.
473 The object takes the form of:
474
475{ # A TPU instance.
476 &quot;acceleratorType&quot;: &quot;A String&quot;, # Required. The type of hardware accelerators associated with this node.
477 &quot;apiVersion&quot;: &quot;A String&quot;, # Output only. The API version that created this Node.
478 &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.
479 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the node was created.
480 &quot;dataDisks&quot;: [ # The additional data disks for the Node.
481 { # A node-attached disk resource. Next ID: 8;
482 &quot;mode&quot;: &quot;A String&quot;, # The mode in which to attach this disk. If not specified, the default is READ_WRITE mode. Only applicable to data_disks.
483 &quot;sourceDisk&quot;: &quot;A String&quot;, # Specifies the full path to an existing disk. For example: &quot;projects/my-project/zones/us-central1-c/disks/my-disk&quot;.
484 },
485 ],
486 &quot;description&quot;: &quot;A String&quot;, # The user-supplied description of the TPU. Maximum of 512 characters.
487 &quot;health&quot;: &quot;A String&quot;, # The health status of the TPU node.
488 &quot;healthDescription&quot;: &quot;A String&quot;, # Output only. If this field is populated, it contains a description of why the TPU Node is unhealthy.
489 &quot;id&quot;: &quot;A String&quot;, # Output only. The unique identifier for the TPU Node.
490 &quot;labels&quot;: { # Resource labels to represent user-provided metadata.
491 &quot;a_key&quot;: &quot;A String&quot;,
492 },
493 &quot;metadata&quot;: { # Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script
494 &quot;a_key&quot;: &quot;A String&quot;,
495 },
496 &quot;name&quot;: &quot;A String&quot;, # Output only. Immutable. The name of the TPU.
497 &quot;networkConfig&quot;: { # Network related configurations. # Network configurations for the TPU node.
498 &quot;enableExternalIps&quot;: True or False, # Indicates that external IP addresses would be associated with the TPU workers. If set to false, the specified subnetwork or network should have Private Google Access enabled.
499 &quot;network&quot;: &quot;A String&quot;, # The name of the network for the TPU node. It must be a preexisting Google Compute Engine network. If none is provided, &quot;default&quot; will be used.
500 &quot;subnetwork&quot;: &quot;A String&quot;, # The name of the subnetwork for the TPU node. It must be a preexisting Google Compute Engine subnetwork. If none is provided, &quot;default&quot; will be used.
501 },
502 &quot;networkEndpoints&quot;: [ # Output only. The network endpoints where TPU workers can be accessed and sent work. It is recommended that runtime clients of the node reach out to the 0th entry in this map first.
503 { # A network endpoint over which a TPU worker can be reached.
504 &quot;accessConfig&quot;: { # An access config attached to the TPU worker. # The access config for the TPU worker.
505 &quot;externalIp&quot;: &quot;A String&quot;, # Output only. An external IP address associated with the TPU worker.
506 },
507 &quot;ipAddress&quot;: &quot;A String&quot;, # The internal IP address of this network endpoint.
508 &quot;port&quot;: 42, # The port of this network endpoint.
509 },
510 ],
511 &quot;runtimeVersion&quot;: &quot;A String&quot;, # Required. The runtime version running in the Node.
512 &quot;schedulingConfig&quot;: { # Sets the scheduling options for this node. # The scheduling options for this node.
513 &quot;preemptible&quot;: True or False, # Defines whether the node is preemptible.
514 &quot;reserved&quot;: True or False, # Whether the node is created under a reservation.
515 },
516 &quot;serviceAccount&quot;: { # A service account. # The Google Cloud Platform Service Account to be used by the TPU node VMs. If None is specified, the default compute service account will be used.
517 &quot;email&quot;: &quot;A String&quot;, # Email address of the service account. If empty, default Compute service account will be used.
518 &quot;scope&quot;: [ # The list of scopes to be made available for this service account. If empty, access to all Cloud APIs will be allowed.
519 &quot;A String&quot;,
520 ],
521 },
522 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state for the TPU Node.
523 &quot;symptoms&quot;: [ # Output only. The Symptoms that have occurred to the TPU Node.
524 { # A Symptom instance.
525 &quot;createTime&quot;: &quot;A String&quot;, # Timestamp when the Symptom is created.
526 &quot;details&quot;: &quot;A String&quot;, # Detailed information of the current Symptom.
527 &quot;symptomType&quot;: &quot;A String&quot;, # Type of the Symptom.
528 &quot;workerId&quot;: &quot;A String&quot;, # A string used to uniquely distinguish a worker within a TPU node.
529 },
530 ],
531 &quot;tags&quot;: [ # Tags to apply to the TPU Node. Tags are used to identify valid sources or targets for network firewalls.
532 &quot;A String&quot;,
533 ],
534}
535
536 updateMask: string, Required. Mask of fields from Node to update. Supported fields: [description, tags, labels, metadata, network_config.enable_external_ips].
537 x__xgafv: string, V1 error format.
538 Allowed values
539 1 - v1 error format
540 2 - v2 error format
541
542Returns:
543 An object of the form:
544
545 { # This resource represents a long-running operation that is the result of a network API call.
546 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
547 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
548 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
549 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
550 {
551 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
552 },
553 ],
554 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
555 },
556 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
557 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
558 },
559 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
560 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
561 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
562 },
563}</pre>
564</div>
565
566<div class="method">
567 <code class="details" id="start">start(name, body=None, x__xgafv=None)</code>
568 <pre>Starts a node.
569
570Args:
571 name: string, The resource name. (required)
572 body: object, The request body.
573 The object takes the form of:
574
575{ # Request for StartNode.
576}
577
578 x__xgafv: string, V1 error format.
579 Allowed values
580 1 - v1 error format
581 2 - v2 error format
582
583Returns:
584 An object of the form:
585
586 { # This resource represents a long-running operation that is the result of a network API call.
587 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
588 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
589 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
590 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
591 {
592 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
593 },
594 ],
595 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
596 },
597 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
598 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
599 },
600 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
601 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
602 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
603 },
604}</pre>
605</div>
606
607<div class="method">
608 <code class="details" id="stop">stop(name, body=None, x__xgafv=None)</code>
609 <pre>Stops a node. This operation is only available with single TPU nodes.
610
611Args:
612 name: string, The resource name. (required)
613 body: object, The request body.
614 The object takes the form of:
615
616{ # Request for StopNode.
617}
618
619 x__xgafv: string, V1 error format.
620 Allowed values
621 1 - v1 error format
622 2 - v2 error format
623
624Returns:
625 An object of the form:
626
627 { # This resource represents a long-running operation that is the result of a network API call.
628 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
629 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
630 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
631 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
632 {
633 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
634 },
635 ],
636 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
637 },
638 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
639 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
640 },
641 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
642 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
643 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
644 },
645}</pre>
646</div>
647
648</body></html>