@maxim_mazurok/gapi.client.workstations-v1beta 0.0.20230726 → 0.0.20230904
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 +228 -154
- package/package.json +2 -2
- package/tests.ts +37 -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: 20230904
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -23,10 +23,10 @@ declare namespace gapi.client {
|
|
|
23
23
|
|
|
24
24
|
namespace workstations {
|
|
25
25
|
interface Accelerator {
|
|
26
|
-
/** Number of accelerator cards exposed to the instance. */
|
|
26
|
+
/** Optional. Number of accelerator cards exposed to the instance. */
|
|
27
27
|
count?:
|
|
28
28
|
number;
|
|
29
|
-
/** Type of accelerator resource to attach to the instance, for example, "nvidia-tesla-p100"
|
|
29
|
+
/** Optional. Type of accelerator resource to attach to the instance, for example, `"nvidia-tesla-p100"`. */
|
|
30
30
|
type?:
|
|
31
31
|
string;
|
|
32
32
|
}
|
|
@@ -83,33 +83,33 @@ declare namespace gapi.client {
|
|
|
83
83
|
interface CancelOperationRequest {
|
|
84
84
|
}
|
|
85
85
|
interface Container {
|
|
86
|
-
/** Arguments passed to the entrypoint. */
|
|
86
|
+
/** Optional. Arguments passed to the entrypoint. */
|
|
87
87
|
args?:
|
|
88
88
|
string[];
|
|
89
|
-
/** If set, overrides the default ENTRYPOINT specified by the image. */
|
|
89
|
+
/** Optional. If set, overrides the default ENTRYPOINT specified by the image. */
|
|
90
90
|
command?:
|
|
91
91
|
string[];
|
|
92
|
-
/** Environment variables passed to the container's entrypoint. */
|
|
92
|
+
/** Optional. 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
|
|
96
|
+
* Optional. A Docker container image that defines a custom environment. Cloud Workstations provides a number of [preconfigured
|
|
97
97
|
* images](https://cloud.google.com/workstations/docs/preconfigured-base-images), but you can create your own [custom container
|
|
98
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
99
|
* workstation configuration and must have permission to pull the specified image. Otherwise, the image must be publicly accessible.
|
|
100
100
|
*/
|
|
101
101
|
image?:
|
|
102
102
|
string;
|
|
103
|
-
/** If set, overrides the USER specified in the image with the given uid. */
|
|
103
|
+
/** Optional. If set, overrides the USER specified in the image with the given uid. */
|
|
104
104
|
runAsUser?:
|
|
105
105
|
number;
|
|
106
|
-
/** If set, overrides the default DIR specified by the image. */
|
|
106
|
+
/** Optional. If set, overrides the default DIR specified by the image. */
|
|
107
107
|
workingDir?:
|
|
108
108
|
string;
|
|
109
109
|
}
|
|
110
110
|
interface CustomerEncryptionKey {
|
|
111
111
|
/**
|
|
112
|
-
* Immutable. The name of the Google Cloud KMS encryption key. For example, `projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME`. The key must be in the same
|
|
112
|
+
* Immutable. The name of the Google Cloud KMS encryption key. For example, `"projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME"`. The key must be in the same
|
|
113
113
|
* region as the workstation configuration.
|
|
114
114
|
*/
|
|
115
115
|
kmsKey?:
|
|
@@ -122,6 +122,14 @@ declare namespace gapi.client {
|
|
|
122
122
|
kmsKeyServiceAccount?:
|
|
123
123
|
string;
|
|
124
124
|
}
|
|
125
|
+
interface EphemeralDirectory {
|
|
126
|
+
/** An EphemeralDirectory backed by a Compute Engine persistent disk. */
|
|
127
|
+
gcePd?:
|
|
128
|
+
GcePersistentDisk;
|
|
129
|
+
/** Required. Location of this directory in the running workstation. */
|
|
130
|
+
mountPath?:
|
|
131
|
+
string;
|
|
132
|
+
}
|
|
125
133
|
interface Expr {
|
|
126
134
|
/** Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. */
|
|
127
135
|
description?:
|
|
@@ -137,89 +145,130 @@ declare namespace gapi.client {
|
|
|
137
145
|
string;
|
|
138
146
|
}
|
|
139
147
|
interface GceConfidentialInstanceConfig {
|
|
140
|
-
/** Whether the instance has confidential compute enabled. */
|
|
148
|
+
/** Optional. Whether the instance has confidential compute enabled. */
|
|
141
149
|
enableConfidentialCompute?:
|
|
142
150
|
boolean;
|
|
143
151
|
}
|
|
144
152
|
interface GceInstance {
|
|
145
|
-
/** A list of the type and count of accelerator cards attached to the instance. */
|
|
153
|
+
/** Optional. A list of the type and count of accelerator cards attached to the instance. */
|
|
146
154
|
accelerators?:
|
|
147
155
|
Accelerator[];
|
|
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. */
|
|
156
|
+
/** Optional. The size of the boot disk for the VM in gigabytes (GB). The minimum boot disk size is `30` GB. Defaults to `50` GB. */
|
|
149
157
|
bootDiskSizeGb?:
|
|
150
158
|
number;
|
|
151
|
-
/** A set of Compute Engine Confidential VM instance options. */
|
|
159
|
+
/** Optional. A set of Compute Engine Confidential VM instance options. */
|
|
152
160
|
confidentialInstanceConfig?:
|
|
153
161
|
GceConfidentialInstanceConfig;
|
|
154
162
|
/**
|
|
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
|
|
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
|
|
157
|
-
* `*.gcr.io` and `*.pkg.dev`. Defaults to false (VMs have public IP addresses).
|
|
163
|
+
* Optional. 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
|
|
164
|
+
* Private 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
|
|
165
|
+
* domains `*.gcr.io` and `*.pkg.dev`. Defaults to false (VMs have public IP addresses).
|
|
158
166
|
*/
|
|
159
167
|
disablePublicIpAddresses?:
|
|
160
168
|
boolean;
|
|
161
|
-
/**
|
|
169
|
+
/**
|
|
170
|
+
* Optional. Whether to enable nested virtualization on Cloud Workstations VMs created under this workstation configuration. Nested virtualization lets you run virtual machine (VM)
|
|
171
|
+
* instances inside your workstation. Before enabling nested virtualization, consider the following important considerations. Cloud Workstations instances are subject to the [same
|
|
172
|
+
* restrictions as Compute Engine instances](https://cloud.google.com/compute/docs/instances/nested-virtualization/overview#restrictions): * **Organization policy**: projects, folders,
|
|
173
|
+
* or organizations may be restricted from creating nested VMs if the **Disable VM nested virtualization** constraint is enforced in the organization policy. For more information, see
|
|
174
|
+
* the Compute Engine section, [Checking whether nested virtualization is
|
|
175
|
+
* allowed](https://cloud.google.com/compute/docs/instances/nested-virtualization/managing-constraint#checking_whether_nested_virtualization_is_allowed). * **Performance**: nested VMs
|
|
176
|
+
* might experience a 10% or greater decrease in performance for workloads that are CPU-bound and possibly greater than a 10% decrease for workloads that are input/output bound. *
|
|
177
|
+
* **Machine Type**: nested virtualization can only be enabled on workstation configurations that specify a machine_type in the N1 or N2 machine series. * **GPUs**: nested
|
|
178
|
+
* virtualization may not be enabled on workstation configurations with accelerators. * **Operating System**: Because [Container-Optimized
|
|
179
|
+
* OS](https://cloud.google.com/compute/docs/images/os-details#container-optimized_os_cos) does not support nested virtualization, when nested virtualization is enabled, the underlying
|
|
180
|
+
* Compute Engine VM instances boot from an [Ubuntu LTS](https://cloud.google.com/compute/docs/images/os-details#ubuntu_lts) image.
|
|
181
|
+
*/
|
|
162
182
|
enableNestedVirtualization?:
|
|
163
183
|
boolean;
|
|
164
184
|
/**
|
|
165
|
-
* 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
|
|
166
|
-
* machine types](https://cloud.google.com/workstations/docs/available-machine-types).
|
|
185
|
+
* Optional. 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
|
|
186
|
+
* [available machine types](https://cloud.google.com/workstations/docs/available-machine-types).
|
|
167
187
|
*/
|
|
168
188
|
machineType?:
|
|
169
189
|
string;
|
|
170
190
|
/** Output only. Number of instances currently available in the pool for faster workstation startup. */
|
|
171
191
|
pooledInstances?:
|
|
172
192
|
number;
|
|
173
|
-
/** 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. */
|
|
193
|
+
/** Optional. 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. */
|
|
174
194
|
poolSize?:
|
|
175
195
|
number;
|
|
176
196
|
/**
|
|
177
|
-
* The email address of the service account for Cloud Workstations VMs created with this configuration. When specified, be sure that the service account has
|
|
178
|
-
* 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
|
|
179
|
-
* 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
|
|
180
|
-
* 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
|
|
181
|
-
* provided by the Cloud Workstations service, and the image must be publicly accessible.
|
|
197
|
+
* Optional. The email address of the service account for Cloud Workstations VMs created with this configuration. When specified, be sure that the service account has
|
|
198
|
+
* `logginglogEntries.create` 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
|
|
199
|
+
* the specified image. If you 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
|
|
200
|
+
* `iam.serviceAccounts.actAs` permission. 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
|
|
201
|
+
* not set, VMs run with a service account provided by the Cloud Workstations service, and the image must be publicly accessible.
|
|
182
202
|
*/
|
|
183
203
|
serviceAccount?:
|
|
184
204
|
string;
|
|
185
|
-
/**
|
|
205
|
+
/**
|
|
206
|
+
* Optional. Scopes to grant to the service_account. Various scopes are automatically added based on feature usage. When specified, users of workstations under this configuration must
|
|
207
|
+
* have `iam.serviceAccounts.actAs` on the service account.
|
|
208
|
+
*/
|
|
209
|
+
serviceAccountScopes?:
|
|
210
|
+
string[];
|
|
211
|
+
/** Optional. A set of Compute Engine Shielded instance options. */
|
|
186
212
|
shieldedInstanceConfig?:
|
|
187
213
|
GceShieldedInstanceConfig;
|
|
188
214
|
/**
|
|
189
|
-
* Network tags to add to the Compute Engine
|
|
190
|
-
* created with this configuration. These network tags enable the creation of [firewall rules](https://cloud.google.com/workstations/docs/configure-firewall-rules).
|
|
215
|
+
* Optional. Network tags to add to the Compute Engine VMs backing the workstations. This option applies [network tags](https://cloud.google.com/vpc/docs/add-remove-network-tags) to
|
|
216
|
+
* VMs created with this configuration. These network tags enable the creation of [firewall rules](https://cloud.google.com/workstations/docs/configure-firewall-rules).
|
|
191
217
|
*/
|
|
192
218
|
tags?:
|
|
193
219
|
string[];
|
|
194
220
|
}
|
|
221
|
+
interface GcePersistentDisk {
|
|
222
|
+
/** Optional. Type of the disk to use. Defaults to `"pd-standard"`. */
|
|
223
|
+
diskType?:
|
|
224
|
+
string;
|
|
225
|
+
/** Optional. Whether the disk is read only. If true, the disk may be shared by multiple VMs and source_snapshot must be set. */
|
|
226
|
+
readOnly?:
|
|
227
|
+
boolean;
|
|
228
|
+
/**
|
|
229
|
+
* Optional. Name of the disk image to use as the source for the disk. Must be empty if source_snapshot is set. Updating source_image will update content in the ephemeral directory
|
|
230
|
+
* after the workstation is restarted. This field is mutable.
|
|
231
|
+
*/
|
|
232
|
+
sourceImage?:
|
|
233
|
+
string;
|
|
234
|
+
/**
|
|
235
|
+
* Optional. Name of the snapshot to use as the source for the disk. Must be empty if source_image is set. Updating source_snapshot will update content in the ephemeral directory after
|
|
236
|
+
* the workstation is restarted. This field is mutable.
|
|
237
|
+
*/
|
|
238
|
+
sourceSnapshot?:
|
|
239
|
+
string;
|
|
240
|
+
}
|
|
195
241
|
interface GceRegionalPersistentDisk {
|
|
196
|
-
/** The [type of the persistent disk](https://cloud.google.com/compute/docs/disks#disk-types) for the home directory. Defaults to `pd-standard`. */
|
|
242
|
+
/** Optional. The [type of the persistent disk](https://cloud.google.com/compute/docs/disks#disk-types) for the home directory. Defaults to `"pd-standard"`. */
|
|
197
243
|
diskType?:
|
|
198
244
|
string;
|
|
199
|
-
/**
|
|
245
|
+
/**
|
|
246
|
+
* Optional. 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
|
|
247
|
+
* `"ext4"`.
|
|
248
|
+
*/
|
|
200
249
|
fsType?:
|
|
201
250
|
string;
|
|
202
|
-
/** Whether the persistent disk should be deleted when the workstation is deleted. Valid values are `DELETE` and `RETAIN`. Defaults to `DELETE`. */
|
|
251
|
+
/** Optional. Whether the persistent disk should be deleted when the workstation is deleted. Valid values are `DELETE` and `RETAIN`. Defaults to `DELETE`. */
|
|
203
252
|
reclaimPolicy?:
|
|
204
253
|
string;
|
|
205
254
|
/**
|
|
206
|
-
* The GB capacity of a persistent home directory for each workstation created with this configuration. Must be empty if
|
|
207
|
-
* `200`, `500`, or `1000`. Defaults to `200`. If less than `200` GB, the
|
|
255
|
+
* Optional. 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`,
|
|
256
|
+
* `100`, `200`, `500`, or `1000`. Defaults to `200`. If less than `200` GB, the disk_type must be `"pd-balanced"` or `"pd-ssd"`.
|
|
208
257
|
*/
|
|
209
258
|
sizeGb?:
|
|
210
259
|
number;
|
|
211
|
-
/** Name of the snapshot to use as the source for the disk. If set, size_gb and fs_type must be empty. */
|
|
260
|
+
/** Optional. Name of the snapshot to use as the source for the disk. If set, size_gb and fs_type must be empty. */
|
|
212
261
|
sourceSnapshot?:
|
|
213
262
|
string;
|
|
214
263
|
}
|
|
215
264
|
interface GceShieldedInstanceConfig {
|
|
216
|
-
/** Whether the instance has integrity monitoring enabled. */
|
|
265
|
+
/** Optional. Whether the instance has integrity monitoring enabled. */
|
|
217
266
|
enableIntegrityMonitoring?:
|
|
218
267
|
boolean;
|
|
219
|
-
/** Whether the instance has Secure Boot enabled. */
|
|
268
|
+
/** Optional. Whether the instance has Secure Boot enabled. */
|
|
220
269
|
enableSecureBoot?:
|
|
221
270
|
boolean;
|
|
222
|
-
/** Whether the instance has the vTPM enabled. */
|
|
271
|
+
/** Optional. Whether the instance has the vTPM enabled. */
|
|
223
272
|
enableVtpm?:
|
|
224
273
|
boolean;
|
|
225
274
|
}
|
|
@@ -306,10 +355,10 @@ declare namespace gapi.client {
|
|
|
306
355
|
WorkstationConfig[];
|
|
307
356
|
}
|
|
308
357
|
interface ListWorkstationsResponse {
|
|
309
|
-
/** Token to retrieve the next page of results, or empty if there are no more results in the list. */
|
|
358
|
+
/** Optional. Token to retrieve the next page of results, or empty if there are no more results in the list. */
|
|
310
359
|
nextPageToken?:
|
|
311
360
|
string;
|
|
312
|
-
/** Unreachable resources. */
|
|
361
|
+
/** Optional. Unreachable resources. */
|
|
313
362
|
unreachable?:
|
|
314
363
|
string[];
|
|
315
364
|
/** The requested workstations. */
|
|
@@ -336,9 +385,9 @@ declare namespace gapi.client {
|
|
|
336
385
|
name?:
|
|
337
386
|
string;
|
|
338
387
|
/**
|
|
339
|
-
* The normal response of the operation
|
|
340
|
-
*
|
|
341
|
-
*
|
|
388
|
+
* The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original
|
|
389
|
+
* method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original
|
|
390
|
+
* method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
|
|
342
391
|
*/
|
|
343
392
|
response?:
|
|
344
393
|
{ [P in string]: any };
|
|
@@ -370,7 +419,7 @@ declare namespace gapi.client {
|
|
|
370
419
|
/** A PersistentDirectory backed by a Compute Engine persistent disk. */
|
|
371
420
|
gcePd?:
|
|
372
421
|
GceRegionalPersistentDisk;
|
|
373
|
-
/** Location of this directory in the running workstation. */
|
|
422
|
+
/** Optional. Location of this directory in the running workstation. */
|
|
374
423
|
mountPath?:
|
|
375
424
|
string;
|
|
376
425
|
}
|
|
@@ -408,14 +457,14 @@ declare namespace gapi.client {
|
|
|
408
457
|
}
|
|
409
458
|
interface PrivateClusterConfig {
|
|
410
459
|
/**
|
|
411
|
-
* 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
|
|
412
|
-
* are allowed.
|
|
460
|
+
* Optional. 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
|
|
461
|
+
* different) are allowed.
|
|
413
462
|
*/
|
|
414
463
|
allowedProjects?:
|
|
415
464
|
string[];
|
|
416
465
|
/**
|
|
417
|
-
* 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
|
|
418
|
-
* mapping this domain name to an internal IP address and a forwarding rule mapping that address to the service attachment.
|
|
466
|
+
* Output only. Hostname for the workstation cluster. This field will be populated only when private endpoint is enabled. To access workstations in the workstation cluster, create a
|
|
467
|
+
* new DNS zone mapping this domain name to an internal IP address and a forwarding rule mapping that address to the service attachment.
|
|
419
468
|
*/
|
|
420
469
|
clusterHostname?:
|
|
421
470
|
string;
|
|
@@ -423,17 +472,17 @@ declare namespace gapi.client {
|
|
|
423
472
|
enablePrivateEndpoint?:
|
|
424
473
|
boolean;
|
|
425
474
|
/**
|
|
426
|
-
* Output only. Service attachment URI for the workstation cluster. The service attachemnt is created when private endpoint is enabled. To access workstations in the
|
|
427
|
-
* access to the managed service using [Private Service Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).
|
|
475
|
+
* Output only. Service attachment URI for the workstation cluster. The service attachemnt is created when private endpoint is enabled. To access workstations in the workstation
|
|
476
|
+
* cluster, configure access to the managed service using [Private Service Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).
|
|
428
477
|
*/
|
|
429
478
|
serviceAttachmentUri?:
|
|
430
479
|
string;
|
|
431
480
|
}
|
|
432
481
|
interface ReadinessCheck {
|
|
433
|
-
/** Path to which the request should be sent. */
|
|
482
|
+
/** Optional. Path to which the request should be sent. */
|
|
434
483
|
path?:
|
|
435
484
|
string;
|
|
436
|
-
/** Port to which the request should be sent. */
|
|
485
|
+
/** Optional. Port to which the request should be sent. */
|
|
437
486
|
port?:
|
|
438
487
|
number;
|
|
439
488
|
}
|
|
@@ -452,10 +501,10 @@ declare namespace gapi.client {
|
|
|
452
501
|
string;
|
|
453
502
|
}
|
|
454
503
|
interface StartWorkstationRequest {
|
|
455
|
-
/** If set, the request will be rejected if the latest version of the workstation on the server does not have this ETag. */
|
|
504
|
+
/** Optional. If set, the request will be rejected if the latest version of the workstation on the server does not have this ETag. */
|
|
456
505
|
etag?:
|
|
457
506
|
string;
|
|
458
|
-
/** If set, validate the request and preview the review, but do not actually apply it. */
|
|
507
|
+
/** Optional. If set, validate the request and preview the review, but do not actually apply it. */
|
|
459
508
|
validateOnly?:
|
|
460
509
|
boolean;
|
|
461
510
|
}
|
|
@@ -474,10 +523,10 @@ declare namespace gapi.client {
|
|
|
474
523
|
string;
|
|
475
524
|
}
|
|
476
525
|
interface StopWorkstationRequest {
|
|
477
|
-
/** If set, the request will be rejected if the latest version of the workstation on the server does not have this ETag. */
|
|
526
|
+
/** Optional. If set, the request will be rejected if the latest version of the workstation on the server does not have this ETag. */
|
|
478
527
|
etag?:
|
|
479
528
|
string;
|
|
480
|
-
/** If set, validate the request and preview the review, but do not actually apply it. */
|
|
529
|
+
/** Optional. If set, validate the request and preview the review, but do not actually apply it. */
|
|
481
530
|
validateOnly?:
|
|
482
531
|
boolean;
|
|
483
532
|
}
|
|
@@ -495,22 +544,22 @@ declare namespace gapi.client {
|
|
|
495
544
|
string[];
|
|
496
545
|
}
|
|
497
546
|
interface Workstation {
|
|
498
|
-
/** Client-specified annotations. */
|
|
547
|
+
/** Optional. Client-specified annotations. */
|
|
499
548
|
annotations?:
|
|
500
549
|
{ [P in string]: string };
|
|
501
|
-
/** Output only. Time when this
|
|
550
|
+
/** Output only. Time when this workstation was created. */
|
|
502
551
|
createTime?:
|
|
503
552
|
string;
|
|
504
|
-
/** Output only. Time when this
|
|
553
|
+
/** Output only. Time when this workstation was soft-deleted. */
|
|
505
554
|
deleteTime?:
|
|
506
555
|
string;
|
|
507
|
-
/** Human-readable name for this
|
|
556
|
+
/** Optional. Human-readable name for this workstation. */
|
|
508
557
|
displayName?:
|
|
509
558
|
string;
|
|
510
|
-
/** Environment variables passed to the workstation container's entrypoint. */
|
|
559
|
+
/** Optional. Environment variables passed to the workstation container's entrypoint. */
|
|
511
560
|
env?:
|
|
512
561
|
{ [P in string]: string };
|
|
513
|
-
/** 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. */
|
|
562
|
+
/** Optional. 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. */
|
|
514
563
|
etag?:
|
|
515
564
|
string;
|
|
516
565
|
/**
|
|
@@ -519,103 +568,115 @@ declare namespace gapi.client {
|
|
|
519
568
|
*/
|
|
520
569
|
host?:
|
|
521
570
|
string;
|
|
522
|
-
/**
|
|
571
|
+
/**
|
|
572
|
+
* Optional. [Labels](https://cloud.google.com/workstations/docs/label-resources) that are applied to the workstation and that are also propagated to the underlying Compute Engine
|
|
573
|
+
* resources.
|
|
574
|
+
*/
|
|
523
575
|
labels?:
|
|
524
576
|
{ [P in string]: string };
|
|
525
|
-
/** Full name of this
|
|
577
|
+
/** Full name of this workstation. */
|
|
526
578
|
name?:
|
|
527
579
|
string;
|
|
528
|
-
/** Output only. Indicates whether this
|
|
580
|
+
/** Output only. Indicates whether this workstation is currently being updated to match its intended state. */
|
|
529
581
|
reconciling?:
|
|
530
582
|
boolean;
|
|
583
|
+
/** Output only. Time when this workstation was most recently successfully started, regardless of the workstation's initial state. */
|
|
584
|
+
startTime?:
|
|
585
|
+
string;
|
|
531
586
|
/** Output only. Current state of the workstation. */
|
|
532
587
|
state?:
|
|
533
588
|
string;
|
|
534
|
-
/** Output only. A system-assigned unique identifier for this
|
|
589
|
+
/** Output only. A system-assigned unique identifier for this workstation. */
|
|
535
590
|
uid?:
|
|
536
591
|
string;
|
|
537
|
-
/** Output only. Time when this
|
|
592
|
+
/** Output only. Time when this workstation was most recently updated. */
|
|
538
593
|
updateTime?:
|
|
539
594
|
string;
|
|
540
595
|
}
|
|
541
596
|
interface WorkstationCluster {
|
|
542
|
-
/** Client-specified annotations. */
|
|
597
|
+
/** Optional. Client-specified annotations. */
|
|
543
598
|
annotations?:
|
|
544
599
|
{ [P in string]: string };
|
|
545
|
-
/** Output only. Status conditions describing the current
|
|
600
|
+
/** Output only. Status conditions describing the workstation cluster's current state. */
|
|
546
601
|
conditions?:
|
|
547
602
|
Status[];
|
|
548
603
|
/**
|
|
549
|
-
* 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
|
|
550
|
-
* rules allow egress from the workstation VMs to this address.
|
|
604
|
+
* Output only. The private IP address of the control plane for this workstation cluster. Workstation VMs need access to this IP address to work with the service, so make sure that
|
|
605
|
+
* your firewall rules allow egress from the workstation VMs to this address.
|
|
551
606
|
*/
|
|
552
607
|
controlPlaneIp?:
|
|
553
608
|
string;
|
|
554
|
-
/** Output only. Time when this
|
|
609
|
+
/** Output only. Time when this workstation cluster was created. */
|
|
555
610
|
createTime?:
|
|
556
611
|
string;
|
|
557
|
-
/** Output only. Whether this
|
|
612
|
+
/** Output only. Whether this workstation cluster is in degraded mode, in which case it may require user action to restore full functionality. Details can be found in conditions. */
|
|
558
613
|
degraded?:
|
|
559
614
|
boolean;
|
|
560
|
-
/** Output only. Time when this
|
|
615
|
+
/** Output only. Time when this workstation cluster was soft-deleted. */
|
|
561
616
|
deleteTime?:
|
|
562
617
|
string;
|
|
563
|
-
/** Human-readable name for this
|
|
618
|
+
/** Optional. Human-readable name for this workstation cluster. */
|
|
564
619
|
displayName?:
|
|
565
620
|
string;
|
|
566
|
-
/** 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. */
|
|
621
|
+
/** Optional. 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. */
|
|
567
622
|
etag?:
|
|
568
623
|
string;
|
|
569
|
-
/**
|
|
624
|
+
/**
|
|
625
|
+
* Optional. [Labels](https://cloud.google.com/workstations/docs/label-resources) that are applied to the workstation cluster and that are also propagated to the underlying Compute
|
|
626
|
+
* Engine resources.
|
|
627
|
+
*/
|
|
570
628
|
labels?:
|
|
571
629
|
{ [P in string]: string };
|
|
572
|
-
/** Full name of this
|
|
630
|
+
/** Full name of this workstation cluster. */
|
|
573
631
|
name?:
|
|
574
632
|
string;
|
|
575
|
-
/** Immutable. Name of the Compute Engine network in which instances associated with this cluster will be created. */
|
|
633
|
+
/** Immutable. Name of the Compute Engine network in which instances associated with this workstation cluster will be created. */
|
|
576
634
|
network?:
|
|
577
635
|
string;
|
|
578
|
-
/** Configuration for private cluster. */
|
|
636
|
+
/** Optional. Configuration for private workstation cluster. */
|
|
579
637
|
privateClusterConfig?:
|
|
580
638
|
PrivateClusterConfig;
|
|
581
|
-
/** Output only. Indicates whether this
|
|
639
|
+
/** Output only. Indicates whether this workstation cluster is currently being updated to match its intended state. */
|
|
582
640
|
reconciling?:
|
|
583
641
|
boolean;
|
|
584
|
-
/**
|
|
642
|
+
/**
|
|
643
|
+
* Immutable. Name of the Compute Engine subnetwork in which instances associated with this workstation cluster will be created. Must be part of the subnetwork specified for this
|
|
644
|
+
* workstation cluster.
|
|
645
|
+
*/
|
|
585
646
|
subnetwork?:
|
|
586
647
|
string;
|
|
587
|
-
/** Output only. A system-assigned unique identifier for this
|
|
648
|
+
/** Output only. A system-assigned unique identifier for this workstation cluster. */
|
|
588
649
|
uid?:
|
|
589
650
|
string;
|
|
590
|
-
/** Output only. Time when this
|
|
651
|
+
/** Output only. Time when this workstation cluster was most recently updated. */
|
|
591
652
|
updateTime?:
|
|
592
653
|
string;
|
|
593
654
|
}
|
|
594
655
|
interface WorkstationConfig {
|
|
595
|
-
/** Client-specified annotations. */
|
|
656
|
+
/** Optional. Client-specified annotations. */
|
|
596
657
|
annotations?:
|
|
597
658
|
{ [P in string]: string };
|
|
598
659
|
/** Output only. Status conditions describing the current resource state. */
|
|
599
660
|
conditions?:
|
|
600
661
|
Status[];
|
|
601
|
-
/** Container that runs upon startup for each workstation using this workstation configuration. */
|
|
662
|
+
/** Optional. Container that runs upon startup for each workstation using this workstation configuration. */
|
|
602
663
|
container?:
|
|
603
664
|
Container;
|
|
604
|
-
/** Output only. Time when this
|
|
665
|
+
/** Output only. Time when this workstation configuration was created. */
|
|
605
666
|
createTime?:
|
|
606
667
|
string;
|
|
607
|
-
/** Output only. Whether this resource is degraded, in which case it may require user action to restore full functionality. See also the
|
|
668
|
+
/** Output only. Whether this resource is degraded, in which case it may require user action to restore full functionality. See also the conditions field. */
|
|
608
669
|
degraded?:
|
|
609
670
|
boolean;
|
|
610
|
-
/** Output only. Time when this
|
|
671
|
+
/** Output only. Time when this workstation configuration was soft-deleted. */
|
|
611
672
|
deleteTime?:
|
|
612
673
|
string;
|
|
613
|
-
/** Human-readable name for this
|
|
674
|
+
/** Optional. Human-readable name for this workstation configuration. */
|
|
614
675
|
displayName?:
|
|
615
676
|
string;
|
|
616
677
|
/**
|
|
617
|
-
* 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
|
|
618
|
-
* Operating system audit logging is distinct from [Cloud Audit Logs](https://cloud.google.com/workstations/docs/audit-logging).
|
|
678
|
+
* Optional. 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
|
|
679
|
+
* project. Operating system audit logging is distinct from [Cloud Audit Logs](https://cloud.google.com/workstations/docs/audit-logging).
|
|
619
680
|
*/
|
|
620
681
|
enableAuditAgent?:
|
|
621
682
|
boolean;
|
|
@@ -628,51 +689,64 @@ declare namespace gapi.client {
|
|
|
628
689
|
*/
|
|
629
690
|
encryptionKey?:
|
|
630
691
|
CustomerEncryptionKey;
|
|
631
|
-
/**
|
|
692
|
+
/** Optional. Ephemeral directories which won't persist across workstation sessions. */
|
|
693
|
+
ephemeralDirectories?:
|
|
694
|
+
EphemeralDirectory[];
|
|
695
|
+
/** Optional. 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. */
|
|
632
696
|
etag?:
|
|
633
697
|
string;
|
|
634
|
-
/** Runtime host for the workstation. */
|
|
698
|
+
/** Optional. Runtime host for the workstation. */
|
|
635
699
|
host?:
|
|
636
700
|
Host;
|
|
637
701
|
/**
|
|
638
|
-
* 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
|
|
639
|
-
* configuration should never time out due to idleness. Provide [duration](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#duration) terminated
|
|
640
|
-
* seconds—for example, `7200s` (2 hours). The default is `1200s` (20 minutes).
|
|
702
|
+
* Optional. 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
|
|
703
|
+
* with this configuration should never time out due to idleness. Provide [duration](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#duration) terminated
|
|
704
|
+
* by `s` for seconds—for example, `"7200s"` (2 hours). The default is `"1200s"` (20 minutes).
|
|
641
705
|
*/
|
|
642
706
|
idleTimeout?:
|
|
643
707
|
string;
|
|
644
|
-
/**
|
|
708
|
+
/**
|
|
709
|
+
* Optional. [Labels](https://cloud.google.com/workstations/docs/label-resources) that are applied to the workstation configuration and that are also propagated to the underlying
|
|
710
|
+
* Compute Engine resources.
|
|
711
|
+
*/
|
|
645
712
|
labels?:
|
|
646
713
|
{ [P in string]: string };
|
|
647
|
-
/** Full name of this
|
|
714
|
+
/** Full name of this workstation configuration. */
|
|
648
715
|
name?:
|
|
649
716
|
string;
|
|
650
|
-
/** Directories to persist across workstation sessions. */
|
|
717
|
+
/** Optional. Directories to persist across workstation sessions. */
|
|
651
718
|
persistentDirectories?:
|
|
652
719
|
PersistentDirectory[];
|
|
653
720
|
/**
|
|
654
|
-
* Readiness checks to perform when starting a workstation using this workstation configuration. Mark a workstation as running only after all specified readiness checks
|
|
655
|
-
* status codes.
|
|
721
|
+
* Optional. Readiness checks to perform when starting a workstation using this workstation configuration. Mark a workstation as running only after all specified readiness checks
|
|
722
|
+
* return 200 status codes.
|
|
656
723
|
*/
|
|
657
724
|
readinessChecks?:
|
|
658
725
|
ReadinessCheck[];
|
|
659
|
-
/** Output only. Indicates whether this
|
|
726
|
+
/** Output only. Indicates whether this workstation configuration is currently being updated to match its intended state. */
|
|
660
727
|
reconciling?:
|
|
661
728
|
boolean;
|
|
662
729
|
/**
|
|
663
|
-
*
|
|
664
|
-
*
|
|
665
|
-
*
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
730
|
+
* Optional. Immutable. Specifies the zones used to replicate the VM and disk resources within the region. If set, exactly two zones within the workstation cluster's region must be
|
|
731
|
+
* specified—for example, `['us-central1-a', 'us-central1-f']`. If this field is empty, two default zones within the region are used. Immutable after the workstation configuration is
|
|
732
|
+
* created.
|
|
733
|
+
*/
|
|
734
|
+
replicaZones?:
|
|
735
|
+
string[];
|
|
736
|
+
/**
|
|
737
|
+
* Optional. 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
|
|
738
|
+
* updates can be applied upon restart. The idle_timeout and running_timeout fields are independent of each other. Note that the running_timeout field shuts down VMs after the
|
|
739
|
+
* specified 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).
|
|
740
|
+
* A value of `"0s"` indicates that workstations using this configuration should never time out. If encryption_key is set, it must be greater than `"0s"` and less than `"86400s"` (24
|
|
741
|
+
* hours). Warning: A value of `"0s"` indicates that Cloud Workstations VMs created with this configuration have no maximum running time. This is strongly discouraged because you incur
|
|
742
|
+
* costs and will not pick up security updates.
|
|
669
743
|
*/
|
|
670
744
|
runningTimeout?:
|
|
671
745
|
string;
|
|
672
|
-
/** Output only. A system-assigned unique identifier for this
|
|
746
|
+
/** Output only. A system-assigned unique identifier for this workstation configuration. */
|
|
673
747
|
uid?:
|
|
674
748
|
string;
|
|
675
|
-
/** Output only. Time when this
|
|
749
|
+
/** Output only. Time when this workstation configuration was most recently updated. */
|
|
676
750
|
updateTime?:
|
|
677
751
|
string;
|
|
678
752
|
}
|
|
@@ -932,7 +1006,7 @@ declare namespace gapi.client {
|
|
|
932
1006
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
933
1007
|
uploadType?:
|
|
934
1008
|
string;
|
|
935
|
-
/** If set, validate the request and preview the review, but do not actually apply it. */
|
|
1009
|
+
/** Optional. If set, validate the request and preview the review, but do not actually apply it. */
|
|
936
1010
|
validateOnly?:
|
|
937
1011
|
boolean;
|
|
938
1012
|
/** Required. ID to use for the workstation. */
|
|
@@ -979,7 +1053,7 @@ declare namespace gapi.client {
|
|
|
979
1053
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
980
1054
|
uploadType?:
|
|
981
1055
|
string;
|
|
982
|
-
/** If set, validate the request and preview the review, but do not actually apply it. */
|
|
1056
|
+
/** Optional. If set, validate the request and preview the review, but do not actually apply it. */
|
|
983
1057
|
validateOnly?:
|
|
984
1058
|
boolean;
|
|
985
1059
|
/** Required. ID to use for the workstation. */
|
|
@@ -1001,7 +1075,7 @@ declare namespace gapi.client {
|
|
|
1001
1075
|
/** JSONP */
|
|
1002
1076
|
callback?:
|
|
1003
1077
|
string;
|
|
1004
|
-
/** If set, the request will be rejected if the latest version of the workstation on the server does not have this ETag. */
|
|
1078
|
+
/** Optional. If set, the request will be rejected if the latest version of the workstation on the server does not have this ETag. */
|
|
1005
1079
|
etag?:
|
|
1006
1080
|
string;
|
|
1007
1081
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -1028,7 +1102,7 @@ declare namespace gapi.client {
|
|
|
1028
1102
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1029
1103
|
uploadType?:
|
|
1030
1104
|
string;
|
|
1031
|
-
/** If set, validate the request and preview the review, but do not actually apply it. */
|
|
1105
|
+
/** Optional. If set, validate the request and preview the review, but do not actually apply it. */
|
|
1032
1106
|
validateOnly?:
|
|
1033
1107
|
boolean;
|
|
1034
1108
|
}): Request<Operation>;
|
|
@@ -1226,10 +1300,10 @@ declare namespace gapi.client {
|
|
|
1226
1300
|
/** OAuth 2.0 token for the current user. */
|
|
1227
1301
|
oauth_token?:
|
|
1228
1302
|
string;
|
|
1229
|
-
/** Maximum number of items to return. */
|
|
1303
|
+
/** Optional. Maximum number of items to return. */
|
|
1230
1304
|
pageSize?:
|
|
1231
1305
|
number;
|
|
1232
|
-
/** next_page_token value returned from a previous List request, if any. */
|
|
1306
|
+
/** Optional. next_page_token value returned from a previous List request, if any. */
|
|
1233
1307
|
pageToken?:
|
|
1234
1308
|
string;
|
|
1235
1309
|
/** Required. Parent resource name. */
|
|
@@ -1271,10 +1345,10 @@ declare namespace gapi.client {
|
|
|
1271
1345
|
/** OAuth 2.0 token for the current user. */
|
|
1272
1346
|
oauth_token?:
|
|
1273
1347
|
string;
|
|
1274
|
-
/** Maximum number of items to return. */
|
|
1348
|
+
/** Optional. Maximum number of items to return. */
|
|
1275
1349
|
pageSize?:
|
|
1276
1350
|
number;
|
|
1277
|
-
/** next_page_token value returned from a previous List request, if any. */
|
|
1351
|
+
/** Optional. next_page_token value returned from a previous List request, if any. */
|
|
1278
1352
|
pageToken?:
|
|
1279
1353
|
string;
|
|
1280
1354
|
/** Required. Parent resource name. */
|
|
@@ -1301,7 +1375,7 @@ declare namespace gapi.client {
|
|
|
1301
1375
|
/** OAuth access token. */
|
|
1302
1376
|
access_token?:
|
|
1303
1377
|
string;
|
|
1304
|
-
/** If set and the workstation configuration is not found, a new workstation configuration is created. In this situation, update_mask is ignored. */
|
|
1378
|
+
/** Optional. If set and the workstation configuration is not found, a new workstation configuration is created. In this situation, update_mask is ignored. */
|
|
1305
1379
|
allowMissing?:
|
|
1306
1380
|
boolean;
|
|
1307
1381
|
/** Data format for response. */
|
|
@@ -1316,7 +1390,7 @@ declare namespace gapi.client {
|
|
|
1316
1390
|
/** 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. */
|
|
1317
1391
|
key?:
|
|
1318
1392
|
string;
|
|
1319
|
-
/** Full name of this
|
|
1393
|
+
/** Full name of this workstation. */
|
|
1320
1394
|
name:
|
|
1321
1395
|
string;
|
|
1322
1396
|
/** OAuth 2.0 token for the current user. */
|
|
@@ -1337,7 +1411,7 @@ declare namespace gapi.client {
|
|
|
1337
1411
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1338
1412
|
uploadType?:
|
|
1339
1413
|
string;
|
|
1340
|
-
/** If set, validate the request and preview the review, but do not actually apply it. */
|
|
1414
|
+
/** Optional. If set, validate the request and preview the review, but do not actually apply it. */
|
|
1341
1415
|
validateOnly?:
|
|
1342
1416
|
boolean;
|
|
1343
1417
|
/** Request body */
|
|
@@ -1351,7 +1425,7 @@ declare namespace gapi.client {
|
|
|
1351
1425
|
/** OAuth access token. */
|
|
1352
1426
|
access_token?:
|
|
1353
1427
|
string;
|
|
1354
|
-
/** If set and the workstation configuration is not found, a new workstation configuration is created. In this situation, update_mask is ignored. */
|
|
1428
|
+
/** Optional. If set and the workstation configuration is not found, a new workstation configuration is created. In this situation, update_mask is ignored. */
|
|
1355
1429
|
allowMissing?:
|
|
1356
1430
|
boolean;
|
|
1357
1431
|
/** Data format for response. */
|
|
@@ -1366,7 +1440,7 @@ declare namespace gapi.client {
|
|
|
1366
1440
|
/** 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. */
|
|
1367
1441
|
key?:
|
|
1368
1442
|
string;
|
|
1369
|
-
/** Full name of this
|
|
1443
|
+
/** Full name of this workstation. */
|
|
1370
1444
|
name:
|
|
1371
1445
|
string;
|
|
1372
1446
|
/** OAuth 2.0 token for the current user. */
|
|
@@ -1387,7 +1461,7 @@ declare namespace gapi.client {
|
|
|
1387
1461
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1388
1462
|
uploadType?:
|
|
1389
1463
|
string;
|
|
1390
|
-
/** If set, validate the request and preview the review, but do not actually apply it. */
|
|
1464
|
+
/** Optional. If set, validate the request and preview the review, but do not actually apply it. */
|
|
1391
1465
|
validateOnly?:
|
|
1392
1466
|
boolean;
|
|
1393
1467
|
},
|
|
@@ -1683,7 +1757,7 @@ declare namespace gapi.client {
|
|
|
1683
1757
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1684
1758
|
uploadType?:
|
|
1685
1759
|
string;
|
|
1686
|
-
/** If set, validate the request and preview the review, but do not actually apply it. */
|
|
1760
|
+
/** Optional. If set, validate the request and preview the review, but do not actually apply it. */
|
|
1687
1761
|
validateOnly?:
|
|
1688
1762
|
boolean;
|
|
1689
1763
|
/** Required. ID to use for the workstation configuration. */
|
|
@@ -1730,7 +1804,7 @@ declare namespace gapi.client {
|
|
|
1730
1804
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1731
1805
|
uploadType?:
|
|
1732
1806
|
string;
|
|
1733
|
-
/** If set, validate the request and preview the review, but do not actually apply it. */
|
|
1807
|
+
/** Optional. If set, validate the request and preview the review, but do not actually apply it. */
|
|
1734
1808
|
validateOnly?:
|
|
1735
1809
|
boolean;
|
|
1736
1810
|
/** Required. ID to use for the workstation configuration. */
|
|
@@ -1752,13 +1826,13 @@ declare namespace gapi.client {
|
|
|
1752
1826
|
/** JSONP */
|
|
1753
1827
|
callback?:
|
|
1754
1828
|
string;
|
|
1755
|
-
/** If set, the request is rejected if the latest version of the workstation configuration on the server does not have this ETag. */
|
|
1829
|
+
/** Optional. If set, the request is rejected if the latest version of the workstation configuration on the server does not have this ETag. */
|
|
1756
1830
|
etag?:
|
|
1757
1831
|
string;
|
|
1758
1832
|
/** Selector specifying which fields to include in a partial response. */
|
|
1759
1833
|
fields?:
|
|
1760
1834
|
string;
|
|
1761
|
-
/** If set, any workstations in the workstation configuration are also deleted. Otherwise, the request works only if the workstation configuration has no workstations. */
|
|
1835
|
+
/** Optional. If set, any workstations in the workstation configuration are also deleted. Otherwise, the request works only if the workstation configuration has no workstations. */
|
|
1762
1836
|
force?:
|
|
1763
1837
|
boolean;
|
|
1764
1838
|
/** 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. */
|
|
@@ -1782,7 +1856,7 @@ declare namespace gapi.client {
|
|
|
1782
1856
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1783
1857
|
uploadType?:
|
|
1784
1858
|
string;
|
|
1785
|
-
/** If set, validate the request and preview the review, but do not actually apply it. */
|
|
1859
|
+
/** Optional. If set, validate the request and preview the review, but do not actually apply it. */
|
|
1786
1860
|
validateOnly?:
|
|
1787
1861
|
boolean;
|
|
1788
1862
|
}): Request<Operation>;
|
|
@@ -1899,10 +1973,10 @@ declare namespace gapi.client {
|
|
|
1899
1973
|
/** OAuth 2.0 token for the current user. */
|
|
1900
1974
|
oauth_token?:
|
|
1901
1975
|
string;
|
|
1902
|
-
/** Maximum number of items to return. */
|
|
1976
|
+
/** Optional. Maximum number of items to return. */
|
|
1903
1977
|
pageSize?:
|
|
1904
1978
|
number;
|
|
1905
|
-
/** next_page_token value returned from a previous List request, if any. */
|
|
1979
|
+
/** Optional. next_page_token value returned from a previous List request, if any. */
|
|
1906
1980
|
pageToken?:
|
|
1907
1981
|
string;
|
|
1908
1982
|
/** Required. Parent resource name. */
|
|
@@ -1944,10 +2018,10 @@ declare namespace gapi.client {
|
|
|
1944
2018
|
/** OAuth 2.0 token for the current user. */
|
|
1945
2019
|
oauth_token?:
|
|
1946
2020
|
string;
|
|
1947
|
-
/** Maximum number of items to return. */
|
|
2021
|
+
/** Optional. Maximum number of items to return. */
|
|
1948
2022
|
pageSize?:
|
|
1949
2023
|
number;
|
|
1950
|
-
/** next_page_token value returned from a previous List request, if any. */
|
|
2024
|
+
/** Optional. next_page_token value returned from a previous List request, if any. */
|
|
1951
2025
|
pageToken?:
|
|
1952
2026
|
string;
|
|
1953
2027
|
/** Required. Parent resource name. */
|
|
@@ -1974,7 +2048,7 @@ declare namespace gapi.client {
|
|
|
1974
2048
|
/** OAuth access token. */
|
|
1975
2049
|
access_token?:
|
|
1976
2050
|
string;
|
|
1977
|
-
/** If set and the workstation configuration is not found, a new workstation configuration will be created. In this situation, update_mask is ignored. */
|
|
2051
|
+
/** Optional. If set and the workstation configuration is not found, a new workstation configuration will be created. In this situation, update_mask is ignored. */
|
|
1978
2052
|
allowMissing?:
|
|
1979
2053
|
boolean;
|
|
1980
2054
|
/** Data format for response. */
|
|
@@ -1989,7 +2063,7 @@ declare namespace gapi.client {
|
|
|
1989
2063
|
/** 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. */
|
|
1990
2064
|
key?:
|
|
1991
2065
|
string;
|
|
1992
|
-
/** Full name of this
|
|
2066
|
+
/** Full name of this workstation configuration. */
|
|
1993
2067
|
name:
|
|
1994
2068
|
string;
|
|
1995
2069
|
/** OAuth 2.0 token for the current user. */
|
|
@@ -2010,7 +2084,7 @@ declare namespace gapi.client {
|
|
|
2010
2084
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2011
2085
|
uploadType?:
|
|
2012
2086
|
string;
|
|
2013
|
-
/** If set, validate the request and preview the review, but do not actually apply it. */
|
|
2087
|
+
/** Optional. If set, validate the request and preview the review, but do not actually apply it. */
|
|
2014
2088
|
validateOnly?:
|
|
2015
2089
|
boolean;
|
|
2016
2090
|
/** Request body */
|
|
@@ -2024,7 +2098,7 @@ declare namespace gapi.client {
|
|
|
2024
2098
|
/** OAuth access token. */
|
|
2025
2099
|
access_token?:
|
|
2026
2100
|
string;
|
|
2027
|
-
/** If set and the workstation configuration is not found, a new workstation configuration will be created. In this situation, update_mask is ignored. */
|
|
2101
|
+
/** Optional. If set and the workstation configuration is not found, a new workstation configuration will be created. In this situation, update_mask is ignored. */
|
|
2028
2102
|
allowMissing?:
|
|
2029
2103
|
boolean;
|
|
2030
2104
|
/** Data format for response. */
|
|
@@ -2039,7 +2113,7 @@ declare namespace gapi.client {
|
|
|
2039
2113
|
/** 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. */
|
|
2040
2114
|
key?:
|
|
2041
2115
|
string;
|
|
2042
|
-
/** Full name of this
|
|
2116
|
+
/** Full name of this workstation configuration. */
|
|
2043
2117
|
name:
|
|
2044
2118
|
string;
|
|
2045
2119
|
/** OAuth 2.0 token for the current user. */
|
|
@@ -2060,7 +2134,7 @@ declare namespace gapi.client {
|
|
|
2060
2134
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2061
2135
|
uploadType?:
|
|
2062
2136
|
string;
|
|
2063
|
-
/** If set, validate the request and preview the review, but do not actually apply it. */
|
|
2137
|
+
/** Optional. If set, validate the request and preview the review, but do not actually apply it. */
|
|
2064
2138
|
validateOnly?:
|
|
2065
2139
|
boolean;
|
|
2066
2140
|
},
|
|
@@ -2196,7 +2270,7 @@ declare namespace gapi.client {
|
|
|
2196
2270
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2197
2271
|
uploadType?:
|
|
2198
2272
|
string;
|
|
2199
|
-
/** If set, validate the request and preview the review, but do not actually apply it. */
|
|
2273
|
+
/** Optional. If set, validate the request and preview the review, but do not actually apply it. */
|
|
2200
2274
|
validateOnly?:
|
|
2201
2275
|
boolean;
|
|
2202
2276
|
/** Required. ID to use for the workstation cluster. */
|
|
@@ -2243,7 +2317,7 @@ declare namespace gapi.client {
|
|
|
2243
2317
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2244
2318
|
uploadType?:
|
|
2245
2319
|
string;
|
|
2246
|
-
/** If set, validate the request and preview the review, but do not actually apply it. */
|
|
2320
|
+
/** Optional. If set, validate the request and preview the review, but do not actually apply it. */
|
|
2247
2321
|
validateOnly?:
|
|
2248
2322
|
boolean;
|
|
2249
2323
|
/** Required. ID to use for the workstation cluster. */
|
|
@@ -2265,15 +2339,15 @@ declare namespace gapi.client {
|
|
|
2265
2339
|
/** JSONP */
|
|
2266
2340
|
callback?:
|
|
2267
2341
|
string;
|
|
2268
|
-
/** If set, the request will be rejected if the latest version of the workstation cluster on the server does not have this ETag. */
|
|
2342
|
+
/** Optional. If set, the request will be rejected if the latest version of the workstation cluster on the server does not have this ETag. */
|
|
2269
2343
|
etag?:
|
|
2270
2344
|
string;
|
|
2271
2345
|
/** Selector specifying which fields to include in a partial response. */
|
|
2272
2346
|
fields?:
|
|
2273
2347
|
string;
|
|
2274
2348
|
/**
|
|
2275
|
-
* If set, any workstation configurations and workstations in the workstation cluster are also deleted. Otherwise, the request only works if the workstation cluster has
|
|
2276
|
-
* configurations or workstations.
|
|
2349
|
+
* Optional. If set, any workstation configurations and workstations in the workstation cluster are also deleted. Otherwise, the request only works if the workstation cluster has
|
|
2350
|
+
* no configurations or workstations.
|
|
2277
2351
|
*/
|
|
2278
2352
|
force?:
|
|
2279
2353
|
boolean;
|
|
@@ -2298,7 +2372,7 @@ declare namespace gapi.client {
|
|
|
2298
2372
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2299
2373
|
uploadType?:
|
|
2300
2374
|
string;
|
|
2301
|
-
/** If set, validate the request and preview the review, but do not apply it. */
|
|
2375
|
+
/** Optional. If set, validate the request and preview the review, but do not apply it. */
|
|
2302
2376
|
validateOnly?:
|
|
2303
2377
|
boolean;
|
|
2304
2378
|
}): Request<Operation>;
|
|
@@ -2364,10 +2438,10 @@ declare namespace gapi.client {
|
|
|
2364
2438
|
/** OAuth 2.0 token for the current user. */
|
|
2365
2439
|
oauth_token?:
|
|
2366
2440
|
string;
|
|
2367
|
-
/** Maximum number of items to return. */
|
|
2441
|
+
/** Optional. Maximum number of items to return. */
|
|
2368
2442
|
pageSize?:
|
|
2369
2443
|
number;
|
|
2370
|
-
/** next_page_token value returned from a previous List request, if any. */
|
|
2444
|
+
/** Optional. next_page_token value returned from a previous List request, if any. */
|
|
2371
2445
|
pageToken?:
|
|
2372
2446
|
string;
|
|
2373
2447
|
/** Required. Parent resource name. */
|
|
@@ -2394,7 +2468,7 @@ declare namespace gapi.client {
|
|
|
2394
2468
|
/** OAuth access token. */
|
|
2395
2469
|
access_token?:
|
|
2396
2470
|
string;
|
|
2397
|
-
/** If set, and the workstation cluster is not found, a new workstation cluster will be created. In this situation, update_mask is ignored. */
|
|
2471
|
+
/** Optional. If set, and the workstation cluster is not found, a new workstation cluster will be created. In this situation, update_mask is ignored. */
|
|
2398
2472
|
allowMissing?:
|
|
2399
2473
|
boolean;
|
|
2400
2474
|
/** Data format for response. */
|
|
@@ -2409,7 +2483,7 @@ declare namespace gapi.client {
|
|
|
2409
2483
|
/** 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. */
|
|
2410
2484
|
key?:
|
|
2411
2485
|
string;
|
|
2412
|
-
/** Full name of this
|
|
2486
|
+
/** Full name of this workstation cluster. */
|
|
2413
2487
|
name:
|
|
2414
2488
|
string;
|
|
2415
2489
|
/** OAuth 2.0 token for the current user. */
|
|
@@ -2430,7 +2504,7 @@ declare namespace gapi.client {
|
|
|
2430
2504
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2431
2505
|
uploadType?:
|
|
2432
2506
|
string;
|
|
2433
|
-
/** If set, validate the request and preview the review, but do not actually apply it. */
|
|
2507
|
+
/** Optional. If set, validate the request and preview the review, but do not actually apply it. */
|
|
2434
2508
|
validateOnly?:
|
|
2435
2509
|
boolean;
|
|
2436
2510
|
/** Request body */
|
|
@@ -2444,7 +2518,7 @@ declare namespace gapi.client {
|
|
|
2444
2518
|
/** OAuth access token. */
|
|
2445
2519
|
access_token?:
|
|
2446
2520
|
string;
|
|
2447
|
-
/** If set, and the workstation cluster is not found, a new workstation cluster will be created. In this situation, update_mask is ignored. */
|
|
2521
|
+
/** Optional. If set, and the workstation cluster is not found, a new workstation cluster will be created. In this situation, update_mask is ignored. */
|
|
2448
2522
|
allowMissing?:
|
|
2449
2523
|
boolean;
|
|
2450
2524
|
/** Data format for response. */
|
|
@@ -2459,7 +2533,7 @@ declare namespace gapi.client {
|
|
|
2459
2533
|
/** 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. */
|
|
2460
2534
|
key?:
|
|
2461
2535
|
string;
|
|
2462
|
-
/** Full name of this
|
|
2536
|
+
/** Full name of this workstation cluster. */
|
|
2463
2537
|
name:
|
|
2464
2538
|
string;
|
|
2465
2539
|
/** OAuth 2.0 token for the current user. */
|
|
@@ -2480,7 +2554,7 @@ declare namespace gapi.client {
|
|
|
2480
2554
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2481
2555
|
uploadType?:
|
|
2482
2556
|
string;
|
|
2483
|
-
/** If set, validate the request and preview the review, but do not actually apply it. */
|
|
2557
|
+
/** Optional. If set, validate the request and preview the review, but do not actually apply it. */
|
|
2484
2558
|
validateOnly?:
|
|
2485
2559
|
boolean;
|
|
2486
2560
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maxim_mazurok/gapi.client.workstations-v1beta",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.20230904",
|
|
4
4
|
"description": "TypeScript typings for Cloud Workstations API v1beta",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -15,6 +15,6 @@
|
|
|
15
15
|
"types": "index.d.ts",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@types/gapi.client": "*",
|
|
18
|
-
"@types/gapi.client.discovery": "*"
|
|
18
|
+
"@types/gapi.client.discovery-v1": "*"
|
|
19
19
|
}
|
|
20
20
|
}
|
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: 20230904
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -206,6 +206,17 @@ gapi.load('client', async () => {
|
|
|
206
206
|
kmsKey: "Test string",
|
|
207
207
|
kmsKeyServiceAccount: "Test string",
|
|
208
208
|
},
|
|
209
|
+
ephemeralDirectories: [
|
|
210
|
+
{
|
|
211
|
+
gcePd: {
|
|
212
|
+
diskType: "Test string",
|
|
213
|
+
readOnly: true,
|
|
214
|
+
sourceImage: "Test string",
|
|
215
|
+
sourceSnapshot: "Test string",
|
|
216
|
+
},
|
|
217
|
+
mountPath: "Test string",
|
|
218
|
+
}
|
|
219
|
+
],
|
|
209
220
|
etag: "Test string",
|
|
210
221
|
host: {
|
|
211
222
|
gceInstance: {
|
|
@@ -225,6 +236,9 @@ gapi.load('client', async () => {
|
|
|
225
236
|
pooledInstances: 42,
|
|
226
237
|
poolSize: 42,
|
|
227
238
|
serviceAccount: "Test string",
|
|
239
|
+
serviceAccountScopes: [
|
|
240
|
+
"Test string"
|
|
241
|
+
],
|
|
228
242
|
shieldedInstanceConfig: {
|
|
229
243
|
enableIntegrityMonitoring: true,
|
|
230
244
|
enableSecureBoot: true,
|
|
@@ -259,6 +273,9 @@ gapi.load('client', async () => {
|
|
|
259
273
|
}
|
|
260
274
|
],
|
|
261
275
|
reconciling: true,
|
|
276
|
+
replicaZones: [
|
|
277
|
+
"Test string"
|
|
278
|
+
],
|
|
262
279
|
runningTimeout: "Test string",
|
|
263
280
|
uid: "Test string",
|
|
264
281
|
updateTime: "Test string",
|
|
@@ -335,6 +352,17 @@ gapi.load('client', async () => {
|
|
|
335
352
|
kmsKey: "Test string",
|
|
336
353
|
kmsKeyServiceAccount: "Test string",
|
|
337
354
|
},
|
|
355
|
+
ephemeralDirectories: [
|
|
356
|
+
{
|
|
357
|
+
gcePd: {
|
|
358
|
+
diskType: "Test string",
|
|
359
|
+
readOnly: true,
|
|
360
|
+
sourceImage: "Test string",
|
|
361
|
+
sourceSnapshot: "Test string",
|
|
362
|
+
},
|
|
363
|
+
mountPath: "Test string",
|
|
364
|
+
}
|
|
365
|
+
],
|
|
338
366
|
etag: "Test string",
|
|
339
367
|
host: {
|
|
340
368
|
gceInstance: {
|
|
@@ -354,6 +382,9 @@ gapi.load('client', async () => {
|
|
|
354
382
|
pooledInstances: 42,
|
|
355
383
|
poolSize: 42,
|
|
356
384
|
serviceAccount: "Test string",
|
|
385
|
+
serviceAccountScopes: [
|
|
386
|
+
"Test string"
|
|
387
|
+
],
|
|
357
388
|
shieldedInstanceConfig: {
|
|
358
389
|
enableIntegrityMonitoring: true,
|
|
359
390
|
enableSecureBoot: true,
|
|
@@ -388,6 +419,9 @@ gapi.load('client', async () => {
|
|
|
388
419
|
}
|
|
389
420
|
],
|
|
390
421
|
reconciling: true,
|
|
422
|
+
replicaZones: [
|
|
423
|
+
"Test string"
|
|
424
|
+
],
|
|
391
425
|
runningTimeout: "Test string",
|
|
392
426
|
uid: "Test string",
|
|
393
427
|
updateTime: "Test string",
|
|
@@ -462,6 +496,7 @@ gapi.load('client', async () => {
|
|
|
462
496
|
},
|
|
463
497
|
name: "Test string",
|
|
464
498
|
reconciling: true,
|
|
499
|
+
startTime: "Test string",
|
|
465
500
|
state: "Test string",
|
|
466
501
|
uid: "Test string",
|
|
467
502
|
updateTime: "Test string",
|
|
@@ -523,6 +558,7 @@ gapi.load('client', async () => {
|
|
|
523
558
|
},
|
|
524
559
|
name: "Test string",
|
|
525
560
|
reconciling: true,
|
|
561
|
+
startTime: "Test string",
|
|
526
562
|
state: "Test string",
|
|
527
563
|
uid: "Test string",
|
|
528
564
|
updateTime: "Test string",
|