@maxim_mazurok/gapi.client.workstations-v1beta 0.0.20230405 → 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 +46 -33
  2. package/package.json +1 -1
  3. package/tests.ts +17 -3
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: 20230405
12
+ // Revision: 20230423
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -72,9 +72,9 @@ 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
- /** Docker image defining the container. This image must be accessible by the config's service account. */
77
+ /** Docker image defining the container. This image must be accessible by the service account specified in the workstation configuration. */
78
78
  image?: string;
79
79
  /** If set, overrides the USER specified in the image with the given uid. */
80
80
  runAsUser?: number;
@@ -114,11 +114,13 @@ 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
- * Email address of the service account that will be used on VM instances used to support this config. If not set, VMs will run with a Google-managed service account. This service
121
- * account must have permission to pull the specified container image, otherwise the image must be publicly accessible.
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
123
+ * have permission to pull the specified container image; otherwise, the image must be publicly accessible.
122
124
  */
123
125
  serviceAccount?: string;
124
126
  /** A set of Compute Engine Shielded instance options. */
@@ -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,9 +371,9 @@ 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
- /** 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. */
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;
370
378
  /**
371
379
  * 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
@@ -391,8 +399,8 @@ declare namespace gapi.client {
391
399
  /** Output only. Status conditions describing the current resource state. */
392
400
  conditions?: Status[];
393
401
  /**
394
- * Output only. The private IP address of the control plane for this cluster. Workstation VMs need access to this IP address to work with the service, so please ensure your firewall
395
- * rules allow egress from the Workstation VMs to this address.
402
+ * Output only. The private IP address of the control plane for this cluster. Workstation VMs need access to this IP address to work with the service, so make sure that your firewall
403
+ * rules allow egress from the workstation VMs to this address.
396
404
  */
397
405
  controlPlaneIp?: string;
398
406
  /** Output only. Time when this resource was created. */
