@maxim_mazurok/gapi.client.tpu-v2alpha1 0.0.20220725
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +1111 -0
- package/package.json +20 -0
- package/readme.md +68 -0
- package/tests.ts +278 -0
- package/tsconfig.json +18 -0
- package/tslint.json +6 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,1111 @@
|
|
|
1
|
+
/* Type definitions for non-npm package Cloud TPU API v2alpha1 0.0 */
|
|
2
|
+
// Project: https://cloud.google.com/tpu/
|
|
3
|
+
// Definitions by: Maxim Mazurok <https://github.com/Maxim-Mazurok>
|
|
4
|
+
// Nick Amoscato <https://github.com/namoscato>
|
|
5
|
+
// Declan Vong <https://github.com/declanvong>
|
|
6
|
+
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
7
|
+
// TypeScript Version: 2.8
|
|
8
|
+
|
|
9
|
+
// IMPORTANT
|
|
10
|
+
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
11
|
+
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
12
|
+
// Generated from: https://tpu.googleapis.com/$discovery/rest?version=v2alpha1
|
|
13
|
+
// Revision: 20220725
|
|
14
|
+
|
|
15
|
+
/// <reference types="gapi.client" />
|
|
16
|
+
|
|
17
|
+
declare namespace gapi.client {
|
|
18
|
+
/** Load Cloud TPU API v2alpha1 */
|
|
19
|
+
function load(urlOrObject: "https://tpu.googleapis.com/$discovery/rest?version=v2alpha1"): Promise<void>;
|
|
20
|
+
/** @deprecated Please load APIs with discovery documents. */
|
|
21
|
+
function load(name: "tpu", version: "v2alpha1"): Promise<void>;
|
|
22
|
+
/** @deprecated Please load APIs with discovery documents. */
|
|
23
|
+
function load(name: "tpu", version: "v2alpha1", callback: () => any): void;
|
|
24
|
+
|
|
25
|
+
namespace tpu {
|
|
26
|
+
interface AcceleratorType {
|
|
27
|
+
/** The resource name. */
|
|
28
|
+
name?: string;
|
|
29
|
+
/** the accelerator type. */
|
|
30
|
+
type?: string;
|
|
31
|
+
}
|
|
32
|
+
interface AccessConfig {
|
|
33
|
+
/** Output only. An external IP address associated with the TPU worker. */
|
|
34
|
+
externalIp?: string;
|
|
35
|
+
}
|
|
36
|
+
interface AttachedDisk {
|
|
37
|
+
/** The mode in which to attach this disk. If not specified, the default is READ_WRITE mode. Only applicable to data_disks. */
|
|
38
|
+
mode?: string;
|
|
39
|
+
/** Specifies the full path to an existing disk. For example: "projects/my-project/zones/us-central1-c/disks/my-disk". */
|
|
40
|
+
sourceDisk?: string;
|
|
41
|
+
}
|
|
42
|
+
// tslint:disable-next-line:no-empty-interface
|
|
43
|
+
interface Empty {
|
|
44
|
+
}
|
|
45
|
+
// tslint:disable-next-line:no-empty-interface
|
|
46
|
+
interface GenerateServiceIdentityRequest {
|
|
47
|
+
}
|
|
48
|
+
interface GenerateServiceIdentityResponse {
|
|
49
|
+
/** ServiceIdentity that was created or retrieved. */
|
|
50
|
+
identity?: ServiceIdentity;
|
|
51
|
+
}
|
|
52
|
+
interface GetGuestAttributesRequest {
|
|
53
|
+
/** The guest attributes path to be queried. */
|
|
54
|
+
queryPath?: string;
|
|
55
|
+
/** The 0-based worker ID. If it is empty, all workers' GuestAttributes will be returned. */
|
|
56
|
+
workerIds?: string[];
|
|
57
|
+
}
|
|
58
|
+
interface GetGuestAttributesResponse {
|
|
59
|
+
/** The guest attributes for the TPU workers. */
|
|
60
|
+
guestAttributes?: GuestAttributes[];
|
|
61
|
+
}
|
|
62
|
+
interface GuestAttributes {
|
|
63
|
+
/** The path to be queried. This can be the default namespace ('/') or a nested namespace ('/\/') or a specified key ('/\/\') */
|
|
64
|
+
queryPath?: string;
|
|
65
|
+
/** The value of the requested queried path. */
|
|
66
|
+
queryValue?: GuestAttributesValue;
|
|
67
|
+
}
|
|
68
|
+
interface GuestAttributesEntry {
|
|
69
|
+
/** Key for the guest attribute entry. */
|
|
70
|
+
key?: string;
|
|
71
|
+
/** Namespace for the guest attribute entry. */
|
|
72
|
+
namespace?: string;
|
|
73
|
+
/** Value for the guest attribute entry. */
|
|
74
|
+
value?: string;
|
|
75
|
+
}
|
|
76
|
+
interface GuestAttributesValue {
|
|
77
|
+
/** The list of guest attributes entries. */
|
|
78
|
+
items?: GuestAttributesEntry[];
|
|
79
|
+
}
|
|
80
|
+
interface ListAcceleratorTypesResponse {
|
|
81
|
+
/** The listed nodes. */
|
|
82
|
+
acceleratorTypes?: AcceleratorType[];
|
|
83
|
+
/** The next page token or empty if none. */
|
|
84
|
+
nextPageToken?: string;
|
|
85
|
+
/** Locations that could not be reached. */
|
|
86
|
+
unreachable?: string[];
|
|
87
|
+
}
|
|
88
|
+
interface ListLocationsResponse {
|
|
89
|
+
/** A list of locations that matches the specified filter in the request. */
|
|
90
|
+
locations?: Location[];
|
|
91
|
+
/** The standard List next-page token. */
|
|
92
|
+
nextPageToken?: string;
|
|
93
|
+
}
|
|
94
|
+
interface ListNodesResponse {
|
|
95
|
+
/** The next page token or empty if none. */
|
|
96
|
+
nextPageToken?: string;
|
|
97
|
+
/** The listed nodes. */
|
|
98
|
+
nodes?: Node[];
|
|
99
|
+
/** Locations that could not be reached. */
|
|
100
|
+
unreachable?: string[];
|
|
101
|
+
}
|
|
102
|
+
interface ListOperationsResponse {
|
|
103
|
+
/** The standard List next-page token. */
|
|
104
|
+
nextPageToken?: string;
|
|
105
|
+
/** A list of operations that matches the specified filter in the request. */
|
|
106
|
+
operations?: Operation[];
|
|
107
|
+
}
|
|
108
|
+
interface ListRuntimeVersionsResponse {
|
|
109
|
+
/** The next page token or empty if none. */
|
|
110
|
+
nextPageToken?: string;
|
|
111
|
+
/** The listed nodes. */
|
|
112
|
+
runtimeVersions?: RuntimeVersion[];
|
|
113
|
+
/** Locations that could not be reached. */
|
|
114
|
+
unreachable?: string[];
|
|
115
|
+
}
|
|
116
|
+
interface Location {
|
|
117
|
+
/** The friendly name for this location, typically a nearby city name. For example, "Tokyo". */
|
|
118
|
+
displayName?: string;
|
|
119
|
+
/** Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"} */
|
|
120
|
+
labels?: { [P in string]: string };
|
|
121
|
+
/** The canonical id for this location. For example: `"us-east1"`. */
|
|
122
|
+
locationId?: string;
|
|
123
|
+
/** Service-specific metadata. For example the available capacity at the given location. */
|
|
124
|
+
metadata?: { [P in string]: any };
|
|
125
|
+
/** Resource name for the location, which may vary between implementations. For example: `"projects/example-project/locations/us-east1"` */
|
|
126
|
+
name?: string;
|
|
127
|
+
}
|
|
128
|
+
interface NetworkConfig {
|
|
129
|
+
/** 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. */
|
|
130
|
+
canIpForward?: boolean;
|
|
131
|
+
/** 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. */
|
|
132
|
+
enableExternalIps?: boolean;
|
|
133
|
+
/** The name of the network for the TPU node. It must be a preexisting Google Compute Engine network. If none is provided, "default" will be used. */
|
|
134
|
+
network?: string;
|
|
135
|
+
/** The name of the subnetwork for the TPU node. It must be a preexisting Google Compute Engine subnetwork. If none is provided, "default" will be used. */
|
|
136
|
+
subnetwork?: string;
|
|
137
|
+
}
|
|
138
|
+
interface NetworkEndpoint {
|
|
139
|
+
/** The access config for the TPU worker. */
|
|
140
|
+
accessConfig?: AccessConfig;
|
|
141
|
+
/** The internal IP address of this network endpoint. */
|
|
142
|
+
ipAddress?: string;
|
|
143
|
+
/** The port of this network endpoint. */
|
|
144
|
+
port?: number;
|
|
145
|
+
}
|
|
146
|
+
interface Node {
|
|
147
|
+
/** The type of hardware accelerators associated with this node. */
|
|
148
|
+
acceleratorType?: string;
|
|
149
|
+
/** Output only. The API version that created this Node. */
|
|
150
|
+
apiVersion?: string;
|
|
151
|
+
/**
|
|
152
|
+
* 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
|
|
153
|
+
* 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
|
|
154
|
+
* conflicts with any subnetworks in the user's provided network, or the provided network is peered with another network that is using that CIDR block.
|
|
155
|
+
*/
|
|
156
|
+
cidrBlock?: string;
|
|
157
|
+
/** Output only. The time when the node was created. */
|
|
158
|
+
createTime?: string;
|
|
159
|
+
/** The additional data disks for the Node. */
|
|
160
|
+
dataDisks?: AttachedDisk[];
|
|
161
|
+
/** The user-supplied description of the TPU. Maximum of 512 characters. */
|
|
162
|
+
description?: string;
|
|
163
|
+
/** The health status of the TPU node. */
|
|
164
|
+
health?: string;
|
|
165
|
+
/** Output only. If this field is populated, it contains a description of why the TPU Node is unhealthy. */
|
|
166
|
+
healthDescription?: string;
|
|
167
|
+
/** Output only. The unique identifier for the TPU Node. */
|
|
168
|
+
id?: string;
|
|
169
|
+
/** Resource labels to represent user-provided metadata. */
|
|
170
|
+
labels?: { [P in string]: string };
|
|
171
|
+
/** Custom metadata to apply to the TPU Node. Can set startup-script and shutdown-script */
|
|
172
|
+
metadata?: { [P in string]: string };
|
|
173
|
+
/** Output only. Immutable. The name of the TPU. */
|
|
174
|
+
name?: string;
|
|
175
|
+
/** Network configurations for the TPU node. */
|
|
176
|
+
networkConfig?: NetworkConfig;
|
|
177
|
+
/** 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. */
|
|
178
|
+
networkEndpoints?: NetworkEndpoint[];
|
|
179
|
+
/** Required. The runtime version running in the Node. */
|
|
180
|
+
runtimeVersion?: string;
|
|
181
|
+
/** The scheduling options for this node. */
|
|
182
|
+
schedulingConfig?: SchedulingConfig;
|
|
183
|
+
/** 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. */
|
|
184
|
+
serviceAccount?: ServiceAccount;
|
|
185
|
+
/** Output only. The current state for the TPU Node. */
|
|
186
|
+
state?: string;
|
|
187
|
+
/** Output only. The Symptoms that have occurred to the TPU Node. */
|
|
188
|
+
symptoms?: Symptom[];
|
|
189
|
+
/** Tags to apply to the TPU Node. Tags are used to identify valid sources or targets for network firewalls. */
|
|
190
|
+
tags?: string[];
|
|
191
|
+
}
|
|
192
|
+
interface Operation {
|
|
193
|
+
/** If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. */
|
|
194
|
+
done?: boolean;
|
|
195
|
+
/** The error result of the operation in case of failure or cancellation. */
|
|
196
|
+
error?: Status;
|
|
197
|
+
/**
|
|
198
|
+
* 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
|
|
199
|
+
* metadata. Any method that returns a long-running operation should document the metadata type, if any.
|
|
200
|
+
*/
|
|
201
|
+
metadata?: { [P in string]: any };
|
|
202
|
+
/**
|
|
203
|
+
* 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
|
|
204
|
+
* with `operations/{unique_id}`.
|
|
205
|
+
*/
|
|
206
|
+
name?: string;
|
|
207
|
+
/**
|
|
208
|
+
* 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
|
|
209
|
+
* 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
|
|
210
|
+
* original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
|
|
211
|
+
*/
|
|
212
|
+
response?: { [P in string]: any };
|
|
213
|
+
}
|
|
214
|
+
interface OperationMetadata {
|
|
215
|
+
/** API version. */
|
|
216
|
+
apiVersion?: string;
|
|
217
|
+
/** Specifies if cancellation was requested for the operation. */
|
|
218
|
+
cancelRequested?: boolean;
|
|
219
|
+
/** The time the operation was created. */
|
|
220
|
+
createTime?: string;
|
|
221
|
+
/** The time the operation finished running. */
|
|
222
|
+
endTime?: string;
|
|
223
|
+
/** Human-readable status of the operation, if any. */
|
|
224
|
+
statusDetail?: string;
|
|
225
|
+
/** Target of the operation - for example projects/project-1/connectivityTests/test-1 */
|
|
226
|
+
target?: string;
|
|
227
|
+
/** Name of the verb executed by the operation. */
|
|
228
|
+
verb?: string;
|
|
229
|
+
}
|
|
230
|
+
interface RuntimeVersion {
|
|
231
|
+
/** The resource name. */
|
|
232
|
+
name?: string;
|
|
233
|
+
/** The runtime version. */
|
|
234
|
+
version?: string;
|
|
235
|
+
}
|
|
236
|
+
interface SchedulingConfig {
|
|
237
|
+
/** Defines whether the node is preemptible. */
|
|
238
|
+
preemptible?: boolean;
|
|
239
|
+
/** Whether the node is created under a reservation. */
|
|
240
|
+
reserved?: boolean;
|
|
241
|
+
}
|
|
242
|
+
interface ServiceAccount {
|
|
243
|
+
/** Email address of the service account. If empty, default Compute service account will be used. */
|
|
244
|
+
email?: string;
|
|
245
|
+
/** The list of scopes to be made available for this service account. If empty, access to all Cloud APIs will be allowed. */
|
|
246
|
+
scope?: string[];
|
|
247
|
+
}
|
|
248
|
+
interface ServiceIdentity {
|
|
249
|
+
/** The email address of the service identity. */
|
|
250
|
+
email?: string;
|
|
251
|
+
}
|
|
252
|
+
interface SimulateMaintenanceEventRequest {
|
|
253
|
+
/**
|
|
254
|
+
* 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
|
|
255
|
+
* implementations may support firing on multiple workers.
|
|
256
|
+
*/
|
|
257
|
+
workerIds?: string[];
|
|
258
|
+
}
|
|
259
|
+
// tslint:disable-next-line:no-empty-interface
|
|
260
|
+
interface StartNodeRequest {
|
|
261
|
+
}
|
|
262
|
+
interface Status {
|
|
263
|
+
/** The status code, which should be an enum value of google.rpc.Code. */
|
|
264
|
+
code?: number;
|
|
265
|
+
/** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
|
|
266
|
+
details?: Array<{ [P in string]: any }>;
|
|
267
|
+
/**
|
|
268
|
+
* 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
|
|
269
|
+
* client.
|
|
270
|
+
*/
|
|
271
|
+
message?: string;
|
|
272
|
+
}
|
|
273
|
+
// tslint:disable-next-line:no-empty-interface
|
|
274
|
+
interface StopNodeRequest {
|
|
275
|
+
}
|
|
276
|
+
interface Symptom {
|
|
277
|
+
/** Timestamp when the Symptom is created. */
|
|
278
|
+
createTime?: string;
|
|
279
|
+
/** Detailed information of the current Symptom. */
|
|
280
|
+
details?: string;
|
|
281
|
+
/** Type of the Symptom. */
|
|
282
|
+
symptomType?: string;
|
|
283
|
+
/** A string used to uniquely distinguish a worker within a TPU node. */
|
|
284
|
+
workerId?: string;
|
|
285
|
+
}
|
|
286
|
+
interface AcceleratorTypesResource {
|
|
287
|
+
/** Gets AcceleratorType. */
|
|
288
|
+
get(request?: {
|
|
289
|
+
/** V1 error format. */
|
|
290
|
+
"$.xgafv"?: string;
|
|
291
|
+
/** OAuth access token. */
|
|
292
|
+
access_token?: string;
|
|
293
|
+
/** Data format for response. */
|
|
294
|
+
alt?: string;
|
|
295
|
+
/** JSONP */
|
|
296
|
+
callback?: string;
|
|
297
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
298
|
+
fields?: string;
|
|
299
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
300
|
+
key?: string;
|
|
301
|
+
/** Required. The resource name. */
|
|
302
|
+
name: string;
|
|
303
|
+
/** OAuth 2.0 token for the current user. */
|
|
304
|
+
oauth_token?: string;
|
|
305
|
+
/** Returns response with indentations and line breaks. */
|
|
306
|
+
prettyPrint?: boolean;
|
|
307
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
308
|
+
quotaUser?: string;
|
|
309
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
310
|
+
upload_protocol?: string;
|
|
311
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
312
|
+
uploadType?: string;
|
|
313
|
+
}): Request<AcceleratorType>;
|
|
314
|
+
/** Lists accelerator types supported by this API. */
|
|
315
|
+
list(request?: {
|
|
316
|
+
/** V1 error format. */
|
|
317
|
+
"$.xgafv"?: string;
|
|
318
|
+
/** OAuth access token. */
|
|
319
|
+
access_token?: string;
|
|
320
|
+
/** Data format for response. */
|
|
321
|
+
alt?: string;
|
|
322
|
+
/** JSONP */
|
|
323
|
+
callback?: string;
|
|
324
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
325
|
+
fields?: string;
|
|
326
|
+
/** List filter. */
|
|
327
|
+
filter?: string;
|
|
328
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
329
|
+
key?: string;
|
|
330
|
+
/** OAuth 2.0 token for the current user. */
|
|
331
|
+
oauth_token?: string;
|
|
332
|
+
/** Sort results. */
|
|
333
|
+
orderBy?: string;
|
|
334
|
+
/** The maximum number of items to return. */
|
|
335
|
+
pageSize?: number;
|
|
336
|
+
/** The next_page_token value returned from a previous List request, if any. */
|
|
337
|
+
pageToken?: string;
|
|
338
|
+
/** Required. The parent resource name. */
|
|
339
|
+
parent: string;
|
|
340
|
+
/** Returns response with indentations and line breaks. */
|
|
341
|
+
prettyPrint?: boolean;
|
|
342
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
343
|
+
quotaUser?: string;
|
|
344
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
345
|
+
upload_protocol?: string;
|
|
346
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
347
|
+
uploadType?: string;
|
|
348
|
+
}): Request<ListAcceleratorTypesResponse>;
|
|
349
|
+
}
|
|
350
|
+
interface NodesResource {
|
|
351
|
+
/** Creates a node. */
|
|
352
|
+
create(request: {
|
|
353
|
+
/** V1 error format. */
|
|
354
|
+
"$.xgafv"?: string;
|
|
355
|
+
/** OAuth access token. */
|
|
356
|
+
access_token?: string;
|
|
357
|
+
/** Data format for response. */
|
|
358
|
+
alt?: string;
|
|
359
|
+
/** JSONP */
|
|
360
|
+
callback?: string;
|
|
361
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
362
|
+
fields?: string;
|
|
363
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
364
|
+
key?: string;
|
|
365
|
+
/** The unqualified resource name. */
|
|
366
|
+
nodeId?: string;
|
|
367
|
+
/** OAuth 2.0 token for the current user. */
|
|
368
|
+
oauth_token?: string;
|
|
369
|
+
/** Required. The parent resource name. */
|
|
370
|
+
parent: string;
|
|
371
|
+
/** Returns response with indentations and line breaks. */
|
|
372
|
+
prettyPrint?: boolean;
|
|
373
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
374
|
+
quotaUser?: string;
|
|
375
|
+
/** Idempotent request UUID. */
|
|
376
|
+
requestId?: string;
|
|
377
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
378
|
+
upload_protocol?: string;
|
|
379
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
380
|
+
uploadType?: string;
|
|
381
|
+
/** Request body */
|
|
382
|
+
resource: Node;
|
|
383
|
+
}): Request<Operation>;
|
|
384
|
+
create(request: {
|
|
385
|
+
/** V1 error format. */
|
|
386
|
+
"$.xgafv"?: string;
|
|
387
|
+
/** OAuth access token. */
|
|
388
|
+
access_token?: string;
|
|
389
|
+
/** Data format for response. */
|
|
390
|
+
alt?: string;
|
|
391
|
+
/** JSONP */
|
|
392
|
+
callback?: string;
|
|
393
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
394
|
+
fields?: string;
|
|
395
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
396
|
+
key?: string;
|
|
397
|
+
/** The unqualified resource name. */
|
|
398
|
+
nodeId?: string;
|
|
399
|
+
/** OAuth 2.0 token for the current user. */
|
|
400
|
+
oauth_token?: string;
|
|
401
|
+
/** Required. The parent resource name. */
|
|
402
|
+
parent: string;
|
|
403
|
+
/** Returns response with indentations and line breaks. */
|
|
404
|
+
prettyPrint?: boolean;
|
|
405
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
406
|
+
quotaUser?: string;
|
|
407
|
+
/** Idempotent request UUID. */
|
|
408
|
+
requestId?: string;
|
|
409
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
410
|
+
upload_protocol?: string;
|
|
411
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
412
|
+
uploadType?: string;
|
|
413
|
+
},
|
|
414
|
+
body: Node): Request<Operation>;
|
|
415
|
+
/** Deletes a node. */
|
|
416
|
+
delete(request?: {
|
|
417
|
+
/** V1 error format. */
|
|
418
|
+
"$.xgafv"?: string;
|
|
419
|
+
/** OAuth access token. */
|
|
420
|
+
access_token?: string;
|
|
421
|
+
/** Data format for response. */
|
|
422
|
+
alt?: string;
|
|
423
|
+
/** JSONP */
|
|
424
|
+
callback?: string;
|
|
425
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
426
|
+
fields?: string;
|
|
427
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
428
|
+
key?: string;
|
|
429
|
+
/** Required. The resource name. */
|
|
430
|
+
name: string;
|
|
431
|
+
/** OAuth 2.0 token for the current user. */
|
|
432
|
+
oauth_token?: string;
|
|
433
|
+
/** Returns response with indentations and line breaks. */
|
|
434
|
+
prettyPrint?: boolean;
|
|
435
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
436
|
+
quotaUser?: string;
|
|
437
|
+
/** Idempotent request UUID. */
|
|
438
|
+
requestId?: string;
|
|
439
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
440
|
+
upload_protocol?: string;
|
|
441
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
442
|
+
uploadType?: string;
|
|
443
|
+
}): Request<Operation>;
|
|
444
|
+
/** Gets the details of a node. */
|
|
445
|
+
get(request?: {
|
|
446
|
+
/** V1 error format. */
|
|
447
|
+
"$.xgafv"?: string;
|
|
448
|
+
/** OAuth access token. */
|
|
449
|
+
access_token?: string;
|
|
450
|
+
/** Data format for response. */
|
|
451
|
+
alt?: string;
|
|
452
|
+
/** JSONP */
|
|
453
|
+
callback?: string;
|
|
454
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
455
|
+
fields?: string;
|
|
456
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
457
|
+
key?: string;
|
|
458
|
+
/** Required. The resource name. */
|
|
459
|
+
name: string;
|
|
460
|
+
/** OAuth 2.0 token for the current user. */
|
|
461
|
+
oauth_token?: string;
|
|
462
|
+
/** Returns response with indentations and line breaks. */
|
|
463
|
+
prettyPrint?: boolean;
|
|
464
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
465
|
+
quotaUser?: string;
|
|
466
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
467
|
+
upload_protocol?: string;
|
|
468
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
469
|
+
uploadType?: string;
|
|
470
|
+
}): Request<Node>;
|
|
471
|
+
/** Retrieves the guest attributes for the node. */
|
|
472
|
+
getGuestAttributes(request: {
|
|
473
|
+
/** V1 error format. */
|
|
474
|
+
"$.xgafv"?: string;
|
|
475
|
+
/** OAuth access token. */
|
|
476
|
+
access_token?: string;
|
|
477
|
+
/** Data format for response. */
|
|
478
|
+
alt?: string;
|
|
479
|
+
/** JSONP */
|
|
480
|
+
callback?: string;
|
|
481
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
482
|
+
fields?: string;
|
|
483
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
484
|
+
key?: string;
|
|
485
|
+
/** Required. The resource name. */
|
|
486
|
+
name: string;
|
|
487
|
+
/** OAuth 2.0 token for the current user. */
|
|
488
|
+
oauth_token?: string;
|
|
489
|
+
/** Returns response with indentations and line breaks. */
|
|
490
|
+
prettyPrint?: boolean;
|
|
491
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
492
|
+
quotaUser?: string;
|
|
493
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
494
|
+
upload_protocol?: string;
|
|
495
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
496
|
+
uploadType?: string;
|
|
497
|
+
/** Request body */
|
|
498
|
+
resource: GetGuestAttributesRequest;
|
|
499
|
+
}): Request<GetGuestAttributesResponse>;
|
|
500
|
+
getGuestAttributes(request: {
|
|
501
|
+
/** V1 error format. */
|
|
502
|
+
"$.xgafv"?: string;
|
|
503
|
+
/** OAuth access token. */
|
|
504
|
+
access_token?: string;
|
|
505
|
+
/** Data format for response. */
|
|
506
|
+
alt?: string;
|
|
507
|
+
/** JSONP */
|
|
508
|
+
callback?: string;
|
|
509
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
510
|
+
fields?: string;
|
|
511
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
512
|
+
key?: string;
|
|
513
|
+
/** Required. The resource name. */
|
|
514
|
+
name: string;
|
|
515
|
+
/** OAuth 2.0 token for the current user. */
|
|
516
|
+
oauth_token?: string;
|
|
517
|
+
/** Returns response with indentations and line breaks. */
|
|
518
|
+
prettyPrint?: boolean;
|
|
519
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
520
|
+
quotaUser?: string;
|
|
521
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
522
|
+
upload_protocol?: string;
|
|
523
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
524
|
+
uploadType?: string;
|
|
525
|
+
},
|
|
526
|
+
body: GetGuestAttributesRequest): Request<GetGuestAttributesResponse>;
|
|
527
|
+
/** Lists nodes. */
|
|
528
|
+
list(request?: {
|
|
529
|
+
/** V1 error format. */
|
|
530
|
+
"$.xgafv"?: string;
|
|
531
|
+
/** OAuth access token. */
|
|
532
|
+
access_token?: string;
|
|
533
|
+
/** Data format for response. */
|
|
534
|
+
alt?: string;
|
|
535
|
+
/** JSONP */
|
|
536
|
+
callback?: string;
|
|
537
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
538
|
+
fields?: string;
|
|
539
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
540
|
+
key?: string;
|
|
541
|
+
/** OAuth 2.0 token for the current user. */
|
|
542
|
+
oauth_token?: string;
|
|
543
|
+
/** The maximum number of items to return. */
|
|
544
|
+
pageSize?: number;
|
|
545
|
+
/** The next_page_token value returned from a previous List request, if any. */
|
|
546
|
+
pageToken?: string;
|
|
547
|
+
/** Required. The parent resource name. */
|
|
548
|
+
parent: string;
|
|
549
|
+
/** Returns response with indentations and line breaks. */
|
|
550
|
+
prettyPrint?: boolean;
|
|
551
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
552
|
+
quotaUser?: string;
|
|
553
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
554
|
+
upload_protocol?: string;
|
|
555
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
556
|
+
uploadType?: string;
|
|
557
|
+
}): Request<ListNodesResponse>;
|
|
558
|
+
/** Updates the configurations of a node. */
|
|
559
|
+
patch(request: {
|
|
560
|
+
/** V1 error format. */
|
|
561
|
+
"$.xgafv"?: string;
|
|
562
|
+
/** OAuth access token. */
|
|
563
|
+
access_token?: string;
|
|
564
|
+
/** Data format for response. */
|
|
565
|
+
alt?: string;
|
|
566
|
+
/** JSONP */
|
|
567
|
+
callback?: string;
|
|
568
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
569
|
+
fields?: string;
|
|
570
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
571
|
+
key?: string;
|
|
572
|
+
/** Output only. Immutable. The name of the TPU. */
|
|
573
|
+
name: string;
|
|
574
|
+
/** OAuth 2.0 token for the current user. */
|
|
575
|
+
oauth_token?: string;
|
|
576
|
+
/** Returns response with indentations and line breaks. */
|
|
577
|
+
prettyPrint?: boolean;
|
|
578
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
579
|
+
quotaUser?: string;
|
|
580
|
+
/** Required. Mask of fields from Node to update. Supported fields: [description, tags, labels, metadata, network_config.enable_external_ips]. */
|
|
581
|
+
updateMask?: string;
|
|
582
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
583
|
+
upload_protocol?: string;
|
|
584
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
585
|
+
uploadType?: string;
|
|
586
|
+
/** Request body */
|
|
587
|
+
resource: Node;
|
|
588
|
+
}): Request<Operation>;
|
|
589
|
+
patch(request: {
|
|
590
|
+
/** V1 error format. */
|
|
591
|
+
"$.xgafv"?: string;
|
|
592
|
+
/** OAuth access token. */
|
|
593
|
+
access_token?: string;
|
|
594
|
+
/** Data format for response. */
|
|
595
|
+
alt?: string;
|
|
596
|
+
/** JSONP */
|
|
597
|
+
callback?: string;
|
|
598
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
599
|
+
fields?: string;
|
|
600
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
601
|
+
key?: string;
|
|
602
|
+
/** Output only. Immutable. The name of the TPU. */
|
|
603
|
+
name: string;
|
|
604
|
+
/** OAuth 2.0 token for the current user. */
|
|
605
|
+
oauth_token?: string;
|
|
606
|
+
/** Returns response with indentations and line breaks. */
|
|
607
|
+
prettyPrint?: boolean;
|
|
608
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
609
|
+
quotaUser?: string;
|
|
610
|
+
/** Required. Mask of fields from Node to update. Supported fields: [description, tags, labels, metadata, network_config.enable_external_ips]. */
|
|
611
|
+
updateMask?: string;
|
|
612
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
613
|
+
upload_protocol?: string;
|
|
614
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
615
|
+
uploadType?: string;
|
|
616
|
+
},
|
|
617
|
+
body: Node): Request<Operation>;
|
|
618
|
+
/** Simulates a maintenance event. */
|
|
619
|
+
simulateMaintenanceEvent(request: {
|
|
620
|
+
/** V1 error format. */
|
|
621
|
+
"$.xgafv"?: string;
|
|
622
|
+
/** OAuth access token. */
|
|
623
|
+
access_token?: string;
|
|
624
|
+
/** Data format for response. */
|
|
625
|
+
alt?: string;
|
|
626
|
+
/** JSONP */
|
|
627
|
+
callback?: string;
|
|
628
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
629
|
+
fields?: string;
|
|
630
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
631
|
+
key?: string;
|
|
632
|
+
/** Required. The resource name. */
|
|
633
|
+
name: string;
|
|
634
|
+
/** OAuth 2.0 token for the current user. */
|
|
635
|
+
oauth_token?: string;
|
|
636
|
+
/** Returns response with indentations and line breaks. */
|
|
637
|
+
prettyPrint?: boolean;
|
|
638
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
639
|
+
quotaUser?: string;
|
|
640
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
641
|
+
upload_protocol?: string;
|
|
642
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
643
|
+
uploadType?: string;
|
|
644
|
+
/** Request body */
|
|
645
|
+
resource: SimulateMaintenanceEventRequest;
|
|
646
|
+
}): Request<Operation>;
|
|
647
|
+
simulateMaintenanceEvent(request: {
|
|
648
|
+
/** V1 error format. */
|
|
649
|
+
"$.xgafv"?: string;
|
|
650
|
+
/** OAuth access token. */
|
|
651
|
+
access_token?: string;
|
|
652
|
+
/** Data format for response. */
|
|
653
|
+
alt?: string;
|
|
654
|
+
/** JSONP */
|
|
655
|
+
callback?: string;
|
|
656
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
657
|
+
fields?: string;
|
|
658
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
659
|
+
key?: string;
|
|
660
|
+
/** Required. The resource name. */
|
|
661
|
+
name: string;
|
|
662
|
+
/** OAuth 2.0 token for the current user. */
|
|
663
|
+
oauth_token?: string;
|
|
664
|
+
/** Returns response with indentations and line breaks. */
|
|
665
|
+
prettyPrint?: boolean;
|
|
666
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
667
|
+
quotaUser?: string;
|
|
668
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
669
|
+
upload_protocol?: string;
|
|
670
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
671
|
+
uploadType?: string;
|
|
672
|
+
},
|
|
673
|
+
body: SimulateMaintenanceEventRequest): Request<Operation>;
|
|
674
|
+
/** Starts a node. */
|
|
675
|
+
start(request: {
|
|
676
|
+
/** V1 error format. */
|
|
677
|
+
"$.xgafv"?: string;
|
|
678
|
+
/** OAuth access token. */
|
|
679
|
+
access_token?: string;
|
|
680
|
+
/** Data format for response. */
|
|
681
|
+
alt?: string;
|
|
682
|
+
/** JSONP */
|
|
683
|
+
callback?: string;
|
|
684
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
685
|
+
fields?: string;
|
|
686
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
687
|
+
key?: string;
|
|
688
|
+
/** The resource name. */
|
|
689
|
+
name: string;
|
|
690
|
+
/** OAuth 2.0 token for the current user. */
|
|
691
|
+
oauth_token?: string;
|
|
692
|
+
/** Returns response with indentations and line breaks. */
|
|
693
|
+
prettyPrint?: boolean;
|
|
694
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
695
|
+
quotaUser?: string;
|
|
696
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
697
|
+
upload_protocol?: string;
|
|
698
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
699
|
+
uploadType?: string;
|
|
700
|
+
/** Request body */
|
|
701
|
+
resource: StartNodeRequest;
|
|
702
|
+
}): Request<Operation>;
|
|
703
|
+
start(request: {
|
|
704
|
+
/** V1 error format. */
|
|
705
|
+
"$.xgafv"?: string;
|
|
706
|
+
/** OAuth access token. */
|
|
707
|
+
access_token?: string;
|
|
708
|
+
/** Data format for response. */
|
|
709
|
+
alt?: string;
|
|
710
|
+
/** JSONP */
|
|
711
|
+
callback?: string;
|
|
712
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
713
|
+
fields?: string;
|
|
714
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
715
|
+
key?: string;
|
|
716
|
+
/** The resource name. */
|
|
717
|
+
name: string;
|
|
718
|
+
/** OAuth 2.0 token for the current user. */
|
|
719
|
+
oauth_token?: string;
|
|
720
|
+
/** Returns response with indentations and line breaks. */
|
|
721
|
+
prettyPrint?: boolean;
|
|
722
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
723
|
+
quotaUser?: string;
|
|
724
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
725
|
+
upload_protocol?: string;
|
|
726
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
727
|
+
uploadType?: string;
|
|
728
|
+
},
|
|
729
|
+
body: StartNodeRequest): Request<Operation>;
|
|
730
|
+
/** Stops a node. This operation is only available with single TPU nodes. */
|
|
731
|
+
stop(request: {
|
|
732
|
+
/** V1 error format. */
|
|
733
|
+
"$.xgafv"?: string;
|
|
734
|
+
/** OAuth access token. */
|
|
735
|
+
access_token?: string;
|
|
736
|
+
/** Data format for response. */
|
|
737
|
+
alt?: string;
|
|
738
|
+
/** JSONP */
|
|
739
|
+
callback?: string;
|
|
740
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
741
|
+
fields?: string;
|
|
742
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
743
|
+
key?: string;
|
|
744
|
+
/** The resource name. */
|
|
745
|
+
name: string;
|
|
746
|
+
/** OAuth 2.0 token for the current user. */
|
|
747
|
+
oauth_token?: string;
|
|
748
|
+
/** Returns response with indentations and line breaks. */
|
|
749
|
+
prettyPrint?: boolean;
|
|
750
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
751
|
+
quotaUser?: string;
|
|
752
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
753
|
+
upload_protocol?: string;
|
|
754
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
755
|
+
uploadType?: string;
|
|
756
|
+
/** Request body */
|
|
757
|
+
resource: StopNodeRequest;
|
|
758
|
+
}): Request<Operation>;
|
|
759
|
+
stop(request: {
|
|
760
|
+
/** V1 error format. */
|
|
761
|
+
"$.xgafv"?: string;
|
|
762
|
+
/** OAuth access token. */
|
|
763
|
+
access_token?: string;
|
|
764
|
+
/** Data format for response. */
|
|
765
|
+
alt?: string;
|
|
766
|
+
/** JSONP */
|
|
767
|
+
callback?: string;
|
|
768
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
769
|
+
fields?: string;
|
|
770
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
771
|
+
key?: string;
|
|
772
|
+
/** The resource name. */
|
|
773
|
+
name: string;
|
|
774
|
+
/** OAuth 2.0 token for the current user. */
|
|
775
|
+
oauth_token?: string;
|
|
776
|
+
/** Returns response with indentations and line breaks. */
|
|
777
|
+
prettyPrint?: boolean;
|
|
778
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
779
|
+
quotaUser?: string;
|
|
780
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
781
|
+
upload_protocol?: string;
|
|
782
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
783
|
+
uploadType?: string;
|
|
784
|
+
},
|
|
785
|
+
body: StopNodeRequest): Request<Operation>;
|
|
786
|
+
}
|
|
787
|
+
interface OperationsResource {
|
|
788
|
+
/**
|
|
789
|
+
* Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support
|
|
790
|
+
* this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the
|
|
791
|
+
* operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a
|
|
792
|
+
* google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
|
|
793
|
+
*/
|
|
794
|
+
cancel(request?: {
|
|
795
|
+
/** V1 error format. */
|
|
796
|
+
"$.xgafv"?: string;
|
|
797
|
+
/** OAuth access token. */
|
|
798
|
+
access_token?: string;
|
|
799
|
+
/** Data format for response. */
|
|
800
|
+
alt?: string;
|
|
801
|
+
/** JSONP */
|
|
802
|
+
callback?: string;
|
|
803
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
804
|
+
fields?: string;
|
|
805
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
806
|
+
key?: string;
|
|
807
|
+
/** The name of the operation resource to be cancelled. */
|
|
808
|
+
name: string;
|
|
809
|
+
/** OAuth 2.0 token for the current user. */
|
|
810
|
+
oauth_token?: string;
|
|
811
|
+
/** Returns response with indentations and line breaks. */
|
|
812
|
+
prettyPrint?: boolean;
|
|
813
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
814
|
+
quotaUser?: string;
|
|
815
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
816
|
+
upload_protocol?: string;
|
|
817
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
818
|
+
uploadType?: string;
|
|
819
|
+
}): Request<{}>;
|
|
820
|
+
/**
|
|
821
|
+
* Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't
|
|
822
|
+
* support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
|
823
|
+
*/
|
|
824
|
+
delete(request?: {
|
|
825
|
+
/** V1 error format. */
|
|
826
|
+
"$.xgafv"?: string;
|
|
827
|
+
/** OAuth access token. */
|
|
828
|
+
access_token?: string;
|
|
829
|
+
/** Data format for response. */
|
|
830
|
+
alt?: string;
|
|
831
|
+
/** JSONP */
|
|
832
|
+
callback?: string;
|
|
833
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
834
|
+
fields?: string;
|
|
835
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
836
|
+
key?: string;
|
|
837
|
+
/** The name of the operation resource to be deleted. */
|
|
838
|
+
name: string;
|
|
839
|
+
/** OAuth 2.0 token for the current user. */
|
|
840
|
+
oauth_token?: string;
|
|
841
|
+
/** Returns response with indentations and line breaks. */
|
|
842
|
+
prettyPrint?: boolean;
|
|
843
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
844
|
+
quotaUser?: string;
|
|
845
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
846
|
+
upload_protocol?: string;
|
|
847
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
848
|
+
uploadType?: string;
|
|
849
|
+
}): Request<{}>;
|
|
850
|
+
/** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
|
|
851
|
+
get(request?: {
|
|
852
|
+
/** V1 error format. */
|
|
853
|
+
"$.xgafv"?: string;
|
|
854
|
+
/** OAuth access token. */
|
|
855
|
+
access_token?: string;
|
|
856
|
+
/** Data format for response. */
|
|
857
|
+
alt?: string;
|
|
858
|
+
/** JSONP */
|
|
859
|
+
callback?: string;
|
|
860
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
861
|
+
fields?: string;
|
|
862
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
863
|
+
key?: string;
|
|
864
|
+
/** The name of the operation resource. */
|
|
865
|
+
name: string;
|
|
866
|
+
/** OAuth 2.0 token for the current user. */
|
|
867
|
+
oauth_token?: string;
|
|
868
|
+
/** Returns response with indentations and line breaks. */
|
|
869
|
+
prettyPrint?: boolean;
|
|
870
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
871
|
+
quotaUser?: string;
|
|
872
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
873
|
+
upload_protocol?: string;
|
|
874
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
875
|
+
uploadType?: string;
|
|
876
|
+
}): Request<Operation>;
|
|
877
|
+
/**
|
|
878
|
+
* Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services
|
|
879
|
+
* to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as
|
|
880
|
+
* `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
|
|
881
|
+
* ensure the name binding is the parent resource, without the operations collection id.
|
|
882
|
+
*/
|
|
883
|
+
list(request?: {
|
|
884
|
+
/** V1 error format. */
|
|
885
|
+
"$.xgafv"?: string;
|
|
886
|
+
/** OAuth access token. */
|
|
887
|
+
access_token?: string;
|
|
888
|
+
/** Data format for response. */
|
|
889
|
+
alt?: string;
|
|
890
|
+
/** JSONP */
|
|
891
|
+
callback?: string;
|
|
892
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
893
|
+
fields?: string;
|
|
894
|
+
/** The standard list filter. */
|
|
895
|
+
filter?: string;
|
|
896
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
897
|
+
key?: string;
|
|
898
|
+
/** The name of the operation's parent resource. */
|
|
899
|
+
name: string;
|
|
900
|
+
/** OAuth 2.0 token for the current user. */
|
|
901
|
+
oauth_token?: string;
|
|
902
|
+
/** The standard list page size. */
|
|
903
|
+
pageSize?: number;
|
|
904
|
+
/** The standard list page token. */
|
|
905
|
+
pageToken?: string;
|
|
906
|
+
/** Returns response with indentations and line breaks. */
|
|
907
|
+
prettyPrint?: boolean;
|
|
908
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
909
|
+
quotaUser?: string;
|
|
910
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
911
|
+
upload_protocol?: string;
|
|
912
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
913
|
+
uploadType?: string;
|
|
914
|
+
}): Request<ListOperationsResponse>;
|
|
915
|
+
}
|
|
916
|
+
interface RuntimeVersionsResource {
|
|
917
|
+
/** Gets a runtime version. */
|
|
918
|
+
get(request?: {
|
|
919
|
+
/** V1 error format. */
|
|
920
|
+
"$.xgafv"?: string;
|
|
921
|
+
/** OAuth access token. */
|
|
922
|
+
access_token?: string;
|
|
923
|
+
/** Data format for response. */
|
|
924
|
+
alt?: string;
|
|
925
|
+
/** JSONP */
|
|
926
|
+
callback?: string;
|
|
927
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
928
|
+
fields?: string;
|
|
929
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
930
|
+
key?: string;
|
|
931
|
+
/** Required. The resource name. */
|
|
932
|
+
name: string;
|
|
933
|
+
/** OAuth 2.0 token for the current user. */
|
|
934
|
+
oauth_token?: string;
|
|
935
|
+
/** Returns response with indentations and line breaks. */
|
|
936
|
+
prettyPrint?: boolean;
|
|
937
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
938
|
+
quotaUser?: string;
|
|
939
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
940
|
+
upload_protocol?: string;
|
|
941
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
942
|
+
uploadType?: string;
|
|
943
|
+
}): Request<RuntimeVersion>;
|
|
944
|
+
/** Lists runtime versions supported by this API. */
|
|
945
|
+
list(request?: {
|
|
946
|
+
/** V1 error format. */
|
|
947
|
+
"$.xgafv"?: string;
|
|
948
|
+
/** OAuth access token. */
|
|
949
|
+
access_token?: string;
|
|
950
|
+
/** Data format for response. */
|
|
951
|
+
alt?: string;
|
|
952
|
+
/** JSONP */
|
|
953
|
+
callback?: string;
|
|
954
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
955
|
+
fields?: string;
|
|
956
|
+
/** List filter. */
|
|
957
|
+
filter?: string;
|
|
958
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
959
|
+
key?: string;
|
|
960
|
+
/** OAuth 2.0 token for the current user. */
|
|
961
|
+
oauth_token?: string;
|
|
962
|
+
/** Sort results. */
|
|
963
|
+
orderBy?: string;
|
|
964
|
+
/** The maximum number of items to return. */
|
|
965
|
+
pageSize?: number;
|
|
966
|
+
/** The next_page_token value returned from a previous List request, if any. */
|
|
967
|
+
pageToken?: string;
|
|
968
|
+
/** Required. The parent resource name. */
|
|
969
|
+
parent: string;
|
|
970
|
+
/** Returns response with indentations and line breaks. */
|
|
971
|
+
prettyPrint?: boolean;
|
|
972
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
973
|
+
quotaUser?: string;
|
|
974
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
975
|
+
upload_protocol?: string;
|
|
976
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
977
|
+
uploadType?: string;
|
|
978
|
+
}): Request<ListRuntimeVersionsResponse>;
|
|
979
|
+
}
|
|
980
|
+
interface LocationsResource {
|
|
981
|
+
/** Generates the Cloud TPU service identity for the project. */
|
|
982
|
+
generateServiceIdentity(request: {
|
|
983
|
+
/** V1 error format. */
|
|
984
|
+
"$.xgafv"?: string;
|
|
985
|
+
/** OAuth access token. */
|
|
986
|
+
access_token?: string;
|
|
987
|
+
/** Data format for response. */
|
|
988
|
+
alt?: string;
|
|
989
|
+
/** JSONP */
|
|
990
|
+
callback?: string;
|
|
991
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
992
|
+
fields?: string;
|
|
993
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
994
|
+
key?: string;
|
|
995
|
+
/** OAuth 2.0 token for the current user. */
|
|
996
|
+
oauth_token?: string;
|
|
997
|
+
/** Required. The parent resource name. */
|
|
998
|
+
parent: string;
|
|
999
|
+
/** Returns response with indentations and line breaks. */
|
|
1000
|
+
prettyPrint?: boolean;
|
|
1001
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1002
|
+
quotaUser?: string;
|
|
1003
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1004
|
+
upload_protocol?: string;
|
|
1005
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1006
|
+
uploadType?: string;
|
|
1007
|
+
/** Request body */
|
|
1008
|
+
resource: GenerateServiceIdentityRequest;
|
|
1009
|
+
}): Request<GenerateServiceIdentityResponse>;
|
|
1010
|
+
generateServiceIdentity(request: {
|
|
1011
|
+
/** V1 error format. */
|
|
1012
|
+
"$.xgafv"?: string;
|
|
1013
|
+
/** OAuth access token. */
|
|
1014
|
+
access_token?: string;
|
|
1015
|
+
/** Data format for response. */
|
|
1016
|
+
alt?: string;
|
|
1017
|
+
/** JSONP */
|
|
1018
|
+
callback?: string;
|
|
1019
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1020
|
+
fields?: string;
|
|
1021
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1022
|
+
key?: string;
|
|
1023
|
+
/** OAuth 2.0 token for the current user. */
|
|
1024
|
+
oauth_token?: string;
|
|
1025
|
+
/** Required. The parent resource name. */
|
|
1026
|
+
parent: string;
|
|
1027
|
+
/** Returns response with indentations and line breaks. */
|
|
1028
|
+
prettyPrint?: boolean;
|
|
1029
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1030
|
+
quotaUser?: string;
|
|
1031
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1032
|
+
upload_protocol?: string;
|
|
1033
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1034
|
+
uploadType?: string;
|
|
1035
|
+
},
|
|
1036
|
+
body: GenerateServiceIdentityRequest): Request<GenerateServiceIdentityResponse>;
|
|
1037
|
+
/** Gets information about a location. */
|
|
1038
|
+
get(request?: {
|
|
1039
|
+
/** V1 error format. */
|
|
1040
|
+
"$.xgafv"?: string;
|
|
1041
|
+
/** OAuth access token. */
|
|
1042
|
+
access_token?: string;
|
|
1043
|
+
/** Data format for response. */
|
|
1044
|
+
alt?: string;
|
|
1045
|
+
/** JSONP */
|
|
1046
|
+
callback?: string;
|
|
1047
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1048
|
+
fields?: string;
|
|
1049
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1050
|
+
key?: string;
|
|
1051
|
+
/** Resource name for the location. */
|
|
1052
|
+
name: string;
|
|
1053
|
+
/** OAuth 2.0 token for the current user. */
|
|
1054
|
+
oauth_token?: string;
|
|
1055
|
+
/** Returns response with indentations and line breaks. */
|
|
1056
|
+
prettyPrint?: boolean;
|
|
1057
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1058
|
+
quotaUser?: string;
|
|
1059
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1060
|
+
upload_protocol?: string;
|
|
1061
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1062
|
+
uploadType?: string;
|
|
1063
|
+
}): Request<Location>;
|
|
1064
|
+
/** Lists information about the supported locations for this service. */
|
|
1065
|
+
list(request?: {
|
|
1066
|
+
/** V1 error format. */
|
|
1067
|
+
"$.xgafv"?: string;
|
|
1068
|
+
/** OAuth access token. */
|
|
1069
|
+
access_token?: string;
|
|
1070
|
+
/** Data format for response. */
|
|
1071
|
+
alt?: string;
|
|
1072
|
+
/** JSONP */
|
|
1073
|
+
callback?: string;
|
|
1074
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1075
|
+
fields?: string;
|
|
1076
|
+
/**
|
|
1077
|
+
* A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in
|
|
1078
|
+
* [AIP-160](https://google.aip.dev/160).
|
|
1079
|
+
*/
|
|
1080
|
+
filter?: string;
|
|
1081
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1082
|
+
key?: string;
|
|
1083
|
+
/** The resource that owns the locations collection, if applicable. */
|
|
1084
|
+
name: string;
|
|
1085
|
+
/** OAuth 2.0 token for the current user. */
|
|
1086
|
+
oauth_token?: string;
|
|
1087
|
+
/** The maximum number of results to return. If not set, the service selects a default. */
|
|
1088
|
+
pageSize?: number;
|
|
1089
|
+
/** A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page. */
|
|
1090
|
+
pageToken?: string;
|
|
1091
|
+
/** Returns response with indentations and line breaks. */
|
|
1092
|
+
prettyPrint?: boolean;
|
|
1093
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1094
|
+
quotaUser?: string;
|
|
1095
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1096
|
+
upload_protocol?: string;
|
|
1097
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1098
|
+
uploadType?: string;
|
|
1099
|
+
}): Request<ListLocationsResponse>;
|
|
1100
|
+
acceleratorTypes: AcceleratorTypesResource;
|
|
1101
|
+
nodes: NodesResource;
|
|
1102
|
+
operations: OperationsResource;
|
|
1103
|
+
runtimeVersions: RuntimeVersionsResource;
|
|
1104
|
+
}
|
|
1105
|
+
interface ProjectsResource {
|
|
1106
|
+
locations: LocationsResource;
|
|
1107
|
+
}
|
|
1108
|
+
|
|
1109
|
+
const projects: ProjectsResource;
|
|
1110
|
+
}
|
|
1111
|
+
}
|