@maxim_mazurok/gapi.client.workstations-v1beta 0.0.20230105 → 0.0.20230113
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 +29 -15
- package/package.json +1 -1
- package/tests.ts +9 -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://workstations.googleapis.com/$discovery/rest?version=v1beta
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230113
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -81,8 +81,14 @@ declare namespace gapi.client {
|
|
|
81
81
|
/** If set, overrides the default DIR specified by the image. */
|
|
82
82
|
workingDir?: string;
|
|
83
83
|
}
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
interface CustomerEncryptionKey {
|
|
85
|
+
/** The name of the encryption key that is stored in Google Cloud KMS, for example, `projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME`. */
|
|
86
|
+
kmsKey?: string;
|
|
87
|
+
/**
|
|
88
|
+
* The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used. However, it is recommended to use a
|
|
89
|
+
* separate service account and to follow KMS best practices mentioned at https://cloud.google.com/kms/docs/separation-of-duties
|
|
90
|
+
*/
|
|
91
|
+
kmsKeyServiceAccount?: string;
|
|
86
92
|
}
|
|
87
93
|
interface Expr {
|
|
88
94
|
/** Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. */
|
|
@@ -148,13 +154,16 @@ declare namespace gapi.client {
|
|
|
148
154
|
}
|
|
149
155
|
interface GenerateAccessTokenResponse {
|
|
150
156
|
/**
|
|
151
|
-
* The generated bearer access token. To use this token, include it in an Authorization header of an HTTP request sent to the associated workstation's hostname,
|
|
152
|
-
* Bearer
|
|
157
|
+
* The generated bearer access token. To use this token, include it in an Authorization header of an HTTP request sent to the associated workstation's hostname, for example,
|
|
158
|
+
* `Authorization: Bearer `.
|
|
153
159
|
*/
|
|
154
160
|
accessToken?: string;
|
|
155
161
|
/** Time at which the generated token will expire. */
|
|
156
162
|
expireTime?: string;
|
|
157
163
|
}
|
|
164
|
+
// tslint:disable-next-line:no-empty-interface
|
|
165
|
+
interface GoogleProtobufEmpty {
|
|
166
|
+
}
|
|
158
167
|
interface Host {
|
|
159
168
|
/** Specifies a Compute Engine instance as the host. */
|
|
160
169
|
gceInstance?: GceInstance;
|
|
@@ -230,17 +239,14 @@ declare namespace gapi.client {
|
|
|
230
239
|
interface OperationMetadata {
|
|
231
240
|
/** Output only. API version used to start the operation. */
|
|
232
241
|
apiVersion?: string;
|
|
233
|
-
/**
|
|
234
|
-
* Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have Operation.error value with a
|
|
235
|
-
* google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
|
|
236
|
-
*/
|
|
237
|
-
cancelRequested?: boolean;
|
|
238
|
-
/** Output only. The time the operation was created. */
|
|
242
|
+
/** Output only. Time that the operation was created. */
|
|
239
243
|
createTime?: string;
|
|
240
|
-
/** Output only.
|
|
244
|
+
/** Output only. Time that the operation finished running. */
|
|
241
245
|
endTime?: string;
|
|
246
|
+
/** Output only. Identifies whether the user has requested cancellation of the operation. */
|
|
247
|
+
requestedCancellation?: boolean;
|
|
242
248
|
/** Output only. Human-readable status of the operation, if any. */
|
|
243
|
-
|
|
249
|
+
statusMessage?: string;
|
|
244
250
|
/** Output only. Server-defined resource path for the target of the operation. */
|
|
245
251
|
target?: string;
|
|
246
252
|
/** Output only. Name of the verb executed by the operation. */
|
|
@@ -290,7 +296,7 @@ declare namespace gapi.client {
|
|
|
290
296
|
enablePrivateEndpoint?: boolean;
|
|
291
297
|
/**
|
|
292
298
|
* Output only. Service attachment URI for the workstation cluster. The service attachemnt is created when private endpoint is enabled. To access workstations in the cluster, configure
|
|
293
|
-
* access to the managed service using
|
|
299
|
+
* access to the managed service using [Private Service Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).
|
|
294
300
|
*/
|
|
295
301
|
serviceAttachmentUri?: string;
|
|
296
302
|
}
|
|
@@ -353,7 +359,7 @@ declare namespace gapi.client {
|
|
|
353
359
|
etag?: string;
|
|
354
360
|
/**
|
|
355
361
|
* Output only. Host to which clients can send HTTPS traffic that will be received by the workstation. Authorized traffic will be received to the workstation as HTTP on port 80. To
|
|
356
|
-
* send traffic to a different port, clients may prefix the host with the destination port in the format
|
|
362
|
+
* send traffic to a different port, clients may prefix the host with the destination port in the format `{port}-{host}`.
|
|
357
363
|
*/
|
|
358
364
|
host?: string;
|
|
359
365
|
/** Client-specified labels that are applied to the resource and that are also propagated to the underlying Compute Engine resources. */
|
|
@@ -416,6 +422,14 @@ declare namespace gapi.client {
|
|
|
416
422
|
deleteTime?: string;
|
|
417
423
|
/** Human-readable name for this resource. */
|
|
418
424
|
displayName?: string;
|
|
425
|
+
/**
|
|
426
|
+
* Encrypts resources of this workstation configuration using a customer-specified encryption key. If specified, the boot disk of the Compute Engine instance and the persistent disk
|
|
427
|
+
* will be encrypted using this encryption key. If this field is not set, the disks will be encrypted using a generated key. Customer-specified encryption keys do not protect disk
|
|
428
|
+
* metadata. If the customer-specified encryption key is rotated, when the workstation instance is stopped, the system will attempt to recreate the persistent disk with the new version
|
|
429
|
+
* of the key. Be sure to keep older versions of the key until the persistent disk is recreated. Otherwise, data on the persistent disk will be lost. If the encryption key is revoked,
|
|
430
|
+
* the workstation session will automatically be stopped within 7 hours.
|
|
431
|
+
*/
|
|
432
|
+
encryptionKey?: CustomerEncryptionKey;
|
|
419
433
|
/** Checksum computed by the server. May be sent on update and delete requests to ensure that the client has an up-to-date value before proceeding. */
|
|
420
434
|
etag?: string;
|
|
421
435
|
/** Runtime host for the workstation. */
|
package/package.json
CHANGED
package/tests.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
4
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
5
|
|
|
6
|
-
// Revision:
|
|
6
|
+
// Revision: 20230113
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -198,6 +198,10 @@ gapi.load('client', async () => {
|
|
|
198
198
|
degraded: true,
|
|
199
199
|
deleteTime: "Test string",
|
|
200
200
|
displayName: "Test string",
|
|
201
|
+
encryptionKey: {
|
|
202
|
+
kmsKey: "Test string",
|
|
203
|
+
kmsKeyServiceAccount: "Test string",
|
|
204
|
+
},
|
|
201
205
|
etag: "Test string",
|
|
202
206
|
host: {
|
|
203
207
|
gceInstance: {
|
|
@@ -307,6 +311,10 @@ gapi.load('client', async () => {
|
|
|
307
311
|
degraded: true,
|
|
308
312
|
deleteTime: "Test string",
|
|
309
313
|
displayName: "Test string",
|
|
314
|
+
encryptionKey: {
|
|
315
|
+
kmsKey: "Test string",
|
|
316
|
+
kmsKeyServiceAccount: "Test string",
|
|
317
|
+
},
|
|
310
318
|
etag: "Test string",
|
|
311
319
|
host: {
|
|
312
320
|
gceInstance: {
|