@maxim_mazurok/gapi.client.workstations-v1beta 0.0.20230802 → 0.0.20230904

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.
Files changed (3) hide show
  1. package/index.d.ts +48 -1
  2. package/package.json +1 -1
  3. package/tests.ts +37 -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: 20230802
12
+ // Revision: 20230904
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -122,6 +122,14 @@ declare namespace gapi.client {
122
122
  kmsKeyServiceAccount?:
123
123
  string;
124
124
  }
125
+ interface EphemeralDirectory {
126
+ /** An EphemeralDirectory backed by a Compute Engine persistent disk. */
127
+ gcePd?:
128
+ GcePersistentDisk;
129
+ /** Required. Location of this directory in the running workstation. */
130
+ mountPath?:
131
+ string;
132
+ }
125
133
  interface Expr {
126
134
  /** Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. */
127
135
  description?:
@@ -194,6 +202,12 @@ declare namespace gapi.client {
194
202
  */
195
203
  serviceAccount?:
196
204
  string;
205
+ /**
206
+ * Optional. Scopes to grant to the service_account. Various scopes are automatically added based on feature usage. When specified, users of workstations under this configuration must
207
+ * have `iam.serviceAccounts.actAs` on the service account.
208
+ */
209
+ serviceAccountScopes?:
210
+ string[];
197
211
  /** Optional. A set of Compute Engine Shielded instance options. */
198
212
  shieldedInstanceConfig?:
199
213
  GceShieldedInstanceConfig;
@@ -204,6 +218,26 @@ declare namespace gapi.client {
204
218
  tags?:
205
219
  string[];
206
220
  }
221
+ interface GcePersistentDisk {
222
+ /** Optional. Type of the disk to use. Defaults to `"pd-standard"`. */
223
+ diskType?:
224
+ string;
225
+ /** Optional. Whether the disk is read only. If true, the disk may be shared by multiple VMs and source_snapshot must be set. */
226
+ readOnly?:
227
+ boolean;
228
+ /**
229
+ * Optional. Name of the disk image to use as the source for the disk. Must be empty if source_snapshot is set. Updating source_image will update content in the ephemeral directory
230
+ * after the workstation is restarted. This field is mutable.
231
+ */
232
+ sourceImage?:
233
+ string;
234
+ /**
235
+ * Optional. Name of the snapshot to use as the source for the disk. Must be empty if source_image is set. Updating source_snapshot will update content in the ephemeral directory after
236
+ * the workstation is restarted. This field is mutable.
237
+ */
238
+ sourceSnapshot?:
239
+ string;
240
+ }
207
241
  interface GceRegionalPersistentDisk {
208
242
  /** Optional. The [type of the persistent disk](https://cloud.google.com/compute/docs/disks#disk-types) for the home directory. Defaults to `"pd-standard"`. */
209
243
  diskType?:
@@ -546,6 +580,9 @@ declare namespace gapi.client {
546
580
  /** Output only. Indicates whether this workstation is currently being updated to match its intended state. */
547
581
  reconciling?:
548
582
  boolean;
583
+ /** Output only. Time when this workstation was most recently successfully started, regardless of the workstation's initial state. */
584
+ startTime?:
585
+ string;
549
586
  /** Output only. Current state of the workstation. */
550
587
  state?:
551
588
  string;
@@ -652,6 +689,9 @@ declare namespace gapi.client {
652
689
  */
653
690
  encryptionKey?:
654
691
  CustomerEncryptionKey;
692
+ /** Optional. Ephemeral directories which won't persist across workstation sessions. */
693
+ ephemeralDirectories?:
694
+ EphemeralDirectory[];
655
695
  /** Optional. Checksum computed by the server. May be sent on update and delete requests to make sure that the client has an up-to-date value before proceeding. */
656
696
  etag?:
657
697
  string;
@@ -686,6 +726,13 @@ declare namespace gapi.client {
686
726
  /** Output only. Indicates whether this workstation configuration is currently being updated to match its intended state. */
687
727
  reconciling?:
688
728
  boolean;
729
+ /**
730
+ * Optional. Immutable. Specifies the zones used to replicate the VM and disk resources within the region. If set, exactly two zones within the workstation cluster's region must be
731
+ * specified—for example, `['us-central1-a', 'us-central1-f']`. If this field is empty, two default zones within the region are used. Immutable after the workstation configuration is
732
+ * created.
733
+ */
734
+ replicaZones?:
735
+ string[];
689
736
  /**
690
737
  * Optional. Number of seconds that a workstation can run until it is automatically shut down. We recommend that workstations be shut down daily to reduce costs and so that security
691
738
  * updates can be applied upon restart. The idle_timeout and running_timeout fields are independent of each other. Note that the running_timeout field shuts down VMs after the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.workstations-v1beta",
3
- "version": "0.0.20230802",
3
+ "version": "0.0.20230904",
4
4
  "description": "TypeScript typings for Cloud Workstations API v1beta",
5
5
  "license": "MIT",
6
6
  "author": {
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: 20230802
6
+ // Revision: 20230904
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -206,6 +206,17 @@ gapi.load('client', async () => {
206
206
  kmsKey: "Test string",
207
207
  kmsKeyServiceAccount: "Test string",
208
208
  },
209
+ ephemeralDirectories: [
210
+ {
211
+ gcePd: {
212
+ diskType: "Test string",
213
+ readOnly: true,
214
+ sourceImage: "Test string",
215
+ sourceSnapshot: "Test string",
216
+ },
217
+ mountPath: "Test string",
218
+ }
219
+ ],
209
220
  etag: "Test string",
210
221
  host: {
211
222
  gceInstance: {
@@ -225,6 +236,9 @@ gapi.load('client', async () => {
225
236
  pooledInstances: 42,
226
237
  poolSize: 42,
227
238
  serviceAccount: "Test string",
239
+ serviceAccountScopes: [
240
+ "Test string"
241
+ ],
228
242
  shieldedInstanceConfig: {
229
243
  enableIntegrityMonitoring: true,
230
244
  enableSecureBoot: true,
@@ -259,6 +273,9 @@ gapi.load('client', async () => {
259
273
  }
260
274
  ],
261
275
  reconciling: true,
276
+ replicaZones: [
277
+ "Test string"
278
+ ],
262
279
  runningTimeout: "Test string",
263
280
  uid: "Test string",
264
281
  updateTime: "Test string",
@@ -335,6 +352,17 @@ gapi.load('client', async () => {
335
352
  kmsKey: "Test string",
336
353
  kmsKeyServiceAccount: "Test string",
337
354
  },
355
+ ephemeralDirectories: [
356
+ {
357
+ gcePd: {
358
+ diskType: "Test string",
359
+ readOnly: true,
360
+ sourceImage: "Test string",
361
+ sourceSnapshot: "Test string",
362
+ },
363
+ mountPath: "Test string",
364
+ }
365
+ ],
338
366
  etag: "Test string",
339
367
  host: {
340
368
  gceInstance: {
@@ -354,6 +382,9 @@ gapi.load('client', async () => {
354
382
  pooledInstances: 42,
355
383
  poolSize: 42,
356
384
  serviceAccount: "Test string",
385
+ serviceAccountScopes: [
386
+ "Test string"
387
+ ],
357
388
  shieldedInstanceConfig: {
358
389
  enableIntegrityMonitoring: true,
359
390
  enableSecureBoot: true,
@@ -388,6 +419,9 @@ gapi.load('client', async () => {
388
419
  }
389
420
  ],
390
421
  reconciling: true,
422
+ replicaZones: [
423
+ "Test string"
424
+ ],
391
425
  runningTimeout: "Test string",
392
426
  uid: "Test string",
393
427
  updateTime: "Test string",
@@ -462,6 +496,7 @@ gapi.load('client', async () => {
462
496
  },
463
497
  name: "Test string",
464
498
  reconciling: true,
499
+ startTime: "Test string",
465
500
  state: "Test string",
466
501
  uid: "Test string",
467
502
  updateTime: "Test string",
@@ -523,6 +558,7 @@ gapi.load('client', async () => {
523
558
  },
524
559
  name: "Test string",
525
560
  reconciling: true,
561
+ startTime: "Test string",
526
562
  state: "Test string",
527
563
  uid: "Test string",
528
564
  updateTime: "Test string",