@maxim_mazurok/gapi.client.workstations-v1beta 0.0.20230105 → 0.0.20230201
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 +42 -23
- package/package.json +1 -1
- package/tests.ts +15 -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: 20230201
|
|
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`. * `
|
|
55
|
-
*
|
|
56
|
-
* `
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
* `
|
|
61
|
-
*
|
|
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`. */
|
|
@@ -81,8 +81,14 @@ declare namespace gapi.client {
|
|
|
81
81
|
/** If set, overrides the default DIR specified by the image. */
|
|
82
82
|
workingDir?: string;
|
|
83
83
|
}
|
|
84
|
-
|
|
85
|
-
|
|
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`. */
|
|
86
|
+
kmsKey?: string;
|
|
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
|
|
90
|
+
*/
|
|
91
|
+
kmsKeyServiceAccount?: string;
|
|
86
92
|
}
|
|
87
93
|
interface Expr {
|
|
88
94
|
/** Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. */
|
|
@@ -148,13 +154,16 @@ declare namespace gapi.client {
|
|
|
148
154
|
}
|
|
149
155
|
interface GenerateAccessTokenResponse {
|
|
150
156
|
/**
|
|
151
|
-
* The generated bearer access token. To use this token, include it in an Authorization header of an HTTP request sent to the associated workstation's hostname,
|
|
152
|
-
* Bearer
|
|
157
|
+
* The generated bearer access token. To use this token, include it in an Authorization header of an HTTP request sent to the associated workstation's hostname, for example,
|
|
158
|
+
* `Authorization: Bearer `.
|
|
153
159
|
*/
|
|
154
160
|
accessToken?: string;
|
|
155
161
|
/** Time at which the generated token will expire. */
|
|
156
162
|
expireTime?: string;
|
|
157
163
|
}
|
|
164
|
+
// tslint:disable-next-line:no-empty-interface
|
|
165
|
+
interface GoogleProtobufEmpty {
|
|
166
|
+
}
|
|
158
167
|
interface Host {
|
|
159
168
|
/** Specifies a Compute Engine instance as the host. */
|
|
160
169
|
gceInstance?: GceInstance;
|
|
@@ -230,17 +239,14 @@ declare namespace gapi.client {
|
|
|
230
239
|
interface OperationMetadata {
|
|
231
240
|
/** Output only. API version used to start the operation. */
|
|
232
241
|
apiVersion?: string;
|
|
233
|
-
/**
|
|
234
|
-
* Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have Operation.error value with a
|
|
235
|
-
* google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
|
|
236
|
-
*/
|
|
237
|
-
cancelRequested?: boolean;
|
|
238
|
-
/** Output only. The time the operation was created. */
|
|
242
|
+
/** Output only. Time that the operation was created. */
|
|
239
243
|
createTime?: string;
|
|
240
|
-
/** Output only.
|
|
244
|
+
/** Output only. Time that the operation finished running. */
|
|
241
245
|
endTime?: string;
|
|
246
|
+
/** Output only. Identifies whether the user has requested cancellation of the operation. */
|
|
247
|
+
requestedCancellation?: boolean;
|
|
242
248
|
/** Output only. Human-readable status of the operation, if any. */
|
|
243
|
-
|
|
249
|
+
statusMessage?: string;
|
|
244
250
|
/** Output only. Server-defined resource path for the target of the operation. */
|
|
245
251
|
target?: string;
|
|
246
252
|
/** Output only. Name of the verb executed by the operation. */
|
|
@@ -281,6 +287,11 @@ declare namespace gapi.client {
|
|
|
281
287
|
version?: number;
|
|
282
288
|
}
|
|
283
289
|
interface PrivateClusterConfig {
|
|
290
|
+
/**
|
|
291
|
+
* 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)
|
|
292
|
+
* are allowed.
|
|
293
|
+
*/
|
|
294
|
+
allowedProjects?: string[];
|
|
284
295
|
/**
|
|
285
296
|
* 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
|
|
286
297
|
* mapping this domain name to an internal IP address and a forwarding rule mapping that address to the service attachment.
|
|
@@ -290,7 +301,7 @@ declare namespace gapi.client {
|
|
|
290
301
|
enablePrivateEndpoint?: boolean;
|
|
291
302
|
/**
|
|
292
303
|
* Output only. Service attachment URI for the workstation cluster. The service attachemnt is created when private endpoint is enabled. To access workstations in the cluster, configure
|
|
293
|
-
* access to the managed service using
|
|
304
|
+
* access to the managed service using [Private Service Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).
|
|
294
305
|
*/
|
|
295
306
|
serviceAttachmentUri?: string;
|
|
296
307
|
}
|
|
@@ -353,7 +364,7 @@ declare namespace gapi.client {
|
|
|
353
364
|
etag?: string;
|
|
354
365
|
/**
|
|
355
366
|
* Output only. Host to which clients can send HTTPS traffic that will be received by the workstation. Authorized traffic will be received to the workstation as HTTP on port 80. To
|
|
356
|
-
* send traffic to a different port, clients may prefix the host with the destination port in the format
|
|
367
|
+
* send traffic to a different port, clients may prefix the host with the destination port in the format `{port}-{host}`.
|
|
357
368
|
*/
|
|
358
369
|
host?: string;
|
|
359
370
|
/** Client-specified labels that are applied to the resource and that are also propagated to the underlying Compute Engine resources. */
|
|
@@ -416,6 +427,14 @@ declare namespace gapi.client {
|
|
|
416
427
|
deleteTime?: string;
|
|
417
428
|
/** Human-readable name for this resource. */
|
|
418
429
|
displayName?: string;
|
|
430
|
+
/**
|
|
431
|
+
* Encrypts resources of this workstation configuration using a customer-specified encryption key. If specified, the boot disk of the Compute Engine instance and the persistent disk
|
|
432
|
+
* will be encrypted using this encryption key. If this field is not set, the disks will be encrypted using a generated key. Customer-specified encryption keys do not protect disk
|
|
433
|
+
* metadata. If the customer-specified encryption key is rotated, when the workstation instance is stopped, the system will attempt to recreate the persistent disk with the new version
|
|
434
|
+
* of the key. Be sure to keep older versions of the key until the persistent disk is recreated. Otherwise, data on the persistent disk will be lost. If the encryption key is revoked,
|
|
435
|
+
* the workstation session will automatically be stopped within 7 hours.
|
|
436
|
+
*/
|
|
437
|
+
encryptionKey?: CustomerEncryptionKey;
|
|
419
438
|
/** 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. */
|
|
420
439
|
etag?: string;
|
|
421
440
|
/** Runtime host for the workstation. */
|
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: 20230201
|
|
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",
|
|
@@ -198,6 +204,10 @@ gapi.load('client', async () => {
|
|
|
198
204
|
degraded: true,
|
|
199
205
|
deleteTime: "Test string",
|
|
200
206
|
displayName: "Test string",
|
|
207
|
+
encryptionKey: {
|
|
208
|
+
kmsKey: "Test string",
|
|
209
|
+
kmsKeyServiceAccount: "Test string",
|
|
210
|
+
},
|
|
201
211
|
etag: "Test string",
|
|
202
212
|
host: {
|
|
203
213
|
gceInstance: {
|
|
@@ -307,6 +317,10 @@ gapi.load('client', async () => {
|
|
|
307
317
|
degraded: true,
|
|
308
318
|
deleteTime: "Test string",
|
|
309
319
|
displayName: "Test string",
|
|
320
|
+
encryptionKey: {
|
|
321
|
+
kmsKey: "Test string",
|
|
322
|
+
kmsKeyServiceAccount: "Test string",
|
|
323
|
+
},
|
|
310
324
|
etag: "Test string",
|
|
311
325
|
host: {
|
|
312
326
|
gceInstance: {
|