@maxim_mazurok/gapi.client.workstations-v1beta 0.2.20260604 → 0.3.20260622
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 +71 -6
- package/package.json +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: 20260622
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -45,10 +45,7 @@ declare namespace gapi.client {
|
|
|
45
45
|
exemptedMembers?: string[];
|
|
46
46
|
/** The log type that this config enables. */
|
|
47
47
|
logType?:
|
|
48
|
-
| '
|
|
49
|
-
| 'ADMIN_READ'
|
|
50
|
-
| 'DATA_WRITE'
|
|
51
|
-
| 'DATA_READ';
|
|
48
|
+
'LOG_TYPE_UNSPECIFIED' | 'ADMIN_READ' | 'DATA_WRITE' | 'DATA_READ';
|
|
52
49
|
}
|
|
53
50
|
interface Binding {
|
|
54
51
|
/** The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */
|
|
@@ -414,6 +411,12 @@ declare namespace gapi.client {
|
|
|
414
411
|
/** Optional. If set, validate the request and preview the result, but do not actually apply it. */
|
|
415
412
|
validateOnly?: boolean;
|
|
416
413
|
}
|
|
414
|
+
interface SuspendWorkstationRequest {
|
|
415
|
+
/** Optional. If set, the request will be rejected if the latest version of the workstation on the server does not have this ETag. */
|
|
416
|
+
etag?: string;
|
|
417
|
+
/** Optional. If set, validate the request and preview the result, but do not actually apply it. */
|
|
418
|
+
validateOnly?: boolean;
|
|
419
|
+
}
|
|
417
420
|
interface TestIamPermissionsRequest {
|
|
418
421
|
/** The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). */
|
|
419
422
|
permissions?: string[];
|
|
@@ -469,7 +472,9 @@ declare namespace gapi.client {
|
|
|
469
472
|
| 'STATE_STARTING'
|
|
470
473
|
| 'STATE_RUNNING'
|
|
471
474
|
| 'STATE_STOPPING'
|
|
472
|
-
| 'STATE_STOPPED'
|
|
475
|
+
| 'STATE_STOPPED'
|
|
476
|
+
| 'STATE_SUSPENDING'
|
|
477
|
+
| 'STATE_SUSPENDED';
|
|
473
478
|
/** Output only. A system-assigned unique identifier for this workstation. */
|
|
474
479
|
uid?: string;
|
|
475
480
|
/** Output only. Time when this workstation was most recently updated. */
|
|
@@ -564,6 +569,8 @@ declare namespace gapi.client {
|
|
|
564
569
|
host?: Host;
|
|
565
570
|
/** Optional. HTTP options that customize the behavior of the workstation service's HTTP proxy. */
|
|
566
571
|
httpOptions?: HttpOptions;
|
|
572
|
+
/** Optional. The action to take when the workstation has been idle for the duration specified in idle_timeout. Defaults to STOP. */
|
|
573
|
+
idleAction?: 'IDLE_ACTION_UNSPECIFIED' | 'STOP' | 'SUSPEND';
|
|
567
574
|
/** 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 with this 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 seconds—for example, `"7200s"` (2 hours). The default is `"1200s"` (20 minutes). */
|
|
568
575
|
idleTimeout?: string;
|
|
569
576
|
/** 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 Compute Engine resources. */
|
|
@@ -1296,6 +1303,64 @@ declare namespace gapi.client {
|
|
|
1296
1303
|
},
|
|
1297
1304
|
body: StopWorkstationRequest,
|
|
1298
1305
|
): Request<Operation>;
|
|
1306
|
+
/** Suspends a workstation to reduce costs. */
|
|
1307
|
+
suspend(request: {
|
|
1308
|
+
/** V1 error format. */
|
|
1309
|
+
'$.xgafv'?: '1' | '2';
|
|
1310
|
+
/** OAuth access token. */
|
|
1311
|
+
access_token?: string;
|
|
1312
|
+
/** Data format for response. */
|
|
1313
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1314
|
+
/** JSONP */
|
|
1315
|
+
callback?: string;
|
|
1316
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1317
|
+
fields?: string;
|
|
1318
|
+
/** 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. */
|
|
1319
|
+
key?: string;
|
|
1320
|
+
/** Required. Name of the workstation to suspend. */
|
|
1321
|
+
name: string;
|
|
1322
|
+
/** OAuth 2.0 token for the current user. */
|
|
1323
|
+
oauth_token?: string;
|
|
1324
|
+
/** Returns response with indentations and line breaks. */
|
|
1325
|
+
prettyPrint?: boolean;
|
|
1326
|
+
/** 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. */
|
|
1327
|
+
quotaUser?: string;
|
|
1328
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1329
|
+
upload_protocol?: string;
|
|
1330
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1331
|
+
uploadType?: string;
|
|
1332
|
+
/** Request body */
|
|
1333
|
+
resource: SuspendWorkstationRequest;
|
|
1334
|
+
}): Request<Operation>;
|
|
1335
|
+
suspend(
|
|
1336
|
+
request: {
|
|
1337
|
+
/** V1 error format. */
|
|
1338
|
+
'$.xgafv'?: '1' | '2';
|
|
1339
|
+
/** OAuth access token. */
|
|
1340
|
+
access_token?: string;
|
|
1341
|
+
/** Data format for response. */
|
|
1342
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1343
|
+
/** JSONP */
|
|
1344
|
+
callback?: string;
|
|
1345
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1346
|
+
fields?: string;
|
|
1347
|
+
/** 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. */
|
|
1348
|
+
key?: string;
|
|
1349
|
+
/** Required. Name of the workstation to suspend. */
|
|
1350
|
+
name: string;
|
|
1351
|
+
/** OAuth 2.0 token for the current user. */
|
|
1352
|
+
oauth_token?: string;
|
|
1353
|
+
/** Returns response with indentations and line breaks. */
|
|
1354
|
+
prettyPrint?: boolean;
|
|
1355
|
+
/** 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. */
|
|
1356
|
+
quotaUser?: string;
|
|
1357
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1358
|
+
upload_protocol?: string;
|
|
1359
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1360
|
+
uploadType?: string;
|
|
1361
|
+
},
|
|
1362
|
+
body: SuspendWorkstationRequest,
|
|
1363
|
+
): Request<Operation>;
|
|
1299
1364
|
/** Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning. */
|
|
1300
1365
|
testIamPermissions(
|
|
1301
1366
|
request: {
|