@maxim_mazurok/gapi.client.workstations-v1beta 0.0.20230412 → 0.0.20230423

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 +23 -10
  2. package/package.json +1 -1
  3. package/tests.ts +15 -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: 20230412
12
+ // Revision: 20230423
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -72,7 +72,7 @@ declare namespace gapi.client {
72
72
  args?: string[];
73
73
  /** If set, overrides the default ENTRYPOINT specified by the image. */
74
74
  command?: string[];
75
- /** Environment variables passed to the container. */
75
+ /** Environment variables passed to the container's entrypoint. */
76
76
  env?: { [P in string]: string };
77
77
  /** Docker image defining the container. This image must be accessible by the service account specified in the workstation configuration. */
78
78
  image?: string;
@@ -114,7 +114,9 @@ declare namespace gapi.client {
114
114
  disablePublicIpAddresses?: boolean;
115
115
  /** The name of a Compute Engine machine type. */
116
116
  machineType?: string;
117
- /** Number of instances to pool for faster workstation starup. */
117
+ /** Output only. Number of instances currently available in the pool for faster workstation startup. */
118
+ pooledInstances?: number;
119
+ /** Number of instances to pool for faster workstation startup. */
118
120
  poolSize?: number;
119
121
  /**
120
122
  * Email address of the service account used on VM instances used to support this configuration. If not set, VMs run with a Google-managed service account. This service account must
@@ -157,7 +159,7 @@ declare namespace gapi.client {
157
159
  }
158
160
  interface GenerateAccessTokenResponse {
159
161
  /**
160
- * 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,
162
+ * 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 hostnamefor example,
161
163
  * `Authorization: Bearer `.
162
164
  */
163
165
  accessToken?: string;
@@ -308,6 +310,12 @@ declare namespace gapi.client {
308
310
  */
309
311
  serviceAttachmentUri?: string;
310
312
  }
313
+ interface ReadinessCheck {
314
+ /** Path to which the request should be sent. */
315
+ path?: string;
316
+ /** Port to which the request should be sent. */
317
+ port?: number;
318
+ }
311
319
  interface SetIamPolicyRequest {
312
320
  /**
313
321
  * REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud
@@ -321,7 +329,7 @@ declare namespace gapi.client {
321
329
  updateMask?: string;
322
330
  }
323
331
  interface StartWorkstationRequest {
324
- /** If set, the request will be rejected if the latest version of the workstation on the server does not have this etag. */
332
+ /** If set, the request will be rejected if the latest version of the workstation on the server does not have this ETag. */
325
333
  etag?: string;
326
334
  /** If set, validate the request and preview the review, but do not actually apply it. */
327
335
  validateOnly?: boolean;
@@ -338,7 +346,7 @@ declare namespace gapi.client {
338
346
  message?: string;
339
347
  }
340
348
  interface StopWorkstationRequest {
341
- /** If set, the request will be rejected if the latest version of the workstation on the server does not have this etag. */
349
+ /** If set, the request will be rejected if the latest version of the workstation on the server does not have this ETag. */
342
350
  etag?: string;
343
351
  /** If set, validate the request and preview the review, but do not actually apply it. */
344
352
  validateOnly?: boolean;
@@ -363,7 +371,7 @@ declare namespace gapi.client {
363
371
  deleteTime?: string;
364
372
  /** Human-readable name for this resource. */
365
373
  displayName?: string;
366
- /** Environment variables passed to the workstation container. */
374
+ /** Environment variables passed to the workstation container's entrypoint. */
367
375
  env?: { [P in string]: string };
368
376
  /** 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. */
369
377
  etag?: string;
@@ -465,6 +473,11 @@ declare namespace gapi.client {
465
473
  name?: string;
466
474
  /** Directories to persist across workstation sessions. */
467
475
  persistentDirectories?: PersistentDirectory[];
476
+ /**
477
+ * Readiness checks to perform when starting a workstation using this workstation configuration. Mark a workstation as running only after all specified readiness checks return 200
478
+ * status codes.
479
+ */
480
+ readinessChecks?: ReadinessCheck[];
468
481
  /** Output only. Indicates whether this resource is currently being updated to match its intended state. */
469
482
  reconciling?: boolean;
470
483
  /**
@@ -705,7 +718,7 @@ declare namespace gapi.client {
705
718
  alt?: string;
706
719
  /** JSONP */
707
720
  callback?: string;
708
- /** If set, the request will be rejected if the latest version of the workstation on the server does not have this etag. */
721
+ /** If set, the request will be rejected if the latest version of the workstation on the server does not have this ETag. */
709
722
  etag?: string;
710
723
  /** Selector specifying which fields to include in a partial response. */
711
724
  fields?: string;
@@ -1230,7 +1243,7 @@ declare namespace gapi.client {
1230
1243
  alt?: string;
1231
1244
  /** JSONP */
1232
1245
  callback?: string;
1233
- /** If set, the request is rejected if the latest version of the workstation configuration on the server does not have this etag. */
1246
+ /** If set, the request is rejected if the latest version of the workstation configuration on the server does not have this ETag. */
1234
1247
  etag?: string;
1235
1248
  /** Selector specifying which fields to include in a partial response. */
1236
1249
  fields?: string;
@@ -1590,7 +1603,7 @@ declare namespace gapi.client {
1590
1603
  alt?: string;
1591
1604
  /** JSONP */
1592
1605
  callback?: string;
1593
- /** If set, the request will be rejected if the latest version of the workstation cluster on the server does not have this etag. */
1606
+ /** If set, the request will be rejected if the latest version of the workstation cluster on the server does not have this ETag. */
1594
1607
  etag?: string;
1595
1608
  /** Selector specifying which fields to include in a partial response. */
1596
1609
  fields?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.workstations-v1beta",
3
- "version": "0.0.20230412",
3
+ "version": "0.0.20230423",
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: 20230412
6
+ // Revision: 20230423
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -215,6 +215,7 @@ gapi.load('client', async () => {
215
215
  },
216
216
  disablePublicIpAddresses: true,
217
217
  machineType: "Test string",
218
+ pooledInstances: 42,
218
219
  poolSize: 42,
219
220
  serviceAccount: "Test string",
220
221
  shieldedInstanceConfig: {
@@ -244,6 +245,12 @@ gapi.load('client', async () => {
244
245
  mountPath: "Test string",
245
246
  }
246
247
  ],
248
+ readinessChecks: [
249
+ {
250
+ path: "Test string",
251
+ port: 42,
252
+ }
253
+ ],
247
254
  reconciling: true,
248
255
  runningTimeout: "Test string",
249
256
  uid: "Test string",
@@ -330,6 +337,7 @@ gapi.load('client', async () => {
330
337
  },
331
338
  disablePublicIpAddresses: true,
332
339
  machineType: "Test string",
340
+ pooledInstances: 42,
333
341
  poolSize: 42,
334
342
  serviceAccount: "Test string",
335
343
  shieldedInstanceConfig: {
@@ -359,6 +367,12 @@ gapi.load('client', async () => {
359
367
  mountPath: "Test string",
360
368
  }
361
369
  ],
370
+ readinessChecks: [
371
+ {
372
+ path: "Test string",
373
+ port: 42,
374
+ }
375
+ ],
362
376
  reconciling: true,
363
377
  runningTimeout: "Test string",
364
378
  uid: "Test string",