Skip to content

Commit

Permalink
feat(workstations): update the API
Browse files Browse the repository at this point in the history
#### 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
  • Loading branch information
yoshi-automation authored and sofisl committed Aug 27, 2024
1 parent 467b748 commit 4b60597
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 2 deletions.
11 changes: 10 additions & 1 deletion discovery/workstations-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -1195,7 +1195,7 @@
}
}
},
"revision": "20240723",
"revision": "20240820",
"rootUrl": "https://workstations.googleapis.com/",
"schemas": {
"Accelerator": {
Expand Down Expand Up @@ -2374,6 +2374,10 @@
"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.",
"type": "string"
},
"grantWorkstationAdminRoleOnCreate": {
"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.",
"type": "boolean"
},
"host": {
"$ref": "Host",
"description": "Optional. Runtime host for the workstation."
Expand All @@ -2390,6 +2394,11 @@
"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.",
"type": "object"
},
"maxUsableWorkstations": {
"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.",
"format": "int32",
"type": "integer"
},
"name": {
"description": "Identifier. Full name of this workstation configuration.",
"type": "string"
Expand Down
6 changes: 5 additions & 1 deletion discovery/workstations-v1beta.json
Original file line number Diff line number Diff line change
Expand Up @@ -1127,7 +1127,7 @@
}
}
},
"revision": "20240803",
"revision": "20240820",
"rootUrl": "https://workstations.googleapis.com/",
"schemas": {
"Accelerator": {
Expand Down Expand Up @@ -2356,6 +2356,10 @@
"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.",
"type": "string"
},
"grantWorkstationAdminRoleOnCreate": {
"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.",
"type": "boolean"
},
"host": {
"$ref": "Host",
"description": "Optional. Runtime host for the workstation."
Expand Down
8 changes: 8 additions & 0 deletions src/apis/workstations/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -988,6 +988,10 @@ export namespace workstations_v1 {
* 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.
*/
etag?: string | null;
/**
* 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.
*/
grantWorkstationAdminRoleOnCreate?: boolean | null;
/**
* Optional. Runtime host for the workstation.
*/
Expand All @@ -1000,6 +1004,10 @@ export namespace workstations_v1 {
* 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.
*/
labels?: {[key: string]: string} | null;
/**
* 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.
*/
maxUsableWorkstations?: number | null;
/**
* Identifier. Full name of this workstation configuration.
*/
Expand Down
4 changes: 4 additions & 0 deletions src/apis/workstations/v1beta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1029,6 +1029,10 @@ export namespace workstations_v1beta {
* 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.
*/
etag?: string | null;
/**
* 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.
*/
grantWorkstationAdminRoleOnCreate?: boolean | null;
/**
* Optional. Runtime host for the workstation.
*/
Expand Down

0 comments on commit 4b60597

Please sign in to comment.