@maxim_mazurok/gapi.client.workstations-v1beta 0.0.20230517 → 0.0.20230607
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.
- package/index.d.ts +52 -26
- package/package.json +1 -1
- package/tests.ts +1 -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:
|
|
12
|
+
// Revision: 20230607
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -92,7 +92,12 @@ declare namespace gapi.client {
|
|
|
92
92
|
/** Environment variables passed to the container's entrypoint. */
|
|
93
93
|
env?:
|
|
94
94
|
{ [P in string]: string };
|
|
95
|
-
/**
|
|
95
|
+
/**
|
|
96
|
+
* A Docker container image that defines a custom environment. Cloud Workstations provides a number of [preconfigured
|
|
97
|
+
* images](https://cloud.google.com/workstations/docs/preconfigured-base-images), but you can create your own [custom container
|
|
98
|
+
* images](https://cloud.google.com/workstations/docs/custom-container-images). If using a private image, the `host.gceInstance.serviceAccount` field must be specified in the
|
|
99
|
+
* workstation configuration and must have permission to pull the specified image. Otherwise, the image must be publicly accessible.s
|
|
100
|
+
*/
|
|
96
101
|
image?:
|
|
97
102
|
string;
|
|
98
103
|
/** If set, overrides the USER specified in the image with the given uid. */
|
|
@@ -140,48 +145,64 @@ declare namespace gapi.client {
|
|
|
140
145
|
/** A list of the type and count of accelerator cards attached to the instance. */
|
|
141
146
|
accelerators?:
|
|
142
147
|
Accelerator[];
|
|
143
|
-
/**
|
|
148
|
+
/** The size of the boot disk for the VM in gigabytes (GB). The minimum boot disk size is `30` GB. Defaults to `50` GB. */
|
|
144
149
|
bootDiskSizeGb?:
|
|
145
150
|
number;
|
|
146
151
|
/** A set of Compute Engine Confidential VM instance options. */
|
|
147
152
|
confidentialInstanceConfig?:
|
|
148
153
|
GceConfidentialInstanceConfig;
|
|
149
|
-
/**
|
|
154
|
+
/**
|
|
155
|
+
* When set to true, disables public IP addresses for VMs. If you disable public IP addresses, you must set up Private Google Access or Cloud NAT on your network. If you use Private
|
|
156
|
+
* Google Access and you use `private.googleapis.com` or `restricted.googleapis.com` for Container Registry and Artifact Registry, make sure that you set up DNS records for domains
|
|
157
|
+
* `*.gcr.io` and `*.pkg.dev`. Defaults to false (VMs have public IP addresses).
|
|
158
|
+
*/
|
|
150
159
|
disablePublicIpAddresses?:
|
|
151
160
|
boolean;
|
|
152
|
-
/**
|
|
161
|
+
/**
|
|
162
|
+
* The type of machine to use for VM instances—for example, `e2-standard-4`. For more information about machine types that Cloud Workstations supports, see the list of [available
|
|
163
|
+
* machine types](https://cloud.google.com/workstations/docs/available-machine-types).
|
|
164
|
+
*/
|
|
153
165
|
machineType?:
|
|
154
166
|
string;
|
|
155
167
|
/** Output only. Number of instances currently available in the pool for faster workstation startup. */
|
|
156
168
|
pooledInstances?:
|
|
157
169
|
number;
|
|
158
|
-
/**
|
|
170
|
+
/** The number of VMs that the system should keep idle so that new workstations can be started quickly for new users. Defaults to `0` in the API. */
|
|
159
171
|
poolSize?:
|
|
160
172
|
number;
|
|
161
173
|
/**
|
|
162
|
-
*
|
|
163
|
-
*
|
|
174
|
+
* The email address of the service account for Cloud Workstations VMs created with this configuration. When specified, be sure that the service account has `logginglogEntries.create`
|
|
175
|
+
* permission on the project so it can write logs out to Cloud Logging. If using a custom container image, the service account must have permissions to pull the specified image. If you
|
|
176
|
+
* as the administrator want to be able to `ssh` into the underlying VM, you need to set this value to a service account for which you have the `iam.serviceAccounts.actAs` permission.
|
|
177
|
+
* Conversely, if you don't want anyone to be able to `ssh` into the underlying VM, use a service account where no one has that permission. If not set, VMs run with a service account
|
|
178
|
+
* provided by the Cloud Workstations service, and the image must be publicly accessible.
|
|
164
179
|
*/
|
|
165
180
|
serviceAccount?:
|
|
166
181
|
string;
|
|
167
182
|
/** A set of Compute Engine Shielded instance options. */
|
|
168
183
|
shieldedInstanceConfig?:
|
|
169
184
|
GceShieldedInstanceConfig;
|
|
170
|
-
/**
|
|
185
|
+
/**
|
|
186
|
+
* Network tags to add to the Compute Engine machines backing the workstations. This option applies [network tags](https://cloud.google.com/vpc/docs/add-remove-network-tags) to VMs
|
|
187
|
+
* created with this configuration. These network tags enable the creation of [firewall rules](https://cloud.google.com/workstations/docs/configure-firewall-rules).
|
|
188
|
+
*/
|
|
171
189
|
tags?:
|
|
172
190
|
string[];
|
|
173
191
|
}
|
|
174
192
|
interface GceRegionalPersistentDisk {
|
|
175
|
-
/**
|
|
193
|
+
/** The [type of the persistent disk](https://cloud.google.com/compute/docs/disks#disk-types) for the home directory. Defaults to `pd-standard`. */
|
|
176
194
|
diskType?:
|
|
177
195
|
string;
|
|
178
|
-
/** Type of file system that the disk should be formatted with. The workstation image must support this file system type. Must be empty if source_snapshot is set. Defaults to ext4
|
|
196
|
+
/** Type of file system that the disk should be formatted with. The workstation image must support this file system type. Must be empty if source_snapshot is set. Defaults to `ext4`. */
|
|
179
197
|
fsType?:
|
|
180
198
|
string;
|
|
181
|
-
/**
|
|
199
|
+
/** Whether the persistent disk should be deleted when the workstation is deleted. Valid values are `DELETE` and `RETAIN`. Defaults to `DELETE`. */
|
|
182
200
|
reclaimPolicy?:
|
|
183
201
|
string;
|
|
184
|
-
/**
|
|
202
|
+
/**
|
|
203
|
+
* The GB capacity of a persistent home directory for each workstation created with this configuration. Must be empty if `source_snapshot` is set. Valid values are `10`, `50`, `100`,
|
|
204
|
+
* `200`, `500`, or `1000`. Defaults to `200`. If less than `200` GB, the `diskType` must be `pd-balanced` or `pd-ssd`.
|
|
205
|
+
*/
|
|
185
206
|
sizeGb?:
|
|
186
207
|
number;
|
|
187
208
|
/** Name of the snapshot to use as the source for the disk. If set, size_gb and fs_type must be empty. */
|
|
@@ -507,7 +528,7 @@ declare namespace gapi.client {
|
|
|
507
528
|
/** Output only. Current state of the workstation. */
|
|
508
529
|
state?:
|
|
509
530
|
string;
|
|
510
|
-
/** Output only. A system-assigned unique
|
|
531
|
+
/** Output only. A system-assigned unique identifier for this resource. */
|
|
511
532
|
uid?:
|
|
512
533
|
string;
|
|
513
534
|
/** Output only. Time when this resource was most recently updated. */
|
|
@@ -560,7 +581,7 @@ declare namespace gapi.client {
|
|
|
560
581
|
/** Immutable. Name of the Compute Engine subnetwork in which instances associated with this cluster will be created. Must be part of the subnetwork specified for this cluster. */
|
|
561
582
|
subnetwork?:
|
|
562
583
|
string;
|
|
563
|
-
/** Output only. A system-assigned unique
|
|
584
|
+
/** Output only. A system-assigned unique identifier for this resource. */
|
|
564
585
|
uid?:
|
|
565
586
|
string;
|
|
566
587
|
/** Output only. Time when this resource was most recently updated. */
|
|
@@ -574,7 +595,7 @@ declare namespace gapi.client {
|
|
|
574
595
|
/** Output only. Status conditions describing the current resource state. */
|
|
575
596
|
conditions?:
|
|
576
597
|
Status[];
|
|
577
|
-
/** Container that
|
|
598
|
+
/** Container that runs upon startup for each workstation using this workstation configuration. */
|
|
578
599
|
container?:
|
|
579
600
|
Container;
|
|
580
601
|
/** Output only. Time when this resource was created. */
|
|
@@ -590,17 +611,17 @@ declare namespace gapi.client {
|
|
|
590
611
|
displayName?:
|
|
591
612
|
string;
|
|
592
613
|
/**
|
|
593
|
-
* Whether to enable
|
|
594
|
-
* system audit logging is distinct from [Cloud Audit Logs](https://cloud.google.com/workstations/docs/audit-logging).
|
|
614
|
+
* Whether to enable Linux `auditd` logging on the workstation. When enabled, a service account must also be specified that has `logging.buckets.write` permission on the project.
|
|
615
|
+
* Operating system audit logging is distinct from [Cloud Audit Logs](https://cloud.google.com/workstations/docs/audit-logging).
|
|
595
616
|
*/
|
|
596
617
|
enableAuditAgent?:
|
|
597
618
|
boolean;
|
|
598
619
|
/**
|
|
599
|
-
* Immutable. Encrypts resources of this workstation configuration using a customer-managed encryption key. If specified, the boot disk of the Compute Engine instance and the
|
|
620
|
+
* Immutable. Encrypts resources of this workstation configuration using a customer-managed encryption key (CMEK). If specified, the boot disk of the Compute Engine instance and the
|
|
600
621
|
* 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
|
|
601
622
|
* 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
|
|
602
|
-
* of the key. Be sure to keep older versions of the key until the persistent disk is recreated. Otherwise, data on the persistent disk
|
|
603
|
-
* the workstation session
|
|
623
|
+
* of the key. Be sure to keep older versions of the key until the persistent disk is recreated. Otherwise, data on the persistent disk might be lost. If the encryption key is revoked,
|
|
624
|
+
* the workstation session automatically stops within 7 hours. Immutable after the workstation configuration is created.
|
|
604
625
|
*/
|
|
605
626
|
encryptionKey?:
|
|
606
627
|
CustomerEncryptionKey;
|
|
@@ -611,8 +632,9 @@ declare namespace gapi.client {
|
|
|
611
632
|
host?:
|
|
612
633
|
Host;
|
|
613
634
|
/**
|
|
614
|
-
*
|
|
615
|
-
*
|
|
635
|
+
* Number of seconds to wait before automatically stopping a workstation after it last received user traffic. A value of `0s` indicates that Cloud Workstations VMs created with this
|
|
636
|
+
* configuration should never time out due to idleness. Provide [duration](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#duration) terminated by `s` for
|
|
637
|
+
* seconds—for example, `7200s` (2 hours). The default is `1200s` (20 minutes).
|
|
616
638
|
*/
|
|
617
639
|
idleTimeout?:
|
|
618
640
|
string;
|
|
@@ -635,12 +657,16 @@ declare namespace gapi.client {
|
|
|
635
657
|
reconciling?:
|
|
636
658
|
boolean;
|
|
637
659
|
/**
|
|
638
|
-
*
|
|
639
|
-
*
|
|
660
|
+
* 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 updates can
|
|
661
|
+
* be applied upon restart. The `idleTimeout` and `runningTimeout` parameters are independent of each other. Note that the `runningTimeout` parameter shuts down VMs after the specified
|
|
662
|
+
* time, regardless of whether or not the VMs are idle. Provide duration terminated by `s` for seconds—for example, `54000s` (15 hours). Defaults to `43200s` (12 hours). A value of `0`
|
|
663
|
+
* indicates that workstations using this configuration should never time out. If `encryption_key` is set, it must be greater than `0` and less than `86400s` (24 hours). Warning: A
|
|
664
|
+
* value of `0s` indicates that Cloud Workstations VMs created with this configuration have no maximum running time. This is strongly discouraged because you incur costs and will not
|
|
665
|
+
* pick up security updates.
|
|
640
666
|
*/
|
|
641
667
|
runningTimeout?:
|
|
642
668
|
string;
|
|
643
|
-
/** Output only. A system-assigned unique
|
|
669
|
+
/** Output only. A system-assigned unique identifier for this resource. */
|
|
644
670
|
uid?:
|
|
645
671
|
string;
|
|
646
672
|
/** Output only. Time when this resource was most recently updated. */
|
package/package.json
CHANGED
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:
|
|
6
|
+
// Revision: 20230607
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|