Skip to content

Commit 8e17ec6

Browse files
feat(workstations): update the API
#### workstations:v1beta The following keys were added: - schemas.Workstation.properties.conditions.description - schemas.Workstation.properties.conditions.items.$ref - schemas.Workstation.properties.conditions.readOnly - schemas.Workstation.properties.conditions.type - schemas.Workstation.properties.degraded.description - schemas.Workstation.properties.degraded.readOnly - schemas.Workstation.properties.degraded.type The following keys were changed: - schemas.GcePersistentDisk.properties.sourceImage.description - schemas.GcePersistentDisk.properties.sourceSnapshot.description - schemas.PrivateClusterConfig.properties.serviceAttachmentUri.description #### workstations:v1 The following keys were changed: - schemas.GcePersistentDisk.properties.sourceImage.description - schemas.GcePersistentDisk.properties.sourceSnapshot.description - schemas.PrivateClusterConfig.properties.serviceAttachmentUri.description
1 parent b2468bb commit 8e17ec6

File tree

4 files changed

+35
-14
lines changed

4 files changed

+35
-14
lines changed

discovery/workstations-v1.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1195,7 +1195,7 @@
11951195
}
11961196
}
11971197
},
1198-
"revision": "20250101",
1198+
"revision": "20250219",
11991199
"rootUrl": "https://workstations.googleapis.com/",
12001200
"schemas": {
12011201
"Accelerator": {
@@ -1563,11 +1563,11 @@
15631563
"type": "boolean"
15641564
},
15651565
"sourceImage": {
1566-
"description": "Optional. Name of the disk image to use as the source for the disk. Must be empty if source_snapshot is set. Updating source_image will update content in the ephemeral directory after the workstation is restarted. This field is mutable.",
1566+
"description": "Optional. Name of the disk image to use as the source for the disk. Must be empty if source_snapshot is set. Updating source_image will update content in the ephemeral directory after the workstation is restarted. Only file systems supported by Container-Optimized OS (COS) are explicitly supported. For a list of supported file systems, please refer to the [COS documentation](https://cloud.google.com/container-optimized-os/docs/concepts/supported-filesystems). This field is mutable.",
15671567
"type": "string"
15681568
},
15691569
"sourceSnapshot": {
1570-
"description": "Optional. Name of the snapshot to use as the source for the disk. Must be empty if source_image is set. Must be empty if read_only is false. Updating source_snapshot will update content in the ephemeral directory after the workstation is restarted. This field is mutable.",
1570+
"description": "Optional. Name of the snapshot to use as the source for the disk. Must be empty if source_image is set. Must be empty if read_only is false. Updating source_snapshot will update content in the ephemeral directory after the workstation is restarted. Only file systems supported by Container-Optimized OS (COS) are explicitly supported. For a list of supported file systems, please refer to the [COS documentation](https://cloud.google.com/container-optimized-os/docs/concepts/supported-filesystems). This field is mutable.",
15711571
"type": "string"
15721572
}
15731573
},
@@ -2043,7 +2043,7 @@
20432043
"type": "boolean"
20442044
},
20452045
"serviceAttachmentUri": {
2046-
"description": "Output only. Service attachment URI for the workstation cluster. The service attachemnt is created when private endpoint is enabled. To access workstations in the workstation cluster, configure access to the managed service using [Private Service Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).",
2046+
"description": "Output only. Service attachment URI for the workstation cluster. The service attachment is created when private endpoint is enabled. To access workstations in the workstation cluster, configure access to the managed service using [Private Service Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).",
20472047
"readOnly": true,
20482048
"type": "string"
20492049
}

