diff --git a/discovery/workstations-v1.json b/discovery/workstations-v1.json index aceacad5e4..f0a532d9f2 100644 --- a/discovery/workstations-v1.json +++ b/discovery/workstations-v1.json @@ -1195,7 +1195,7 @@ } } }, - "revision": "20240723", + "revision": "20240820", "rootUrl": "https://workstations.googleapis.com/", "schemas": { "Accelerator": { @@ -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." @@ -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" diff --git a/discovery/workstations-v1beta.json b/discovery/workstations-v1beta.json index 1cb7624964..04deeaf7bf 100644 --- a/discovery/workstations-v1beta.json +++ b/discovery/workstations-v1beta.json @@ -1127,7 +1127,7 @@ } } }, - "revision": "20240803", + "revision": "20240820", "rootUrl": "https://workstations.googleapis.com/", "schemas": { "Accelerator": { @@ -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." diff --git a/src/apis/workstations/v1.ts b/src/apis/workstations/v1.ts index da74558266..28bd9e1d02 100644 --- a/src/apis/workstations/v1.ts +++ b/src/apis/workstations/v1.ts @@ -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. */ @@ -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. */ diff --git a/src/apis/workstations/v1beta.ts b/src/apis/workstations/v1beta.ts index 7ea46d3e2a..378a8dd794 100644 --- a/src/apis/workstations/v1beta.ts +++ b/src/apis/workstations/v1beta.ts @@ -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. */