blob: 65c864127c6d92a9b57cf7294ec5a1bccd4e97d0 [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="tpu_v1alpha1.html">Cloud TPU API</a> . <a href="tpu_v1alpha1.projects.html">projects</a> . <a href="tpu_v1alpha1.projects.locations.html">locations</a> . <a href="tpu_v1alpha1.projects.locations.nodes.html">nodes</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#create">create(parent, body=None, nodeId=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070082<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">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -080090 <code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070091<p class="firstline">Lists nodes.</p>
92<p class="toc_element">
93 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
94<p class="firstline">Retrieves the next page of results.</p>
95<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070096 <code><a href="#reimage">reimage(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070097<p class="firstline">Reimages a node's OS.</p>
98<p class="toc_element">
99 <code><a href="#start">start(name, body=None, x__xgafv=None)</a></code></p>
100<p class="firstline">Starts a node.</p>
101<p class="toc_element">
102 <code><a href="#stop">stop(name, body=None, x__xgafv=None)</a></code></p>
103<p class="firstline">Stops a node.</p>
104<h3>Method Details</h3>
105<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700106 <code class="details" id="close">close()</code>
107 <pre>Close httplib2 connections.</pre>
108</div>
109
110<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700111 <code class="details" id="create">create(parent, body=None, nodeId=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700112 <pre>Creates a node.
113
114Args:
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700115 parent: string, Required. The parent resource name. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700116 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700117 The object takes the form of:
118
119{ # A TPU instance.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800120 &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.
121 &quot;networkEndpoints&quot;: [ # Output only. The network endpoints where TPU workers can be accessed and sent work. It is recommended that Tensorflow clients of the node reach out to the 0th entry in this map first.
122 { # A network endpoint over which a TPU worker can be reached.
123 &quot;ipAddress&quot;: &quot;A String&quot;, # The IP address of this network endpoint.
124 &quot;port&quot;: 42, # The port of this network endpoint.
125 },
126 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800127 &quot;schedulingConfig&quot;: { # Sets the scheduling options for this node. # The scheduling options for this node.
128 &quot;preemptible&quot;: True or False, # Defines whether the node is preemptible.
129 &quot;reserved&quot;: True or False, # Whether the node is created under a reservation.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700130 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800131 &quot;useServiceNetworking&quot;: True or False, # Whether the VPC peering for the node is set up through Service Networking API. The VPC Peering should be set up before provisioning the node. If this field is set, cidr_block field should not be specified. If the network, that you want to peer the TPU Node to, is Shared VPC networks, the node must be created with this this field enabled.
132 &quot;network&quot;: &quot;A String&quot;, # The name of a network they wish to peer the TPU node to. It must be a preexisting Compute Engine network inside of the project on which this API has been activated. If none is provided, &quot;default&quot; will be used.
133 &quot;health&quot;: &quot;A String&quot;, # The health status of the TPU node.
134 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state for the TPU Node.
135 &quot;serviceAccount&quot;: &quot;A String&quot;, # Output only. The service account used to run the tensor flow services within the node. To share resources, including Google Cloud Storage data, with the Tensorflow job running in the Node, this account must have permissions to that data.
136 &quot;acceleratorType&quot;: &quot;A String&quot;, # Required. The type of hardware accelerators associated with this node.
137 &quot;description&quot;: &quot;A String&quot;, # The user-supplied description of the TPU. Maximum of 512 characters.
138 &quot;name&quot;: &quot;A String&quot;, # Output only. Immutable. The name of the TPU
139 &quot;ipAddress&quot;: &quot;A String&quot;, # Output only. DEPRECATED! Use network_endpoints instead. The network address for the TPU Node as visible to Compute Engine instances.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800140 &quot;labels&quot;: { # Resource labels to represent user-provided metadata.
141 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700142 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800143 &quot;tensorflowVersion&quot;: &quot;A String&quot;, # Required. The version of Tensorflow running in the Node.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800144 &quot;symptoms&quot;: [ # Output only. The Symptoms that have occurred to the TPU Node.
145 { # A Symptom instance.
146 &quot;workerId&quot;: &quot;A String&quot;, # A string used to uniquely distinguish a worker within a TPU node.
147 &quot;details&quot;: &quot;A String&quot;, # Detailed information of the current Symptom.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800148 &quot;symptomType&quot;: &quot;A String&quot;, # Type of the Symptom.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800149 &quot;createTime&quot;: &quot;A String&quot;, # Timestamp when the Symptom is created.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800150 },
151 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800152 &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.
153 &quot;port&quot;: &quot;A String&quot;, # Output only. DEPRECATED! Use network_endpoints instead. The network port for the TPU Node as visible to Compute Engine instances.
154 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the node was created.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800155 }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700156
157 nodeId: string, The unqualified resource name.
158 x__xgafv: string, V1 error format.
159 Allowed values
160 1 - v1 error format
161 2 - v2 error format
162
163Returns:
164 An object of the form:
165
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700166 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800167 &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.
168 &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}`.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700169 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800170 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700171 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
Bu Sun Kim65020912020-05-20 12:08:20 -0700172 {
173 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
174 },
175 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800176 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800177 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800178 &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.
179 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700180 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800181 &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`.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700182 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
183 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700184 }</pre>
185</div>
186
187<div class="method">
188 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
189 <pre>Deletes a node.
190
191Args:
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700192 name: string, Required. The resource name. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700193 x__xgafv: string, V1 error format.
194 Allowed values
195 1 - v1 error format
196 2 - v2 error format
197
198Returns:
199 An object of the form:
200
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700201 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800202 &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.
203 &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}`.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700204 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800205 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700206 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
Bu Sun Kim65020912020-05-20 12:08:20 -0700207 {
208 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
209 },
210 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800211 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800212 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800213 &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.
214 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700215 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800216 &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`.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700217 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
218 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700219 }</pre>
220</div>
221
222<div class="method">
223 <code class="details" id="get">get(name, x__xgafv=None)</code>
224 <pre>Gets the details of a node.
225
226Args:
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700227 name: string, Required. The resource name. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700228 x__xgafv: string, V1 error format.
229 Allowed values
230 1 - v1 error format
231 2 - v2 error format
232
233Returns:
234 An object of the form:
235
236 { # A TPU instance.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800237 &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.
238 &quot;networkEndpoints&quot;: [ # Output only. The network endpoints where TPU workers can be accessed and sent work. It is recommended that Tensorflow clients of the node reach out to the 0th entry in this map first.
239 { # A network endpoint over which a TPU worker can be reached.
240 &quot;ipAddress&quot;: &quot;A String&quot;, # The IP address of this network endpoint.
241 &quot;port&quot;: 42, # The port of this network endpoint.
242 },
243 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800244 &quot;schedulingConfig&quot;: { # Sets the scheduling options for this node. # The scheduling options for this node.
245 &quot;preemptible&quot;: True or False, # Defines whether the node is preemptible.
246 &quot;reserved&quot;: True or False, # Whether the node is created under a reservation.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700247 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800248 &quot;useServiceNetworking&quot;: True or False, # Whether the VPC peering for the node is set up through Service Networking API. The VPC Peering should be set up before provisioning the node. If this field is set, cidr_block field should not be specified. If the network, that you want to peer the TPU Node to, is Shared VPC networks, the node must be created with this this field enabled.
249 &quot;network&quot;: &quot;A String&quot;, # The name of a network they wish to peer the TPU node to. It must be a preexisting Compute Engine network inside of the project on which this API has been activated. If none is provided, &quot;default&quot; will be used.
250 &quot;health&quot;: &quot;A String&quot;, # The health status of the TPU node.
251 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state for the TPU Node.
252 &quot;serviceAccount&quot;: &quot;A String&quot;, # Output only. The service account used to run the tensor flow services within the node. To share resources, including Google Cloud Storage data, with the Tensorflow job running in the Node, this account must have permissions to that data.
253 &quot;acceleratorType&quot;: &quot;A String&quot;, # Required. The type of hardware accelerators associated with this node.
254 &quot;description&quot;: &quot;A String&quot;, # The user-supplied description of the TPU. Maximum of 512 characters.
255 &quot;name&quot;: &quot;A String&quot;, # Output only. Immutable. The name of the TPU
256 &quot;ipAddress&quot;: &quot;A String&quot;, # Output only. DEPRECATED! Use network_endpoints instead. The network address for the TPU Node as visible to Compute Engine instances.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800257 &quot;labels&quot;: { # Resource labels to represent user-provided metadata.
258 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700259 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800260 &quot;tensorflowVersion&quot;: &quot;A String&quot;, # Required. The version of Tensorflow running in the Node.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800261 &quot;symptoms&quot;: [ # Output only. The Symptoms that have occurred to the TPU Node.
262 { # A Symptom instance.
263 &quot;workerId&quot;: &quot;A String&quot;, # A string used to uniquely distinguish a worker within a TPU node.
264 &quot;details&quot;: &quot;A String&quot;, # Detailed information of the current Symptom.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800265 &quot;symptomType&quot;: &quot;A String&quot;, # Type of the Symptom.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800266 &quot;createTime&quot;: &quot;A String&quot;, # Timestamp when the Symptom is created.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800267 },
268 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800269 &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.
270 &quot;port&quot;: &quot;A String&quot;, # Output only. DEPRECATED! Use network_endpoints instead. The network port for the TPU Node as visible to Compute Engine instances.
271 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the node was created.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800272 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700273</div>
274
275<div class="method">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800276 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700277 <pre>Lists nodes.
278
279Args:
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700280 parent: string, Required. The parent resource name. (required)
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800281 pageSize: integer, The maximum number of items to return.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800282 pageToken: string, The next_page_token value returned from a previous List request, if any.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700283 x__xgafv: string, V1 error format.
284 Allowed values
285 1 - v1 error format
286 2 - v2 error format
287
288Returns:
289 An object of the form:
290
291 { # Response for ListNodes.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700292 &quot;nextPageToken&quot;: &quot;A String&quot;, # The next page token or empty if none.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700293 &quot;unreachable&quot;: [ # Locations that could not be reached.
294 &quot;A String&quot;,
295 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800296 &quot;nodes&quot;: [ # The listed nodes.
297 { # A TPU instance.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800298 &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.
299 &quot;networkEndpoints&quot;: [ # Output only. The network endpoints where TPU workers can be accessed and sent work. It is recommended that Tensorflow clients of the node reach out to the 0th entry in this map first.
300 { # A network endpoint over which a TPU worker can be reached.
301 &quot;ipAddress&quot;: &quot;A String&quot;, # The IP address of this network endpoint.
302 &quot;port&quot;: 42, # The port of this network endpoint.
303 },
304 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800305 &quot;schedulingConfig&quot;: { # Sets the scheduling options for this node. # The scheduling options for this node.
306 &quot;preemptible&quot;: True or False, # Defines whether the node is preemptible.
307 &quot;reserved&quot;: True or False, # Whether the node is created under a reservation.
308 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800309 &quot;useServiceNetworking&quot;: True or False, # Whether the VPC peering for the node is set up through Service Networking API. The VPC Peering should be set up before provisioning the node. If this field is set, cidr_block field should not be specified. If the network, that you want to peer the TPU Node to, is Shared VPC networks, the node must be created with this this field enabled.
310 &quot;network&quot;: &quot;A String&quot;, # The name of a network they wish to peer the TPU node to. It must be a preexisting Compute Engine network inside of the project on which this API has been activated. If none is provided, &quot;default&quot; will be used.
311 &quot;health&quot;: &quot;A String&quot;, # The health status of the TPU node.
312 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state for the TPU Node.
313 &quot;serviceAccount&quot;: &quot;A String&quot;, # Output only. The service account used to run the tensor flow services within the node. To share resources, including Google Cloud Storage data, with the Tensorflow job running in the Node, this account must have permissions to that data.
314 &quot;acceleratorType&quot;: &quot;A String&quot;, # Required. The type of hardware accelerators associated with this node.
315 &quot;description&quot;: &quot;A String&quot;, # The user-supplied description of the TPU. Maximum of 512 characters.
316 &quot;name&quot;: &quot;A String&quot;, # Output only. Immutable. The name of the TPU
317 &quot;ipAddress&quot;: &quot;A String&quot;, # Output only. DEPRECATED! Use network_endpoints instead. The network address for the TPU Node as visible to Compute Engine instances.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800318 &quot;labels&quot;: { # Resource labels to represent user-provided metadata.
319 &quot;a_key&quot;: &quot;A String&quot;,
320 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800321 &quot;tensorflowVersion&quot;: &quot;A String&quot;, # Required. The version of Tensorflow running in the Node.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800322 &quot;symptoms&quot;: [ # Output only. The Symptoms that have occurred to the TPU Node.
323 { # A Symptom instance.
324 &quot;workerId&quot;: &quot;A String&quot;, # A string used to uniquely distinguish a worker within a TPU node.
325 &quot;details&quot;: &quot;A String&quot;, # Detailed information of the current Symptom.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800326 &quot;symptomType&quot;: &quot;A String&quot;, # Type of the Symptom.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800327 &quot;createTime&quot;: &quot;A String&quot;, # Timestamp when the Symptom is created.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800328 },
329 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800330 &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.
331 &quot;port&quot;: &quot;A String&quot;, # Output only. DEPRECATED! Use network_endpoints instead. The network port for the TPU Node as visible to Compute Engine instances.
332 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the node was created.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800333 },
334 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700335 }</pre>
336</div>
337
338<div class="method">
339 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
340 <pre>Retrieves the next page of results.
341
342Args:
343 previous_request: The request for the previous page. (required)
344 previous_response: The response from the request for the previous page. (required)
345
346Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700347 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700348 page. Returns None if there are no more items in the collection.
349 </pre>
350</div>
351
352<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700353 <code class="details" id="reimage">reimage(name, body=None, x__xgafv=None)</code>
Bu Sun Kim65020912020-05-20 12:08:20 -0700354 <pre>Reimages a node&#x27;s OS.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700355
356Args:
357 name: string, The resource name. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700358 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700359 The object takes the form of:
360
361{ # Request for ReimageNode.
Bu Sun Kim65020912020-05-20 12:08:20 -0700362 &quot;tensorflowVersion&quot;: &quot;A String&quot;, # The version for reimage to create.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700363 }
364
365 x__xgafv: string, V1 error format.
366 Allowed values
367 1 - v1 error format
368 2 - v2 error format
369
370Returns:
371 An object of the form:
372
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700373 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800374 &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.
375 &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}`.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700376 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800377 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700378 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
Bu Sun Kim65020912020-05-20 12:08:20 -0700379 {
380 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
381 },
382 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800383 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800384 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800385 &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.
386 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700387 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800388 &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`.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700389 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
390 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700391 }</pre>
392</div>
393
394<div class="method">
395 <code class="details" id="start">start(name, body=None, x__xgafv=None)</code>
396 <pre>Starts a node.
397
398Args:
399 name: string, The resource name. (required)
400 body: object, The request body.
401 The object takes the form of:
402
403{ # Request for StartNode.
404 }
405
406 x__xgafv: string, V1 error format.
407 Allowed values
408 1 - v1 error format
409 2 - v2 error format
410
411Returns:
412 An object of the form:
413
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700414 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800415 &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.
416 &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}`.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700417 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800418 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700419 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
Bu Sun Kim65020912020-05-20 12:08:20 -0700420 {
421 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
422 },
423 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800424 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800425 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800426 &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.
427 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700428 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800429 &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`.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700430 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
431 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700432 }</pre>
433</div>
434
435<div class="method">
436 <code class="details" id="stop">stop(name, body=None, x__xgafv=None)</code>
437 <pre>Stops a node.
438
439Args:
440 name: string, The resource name. (required)
441 body: object, The request body.
442 The object takes the form of:
443
444{ # Request for StopNode.
445 }
446
447 x__xgafv: string, V1 error format.
448 Allowed values
449 1 - v1 error format
450 2 - v2 error format
451
452Returns:
453 An object of the form:
454
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700455 { # This resource represents a long-running operation that is the result of a network API call.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800456 &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.
457 &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}`.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700458 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800459 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700460 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
Bu Sun Kim65020912020-05-20 12:08:20 -0700461 {
462 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
463 },
464 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800465 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800466 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800467 &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.
468 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700469 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800470 &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`.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700471 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
472 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700473 }</pre>
474</div>
475
476</body></html>