@maxim_mazurok/gapi.client.workstations-v1beta 0.0.20230113 → 0.0.20230208

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 +37 -31
  2. package/package.json +1 -1
  3. package/tests.ts +7 -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: 20230113
12
+ // Revision: 20230208
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -51,14 +51,14 @@ declare namespace gapi.client {
51
51
  * Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example,
52
52
  * `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service
53
53
  * account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. *
54
- * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
55
- * identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to
56
- * `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing
57
- * a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value
58
- * reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
59
- * identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to
60
- * `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For
61
- * example, `google.com` or `example.com`.
54
+ * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the
55
+ * users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has
56
+ * been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains
57
+ * the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently
58
+ * deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and
59
+ * the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that
60
+ * has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group
61
+ * retains the role in the binding.
62
62
  */
63
63
  members?: string[];
64
64
  /** Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. */
@@ -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
  }
@@ -195,7 +196,7 @@ declare namespace gapi.client {
195
196
  nextPageToken?: string;
196
197
  /** Unreachable resources. */
197
198
  unreachable?: string[];
198
- /** The requested clusters. */
199
+ /** The requested workstation clusters. */
199
200
  workstationClusters?: WorkstationCluster[];
200
201
  }
201
202
  interface ListWorkstationConfigsResponse {
@@ -287,6 +288,11 @@ declare namespace gapi.client {
287
288
  version?: number;
288
289
  }
289
290
  interface PrivateClusterConfig {
291
+ /**
292
+ * Additional projects that are allowed to attach to the workstation cluster's service attachment. By default, the workstation cluster's project and the VPC host project (if different)
293
+ * are allowed.
294
+ */
295
+ allowedProjects?: string[];
290
296
  /**
291
297
  * Output only. Hostname for the workstation cluster. This field will be populated only when private endpoint is enabled. To access workstations in the cluster, create a new DNS zone
292
298
  * mapping this domain name to an internal IP address and a forwarding rule mapping that address to the service attachment.
@@ -423,11 +429,11 @@ declare namespace gapi.client {
423
429
  /** Human-readable name for this resource. */
424
430
  displayName?: string;
425
431
  /**
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.
432
+ * 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
433
+ * 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
434
+ * 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
435
+ * 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
436
+ * will automatically be stopped within 7 hours.
431
437
  */
432
438
  encryptionKey?: CustomerEncryptionKey;
433
439
  /** 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. */
@@ -448,8 +454,8 @@ declare namespace gapi.client {
448
454
  /** Output only. Indicates whether this resource is currently being updated to match its intended state. */
449
455
  reconciling?: boolean;
450
456
  /**
451
- * 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
452
- * 0 and less than 24 hours if encryption_key is set. Defaults to 12 hours.
457
+ * 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
458
+ * greater than 0 and less than 24 hours if encryption_key is set. Defaults to 12 hours.
453
459
  */
454
460
  runningTimeout?: string;
455
461
  /** Output only. A system-assigned unique identified for this resource. */
@@ -1529,7 +1535,7 @@ declare namespace gapi.client {
1529
1535
  uploadType?: string;
1530
1536
  /** If set, validate the request and preview the review, but do not actually apply it. */
1531
1537
  validateOnly?: boolean;
1532
- /** Required. ID to use for the cluster. */
1538
+ /** Required. ID to use for the workstation cluster. */
1533
1539
  workstationClusterId?: string;
1534
1540
  /** Request body */
1535
1541
  resource: WorkstationCluster;
@@ -1561,7 +1567,7 @@ declare namespace gapi.client {
1561
1567
  uploadType?: string;
1562
1568
  /** If set, validate the request and preview the review, but do not actually apply it. */
1563
1569
  validateOnly?: boolean;
1564
- /** Required. ID to use for the cluster. */
1570
+ /** Required. ID to use for the workstation cluster. */
1565
1571
  workstationClusterId?: string;
1566
1572
  },
1567
1573
  body: WorkstationCluster): Request<Operation>;
@@ -1575,18 +1581,18 @@ declare namespace gapi.client {
1575
1581
  alt?: string;
1576
1582
  /** JSONP */
1577
1583
  callback?: string;
1578
- /** If set, the request will be rejected if the latest version of the cluster on the server does not have this etag. */
1584
+ /** If set, the request will be rejected if the latest version of the workstation cluster on the server does not have this etag. */
1579
1585
  etag?: string;
1580
1586
  /** Selector specifying which fields to include in a partial response. */
1581
1587
  fields?: string;
1582
1588
  /**
1583
- * 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
1584
- * workstations.
1589
+ * 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
1590
+ * configurations or workstations.
1585
1591
  */
1586
1592
  force?: boolean;
1587
1593
  /** 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. */
1588
1594
  key?: string;
1589
- /** Required. Name of the cluster to delete. */
1595
+ /** Required. Name of the workstation cluster to delete. */
1590
1596
  name: string;
1591
1597
  /** OAuth 2.0 token for the current user. */
1592
1598
  oauth_token?: string;
@@ -1598,7 +1604,7 @@ declare namespace gapi.client {
1598
1604
  upload_protocol?: string;
1599
1605
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1600
1606
  uploadType?: string;
1601
- /** If set, validate the request and preview the review, but do not actually apply it. */
1607
+ /** If set, validate the request and preview the review, but do not apply it. */
1602
1608
  validateOnly?: boolean;
1603
1609
  }): Request<Operation>;
1604
1610
  /** Returns the requested workstation cluster. */
@@ -1665,7 +1671,7 @@ declare namespace gapi.client {
1665
1671
  "$.xgafv"?: string;
1666
1672
  /** OAuth access token. */
1667
1673
  access_token?: string;
1668
- /** If set, and the cluster is not found, a new cluster will be created. In this situation, update_mask is ignored. */
1674
+ /** If set, and the workstation cluster is not found, a new workstation cluster will be created. In this situation, update_mask is ignored. */
1669
1675
  allowMissing?: boolean;
1670
1676
  /** Data format for response. */
1671
1677
  alt?: string;
@@ -1683,7 +1689,7 @@ declare namespace gapi.client {
1683
1689
  prettyPrint?: boolean;
1684
1690
  /** 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. */
1685
1691
  quotaUser?: string;
1686
- /** Required. Mask specifying which fields in the cluster should be updated. */
1692
+ /** Required. Mask that specifies which fields in the workstation cluster should be updated. */
1687
1693
  updateMask?: string;
1688
1694
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1689
1695
  upload_protocol?: string;
@@ -1699,7 +1705,7 @@ declare namespace gapi.client {
1699
1705
  "$.xgafv"?: string;
1700
1706
  /** OAuth access token. */
1701
1707
  access_token?: string;
1702
- /** If set, and the cluster is not found, a new cluster will be created. In this situation, update_mask is ignored. */
1708
+ /** If set, and the workstation cluster is not found, a new workstation cluster will be created. In this situation, update_mask is ignored. */
1703
1709
  allowMissing?: boolean;
1704
1710
  /** Data format for response. */
1705
1711
  alt?: string;
@@ -1717,7 +1723,7 @@ declare namespace gapi.client {
1717
1723
  prettyPrint?: boolean;
1718
1724
  /** 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. */
1719
1725
  quotaUser?: string;
1720
- /** Required. Mask specifying which fields in the cluster should be updated. */
1726
+ /** Required. Mask that specifies which fields in the workstation cluster should be updated. */
1721
1727
  updateMask?: string;
1722
1728
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1723
1729
  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.20230113",
3
+ "version": "0.0.20230208",
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: 20230113
6
+ // Revision: 20230208
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -93,6 +93,9 @@ gapi.load('client', async () => {
93
93
  name: "Test string",
94
94
  network: "Test string",
95
95
  privateClusterConfig: {
96
+ allowedProjects: [
97
+ "Test string"
98
+ ],
96
99
  clusterHostname: "Test string",
97
100
  enablePrivateEndpoint: true,
98
101
  serviceAttachmentUri: "Test string",
@@ -151,6 +154,9 @@ gapi.load('client', async () => {
151
154
  name: "Test string",
152
155
  network: "Test string",
153
156
  privateClusterConfig: {
157
+ allowedProjects: [
158
+ "Test string"
159
+ ],
154
160
  clusterHostname: "Test string",
155
161
  enablePrivateEndpoint: true,
156
162
  serviceAttachmentUri: "Test string",