@maxim_mazurok/gapi.client.workstations-v1beta 0.3.20260604 → 0.3.20260705

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 +77 -7
  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: 20260705
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -286,13 +286,15 @@ declare namespace gapi.client {
286
286
  workstations?: Workstation[];
287
287
  }
288
288
  interface OAuthToken {
289
- /** Required. The OAuth token. */
289
+ /** Required. The OAuth 2.0 access token value. */
290
290
  accessToken?: string;
291
- /** Optional. The email address encapsulated in the OAuth token. */
291
+ /** Optional. The email address associated with the OAuth 2.0 access token. */
292
292
  email?: string;
293
- /** Optional. The time the OAuth access token will expire. This should be the time the access token was generated plus the expires_in offset returned from the Access Token Response. */
293
+ /** Optional. The lifetime duration of the access token. Only one of `expire_time` or `expires_in` should be specified. */
294
+ expiresIn?: string;
295
+ /** Optional. The time the OAuth access token will expire. This should be the time the access token was generated plus the expires_in offset returned from the Access Token Response. Only one of `expire_time` or `expires_in` should be specified. */
294
296
  expireTime?: string;
295
- /** Optional. The scopes encapsulated in the OAuth token. See https://developers.google.com/identity/protocols/oauth2/scopes for more information. */
297
+ /** Optional. The scopes associated with the OAuth 2.0 access token. See https://developers.google.com/identity/protocols/oauth2/scopes for more information. */
296
298
  scopes?: string;
297
299
  }
298
300
  interface Operation {
@@ -358,7 +360,7 @@ declare namespace gapi.client {
358
360
  serviceAttachmentUri?: string;
359
361
  }
360
362
  interface PushCredentialsRequest {
361
- /** Optional. Credentials used by Cloud Client Libraries, Google API Client Libraries, and other tooling within the user conainer: https://cloud.google.com/docs/authentication/application-default-credentials */
363
+ /** Optional. Credentials used by Cloud Client Libraries, Google API Client Libraries, and other tooling within the user container. For more information, see https://cloud.google.com/docs/authentication/application-default-credentials */
362
364
  applicationDefaultCredentials?: OAuthToken;
363
365
  }
364
366
  interface ReadinessCheck {
@@ -411,6 +413,12 @@ declare namespace gapi.client {
411
413
  /** Optional. If set, validate the request and preview the result, but do not actually apply it. */
412
414
  validateOnly?: boolean;
413
415
  }
416
+ interface SuspendWorkstationRequest {
417
+ /** Optional. If set, the request will be rejected if the latest version of the workstation on the server does not have this ETag. */
418
+ etag?: string;
419
+ /** Optional. If set, validate the request and preview the result, but do not actually apply it. */
420
+ validateOnly?: boolean;
421
+ }
414
422
  interface TestIamPermissionsRequest {
415
423
  /** 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
424
  permissions?: string[];
@@ -466,7 +474,9 @@ declare namespace gapi.client {
466
474
  | 'STATE_STARTING'
467
475
  | 'STATE_RUNNING'
468
476
  | 'STATE_STOPPING'
469
- | 'STATE_STOPPED';
477
+ | 'STATE_STOPPED'
478
+ | 'STATE_SUSPENDING'
479
+ | 'STATE_SUSPENDED';
470
480
  /** Output only. A system-assigned unique identifier for this workstation. */
471
481
  uid?: string;
472
482
  /** Output only. Time when this workstation was most recently updated. */
@@ -561,6 +571,8 @@ declare namespace gapi.client {
561
571
  host?: Host;
562
572
  /** Optional. HTTP options that customize the behavior of the workstation service's HTTP proxy. */
563
573
  httpOptions?: HttpOptions;
574
+ /** Optional. The action to take when the workstation has been idle for the duration specified in idle_timeout. Defaults to STOP. */
575
+ idleAction?: 'IDLE_ACTION_UNSPECIFIED' | 'STOP' | 'SUSPEND';
564
576
  /** 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
577
  idleTimeout?: string;
566
578
  /** 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 +1305,64 @@ declare namespace gapi.client {
1293
1305
  },
1294
1306
  body: StopWorkstationRequest,
1295
1307
  ): Request<Operation>;
1308
+ /** Suspends a workstation to reduce costs. */
1309
+ suspend(request: {
1310
+ /** V1 error format. */
1311
+ '$.xgafv'?: '1' | '2';
1312
+ /** OAuth access token. */
1313
+ access_token?: string;
1314
+ /** Data format for response. */
1315
+ alt?: 'json' | 'media' | 'proto';
1316
+ /** JSONP */
1317
+ callback?: string;
1318
+ /** Selector specifying which fields to include in a partial response. */
1319
+ fields?: string;
1320
+ /** 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. */
1321
+ key?: string;
1322
+ /** Required. Name of the workstation to suspend. */
1323
+ name: string;
1324
+ /** OAuth 2.0 token for the current user. */
1325
+ oauth_token?: string;
1326
+ /** Returns response with indentations and line breaks. */
1327
+ prettyPrint?: boolean;
1328
+ /** 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. */
1329
+ quotaUser?: string;
1330
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1331
+ upload_protocol?: string;
1332
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1333
+ uploadType?: string;
1334
+ /** Request body */
1335
+ resource: SuspendWorkstationRequest;
1336
+ }): Request<Operation>;
1337
+ suspend(
1338
+ request: {
1339
+ /** V1 error format. */
1340
+ '$.xgafv'?: '1' | '2';
1341
+ /** OAuth access token. */
1342
+ access_token?: string;
1343
+ /** Data format for response. */
1344
+ alt?: 'json' | 'media' | 'proto';
1345
+ /** JSONP */
1346
+ callback?: string;
1347
+ /** Selector specifying which fields to include in a partial response. */
1348
+ fields?: string;
1349
+ /** 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. */
1350
+ key?: string;
1351
+ /** Required. Name of the workstation to suspend. */
1352
+ name: string;
1353
+ /** OAuth 2.0 token for the current user. */
1354
+ oauth_token?: string;
1355
+ /** Returns response with indentations and line breaks. */
1356
+ prettyPrint?: boolean;
1357
+ /** 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. */
1358
+ quotaUser?: string;
1359
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1360
+ upload_protocol?: string;
1361
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1362
+ uploadType?: string;
1363
+ },
1364
+ body: SuspendWorkstationRequest,
1365
+ ): Request<Operation>;
1296
1366
  /** 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
1367
  testIamPermissions(
1298
1368
  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.20260705",
4
4
  "description": "TypeScript typings for Cloud Workstations API v1beta",
5
5
  "repository": {
6
6
  "type": "git",