@maxim_mazurok/gapi.client.cloudshell-v1 0.1.20260309 → 0.2.20260316
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 +43 -33
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://cloudshell.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20260316
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -63,7 +63,12 @@ declare namespace gapi.client {
|
|
|
63
63
|
/** Output only. Username that clients should use when initiating SSH sessions with the environment. */
|
|
64
64
|
sshUsername?: string;
|
|
65
65
|
/** Output only. Current execution state of this environment. */
|
|
66
|
-
state?:
|
|
66
|
+
state?:
|
|
67
|
+
| 'STATE_UNSPECIFIED'
|
|
68
|
+
| 'SUSPENDED'
|
|
69
|
+
| 'PENDING'
|
|
70
|
+
| 'RUNNING'
|
|
71
|
+
| 'DELETING';
|
|
67
72
|
/** Output only. Host to which clients can connect to initiate HTTPS or WSS connections with the environment. */
|
|
68
73
|
webHost?: string;
|
|
69
74
|
}
|
|
@@ -99,7 +104,12 @@ declare namespace gapi.client {
|
|
|
99
104
|
interface RemovePublicKeyResponse {}
|
|
100
105
|
interface StartEnvironmentMetadata {
|
|
101
106
|
/** Current state of the environment being started. */
|
|
102
|
-
state?:
|
|
107
|
+
state?:
|
|
108
|
+
| 'STATE_UNSPECIFIED'
|
|
109
|
+
| 'STARTING'
|
|
110
|
+
| 'UNARCHIVING_DISK'
|
|
111
|
+
| 'AWAITING_COMPUTE_RESOURCES'
|
|
112
|
+
| 'FINISHED';
|
|
103
113
|
}
|
|
104
114
|
interface StartEnvironmentRequest {
|
|
105
115
|
/** The initial access token passed to the environment. If this is present and valid, the environment will be pre-authenticated with gcloud so that the user can run gcloud commands in Cloud Shell without having to log in. This code can be updated later by calling AuthorizeEnvironment. */
|
|
@@ -123,11 +133,11 @@ declare namespace gapi.client {
|
|
|
123
133
|
/** 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 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 operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. */
|
|
124
134
|
cancel(request: {
|
|
125
135
|
/** V1 error format. */
|
|
126
|
-
'$.xgafv'?:
|
|
136
|
+
'$.xgafv'?: '1' | '2';
|
|
127
137
|
/** OAuth access token. */
|
|
128
138
|
access_token?: string;
|
|
129
139
|
/** Data format for response. */
|
|
130
|
-
alt?:
|
|
140
|
+
alt?: 'json' | 'media' | 'proto';
|
|
131
141
|
/** JSONP */
|
|
132
142
|
callback?: string;
|
|
133
143
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -152,11 +162,11 @@ declare namespace gapi.client {
|
|
|
152
162
|
cancel(
|
|
153
163
|
request: {
|
|
154
164
|
/** V1 error format. */
|
|
155
|
-
'$.xgafv'?:
|
|
165
|
+
'$.xgafv'?: '1' | '2';
|
|
156
166
|
/** OAuth access token. */
|
|
157
167
|
access_token?: string;
|
|
158
168
|
/** Data format for response. */
|
|
159
|
-
alt?:
|
|
169
|
+
alt?: 'json' | 'media' | 'proto';
|
|
160
170
|
/** JSONP */
|
|
161
171
|
callback?: string;
|
|
162
172
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -181,11 +191,11 @@ declare namespace gapi.client {
|
|
|
181
191
|
/** 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 support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. */
|
|
182
192
|
delete(request?: {
|
|
183
193
|
/** V1 error format. */
|
|
184
|
-
'$.xgafv'?:
|
|
194
|
+
'$.xgafv'?: '1' | '2';
|
|
185
195
|
/** OAuth access token. */
|
|
186
196
|
access_token?: string;
|
|
187
197
|
/** Data format for response. */
|
|
188
|
-
alt?:
|
|
198
|
+
alt?: 'json' | 'media' | 'proto';
|
|
189
199
|
/** JSONP */
|
|
190
200
|
callback?: string;
|
|
191
201
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -208,11 +218,11 @@ declare namespace gapi.client {
|
|
|
208
218
|
/** 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. */
|
|
209
219
|
get(request?: {
|
|
210
220
|
/** V1 error format. */
|
|
211
|
-
'$.xgafv'?:
|
|
221
|
+
'$.xgafv'?: '1' | '2';
|
|
212
222
|
/** OAuth access token. */
|
|
213
223
|
access_token?: string;
|
|
214
224
|
/** Data format for response. */
|
|
215
|
-
alt?:
|
|
225
|
+
alt?: 'json' | 'media' | 'proto';
|
|
216
226
|
/** JSONP */
|
|
217
227
|
callback?: string;
|
|
218
228
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -235,11 +245,11 @@ declare namespace gapi.client {
|
|
|
235
245
|
/** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
|
|
236
246
|
list(request?: {
|
|
237
247
|
/** V1 error format. */
|
|
238
|
-
'$.xgafv'?:
|
|
248
|
+
'$.xgafv'?: '1' | '2';
|
|
239
249
|
/** OAuth access token. */
|
|
240
250
|
access_token?: string;
|
|
241
251
|
/** Data format for response. */
|
|
242
|
-
alt?:
|
|
252
|
+
alt?: 'json' | 'media' | 'proto';
|
|
243
253
|
/** JSONP */
|
|
244
254
|
callback?: string;
|
|
245
255
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -272,11 +282,11 @@ declare namespace gapi.client {
|
|
|
272
282
|
/** Adds a public SSH key to an environment, allowing clients with the corresponding private key to connect to that environment via SSH. If a key with the same content already exists, this will error with ALREADY_EXISTS. */
|
|
273
283
|
addPublicKey(request: {
|
|
274
284
|
/** V1 error format. */
|
|
275
|
-
'$.xgafv'?:
|
|
285
|
+
'$.xgafv'?: '1' | '2';
|
|
276
286
|
/** OAuth access token. */
|
|
277
287
|
access_token?: string;
|
|
278
288
|
/** Data format for response. */
|
|
279
|
-
alt?:
|
|
289
|
+
alt?: 'json' | 'media' | 'proto';
|
|
280
290
|
/** JSONP */
|
|
281
291
|
callback?: string;
|
|
282
292
|
/** Environment this key should be added to, e.g. `users/me/environments/default`. */
|
|
@@ -301,11 +311,11 @@ declare namespace gapi.client {
|
|
|
301
311
|
addPublicKey(
|
|
302
312
|
request: {
|
|
303
313
|
/** V1 error format. */
|
|
304
|
-
'$.xgafv'?:
|
|
314
|
+
'$.xgafv'?: '1' | '2';
|
|
305
315
|
/** OAuth access token. */
|
|
306
316
|
access_token?: string;
|
|
307
317
|
/** Data format for response. */
|
|
308
|
-
alt?:
|
|
318
|
+
alt?: 'json' | 'media' | 'proto';
|
|
309
319
|
/** JSONP */
|
|
310
320
|
callback?: string;
|
|
311
321
|
/** Environment this key should be added to, e.g. `users/me/environments/default`. */
|
|
@@ -330,11 +340,11 @@ declare namespace gapi.client {
|
|
|
330
340
|
/** Sends OAuth credentials to a running environment on behalf of a user. When this completes, the environment will be authorized to run various Google Cloud command line tools without requiring the user to manually authenticate. */
|
|
331
341
|
authorize(request: {
|
|
332
342
|
/** V1 error format. */
|
|
333
|
-
'$.xgafv'?:
|
|
343
|
+
'$.xgafv'?: '1' | '2';
|
|
334
344
|
/** OAuth access token. */
|
|
335
345
|
access_token?: string;
|
|
336
346
|
/** Data format for response. */
|
|
337
|
-
alt?:
|
|
347
|
+
alt?: 'json' | 'media' | 'proto';
|
|
338
348
|
/** JSONP */
|
|
339
349
|
callback?: string;
|
|
340
350
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -359,11 +369,11 @@ declare namespace gapi.client {
|
|
|
359
369
|
authorize(
|
|
360
370
|
request: {
|
|
361
371
|
/** V1 error format. */
|
|
362
|
-
'$.xgafv'?:
|
|
372
|
+
'$.xgafv'?: '1' | '2';
|
|
363
373
|
/** OAuth access token. */
|
|
364
374
|
access_token?: string;
|
|
365
375
|
/** Data format for response. */
|
|
366
|
-
alt?:
|
|
376
|
+
alt?: 'json' | 'media' | 'proto';
|
|
367
377
|
/** JSONP */
|
|
368
378
|
callback?: string;
|
|
369
379
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -388,11 +398,11 @@ declare namespace gapi.client {
|
|
|
388
398
|
/** Generates an access token for the user's environment. */
|
|
389
399
|
generateAccessToken(request?: {
|
|
390
400
|
/** V1 error format. */
|
|
391
|
-
'$.xgafv'?:
|
|
401
|
+
'$.xgafv'?: '1' | '2';
|
|
392
402
|
/** OAuth access token. */
|
|
393
403
|
access_token?: string;
|
|
394
404
|
/** Data format for response. */
|
|
395
|
-
alt?:
|
|
405
|
+
alt?: 'json' | 'media' | 'proto';
|
|
396
406
|
/** JSONP */
|
|
397
407
|
callback?: string;
|
|
398
408
|
/** Required. The environment to generate the access token for. */
|
|
@@ -419,11 +429,11 @@ declare namespace gapi.client {
|
|
|
419
429
|
/** Gets an environment. Returns NOT_FOUND if the environment does not exist. */
|
|
420
430
|
get(request?: {
|
|
421
431
|
/** V1 error format. */
|
|
422
|
-
'$.xgafv'?:
|
|
432
|
+
'$.xgafv'?: '1' | '2';
|
|
423
433
|
/** OAuth access token. */
|
|
424
434
|
access_token?: string;
|
|
425
435
|
/** Data format for response. */
|
|
426
|
-
alt?:
|
|
436
|
+
alt?: 'json' | 'media' | 'proto';
|
|
427
437
|
/** JSONP */
|
|
428
438
|
callback?: string;
|
|
429
439
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -446,11 +456,11 @@ declare namespace gapi.client {
|
|
|
446
456
|
/** Removes a public SSH key from an environment. Clients will no longer be able to connect to the environment using the corresponding private key. If a key with the same content is not present, this will error with NOT_FOUND. */
|
|
447
457
|
removePublicKey(request: {
|
|
448
458
|
/** V1 error format. */
|
|
449
|
-
'$.xgafv'?:
|
|
459
|
+
'$.xgafv'?: '1' | '2';
|
|
450
460
|
/** OAuth access token. */
|
|
451
461
|
access_token?: string;
|
|
452
462
|
/** Data format for response. */
|
|
453
|
-
alt?:
|
|
463
|
+
alt?: 'json' | 'media' | 'proto';
|
|
454
464
|
/** JSONP */
|
|
455
465
|
callback?: string;
|
|
456
466
|
/** Environment this key should be removed from, e.g. `users/me/environments/default`. */
|
|
@@ -475,11 +485,11 @@ declare namespace gapi.client {
|
|
|
475
485
|
removePublicKey(
|
|
476
486
|
request: {
|
|
477
487
|
/** V1 error format. */
|
|
478
|
-
'$.xgafv'?:
|
|
488
|
+
'$.xgafv'?: '1' | '2';
|
|
479
489
|
/** OAuth access token. */
|
|
480
490
|
access_token?: string;
|
|
481
491
|
/** Data format for response. */
|
|
482
|
-
alt?:
|
|
492
|
+
alt?: 'json' | 'media' | 'proto';
|
|
483
493
|
/** JSONP */
|
|
484
494
|
callback?: string;
|
|
485
495
|
/** Environment this key should be removed from, e.g. `users/me/environments/default`. */
|
|
@@ -504,11 +514,11 @@ declare namespace gapi.client {
|
|
|
504
514
|
/** Starts an existing environment, allowing clients to connect to it. The returned operation will contain an instance of StartEnvironmentMetadata in its metadata field. Users can wait for the environment to start by polling this operation via GetOperation. Once the environment has finished starting and is ready to accept connections, the operation will contain a StartEnvironmentResponse in its response field. */
|
|
505
515
|
start(request: {
|
|
506
516
|
/** V1 error format. */
|
|
507
|
-
'$.xgafv'?:
|
|
517
|
+
'$.xgafv'?: '1' | '2';
|
|
508
518
|
/** OAuth access token. */
|
|
509
519
|
access_token?: string;
|
|
510
520
|
/** Data format for response. */
|
|
511
|
-
alt?:
|
|
521
|
+
alt?: 'json' | 'media' | 'proto';
|
|
512
522
|
/** JSONP */
|
|
513
523
|
callback?: string;
|
|
514
524
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -533,11 +543,11 @@ declare namespace gapi.client {
|
|
|
533
543
|
start(
|
|
534
544
|
request: {
|
|
535
545
|
/** V1 error format. */
|
|
536
|
-
'$.xgafv'?:
|
|
546
|
+
'$.xgafv'?: '1' | '2';
|
|
537
547
|
/** OAuth access token. */
|
|
538
548
|
access_token?: string;
|
|
539
549
|
/** Data format for response. */
|
|
540
|
-
alt?:
|
|
550
|
+
alt?: 'json' | 'media' | 'proto';
|
|
541
551
|
/** JSONP */
|
|
542
552
|
callback?: string;
|
|
543
553
|
/** Selector specifying which fields to include in a partial response. */
|