discovery/workstations-v1beta.json

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1127,7 +1127,7 @@
11271127
}
11281128
}
11291129
},
1130-
"revision": "20250101",
1130+
"revision": "20250219",
11311131
"rootUrl": "https://workstations.googleapis.com/",
11321132
"schemas": {
11331133
"Accelerator": {
@@ -1495,11 +1495,11 @@
14951495
"type": "boolean"
14961496
},
14971497
"sourceImage": {
1498-
"description": "Optional. Name of the disk image to use as the source for the disk. Must be empty if source_snapshot is set. Updating source_image will update content in the ephemeral directory after the workstation is restarted. This field is mutable.",
1498+
"description": "Optional. Name of the disk image to use as the source for the disk. Must be empty if source_snapshot is set. Updating source_image will update content in the ephemeral directory after the workstation is restarted. Only file systems supported by Container-Optimized OS (COS) are explicitly supported. For a list of supported file systems, please refer to the [COS documentation](https://cloud.google.com/container-optimized-os/docs/concepts/supported-filesystems). This field is mutable.",
14991499
"type": "string"
15001500
},
15011501
"sourceSnapshot": {
1502-
"description": "Optional. Name of the snapshot to use as the source for the disk. Must be empty if source_image is set. Must be empty if read_only is false. Updating source_snapshot will update content in the ephemeral directory after the workstation is restarted. This field is mutable.",
1502+
"description": "Optional. Name of the snapshot to use as the source for the disk. Must be empty if source_image is set. Must be empty if read_only is false. Updating source_snapshot will update content in the ephemeral directory after the workstation is restarted. Only file systems supported by Container-Optimized OS (COS) are explicitly supported. For a list of supported file systems, please refer to the [COS documentation](https://cloud.google.com/container-optimized-os/docs/concepts/supported-filesystems). This field is mutable.",
15031503
"type": "string"
15041504
}
15051505
},
@@ -1938,7 +1938,7 @@
19381938
"type": "boolean"
19391939
},
19401940
"serviceAttachmentUri": {
1941-
"description": "Output only. Service attachment URI for the workstation cluster. The service attachemnt is created when private endpoint is enabled. To access workstations in the workstation cluster, configure access to the managed service using [Private Service Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).",
1941+
"description": "Output only. Service attachment URI for the workstation cluster. The service attachment is created when private endpoint is enabled. To access workstations in the workstation cluster, configure access to the managed service using [Private Service Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).",
19421942
"readOnly": true,
19431943
"type": "string"
19441944
}
@@ -2096,12 +2096,25 @@
20962096
"readOnly": true,
20972097
"type": "array"
20982098
},
2099+
"conditions": {
2100+
"description": "Output only. Status conditions describing the workstation's current state.",
2101+
"items": {
2102+
"$ref": "Status"
2103+
},
2104+
"readOnly": true,
2105+
"type": "array"
2106+
},
20992107
"createTime": {
21002108
"description": "Output only. Time when this workstation was created.",
21012109
"format": "google-datetime",
21022110
"readOnly": true,
21032111
"type": "string"
21042112
},
2113+
"degraded": {
2114+
"description": "Output only. Whether this workstation is in degraded mode, in which case it may require user action to restore full functionality. Details can be found in conditions.",
2115+
"readOnly": true,
2116+
"type": "boolean"
2117+
},
21052118
"deleteTime": {
21062119
"description": "Output only. Time when this workstation was soft-deleted.",
21072120
"format": "google-datetime",

src/apis/workstations/v1.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -402,11 +402,11 @@ export namespace workstations_v1 {
402402
*/
403403
readOnly?: boolean | null;
404404
/**
405-
* Optional. Name of the disk image to use as the source for the disk. Must be empty if source_snapshot is set. Updating source_image will update content in the ephemeral directory after the workstation is restarted. This field is mutable.
405+
* Optional. Name of the disk image to use as the source for the disk. Must be empty if source_snapshot is set. Updating source_image will update content in the ephemeral directory after the workstation is restarted. Only file systems supported by Container-Optimized OS (COS) are explicitly supported. For a list of supported file systems, please refer to the [COS documentation](https://cloud.google.com/container-optimized-os/docs/concepts/supported-filesystems). This field is mutable.
406406
*/
407407
sourceImage?: string | null;
408408
/**
409-
* Optional. Name of the snapshot to use as the source for the disk. Must be empty if source_image is set. Must be empty if read_only is false. Updating source_snapshot will update content in the ephemeral directory after the workstation is restarted. This field is mutable.
409+
* Optional. Name of the snapshot to use as the source for the disk. Must be empty if source_image is set. Must be empty if read_only is false. Updating source_snapshot will update content in the ephemeral directory after the workstation is restarted. Only file systems supported by Container-Optimized OS (COS) are explicitly supported. For a list of supported file systems, please refer to the [COS documentation](https://cloud.google.com/container-optimized-os/docs/concepts/supported-filesystems). This field is mutable.
410410
*/
411411
sourceSnapshot?: string | null;
412412
}
@@ -753,7 +753,7 @@ export namespace workstations_v1 {
753753
*/
754754
enablePrivateEndpoint?: boolean | null;
755755
/**
756-
* Output only. Service attachment URI for the workstation cluster. The service attachemnt is created when private endpoint is enabled. To access workstations in the workstation cluster, configure access to the managed service using [Private Service Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).
756+
* Output only. Service attachment URI for the workstation cluster. The service attachment is created when private endpoint is enabled. To access workstations in the workstation cluster, configure access to the managed service using [Private Service Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).
757757
*/
758758
serviceAttachmentUri?: string | null;
759759
}

src/apis/workstations/v1beta.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -402,11 +402,11 @@ export namespace workstations_v1beta {
402402
*/
403403
readOnly?: boolean | null;
404404
/**
405-
* Optional. Name of the disk image to use as the source for the disk. Must be empty if source_snapshot is set. Updating source_image will update content in the ephemeral directory after the workstation is restarted. This field is mutable.
405+
* Optional. Name of the disk image to use as the source for the disk. Must be empty if source_snapshot is set. Updating source_image will update content in the ephemeral directory after the workstation is restarted. Only file systems supported by Container-Optimized OS (COS) are explicitly supported. For a list of supported file systems, please refer to the [COS documentation](https://cloud.google.com/container-optimized-os/docs/concepts/supported-filesystems). This field is mutable.
406406
*/
407407
sourceImage?: string | null;
408408
/**
409-
* Optional. Name of the snapshot to use as the source for the disk. Must be empty if source_image is set. Must be empty if read_only is false. Updating source_snapshot will update content in the ephemeral directory after the workstation is restarted. This field is mutable.
409+
* Optional. Name of the snapshot to use as the source for the disk. Must be empty if source_image is set. Must be empty if read_only is false. Updating source_snapshot will update content in the ephemeral directory after the workstation is restarted. Only file systems supported by Container-Optimized OS (COS) are explicitly supported. For a list of supported file systems, please refer to the [COS documentation](https://cloud.google.com/container-optimized-os/docs/concepts/supported-filesystems). This field is mutable.
410410
*/
411411
sourceSnapshot?: string | null;
412412
}
@@ -728,7 +728,7 @@ export namespace workstations_v1beta {
728728
*/
729729
enablePrivateEndpoint?: boolean | null;
730730
/**
731-
* Output only. Service attachment URI for the workstation cluster. The service attachemnt is created when private endpoint is enabled. To access workstations in the workstation cluster, configure access to the managed service using [Private Service Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).
731+
* Output only. Service attachment URI for the workstation cluster. The service attachment is created when private endpoint is enabled. To access workstations in the workstation cluster, configure access to the managed service using [Private Service Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).
732732
*/
733733
serviceAttachmentUri?: string | null;
734734
}
@@ -844,10 +844,18 @@ export namespace workstations_v1beta {
844844
* Output only. List of available boost configuration IDs that this workstation can be boosted up to.
845845
*/
846846
boostConfigs?: Schema$WorkstationBoostConfig[];
847+
/**
848+
* Output only. Status conditions describing the workstation's current state.
849+
*/
850+
conditions?: Schema$Status[];
847851
/**
848852
* Output only. Time when this workstation was created.
849853
*/
850854
createTime?: string | null;
855+
/**
856+
* Output only. Whether this workstation is in degraded mode, in which case it may require user action to restore full functionality. Details can be found in conditions.
857+
*/
858+
degraded?: boolean | null;
851859
/**
852860
* Output only. Time when this workstation was soft-deleted.
853861
*/

0 commit comments

Comments
 (0)