@maxim_mazurok/gapi.client.workstations-v1beta 0.3.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.
Files changed (2) hide show
  1. package/index.d.ts +70 -2
  2. 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: 20260604
12
+ // Revision: 20260622
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -411,6 +411,12 @@ declare namespace gapi.client {
411
411
  /** Optional. If set, validate the request and preview the result, but do not actually apply it. */
412
412
  validateOnly?: boolean;
413
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
+ }
414
420
  interface TestIamPermissionsRequest {
415
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). */
416
422
  permissions?: string[];
@@ -466,7 +472,9 @@ declare namespace gapi.client {
466
472
  | 'STATE_STARTING'
467
473
  | 'STATE_RUNNING'
468
474
  | 'STATE_STOPPING'
469
- | 'STATE_STOPPED';
475
+ | 'STATE_STOPPED'
476
+ | 'STATE_SUSPENDING'
477
+ | 'STATE_SUSPENDED';
470
478
  /** Output only. A system-assigned unique identifier for this workstation. */
471
479
  uid?: string;
472
480
  /** Output only. Time when this workstation was most recently updated. */
@@ -561,6 +569,8 @@ declare namespace gapi.client {
561
569
  host?: Host;
562
570
  /** Optional. HTTP options that customize the behavior of the workstation service's HTTP proxy. */
563
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';
564
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). */
565
575
  idleTimeout?: string;
566
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. */
@@ -1293,6 +1303,64 @@ declare namespace gapi.client {
1293
1303
  },
1294
1304
  body: StopWorkstationRequest,
1295
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>;
1296
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. */
1297
1365
  testIamPermissions(
1298
1366
  request: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.workstations-v1beta",
3
- "version": "0.3.20260604",
3
+ "version": "0.3.20260622",
4
4
  "description": "TypeScript typings for Cloud Workstations API v1beta",
5
5
  "repository": {
6
6
  "type": "git",