Skip to content

Commit 4998f2c

Browse files
feat(workstations): update the API
#### workstations:v1beta The following keys were added: - schemas.Workstation.properties.persistentDirectories.description - schemas.Workstation.properties.persistentDirectories.items.$ref - schemas.Workstation.properties.persistentDirectories.type - schemas.WorkstationGceRegionalPersistentDisk.description - schemas.WorkstationGceRegionalPersistentDisk.id - schemas.WorkstationGceRegionalPersistentDisk.properties.name.description - schemas.WorkstationGceRegionalPersistentDisk.properties.name.type - schemas.WorkstationGceRegionalPersistentDisk.properties.sizeGb.description - schemas.WorkstationGceRegionalPersistentDisk.properties.sizeGb.format - schemas.WorkstationGceRegionalPersistentDisk.properties.sizeGb.type - schemas.WorkstationGceRegionalPersistentDisk.type - schemas.WorkstationPersistentDirectory.description - schemas.WorkstationPersistentDirectory.id - schemas.WorkstationPersistentDirectory.properties.gcePd.$ref - schemas.WorkstationPersistentDirectory.properties.gcePd.deprecated - schemas.WorkstationPersistentDirectory.properties.gcePd.description - schemas.WorkstationPersistentDirectory.properties.mountPath.description - schemas.WorkstationPersistentDirectory.properties.mountPath.type - schemas.WorkstationPersistentDirectory.properties.sizeGb.description - schemas.WorkstationPersistentDirectory.properties.sizeGb.format - schemas.WorkstationPersistentDirectory.properties.sizeGb.type - schemas.WorkstationPersistentDirectory.type
1 parent 7949ede commit 4998f2c

2 files changed

Lines changed: 82 additions & 1 deletion

File tree

discovery/workstations-v1beta.json

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1175,7 +1175,7 @@
11751175
}
11761176
}
11771177
},
1178-
"revision": "20260413",
1178+
"revision": "20260506",
11791179
"rootUrl": "https://workstations.googleapis.com/",
11801180
"schemas": {
11811181
"Accelerator": {
@@ -2355,6 +2355,13 @@
23552355
"description": "Identifier. Full name of this workstation.",
23562356
"type": "string"
23572357
},
2358+
"persistentDirectories": {
2359+
"description": "Optional. Directories to persist across workstation sessions.",
2360+
"items": {
2361+
"$ref": "WorkstationPersistentDirectory"
2362+
},
2363+
"type": "array"
2364+
},
23582365
"reconciling": {
23592366
"description": "Output only. Indicates whether this workstation is currently being updated to match its intended state.",
23602367
"readOnly": true,
@@ -2724,6 +2731,43 @@
27242731
}
27252732
},
27262733
"type": "object"
2734+
},
2735+
"WorkstationGceRegionalPersistentDisk": {
2736+
"description": "A Persistent Directory backed by a Compute Engine regional persistent disk within the workstation.",
2737+
"id": "WorkstationGceRegionalPersistentDisk",
2738+
"properties": {
2739+
"name": {
2740+
"description": "The name of the persistent directory.",
2741+
"type": "string"
2742+
},
2743+
"sizeGb": {
2744+
"description": "Required. The desired size of the persistent directory in GB.",
2745+
"format": "int32",
2746+
"type": "integer"
2747+
}
2748+
},
2749+
"type": "object"
2750+
},
2751+
"WorkstationPersistentDirectory": {
2752+
"description": "A directory to persist across workstation sessions. Updates to this field will only take effect on this workstation after it is restarted.",
2753+
"id": "WorkstationPersistentDirectory",
2754+
"properties": {
2755+
"gcePd": {
2756+
"$ref": "WorkstationGceRegionalPersistentDisk",
2757+
"deprecated": true,
2758+
"description": "A PersistentDirectory backed by a Compute Engine persistent disk."
2759+
},
2760+
"mountPath": {
2761+
"description": "Optional. The mount path of the persistent directory.",
2762+
"type": "string"
2763+
},
2764+
"sizeGb": {
2765+
"description": "Optional. Size of the persistent directory in GB. If specified in an update request, this is the desired size of the directory.",
2766+
"format": "int32",
2767+
"type": "integer"
2768+
}
2769+
},
2770+
"type": "object"
27272771
}
27282772
},
27292773
"servicePath": "",

src/apis/workstations/v1beta.ts

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -993,6 +993,10 @@ export namespace workstations_v1beta {
993993
* Identifier. Full name of this workstation.
994994
*/
995995
name?: string | null;
996+
/**
997+
* Optional. Directories to persist across workstation sessions.
998+
*/
999+
persistentDirectories?: Schema$WorkstationPersistentDirectory[];
9961000
/**
9971001
* Output only. Indicates whether this workstation is currently being updated to match its intended state.
9981002
*/
@@ -1265,6 +1269,36 @@ export namespace workstations_v1beta {
12651269
*/
12661270
updateTime?: string | null;
12671271
}
1272+
/**
1273+
* A Persistent Directory backed by a Compute Engine regional persistent disk within the workstation.
1274+
*/
1275+
export interface Schema$WorkstationGceRegionalPersistentDisk {
1276+
/**
1277+
* The name of the persistent directory.
1278+
*/
1279+
name?: string | null;
1280+
/**
1281+
* Required. The desired size of the persistent directory in GB.
1282+
*/
1283+
sizeGb?: number | null;
1284+
}
1285+
/**
1286+
* A directory to persist across workstation sessions. Updates to this field will only take effect on this workstation after it is restarted.
1287+
*/
1288+
export interface Schema$WorkstationPersistentDirectory {
1289+
/**
1290+
* A PersistentDirectory backed by a Compute Engine persistent disk.
1291+
*/
1292+
gcePd?: Schema$WorkstationGceRegionalPersistentDisk;
1293+
/**
1294+
* Optional. The mount path of the persistent directory.
1295+
*/
1296+
mountPath?: string | null;
1297+
/**
1298+
* Optional. Size of the persistent directory in GB. If specified in an update request, this is the desired size of the directory.
1299+
*/
1300+
sizeGb?: number | null;
1301+
}
12681302

12691303
export class Resource$Projects {
12701304
context: APIRequestContext;
@@ -4466,6 +4500,7 @@ export namespace workstations_v1beta {
44664500
* // "kmsKey": "my_kmsKey",
44674501
* // "labels": {},
44684502
* // "name": "my_name",
4503+
* // "persistentDirectories": [],
44694504
* // "reconciling": false,
44704505
* // "runtimeHost": {},
44714506
* // "satisfiesPzi": false,
@@ -4943,6 +4978,7 @@ export namespace workstations_v1beta {
49434978
* // "kmsKey": "my_kmsKey",
49444979
* // "labels": {},
49454980
* // "name": "my_name",
4981+
* // "persistentDirectories": [],
49464982
* // "reconciling": false,
49474983
* // "runtimeHost": {},
49484984
* // "satisfiesPzi": false,
@@ -5559,6 +5595,7 @@ export namespace workstations_v1beta {
55595595
* // "kmsKey": "my_kmsKey",
55605596
* // "labels": {},
55615597
* // "name": "my_name",
5598+
* // "persistentDirectories": [],
55625599
* // "reconciling": false,
55635600
* // "runtimeHost": {},
55645601
* // "satisfiesPzi": false,

0 commit comments

Comments
 (0)