Skip to content

Commit a6f8a70

Browse files
feat(workstations): update the API
#### workstations:v1beta The following keys were added: - schemas.WorkstationCluster.properties.tags.additionalProperties.type - schemas.WorkstationCluster.properties.tags.description - schemas.WorkstationCluster.properties.tags.type #### workstations:v1 The following keys were added: - schemas.BoostConfig.description - schemas.BoostConfig.id - schemas.BoostConfig.properties.accelerators.description - schemas.BoostConfig.properties.accelerators.items.$ref - schemas.BoostConfig.properties.accelerators.type - schemas.BoostConfig.properties.bootDiskSizeGb.description - schemas.BoostConfig.properties.bootDiskSizeGb.format - schemas.BoostConfig.properties.bootDiskSizeGb.type - schemas.BoostConfig.properties.enableNestedVirtualization.description - schemas.BoostConfig.properties.enableNestedVirtualization.type - schemas.BoostConfig.properties.id.description - schemas.BoostConfig.properties.id.type - schemas.BoostConfig.properties.machineType.description - schemas.BoostConfig.properties.machineType.type - schemas.BoostConfig.properties.poolSize.description - schemas.BoostConfig.properties.poolSize.format - schemas.BoostConfig.properties.poolSize.type - schemas.BoostConfig.type - schemas.GceInstance.properties.boostConfigs.description - schemas.GceInstance.properties.boostConfigs.items.$ref - schemas.GceInstance.properties.boostConfigs.type - schemas.WorkstationCluster.properties.tags.additionalProperties.type - schemas.WorkstationCluster.properties.tags.description - schemas.WorkstationCluster.properties.tags.type
1 parent 6f6a576 commit a6f8a70

File tree

4 files changed

+100
-2
lines changed

4 files changed

+100
-2
lines changed

discovery/workstations-v1.json