@@ -403,7 +411,7 @@ declare namespace gapi.client {
403
411
  deleteTime?: string;
404
412
  /** Human-readable name for this resource. */
405
413
  displayName?: string;
406
- /** 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. */
414
+ /** 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. */
407
415
  etag?: string;
408
416
  /** Client-specified labels that are applied to the resource and that are also propagated to the underlying Compute Engine resources. */
409
417
  labels?: { [P in string]: string };
@@ -447,10 +455,10 @@ declare namespace gapi.client {
447
455
  * persistent disk are encrypted using this encryption key. If this field is not set, the disks are encrypted using a generated key. Customer-managed encryption keys do not protect
448
456
  * disk metadata. If the customer-managed encryption key is rotated, when the workstation instance is stopped, the system attempts to recreate the persistent disk with the new version
449
457
  * 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,
450
- * the workstation session will automatically be stopped within 7 hours. Immutable after workstation config is created.
458
+ * the workstation session will automatically be stopped within 7 hours. Immutable after the workstation configuration is created.
451
459
  */
452
460
  encryptionKey?: CustomerEncryptionKey;
453
- /** 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. */
461
+ /** 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. */
454
462
  etag?: string;
455
463
  /** Runtime host for the workstation. */
456
464
  host?: Host;
@@ -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;
@@ -847,7 +860,7 @@ declare namespace gapi.client {
847
860
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
848
861
  uploadType?: string;
849
862
  }): Request<Policy>;
850
- /** Returns all Workstations using the specified config. */
863
+ /** Returns all Workstations using the specified workstation configuration. */
851
864
  list(request?: {
852
865
  /** V1 error format. */
853
866
  "$.xgafv"?: string;
@@ -878,7 +891,7 @@ declare namespace gapi.client {
878
891
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
879
892
  uploadType?: string;
880
893
  }): Request<ListWorkstationsResponse>;
881
- /** Returns all Workstations using the specified config on which the caller has the "workstations.workstations.use" permission. */
894
+ /** Returns all workstations using the specified workstation configuration on which the caller has the "workstations.workstations.use" permission. */
882
895
  listUsable(request?: {
883
896
  /** V1 error format. */
884
897
  "$.xgafv"?: string;
@@ -915,7 +928,7 @@ declare namespace gapi.client {
915
928
  "$.xgafv"?: string;
916
929
  /** OAuth access token. */
917
930
  access_token?: string;
918
- /** If set, and the config is not found, a new config will be created. In this situation, update_mask is ignored. */
931
+ /** If set and the workstation configuration is not found, a new workstation configuration is created. In this situation, update_mask is ignored. */
919
932
  allowMissing?: boolean;
920
933
  /** Data format for response. */
921
934
  alt?: string;
@@ -933,7 +946,7 @@ declare namespace gapi.client {
933
946
  prettyPrint?: boolean;
934
947
  /** 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. */
935
948
  quotaUser?: string;
936
- /** Required. Mask specifying which fields in the config should be updated. */
949
+ /** Required. Mask specifying which fields in the workstation configuration should be updated. */
937
950
  updateMask?: string;
938
951
  /** Upload protocol for media (e.g. "raw", "multipart"). */
939
952
  upload_protocol?: string;
@@ -949,7 +962,7 @@ declare namespace gapi.client {
949
962
  "$.xgafv"?: string;
950
963
  /** OAuth access token. */
951
964
  access_token?: string;
952
- /** If set, and the config is not found, a new config will be created. In this situation, update_mask is ignored. */
965
+ /** If set and the workstation configuration is not found, a new workstation configuration is created. In this situation, update_mask is ignored. */
953
966
  allowMissing?: boolean;
954
967
  /** Data format for response. */
955
968
  alt?: string;
@@ -967,7 +980,7 @@ declare namespace gapi.client {
967
980
  prettyPrint?: boolean;
968
981
  /** 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. */
969
982
  quotaUser?: string;
970
- /** Required. Mask specifying which fields in the config should be updated. */
983
+ /** Required. Mask specifying which fields in the workstation configuration should be updated. */
971
984
  updateMask?: string;
972
985
  /** Upload protocol for media (e.g. "raw", "multipart"). */
973
986
  upload_protocol?: string;
@@ -1184,7 +1197,7 @@ declare namespace gapi.client {
1184
1197
  uploadType?: string;
1185
1198
  /** If set, validate the request and preview the review, but do not actually apply it. */
1186
1199
  validateOnly?: boolean;
1187
- /** Required. ID to use for the config. */
1200
+ /** Required. ID to use for the workstation configuration. */
1188
1201
  workstationConfigId?: string;
1189
1202
  /** Request body */
1190
1203
  resource: WorkstationConfig;
@@ -1216,7 +1229,7 @@ declare namespace gapi.client {
1216
1229
  uploadType?: string;
1217
1230
  /** If set, validate the request and preview the review, but do not actually apply it. */
1218
1231
  validateOnly?: boolean;
1219
- /** Required. ID to use for the config. */
1232
+ /** Required. ID to use for the workstation configuration. */
1220
1233
  workstationConfigId?: string;
1221
1234
  },
1222
1235
  body: WorkstationConfig): Request<Operation>;
@@ -1230,15 +1243,15 @@ declare namespace gapi.client {
1230
1243
  alt?: string;
1231
1244
  /** JSONP */
1232
1245
  callback?: string;
1233
- /** If set, the request will be rejected if the latest version of the config 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;
1237
- /** If set, any Workstations in the config will also be deleted. Otherwise, the request will work only if the config has no workstations. */
1250
+ /** If set, any workstations in the workstation configuration are also deleted. Otherwise, the request works only if the workstation configuration has no workstations. */
1238
1251
  force?: boolean;
1239
1252
  /** 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. */
1240
1253
  key?: string;
1241
- /** Required. Name of the config to delete. */
1254
+ /** Required. Name of the workstation configuration to delete. */
1242
1255
  name: string;
1243
1256
  /** OAuth 2.0 token for the current user. */
1244
1257
  oauth_token?: string;
@@ -1386,7 +1399,7 @@ declare namespace gapi.client {
1386
1399
  "$.xgafv"?: string;
1387
1400
  /** OAuth access token. */
1388
1401
  access_token?: string;
1389
- /** If set, and the config is not found, a new config will be created. In this situation, update_mask is ignored. */
1402
+ /** If set and the workstation configuration is not found, a new workstation configuration will be created. In this situation, update_mask is ignored. */
1390
1403
  allowMissing?: boolean;
1391
1404
  /** Data format for response. */
1392
1405
  alt?: string;
@@ -1404,7 +1417,7 @@ declare namespace gapi.client {
1404
1417
  prettyPrint?: boolean;
1405
1418
  /** 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. */
1406
1419
  quotaUser?: string;
1407
- /** Required. Mask specifying which fields in the config should be updated. */
1420
+ /** Required. Mask specifying which fields in the workstation configuration should be updated. */
1408
1421
  updateMask?: string;
1409
1422
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1410
1423
  upload_protocol?: string;
@@ -1420,7 +1433,7 @@ declare namespace gapi.client {
1420
1433
  "$.xgafv"?: string;
1421
1434
  /** OAuth access token. */
1422
1435
  access_token?: string;
1423
- /** If set, and the config is not found, a new config will be created. In this situation, update_mask is ignored. */
1436
+ /** If set and the workstation configuration is not found, a new workstation configuration will be created. In this situation, update_mask is ignored. */
1424
1437
  allowMissing?: boolean;
1425
1438
  /** Data format for response. */
1426
1439
  alt?: string;
@@ -1438,7 +1451,7 @@ declare namespace gapi.client {
1438
1451
  prettyPrint?: boolean;
1439
1452
  /** 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. */
1440
1453
  quotaUser?: string;
1441
- /** Required. Mask specifying which fields in the config should be updated. */
1454
+ /** Required. Mask specifying which fields in the workstation configuration should be updated. */
1442
1455
  updateMask?: string;
1443
1456
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1444
1457
  upload_protocol?: 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.20230405",
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: 20230405
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",
@@ -460,13 +474,13 @@ gapi.load('client', async () => {
460
474
  "options.requestedPolicyVersion": 42,
461
475
  resource: "Test string",
462
476
  });
463
- /** Returns all Workstations using the specified config. */
477
+ /** Returns all Workstations using the specified workstation configuration. */
464
478
  await gapi.client.workstations.projects.locations.workstationClusters.workstationConfigs.workstations.list({
465
479
  pageSize: 42,
466
480
  pageToken: "Test string",
467
481
  parent: "Test string",
468
482
  });
469
- /** Returns all Workstations using the specified config on which the caller has the "workstations.workstations.use" permission. */
483
+ /** Returns all workstations using the specified workstation configuration on which the caller has the "workstations.workstations.use" permission. */
470
484
  await gapi.client.workstations.projects.locations.workstationClusters.workstationConfigs.workstations.listUsable({
471
485
  pageSize: 42,
472
486
  pageToken: "Test string",