1<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;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.
146    &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.
147    &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.
148    &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.
149  },
150  &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.
151    { # A network endpoint over which a TPU worker can be reached.
152      &quot;accessConfig&quot;: { # An access config attached to the TPU worker. # The access config for the TPU worker.
153        &quot;externalIp&quot;: &quot;A String&quot;, # Output only. An external IP address associated with the TPU worker.
154      },
155      &quot;ipAddress&quot;: &quot;A String&quot;, # The internal IP address of this network endpoint.
156      &quot;port&quot;: 42, # The port of this network endpoint.
157    },
158  ],
159  &quot;runtimeVersion&quot;: &quot;A String&quot;, # Required. The runtime version running in the Node.
160  &quot;schedulingConfig&quot;: { # Sets the scheduling options for this node. # The scheduling options for this node.
161    &quot;preemptible&quot;: True or False, # Defines whether the node is preemptible.
162    &quot;reserved&quot;: True or False, # Whether the node is created under a reservation.
163  },
164  &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.
165    &quot;email&quot;: &quot;A String&quot;, # Email address of the service account. If empty, default Compute service account will be used.
166    &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.
167      &quot;A String&quot;,
168    ],
169  },
170  &quot;state&quot;: &quot;A String&quot;, # Output only. The current state for the TPU Node.
171  &quot;symptoms&quot;: [ # Output only. The Symptoms that have occurred to the TPU Node.
172    { # A Symptom instance.
173      &quot;createTime&quot;: &quot;A String&quot;, # Timestamp when the Symptom is created.
174      &quot;details&quot;: &quot;A String&quot;, # Detailed information of the current Symptom.
175      &quot;symptomType&quot;: &quot;A String&quot;, # Type of the Symptom.
176      &quot;workerId&quot;: &quot;A String&quot;, # A string used to uniquely distinguish a worker within a TPU node.
177    },
178  ],
179  &quot;tags&quot;: [ # Tags to apply to the TPU Node. Tags are used to identify valid sources or targets for network firewalls.
180    &quot;A String&quot;,
181  ],
182}
183
184  nodeId: string, The unqualified resource name.
185  x__xgafv: string, V1 error format.
186    Allowed values
187      1 - v1 error format
188      2 - v2 error format
189
190Returns:
191  An object of the form:
192
193    { # This resource represents a long-running operation that is the result of a network API call.
194  &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.
195  &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.
196    &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
197    &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
198      {
199        &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
200      },
201    ],
202    &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.
203  },
204  &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.
205    &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
206  },
207  &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}`.
208  &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`.
209    &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
210  },
211}</pre>
212</div>
213
214<div class="method">
215    <code class="details" id="delete">delete(name, x__xgafv=None)</code>
216  <pre>Deletes a node.
217
218Args:
219  name: string, Required. The resource name. (required)
220  x__xgafv: string, V1 error format.
221    Allowed values
222      1 - v1 error format
223      2 - v2 error format
224
225Returns:
226  An object of the form:
227
228    { # This resource represents a long-running operation that is the result of a network API call.
229  &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.
230  &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.
231    &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
232    &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
233      {
234        &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
235      },
236    ],
237    &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.
238  },
239  &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.
240    &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
241  },
242  &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}`.
243  &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`.
244    &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
245  },
246}</pre>
247</div>
248
249<div class="method">
250    <code class="details" id="get">get(name, x__xgafv=None)</code>
251  <pre>Gets the details of a node.
252
253Args:
254  name: string, Required. The resource name. (required)
255  x__xgafv: string, V1 error format.
256    Allowed values
257      1 - v1 error format
258      2 - v2 error format
259
260Returns:
261  An object of the form:
262
263    { # A TPU instance.
264  &quot;acceleratorType&quot;: &quot;A String&quot;, # Required. The type of hardware accelerators associated with this node.
265  &quot;apiVersion&quot;: &quot;A String&quot;, # Output only. The API version that created this Node.
266  &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.
267  &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the node was created.
268  &quot;dataDisks&quot;: [ # The additional data disks for the Node.
269    { # A node-attached disk resource. Next ID: 8;
270      &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.
271      &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;.
272    },
273  ],
274  &quot;description&quot;: &quot;A String&quot;, # The user-supplied description of the TPU. Maximum of 512 characters.
275  &quot;health&quot;: &quot;A String&quot;, # The health status of the TPU node.
276  &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.
277  &quot;id&quot;: &quot;A String&quot;, # Output only. The unique identifier for the TPU Node.
278  &quot;labels&quot;: { # Resource labels to represent user-provided metadata.
279    &quot;a_key&quot;: &quot;A String&quot;,
280  },
281  &quot;metadata&quot;: { # Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script
282    &quot;a_key&quot;: &quot;A String&quot;,
283  },
284  &quot;name&quot;: &quot;A String&quot;, # Output only. Immutable. The name of the TPU.
285  &quot;networkConfig&quot;: { # Network related configurations. # Network configurations for the TPU node.
286    &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.
287    &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.
288    &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.
289    &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.
290  },
291  &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.
292    { # A network endpoint over which a TPU worker can be reached.
293      &quot;accessConfig&quot;: { # An access config attached to the TPU worker. # The access config for the TPU worker.
294        &quot;externalIp&quot;: &quot;A String&quot;, # Output only. An external IP address associated with the TPU worker.
295      },
296      &quot;ipAddress&quot;: &quot;A String&quot;, # The internal IP address of this network endpoint.
297      &quot;port&quot;: 42, # The port of this network endpoint.
298    },
299  ],
300  &quot;runtimeVersion&quot;: &quot;A String&quot;, # Required. The runtime version running in the Node.
301  &quot;schedulingConfig&quot;: { # Sets the scheduling options for this node. # The scheduling options for this node.
302    &quot;preemptible&quot;: True or False, # Defines whether the node is preemptible.
303    &quot;reserved&quot;: True or False, # Whether the node is created under a reservation.
304  },
305  &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.
306    &quot;email&quot;: &quot;A String&quot;, # Email address of the service account. If empty, default Compute service account will be used.
307    &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.
308      &quot;A String&quot;,
309    ],
310  },
311  &quot;state&quot;: &quot;A String&quot;, # Output only. The current state for the TPU Node.
312  &quot;symptoms&quot;: [ # Output only. The Symptoms that have occurred to the TPU Node.
313    { # A Symptom instance.
314      &quot;createTime&quot;: &quot;A String&quot;, # Timestamp when the Symptom is created.
315      &quot;details&quot;: &quot;A String&quot;, # Detailed information of the current Symptom.
316      &quot;symptomType&quot;: &quot;A String&quot;, # Type of the Symptom.
317      &quot;workerId&quot;: &quot;A String&quot;, # A string used to uniquely distinguish a worker within a TPU node.
318    },
319  ],
320  &quot;tags&quot;: [ # Tags to apply to the TPU Node. Tags are used to identify valid sources or targets for network firewalls.
321    &quot;A String&quot;,
322  ],
323}</pre>
324</div>
325
326<div class="method">
327    <code class="details" id="getGuestAttributes">getGuestAttributes(name, body=None, x__xgafv=None)</code>
328  <pre>Retrieves the guest attributes for the node.
329
330Args:
331  name: string, Required. The resource name. (required)
332  body: object, The request body.
333    The object takes the form of:
334
335{ # Request for GetGuestAttributes.
336  &quot;queryPath&quot;: &quot;A String&quot;, # The guest attributes path to be queried.
337  &quot;workerIds&quot;: [ # The 0-based worker ID. If it is empty, all workers&#x27; GuestAttributes will be returned.
338    &quot;A String&quot;,
339  ],
340}
341
342  x__xgafv: string, V1 error format.
343    Allowed values
344      1 - v1 error format
345      2 - v2 error format
346
347Returns:
348  An object of the form:
349
350    { # Response for GetGuestAttributes.
351  &quot;guestAttributes&quot;: [ # The guest attributes for the TPU workers.
352    { # A guest attributes.
353      &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;)
354      &quot;queryValue&quot;: { # Array of guest attribute namespace/key/value tuples. # The value of the requested queried path.
355        &quot;items&quot;: [ # The list of guest attributes entries.
356          { # A guest attributes namespace/key/value entry.
357            &quot;key&quot;: &quot;A String&quot;, # Key for the guest attribute entry.
358            &quot;namespace&quot;: &quot;A String&quot;, # Namespace for the guest attribute entry.
359            &quot;value&quot;: &quot;A String&quot;, # Value for the guest attribute entry.
360          },
361        ],
362      },
363    },
364  ],
365}</pre>
366</div>
367
368<div class="method">
369    <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
370  <pre>Lists nodes.
371
372Args:
373  parent: string, Required. The parent resource name. (required)
374  pageSize: integer, The maximum number of items to return.
375  pageToken: string, The next_page_token value returned from a previous List request, if any.
376  x__xgafv: string, V1 error format.
377    Allowed values
378      1 - v1 error format
379      2 - v2 error format
380
381Returns:
382  An object of the form:
383
384    { # Response for ListNodes.
385  &quot;nextPageToken&quot;: &quot;A String&quot;, # The next page token or empty if none.
386  &quot;nodes&quot;: [ # The listed nodes.
387    { # A TPU instance.
388      &quot;acceleratorType&quot;: &quot;A String&quot;, # Required. The type of hardware accelerators associated with this node.
389      &quot;apiVersion&quot;: &quot;A String&quot;, # Output only. The API version that created this Node.
390      &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      &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the node was created.
392      &quot;dataDisks&quot;: [ # The additional data disks for the Node.
393        { # A node-attached disk resource. Next ID: 8;
394          &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.
395          &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;.
396        },
397      ],
398      &quot;description&quot;: &quot;A String&quot;, # The user-supplied description of the TPU. Maximum of 512 characters.
399      &quot;health&quot;: &quot;A String&quot;, # The health status of the TPU node.
400      &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.
401      &quot;id&quot;: &quot;A String&quot;, # Output only. The unique identifier for the TPU Node.
402      &quot;labels&quot;: { # Resource labels to represent user-provided metadata.
403        &quot;a_key&quot;: &quot;A String&quot;,
404      },
405      &quot;metadata&quot;: { # Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script
406        &quot;a_key&quot;: &quot;A String&quot;,
407      },
408      &quot;name&quot;: &quot;A String&quot;, # Output only. Immutable. The name of the TPU.
409      &quot;networkConfig&quot;: { # Network related configurations. # Network configurations for the TPU node.
410        &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.
411        &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.
412        &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.
413        &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.
414      },
415      &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.
416        { # A network endpoint over which a TPU worker can be reached.
417          &quot;accessConfig&quot;: { # An access config attached to the TPU worker. # The access config for the TPU worker.
418            &quot;externalIp&quot;: &quot;A String&quot;, # Output only. An external IP address associated with the TPU worker.
419          },
420          &quot;ipAddress&quot;: &quot;A String&quot;, # The internal IP address of this network endpoint.
421          &quot;port&quot;: 42, # The port of this network endpoint.
422        },
423      ],
424      &quot;runtimeVersion&quot;: &quot;A String&quot;, # Required. The runtime version running in the Node.
425      &quot;schedulingConfig&quot;: { # Sets the scheduling options for this node. # The scheduling options for this node.
426        &quot;preemptible&quot;: True or False, # Defines whether the node is preemptible.
427        &quot;reserved&quot;: True or False, # Whether the node is created under a reservation.
428      },
429      &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.
430        &quot;email&quot;: &quot;A String&quot;, # Email address of the service account. If empty, default Compute service account will be used.
431        &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.
432          &quot;A String&quot;,
433        ],
434      },
435      &quot;state&quot;: &quot;A String&quot;, # Output only. The current state for the TPU Node.
436      &quot;symptoms&quot;: [ # Output only. The Symptoms that have occurred to the TPU Node.
437        { # A Symptom instance.
438          &quot;createTime&quot;: &quot;A String&quot;, # Timestamp when the Symptom is created.
439          &quot;details&quot;: &quot;A String&quot;, # Detailed information of the current Symptom.
440          &quot;symptomType&quot;: &quot;A String&quot;, # Type of the Symptom.
441          &quot;workerId&quot;: &quot;A String&quot;, # A string used to uniquely distinguish a worker within a TPU node.
442        },
443      ],
444      &quot;tags&quot;: [ # Tags to apply to the TPU Node. Tags are used to identify valid sources or targets for network firewalls.
445        &quot;A String&quot;,
446      ],
447    },
448  ],
449  &quot;unreachable&quot;: [ # Locations that could not be reached.
450    &quot;A String&quot;,
451  ],
452}</pre>
453</div>
454
455<div class="method">
456    <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
457  <pre>Retrieves the next page of results.
458
459Args:
460  previous_request: The request for the previous page. (required)
461  previous_response: The response from the request for the previous page. (required)
462
463Returns:
464  A request object that you can call &#x27;execute()&#x27; on to request the next
465  page. Returns None if there are no more items in the collection.
466    </pre>
467</div>
468
469<div class="method">
470    <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
471  <pre>Updates the configurations of a node.
472
473Args:
474  name: string, Output only. Immutable. The name of the TPU. (required)
475  body: object, The request body.
476    The object takes the form of:
477
478{ # A TPU instance.
479  &quot;acceleratorType&quot;: &quot;A String&quot;, # Required. The type of hardware accelerators associated with this node.
480  &quot;apiVersion&quot;: &quot;A String&quot;, # Output only. The API version that created this Node.
481  &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.
482  &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the node was created.
483  &quot;dataDisks&quot;: [ # The additional data disks for the Node.
484    { # A node-attached disk resource. Next ID: 8;
485      &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.
486      &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;.
487    },
488  ],
489  &quot;description&quot;: &quot;A String&quot;, # The user-supplied description of the TPU. Maximum of 512 characters.
490  &quot;health&quot;: &quot;A String&quot;, # The health status of the TPU node.
491  &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.
492  &quot;id&quot;: &quot;A String&quot;, # Output only. The unique identifier for the TPU Node.
493  &quot;labels&quot;: { # Resource labels to represent user-provided metadata.
494    &quot;a_key&quot;: &quot;A String&quot;,
495  },
496  &quot;metadata&quot;: { # Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script
497    &quot;a_key&quot;: &quot;A String&quot;,
498  },
499  &quot;name&quot;: &quot;A String&quot;, # Output only. Immutable. The name of the TPU.
500  &quot;networkConfig&quot;: { # Network related configurations. # Network configurations for the TPU node.
501    &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.
502    &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.
503    &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.
504    &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.
505  },
506  &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.
507    { # A network endpoint over which a TPU worker can be reached.
508      &quot;accessConfig&quot;: { # An access config attached to the TPU worker. # The access config for the TPU worker.
509        &quot;externalIp&quot;: &quot;A String&quot;, # Output only. An external IP address associated with the TPU worker.
510      },
511      &quot;ipAddress&quot;: &quot;A String&quot;, # The internal IP address of this network endpoint.
512      &quot;port&quot;: 42, # The port of this network endpoint.
513    },
514  ],
515  &quot;runtimeVersion&quot;: &quot;A String&quot;, # Required. The runtime version running in the Node.
516  &quot;schedulingConfig&quot;: { # Sets the scheduling options for this node. # The scheduling options for this node.
517    &quot;preemptible&quot;: True or False, # Defines whether the node is preemptible.
518    &quot;reserved&quot;: True or False, # Whether the node is created under a reservation.
519  },
520  &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.
521    &quot;email&quot;: &quot;A String&quot;, # Email address of the service account. If empty, default Compute service account will be used.
522    &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.
523      &quot;A String&quot;,
524    ],
525  },
526  &quot;state&quot;: &quot;A String&quot;, # Output only. The current state for the TPU Node.
527  &quot;symptoms&quot;: [ # Output only. The Symptoms that have occurred to the TPU Node.
528    { # A Symptom instance.
529      &quot;createTime&quot;: &quot;A String&quot;, # Timestamp when the Symptom is created.
530      &quot;details&quot;: &quot;A String&quot;, # Detailed information of the current Symptom.
531      &quot;symptomType&quot;: &quot;A String&quot;, # Type of the Symptom.
532      &quot;workerId&quot;: &quot;A String&quot;, # A string used to uniquely distinguish a worker within a TPU node.
533    },
534  ],
535  &quot;tags&quot;: [ # Tags to apply to the TPU Node. Tags are used to identify valid sources or targets for network firewalls.
536    &quot;A String&quot;,
537  ],
538}
539
540  updateMask: string, Required. Mask of fields from Node to update. Supported fields: [description, tags, labels, metadata, network_config.enable_external_ips].
541  x__xgafv: string, V1 error format.
542    Allowed values
543      1 - v1 error format
544      2 - v2 error format
545
546Returns:
547  An object of the form:
548
549    { # This resource represents a long-running operation that is the result of a network API call.
550  &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.
551  &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.
552    &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
553    &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
554      {
555        &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
556      },
557    ],
558    &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.
559  },
560  &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.
561    &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
562  },
563  &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}`.
564  &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`.
565    &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
566  },
567}</pre>
568</div>
569
570<div class="method">
571    <code class="details" id="start">start(name, body=None, x__xgafv=None)</code>
572  <pre>Starts a node.
573
574Args:
575  name: string, The resource name. (required)
576  body: object, The request body.
577    The object takes the form of:
578
579{ # Request for StartNode.
580}
581
582  x__xgafv: string, V1 error format.
583    Allowed values
584      1 - v1 error format
585      2 - v2 error format
586
587Returns:
588  An object of the form:
589
590    { # This resource represents a long-running operation that is the result of a network API call.
591  &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.
592  &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.
593    &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
594    &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
595      {
596        &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
597      },
598    ],
599    &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.
600  },
601  &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.
602    &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
603  },
604  &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}`.
605  &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`.
606    &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
607  },
608}</pre>
609</div>
610
611<div class="method">
612    <code class="details" id="stop">stop(name, body=None, x__xgafv=None)</code>
613  <pre>Stops a node. This operation is only available with single TPU nodes.
614
615Args:
616  name: string, The resource name. (required)
617  body: object, The request body.
618    The object takes the form of:
619
620{ # Request for StopNode.
621}
622
623  x__xgafv: string, V1 error format.
624    Allowed values
625      1 - v1 error format
626      2 - v2 error format
627
628Returns:
629  An object of the form:
630
631    { # This resource represents a long-running operation that is the result of a network API call.
632  &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.
633  &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.
634    &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
635    &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
636      {
637        &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
638      },
639    ],
640    &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.
641  },
642  &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.
643    &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
644  },
645  &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}`.
646  &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`.
647    &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
648  },
649}</pre>
650</div>
651
652</body></html>