Lines changed: 51 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1195,7 +1195,7 @@
11951195
}
11961196
}
11971197
},
1198-
"revision": "20240904",
1198+
"revision": "20241009",
11991199
"rootUrl": "https://workstations.googleapis.com/",
12001200
"schemas": {
12011201
"Accelerator": {
@@ -1284,6 +1284,42 @@
12841284
},
12851285
"type": "object"
12861286
},
1287+
"BoostConfig": {
1288+
"description": "A configuration that workstations can boost to.",
1289+
"id": "BoostConfig",
1290+
"properties": {
1291+
"accelerators": {
1292+
"description": "Optional. A list of the type and count of accelerator cards attached to the boost instance. Defaults to `none`.",
1293+
"items": {
1294+
"$ref": "Accelerator"
1295+
},
1296+
"type": "array"
1297+
},
1298+
"bootDiskSizeGb": {
1299+
"description": "Optional. The size of the boot disk for the VM in gigabytes (GB). The minimum boot disk size is `30` GB. Defaults to `50` GB.",
1300+
"format": "int32",
1301+
"type": "integer"
1302+
},
1303+
"enableNestedVirtualization": {
1304+
"description": "Optional. Whether to enable nested virtualization on boosted Cloud Workstations VMs running using this boost configuration. Defaults to false. Nested virtualization lets you run virtual machine (VM) instances inside your workstation. Before enabling nested virtualization, consider the following important considerations. Cloud Workstations instances are subject to the [same restrictions as Compute Engine instances](https://cloud.google.com/compute/docs/instances/nested-virtualization/overview#restrictions): * **Organization policy**: projects, folders, or organizations may be restricted from creating nested VMs if the **Disable VM nested virtualization** constraint is enforced in the organization policy. For more information, see the Compute Engine section, [Checking whether nested virtualization is allowed](https://cloud.google.com/compute/docs/instances/nested-virtualization/managing-constraint#checking_whether_nested_virtualization_is_allowed). * **Performance**: nested VMs might experience a 10% or greater decrease in performance for workloads that are CPU-bound and possibly greater than a 10% decrease for workloads that are input/output bound. * **Machine Type**: nested virtualization can only be enabled on boost configurations that specify a machine_type in the N1 or N2 machine series.",
1305+
"type": "boolean"
1306+
},
1307+
"id": {
1308+
"description": "Optional. Required. The id to be used for the boost configuration.",
1309+
"type": "string"
1310+
},
1311+
"machineType": {
1312+
"description": "Optional. The type of machine that boosted VM instances will use—for example, `e2-standard-4`. For more information about machine types that Cloud Workstations supports, see the list of [available machine types](https://cloud.google.com/workstations/docs/available-machine-types). Defaults to `e2-standard-4`.",
1313+
"type": "string"
1314+
},
1315+
"poolSize": {
1316+
"description": "Optional. The number of boost VMs that the system should keep idle so that workstations can be boosted quickly. Defaults to `0`.",
1317+
"format": "int32",
1318+
"type": "integer"
1319+
}
1320+
},
1321+
"type": "object"
1322+
},
12871323
"CancelOperationRequest": {
12881324
"description": "The request message for Operations.CancelOperation.",
12891325
"id": "CancelOperationRequest",
@@ -1417,6 +1453,13 @@
14171453
},
14181454
"type": "array"
14191455
},
1456+
"boostConfigs": {
1457+
"description": "Optional. A list of the boost configurations that workstations created using this workstation configuration are allowed to use.",
1458+
"items": {
1459+
"$ref": "BoostConfig"
1460+
},
1461+
"type": "array"
1462+
},
14201463
"bootDiskSizeGb": {
14211464
"description": "Optional. The size of the boot disk for the VM in gigabytes (GB). The minimum boot disk size is `30` GB. Defaults to `50` GB.",
14221465
"format": "int32",
@@ -2286,6 +2329,13 @@
22862329
"description": "Immutable. Name of the Compute Engine subnetwork in which instances associated with this workstation cluster will be created. Must be part of the subnetwork specified for this workstation cluster.",
22872330
"type": "string"
22882331
},
2332+
"tags": {
2333+
"additionalProperties": {
2334+
"type": "string"
2335+
},
2336+
"description": "Optional. Tag keys/values directly bound to this resource. For example: \"123/environment\": \"production\", \"123/costCenter\": \"marketing\"",
2337+
"type": "object"
2338+
},
22892339
"uid": {
22902340
"description": "Output only. A system-assigned unique identifier for this workstation cluster.",
22912341
"readOnly": true,

discovery/workstations-v1beta.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1127,7 +1127,7 @@
11271127
}
11281128
}
11291129
},
1130-
"revision": "20240904",
1130+
"revision": "20241009",
11311131
"rootUrl": "https://workstations.googleapis.com/",
11321132
"schemas": {
11331133
"Accelerator": {
@@ -2268,6 +2268,13 @@
22682268
"description": "Immutable. Name of the Compute Engine subnetwork in which instances associated with this workstation cluster will be created. Must be part of the subnetwork specified for this workstation cluster.",
22692269
"type": "string"
22702270
},
2271+
"tags": {
2272+
"additionalProperties": {
2273+
"type": "string"
2274+
},
2275+
"description": "Optional. Tag keys/values directly bound to this resource. For example: \"123/environment\": \"production\", \"123/costCenter\": \"marketing\"",
2276+
"type": "object"
2277+
},
22712278
"uid": {
22722279
"description": "Output only. A system-assigned unique identifier for this workstation cluster.",
22732280
"readOnly": true,

src/apis/workstations/v1.ts

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,35 @@ export namespace workstations_v1 {
180180
*/
181181
role?: string | null;
182182
}
183+
/**
184+
* A configuration that workstations can boost to.
185+
*/
186+
export interface Schema$BoostConfig {
187+
/**
188+
* Optional. A list of the type and count of accelerator cards attached to the boost instance. Defaults to `none`.
189+
*/
190+
accelerators?: Schema$Accelerator[];
191+
/**
192+
* Optional. The size of the boot disk for the VM in gigabytes (GB). The minimum boot disk size is `30` GB. Defaults to `50` GB.
193+
*/
194+
bootDiskSizeGb?: number | null;
195+
/**
196+
* Optional. Whether to enable nested virtualization on boosted Cloud Workstations VMs running using this boost configuration. Defaults to false. Nested virtualization lets you run virtual machine (VM) instances inside your workstation. Before enabling nested virtualization, consider the following important considerations. Cloud Workstations instances are subject to the [same restrictions as Compute Engine instances](https://cloud.google.com/compute/docs/instances/nested-virtualization/overview#restrictions): * **Organization policy**: projects, folders, or organizations may be restricted from creating nested VMs if the **Disable VM nested virtualization** constraint is enforced in the organization policy. For more information, see the Compute Engine section, [Checking whether nested virtualization is allowed](https://cloud.google.com/compute/docs/instances/nested-virtualization/managing-constraint#checking_whether_nested_virtualization_is_allowed). * **Performance**: nested VMs might experience a 10% or greater decrease in performance for workloads that are CPU-bound and possibly greater than a 10% decrease for workloads that are input/output bound. * **Machine Type**: nested virtualization can only be enabled on boost configurations that specify a machine_type in the N1 or N2 machine series.
197+
*/
198+
enableNestedVirtualization?: boolean | null;
199+
/**
200+
* Optional. Required. The id to be used for the boost configuration.
201+
*/
202+
id?: string | null;
203+
/**
204+
* Optional. The type of machine that boosted VM instances will use—for example, `e2-standard-4`. For more information about machine types that Cloud Workstations supports, see the list of [available machine types](https://cloud.google.com/workstations/docs/available-machine-types). Defaults to `e2-standard-4`.
205+
*/
206+
machineType?: string | null;
207+
/**
208+
* Optional. The number of boost VMs that the system should keep idle so that workstations can be boosted quickly. Defaults to `0`.
209+
*/
210+
poolSize?: number | null;
211+
}
183212
/**
184213
* The request message for Operations.CancelOperation.
185214
*/
@@ -286,6 +315,10 @@ export namespace workstations_v1 {
286315
* Optional. A list of the type and count of accelerator cards attached to the instance.
287316
*/
288317
accelerators?: Schema$Accelerator[];
318+
/**
319+
* Optional. A list of the boost configurations that workstations created using this workstation configuration are allowed to use.
320+
*/
321+
boostConfigs?: Schema$BoostConfig[];
289322
/**
290323
* Optional. The size of the boot disk for the VM in gigabytes (GB). The minimum boot disk size is `30` GB. Defaults to `50` GB.
291324
*/
@@ -923,6 +956,10 @@ export namespace workstations_v1 {
923956
* Immutable. Name of the Compute Engine subnetwork in which instances associated with this workstation cluster will be created. Must be part of the subnetwork specified for this workstation cluster.
924957
*/
925958
subnetwork?: string | null;
959+
/**
960+
* Optional. Tag keys/values directly bound to this resource. For example: "123/environment": "production", "123/costCenter": "marketing"
961+
*/
962+
tags?: {[key: string]: string} | null;
926963
/**
927964
* Output only. A system-assigned unique identifier for this workstation cluster.
928965
*/

src/apis/workstations/v1beta.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -964,6 +964,10 @@ export namespace workstations_v1beta {
964964
* Immutable. Name of the Compute Engine subnetwork in which instances associated with this workstation cluster will be created. Must be part of the subnetwork specified for this workstation cluster.
965965
*/
966966
subnetwork?: string | null;
967+
/**
968+
* Optional. Tag keys/values directly bound to this resource. For example: "123/environment": "production", "123/costCenter": "marketing"
969+
*/
970+
tags?: {[key: string]: string} | null;
967971
/**
968972
* Output only. A system-assigned unique identifier for this workstation cluster.
969973
*/

0 commit comments

Comments
 (0)