@maxim_mazurok/gapi.client.workstations-v1beta 0.0.20230201 → 0.0.20230220

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 +26 -23
  2. package/package.json +1 -1
  3. package/tests.ts +3 -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: 20230201
12
+ // Revision: 20230220
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -82,11 +82,12 @@ declare namespace gapi.client {
82
82
  workingDir?: string;
83
83
  }
84
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`. */
85
+ /** The name of the Google Cloud KMS encryption key. For example, `projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME`. */
86
86
  kmsKey?: string;
87
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
88
+ * The service account to use with the specified KMS key. We recommend that you use a separate service account and follow KMS best practices. For more information, see [Separation of
89
+ * duties](https://cloud.google.com/kms/docs/separation-of-duties) and `gcloud kms keys add-iam-policy-binding`
90
+ * [`--member`](https://cloud.google.com/sdk/gcloud/reference/kms/keys/add-iam-policy-binding#--member).
90
91
  */
91
92
  kmsKeyServiceAccount?: string;
92
93
  }
@@ -134,6 +135,8 @@ declare namespace gapi.client {
134
135
  reclaimPolicy?: string;
135
136
  /** Size of the disk in GB. Must be empty if source_snapshot is set. */
136
137
  sizeGb?: number;
138
+ /** Name of the snapshot to use as the source for the disk. If set, size_gb and fs_type must be empty. */
139
+ sourceSnapshot?: string;
137
140
  }
138
141
  interface GceShieldedInstanceConfig {
139
142
  /** Whether the instance has integrity monitoring enabled. */
@@ -195,7 +198,7 @@ declare namespace gapi.client {
195
198
  nextPageToken?: string;
196
199
  /** Unreachable resources. */
197
200
  unreachable?: string[];
198
- /** The requested clusters. */
201
+ /** The requested workstation clusters. */
199
202
  workstationClusters?: WorkstationCluster[];
200
203
  }
201
204
  interface ListWorkstationConfigsResponse {
@@ -428,11 +431,11 @@ declare namespace gapi.client {
428
431
  /** Human-readable name for this resource. */
429
432
  displayName?: string;
430
433
  /**
431
- * 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
432
- * 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
433
- * 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
434
- * 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,
435
- * the workstation session will automatically be stopped within 7 hours.
434
+ * Encrypts resources of this workstation configuration using a customer-managed encryption key. If specified, the boot disk of the Compute Engine instance and the persistent disk are
435
+ * 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 disk metadata. If the
436
+ * customer-managed encryption key is rotated, when the workstation instance is stopped, the system attempts to recreate the persistent disk with the new version of the key. Be sure to
437
+ * 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, the workstation session
438
+ * will automatically be stopped within 7 hours.
436
439
  */
437
440
  encryptionKey?: CustomerEncryptionKey;
438
441
  /** 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. */
@@ -453,8 +456,8 @@ declare namespace gapi.client {
453
456
  /** Output only. Indicates whether this resource is currently being updated to match its intended state. */
454
457
  reconciling?: boolean;
455
458
  /**
456
- * How long to wait before automatically stopping a workstation after it started. A value of 0 indicates that workstations using this config should never time out. Must be greater than
457
- * 0 and less than 24 hours if encryption_key is set. Defaults to 12 hours.
459
+ * How long to wait before automatically stopping a workstation after it started. A value of 0 indicates that workstations using this configuration should never time out. Must be
460
+ * greater than 0 and less than 24 hours if encryption_key is set. Defaults to 12 hours.
458
461
  */
459
462
  runningTimeout?: string;
460
463
  /** Output only. A system-assigned unique identified for this resource. */
@@ -1534,7 +1537,7 @@ declare namespace gapi.client {
1534
1537
  uploadType?: string;
1535
1538
  /** If set, validate the request and preview the review, but do not actually apply it. */
1536
1539
  validateOnly?: boolean;
1537
- /** Required. ID to use for the cluster. */
1540
+ /** Required. ID to use for the workstation cluster. */
1538
1541
  workstationClusterId?: string;
1539
1542
  /** Request body */
1540
1543
  resource: WorkstationCluster;
@@ -1566,7 +1569,7 @@ declare namespace gapi.client {
1566
1569
  uploadType?: string;
1567
1570
  /** If set, validate the request and preview the review, but do not actually apply it. */
1568
1571
  validateOnly?: boolean;
1569
- /** Required. ID to use for the cluster. */
1572
+ /** Required. ID to use for the workstation cluster. */
1570
1573
  workstationClusterId?: string;
1571
1574
  },
1572
1575
  body: WorkstationCluster): Request<Operation>;
@@ -1580,18 +1583,18 @@ declare namespace gapi.client {
1580
1583
  alt?: string;
1581
1584
  /** JSONP */
1582
1585
  callback?: string;
1583
- /** If set, the request will be rejected if the latest version of the cluster on the server does not have this etag. */
1586
+ /** If set, the request will be rejected if the latest version of the workstation cluster on the server does not have this etag. */
1584
1587
  etag?: string;
1585
1588
  /** Selector specifying which fields to include in a partial response. */
1586
1589
  fields?: string;
1587
1590
  /**
1588
- * If set, any workstation configurations and workstations in the cluster will also be deleted. Otherwise, the request will work only if the cluster has no configurations or
1589
- * workstations.
1591
+ * If set, any workstation configurations and workstations in the workstation cluster are also deleted. Otherwise, the request only works if the workstation cluster has no
1592
+ * configurations or workstations.
1590
1593
  */
1591
1594
  force?: boolean;
1592
1595
  /** 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. */
1593
1596
  key?: string;
1594
- /** Required. Name of the cluster to delete. */
1597
+ /** Required. Name of the workstation cluster to delete. */
1595
1598
  name: string;
1596
1599
  /** OAuth 2.0 token for the current user. */
1597
1600
  oauth_token?: string;
@@ -1603,7 +1606,7 @@ declare namespace gapi.client {
1603
1606
  upload_protocol?: string;
1604
1607
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1605
1608
  uploadType?: string;
1606
- /** If set, validate the request and preview the review, but do not actually apply it. */
1609
+ /** If set, validate the request and preview the review, but do not apply it. */
1607
1610
  validateOnly?: boolean;
1608
1611
  }): Request<Operation>;
1609
1612
  /** Returns the requested workstation cluster. */
@@ -1670,7 +1673,7 @@ declare namespace gapi.client {
1670
1673
  "$.xgafv"?: string;
1671
1674
  /** OAuth access token. */
1672
1675
  access_token?: string;
1673
- /** If set, and the cluster is not found, a new cluster will be created. In this situation, update_mask is ignored. */
1676
+ /** If set, and the workstation cluster is not found, a new workstation cluster will be created. In this situation, update_mask is ignored. */
1674
1677
  allowMissing?: boolean;
1675
1678
  /** Data format for response. */
1676
1679
  alt?: string;
@@ -1688,7 +1691,7 @@ declare namespace gapi.client {
1688
1691
  prettyPrint?: boolean;
1689
1692
  /** 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. */
1690
1693
  quotaUser?: string;
1691
- /** Required. Mask specifying which fields in the cluster should be updated. */
1694
+ /** Required. Mask that specifies which fields in the workstation cluster should be updated. */
1692
1695
  updateMask?: string;
1693
1696
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1694
1697
  upload_protocol?: string;
@@ -1704,7 +1707,7 @@ declare namespace gapi.client {
1704
1707
  "$.xgafv"?: string;
1705
1708
  /** OAuth access token. */
1706
1709
  access_token?: string;
1707
- /** If set, and the cluster is not found, a new cluster will be created. In this situation, update_mask is ignored. */
1710
+ /** If set, and the workstation cluster is not found, a new workstation cluster will be created. In this situation, update_mask is ignored. */
1708
1711
  allowMissing?: boolean;
1709
1712
  /** Data format for response. */
1710
1713
  alt?: string;
@@ -1722,7 +1725,7 @@ declare namespace gapi.client {
1722
1725
  prettyPrint?: boolean;
1723
1726
  /** 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. */
1724
1727
  quotaUser?: string;
1725
- /** Required. Mask specifying which fields in the cluster should be updated. */
1728
+ /** Required. Mask that specifies which fields in the workstation cluster should be updated. */
1726
1729
  updateMask?: string;
1727
1730
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1728
1731
  upload_protocol?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.workstations-v1beta",
3
- "version": "0.0.20230201",
3
+ "version": "0.0.20230220",
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: 20230201
6
+ // Revision: 20230220
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -241,6 +241,7 @@ gapi.load('client', async () => {
241
241
  fsType: "Test string",
242
242
  reclaimPolicy: "Test string",
243
243
  sizeGb: 42,
244
+ sourceSnapshot: "Test string",
244
245
  },
245
246
  mountPath: "Test string",
246
247
  }
@@ -354,6 +355,7 @@ gapi.load('client', async () => {
354
355
  fsType: "Test string",
355
356
  reclaimPolicy: "Test string",
356
357
  sizeGb: 42,
358
+ sourceSnapshot: "Test string",
357
359
  },
358
360
  mountPath: "Test string",
359
361
  }