Debian Codegraph @

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

raw
1 <html><body>
2 <style>
3
4 body, 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
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, 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, requestId=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, requestId=None, 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()</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="#performMaintenance">performMaintenance(name, body=None, x__xgafv=None)</a></code></p>
103 <p class="firstline">Perform manual maintenance on a node.</p>
104 <p class="toc_element">
105 <code><a href="#simulateMaintenanceEvent">simulateMaintenanceEvent(name, body=None, x__xgafv=None)</a></code></p>
106 <p class="firstline">Simulates a maintenance event.</p>
107 <p class="toc_element">
108 <code><a href="#start">start(name, body=None, x__xgafv=None)</a></code></p>
109 <p class="firstline">Starts a node.</p>
110 <p class="toc_element">
111 <code><a href="#stop">stop(name, body=None, x__xgafv=None)</a></code></p>
112 <p class="firstline">Stops a node. This operation is only available with single TPU nodes.</p>
113 <h3>Method Details</h3>
114 <div class="method">
115 <code class="details" id="close">close()</code>
116 <pre>Close httplib2 connections.</pre>
117 </div>
118
119 <div class="method">
120 <code class="details" id="create">create(parent, body=None, nodeId=None, requestId=None, x__xgafv=None)</code>
121 <pre>Creates a node.
122
123 Args:
124 parent: string, Required. The parent resource name. (required)
125 body: object, The request body.
126 The object takes the form of:
127
128 { # A TPU instance.
129 &quot;acceleratorConfig&quot;: { # A TPU accelerator configuration. # The AccleratorConfig for the TPU Node.
130 &quot;topology&quot;: &quot;A String&quot;, # Required. Topology of TPU in chips.
131 &quot;type&quot;: &quot;A String&quot;, # Required. Type of TPU.
132 },
133 &quot;acceleratorType&quot;: &quot;A String&quot;, # The type of hardware accelerators associated with this node.
134 &quot;apiVersion&quot;: &quot;A String&quot;, # Output only. The API version that created this Node.
135 &quot;autocheckpointEnabled&quot;: True or False, # Optional. Whether Autocheckpoint is enabled.
136 &quot;bootDiskConfig&quot;: { # Boot disk configurations. # Optional. Boot disk configuration.
137 &quot;customerEncryptionKey&quot;: { # Customer&#x27;s encryption key. # Optional. Customer encryption key for boot disk.
138 &quot;kmsKeyName&quot;: &quot;A String&quot;, # The name of the encryption key that is stored in Google Cloud KMS. For example: &quot;kmsKeyName&quot;: &quot;projects/KMS_PROJECT_ID/locations/REGION/keyRings/KEY_REGION/cryptoKeys/KEY The fully-qualifed key name may be returned for resource GET requests. For example: &quot;kmsKeyName&quot;: &quot;projects/KMS_PROJECT_ID/locations/REGION/keyRings/KEY_REGION/cryptoKeys/KEY/cryptoKeyVersions/1
139 },
140 &quot;diskSizeGb&quot;: &quot;A String&quot;, # Optional. Size of the boot disk in GB. It must be larger than or equal to the size of the image.
141 &quot;enableConfidentialCompute&quot;: True or False, # Optional. Whether the boot disk will be created with confidential compute mode.
142 &quot;provisionedIops&quot;: &quot;A String&quot;, # Optional. Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per second that the disk can handle. To learn more about IOPS, see [Provisioning persistent disk performance](https://cloud.google.com/compute/docs/disks/performance#provisioned-iops).
143 &quot;provisionedThroughput&quot;: &quot;A String&quot;, # Optional. Indicates how much throughput to provision for the disk. This sets the number of throughput MB per second that the disk can handle.
144 &quot;sourceImage&quot;: &quot;A String&quot;, # Optional. Image from which boot disk is to be created. If not specified, the default image for the runtime version will be used. Example: `projects/$PROJECT_ID/global/images/$IMAGE_NAME`.
145 &quot;storagePool&quot;: &quot;A String&quot;, # Optional. The storage pool in which the boot disk is created. You can provide this as a partial or full URL to the resource.
146 },
147 &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.
148 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the node was created.
149 &quot;dataDisks&quot;: [ # The additional data disks for the Node.
150 { # A node-attached disk resource.
151 &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.
152 &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;.
153 &quot;workerIds&quot;: [ # Optional. The list of worker IDs this disk is attached to.
154 &quot;A String&quot;,
155 ],
156 },
157 ],
158 &quot;description&quot;: &quot;A String&quot;, # The user-supplied description of the TPU. Maximum of 512 characters.
159 &quot;health&quot;: &quot;A String&quot;, # The health status of the TPU node.
160 &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.
161 &quot;id&quot;: &quot;A String&quot;, # Output only. The unique identifier for the TPU Node.
162 &quot;labels&quot;: { # Resource labels to represent user-provided metadata.
163 &quot;a_key&quot;: &quot;A String&quot;,
164 },
165 &quot;metadata&quot;: { # Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script
166 &quot;a_key&quot;: &quot;A String&quot;,
167 },
168 &quot;multisliceNode&quot;: True or False, # Output only. Whether the Node belongs to a Multislice group.
169 &quot;name&quot;: &quot;A String&quot;, # Output only. Immutable. The name of the TPU.
170 &quot;networkConfig&quot;: { # Network related configurations. # Network configurations for the TPU node. network_config and network_configs are mutually exclusive, you can only specify one of them. If both are specified, an error will be returned.
171 &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.
172 &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.
173 &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.
174 &quot;queueCount&quot;: 42, # Optional. Specifies networking queue count for TPU VM instance&#x27;s network interface.
175 &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.
176 },
177 &quot;networkConfigs&quot;: [ # Optional. Repeated network configurations for the TPU node. This field is used to specify multiple networks configs for the TPU node. network_config and network_configs are mutually exclusive, you can only specify one of them. If both are specified, an error will be returned.
178 { # Network related configurations.
179 &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.
180 &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.
181 &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.
182 &quot;queueCount&quot;: 42, # Optional. Specifies networking queue count for TPU VM instance&#x27;s network interface.
183 &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.
184 },
185 ],
186 &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.
187 { # A network endpoint over which a TPU worker can be reached.
188 &quot;accessConfig&quot;: { # An access config attached to the TPU worker. # The access config for the TPU worker.
189 &quot;externalIp&quot;: &quot;A String&quot;, # Output only. An external IP address associated with the TPU worker.
190 },
191 &quot;ipAddress&quot;: &quot;A String&quot;, # The internal IP address of this network endpoint.
192 &quot;port&quot;: 42, # The port of this network endpoint.
193 },
194 ],
195 &quot;queuedResource&quot;: &quot;A String&quot;, # Output only. The qualified name of the QueuedResource that requested this Node.
196 &quot;runtimeVersion&quot;: &quot;A String&quot;, # Required. The runtime version running in the Node.
197 &quot;schedulingConfig&quot;: { # Sets the scheduling options for this node. # The scheduling options for this node.
198 &quot;preemptible&quot;: True or False, # Defines whether the node is preemptible.
199 &quot;provisioningModel&quot;: &quot;A String&quot;, # Optional. Defines the provisioning model for the node.
200 &quot;reservationName&quot;: &quot;A String&quot;, # Optional. Name of the reservation in which the node should be provisioned.
201 &quot;reserved&quot;: True or False, # Whether the node is created under a reservation.
202 &quot;spot&quot;: True or False, # Optional. Defines whether the node is Spot VM.
203 &quot;terminationTimestamp&quot;: &quot;A String&quot;, # Output only. The time at which the node will be terminated.
204 },
205 &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.
206 &quot;email&quot;: &quot;A String&quot;, # Email address of the service account. If empty, default Compute service account will be used.
207 &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.
208 &quot;A String&quot;,
209 ],
210 },
211 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
212 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
213 },
214 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state for the TPU Node.
215 &quot;symptoms&quot;: [ # Output only. The Symptoms that have occurred to the TPU Node.
216 { # A Symptom instance.
217 &quot;createTime&quot;: &quot;A String&quot;, # Timestamp when the Symptom is created.
218 &quot;details&quot;: &quot;A String&quot;, # Detailed information of the current Symptom.
219 &quot;symptomType&quot;: &quot;A String&quot;, # Type of the Symptom.
220 &quot;workerId&quot;: &quot;A String&quot;, # A string used to uniquely distinguish a worker within a TPU node.
221 },
222 ],
223 &quot;tags&quot;: [ # Tags to apply to the TPU Node. Tags are used to identify valid sources or targets for network firewalls.
224 &quot;A String&quot;,
225 ],
226 &quot;upcomingMaintenance&quot;: { # Upcoming Maintenance notification information. # Output only. Upcoming maintenance on this TPU node.
227 &quot;canReschedule&quot;: True or False, # Indicates if the maintenance can be customer triggered.
228 &quot;latestWindowStartTime&quot;: &quot;A String&quot;, # The latest time for the planned maintenance window to start. This timestamp value is in RFC3339 text format.
229 &quot;maintenanceStatus&quot;: &quot;A String&quot;, # The status of the maintenance.
230 &quot;type&quot;: &quot;A String&quot;, # Defines the type of maintenance.
231 &quot;windowEndTime&quot;: &quot;A String&quot;, # The time by which the maintenance disruption will be completed. This timestamp value is in RFC3339 text format.
232 &quot;windowStartTime&quot;: &quot;A String&quot;, # The current start time of the maintenance window. This timestamp value is in RFC3339 text format.
233 },
234 }
235
236 nodeId: string, The unqualified resource name.
237 requestId: string, Idempotent request UUID.
238 x__xgafv: string, V1 error format.
239 Allowed values
240 1 - v1 error format
241 2 - v2 error format
242
243 Returns:
244 An object of the form:
245
246 { # This resource represents a long-running operation that is the result of a network API call.
247 &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.
248 &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.
249 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
250 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
251 {
252 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
253 },
254 ],
255 &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.
256 },
257 &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.
258 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
259 },
260 &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}`.
261 &quot;response&quot;: { # The normal, successful response of the operation. 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`.
262 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
263 },
264 }</pre>
265 </div>
266
267 <div class="method">
268 <code class="details" id="delete">delete(name, requestId=None, x__xgafv=None)</code>
269 <pre>Deletes a node.
270
271 Args:
272 name: string, Required. The resource name. (required)
273 requestId: string, Idempotent request UUID.
274 x__xgafv: string, V1 error format.
275 Allowed values
276 1 - v1 error format
277 2 - v2 error format
278
279 Returns:
280 An object of the form:
281
282 { # This resource represents a long-running operation that is the result of a network API call.
283 &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.
284 &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.
285 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
286 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
287 {
288 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
289 },
290 ],
291 &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.
292 },
293 &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.
294 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
295 },
296 &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}`.
297 &quot;response&quot;: { # The normal, successful response of the operation. 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`.
298 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
299 },
300 }</pre>
301 </div>
302
303 <div class="method">
304 <code class="details" id="get">get(name, x__xgafv=None)</code>
305 <pre>Gets the details of a node.
306
307 Args:
308 name: string, Required. The resource name. (required)
309 x__xgafv: string, V1 error format.
310 Allowed values
311 1 - v1 error format
312 2 - v2 error format
313
314 Returns:
315 An object of the form:
316
317 { # A TPU instance.
318 &quot;acceleratorConfig&quot;: { # A TPU accelerator configuration. # The AccleratorConfig for the TPU Node.
319 &quot;topology&quot;: &quot;A String&quot;, # Required. Topology of TPU in chips.
320 &quot;type&quot;: &quot;A String&quot;, # Required. Type of TPU.
321 },
322 &quot;acceleratorType&quot;: &quot;A String&quot;, # The type of hardware accelerators associated with this node.
323 &quot;apiVersion&quot;: &quot;A String&quot;, # Output only. The API version that created this Node.
324 &quot;autocheckpointEnabled&quot;: True or False, # Optional. Whether Autocheckpoint is enabled.
325 &quot;bootDiskConfig&quot;: { # Boot disk configurations. # Optional. Boot disk configuration.
326 &quot;customerEncryptionKey&quot;: { # Customer&#x27;s encryption key. # Optional. Customer encryption key for boot disk.
327 &quot;kmsKeyName&quot;: &quot;A String&quot;, # The name of the encryption key that is stored in Google Cloud KMS. For example: &quot;kmsKeyName&quot;: &quot;projects/KMS_PROJECT_ID/locations/REGION/keyRings/KEY_REGION/cryptoKeys/KEY The fully-qualifed key name may be returned for resource GET requests. For example: &quot;kmsKeyName&quot;: &quot;projects/KMS_PROJECT_ID/locations/REGION/keyRings/KEY_REGION/cryptoKeys/KEY/cryptoKeyVersions/1
328 },
329 &quot;diskSizeGb&quot;: &quot;A String&quot;, # Optional. Size of the boot disk in GB. It must be larger than or equal to the size of the image.
330 &quot;enableConfidentialCompute&quot;: True or False, # Optional. Whether the boot disk will be created with confidential compute mode.
331 &quot;provisionedIops&quot;: &quot;A String&quot;, # Optional. Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per second that the disk can handle. To learn more about IOPS, see [Provisioning persistent disk performance](https://cloud.google.com/compute/docs/disks/performance#provisioned-iops).
332 &quot;provisionedThroughput&quot;: &quot;A String&quot;, # Optional. Indicates how much throughput to provision for the disk. This sets the number of throughput MB per second that the disk can handle.
333 &quot;sourceImage&quot;: &quot;A String&quot;, # Optional. Image from which boot disk is to be created. If not specified, the default image for the runtime version will be used. Example: `projects/$PROJECT_ID/global/images/$IMAGE_NAME`.
334 &quot;storagePool&quot;: &quot;A String&quot;, # Optional. The storage pool in which the boot disk is created. You can provide this as a partial or full URL to the resource.
335 },
336 &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.
337 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the node was created.
338 &quot;dataDisks&quot;: [ # The additional data disks for the Node.
339 { # A node-attached disk resource.
340 &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.
341 &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;.
342 &quot;workerIds&quot;: [ # Optional. The list of worker IDs this disk is attached to.
343 &quot;A String&quot;,
344 ],
345 },
346 ],
347 &quot;description&quot;: &quot;A String&quot;, # The user-supplied description of the TPU. Maximum of 512 characters.
348 &quot;health&quot;: &quot;A String&quot;, # The health status of the TPU node.
349 &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.
350 &quot;id&quot;: &quot;A String&quot;, # Output only. The unique identifier for the TPU Node.
351 &quot;labels&quot;: { # Resource labels to represent user-provided metadata.
352 &quot;a_key&quot;: &quot;A String&quot;,
353 },
354 &quot;metadata&quot;: { # Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script
355 &quot;a_key&quot;: &quot;A String&quot;,
356 },
357 &quot;multisliceNode&quot;: True or False, # Output only. Whether the Node belongs to a Multislice group.
358 &quot;name&quot;: &quot;A String&quot;, # Output only. Immutable. The name of the TPU.
359 &quot;networkConfig&quot;: { # Network related configurations. # Network configurations for the TPU node. network_config and network_configs are mutually exclusive, you can only specify one of them. If both are specified, an error will be returned.
360 &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.
361 &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.
362 &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.
363 &quot;queueCount&quot;: 42, # Optional. Specifies networking queue count for TPU VM instance&#x27;s network interface.
364 &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.
365 },
366 &quot;networkConfigs&quot;: [ # Optional. Repeated network configurations for the TPU node. This field is used to specify multiple networks configs for the TPU node. network_config and network_configs are mutually exclusive, you can only specify one of them. If both are specified, an error will be returned.
367 { # Network related configurations.
368 &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.
369 &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.
370 &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.
371 &quot;queueCount&quot;: 42, # Optional. Specifies networking queue count for TPU VM instance&#x27;s network interface.
372 &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.
373 },
374 ],
375 &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.
376 { # A network endpoint over which a TPU worker can be reached.
377 &quot;accessConfig&quot;: { # An access config attached to the TPU worker. # The access config for the TPU worker.
378 &quot;externalIp&quot;: &quot;A String&quot;, # Output only. An external IP address associated with the TPU worker.
379 },
380 &quot;ipAddress&quot;: &quot;A String&quot;, # The internal IP address of this network endpoint.
381 &quot;port&quot;: 42, # The port of this network endpoint.
382 },
383 ],
384 &quot;queuedResource&quot;: &quot;A String&quot;, # Output only. The qualified name of the QueuedResource that requested this Node.
385 &quot;runtimeVersion&quot;: &quot;A String&quot;, # Required. The runtime version running in the Node.
386 &quot;schedulingConfig&quot;: { # Sets the scheduling options for this node. # The scheduling options for this node.
387 &quot;preemptible&quot;: True or False, # Defines whether the node is preemptible.
388 &quot;provisioningModel&quot;: &quot;A String&quot;, # Optional. Defines the provisioning model for the node.
389 &quot;reservationName&quot;: &quot;A String&quot;, # Optional. Name of the reservation in which the node should be provisioned.
390 &quot;reserved&quot;: True or False, # Whether the node is created under a reservation.
391 &quot;spot&quot;: True or False, # Optional. Defines whether the node is Spot VM.
392 &quot;terminationTimestamp&quot;: &quot;A String&quot;, # Output only. The time at which the node will be terminated.
393 },
394 &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.
395 &quot;email&quot;: &quot;A String&quot;, # Email address of the service account. If empty, default Compute service account will be used.
396 &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.
397 &quot;A String&quot;,
398 ],
399 },
400 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
401 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
402 },
403 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state for the TPU Node.
404 &quot;symptoms&quot;: [ # Output only. The Symptoms that have occurred to the TPU Node.
405 { # A Symptom instance.
406 &quot;createTime&quot;: &quot;A String&quot;, # Timestamp when the Symptom is created.
407 &quot;details&quot;: &quot;A String&quot;, # Detailed information of the current Symptom.
408 &quot;symptomType&quot;: &quot;A String&quot;, # Type of the Symptom.
409 &quot;workerId&quot;: &quot;A String&quot;, # A string used to uniquely distinguish a worker within a TPU node.
410 },
411 ],
412 &quot;tags&quot;: [ # Tags to apply to the TPU Node. Tags are used to identify valid sources or targets for network firewalls.
413 &quot;A String&quot;,
414 ],
415 &quot;upcomingMaintenance&quot;: { # Upcoming Maintenance notification information. # Output only. Upcoming maintenance on this TPU node.
416 &quot;canReschedule&quot;: True or False, # Indicates if the maintenance can be customer triggered.
417 &quot;latestWindowStartTime&quot;: &quot;A String&quot;, # The latest time for the planned maintenance window to start. This timestamp value is in RFC3339 text format.
418 &quot;maintenanceStatus&quot;: &quot;A String&quot;, # The status of the maintenance.
419 &quot;type&quot;: &quot;A String&quot;, # Defines the type of maintenance.
420 &quot;windowEndTime&quot;: &quot;A String&quot;, # The time by which the maintenance disruption will be completed. This timestamp value is in RFC3339 text format.
421 &quot;windowStartTime&quot;: &quot;A String&quot;, # The current start time of the maintenance window. This timestamp value is in RFC3339 text format.
422 },
423 }</pre>
424 </div>
425
426 <div class="method">
427 <code class="details" id="getGuestAttributes">getGuestAttributes(name, body=None, x__xgafv=None)</code>
428 <pre>Retrieves the guest attributes for the node.
429
430 Args:
431 name: string, Required. The resource name. (required)
432 body: object, The request body.
433 The object takes the form of:
434
435 { # Request for GetGuestAttributes.
436 &quot;queryPath&quot;: &quot;A String&quot;, # The guest attributes path to be queried.
437 &quot;workerIds&quot;: [ # The 0-based worker ID. If it is empty, all workers&#x27; GuestAttributes will be returned.
438 &quot;A String&quot;,
439 ],
440 }
441
442 x__xgafv: string, V1 error format.
443 Allowed values
444 1 - v1 error format
445 2 - v2 error format
446
447 Returns:
448 An object of the form:
449
450 { # Response for GetGuestAttributes.
451 &quot;guestAttributes&quot;: [ # The guest attributes for the TPU workers.
452 { # A guest attributes.
453 &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;)
454 &quot;queryValue&quot;: { # Array of guest attribute namespace/key/value tuples. # The value of the requested queried path.
455 &quot;items&quot;: [ # The list of guest attributes entries.
456 { # A guest attributes namespace/key/value entry.
457 &quot;key&quot;: &quot;A String&quot;, # Key for the guest attribute entry.
458 &quot;namespace&quot;: &quot;A String&quot;, # Namespace for the guest attribute entry.
459 &quot;value&quot;: &quot;A String&quot;, # Value for the guest attribute entry.
460 },
461 ],
462 },
463 },
464 ],
465 }</pre>
466 </div>
467
468 <div class="method">
469 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
470 <pre>Lists nodes.
471
472 Args:
473 parent: string, Required. The parent resource name. (required)
474 pageSize: integer, The maximum number of items to return.
475 pageToken: string, The next_page_token value returned from a previous List request, if any.
476 x__xgafv: string, V1 error format.
477 Allowed values
478 1 - v1 error format
479 2 - v2 error format
480
481 Returns:
482 An object of the form:
483
484 { # Response for ListNodes.
485 &quot;nextPageToken&quot;: &quot;A String&quot;, # The next page token or empty if none.
486 &quot;nodes&quot;: [ # The listed nodes.
487 { # A TPU instance.
488 &quot;acceleratorConfig&quot;: { # A TPU accelerator configuration. # The AccleratorConfig for the TPU Node.
489 &quot;topology&quot;: &quot;A String&quot;, # Required. Topology of TPU in chips.
490 &quot;type&quot;: &quot;A String&quot;, # Required. Type of TPU.
491 },
492 &quot;acceleratorType&quot;: &quot;A String&quot;, # The type of hardware accelerators associated with this node.
493 &quot;apiVersion&quot;: &quot;A String&quot;, # Output only. The API version that created this Node.
494 &quot;autocheckpointEnabled&quot;: True or False, # Optional. Whether Autocheckpoint is enabled.
495 &quot;bootDiskConfig&quot;: { # Boot disk configurations. # Optional. Boot disk configuration.
496 &quot;customerEncryptionKey&quot;: { # Customer&#x27;s encryption key. # Optional. Customer encryption key for boot disk.
497 &quot;kmsKeyName&quot;: &quot;A String&quot;, # The name of the encryption key that is stored in Google Cloud KMS. For example: &quot;kmsKeyName&quot;: &quot;projects/KMS_PROJECT_ID/locations/REGION/keyRings/KEY_REGION/cryptoKeys/KEY The fully-qualifed key name may be returned for resource GET requests. For example: &quot;kmsKeyName&quot;: &quot;projects/KMS_PROJECT_ID/locations/REGION/keyRings/KEY_REGION/cryptoKeys/KEY/cryptoKeyVersions/1
498 },
499 &quot;diskSizeGb&quot;: &quot;A String&quot;, # Optional. Size of the boot disk in GB. It must be larger than or equal to the size of the image.
500 &quot;enableConfidentialCompute&quot;: True or False, # Optional. Whether the boot disk will be created with confidential compute mode.
501 &quot;provisionedIops&quot;: &quot;A String&quot;, # Optional. Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per second that the disk can handle. To learn more about IOPS, see [Provisioning persistent disk performance](https://cloud.google.com/compute/docs/disks/performance#provisioned-iops).
502 &quot;provisionedThroughput&quot;: &quot;A String&quot;, # Optional. Indicates how much throughput to provision for the disk. This sets the number of throughput MB per second that the disk can handle.
503 &quot;sourceImage&quot;: &quot;A String&quot;, # Optional. Image from which boot disk is to be created. If not specified, the default image for the runtime version will be used. Example: `projects/$PROJECT_ID/global/images/$IMAGE_NAME`.
504 &quot;storagePool&quot;: &quot;A String&quot;, # Optional. The storage pool in which the boot disk is created. You can provide this as a partial or full URL to the resource.
505 },
506 &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.
507 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the node was created.
508 &quot;dataDisks&quot;: [ # The additional data disks for the Node.
509 { # A node-attached disk resource.
510 &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.
511 &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;.
512 &quot;workerIds&quot;: [ # Optional. The list of worker IDs this disk is attached to.
513 &quot;A String&quot;,
514 ],
515 },
516 ],
517 &quot;description&quot;: &quot;A String&quot;, # The user-supplied description of the TPU. Maximum of 512 characters.
518 &quot;health&quot;: &quot;A String&quot;, # The health status of the TPU node.
519 &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.
520 &quot;id&quot;: &quot;A String&quot;, # Output only. The unique identifier for the TPU Node.
521 &quot;labels&quot;: { # Resource labels to represent user-provided metadata.
522 &quot;a_key&quot;: &quot;A String&quot;,
523 },
524 &quot;metadata&quot;: { # Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script
525 &quot;a_key&quot;: &quot;A String&quot;,
526 },
527 &quot;multisliceNode&quot;: True or False, # Output only. Whether the Node belongs to a Multislice group.
528 &quot;name&quot;: &quot;A String&quot;, # Output only. Immutable. The name of the TPU.
529 &quot;networkConfig&quot;: { # Network related configurations. # Network configurations for the TPU node. network_config and network_configs are mutually exclusive, you can only specify one of them. If both are specified, an error will be returned.
530 &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.
531 &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.
532 &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.
533 &quot;queueCount&quot;: 42, # Optional. Specifies networking queue count for TPU VM instance&#x27;s network interface.
534 &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.
535 },
536 &quot;networkConfigs&quot;: [ # Optional. Repeated network configurations for the TPU node. This field is used to specify multiple networks configs for the TPU node. network_config and network_configs are mutually exclusive, you can only specify one of them. If both are specified, an error will be returned.
537 { # Network related configurations.
538 &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.
539 &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.
540 &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.
541 &quot;queueCount&quot;: 42, # Optional. Specifies networking queue count for TPU VM instance&#x27;s network interface.
542 &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.
543 },
544 ],
545 &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.
546 { # A network endpoint over which a TPU worker can be reached.
547 &quot;accessConfig&quot;: { # An access config attached to the TPU worker. # The access config for the TPU worker.
548 &quot;externalIp&quot;: &quot;A String&quot;, # Output only. An external IP address associated with the TPU worker.
549 },
550 &quot;ipAddress&quot;: &quot;A String&quot;, # The internal IP address of this network endpoint.
551 &quot;port&quot;: 42, # The port of this network endpoint.
552 },
553 ],
554 &quot;queuedResource&quot;: &quot;A String&quot;, # Output only. The qualified name of the QueuedResource that requested this Node.
555 &quot;runtimeVersion&quot;: &quot;A String&quot;, # Required. The runtime version running in the Node.
556 &quot;schedulingConfig&quot;: { # Sets the scheduling options for this node. # The scheduling options for this node.
557 &quot;preemptible&quot;: True or False, # Defines whether the node is preemptible.
558 &quot;provisioningModel&quot;: &quot;A String&quot;, # Optional. Defines the provisioning model for the node.
559 &quot;reservationName&quot;: &quot;A String&quot;, # Optional. Name of the reservation in which the node should be provisioned.
560 &quot;reserved&quot;: True or False, # Whether the node is created under a reservation.
561 &quot;spot&quot;: True or False, # Optional. Defines whether the node is Spot VM.
562 &quot;terminationTimestamp&quot;: &quot;A String&quot;, # Output only. The time at which the node will be terminated.
563 },
564 &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.
565 &quot;email&quot;: &quot;A String&quot;, # Email address of the service account. If empty, default Compute service account will be used.
566 &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.
567 &quot;A String&quot;,
568 ],
569 },
570 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
571 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
572 },
573 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state for the TPU Node.
574 &quot;symptoms&quot;: [ # Output only. The Symptoms that have occurred to the TPU Node.
575 { # A Symptom instance.
576 &quot;createTime&quot;: &quot;A String&quot;, # Timestamp when the Symptom is created.
577 &quot;details&quot;: &quot;A String&quot;, # Detailed information of the current Symptom.
578 &quot;symptomType&quot;: &quot;A String&quot;, # Type of the Symptom.
579 &quot;workerId&quot;: &quot;A String&quot;, # A string used to uniquely distinguish a worker within a TPU node.
580 },
581 ],
582 &quot;tags&quot;: [ # Tags to apply to the TPU Node. Tags are used to identify valid sources or targets for network firewalls.
583 &quot;A String&quot;,
584 ],
585 &quot;upcomingMaintenance&quot;: { # Upcoming Maintenance notification information. # Output only. Upcoming maintenance on this TPU node.
586 &quot;canReschedule&quot;: True or False, # Indicates if the maintenance can be customer triggered.
587 &quot;latestWindowStartTime&quot;: &quot;A String&quot;, # The latest time for the planned maintenance window to start. This timestamp value is in RFC3339 text format.
588 &quot;maintenanceStatus&quot;: &quot;A String&quot;, # The status of the maintenance.
589 &quot;type&quot;: &quot;A String&quot;, # Defines the type of maintenance.
590 &quot;windowEndTime&quot;: &quot;A String&quot;, # The time by which the maintenance disruption will be completed. This timestamp value is in RFC3339 text format.
591 &quot;windowStartTime&quot;: &quot;A String&quot;, # The current start time of the maintenance window. This timestamp value is in RFC3339 text format.
592 },
593 },
594 ],
595 &quot;unreachable&quot;: [ # Locations that could not be reached.
596 &quot;A String&quot;,
597 ],
598 }</pre>
599 </div>
600
601 <div class="method">
602 <code class="details" id="list_next">list_next()</code>
603 <pre>Retrieves the next page of results.
604
605 Args:
606 previous_request: The request for the previous page. (required)
607 previous_response: The response from the request for the previous page. (required)
608
609 Returns:
610 A request object that you can call &#x27;execute()&#x27; on to request the next
611 page. Returns None if there are no more items in the collection.
612 </pre>
613 </div>
614
615 <div class="method">
616 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
617 <pre>Updates the configurations of a node.
618
619 Args:
620 name: string, Output only. Immutable. The name of the TPU. (required)
621 body: object, The request body.
622 The object takes the form of:
623
624 { # A TPU instance.
625 &quot;acceleratorConfig&quot;: { # A TPU accelerator configuration. # The AccleratorConfig for the TPU Node.
626 &quot;topology&quot;: &quot;A String&quot;, # Required. Topology of TPU in chips.
627 &quot;type&quot;: &quot;A String&quot;, # Required. Type of TPU.
628 },
629 &quot;acceleratorType&quot;: &quot;A String&quot;, # The type of hardware accelerators associated with this node.
630 &quot;apiVersion&quot;: &quot;A String&quot;, # Output only. The API version that created this Node.
631 &quot;autocheckpointEnabled&quot;: True or False, # Optional. Whether Autocheckpoint is enabled.
632 &quot;bootDiskConfig&quot;: { # Boot disk configurations. # Optional. Boot disk configuration.
633 &quot;customerEncryptionKey&quot;: { # Customer&#x27;s encryption key. # Optional. Customer encryption key for boot disk.
634 &quot;kmsKeyName&quot;: &quot;A String&quot;, # The name of the encryption key that is stored in Google Cloud KMS. For example: &quot;kmsKeyName&quot;: &quot;projects/KMS_PROJECT_ID/locations/REGION/keyRings/KEY_REGION/cryptoKeys/KEY The fully-qualifed key name may be returned for resource GET requests. For example: &quot;kmsKeyName&quot;: &quot;projects/KMS_PROJECT_ID/locations/REGION/keyRings/KEY_REGION/cryptoKeys/KEY/cryptoKeyVersions/1
635 },
636 &quot;diskSizeGb&quot;: &quot;A String&quot;, # Optional. Size of the boot disk in GB. It must be larger than or equal to the size of the image.
637 &quot;enableConfidentialCompute&quot;: True or False, # Optional. Whether the boot disk will be created with confidential compute mode.
638 &quot;provisionedIops&quot;: &quot;A String&quot;, # Optional. Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per second that the disk can handle. To learn more about IOPS, see [Provisioning persistent disk performance](https://cloud.google.com/compute/docs/disks/performance#provisioned-iops).
639 &quot;provisionedThroughput&quot;: &quot;A String&quot;, # Optional. Indicates how much throughput to provision for the disk. This sets the number of throughput MB per second that the disk can handle.
640 &quot;sourceImage&quot;: &quot;A String&quot;, # Optional. Image from which boot disk is to be created. If not specified, the default image for the runtime version will be used. Example: `projects/$PROJECT_ID/global/images/$IMAGE_NAME`.
641 &quot;storagePool&quot;: &quot;A String&quot;, # Optional. The storage pool in which the boot disk is created. You can provide this as a partial or full URL to the resource.
642 },
643 &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.
644 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the node was created.
645 &quot;dataDisks&quot;: [ # The additional data disks for the Node.
646 { # A node-attached disk resource.
647 &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.
648 &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;.
649 &quot;workerIds&quot;: [ # Optional. The list of worker IDs this disk is attached to.
650 &quot;A String&quot;,
651 ],
652 },
653 ],
654 &quot;description&quot;: &quot;A String&quot;, # The user-supplied description of the TPU. Maximum of 512 characters.
655 &quot;health&quot;: &quot;A String&quot;, # The health status of the TPU node.
656 &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.
657 &quot;id&quot;: &quot;A String&quot;, # Output only. The unique identifier for the TPU Node.
658 &quot;labels&quot;: { # Resource labels to represent user-provided metadata.
659 &quot;a_key&quot;: &quot;A String&quot;,
660 },
661 &quot;metadata&quot;: { # Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script
662 &quot;a_key&quot;: &quot;A String&quot;,
663 },
664 &quot;multisliceNode&quot;: True or False, # Output only. Whether the Node belongs to a Multislice group.
665 &quot;name&quot;: &quot;A String&quot;, # Output only. Immutable. The name of the TPU.
666 &quot;networkConfig&quot;: { # Network related configurations. # Network configurations for the TPU node. network_config and network_configs are mutually exclusive, you can only specify one of them. If both are specified, an error will be returned.
667 &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.
668 &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.
669 &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.
670 &quot;queueCount&quot;: 42, # Optional. Specifies networking queue count for TPU VM instance&#x27;s network interface.
671 &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.
672 },
673 &quot;networkConfigs&quot;: [ # Optional. Repeated network configurations for the TPU node. This field is used to specify multiple networks configs for the TPU node. network_config and network_configs are mutually exclusive, you can only specify one of them. If both are specified, an error will be returned.
674 { # Network related configurations.
675 &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.
676 &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.
677 &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.
678 &quot;queueCount&quot;: 42, # Optional. Specifies networking queue count for TPU VM instance&#x27;s network interface.
679 &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.
680 },
681 ],
682 &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.
683 { # A network endpoint over which a TPU worker can be reached.
684 &quot;accessConfig&quot;: { # An access config attached to the TPU worker. # The access config for the TPU worker.
685 &quot;externalIp&quot;: &quot;A String&quot;, # Output only. An external IP address associated with the TPU worker.
686 },
687 &quot;ipAddress&quot;: &quot;A String&quot;, # The internal IP address of this network endpoint.
688 &quot;port&quot;: 42, # The port of this network endpoint.
689 },
690 ],
691 &quot;queuedResource&quot;: &quot;A String&quot;, # Output only. The qualified name of the QueuedResource that requested this Node.
692 &quot;runtimeVersion&quot;: &quot;A String&quot;, # Required. The runtime version running in the Node.
693 &quot;schedulingConfig&quot;: { # Sets the scheduling options for this node. # The scheduling options for this node.
694 &quot;preemptible&quot;: True or False, # Defines whether the node is preemptible.
695 &quot;provisioningModel&quot;: &quot;A String&quot;, # Optional. Defines the provisioning model for the node.
696 &quot;reservationName&quot;: &quot;A String&quot;, # Optional. Name of the reservation in which the node should be provisioned.
697 &quot;reserved&quot;: True or False, # Whether the node is created under a reservation.
698 &quot;spot&quot;: True or False, # Optional. Defines whether the node is Spot VM.
699 &quot;terminationTimestamp&quot;: &quot;A String&quot;, # Output only. The time at which the node will be terminated.
700 },
701 &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.
702 &quot;email&quot;: &quot;A String&quot;, # Email address of the service account. If empty, default Compute service account will be used.
703 &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.
704 &quot;A String&quot;,
705 ],
706 },
707 &quot;shieldedInstanceConfig&quot;: { # A set of Shielded Instance options. # Shielded Instance options.
708 &quot;enableSecureBoot&quot;: True or False, # Defines whether the instance has Secure Boot enabled.
709 },
710 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state for the TPU Node.
711 &quot;symptoms&quot;: [ # Output only. The Symptoms that have occurred to the TPU Node.
712 { # A Symptom instance.
713 &quot;createTime&quot;: &quot;A String&quot;, # Timestamp when the Symptom is created.
714 &quot;details&quot;: &quot;A String&quot;, # Detailed information of the current Symptom.
715 &quot;symptomType&quot;: &quot;A String&quot;, # Type of the Symptom.
716 &quot;workerId&quot;: &quot;A String&quot;, # A string used to uniquely distinguish a worker within a TPU node.
717 },
718 ],
719 &quot;tags&quot;: [ # Tags to apply to the TPU Node. Tags are used to identify valid sources or targets for network firewalls.
720 &quot;A String&quot;,
721 ],
722 &quot;upcomingMaintenance&quot;: { # Upcoming Maintenance notification information. # Output only. Upcoming maintenance on this TPU node.
723 &quot;canReschedule&quot;: True or False, # Indicates if the maintenance can be customer triggered.
724 &quot;latestWindowStartTime&quot;: &quot;A String&quot;, # The latest time for the planned maintenance window to start. This timestamp value is in RFC3339 text format.
725 &quot;maintenanceStatus&quot;: &quot;A String&quot;, # The status of the maintenance.
726 &quot;type&quot;: &quot;A String&quot;, # Defines the type of maintenance.
727 &quot;windowEndTime&quot;: &quot;A String&quot;, # The time by which the maintenance disruption will be completed. This timestamp value is in RFC3339 text format.
728 &quot;windowStartTime&quot;: &quot;A String&quot;, # The current start time of the maintenance window. This timestamp value is in RFC3339 text format.
729 },
730 }
731
732 updateMask: string, Required. Mask of fields from Node to update. Supported fields: [description, tags, labels, metadata, network_config.enable_external_ips].
733 x__xgafv: string, V1 error format.
734 Allowed values
735 1 - v1 error format
736 2 - v2 error format
737
738 Returns:
739 An object of the form:
740
741 { # This resource represents a long-running operation that is the result of a network API call.
742 &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.
743 &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.
744 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
745 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
746 {
747 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
748 },
749 ],
750 &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.
751 },
752 &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.
753 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
754 },
755 &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}`.
756 &quot;response&quot;: { # The normal, successful response of the operation. 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`.
757 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
758 },
759 }</pre>
760 </div>
761
762 <div class="method">
763 <code class="details" id="performMaintenance">performMaintenance(name, body=None, x__xgafv=None)</code>
764 <pre>Perform manual maintenance on a node.
765
766 Args:
767 name: string, Required. The resource name. (required)
768 body: object, The request body.
769 The object takes the form of:
770
771 { # Request for PerformMaintenance.
772 }
773
774 x__xgafv: string, V1 error format.
775 Allowed values
776 1 - v1 error format
777 2 - v2 error format
778
779 Returns:
780 An object of the form:
781
782 { # This resource represents a long-running operation that is the result of a network API call.
783 &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.
784 &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.
785 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
786 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
787 {
788 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
789 },
790 ],
791 &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.
792 },
793 &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.
794 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
795 },
796 &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}`.
797 &quot;response&quot;: { # The normal, successful response of the operation. 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`.
798 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
799 },
800 }</pre>
801 </div>
802
803 <div class="method">
804 <code class="details" id="simulateMaintenanceEvent">simulateMaintenanceEvent(name, body=None, x__xgafv=None)</code>
805 <pre>Simulates a maintenance event.
806
807 Args:
808 name: string, Required. The resource name. (required)
809 body: object, The request body.
810 The object takes the form of:
811
812 { # Request for SimulateMaintenanceEvent.
813 &quot;workerIds&quot;: [ # The 0-based worker ID. If it is empty, worker ID 0 will be selected for maintenance event simulation. A maintenance event will only be fired on the first specified worker ID. Future implementations may support firing on multiple workers.
814 &quot;A String&quot;,
815 ],
816 }
817
818 x__xgafv: string, V1 error format.
819 Allowed values
820 1 - v1 error format
821 2 - v2 error format
822
823 Returns:
824 An object of the form:
825
826 { # This resource represents a long-running operation that is the result of a network API call.
827 &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.
828 &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.
829 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
830 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
831 {
832 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
833 },
834 ],
835 &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.
836 },
837 &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.
838 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
839 },
840 &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}`.
841 &quot;response&quot;: { # The normal, successful response of the operation. 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`.
842 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
843 },
844 }</pre>
845 </div>
846
847 <div class="method">
848 <code class="details" id="start">start(name, body=None, x__xgafv=None)</code>
849 <pre>Starts a node.
850
851 Args:
852 name: string, Required. The resource name. (required)
853 body: object, The request body.
854 The object takes the form of:
855
856 { # Request for StartNode.
857 }
858
859 x__xgafv: string, V1 error format.
860 Allowed values
861 1 - v1 error format
862 2 - v2 error format
863
864 Returns:
865 An object of the form:
866
867 { # This resource represents a long-running operation that is the result of a network API call.
868 &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.
869 &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.
870 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
871 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
872 {
873 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
874 },
875 ],
876 &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.
877 },
878 &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.
879 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
880 },
881 &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}`.
882 &quot;response&quot;: { # The normal, successful response of the operation. 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`.
883 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
884 },
885 }</pre>
886 </div>
887
888 <div class="method">
889 <code class="details" id="stop">stop(name, body=None, x__xgafv=None)</code>
890 <pre>Stops a node. This operation is only available with single TPU nodes.
891
892 Args:
893 name: string, Required. The resource name. (required)
894 body: object, The request body.
895 The object takes the form of:
896
897 { # Request for StopNode.
898 }
899
900 x__xgafv: string, V1 error format.
901 Allowed values
902 1 - v1 error format
903 2 - v2 error format
904
905 Returns:
906 An object of the form:
907
908 { # This resource represents a long-running operation that is the result of a network API call.
909 &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.
910 &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.
911 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
912 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
913 {
914 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
915 },
916 ],
917 &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.
918 },
919 &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.
920 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
921 },
922 &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}`.
923 &quot;response&quot;: { # The normal, successful response of the operation. 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`.
924 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
925 },
926 }</pre>
927 </div>
928
929 </body></html>