@maxim_mazurok/gapi.client.cloudshell-v1 0.0.20231106 → 0.0.20231129

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 CHANGED
@@ -9,782 +9,524 @@
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: 20231106
12
+ // Revision: 20231129
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
16
16
  declare namespace gapi.client {
17
- /** Load Cloud Shell API v1 */
18
- function load(urlOrObject: "https://cloudshell.googleapis.com/$discovery/rest?version=v1"): Promise<void>;
19
- /** @deprecated Please load APIs with discovery documents. */
20
- function load(name: "cloudshell", version: "v1"): Promise<void>;
21
- /** @deprecated Please load APIs with discovery documents. */
22
- function load(name: "cloudshell", version: "v1", callback: () => any): void;
17
+ /** Load Cloud Shell API v1 */
18
+ function load(
19
+ urlOrObject: 'https://cloudshell.googleapis.com/$discovery/rest?version=v1'
20
+ ): Promise<void>;
21
+ /** @deprecated Please load APIs with discovery documents. */
22
+ function load(name: 'cloudshell', version: 'v1'): Promise<void>;
23
+ /** @deprecated Please load APIs with discovery documents. */
24
+ function load(name: 'cloudshell', version: 'v1', callback: () => any): void;
23
25
 
24
- namespace cloudshell {
25
- // tslint:disable-next-line:no-empty-interface
26
- interface AddPublicKeyMetadata {
27
- }
28
- interface AddPublicKeyRequest {
29
- /**
30
- * Key that should be added to the environment. Supported formats are `ssh-dss` (see RFC4253), `ssh-rsa` (see RFC4253), `ecdsa-sha2-nistp256` (see RFC5656), `ecdsa-sha2-nistp384` (see
31
- * RFC5656) and `ecdsa-sha2-nistp521` (see RFC5656). It should be structured as <format> <content>, where <content> part is encoded with Base64.
32
- */
33
- key?:
34
- string;
35
- }
36
- interface AddPublicKeyResponse {
37
- /** Key that was added to the environment. */
38
- key?:
39
- string;
40
- }
41
- // tslint:disable-next-line:no-empty-interface
42
- interface AuthorizeEnvironmentMetadata {
43
- }
44
- interface AuthorizeEnvironmentRequest {
45
- /** The OAuth access token that should be sent to the environment. */
46
- accessToken?:
47
- string;
48
- /** The time when the credentials expire. If not set, defaults to one hour from when the server received the request. */
49
- expireTime?:
50
- string;
51
- /** The OAuth ID token that should be sent to the environment. */
52
- idToken?:
53
- string;
54
- }
55
- // tslint:disable-next-line:no-empty-interface
56
- interface AuthorizeEnvironmentResponse {
57
- }
58
- // tslint:disable-next-line:no-empty-interface
59
- interface CancelOperationRequest {
60
- }
61
- // tslint:disable-next-line:no-empty-interface
62
- interface CreateEnvironmentMetadata {
63
- }
64
- // tslint:disable-next-line:no-empty-interface
65
- interface DeleteEnvironmentMetadata {
66
- }
67
- // tslint:disable-next-line:no-empty-interface
68
- interface Empty {
69
- }
70
- interface Environment {
71
- /** Required. Immutable. Full path to the Docker image used to run this environment, e.g. "gcr.io/dev-con/cloud-devshell:latest". */
72
- dockerImage?:
73
- string;
74
- /** Output only. The environment's identifier, unique among the user's environments. */
75
- id?:
76
- string;
77
- /**
78
- * Immutable. Full name of this resource, in the format `users/{owner_email}/environments/{environment_id}`. `{owner_email}` is the email address of the user to whom this environment
79
- * belongs, and `{environment_id}` is the identifier of this environment. For example, `users/someone@example.com/environments/default`.
80
- */
81
- name?:
82
- string;
83
- /**
84
- * Output only. Public keys associated with the environment. Clients can connect to this environment via SSH only if they possess a private key corresponding to at least one of these
85
- * public keys. Keys can be added to or removed from the environment using the AddPublicKey and RemovePublicKey methods.
86
- */
87
- publicKeys?:
88
- string[];
89
- /** Output only. Host to which clients can connect to initiate SSH sessions with the environment. */
90
- sshHost?:
91
- string;
92
- /** Output only. Port to which clients can connect to initiate SSH sessions with the environment. */
93
- sshPort?:
94
- number;
95
- /** Output only. Username that clients should use when initiating SSH sessions with the environment. */
96
- sshUsername?:
97
- string;
98
- /** Output only. Current execution state of this environment. */
99
- state?:
100
- string;
101
- /** Output only. Host to which clients can connect to initiate HTTPS or WSS connections with the environment. */
102
- webHost?:
103
- string;
104
- }
105
- interface ListOperationsResponse {
106
- /** The standard List next-page token. */
107
- nextPageToken?:
108
- string;
109
- /** A list of operations that matches the specified filter in the request. */
110
- operations?:
111
- Operation[];
112
- }
113
- interface Operation {
114
- /** 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. */
115
- done?:
116
- boolean;
117
- /** The error result of the operation in case of failure or cancellation. */
118
- error?:
119
- Status;
120
- /**
121
- * 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
122
- * metadata. Any method that returns a long-running operation should document the metadata type, if any.
123
- */
124
- metadata?:
125
- { [P in string]: any };
126
- /**
127
- * 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
128
- * with `operations/{unique_id}`.
129
- */
130
- name?:
131
- string;
132
- /**
133
- * The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original
134
- * 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
135
- * method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
136
- */
137
- response?:
138
- { [P in string]: any };
139
- }
140
- // tslint:disable-next-line:no-empty-interface
141
- interface RemovePublicKeyMetadata {
142
- }
143
- interface RemovePublicKeyRequest {
144
- /** Key that should be removed from the environment. */
145
- key?:
146
- string;
147
- }
148
- // tslint:disable-next-line:no-empty-interface
149
- interface RemovePublicKeyResponse {
150
- }
151
- interface StartEnvironmentMetadata {
152
- /** Current state of the environment being started. */
153
- state?:
154
- string;
155
- }
156
- interface StartEnvironmentRequest {
157
- /**
158
- * 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
159
- * Cloud Shell without having to log in. This code can be updated later by calling AuthorizeEnvironment.
160
- */
161
- accessToken?:
162
- string;
163
- /** Public keys that should be added to the environment before it is started. */
164
- publicKeys?:
165
- string[];
166
- }
167
- interface StartEnvironmentResponse {
168
- /** Environment that was started. */
169
- environment?:
170
- Environment;
171
- }
172
- interface Status {
173
- /** The status code, which should be an enum value of google.rpc.Code. */
174
- code?:
175
- number;
176
- /** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
177
- details?:
178
- Array<{ [P in string]: any }>;
179
- /**
180
- * 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
181
- * client.
182
- */
183
- message?:
184
- string;
185
- }
186
- interface OperationsResource {
187
- /**
188
- * 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
189
- * 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
190
- * operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a
191
- * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
192
- */
193
- cancel(request: {
194
- /** V1 error format. */
195
- "$.xgafv"?:
196
- string;
197
- /** OAuth access token. */
198
- access_token?:
199
- string;
200
- /** Data format for response. */
201
- alt?:
202
- string;
203
- /** JSONP */
204
- callback?:
205
- string;
206
- /** Selector specifying which fields to include in a partial response. */
207
- fields?:
208
- string;
209
- /** 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. */
210
- key?:
211
- string;
212
- /** The name of the operation resource to be cancelled. */
213
- name:
214
- string;
215
- /** OAuth 2.0 token for the current user. */
216
- oauth_token?:
217
- string;
218
- /** Returns response with indentations and line breaks. */
219
- prettyPrint?:
220
- boolean;
221
- /** 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. */
222
- quotaUser?:
223
- string;
224
- /** Upload protocol for media (e.g. "raw", "multipart"). */
225
- upload_protocol?:
226
- string;
227
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
228
- uploadType?:
229
- string;
230
- /** Request body */
231
- resource:
232
- CancelOperationRequest;
233
- }): Request<{}>;
234
- cancel(request: {
235
- /** V1 error format. */
236
- "$.xgafv"?:
237
- string;
238
- /** OAuth access token. */
239
- access_token?:
240
- string;
241
- /** Data format for response. */
242
- alt?:
243
- string;
244
- /** JSONP */
245
- callback?:
246
- string;
247
- /** Selector specifying which fields to include in a partial response. */
248
- fields?:
249
- string;
250
- /** 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. */
251
- key?:
252
- string;
253
- /** The name of the operation resource to be cancelled. */
254
- name:
255
- string;
256
- /** OAuth 2.0 token for the current user. */
257
- oauth_token?:
258
- string;
259
- /** Returns response with indentations and line breaks. */
260
- prettyPrint?:
261
- boolean;
262
- /** 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. */
263
- quotaUser?:
264
- string;
265
- /** Upload protocol for media (e.g. "raw", "multipart"). */
266
- upload_protocol?:
267
- string;
268
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
269
- uploadType?:
270
- string;
271
- },
272
- body: CancelOperationRequest): Request<{}>;
273
- /**
274
- * 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
275
- * support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
276
- */
277
- delete(request?: {
278
- /** V1 error format. */
279
- "$.xgafv"?:
280
- string;
281
- /** OAuth access token. */
282
- access_token?:
283
- string;
284
- /** Data format for response. */
285
- alt?:
286
- string;
287
- /** JSONP */
288
- callback?:
289
- string;
290
- /** Selector specifying which fields to include in a partial response. */
291
- fields?:
292
- string;
293
- /** 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. */
294
- key?:
295
- string;
296
- /** The name of the operation resource to be deleted. */
297
- name:
298
- string;
299
- /** OAuth 2.0 token for the current user. */
300
- oauth_token?:
301
- string;
302
- /** Returns response with indentations and line breaks. */
303
- prettyPrint?:
304
- boolean;
305
- /** 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. */
306
- quotaUser?:
307
- string;
308
- /** Upload protocol for media (e.g. "raw", "multipart"). */
309
- upload_protocol?:
310
- string;
311
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
312
- uploadType?:
313
- string;
314
- }): Request<{}>;
315
- /** 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. */
316
- get(request?: {
317
- /** V1 error format. */
318
- "$.xgafv"?:
319
- string;
320
- /** OAuth access token. */
321
- access_token?:
322
- string;
323
- /** Data format for response. */
324
- alt?:
325
- string;
326
- /** JSONP */
327
- callback?:
328
- string;
329
- /** Selector specifying which fields to include in a partial response. */
330
- fields?:
331
- string;
332
- /** 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. */
333
- key?:
334
- string;
335
- /** The name of the operation resource. */
336
- name:
337
- string;
338
- /** OAuth 2.0 token for the current user. */
339
- oauth_token?:
340
- string;
341
- /** Returns response with indentations and line breaks. */
342
- prettyPrint?:
343
- boolean;
344
- /** 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. */
345
- quotaUser?:
346
- string;
347
- /** Upload protocol for media (e.g. "raw", "multipart"). */
348
- upload_protocol?:
349
- string;
350
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
351
- uploadType?:
352
- string;
353
- }): Request<Operation>;
354
- /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
355
- list(request?: {
356
- /** V1 error format. */
357
- "$.xgafv"?:
358
- string;
359
- /** OAuth access token. */
360
- access_token?:
361
- string;
362
- /** Data format for response. */
363
- alt?:
364
- string;
365
- /** JSONP */
366
- callback?:
367
- string;
368
- /** Selector specifying which fields to include in a partial response. */
369
- fields?:
370
- string;
371
- /** The standard list filter. */
372
- filter?:
373
- string;
374
- /** 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. */
375
- key?:
376
- string;
377
- /** The name of the operation's parent resource. */
378
- name:
379
- string;
380
- /** OAuth 2.0 token for the current user. */
381
- oauth_token?:
382
- string;
383
- /** The standard list page size. */
384
- pageSize?:
385
- number;
386
- /** The standard list page token. */
387
- pageToken?:
388
- string;
389
- /** Returns response with indentations and line breaks. */
390
- prettyPrint?:
391
- boolean;
392
- /** 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. */
393
- quotaUser?:
394
- string;
395
- /** Upload protocol for media (e.g. "raw", "multipart"). */
396
- upload_protocol?:
397
- string;
398
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
399
- uploadType?:
400
- string;
401
- }): Request<ListOperationsResponse>;
402
- }
403
- interface EnvironmentsResource {
404
- /**
405
- * 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,
406
- * this will error with ALREADY_EXISTS.
407
- */
408
- addPublicKey(request: {
409
- /** V1 error format. */
410
- "$.xgafv"?:
411
- string;
412
- /** OAuth access token. */
413
- access_token?:
414
- string;
415
- /** Data format for response. */
416
- alt?:
417
- string;
418
- /** JSONP */
419
- callback?:
420
- string;
421
- /** Environment this key should be added to, e.g. `users/me/environments/default`. */
422
- environment:
423
- string;
424
- /** Selector specifying which fields to include in a partial response. */
425
- fields?:
426
- 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?:
429
- string;
430
- /** OAuth 2.0 token for the current user. */
431
- oauth_token?:
432
- string;
433
- /** Returns response with indentations and line breaks. */
434
- prettyPrint?:
435
- boolean;
436
- /** 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. */
437
- quotaUser?:
438
- string;
439
- /** Upload protocol for media (e.g. "raw", "multipart"). */
440
- upload_protocol?:
441
- string;
442
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
443
- uploadType?:
444
- string;
445
- /** Request body */
446
- resource:
447
- AddPublicKeyRequest;
448
- }): Request<Operation>;
449
- addPublicKey(request: {
450
- /** V1 error format. */
451
- "$.xgafv"?:
452
- string;
453
- /** OAuth access token. */
454
- access_token?:
455
- string;
456
- /** Data format for response. */
457
- alt?:
458
- string;
459
- /** JSONP */
460
- callback?:
461
- string;
462
- /** Environment this key should be added to, e.g. `users/me/environments/default`. */
463
- environment:
464
- string;
465
- /** Selector specifying which fields to include in a partial response. */
466
- fields?:
467
- string;
468
- /** 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. */
469
- key?:
470
- string;
471
- /** OAuth 2.0 token for the current user. */
472
- oauth_token?:
473
- string;
474
- /** Returns response with indentations and line breaks. */
475
- prettyPrint?:
476
- boolean;
477
- /** 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. */
478
- quotaUser?:
479
- string;
480
- /** Upload protocol for media (e.g. "raw", "multipart"). */
481
- upload_protocol?:
482
- string;
483
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
484
- uploadType?:
485
- string;
486
- },
487
- body: AddPublicKeyRequest): Request<Operation>;
488
- /**
489
- * 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
490
- * requiring the user to manually authenticate.
491
- */
492
- authorize(request: {
493
- /** V1 error format. */
494
- "$.xgafv"?:
495
- string;
496
- /** OAuth access token. */
497
- access_token?:
498
- string;
499
- /** Data format for response. */
500
- alt?:
501
- string;
502
- /** JSONP */
503
- callback?:
504
- string;
505
- /** Selector specifying which fields to include in a partial response. */
506
- fields?:
507
- string;
508
- /** 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. */
509
- key?:
510
- string;
511
- /** Name of the resource that should receive the credentials, for example `users/me/environments/default` or `users/someone@example.com/environments/default`. */
512
- name:
513
- string;
514
- /** OAuth 2.0 token for the current user. */
515
- oauth_token?:
516
- string;
517
- /** Returns response with indentations and line breaks. */
518
- prettyPrint?:
519
- boolean;
520
- /** 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. */
521
- quotaUser?:
522
- string;
523
- /** Upload protocol for media (e.g. "raw", "multipart"). */
524
- upload_protocol?:
525
- string;
526
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
527
- uploadType?:
528
- string;
529
- /** Request body */
530
- resource:
531
- AuthorizeEnvironmentRequest;
532
- }): Request<Operation>;
533
- authorize(request: {
534
- /** V1 error format. */
535
- "$.xgafv"?:
536
- string;
537
- /** OAuth access token. */
538
- access_token?:
539
- string;
540
- /** Data format for response. */
541
- alt?:
542
- string;
543
- /** JSONP */
544
- callback?:
545
- string;
546
- /** Selector specifying which fields to include in a partial response. */
547
- fields?:
548
- string;
549
- /** 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. */
550
- key?:
551
- string;
552
- /** Name of the resource that should receive the credentials, for example `users/me/environments/default` or `users/someone@example.com/environments/default`. */
553
- name:
554
- string;
555
- /** OAuth 2.0 token for the current user. */
556
- oauth_token?:
557
- string;
558
- /** Returns response with indentations and line breaks. */
559
- prettyPrint?:
560
- boolean;
561
- /** 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. */
562
- quotaUser?:
563
- string;
564
- /** Upload protocol for media (e.g. "raw", "multipart"). */
565
- upload_protocol?:
566
- string;
567
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
568
- uploadType?:
569
- string;
570
- },
571
- body: AuthorizeEnvironmentRequest): Request<Operation>;
572
- /** Gets an environment. Returns NOT_FOUND if the environment does not exist. */
573
- get(request?: {
574
- /** V1 error format. */
575
- "$.xgafv"?:
576
- string;
577
- /** OAuth access token. */
578
- access_token?:
579
- string;
580
- /** Data format for response. */
581
- alt?:
582
- string;
583
- /** JSONP */
584
- callback?:
585
- string;
586
- /** Selector specifying which fields to include in a partial response. */
587
- fields?:
588
- string;
589
- /** 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. */
590
- key?:
591
- string;
592
- /** Required. Name of the requested resource, for example `users/me/environments/default` or `users/someone@example.com/environments/default`. */
593
- name:
594
- string;
595
- /** OAuth 2.0 token for the current user. */
596
- oauth_token?:
597
- string;
598
- /** Returns response with indentations and line breaks. */
599
- prettyPrint?:
600
- boolean;
601
- /** 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. */
602
- quotaUser?:
603
- string;
604
- /** Upload protocol for media (e.g. "raw", "multipart"). */
605
- upload_protocol?:
606
- string;
607
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
608
- uploadType?:
609
- string;
610
- }): Request<Environment>;
611
- /**
612
- * 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
613
- * present, this will error with NOT_FOUND.
614
- */
615
- removePublicKey(request: {
616
- /** V1 error format. */
617
- "$.xgafv"?:
618
- string;
619
- /** OAuth access token. */
620
- access_token?:
621
- string;
622
- /** Data format for response. */
623
- alt?:
624
- string;
625
- /** JSONP */
626
- callback?:
627
- string;
628
- /** Environment this key should be removed from, e.g. `users/me/environments/default`. */
629
- environment:
630
- string;
631
- /** Selector specifying which fields to include in a partial response. */
632
- fields?:
633
- string;
634
- /** 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. */
635
- key?:
636
- string;
637
- /** OAuth 2.0 token for the current user. */
638
- oauth_token?:
639
- string;
640
- /** Returns response with indentations and line breaks. */
641
- prettyPrint?:
642
- boolean;
643
- /** 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. */
644
- quotaUser?:
645
- string;
646
- /** Upload protocol for media (e.g. "raw", "multipart"). */
647
- upload_protocol?:
648
- string;
649
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
650
- uploadType?:
651
- string;
652
- /** Request body */
653
- resource:
654
- RemovePublicKeyRequest;
655
- }): Request<Operation>;
656
- removePublicKey(request: {
657
- /** V1 error format. */
658
- "$.xgafv"?:
659
- string;
660
- /** OAuth access token. */
661
- access_token?:
662
- string;
663
- /** Data format for response. */
664
- alt?:
665
- string;
666
- /** JSONP */
667
- callback?:
668
- string;
669
- /** Environment this key should be removed from, e.g. `users/me/environments/default`. */
670
- environment:
671
- string;
672
- /** Selector specifying which fields to include in a partial response. */
673
- fields?:
674
- string;
675
- /** 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. */
676
- key?:
677
- string;
678
- /** OAuth 2.0 token for the current user. */
679
- oauth_token?:
680
- string;
681
- /** Returns response with indentations and line breaks. */
682
- prettyPrint?:
683
- boolean;
684
- /** 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. */
685
- quotaUser?:
686
- string;
687
- /** Upload protocol for media (e.g. "raw", "multipart"). */
688
- upload_protocol?:
689
- string;
690
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
691
- uploadType?:
692
- string;
693
- },
694
- body: RemovePublicKeyRequest): Request<Operation>;
695
- /**
696
- * 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
697
- * 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
698
- * StartEnvironmentResponse in its response field.
699
- */
700
- start(request: {
701
- /** V1 error format. */
702
- "$.xgafv"?:
703
- string;
704
- /** OAuth access token. */
705
- access_token?:
706
- string;
707
- /** Data format for response. */
708
- alt?:
709
- string;
710
- /** JSONP */
711
- callback?:
712
- string;
713
- /** Selector specifying which fields to include in a partial response. */
714
- fields?:
715
- string;
716
- /** 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. */
717
- key?:
718
- string;
719
- /** Name of the resource that should be started, for example `users/me/environments/default` or `users/someone@example.com/environments/default`. */
720
- name:
721
- string;
722
- /** OAuth 2.0 token for the current user. */
723
- oauth_token?:
724
- string;
725
- /** Returns response with indentations and line breaks. */
726
- prettyPrint?:
727
- boolean;
728
- /** 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. */
729
- quotaUser?:
730
- string;
731
- /** Upload protocol for media (e.g. "raw", "multipart"). */
732
- upload_protocol?:
733
- string;
734
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
735
- uploadType?:
736
- string;
737
- /** Request body */
738
- resource:
739
- StartEnvironmentRequest;
740
- }): Request<Operation>;
741
- start(request: {
742
- /** V1 error format. */
743
- "$.xgafv"?:
744
- string;
745
- /** OAuth access token. */
746
- access_token?:
747
- string;
748
- /** Data format for response. */
749
- alt?:
750
- string;
751
- /** JSONP */
752
- callback?:
753
- string;
754
- /** Selector specifying which fields to include in a partial response. */
755
- fields?:
756
- string;
757
- /** 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. */
758
- key?:
759
- string;
760
- /** Name of the resource that should be started, for example `users/me/environments/default` or `users/someone@example.com/environments/default`. */
761
- name:
762
- string;
763
- /** OAuth 2.0 token for the current user. */
764
- oauth_token?:
765
- string;
766
- /** Returns response with indentations and line breaks. */
767
- prettyPrint?:
768
- boolean;
769
- /** 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. */
770
- quotaUser?:
771
- string;
772
- /** Upload protocol for media (e.g. "raw", "multipart"). */
773
- upload_protocol?:
774
- string;
775
- /** Legacy upload protocol for media (e.g. "media", "multipart"). */
776
- uploadType?:
777
- string;
778
- },
779
- body: StartEnvironmentRequest): Request<Operation>;
780
- }
781
- interface UsersResource {
782
- environments:
783
- EnvironmentsResource;
784
- }
26
+ namespace cloudshell {
27
+ interface AddPublicKeyMetadata {}
28
+ interface AddPublicKeyRequest {
29
+ /** Key that should be added to the environment. Supported formats are `ssh-dss` (see RFC4253), `ssh-rsa` (see RFC4253), `ecdsa-sha2-nistp256` (see RFC5656), `ecdsa-sha2-nistp384` (see RFC5656) and `ecdsa-sha2-nistp521` (see RFC5656). It should be structured as <format> <content>, where <content> part is encoded with Base64. */
30
+ key?: string;
31
+ }
32
+ interface AddPublicKeyResponse {
33
+ /** Key that was added to the environment. */
34
+ key?: string;
35
+ }
36
+ interface AuthorizeEnvironmentMetadata {}
37
+ interface AuthorizeEnvironmentRequest {
38
+ /** The OAuth access token that should be sent to the environment. */
39
+ accessToken?: string;
40
+ /** The time when the credentials expire. If not set, defaults to one hour from when the server received the request. */
41
+ expireTime?: string;
42
+ /** The OAuth ID token that should be sent to the environment. */
43
+ idToken?: string;
44
+ }
45
+ interface AuthorizeEnvironmentResponse {}
46
+ interface CancelOperationRequest {}
47
+ interface CreateEnvironmentMetadata {}
48
+ interface DeleteEnvironmentMetadata {}
49
+ interface Empty {}
50
+ interface Environment {
51
+ /** Required. Immutable. Full path to the Docker image used to run this environment, e.g. "gcr.io/dev-con/cloud-devshell:latest". */
52
+ dockerImage?: string;
53
+ /** Output only. The environment's identifier, unique among the user's environments. */
54
+ id?: string;
55
+ /** Immutable. Full name of this resource, in the format `users/{owner_email}/environments/{environment_id}`. `{owner_email}` is the email address of the user to whom this environment belongs, and `{environment_id}` is the identifier of this environment. For example, `users/someone@example.com/environments/default`. */
56
+ name?: string;
57
+ /** Output only. Public keys associated with the environment. Clients can connect to this environment via SSH only if they possess a private key corresponding to at least one of these public keys. Keys can be added to or removed from the environment using the AddPublicKey and RemovePublicKey methods. */
58
+ publicKeys?: string[];
59
+ /** Output only. Host to which clients can connect to initiate SSH sessions with the environment. */
60
+ sshHost?: string;
61
+ /** Output only. Port to which clients can connect to initiate SSH sessions with the environment. */
62
+ sshPort?: number;
63
+ /** Output only. Username that clients should use when initiating SSH sessions with the environment. */
64
+ sshUsername?: string;
65
+ /** Output only. Current execution state of this environment. */
66
+ state?: string;
67
+ /** Output only. Host to which clients can connect to initiate HTTPS or WSS connections with the environment. */
68
+ webHost?: string;
69
+ }
70
+ interface ListOperationsResponse {
71
+ /** The standard List next-page token. */
72
+ nextPageToken?: string;
73
+ /** A list of operations that matches the specified filter in the request. */
74
+ operations?: Operation[];
75
+ }
76
+ interface Operation {
77
+ /** 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. */
78
+ done?: boolean;
79
+ /** The error result of the operation in case of failure or cancellation. */
80
+ error?: Status;
81
+ /** 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. */
82
+ metadata?: {[P in string]: any};
83
+ /** 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}`. */
84
+ name?: string;
85
+ /** The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. */
86
+ response?: {[P in string]: any};
87
+ }
88
+ interface RemovePublicKeyMetadata {}
89
+ interface RemovePublicKeyRequest {
90
+ /** Key that should be removed from the environment. */
91
+ key?: string;
92
+ }
93
+ interface RemovePublicKeyResponse {}
94
+ interface StartEnvironmentMetadata {
95
+ /** Current state of the environment being started. */
96
+ state?: string;
97
+ }
98
+ interface StartEnvironmentRequest {
99
+ /** 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. */
100
+ accessToken?: string;
101
+ /** Public keys that should be added to the environment before it is started. */
102
+ publicKeys?: string[];
103
+ }
104
+ interface StartEnvironmentResponse {
105
+ /** Environment that was started. */
106
+ environment?: Environment;
107
+ }
108
+ interface Status {
109
+ /** The status code, which should be an enum value of google.rpc.Code. */
110
+ code?: number;
111
+ /** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
112
+ details?: Array<{[P in string]: any}>;
113
+ /** 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. */
114
+ message?: string;
115
+ }
116
+ interface OperationsResource {
117
+ /** 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`. */
118
+ cancel(request: {
119
+ /** V1 error format. */
120
+ '$.xgafv'?: string;
121
+ /** OAuth access token. */
122
+ access_token?: string;
123
+ /** Data format for response. */
124
+ alt?: string;
125
+ /** JSONP */
126
+ callback?: string;
127
+ /** Selector specifying which fields to include in a partial response. */
128
+ fields?: string;
129
+ /** 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. */
130
+ key?: string;
131
+ /** The name of the operation resource to be cancelled. */
132
+ name: string;
133
+ /** OAuth 2.0 token for the current user. */
134
+ oauth_token?: string;
135
+ /** Returns response with indentations and line breaks. */
136
+ prettyPrint?: boolean;
137
+ /** 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. */
138
+ quotaUser?: string;
139
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
140
+ upload_protocol?: string;
141
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
142
+ uploadType?: string;
143
+ /** Request body */
144
+ resource: CancelOperationRequest;
145
+ }): Request<{}>;
146
+ cancel(
147
+ request: {
148
+ /** V1 error format. */
149
+ '$.xgafv'?: string;
150
+ /** OAuth access token. */
151
+ access_token?: string;
152
+ /** Data format for response. */
153
+ alt?: string;
154
+ /** JSONP */
155
+ callback?: string;
156
+ /** Selector specifying which fields to include in a partial response. */
157
+ fields?: string;
158
+ /** 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. */
159
+ key?: string;
160
+ /** The name of the operation resource to be cancelled. */
161
+ name: string;
162
+ /** OAuth 2.0 token for the current user. */
163
+ oauth_token?: string;
164
+ /** Returns response with indentations and line breaks. */
165
+ prettyPrint?: boolean;
166
+ /** 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. */
167
+ quotaUser?: string;
168
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
169
+ upload_protocol?: string;
170
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
171
+ uploadType?: string;
172
+ },
173
+ body: CancelOperationRequest
174
+ ): Request<{}>;
175
+ /** 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`. */
176
+ delete(request?: {
177
+ /** V1 error format. */
178
+ '$.xgafv'?: string;
179
+ /** OAuth access token. */
180
+ access_token?: string;
181
+ /** Data format for response. */
182
+ alt?: string;
183
+ /** JSONP */
184
+ callback?: string;
185
+ /** Selector specifying which fields to include in a partial response. */
186
+ fields?: string;
187
+ /** 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. */
188
+ key?: string;
189
+ /** The name of the operation resource to be deleted. */
190
+ name: string;
191
+ /** OAuth 2.0 token for the current user. */
192
+ oauth_token?: string;
193
+ /** Returns response with indentations and line breaks. */
194
+ prettyPrint?: boolean;
195
+ /** 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. */
196
+ quotaUser?: string;
197
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
198
+ upload_protocol?: string;
199
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
200
+ uploadType?: string;
201
+ }): Request<{}>;
202
+ /** 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. */
203
+ get(request?: {
204
+ /** V1 error format. */
205
+ '$.xgafv'?: string;
206
+ /** OAuth access token. */
207
+ access_token?: string;
208
+ /** Data format for response. */
209
+ alt?: string;
210
+ /** JSONP */
211
+ callback?: string;
212
+ /** Selector specifying which fields to include in a partial response. */
213
+ fields?: string;
214
+ /** 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. */
215
+ key?: string;
216
+ /** The name of the operation resource. */
217
+ name: string;
218
+ /** OAuth 2.0 token for the current user. */
219
+ oauth_token?: string;
220
+ /** Returns response with indentations and line breaks. */
221
+ prettyPrint?: boolean;
222
+ /** 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. */
223
+ quotaUser?: string;
224
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
225
+ upload_protocol?: string;
226
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
227
+ uploadType?: string;
228
+ }): Request<Operation>;
229
+ /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
230
+ list(request?: {
231
+ /** V1 error format. */
232
+ '$.xgafv'?: string;
233
+ /** OAuth access token. */
234
+ access_token?: string;
235
+ /** Data format for response. */
236
+ alt?: string;
237
+ /** JSONP */
238
+ callback?: string;
239
+ /** Selector specifying which fields to include in a partial response. */
240
+ fields?: string;
241
+ /** The standard list filter. */
242
+ filter?: string;
243
+ /** 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. */
244
+ key?: string;
245
+ /** The name of the operation's parent resource. */
246
+ name: string;
247
+ /** OAuth 2.0 token for the current user. */
248
+ oauth_token?: string;
249
+ /** The standard list page size. */
250
+ pageSize?: number;
251
+ /** The standard list page token. */
252
+ pageToken?: string;
253
+ /** Returns response with indentations and line breaks. */
254
+ prettyPrint?: boolean;
255
+ /** 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. */
256
+ quotaUser?: string;
257
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
258
+ upload_protocol?: string;
259
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
260
+ uploadType?: string;
261
+ }): Request<ListOperationsResponse>;
262
+ }
263
+ interface EnvironmentsResource {
264
+ /** 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. */
265
+ addPublicKey(request: {
266
+ /** V1 error format. */
267
+ '$.xgafv'?: string;
268
+ /** OAuth access token. */
269
+ access_token?: string;
270
+ /** Data format for response. */
271
+ alt?: string;
272
+ /** JSONP */
273
+ callback?: string;
274
+ /** Environment this key should be added to, e.g. `users/me/environments/default`. */
275
+ environment: string;
276
+ /** Selector specifying which fields to include in a partial response. */
277
+ fields?: string;
278
+ /** 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. */
279
+ key?: string;
280
+ /** OAuth 2.0 token for the current user. */
281
+ oauth_token?: string;
282
+ /** Returns response with indentations and line breaks. */
283
+ prettyPrint?: boolean;
284
+ /** 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. */
285
+ quotaUser?: string;
286
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
287
+ upload_protocol?: string;
288
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
289
+ uploadType?: string;
290
+ /** Request body */
291
+ resource: AddPublicKeyRequest;
292
+ }): Request<Operation>;
293
+ addPublicKey(
294
+ request: {
295
+ /** V1 error format. */
296
+ '$.xgafv'?: string;
297
+ /** OAuth access token. */
298
+ access_token?: string;
299
+ /** Data format for response. */
300
+ alt?: string;
301
+ /** JSONP */
302
+ callback?: string;
303
+ /** Environment this key should be added to, e.g. `users/me/environments/default`. */
304
+ environment: string;
305
+ /** Selector specifying which fields to include in a partial response. */
306
+ fields?: string;
307
+ /** 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. */
308
+ key?: string;
309
+ /** OAuth 2.0 token for the current user. */
310
+ oauth_token?: string;
311
+ /** Returns response with indentations and line breaks. */
312
+ prettyPrint?: boolean;
313
+ /** 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. */
314
+ quotaUser?: string;
315
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
316
+ upload_protocol?: string;
317
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
318
+ uploadType?: string;
319
+ },
320
+ body: AddPublicKeyRequest
321
+ ): Request<Operation>;
322
+ /** 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. */
323
+ authorize(request: {
324
+ /** V1 error format. */
325
+ '$.xgafv'?: string;
326
+ /** OAuth access token. */
327
+ access_token?: string;
328
+ /** Data format for response. */
329
+ alt?: string;
330
+ /** JSONP */
331
+ callback?: string;
332
+ /** Selector specifying which fields to include in a partial response. */
333
+ fields?: string;
334
+ /** 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. */
335
+ key?: string;
336
+ /** Name of the resource that should receive the credentials, for example `users/me/environments/default` or `users/someone@example.com/environments/default`. */
337
+ name: string;
338
+ /** OAuth 2.0 token for the current user. */
339
+ oauth_token?: 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 body */
349
+ resource: AuthorizeEnvironmentRequest;
350
+ }): Request<Operation>;
351
+ authorize(
352
+ 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
+ /** Name of the resource that should receive the credentials, for example `users/me/environments/default` or `users/someone@example.com/environments/default`. */
366
+ name: string;
367
+ /** OAuth 2.0 token for the current user. */
368
+ oauth_token?: string;
369
+ /** Returns response with indentations and line breaks. */
370
+ prettyPrint?: boolean;
371
+ /** 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. */
372
+ quotaUser?: string;
373
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
374
+ upload_protocol?: string;
375
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
376
+ uploadType?: string;
377
+ },
378
+ body: AuthorizeEnvironmentRequest
379
+ ): Request<Operation>;
380
+ /** Gets an environment. Returns NOT_FOUND if the environment does not exist. */
381
+ get(request?: {
382
+ /** V1 error format. */
383
+ '$.xgafv'?: string;
384
+ /** OAuth access token. */
385
+ access_token?: string;
386
+ /** Data format for response. */
387
+ alt?: string;
388
+ /** JSONP */
389
+ callback?: string;
390
+ /** Selector specifying which fields to include in a partial response. */
391
+ fields?: string;
392
+ /** 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. */
393
+ key?: string;
394
+ /** Required. Name of the requested resource, for example `users/me/environments/default` or `users/someone@example.com/environments/default`. */
395
+ name: string;
396
+ /** OAuth 2.0 token for the current user. */
397
+ oauth_token?: string;
398
+ /** Returns response with indentations and line breaks. */
399
+ prettyPrint?: boolean;
400
+ /** 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. */
401
+ quotaUser?: string;
402
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
403
+ upload_protocol?: string;
404
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
405
+ uploadType?: string;
406
+ }): Request<Environment>;
407
+ /** 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. */
408
+ removePublicKey(request: {
409
+ /** V1 error format. */
410
+ '$.xgafv'?: string;
411
+ /** OAuth access token. */
412
+ access_token?: string;
413
+ /** Data format for response. */
414
+ alt?: string;
415
+ /** JSONP */
416
+ callback?: string;
417
+ /** Environment this key should be removed from, e.g. `users/me/environments/default`. */
418
+ environment: string;
419
+ /** Selector specifying which fields to include in a partial response. */
420
+ fields?: string;
421
+ /** 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. */
422
+ key?: string;
423
+ /** OAuth 2.0 token for the current user. */
424
+ oauth_token?: string;
425
+ /** Returns response with indentations and line breaks. */
426
+ prettyPrint?: boolean;
427
+ /** 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. */
428
+ quotaUser?: string;
429
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
430
+ upload_protocol?: string;
431
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
432
+ uploadType?: string;
433
+ /** Request body */
434
+ resource: RemovePublicKeyRequest;
435
+ }): Request<Operation>;
436
+ removePublicKey(
437
+ request: {
438
+ /** V1 error format. */
439
+ '$.xgafv'?: string;
440
+ /** OAuth access token. */
441
+ access_token?: string;
442
+ /** Data format for response. */
443
+ alt?: string;
444
+ /** JSONP */
445
+ callback?: string;
446
+ /** Environment this key should be removed from, e.g. `users/me/environments/default`. */
447
+ environment: string;
448
+ /** Selector specifying which fields to include in a partial response. */
449
+ fields?: string;
450
+ /** 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. */
451
+ key?: string;
452
+ /** OAuth 2.0 token for the current user. */
453
+ oauth_token?: string;
454
+ /** Returns response with indentations and line breaks. */
455
+ prettyPrint?: boolean;
456
+ /** 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. */
457
+ quotaUser?: string;
458
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
459
+ upload_protocol?: string;
460
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
461
+ uploadType?: string;
462
+ },
463
+ body: RemovePublicKeyRequest
464
+ ): Request<Operation>;
465
+ /** 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. */
466
+ start(request: {
467
+ /** V1 error format. */
468
+ '$.xgafv'?: string;
469
+ /** OAuth access token. */
470
+ access_token?: string;
471
+ /** Data format for response. */
472
+ alt?: string;
473
+ /** JSONP */
474
+ callback?: string;
475
+ /** Selector specifying which fields to include in a partial response. */
476
+ fields?: string;
477
+ /** 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. */
478
+ key?: string;
479
+ /** Name of the resource that should be started, for example `users/me/environments/default` or `users/someone@example.com/environments/default`. */
480
+ name: string;
481
+ /** OAuth 2.0 token for the current user. */
482
+ oauth_token?: string;
483
+ /** Returns response with indentations and line breaks. */
484
+ prettyPrint?: boolean;
485
+ /** 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. */
486
+ quotaUser?: string;
487
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
488
+ upload_protocol?: string;
489
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
490
+ uploadType?: string;
491
+ /** Request body */
492
+ resource: StartEnvironmentRequest;
493
+ }): Request<Operation>;
494
+ start(
495
+ request: {
496
+ /** V1 error format. */
497
+ '$.xgafv'?: string;
498
+ /** OAuth access token. */
499
+ access_token?: string;
500
+ /** Data format for response. */
501
+ alt?: string;
502
+ /** JSONP */
503
+ callback?: string;
504
+ /** Selector specifying which fields to include in a partial response. */
505
+ fields?: string;
506
+ /** 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. */
507
+ key?: string;
508
+ /** Name of the resource that should be started, for example `users/me/environments/default` or `users/someone@example.com/environments/default`. */
509
+ name: string;
510
+ /** OAuth 2.0 token for the current user. */
511
+ oauth_token?: string;
512
+ /** Returns response with indentations and line breaks. */
513
+ prettyPrint?: boolean;
514
+ /** 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. */
515
+ quotaUser?: string;
516
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
517
+ upload_protocol?: string;
518
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
519
+ uploadType?: string;
520
+ },
521
+ body: StartEnvironmentRequest
522
+ ): Request<Operation>;
523
+ }
524
+ interface UsersResource {
525
+ environments: EnvironmentsResource;
526
+ }
785
527
 
786
- const operations: OperationsResource;
528
+ const operations: OperationsResource;
787
529
 
788
- const users: UsersResource;
789
- }
530
+ const users: UsersResource;
531
+ }
790
532
  }