Skip to content

Commit 4b60597

Browse files
yoshi-automationsofisl
authored andcommitted
feat(workstations): update the API
#### workstations:v1beta The following keys were added: - schemas.WorkstationConfig.properties.grantWorkstationAdminRoleOnCreate.description - schemas.WorkstationConfig.properties.grantWorkstationAdminRoleOnCreate.type #### workstations:v1 The following keys were added: - schemas.WorkstationConfig.properties.grantWorkstationAdminRoleOnCreate.description - schemas.WorkstationConfig.properties.grantWorkstationAdminRoleOnCreate.type - schemas.WorkstationConfig.properties.maxUsableWorkstations.description - schemas.WorkstationConfig.properties.maxUsableWorkstations.format - schemas.WorkstationConfig.properties.maxUsableWorkstations.type
1 parent 467b748 commit 4b60597

File tree

4 files changed

+27
-2
lines changed

4 files changed

+27
-2
lines changed

discovery/workstations-v1.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1195,7 +1195,7 @@
11951195
}
11961196
}
11971197
},
1198-
"revision": "20240723",
1198+
"revision": "20240820",
11991199
"rootUrl": "https://workstations.googleapis.com/",
12001200
"schemas": {
12011201
"Accelerator": {
@@ -2374,6 +2374,10 @@
23742374
"description": "Optional. Checksum computed by the server. May be sent on update and delete requests to make sure that the client has an up-to-date value before proceeding.",
23752375
"type": "string"
23762376
},
2377+
"grantWorkstationAdminRoleOnCreate": {
2378+
"description": "Optional. Grant creator of a workstation `roles/workstations.policyAdmin` role along with `roles/workstations.user` role on the workstation created by them. This allows workstation users to share access to either their entire workstation, or individual ports. Defaults to false.",
2379+
"type": "boolean"
2380+
},
23772381
"host": {
23782382
"$ref": "Host",
23792383
"description": "Optional. Runtime host for the workstation."
@@ -2390,6 +2394,11 @@
23902394
"description": "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.",
23912395
"type": "object"
23922396
},
2397+
"maxUsableWorkstations": {
2398+
"description": "Optional. Maximum number of workstations under this config a user can have `workstations.workstation.use` permission on. Only enforced on CreateWorkstation API calls on the user issuing the API request. Can be overridden by: - granting a user workstations.workstationConfigs.exemptMaxUsableWorkstationLimit permission, or - having a user with that permission create a workstation and granting another user `workstations.workstation.use` permission on that workstation. If not specified defaults to 0 which indicates unlimited.",
2399+
"format": "int32",
2400+
"type": "integer"
2401+
},
23932402
"name": {
23942403
"description": "Identifier. Full name of this workstation configuration.",
23952404
"type": "string"

discovery/workstations-v1beta.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1127,7 +1127,7 @@
11271127
}
11281128
}
11291129
},
1130-
"revision": "20240803",
1130+
"revision": "20240820",
11311131
"rootUrl": "https://workstations.googleapis.com/",
11321132
"schemas": {
11331133
"Accelerator": {
@@ -2356,6 +2356,10 @@
23562356
"description": "Optional. Checksum computed by the server. May be sent on update and delete requests to make sure that the client has an up-to-date value before proceeding.",
23572357
"type": "string"
23582358
},
2359+
"grantWorkstationAdminRoleOnCreate": {
2360+
"description": "Optional. Grant creator of a workstation `roles/workstations.policyAdmin` role along with `roles/workstations.user` role on the workstation created by them. This allows workstation users to share access to either their entire workstation, or individual ports. Defaults to false.",
2361+
"type": "boolean"
2362+
},
23592363
"host": {
23602364
"$ref": "Host",
23612365
"description": "Optional. Runtime host for the workstation."

src/apis/workstations/v1.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -988,6 +988,10 @@ export namespace workstations_v1 {
988988
* Optional. Checksum computed by the server. May be sent on update and delete requests to make sure that the client has an up-to-date value before proceeding.
989989
*/
990990
etag?: string | null;
991+
/**
992+
* Optional. Grant creator of a workstation `roles/workstations.policyAdmin` role along with `roles/workstations.user` role on the workstation created by them. This allows workstation users to share access to either their entire workstation, or individual ports. Defaults to false.
993+
*/
994+
grantWorkstationAdminRoleOnCreate?: boolean | null;
991995
/**
992996
* Optional. Runtime host for the workstation.
993997
*/
@@ -1000,6 +1004,10 @@ export namespace workstations_v1 {
10001004
* 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.
10011005
*/
10021006
labels?: {[key: string]: string} | null;
1007+
/**
1008+
* Optional. Maximum number of workstations under this config a user can have `workstations.workstation.use` permission on. Only enforced on CreateWorkstation API calls on the user issuing the API request. Can be overridden by: - granting a user workstations.workstationConfigs.exemptMaxUsableWorkstationLimit permission, or - having a user with that permission create a workstation and granting another user `workstations.workstation.use` permission on that workstation. If not specified defaults to 0 which indicates unlimited.
1009+
*/
1010+
maxUsableWorkstations?: number | null;
10031011
/**
10041012
* Identifier. Full name of this workstation configuration.
10051013
*/

src/apis/workstations/v1beta.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,6 +1029,10 @@ export namespace workstations_v1beta {
10291029
* Optional. Checksum computed by the server. May be sent on update and delete requests to make sure that the client has an up-to-date value before proceeding.
10301030
*/
10311031
etag?: string | null;
1032+
/**
1033+
* Optional. Grant creator of a workstation `roles/workstations.policyAdmin` role along with `roles/workstations.user` role on the workstation created by them. This allows workstation users to share access to either their entire workstation, or individual ports. Defaults to false.
1034+
*/
1035+
grantWorkstationAdminRoleOnCreate?: boolean | null;
10321036
/**
10331037
* Optional. Runtime host for the workstation.
10341038
*/

0 commit comments

Comments
 (0)