diff --git a/packages/google-cloud-workstations/README.md b/packages/google-cloud-workstations/README.md
index 9348b0a6173..9ca52e2d0d7 100644
--- a/packages/google-cloud-workstations/README.md
+++ b/packages/google-cloud-workstations/README.md
@@ -2,7 +2,7 @@
[//]: # "To regenerate it, use `python -m synthtool`."
-# [Cloud Workstations API: Node.js Client](https://github.com/googleapis/google-cloud-node)
+# [Cloud Workstations API: Node.js Client](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-workstations)
[![release level](https://img.shields.io/badge/release%20level-preview-yellow.svg?style=flat)](https://cloud.google.com/terms/launch-stages)
[![npm version](https://img.shields.io/npm/v/@google-cloud/workstations.svg)](https://www.npmjs.org/package/@google-cloud/workstations)
@@ -103,52 +103,51 @@ callListWorkstations();
## Samples
-Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/tree/main/samples) directory. Each sample's `README.md` has instructions for running its sample.
+Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-workstations/samples) directory. Each sample's `README.md` has instructions for running its sample.
| Sample | Source Code | Try it |
| --------------------------- | --------------------------------- | ------ |
-| Workstations.create_workstation | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1/workstations.create_workstation.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1/workstations.create_workstation.js,samples/README.md) |
-| Workstations.create_workstation_cluster | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1/workstations.create_workstation_cluster.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1/workstations.create_workstation_cluster.js,samples/README.md) |
-| Workstations.create_workstation_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1/workstations.create_workstation_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1/workstations.create_workstation_config.js,samples/README.md) |
-| Workstations.delete_workstation | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1/workstations.delete_workstation.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1/workstations.delete_workstation.js,samples/README.md) |
-| Workstations.delete_workstation_cluster | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1/workstations.delete_workstation_cluster.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1/workstations.delete_workstation_cluster.js,samples/README.md) |
-| Workstations.delete_workstation_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1/workstations.delete_workstation_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1/workstations.delete_workstation_config.js,samples/README.md) |
-| Workstations.generate_access_token | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1/workstations.generate_access_token.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1/workstations.generate_access_token.js,samples/README.md) |
-| Workstations.get_workstation | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1/workstations.get_workstation.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1/workstations.get_workstation.js,samples/README.md) |
-| Workstations.get_workstation_cluster | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1/workstations.get_workstation_cluster.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1/workstations.get_workstation_cluster.js,samples/README.md) |
-| Workstations.get_workstation_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1/workstations.get_workstation_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1/workstations.get_workstation_config.js,samples/README.md) |
-| Workstations.list_usable_workstation_configs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1/workstations.list_usable_workstation_configs.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1/workstations.list_usable_workstation_configs.js,samples/README.md) |
-| Workstations.list_usable_workstations | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1/workstations.list_usable_workstations.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1/workstations.list_usable_workstations.js,samples/README.md) |
-| Workstations.list_workstation_clusters | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1/workstations.list_workstation_clusters.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1/workstations.list_workstation_clusters.js,samples/README.md) |
-| Workstations.list_workstation_configs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1/workstations.list_workstation_configs.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1/workstations.list_workstation_configs.js,samples/README.md) |
-| Workstations.list_workstations | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1/workstations.list_workstations.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1/workstations.list_workstations.js,samples/README.md) |
-| Workstations.start_workstation | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1/workstations.start_workstation.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1/workstations.start_workstation.js,samples/README.md) |
-| Workstations.stop_workstation | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1/workstations.stop_workstation.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1/workstations.stop_workstation.js,samples/README.md) |
-| Workstations.update_workstation | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1/workstations.update_workstation.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1/workstations.update_workstation.js,samples/README.md) |
-| Workstations.update_workstation_cluster | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1/workstations.update_workstation_cluster.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1/workstations.update_workstation_cluster.js,samples/README.md) |
-| Workstations.update_workstation_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1/workstations.update_workstation_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1/workstations.update_workstation_config.js,samples/README.md) |
-| Workstations.create_workstation | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1beta/workstations.create_workstation.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1beta/workstations.create_workstation.js,samples/README.md) |
-| Workstations.create_workstation_cluster | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1beta/workstations.create_workstation_cluster.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1beta/workstations.create_workstation_cluster.js,samples/README.md) |
-| Workstations.create_workstation_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1beta/workstations.create_workstation_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1beta/workstations.create_workstation_config.js,samples/README.md) |
-| Workstations.delete_workstation | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1beta/workstations.delete_workstation.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1beta/workstations.delete_workstation.js,samples/README.md) |
-| Workstations.delete_workstation_cluster | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1beta/workstations.delete_workstation_cluster.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1beta/workstations.delete_workstation_cluster.js,samples/README.md) |
-| Workstations.delete_workstation_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1beta/workstations.delete_workstation_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1beta/workstations.delete_workstation_config.js,samples/README.md) |
-| Workstations.generate_access_token | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1beta/workstations.generate_access_token.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1beta/workstations.generate_access_token.js,samples/README.md) |
-| Workstations.get_workstation | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1beta/workstations.get_workstation.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1beta/workstations.get_workstation.js,samples/README.md) |
-| Workstations.get_workstation_cluster | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1beta/workstations.get_workstation_cluster.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1beta/workstations.get_workstation_cluster.js,samples/README.md) |
-| Workstations.get_workstation_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1beta/workstations.get_workstation_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1beta/workstations.get_workstation_config.js,samples/README.md) |
-| Workstations.list_usable_workstation_configs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1beta/workstations.list_usable_workstation_configs.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1beta/workstations.list_usable_workstation_configs.js,samples/README.md) |
-| Workstations.list_usable_workstations | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1beta/workstations.list_usable_workstations.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1beta/workstations.list_usable_workstations.js,samples/README.md) |
-| Workstations.list_workstation_clusters | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1beta/workstations.list_workstation_clusters.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1beta/workstations.list_workstation_clusters.js,samples/README.md) |
-| Workstations.list_workstation_configs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1beta/workstations.list_workstation_configs.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1beta/workstations.list_workstation_configs.js,samples/README.md) |
-| Workstations.list_workstations | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1beta/workstations.list_workstations.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1beta/workstations.list_workstations.js,samples/README.md) |
-| Workstations.start_workstation | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1beta/workstations.start_workstation.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1beta/workstations.start_workstation.js,samples/README.md) |
-| Workstations.stop_workstation | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1beta/workstations.stop_workstation.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1beta/workstations.stop_workstation.js,samples/README.md) |
-| Workstations.update_workstation | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1beta/workstations.update_workstation.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1beta/workstations.update_workstation.js,samples/README.md) |
-| Workstations.update_workstation_cluster | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1beta/workstations.update_workstation_cluster.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1beta/workstations.update_workstation_cluster.js,samples/README.md) |
-| Workstations.update_workstation_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1beta/workstations.update_workstation_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1beta/workstations.update_workstation_config.js,samples/README.md) |
-| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/quickstart.js,samples/README.md) |
-| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/test/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/test/quickstart.js,samples/README.md) |
+| Workstations.create_workstation | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1/workstations.create_workstation.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1/workstations.create_workstation.js,packages/google-cloud-workstations/samples/README.md) |
+| Workstations.create_workstation_cluster | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1/workstations.create_workstation_cluster.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1/workstations.create_workstation_cluster.js,packages/google-cloud-workstations/samples/README.md) |
+| Workstations.create_workstation_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1/workstations.create_workstation_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1/workstations.create_workstation_config.js,packages/google-cloud-workstations/samples/README.md) |
+| Workstations.delete_workstation | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1/workstations.delete_workstation.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1/workstations.delete_workstation.js,packages/google-cloud-workstations/samples/README.md) |
+| Workstations.delete_workstation_cluster | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1/workstations.delete_workstation_cluster.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1/workstations.delete_workstation_cluster.js,packages/google-cloud-workstations/samples/README.md) |
+| Workstations.delete_workstation_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1/workstations.delete_workstation_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1/workstations.delete_workstation_config.js,packages/google-cloud-workstations/samples/README.md) |
+| Workstations.generate_access_token | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1/workstations.generate_access_token.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1/workstations.generate_access_token.js,packages/google-cloud-workstations/samples/README.md) |
+| Workstations.get_workstation | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1/workstations.get_workstation.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1/workstations.get_workstation.js,packages/google-cloud-workstations/samples/README.md) |
+| Workstations.get_workstation_cluster | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1/workstations.get_workstation_cluster.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1/workstations.get_workstation_cluster.js,packages/google-cloud-workstations/samples/README.md) |
+| Workstations.get_workstation_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1/workstations.get_workstation_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1/workstations.get_workstation_config.js,packages/google-cloud-workstations/samples/README.md) |
+| Workstations.list_usable_workstation_configs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1/workstations.list_usable_workstation_configs.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1/workstations.list_usable_workstation_configs.js,packages/google-cloud-workstations/samples/README.md) |
+| Workstations.list_usable_workstations | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1/workstations.list_usable_workstations.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1/workstations.list_usable_workstations.js,packages/google-cloud-workstations/samples/README.md) |
+| Workstations.list_workstation_clusters | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1/workstations.list_workstation_clusters.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1/workstations.list_workstation_clusters.js,packages/google-cloud-workstations/samples/README.md) |
+| Workstations.list_workstation_configs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1/workstations.list_workstation_configs.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1/workstations.list_workstation_configs.js,packages/google-cloud-workstations/samples/README.md) |
+| Workstations.list_workstations | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1/workstations.list_workstations.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1/workstations.list_workstations.js,packages/google-cloud-workstations/samples/README.md) |
+| Workstations.start_workstation | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1/workstations.start_workstation.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1/workstations.start_workstation.js,packages/google-cloud-workstations/samples/README.md) |
+| Workstations.stop_workstation | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1/workstations.stop_workstation.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1/workstations.stop_workstation.js,packages/google-cloud-workstations/samples/README.md) |
+| Workstations.update_workstation | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1/workstations.update_workstation.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1/workstations.update_workstation.js,packages/google-cloud-workstations/samples/README.md) |
+| Workstations.update_workstation_cluster | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1/workstations.update_workstation_cluster.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1/workstations.update_workstation_cluster.js,packages/google-cloud-workstations/samples/README.md) |
+| Workstations.update_workstation_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1/workstations.update_workstation_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1/workstations.update_workstation_config.js,packages/google-cloud-workstations/samples/README.md) |
+| Workstations.create_workstation | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1beta/workstations.create_workstation.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1beta/workstations.create_workstation.js,packages/google-cloud-workstations/samples/README.md) |
+| Workstations.create_workstation_cluster | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1beta/workstations.create_workstation_cluster.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1beta/workstations.create_workstation_cluster.js,packages/google-cloud-workstations/samples/README.md) |
+| Workstations.create_workstation_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1beta/workstations.create_workstation_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1beta/workstations.create_workstation_config.js,packages/google-cloud-workstations/samples/README.md) |
+| Workstations.delete_workstation | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1beta/workstations.delete_workstation.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1beta/workstations.delete_workstation.js,packages/google-cloud-workstations/samples/README.md) |
+| Workstations.delete_workstation_cluster | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1beta/workstations.delete_workstation_cluster.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1beta/workstations.delete_workstation_cluster.js,packages/google-cloud-workstations/samples/README.md) |
+| Workstations.delete_workstation_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1beta/workstations.delete_workstation_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1beta/workstations.delete_workstation_config.js,packages/google-cloud-workstations/samples/README.md) |
+| Workstations.generate_access_token | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1beta/workstations.generate_access_token.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1beta/workstations.generate_access_token.js,packages/google-cloud-workstations/samples/README.md) |
+| Workstations.get_workstation | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1beta/workstations.get_workstation.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1beta/workstations.get_workstation.js,packages/google-cloud-workstations/samples/README.md) |
+| Workstations.get_workstation_cluster | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1beta/workstations.get_workstation_cluster.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1beta/workstations.get_workstation_cluster.js,packages/google-cloud-workstations/samples/README.md) |
+| Workstations.get_workstation_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1beta/workstations.get_workstation_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1beta/workstations.get_workstation_config.js,packages/google-cloud-workstations/samples/README.md) |
+| Workstations.list_usable_workstation_configs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1beta/workstations.list_usable_workstation_configs.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1beta/workstations.list_usable_workstation_configs.js,packages/google-cloud-workstations/samples/README.md) |
+| Workstations.list_usable_workstations | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1beta/workstations.list_usable_workstations.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1beta/workstations.list_usable_workstations.js,packages/google-cloud-workstations/samples/README.md) |
+| Workstations.list_workstation_clusters | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1beta/workstations.list_workstation_clusters.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1beta/workstations.list_workstation_clusters.js,packages/google-cloud-workstations/samples/README.md) |
+| Workstations.list_workstation_configs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1beta/workstations.list_workstation_configs.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1beta/workstations.list_workstation_configs.js,packages/google-cloud-workstations/samples/README.md) |
+| Workstations.list_workstations | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1beta/workstations.list_workstations.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1beta/workstations.list_workstations.js,packages/google-cloud-workstations/samples/README.md) |
+| Workstations.start_workstation | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1beta/workstations.start_workstation.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1beta/workstations.start_workstation.js,packages/google-cloud-workstations/samples/README.md) |
+| Workstations.stop_workstation | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1beta/workstations.stop_workstation.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1beta/workstations.stop_workstation.js,packages/google-cloud-workstations/samples/README.md) |
+| Workstations.update_workstation | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1beta/workstations.update_workstation.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1beta/workstations.update_workstation.js,packages/google-cloud-workstations/samples/README.md) |
+| Workstations.update_workstation_cluster | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1beta/workstations.update_workstation_cluster.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1beta/workstations.update_workstation_cluster.js,packages/google-cloud-workstations/samples/README.md) |
+| Workstations.update_workstation_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/generated/v1beta/workstations.update_workstation_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/generated/v1beta/workstations.update_workstation_config.js,packages/google-cloud-workstations/samples/README.md) |
+| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/quickstart.js,packages/google-cloud-workstations/samples/README.md) |
diff --git a/packages/google-cloud-workstations/protos/google/cloud/workstations/v1/workstations.proto b/packages/google-cloud-workstations/protos/google/cloud/workstations/v1/workstations.proto
index 7425dd67ea0..b6082157195 100644
--- a/packages/google-cloud-workstations/protos/google/cloud/workstations/v1/workstations.proto
+++ b/packages/google-cloud-workstations/protos/google/cloud/workstations/v1/workstations.proto
@@ -106,7 +106,7 @@ service Workstations {
option (google.api.method_signature) = "name";
}
- // Returns all WorkstationConfigs in the specified cluster.
+ // Returns all workstation configurations in the specified cluster.
rpc ListWorkstationConfigs(ListWorkstationConfigsRequest)
returns (ListWorkstationConfigsResponse) {
option (google.api.http) = {
@@ -175,7 +175,7 @@ service Workstations {
option (google.api.method_signature) = "name";
}
- // Returns all Workstations using the specified config.
+ // Returns all Workstations using the specified workstation configuration.
rpc ListWorkstations(ListWorkstationsRequest)
returns (ListWorkstationsResponse) {
option (google.api.http) = {
@@ -184,8 +184,8 @@ service Workstations {
option (google.api.method_signature) = "parent";
}
- // Returns all Workstations using the specified config on which the caller has
- // the "workstations.workstations.use" permission.
+ // Returns all workstations using the specified workstation configuration
+ // on which the caller has the "workstations.workstations.use" permission.
rpc ListUsableWorkstations(ListUsableWorkstationsRequest)
returns (ListUsableWorkstationsResponse) {
option (google.api.http) = {
@@ -343,7 +343,7 @@ message WorkstationCluster {
[(google.api.field_behavior) = OUTPUT_ONLY];
// Checksum computed by the server. May be sent on update and delete requests
- // to ensure that the client has an up-to-date value before proceeding.
+ // to make sure that the client has an up-to-date value before proceeding.
string etag = 9;
// Immutable. Name of the Compute Engine network in which instances associated
@@ -355,6 +355,12 @@ message WorkstationCluster {
// subnetwork specified for this cluster.
string subnetwork = 11 [(google.api.field_behavior) = IMMUTABLE];
+ // Output only. The private IP address of the control plane for this cluster.
+ // Workstation VMs need access to this IP address to work with the service, so
+ // make sure that your firewall rules allow egress from the workstation VMs to
+ // this address.
+ string control_plane_ip = 16 [(google.api.field_behavior) = OUTPUT_ONLY];
+
// Configuration for private cluster.
PrivateClusterConfig private_cluster_config = 12;
@@ -403,10 +409,10 @@ message WorkstationConfig {
// The name of a Compute Engine machine type.
string machine_type = 1;
- // Email address of the service account that will be used on VM instances
- // used to support this config. If not set, VMs will run with a
+ // Email address of the service account used on VM instances
+ // used to support this configuration. If not set, VMs run with a
// Google-managed service account. This service account must have
- // permission to pull the specified container image, otherwise the image
+ // permission to pull the specified container image; otherwise, the image
// must be publicly accessible.
string service_account = 2;
@@ -414,9 +420,13 @@ message WorkstationConfig {
// Workstations.
repeated string tags = 4;
- // Number of instances to pool for faster workstation starup.
+ // Number of instances to pool for faster workstation startup.
int32 pool_size = 5;
+ // Output only. Number of instances currently available in the pool for
+ // faster workstation startup.
+ int32 pooled_instances = 12 [(google.api.field_behavior) = OUTPUT_ONLY];
+
// Whether instances have no public IP address.
bool disable_public_ip_addresses = 6;
@@ -493,7 +503,7 @@ message WorkstationConfig {
// A Docker container.
message Container {
// Docker image defining the container. This image must be accessible by the
- // config's service account.
+ // service account specified in the workstation configuration.
string image = 1;
// If set, overrides the default ENTRYPOINT specified by the image.
@@ -502,7 +512,7 @@ message WorkstationConfig {
// Arguments passed to the entrypoint.
repeated string args = 3;
- // Environment variables passed to the container.
+ // Environment variables passed to the container's entrypoint.
map env = 4;
// If set, overrides the default DIR specified by the image.
@@ -515,18 +525,19 @@ message WorkstationConfig {
// A customer-managed encryption key for the Compute Engine resources
// of this workstation configuration.
message CustomerEncryptionKey {
- // The name of the Google Cloud KMS encryption key. For example,
+ // Immutable. The name of the Google Cloud KMS encryption key. For example,
// `projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME`.
- string kms_key = 1;
+ string kms_key = 1 [(google.api.field_behavior) = IMMUTABLE];
- // The service account to use with the specified
+ // Immutable. The service account to use with the specified
// KMS key. We recommend that you use a separate service account
// and follow KMS best practices. For more information, see
// [Separation of
// duties](https://cloud.google.com/kms/docs/separation-of-duties) and
// `gcloud kms keys add-iam-policy-binding`
// [`--member`](https://cloud.google.com/sdk/gcloud/reference/kms/keys/add-iam-policy-binding#--member).
- string kms_key_service_account = 2;
+ string kms_key_service_account = 2
+ [(google.api.field_behavior) = IMMUTABLE];
}
// Full name of this resource.
@@ -562,7 +573,7 @@ message WorkstationConfig {
[(google.api.field_behavior) = OUTPUT_ONLY];
// Checksum computed by the server. May be sent on update and delete requests
- // to ensure that the client has an up-to-date value before proceeding.
+ // to make sure that the client has an up-to-date value before proceeding.
string etag = 9;
// How long to wait before automatically stopping an instance that hasn't
@@ -586,7 +597,7 @@ message WorkstationConfig {
// when that workstation is started.
Container container = 14;
- // Encrypts resources of this workstation configuration using a
+ // Immutable. Encrypts resources of this workstation configuration using a
// customer-managed encryption key.
//
// If specified, the boot disk of the Compute Engine instance and the
@@ -602,7 +613,10 @@ message WorkstationConfig {
//
// If the encryption key is revoked, the workstation session will
// automatically be stopped within 7 hours.
- CustomerEncryptionKey encryption_key = 17;
+ //
+ // Immutable after the workstation configuration is created.
+ CustomerEncryptionKey encryption_key = 17
+ [(google.api.field_behavior) = IMMUTABLE];
// Output only. Whether this resource is degraded, in which case it may
// require user action to restore full functionality. See also the
@@ -675,7 +689,7 @@ message Workstation {
[(google.api.field_behavior) = OUTPUT_ONLY];
// Checksum computed by the server. May be sent on update and delete requests
- // to ensure that the client has an up-to-date value before proceeding.
+ // to make sure that the client has an up-to-date value before proceeding.
string etag = 9;
// Output only. Current state of the workstation.
@@ -786,7 +800,7 @@ message DeleteWorkstationClusterRequest {
bool validate_only = 2;
// If set, the request will be rejected if the latest version of the
- // workstation cluster on the server does not have this etag.
+ // workstation cluster on the server does not have this ETag.
string etag = 3;
// If set, any workstation configurations and workstations in the
@@ -876,7 +890,7 @@ message CreateWorkstationConfigRequest {
}
];
- // Required. ID to use for the config.
+ // Required. ID to use for the workstation configuration.
string workstation_config_id = 2 [(google.api.field_behavior) = REQUIRED];
// Required. Config to create.
@@ -894,7 +908,8 @@ message UpdateWorkstationConfigRequest {
WorkstationConfig workstation_config = 1
[(google.api.field_behavior) = REQUIRED];
- // Required. Mask specifying which fields in the config should be updated.
+ // Required. Mask specifying which fields in the workstation configuration
+ // should be updated.
google.protobuf.FieldMask update_mask = 2
[(google.api.field_behavior) = REQUIRED];
@@ -902,14 +917,15 @@ message UpdateWorkstationConfigRequest {
// apply it.
bool validate_only = 3;
- // If set, and the config is not found, a new config will be created.
- // In this situation, update_mask is ignored.
+ // If set and the workstation configuration is not found, a new
+ // workstation configuration will be created. In this situation,
+ // update_mask is ignored.
bool allow_missing = 4;
}
// Message for deleting a workstation configuration.
message DeleteWorkstationConfigRequest {
- // Required. Name of the config to delete.
+ // Required. Name of the workstation configuration to delete.
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
@@ -921,12 +937,13 @@ message DeleteWorkstationConfigRequest {
// apply it.
bool validate_only = 2;
- // If set, the request will be rejected if the latest version of the config on
- // the server does not have this etag.
+ // If set, the request is rejected if the latest version of the
+ // workstation configuration on the server does not have this ETag.
string etag = 3;
- // If set, any Workstations in the config will also be deleted. Otherwise,
- // the request will work only if the config has no workstations.
+ // If set, any workstations in the workstation configuration are also deleted.
+ // Otherwise, the request works only if the workstation configuration has
+ // no workstations.
bool force = 4;
}
@@ -1027,7 +1044,8 @@ message UpdateWorkstationRequest {
// Required. Workstation to update.
Workstation workstation = 1 [(google.api.field_behavior) = REQUIRED];
- // Required. Mask specifying which fields in the config should be updated.
+ // Required. Mask specifying which fields in the workstation configuration
+ // should be updated.
google.protobuf.FieldMask update_mask = 2
[(google.api.field_behavior) = REQUIRED];
@@ -1035,8 +1053,9 @@ message UpdateWorkstationRequest {
// apply it.
bool validate_only = 3;
- // If set, and the config is not found, a new config will be created.
- // In this situation, update_mask is ignored.
+ // If set and the workstation configuration is not found, a new
+ // workstation configuration is created. In this situation, update_mask
+ // is ignored.
bool allow_missing = 4;
}
@@ -1055,7 +1074,7 @@ message DeleteWorkstationRequest {
bool validate_only = 2;
// If set, the request will be rejected if the latest version of the
- // workstation on the server does not have this etag.
+ // workstation on the server does not have this ETag.
string etag = 3;
}
@@ -1074,7 +1093,7 @@ message StartWorkstationRequest {
bool validate_only = 2;
// If set, the request will be rejected if the latest version of the
- // workstation on the server does not have this etag.
+ // workstation on the server does not have this ETag.
string etag = 3;
}
@@ -1093,7 +1112,7 @@ message StopWorkstationRequest {
bool validate_only = 2;
// If set, the request will be rejected if the latest version of the
- // workstation on the server does not have this etag.
+ // workstation on the server does not have this ETag.
string etag = 3;
}
@@ -1127,7 +1146,7 @@ message GenerateAccessTokenRequest {
message GenerateAccessTokenResponse {
// The generated bearer access token. To use this token, include it in an
// Authorization header of an HTTP request sent to the associated
- // workstation's hostname, for example, `Authorization: Bearer
+ // workstation's hostname—for example, `Authorization: Bearer
// `.
string access_token = 1;
diff --git a/packages/google-cloud-workstations/protos/google/cloud/workstations/v1beta/workstations.proto b/packages/google-cloud-workstations/protos/google/cloud/workstations/v1beta/workstations.proto
index 772092c8e92..98951e8be83 100644
--- a/packages/google-cloud-workstations/protos/google/cloud/workstations/v1beta/workstations.proto
+++ b/packages/google-cloud-workstations/protos/google/cloud/workstations/v1beta/workstations.proto
@@ -175,7 +175,7 @@ service Workstations {
option (google.api.method_signature) = "name";
}
- // Returns all Workstations using the specified config.
+ // Returns all Workstations using the specified workstation configuration.
rpc ListWorkstations(ListWorkstationsRequest)
returns (ListWorkstationsResponse) {
option (google.api.http) = {
@@ -184,8 +184,8 @@ service Workstations {
option (google.api.method_signature) = "parent";
}
- // Returns all Workstations using the specified config on which the caller has
- // the "workstations.workstations.use" permission.
+ // Returns all workstations using the specified workstation configuration
+ // on which the caller has the "workstations.workstations.use" permission.
rpc ListUsableWorkstations(ListUsableWorkstationsRequest)
returns (ListUsableWorkstationsResponse) {
option (google.api.http) = {
@@ -343,7 +343,7 @@ message WorkstationCluster {
[(google.api.field_behavior) = OUTPUT_ONLY];
// Checksum computed by the server. May be sent on update and delete requests
- // to ensure that the client has an up-to-date value before proceeding.
+ // to make sure that the client has an up-to-date value before proceeding.
string etag = 9;
// Immutable. Name of the Compute Engine network in which instances associated
@@ -355,6 +355,12 @@ message WorkstationCluster {
// subnetwork specified for this cluster.
string subnetwork = 11 [(google.api.field_behavior) = IMMUTABLE];
+ // Output only. The private IP address of the control plane for this cluster.
+ // Workstation VMs need access to this IP address to work with the service, so
+ // make sure that your firewall rules allow egress from the workstation VMs to
+ // this address.
+ string control_plane_ip = 16 [(google.api.field_behavior) = OUTPUT_ONLY];
+
// Configuration for private cluster.
PrivateClusterConfig private_cluster_config = 12;
@@ -400,6 +406,16 @@ message WorkstationConfig {
bool enable_confidential_compute = 1;
}
+ // An accelerator card attached to the instance.
+ message Accelerator {
+ // Type of accelerator resource to attach to the instance, for example,
+ // "nvidia-tesla-p100".
+ string type = 1;
+
+ // Number of accelerator cards exposed to the instance.
+ int32 count = 2;
+ }
+
// The name of a Compute Engine machine type.
string machine_type = 1;
@@ -414,9 +430,13 @@ message WorkstationConfig {
// Workstations.
repeated string tags = 4;
- // Number of instances to pool for faster workstation starup.
+ // Number of instances to pool for faster workstation startup.
int32 pool_size = 5;
+ // Output only. Number of instances currently available in the pool for
+ // faster workstation startup.
+ int32 pooled_instances = 12 [(google.api.field_behavior) = OUTPUT_ONLY];
+
// Whether instances have no public IP address.
bool disable_public_ip_addresses = 6;
@@ -426,8 +446,12 @@ message WorkstationConfig {
// A set of Compute Engine Confidential VM instance options.
GceConfidentialInstanceConfig confidential_instance_config = 10;
- // Size of the boot disk in GB.
+ // Size of the boot disk in GB. Defaults to 50.
int32 boot_disk_size_gb = 9;
+
+ // A list of the type and count of accelerator cards attached to the
+ // instance.
+ repeated Accelerator accelerators = 11;
}
// Type of host that will be used for the workstation's runtime.
@@ -457,14 +481,15 @@ message WorkstationConfig {
}
// Size of the disk in GB. Must be empty if source_snapshot is set.
+ // Defaults to 200.
int32 size_gb = 1;
// Type of file system that the disk should be formatted with. The
// workstation image must support this file system type. Must be empty
- // if source_snapshot is set.
+ // if source_snapshot is set. Defaults to ext4.
string fs_type = 2;
- // Type of the disk to use.
+ // Type of the disk to use. Defaults to pd-standard.
string disk_type = 3;
// Name of the snapshot to use as the source for the disk. If set,
@@ -489,7 +514,7 @@ message WorkstationConfig {
// A Docker container.
message Container {
// Docker image defining the container. This image must be accessible by the
- // config's service account.
+ // service account specified in the workstation configuration.
string image = 1;
// If set, overrides the default ENTRYPOINT specified by the image.
@@ -498,7 +523,7 @@ message WorkstationConfig {
// Arguments passed to the entrypoint.
repeated string args = 3;
- // Environment variables passed to the container.
+ // Environment variables passed to the container's entrypoint.
map env = 4;
// If set, overrides the default DIR specified by the image.
@@ -511,18 +536,28 @@ message WorkstationConfig {
// A customer-managed encryption key for the Compute Engine resources
// of this workstation configuration.
message CustomerEncryptionKey {
- // The name of the Google Cloud KMS encryption key. For example,
+ // Immutable. The name of the Google Cloud KMS encryption key. For example,
// `projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME`.
- string kms_key = 1;
+ string kms_key = 1 [(google.api.field_behavior) = IMMUTABLE];
- // The service account to use with the specified
+ // Immutable. The service account to use with the specified
// KMS key. We recommend that you use a separate service account
// and follow KMS best practices. For more information, see
// [Separation of
// duties](https://cloud.google.com/kms/docs/separation-of-duties) and
// `gcloud kms keys add-iam-policy-binding`
// [`--member`](https://cloud.google.com/sdk/gcloud/reference/kms/keys/add-iam-policy-binding#--member).
- string kms_key_service_account = 2;
+ string kms_key_service_account = 2
+ [(google.api.field_behavior) = IMMUTABLE];
+ }
+
+ // A readiness check to be performed on a workstation.
+ message ReadinessCheck {
+ // Path to which the request should be sent.
+ string path = 1;
+
+ // Port to which the request should be sent.
+ int32 port = 2;
}
// Full name of this resource.
@@ -558,7 +593,7 @@ message WorkstationConfig {
[(google.api.field_behavior) = OUTPUT_ONLY];
// Checksum computed by the server. May be sent on update and delete requests
- // to ensure that the client has an up-to-date value before proceeding.
+ // to make sure that the client has an up-to-date value before proceeding.
string etag = 9;
// How long to wait before automatically stopping an instance that hasn't
@@ -582,7 +617,7 @@ message WorkstationConfig {
// when that workstation is started.
Container container = 14;
- // Encrypts resources of this workstation configuration using a
+ // Immutable. Encrypts resources of this workstation configuration using a
// customer-managed encryption key.
//
// If specified, the boot disk of the Compute Engine instance and the
@@ -598,7 +633,15 @@ message WorkstationConfig {
//
// If the encryption key is revoked, the workstation session will
// automatically be stopped within 7 hours.
- CustomerEncryptionKey encryption_key = 17;
+ //
+ // Immutable after the workstation configuration is created.
+ CustomerEncryptionKey encryption_key = 17
+ [(google.api.field_behavior) = IMMUTABLE];
+
+ // Readiness checks to perform when starting a workstation using this
+ // workstation configuration. Mark a workstation as running only after all
+ // specified readiness checks return 200 status codes.
+ repeated ReadinessCheck readiness_checks = 19;
// Output only. Whether this resource is in degraded mode, in which case it
// may require user action to restore full functionality. Details can be found
@@ -608,6 +651,13 @@ message WorkstationConfig {
// Output only. Status conditions describing the current resource state.
repeated google.rpc.Status conditions = 16
[(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Whether to enable linux auditd logging on the workstation. When enabled, a
+ // service account must also be specified that has logging.buckets.write
+ // permission on the project. Operating system audit logging is distinct from
+ // [Cloud Audit
+ // Logs](https://cloud.google.com/workstations/docs/audit-logging).
+ bool enable_audit_agent = 20;
}
// A single instance of a developer workstation with its own persistent storage.
@@ -671,7 +721,7 @@ message Workstation {
[(google.api.field_behavior) = OUTPUT_ONLY];
// Checksum computed by the server. May be sent on update and delete requests
- // to ensure that the client has an up-to-date value before proceeding.
+ // to make sure that the client has an up-to-date value before proceeding.
string etag = 9;
// Output only. Current state of the workstation.
@@ -683,6 +733,9 @@ message Workstation {
// clients may prefix the host with the destination port in the format
// `{port}-{host}`.
string host = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Environment variables passed to the workstation container's entrypoint.
+ map env = 12;
}
// Request message for GetWorkstationCluster.
@@ -782,7 +835,7 @@ message DeleteWorkstationClusterRequest {
bool validate_only = 2;
// If set, the request will be rejected if the latest version of the
- // workstation cluster on the server does not have this etag.
+ // workstation cluster on the server does not have this ETag.
string etag = 3;
// If set, any workstation configurations and workstations in the
@@ -872,7 +925,7 @@ message CreateWorkstationConfigRequest {
}
];
- // Required. ID to use for the config.
+ // Required. ID to use for the workstation configuration.
string workstation_config_id = 2 [(google.api.field_behavior) = REQUIRED];
// Required. Config to create.
@@ -890,7 +943,8 @@ message UpdateWorkstationConfigRequest {
WorkstationConfig workstation_config = 1
[(google.api.field_behavior) = REQUIRED];
- // Required. Mask specifying which fields in the config should be updated.
+ // Required. Mask specifying which fields in the workstation configuration
+ // should be updated.
google.protobuf.FieldMask update_mask = 2
[(google.api.field_behavior) = REQUIRED];
@@ -898,14 +952,15 @@ message UpdateWorkstationConfigRequest {
// apply it.
bool validate_only = 3;
- // If set, and the config is not found, a new config will be created.
- // In this situation, update_mask is ignored.
+ // If set and the workstation configuration is not found, a new
+ // workstation configuration will be created. In this situation,
+ // update_mask is ignored.
bool allow_missing = 4;
}
// Message for deleting a workstation configuration.
message DeleteWorkstationConfigRequest {
- // Required. Name of the config to delete.
+ // Required. Name of the workstation configuration to delete.
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
@@ -917,12 +972,13 @@ message DeleteWorkstationConfigRequest {
// apply it.
bool validate_only = 2;
- // If set, the request will be rejected if the latest version of the config on
- // the server does not have this etag.
+ // If set, the request is rejected if the latest version of the
+ // workstation configuration on the server does not have this ETag.
string etag = 3;
- // If set, any Workstations in the config will also be deleted. Otherwise,
- // the request will work only if the config has no workstations.
+ // If set, any workstations in the workstation configuration are also deleted.
+ // Otherwise, the request works only if the workstation configuration has
+ // no workstations.
bool force = 4;
}
@@ -1023,7 +1079,8 @@ message UpdateWorkstationRequest {
// Required. Workstation to update.
Workstation workstation = 1 [(google.api.field_behavior) = REQUIRED];
- // Required. Mask specifying which fields in the config should be updated.
+ // Required. Mask specifying which fields in the workstation configuration
+ // should be updated.
google.protobuf.FieldMask update_mask = 2
[(google.api.field_behavior) = REQUIRED];
@@ -1031,8 +1088,9 @@ message UpdateWorkstationRequest {
// apply it.
bool validate_only = 3;
- // If set, and the config is not found, a new config will be created.
- // In this situation, update_mask is ignored.
+ // If set and the workstation configuration is not found, a new
+ // workstation configuration is created. In this situation, update_mask
+ // is ignored.
bool allow_missing = 4;
}
@@ -1051,7 +1109,7 @@ message DeleteWorkstationRequest {
bool validate_only = 2;
// If set, the request will be rejected if the latest version of the
- // workstation on the server does not have this etag.
+ // workstation on the server does not have this ETag.
string etag = 3;
}
@@ -1070,7 +1128,7 @@ message StartWorkstationRequest {
bool validate_only = 2;
// If set, the request will be rejected if the latest version of the
- // workstation on the server does not have this etag.
+ // workstation on the server does not have this ETag.
string etag = 3;
}
@@ -1089,7 +1147,7 @@ message StopWorkstationRequest {
bool validate_only = 2;
// If set, the request will be rejected if the latest version of the
- // workstation on the server does not have this etag.
+ // workstation on the server does not have this ETag.
string etag = 3;
}
@@ -1123,7 +1181,7 @@ message GenerateAccessTokenRequest {
message GenerateAccessTokenResponse {
// The generated bearer access token. To use this token, include it in an
// Authorization header of an HTTP request sent to the associated
- // workstation's hostname, for example, `Authorization: Bearer
+ // workstation's hostname—for example, `Authorization: Bearer
// `.
string access_token = 1;
diff --git a/packages/google-cloud-workstations/protos/protos.d.ts b/packages/google-cloud-workstations/protos/protos.d.ts
index 9c643b1f223..e9b98749997 100644
--- a/packages/google-cloud-workstations/protos/protos.d.ts
+++ b/packages/google-cloud-workstations/protos/protos.d.ts
@@ -509,6 +509,9 @@ export namespace google {
/** WorkstationCluster subnetwork */
subnetwork?: (string|null);
+ /** WorkstationCluster controlPlaneIp */
+ controlPlaneIp?: (string|null);
+
/** WorkstationCluster privateClusterConfig */
privateClusterConfig?: (google.cloud.workstations.v1.WorkstationCluster.IPrivateClusterConfig|null);
@@ -564,6 +567,9 @@ export namespace google {
/** WorkstationCluster subnetwork. */
public subnetwork: string;
+ /** WorkstationCluster controlPlaneIp. */
+ public controlPlaneIp: string;
+
/** WorkstationCluster privateClusterConfig. */
public privateClusterConfig?: (google.cloud.workstations.v1.WorkstationCluster.IPrivateClusterConfig|null);
@@ -1087,6 +1093,9 @@ export namespace google {
/** GceInstance poolSize */
poolSize?: (number|null);
+ /** GceInstance pooledInstances */
+ pooledInstances?: (number|null);
+
/** GceInstance disablePublicIpAddresses */
disablePublicIpAddresses?: (boolean|null);
@@ -1124,6 +1133,9 @@ export namespace google {
/** GceInstance poolSize. */
public poolSize: number;
+ /** GceInstance pooledInstances. */
+ public pooledInstances: number;
+
/** GceInstance disablePublicIpAddresses. */
public disablePublicIpAddresses: boolean;
@@ -5536,6 +5548,9 @@ export namespace google {
/** WorkstationCluster subnetwork */
subnetwork?: (string|null);
+ /** WorkstationCluster controlPlaneIp */
+ controlPlaneIp?: (string|null);
+
/** WorkstationCluster privateClusterConfig */
privateClusterConfig?: (google.cloud.workstations.v1beta.WorkstationCluster.IPrivateClusterConfig|null);
@@ -5591,6 +5606,9 @@ export namespace google {
/** WorkstationCluster subnetwork. */
public subnetwork: string;
+ /** WorkstationCluster controlPlaneIp. */
+ public controlPlaneIp: string;
+
/** WorkstationCluster privateClusterConfig. */
public privateClusterConfig?: (google.cloud.workstations.v1beta.WorkstationCluster.IPrivateClusterConfig|null);
@@ -5847,11 +5865,17 @@ export namespace google {
/** WorkstationConfig encryptionKey */
encryptionKey?: (google.cloud.workstations.v1beta.WorkstationConfig.ICustomerEncryptionKey|null);
+ /** WorkstationConfig readinessChecks */
+ readinessChecks?: (google.cloud.workstations.v1beta.WorkstationConfig.IReadinessCheck[]|null);
+
/** WorkstationConfig degraded */
degraded?: (boolean|null);
/** WorkstationConfig conditions */
conditions?: (google.rpc.IStatus[]|null);
+
+ /** WorkstationConfig enableAuditAgent */
+ enableAuditAgent?: (boolean|null);
}
/** Represents a WorkstationConfig. */
@@ -5911,12 +5935,18 @@ export namespace google {
/** WorkstationConfig encryptionKey. */
public encryptionKey?: (google.cloud.workstations.v1beta.WorkstationConfig.ICustomerEncryptionKey|null);
+ /** WorkstationConfig readinessChecks. */
+ public readinessChecks: google.cloud.workstations.v1beta.WorkstationConfig.IReadinessCheck[];
+
/** WorkstationConfig degraded. */
public degraded: boolean;
/** WorkstationConfig conditions. */
public conditions: google.rpc.IStatus[];
+ /** WorkstationConfig enableAuditAgent. */
+ public enableAuditAgent: boolean;
+
/**
* Creates a new WorkstationConfig instance using the specified properties.
* @param [properties] Properties to set
@@ -6114,6 +6144,9 @@ export namespace google {
/** GceInstance poolSize */
poolSize?: (number|null);
+ /** GceInstance pooledInstances */
+ pooledInstances?: (number|null);
+
/** GceInstance disablePublicIpAddresses */
disablePublicIpAddresses?: (boolean|null);
@@ -6125,6 +6158,9 @@ export namespace google {
/** GceInstance bootDiskSizeGb */
bootDiskSizeGb?: (number|null);
+
+ /** GceInstance accelerators */
+ accelerators?: (google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.IAccelerator[]|null);
}
/** Represents a GceInstance. */
@@ -6148,6 +6184,9 @@ export namespace google {
/** GceInstance poolSize. */
public poolSize: number;
+ /** GceInstance pooledInstances. */
+ public pooledInstances: number;
+
/** GceInstance disablePublicIpAddresses. */
public disablePublicIpAddresses: boolean;
@@ -6160,6 +6199,9 @@ export namespace google {
/** GceInstance bootDiskSizeGb. */
public bootDiskSizeGb: number;
+ /** GceInstance accelerators. */
+ public accelerators: google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.IAccelerator[];
+
/**
* Creates a new GceInstance instance using the specified properties.
* @param [properties] Properties to set
@@ -6445,6 +6487,109 @@ export namespace google {
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
+
+ /** Properties of an Accelerator. */
+ interface IAccelerator {
+
+ /** Accelerator type */
+ type?: (string|null);
+
+ /** Accelerator count */
+ count?: (number|null);
+ }
+
+ /** Represents an Accelerator. */
+ class Accelerator implements IAccelerator {
+
+ /**
+ * Constructs a new Accelerator.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.IAccelerator);
+
+ /** Accelerator type. */
+ public type: string;
+
+ /** Accelerator count. */
+ public count: number;
+
+ /**
+ * Creates a new Accelerator instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns Accelerator instance
+ */
+ public static create(properties?: google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.IAccelerator): google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator;
+
+ /**
+ * Encodes the specified Accelerator message. Does not implicitly {@link google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator.verify|verify} messages.
+ * @param message Accelerator message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.IAccelerator, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified Accelerator message, length delimited. Does not implicitly {@link google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator.verify|verify} messages.
+ * @param message Accelerator message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.IAccelerator, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes an Accelerator message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns Accelerator
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator;
+
+ /**
+ * Decodes an Accelerator message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns Accelerator
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator;
+
+ /**
+ * Verifies an Accelerator message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates an Accelerator message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns Accelerator
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator;
+
+ /**
+ * Creates a plain object from an Accelerator message. Also converts values to other types if specified.
+ * @param message Accelerator
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this Accelerator to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for Accelerator
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
}
}
@@ -6917,6 +7062,109 @@ export namespace google {
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
+
+ /** Properties of a ReadinessCheck. */
+ interface IReadinessCheck {
+
+ /** ReadinessCheck path */
+ path?: (string|null);
+
+ /** ReadinessCheck port */
+ port?: (number|null);
+ }
+
+ /** Represents a ReadinessCheck. */
+ class ReadinessCheck implements IReadinessCheck {
+
+ /**
+ * Constructs a new ReadinessCheck.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.workstations.v1beta.WorkstationConfig.IReadinessCheck);
+
+ /** ReadinessCheck path. */
+ public path: string;
+
+ /** ReadinessCheck port. */
+ public port: number;
+
+ /**
+ * Creates a new ReadinessCheck instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns ReadinessCheck instance
+ */
+ public static create(properties?: google.cloud.workstations.v1beta.WorkstationConfig.IReadinessCheck): google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck;
+
+ /**
+ * Encodes the specified ReadinessCheck message. Does not implicitly {@link google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.verify|verify} messages.
+ * @param message ReadinessCheck message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.workstations.v1beta.WorkstationConfig.IReadinessCheck, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified ReadinessCheck message, length delimited. Does not implicitly {@link google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.verify|verify} messages.
+ * @param message ReadinessCheck message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.workstations.v1beta.WorkstationConfig.IReadinessCheck, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a ReadinessCheck message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns ReadinessCheck
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck;
+
+ /**
+ * Decodes a ReadinessCheck message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns ReadinessCheck
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck;
+
+ /**
+ * Verifies a ReadinessCheck message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a ReadinessCheck message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns ReadinessCheck
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck;
+
+ /**
+ * Creates a plain object from a ReadinessCheck message. Also converts values to other types if specified.
+ * @param message ReadinessCheck
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this ReadinessCheck to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for ReadinessCheck
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
}
/** Properties of a Workstation. */
@@ -6957,6 +7205,9 @@ export namespace google {
/** Workstation host */
host?: (string|null);
+
+ /** Workstation env */
+ env?: ({ [k: string]: string }|null);
}
/** Represents a Workstation. */
@@ -7004,6 +7255,9 @@ export namespace google {
/** Workstation host. */
public host: string;
+ /** Workstation env. */
+ public env: { [k: string]: string };
+
/**
* Creates a new Workstation instance using the specified properties.
* @param [properties] Properties to set
diff --git a/packages/google-cloud-workstations/protos/protos.js b/packages/google-cloud-workstations/protos/protos.js
index 00bec04bc0b..ec93f08c529 100644
--- a/packages/google-cloud-workstations/protos/protos.js
+++ b/packages/google-cloud-workstations/protos/protos.js
@@ -779,6 +779,7 @@
* @property {string|null} [etag] WorkstationCluster etag
* @property {string|null} [network] WorkstationCluster network
* @property {string|null} [subnetwork] WorkstationCluster subnetwork
+ * @property {string|null} [controlPlaneIp] WorkstationCluster controlPlaneIp
* @property {google.cloud.workstations.v1.WorkstationCluster.IPrivateClusterConfig|null} [privateClusterConfig] WorkstationCluster privateClusterConfig
* @property {boolean|null} [degraded] WorkstationCluster degraded
* @property {Array.|null} [conditions] WorkstationCluster conditions
@@ -898,6 +899,14 @@
*/
WorkstationCluster.prototype.subnetwork = "";
+ /**
+ * WorkstationCluster controlPlaneIp.
+ * @member {string} controlPlaneIp
+ * @memberof google.cloud.workstations.v1.WorkstationCluster
+ * @instance
+ */
+ WorkstationCluster.prototype.controlPlaneIp = "";
+
/**
* WorkstationCluster privateClusterConfig.
* @member {google.cloud.workstations.v1.WorkstationCluster.IPrivateClusterConfig|null|undefined} privateClusterConfig
@@ -979,6 +988,8 @@
if (message.labels != null && Object.hasOwnProperty.call(message, "labels"))
for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i)
writer.uint32(/* id 15, wireType 2 =*/122).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim();
+ if (message.controlPlaneIp != null && Object.hasOwnProperty.call(message, "controlPlaneIp"))
+ writer.uint32(/* id 16, wireType 2 =*/130).string(message.controlPlaneIp);
return writer;
};
@@ -1099,6 +1110,10 @@
message.subnetwork = reader.string();
break;
}
+ case 16: {
+ message.controlPlaneIp = reader.string();
+ break;
+ }
case 12: {
message.privateClusterConfig = $root.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.decode(reader, reader.uint32());
break;
@@ -1200,6 +1215,9 @@
if (message.subnetwork != null && message.hasOwnProperty("subnetwork"))
if (!$util.isString(message.subnetwork))
return "subnetwork: string expected";
+ if (message.controlPlaneIp != null && message.hasOwnProperty("controlPlaneIp"))
+ if (!$util.isString(message.controlPlaneIp))
+ return "controlPlaneIp: string expected";
if (message.privateClusterConfig != null && message.hasOwnProperty("privateClusterConfig")) {
var error = $root.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.verify(message.privateClusterConfig);
if (error)
@@ -1275,6 +1293,8 @@
message.network = String(object.network);
if (object.subnetwork != null)
message.subnetwork = String(object.subnetwork);
+ if (object.controlPlaneIp != null)
+ message.controlPlaneIp = String(object.controlPlaneIp);
if (object.privateClusterConfig != null) {
if (typeof object.privateClusterConfig !== "object")
throw TypeError(".google.cloud.workstations.v1.WorkstationCluster.privateClusterConfig: object expected");
@@ -1327,6 +1347,7 @@
object.subnetwork = "";
object.privateClusterConfig = null;
object.degraded = false;
+ object.controlPlaneIp = "";
}
if (message.name != null && message.hasOwnProperty("name"))
object.name = message.name;
@@ -1368,6 +1389,8 @@
for (var j = 0; j < keys2.length; ++j)
object.labels[keys2[j]] = message.labels[keys2[j]];
}
+ if (message.controlPlaneIp != null && message.hasOwnProperty("controlPlaneIp"))
+ object.controlPlaneIp = message.controlPlaneIp;
return object;
};
@@ -2671,6 +2694,7 @@
* @property {string|null} [serviceAccount] GceInstance serviceAccount
* @property {Array.|null} [tags] GceInstance tags
* @property {number|null} [poolSize] GceInstance poolSize
+ * @property {number|null} [pooledInstances] GceInstance pooledInstances
* @property {boolean|null} [disablePublicIpAddresses] GceInstance disablePublicIpAddresses
* @property {boolean|null} [enableNestedVirtualization] GceInstance enableNestedVirtualization
* @property {google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.IGceShieldedInstanceConfig|null} [shieldedInstanceConfig] GceInstance shieldedInstanceConfig
@@ -2726,6 +2750,14 @@
*/
GceInstance.prototype.poolSize = 0;
+ /**
+ * GceInstance pooledInstances.
+ * @member {number} pooledInstances
+ * @memberof google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance
+ * @instance
+ */
+ GceInstance.prototype.pooledInstances = 0;
+
/**
* GceInstance disablePublicIpAddresses.
* @member {boolean} disablePublicIpAddresses
@@ -2809,6 +2841,8 @@
writer.uint32(/* id 9, wireType 0 =*/72).int32(message.bootDiskSizeGb);
if (message.confidentialInstanceConfig != null && Object.hasOwnProperty.call(message, "confidentialInstanceConfig"))
$root.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.encode(message.confidentialInstanceConfig, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
+ if (message.pooledInstances != null && Object.hasOwnProperty.call(message, "pooledInstances"))
+ writer.uint32(/* id 12, wireType 0 =*/96).int32(message.pooledInstances);
return writer;
};
@@ -2861,6 +2895,10 @@
message.poolSize = reader.int32();
break;
}
+ case 12: {
+ message.pooledInstances = reader.int32();
+ break;
+ }
case 6: {
message.disablePublicIpAddresses = reader.bool();
break;
@@ -2932,6 +2970,9 @@
if (message.poolSize != null && message.hasOwnProperty("poolSize"))
if (!$util.isInteger(message.poolSize))
return "poolSize: integer expected";
+ if (message.pooledInstances != null && message.hasOwnProperty("pooledInstances"))
+ if (!$util.isInteger(message.pooledInstances))
+ return "pooledInstances: integer expected";
if (message.disablePublicIpAddresses != null && message.hasOwnProperty("disablePublicIpAddresses"))
if (typeof message.disablePublicIpAddresses !== "boolean")
return "disablePublicIpAddresses: boolean expected";
@@ -2979,6 +3020,8 @@
}
if (object.poolSize != null)
message.poolSize = object.poolSize | 0;
+ if (object.pooledInstances != null)
+ message.pooledInstances = object.pooledInstances | 0;
if (object.disablePublicIpAddresses != null)
message.disablePublicIpAddresses = Boolean(object.disablePublicIpAddresses);
if (object.enableNestedVirtualization != null)
@@ -3022,6 +3065,7 @@
object.shieldedInstanceConfig = null;
object.bootDiskSizeGb = 0;
object.confidentialInstanceConfig = null;
+ object.pooledInstances = 0;
}
if (message.machineType != null && message.hasOwnProperty("machineType"))
object.machineType = message.machineType;
@@ -3044,6 +3088,8 @@
object.bootDiskSizeGb = message.bootDiskSizeGb;
if (message.confidentialInstanceConfig != null && message.hasOwnProperty("confidentialInstanceConfig"))
object.confidentialInstanceConfig = $root.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.toObject(message.confidentialInstanceConfig, options);
+ if (message.pooledInstances != null && message.hasOwnProperty("pooledInstances"))
+ object.pooledInstances = message.pooledInstances;
return object;
};
@@ -13208,6 +13254,7 @@
* @property {string|null} [etag] WorkstationCluster etag
* @property {string|null} [network] WorkstationCluster network
* @property {string|null} [subnetwork] WorkstationCluster subnetwork
+ * @property {string|null} [controlPlaneIp] WorkstationCluster controlPlaneIp
* @property {google.cloud.workstations.v1beta.WorkstationCluster.IPrivateClusterConfig|null} [privateClusterConfig] WorkstationCluster privateClusterConfig
* @property {boolean|null} [degraded] WorkstationCluster degraded
* @property {Array.|null} [conditions] WorkstationCluster conditions
@@ -13327,6 +13374,14 @@
*/
WorkstationCluster.prototype.subnetwork = "";
+ /**
+ * WorkstationCluster controlPlaneIp.
+ * @member {string} controlPlaneIp
+ * @memberof google.cloud.workstations.v1beta.WorkstationCluster
+ * @instance
+ */
+ WorkstationCluster.prototype.controlPlaneIp = "";
+
/**
* WorkstationCluster privateClusterConfig.
* @member {google.cloud.workstations.v1beta.WorkstationCluster.IPrivateClusterConfig|null|undefined} privateClusterConfig
@@ -13408,6 +13463,8 @@
if (message.labels != null && Object.hasOwnProperty.call(message, "labels"))
for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i)
writer.uint32(/* id 15, wireType 2 =*/122).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim();
+ if (message.controlPlaneIp != null && Object.hasOwnProperty.call(message, "controlPlaneIp"))
+ writer.uint32(/* id 16, wireType 2 =*/130).string(message.controlPlaneIp);
return writer;
};
@@ -13528,6 +13585,10 @@
message.subnetwork = reader.string();
break;
}
+ case 16: {
+ message.controlPlaneIp = reader.string();
+ break;
+ }
case 12: {
message.privateClusterConfig = $root.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.decode(reader, reader.uint32());
break;
@@ -13629,6 +13690,9 @@
if (message.subnetwork != null && message.hasOwnProperty("subnetwork"))
if (!$util.isString(message.subnetwork))
return "subnetwork: string expected";
+ if (message.controlPlaneIp != null && message.hasOwnProperty("controlPlaneIp"))
+ if (!$util.isString(message.controlPlaneIp))
+ return "controlPlaneIp: string expected";
if (message.privateClusterConfig != null && message.hasOwnProperty("privateClusterConfig")) {
var error = $root.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.verify(message.privateClusterConfig);
if (error)
@@ -13704,6 +13768,8 @@
message.network = String(object.network);
if (object.subnetwork != null)
message.subnetwork = String(object.subnetwork);
+ if (object.controlPlaneIp != null)
+ message.controlPlaneIp = String(object.controlPlaneIp);
if (object.privateClusterConfig != null) {
if (typeof object.privateClusterConfig !== "object")
throw TypeError(".google.cloud.workstations.v1beta.WorkstationCluster.privateClusterConfig: object expected");
@@ -13756,6 +13822,7 @@
object.subnetwork = "";
object.privateClusterConfig = null;
object.degraded = false;
+ object.controlPlaneIp = "";
}
if (message.name != null && message.hasOwnProperty("name"))
object.name = message.name;
@@ -13797,6 +13864,8 @@
for (var j = 0; j < keys2.length; ++j)
object.labels[keys2[j]] = message.labels[keys2[j]];
}
+ if (message.controlPlaneIp != null && message.hasOwnProperty("controlPlaneIp"))
+ object.controlPlaneIp = message.controlPlaneIp;
return object;
};
@@ -14141,8 +14210,10 @@
* @property {Array.|null} [persistentDirectories] WorkstationConfig persistentDirectories
* @property {google.cloud.workstations.v1beta.WorkstationConfig.IContainer|null} [container] WorkstationConfig container
* @property {google.cloud.workstations.v1beta.WorkstationConfig.ICustomerEncryptionKey|null} [encryptionKey] WorkstationConfig encryptionKey
+ * @property {Array.|null} [readinessChecks] WorkstationConfig readinessChecks
* @property {boolean|null} [degraded] WorkstationConfig degraded
* @property {Array.|null} [conditions] WorkstationConfig conditions
+ * @property {boolean|null} [enableAuditAgent] WorkstationConfig enableAuditAgent
*/
/**
@@ -14157,6 +14228,7 @@
this.annotations = {};
this.labels = {};
this.persistentDirectories = [];
+ this.readinessChecks = [];
this.conditions = [];
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
@@ -14292,6 +14364,14 @@
*/
WorkstationConfig.prototype.encryptionKey = null;
+ /**
+ * WorkstationConfig readinessChecks.
+ * @member {Array.} readinessChecks
+ * @memberof google.cloud.workstations.v1beta.WorkstationConfig
+ * @instance
+ */
+ WorkstationConfig.prototype.readinessChecks = $util.emptyArray;
+
/**
* WorkstationConfig degraded.
* @member {boolean} degraded
@@ -14308,6 +14388,14 @@
*/
WorkstationConfig.prototype.conditions = $util.emptyArray;
+ /**
+ * WorkstationConfig enableAuditAgent.
+ * @member {boolean} enableAuditAgent
+ * @memberof google.cloud.workstations.v1beta.WorkstationConfig
+ * @instance
+ */
+ WorkstationConfig.prototype.enableAuditAgent = false;
+
/**
* Creates a new WorkstationConfig instance using the specified properties.
* @function create
@@ -14372,6 +14460,11 @@
if (message.labels != null && Object.hasOwnProperty.call(message, "labels"))
for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i)
writer.uint32(/* id 18, wireType 2 =*/146).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim();
+ if (message.readinessChecks != null && message.readinessChecks.length)
+ for (var i = 0; i < message.readinessChecks.length; ++i)
+ $root.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.encode(message.readinessChecks[i], writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim();
+ if (message.enableAuditAgent != null && Object.hasOwnProperty.call(message, "enableAuditAgent"))
+ writer.uint32(/* id 20, wireType 0 =*/160).bool(message.enableAuditAgent);
return writer;
};
@@ -14510,6 +14603,12 @@
message.encryptionKey = $root.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.decode(reader, reader.uint32());
break;
}
+ case 19: {
+ if (!(message.readinessChecks && message.readinessChecks.length))
+ message.readinessChecks = [];
+ message.readinessChecks.push($root.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.decode(reader, reader.uint32()));
+ break;
+ }
case 15: {
message.degraded = reader.bool();
break;
@@ -14520,6 +14619,10 @@
message.conditions.push($root.google.rpc.Status.decode(reader, reader.uint32()));
break;
}
+ case 20: {
+ message.enableAuditAgent = reader.bool();
+ break;
+ }
default:
reader.skipType(tag & 7);
break;
@@ -14635,6 +14738,15 @@
if (error)
return "encryptionKey." + error;
}
+ if (message.readinessChecks != null && message.hasOwnProperty("readinessChecks")) {
+ if (!Array.isArray(message.readinessChecks))
+ return "readinessChecks: array expected";
+ for (var i = 0; i < message.readinessChecks.length; ++i) {
+ var error = $root.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.verify(message.readinessChecks[i]);
+ if (error)
+ return "readinessChecks." + error;
+ }
+ }
if (message.degraded != null && message.hasOwnProperty("degraded"))
if (typeof message.degraded !== "boolean")
return "degraded: boolean expected";
@@ -14647,6 +14759,9 @@
return "conditions." + error;
}
}
+ if (message.enableAuditAgent != null && message.hasOwnProperty("enableAuditAgent"))
+ if (typeof message.enableAuditAgent !== "boolean")
+ return "enableAuditAgent: boolean expected";
return null;
};
@@ -14736,6 +14851,16 @@
throw TypeError(".google.cloud.workstations.v1beta.WorkstationConfig.encryptionKey: object expected");
message.encryptionKey = $root.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.fromObject(object.encryptionKey);
}
+ if (object.readinessChecks) {
+ if (!Array.isArray(object.readinessChecks))
+ throw TypeError(".google.cloud.workstations.v1beta.WorkstationConfig.readinessChecks: array expected");
+ message.readinessChecks = [];
+ for (var i = 0; i < object.readinessChecks.length; ++i) {
+ if (typeof object.readinessChecks[i] !== "object")
+ throw TypeError(".google.cloud.workstations.v1beta.WorkstationConfig.readinessChecks: object expected");
+ message.readinessChecks[i] = $root.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.fromObject(object.readinessChecks[i]);
+ }
+ }
if (object.degraded != null)
message.degraded = Boolean(object.degraded);
if (object.conditions) {
@@ -14748,6 +14873,8 @@
message.conditions[i] = $root.google.rpc.Status.fromObject(object.conditions[i]);
}
}
+ if (object.enableAuditAgent != null)
+ message.enableAuditAgent = Boolean(object.enableAuditAgent);
return message;
};
@@ -14767,6 +14894,7 @@
if (options.arrays || options.defaults) {
object.persistentDirectories = [];
object.conditions = [];
+ object.readinessChecks = [];
}
if (options.objects || options.defaults) {
object.annotations = {};
@@ -14787,6 +14915,7 @@
object.container = null;
object.degraded = false;
object.encryptionKey = null;
+ object.enableAuditAgent = false;
}
if (message.name != null && message.hasOwnProperty("name"))
object.name = message.name;
@@ -14837,6 +14966,13 @@
for (var j = 0; j < keys2.length; ++j)
object.labels[keys2[j]] = message.labels[keys2[j]];
}
+ if (message.readinessChecks && message.readinessChecks.length) {
+ object.readinessChecks = [];
+ for (var j = 0; j < message.readinessChecks.length; ++j)
+ object.readinessChecks[j] = $root.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.toObject(message.readinessChecks[j], options);
+ }
+ if (message.enableAuditAgent != null && message.hasOwnProperty("enableAuditAgent"))
+ object.enableAuditAgent = message.enableAuditAgent;
return object;
};
@@ -15100,10 +15236,12 @@
* @property {string|null} [serviceAccount] GceInstance serviceAccount
* @property {Array.|null} [tags] GceInstance tags
* @property {number|null} [poolSize] GceInstance poolSize
+ * @property {number|null} [pooledInstances] GceInstance pooledInstances
* @property {boolean|null} [disablePublicIpAddresses] GceInstance disablePublicIpAddresses
* @property {google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.IGceShieldedInstanceConfig|null} [shieldedInstanceConfig] GceInstance shieldedInstanceConfig
* @property {google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.IGceConfidentialInstanceConfig|null} [confidentialInstanceConfig] GceInstance confidentialInstanceConfig
* @property {number|null} [bootDiskSizeGb] GceInstance bootDiskSizeGb
+ * @property {Array.|null} [accelerators] GceInstance accelerators
*/
/**
@@ -15116,6 +15254,7 @@
*/
function GceInstance(properties) {
this.tags = [];
+ this.accelerators = [];
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -15154,6 +15293,14 @@
*/
GceInstance.prototype.poolSize = 0;
+ /**
+ * GceInstance pooledInstances.
+ * @member {number} pooledInstances
+ * @memberof google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance
+ * @instance
+ */
+ GceInstance.prototype.pooledInstances = 0;
+
/**
* GceInstance disablePublicIpAddresses.
* @member {boolean} disablePublicIpAddresses
@@ -15186,6 +15333,14 @@
*/
GceInstance.prototype.bootDiskSizeGb = 0;
+ /**
+ * GceInstance accelerators.
+ * @member {Array.} accelerators
+ * @memberof google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance
+ * @instance
+ */
+ GceInstance.prototype.accelerators = $util.emptyArray;
+
/**
* Creates a new GceInstance instance using the specified properties.
* @function create
@@ -15227,6 +15382,11 @@
writer.uint32(/* id 9, wireType 0 =*/72).int32(message.bootDiskSizeGb);
if (message.confidentialInstanceConfig != null && Object.hasOwnProperty.call(message, "confidentialInstanceConfig"))
$root.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.encode(message.confidentialInstanceConfig, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
+ if (message.accelerators != null && message.accelerators.length)
+ for (var i = 0; i < message.accelerators.length; ++i)
+ $root.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator.encode(message.accelerators[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
+ if (message.pooledInstances != null && Object.hasOwnProperty.call(message, "pooledInstances"))
+ writer.uint32(/* id 12, wireType 0 =*/96).int32(message.pooledInstances);
return writer;
};
@@ -15279,6 +15439,10 @@
message.poolSize = reader.int32();
break;
}
+ case 12: {
+ message.pooledInstances = reader.int32();
+ break;
+ }
case 6: {
message.disablePublicIpAddresses = reader.bool();
break;
@@ -15295,6 +15459,12 @@
message.bootDiskSizeGb = reader.int32();
break;
}
+ case 11: {
+ if (!(message.accelerators && message.accelerators.length))
+ message.accelerators = [];
+ message.accelerators.push($root.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator.decode(reader, reader.uint32()));
+ break;
+ }
default:
reader.skipType(tag & 7);
break;
@@ -15346,6 +15516,9 @@
if (message.poolSize != null && message.hasOwnProperty("poolSize"))
if (!$util.isInteger(message.poolSize))
return "poolSize: integer expected";
+ if (message.pooledInstances != null && message.hasOwnProperty("pooledInstances"))
+ if (!$util.isInteger(message.pooledInstances))
+ return "pooledInstances: integer expected";
if (message.disablePublicIpAddresses != null && message.hasOwnProperty("disablePublicIpAddresses"))
if (typeof message.disablePublicIpAddresses !== "boolean")
return "disablePublicIpAddresses: boolean expected";
@@ -15362,6 +15535,15 @@
if (message.bootDiskSizeGb != null && message.hasOwnProperty("bootDiskSizeGb"))
if (!$util.isInteger(message.bootDiskSizeGb))
return "bootDiskSizeGb: integer expected";
+ if (message.accelerators != null && message.hasOwnProperty("accelerators")) {
+ if (!Array.isArray(message.accelerators))
+ return "accelerators: array expected";
+ for (var i = 0; i < message.accelerators.length; ++i) {
+ var error = $root.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator.verify(message.accelerators[i]);
+ if (error)
+ return "accelerators." + error;
+ }
+ }
return null;
};
@@ -15390,6 +15572,8 @@
}
if (object.poolSize != null)
message.poolSize = object.poolSize | 0;
+ if (object.pooledInstances != null)
+ message.pooledInstances = object.pooledInstances | 0;
if (object.disablePublicIpAddresses != null)
message.disablePublicIpAddresses = Boolean(object.disablePublicIpAddresses);
if (object.shieldedInstanceConfig != null) {
@@ -15404,6 +15588,16 @@
}
if (object.bootDiskSizeGb != null)
message.bootDiskSizeGb = object.bootDiskSizeGb | 0;
+ if (object.accelerators) {
+ if (!Array.isArray(object.accelerators))
+ throw TypeError(".google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.accelerators: array expected");
+ message.accelerators = [];
+ for (var i = 0; i < object.accelerators.length; ++i) {
+ if (typeof object.accelerators[i] !== "object")
+ throw TypeError(".google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.accelerators: object expected");
+ message.accelerators[i] = $root.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator.fromObject(object.accelerators[i]);
+ }
+ }
return message;
};
@@ -15420,8 +15614,10 @@
if (!options)
options = {};
var object = {};
- if (options.arrays || options.defaults)
+ if (options.arrays || options.defaults) {
object.tags = [];
+ object.accelerators = [];
+ }
if (options.defaults) {
object.machineType = "";
object.serviceAccount = "";
@@ -15430,6 +15626,7 @@
object.shieldedInstanceConfig = null;
object.bootDiskSizeGb = 0;
object.confidentialInstanceConfig = null;
+ object.pooledInstances = 0;
}
if (message.machineType != null && message.hasOwnProperty("machineType"))
object.machineType = message.machineType;
@@ -15450,6 +15647,13 @@
object.bootDiskSizeGb = message.bootDiskSizeGb;
if (message.confidentialInstanceConfig != null && message.hasOwnProperty("confidentialInstanceConfig"))
object.confidentialInstanceConfig = $root.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.toObject(message.confidentialInstanceConfig, options);
+ if (message.accelerators && message.accelerators.length) {
+ object.accelerators = [];
+ for (var j = 0; j < message.accelerators.length; ++j)
+ object.accelerators[j] = $root.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator.toObject(message.accelerators[j], options);
+ }
+ if (message.pooledInstances != null && message.hasOwnProperty("pooledInstances"))
+ object.pooledInstances = message.pooledInstances;
return object;
};
@@ -15932,6 +16136,233 @@
return GceConfidentialInstanceConfig;
})();
+ GceInstance.Accelerator = (function() {
+
+ /**
+ * Properties of an Accelerator.
+ * @memberof google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance
+ * @interface IAccelerator
+ * @property {string|null} [type] Accelerator type
+ * @property {number|null} [count] Accelerator count
+ */
+
+ /**
+ * Constructs a new Accelerator.
+ * @memberof google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance
+ * @classdesc Represents an Accelerator.
+ * @implements IAccelerator
+ * @constructor
+ * @param {google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.IAccelerator=} [properties] Properties to set
+ */
+ function Accelerator(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * Accelerator type.
+ * @member {string} type
+ * @memberof google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator
+ * @instance
+ */
+ Accelerator.prototype.type = "";
+
+ /**
+ * Accelerator count.
+ * @member {number} count
+ * @memberof google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator
+ * @instance
+ */
+ Accelerator.prototype.count = 0;
+
+ /**
+ * Creates a new Accelerator instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator
+ * @static
+ * @param {google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.IAccelerator=} [properties] Properties to set
+ * @returns {google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator} Accelerator instance
+ */
+ Accelerator.create = function create(properties) {
+ return new Accelerator(properties);
+ };
+
+ /**
+ * Encodes the specified Accelerator message. Does not implicitly {@link google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator
+ * @static
+ * @param {google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.IAccelerator} message Accelerator message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Accelerator.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.type);
+ if (message.count != null && Object.hasOwnProperty.call(message, "count"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.count);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified Accelerator message, length delimited. Does not implicitly {@link google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator
+ * @static
+ * @param {google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.IAccelerator} message Accelerator message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ Accelerator.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes an Accelerator message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator} Accelerator
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Accelerator.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.type = reader.string();
+ break;
+ }
+ case 2: {
+ message.count = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes an Accelerator message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator} Accelerator
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ Accelerator.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies an Accelerator message.
+ * @function verify
+ * @memberof google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ Accelerator.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.type != null && message.hasOwnProperty("type"))
+ if (!$util.isString(message.type))
+ return "type: string expected";
+ if (message.count != null && message.hasOwnProperty("count"))
+ if (!$util.isInteger(message.count))
+ return "count: integer expected";
+ return null;
+ };
+
+ /**
+ * Creates an Accelerator message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator} Accelerator
+ */
+ Accelerator.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator)
+ return object;
+ var message = new $root.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator();
+ if (object.type != null)
+ message.type = String(object.type);
+ if (object.count != null)
+ message.count = object.count | 0;
+ return message;
+ };
+
+ /**
+ * Creates a plain object from an Accelerator message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator
+ * @static
+ * @param {google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator} message Accelerator
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ Accelerator.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.type = "";
+ object.count = 0;
+ }
+ if (message.type != null && message.hasOwnProperty("type"))
+ object.type = message.type;
+ if (message.count != null && message.hasOwnProperty("count"))
+ object.count = message.count;
+ return object;
+ };
+
+ /**
+ * Converts this Accelerator to JSON.
+ * @function toJSON
+ * @memberof google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ Accelerator.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for Accelerator
+ * @function getTypeUrl
+ * @memberof google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ Accelerator.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator";
+ };
+
+ return Accelerator;
+ })();
+
return GceInstance;
})();
@@ -17141,6 +17572,233 @@
return CustomerEncryptionKey;
})();
+ WorkstationConfig.ReadinessCheck = (function() {
+
+ /**
+ * Properties of a ReadinessCheck.
+ * @memberof google.cloud.workstations.v1beta.WorkstationConfig
+ * @interface IReadinessCheck
+ * @property {string|null} [path] ReadinessCheck path
+ * @property {number|null} [port] ReadinessCheck port
+ */
+
+ /**
+ * Constructs a new ReadinessCheck.
+ * @memberof google.cloud.workstations.v1beta.WorkstationConfig
+ * @classdesc Represents a ReadinessCheck.
+ * @implements IReadinessCheck
+ * @constructor
+ * @param {google.cloud.workstations.v1beta.WorkstationConfig.IReadinessCheck=} [properties] Properties to set
+ */
+ function ReadinessCheck(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * ReadinessCheck path.
+ * @member {string} path
+ * @memberof google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck
+ * @instance
+ */
+ ReadinessCheck.prototype.path = "";
+
+ /**
+ * ReadinessCheck port.
+ * @member {number} port
+ * @memberof google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck
+ * @instance
+ */
+ ReadinessCheck.prototype.port = 0;
+
+ /**
+ * Creates a new ReadinessCheck instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck
+ * @static
+ * @param {google.cloud.workstations.v1beta.WorkstationConfig.IReadinessCheck=} [properties] Properties to set
+ * @returns {google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck} ReadinessCheck instance
+ */
+ ReadinessCheck.create = function create(properties) {
+ return new ReadinessCheck(properties);
+ };
+
+ /**
+ * Encodes the specified ReadinessCheck message. Does not implicitly {@link google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck
+ * @static
+ * @param {google.cloud.workstations.v1beta.WorkstationConfig.IReadinessCheck} message ReadinessCheck message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ReadinessCheck.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.path != null && Object.hasOwnProperty.call(message, "path"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.path);
+ if (message.port != null && Object.hasOwnProperty.call(message, "port"))
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.port);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified ReadinessCheck message, length delimited. Does not implicitly {@link google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck
+ * @static
+ * @param {google.cloud.workstations.v1beta.WorkstationConfig.IReadinessCheck} message ReadinessCheck message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ ReadinessCheck.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a ReadinessCheck message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck} ReadinessCheck
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ReadinessCheck.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.path = reader.string();
+ break;
+ }
+ case 2: {
+ message.port = reader.int32();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a ReadinessCheck message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck} ReadinessCheck
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ ReadinessCheck.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a ReadinessCheck message.
+ * @function verify
+ * @memberof google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ ReadinessCheck.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.path != null && message.hasOwnProperty("path"))
+ if (!$util.isString(message.path))
+ return "path: string expected";
+ if (message.port != null && message.hasOwnProperty("port"))
+ if (!$util.isInteger(message.port))
+ return "port: integer expected";
+ return null;
+ };
+
+ /**
+ * Creates a ReadinessCheck message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck} ReadinessCheck
+ */
+ ReadinessCheck.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck)
+ return object;
+ var message = new $root.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck();
+ if (object.path != null)
+ message.path = String(object.path);
+ if (object.port != null)
+ message.port = object.port | 0;
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a ReadinessCheck message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck
+ * @static
+ * @param {google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck} message ReadinessCheck
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ ReadinessCheck.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.path = "";
+ object.port = 0;
+ }
+ if (message.path != null && message.hasOwnProperty("path"))
+ object.path = message.path;
+ if (message.port != null && message.hasOwnProperty("port"))
+ object.port = message.port;
+ return object;
+ };
+
+ /**
+ * Converts this ReadinessCheck to JSON.
+ * @function toJSON
+ * @memberof google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ ReadinessCheck.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for ReadinessCheck
+ * @function getTypeUrl
+ * @memberof google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ ReadinessCheck.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck";
+ };
+
+ return ReadinessCheck;
+ })();
+
return WorkstationConfig;
})();
@@ -17162,6 +17820,7 @@
* @property {string|null} [etag] Workstation etag
* @property {google.cloud.workstations.v1beta.Workstation.State|null} [state] Workstation state
* @property {string|null} [host] Workstation host
+ * @property {Object.|null} [env] Workstation env
*/
/**
@@ -17175,6 +17834,7 @@
function Workstation(properties) {
this.annotations = {};
this.labels = {};
+ this.env = {};
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
@@ -17277,6 +17937,14 @@
*/
Workstation.prototype.host = "";
+ /**
+ * Workstation env.
+ * @member {Object.} env
+ * @memberof google.cloud.workstations.v1beta.Workstation
+ * @instance
+ */
+ Workstation.prototype.env = $util.emptyObject;
+
/**
* Creates a new Workstation instance using the specified properties.
* @function create
@@ -17324,6 +17992,9 @@
writer.uint32(/* id 10, wireType 0 =*/80).int32(message.state);
if (message.host != null && Object.hasOwnProperty.call(message, "host"))
writer.uint32(/* id 11, wireType 2 =*/90).string(message.host);
+ if (message.env != null && Object.hasOwnProperty.call(message, "env"))
+ for (var keys = Object.keys(message.env), i = 0; i < keys.length; ++i)
+ writer.uint32(/* id 12, wireType 2 =*/98).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.env[keys[i]]).ldelim();
if (message.labels != null && Object.hasOwnProperty.call(message, "labels"))
for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i)
writer.uint32(/* id 13, wireType 2 =*/106).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim();
@@ -17447,6 +18118,29 @@
message.host = reader.string();
break;
}
+ case 12: {
+ if (message.env === $util.emptyObject)
+ message.env = {};
+ var end2 = reader.uint32() + reader.pos;
+ key = "";
+ value = "";
+ while (reader.pos < end2) {
+ var tag2 = reader.uint32();
+ switch (tag2 >>> 3) {
+ case 1:
+ key = reader.string();
+ break;
+ case 2:
+ value = reader.string();
+ break;
+ default:
+ reader.skipType(tag2 & 7);
+ break;
+ }
+ }
+ message.env[key] = value;
+ break;
+ }
default:
reader.skipType(tag & 7);
break;
@@ -17542,6 +18236,14 @@
if (message.host != null && message.hasOwnProperty("host"))
if (!$util.isString(message.host))
return "host: string expected";
+ if (message.env != null && message.hasOwnProperty("env")) {
+ if (!$util.isObject(message.env))
+ return "env: object expected";
+ var key = Object.keys(message.env);
+ for (var i = 0; i < key.length; ++i)
+ if (!$util.isString(message.env[key[i]]))
+ return "env: string{k:string} expected";
+ }
return null;
};
@@ -17626,6 +18328,13 @@
}
if (object.host != null)
message.host = String(object.host);
+ if (object.env) {
+ if (typeof object.env !== "object")
+ throw TypeError(".google.cloud.workstations.v1beta.Workstation.env: object expected");
+ message.env = {};
+ for (var keys = Object.keys(object.env), i = 0; i < keys.length; ++i)
+ message.env[keys[i]] = String(object.env[keys[i]]);
+ }
return message;
};
@@ -17644,6 +18353,7 @@
var object = {};
if (options.objects || options.defaults) {
object.annotations = {};
+ object.env = {};
object.labels = {};
}
if (options.defaults) {
@@ -17684,6 +18394,11 @@
object.state = options.enums === String ? $root.google.cloud.workstations.v1beta.Workstation.State[message.state] === undefined ? message.state : $root.google.cloud.workstations.v1beta.Workstation.State[message.state] : message.state;
if (message.host != null && message.hasOwnProperty("host"))
object.host = message.host;
+ if (message.env && (keys2 = Object.keys(message.env)).length) {
+ object.env = {};
+ for (var j = 0; j < keys2.length; ++j)
+ object.env[keys2[j]] = message.env[keys2[j]];
+ }
if (message.labels && (keys2 = Object.keys(message.labels)).length) {
object.labels = {};
for (var j = 0; j < keys2.length; ++j)
diff --git a/packages/google-cloud-workstations/protos/protos.json b/packages/google-cloud-workstations/protos/protos.json
index 5e5787c3aaf..f6f009ca8a0 100644
--- a/packages/google-cloud-workstations/protos/protos.json
+++ b/packages/google-cloud-workstations/protos/protos.json
@@ -566,6 +566,13 @@
"(google.api.field_behavior)": "IMMUTABLE"
}
},
+ "controlPlaneIp": {
+ "type": "string",
+ "id": 16,
+ "options": {
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
+ }
+ },
"privateClusterConfig": {
"type": "PrivateClusterConfig",
"id": 12
@@ -706,7 +713,10 @@
},
"encryptionKey": {
"type": "CustomerEncryptionKey",
- "id": 17
+ "id": 17,
+ "options": {
+ "(google.api.field_behavior)": "IMMUTABLE"
+ }
},
"degraded": {
"type": "bool",
@@ -759,6 +769,13 @@
"type": "int32",
"id": 5
},
+ "pooledInstances": {
+ "type": "int32",
+ "id": 12,
+ "options": {
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
+ }
+ },
"disablePublicIpAddresses": {
"type": "bool",
"id": 6
@@ -898,11 +915,17 @@
"fields": {
"kmsKey": {
"type": "string",
- "id": 1
+ "id": 1,
+ "options": {
+ "(google.api.field_behavior)": "IMMUTABLE"
+ }
},
"kmsKeyServiceAccount": {
"type": "string",
- "id": 2
+ "id": 2,
+ "options": {
+ "(google.api.field_behavior)": "IMMUTABLE"
+ }
}
}
}
@@ -2156,6 +2179,13 @@
"(google.api.field_behavior)": "IMMUTABLE"
}
},
+ "controlPlaneIp": {
+ "type": "string",
+ "id": 16,
+ "options": {
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
+ }
+ },
"privateClusterConfig": {
"type": "PrivateClusterConfig",
"id": 12
@@ -2296,7 +2326,15 @@
},
"encryptionKey": {
"type": "CustomerEncryptionKey",
- "id": 17
+ "id": 17,
+ "options": {
+ "(google.api.field_behavior)": "IMMUTABLE"
+ }
+ },
+ "readinessChecks": {
+ "rule": "repeated",
+ "type": "ReadinessCheck",
+ "id": 19
},
"degraded": {
"type": "bool",
@@ -2312,6 +2350,10 @@
"options": {
"(google.api.field_behavior)": "OUTPUT_ONLY"
}
+ },
+ "enableAuditAgent": {
+ "type": "bool",
+ "id": 20
}
},
"nested": {
@@ -2349,6 +2391,13 @@
"type": "int32",
"id": 5
},
+ "pooledInstances": {
+ "type": "int32",
+ "id": 12,
+ "options": {
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
+ }
+ },
"disablePublicIpAddresses": {
"type": "bool",
"id": 6
@@ -2364,6 +2413,11 @@
"bootDiskSizeGb": {
"type": "int32",
"id": 9
+ },
+ "accelerators": {
+ "rule": "repeated",
+ "type": "Accelerator",
+ "id": 11
}
},
"nested": {
@@ -2390,6 +2444,18 @@
"id": 1
}
}
+ },
+ "Accelerator": {
+ "fields": {
+ "type": {
+ "type": "string",
+ "id": 1
+ },
+ "count": {
+ "type": "int32",
+ "id": 2
+ }
+ }
}
}
}
@@ -2484,10 +2550,28 @@
"fields": {
"kmsKey": {
"type": "string",
- "id": 1
+ "id": 1,
+ "options": {
+ "(google.api.field_behavior)": "IMMUTABLE"
+ }
},
"kmsKeyServiceAccount": {
"type": "string",
+ "id": 2,
+ "options": {
+ "(google.api.field_behavior)": "IMMUTABLE"
+ }
+ }
+ }
+ },
+ "ReadinessCheck": {
+ "fields": {
+ "path": {
+ "type": "string",
+ "id": 1
+ },
+ "port": {
+ "type": "int32",
"id": 2
}
}
@@ -2571,6 +2655,11 @@
"options": {
"(google.api.field_behavior)": "OUTPUT_ONLY"
}
+ },
+ "env": {
+ "keyType": "string",
+ "type": "string",
+ "id": 12
}
},
"nested": {
diff --git a/packages/google-cloud-workstations/samples/README.md b/packages/google-cloud-workstations/samples/README.md
index c6f5f4f3a85..542d8ae2946 100644
--- a/packages/google-cloud-workstations/samples/README.md
+++ b/packages/google-cloud-workstations/samples/README.md
@@ -53,7 +53,6 @@
* [Workstations.update_workstation_cluster](#workstations.update_workstation_cluster)
* [Workstations.update_workstation_config](#workstations.update_workstation_config)
* [Quickstart](#quickstart)
- * [Quickstart](#quickstart)
## Before you begin
@@ -762,23 +761,6 @@ __Usage:__
`node packages/google-cloud-workstations/samples/quickstart.js`
------
-
-
-
-
-### Quickstart
-
-View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-workstations/samples/test/quickstart.js).
-
-[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-workstations/samples/test/quickstart.js,samples/README.md)
-
-__Usage:__
-
-
-`node packages/google-cloud-workstations/samples/test/quickstart.js`
-
-
diff --git a/packages/google-cloud-workstations/samples/generated/v1/snippet_metadata.google.cloud.workstations.v1.json b/packages/google-cloud-workstations/samples/generated/v1/snippet_metadata.google.cloud.workstations.v1.json
index 5ab3eb237a4..8689418db2f 100644
--- a/packages/google-cloud-workstations/samples/generated/v1/snippet_metadata.google.cloud.workstations.v1.json
+++ b/packages/google-cloud-workstations/samples/generated/v1/snippet_metadata.google.cloud.workstations.v1.json
@@ -1,7 +1,7 @@
{
"clientLibrary": {
"name": "nodejs-workstations",
- "version": "0.1.0",
+ "version": "0.1.1",
"language": "TYPESCRIPT",
"apis": [
{
@@ -299,7 +299,7 @@
"regionTag": "workstations_v1_generated_Workstations_ListWorkstationConfigs_async",
"title": "Workstations listWorkstationConfigs Sample",
"origin": "API_DEFINITION",
- "description": " Returns all WorkstationConfigs in the specified cluster.",
+ "description": " Returns all workstation configurations in the specified cluster.",
"canonical": true,
"file": "workstations.list_workstation_configs.js",
"language": "JAVASCRIPT",
@@ -454,7 +454,7 @@
"segments": [
{
"start": 25,
- "end": 69,
+ "end": 71,
"type": "FULL"
}
],
@@ -506,7 +506,7 @@
"segments": [
{
"start": 25,
- "end": 69,
+ "end": 70,
"type": "FULL"
}
],
@@ -591,7 +591,7 @@
"regionTag": "workstations_v1_generated_Workstations_ListWorkstations_async",
"title": "Workstations listWorkstations Sample",
"origin": "API_DEFINITION",
- "description": " Returns all Workstations using the specified config.",
+ "description": " Returns all Workstations using the specified workstation configuration.",
"canonical": true,
"file": "workstations.list_workstations.js",
"language": "JAVASCRIPT",
@@ -639,7 +639,7 @@
"regionTag": "workstations_v1_generated_Workstations_ListUsableWorkstations_async",
"title": "Workstations listUsableWorkstations Sample",
"origin": "API_DEFINITION",
- "description": " Returns all Workstations using the specified config on which the caller has the \"workstations.workstations.use\" permission.",
+ "description": " Returns all workstations using the specified workstation configuration on which the caller has the \"workstations.workstations.use\" permission.",
"canonical": true,
"file": "workstations.list_usable_workstations.js",
"language": "JAVASCRIPT",
@@ -746,7 +746,7 @@
"segments": [
{
"start": 25,
- "end": 69,
+ "end": 71,
"type": "FULL"
}
],
diff --git a/packages/google-cloud-workstations/samples/generated/v1/workstations.create_workstation_config.js b/packages/google-cloud-workstations/samples/generated/v1/workstations.create_workstation_config.js
index 4c0e7f3ea0e..33c9e27bda5 100644
--- a/packages/google-cloud-workstations/samples/generated/v1/workstations.create_workstation_config.js
+++ b/packages/google-cloud-workstations/samples/generated/v1/workstations.create_workstation_config.js
@@ -33,7 +33,7 @@ function main(parent, workstationConfigId, workstationConfig) {
*/
// const parent = 'abc123'
/**
- * Required. ID to use for the config.
+ * Required. ID to use for the workstation configuration.
*/
// const workstationConfigId = 'abc123'
/**
diff --git a/packages/google-cloud-workstations/samples/generated/v1/workstations.delete_workstation.js b/packages/google-cloud-workstations/samples/generated/v1/workstations.delete_workstation.js
index a585717a1ac..5e3cb409309 100644
--- a/packages/google-cloud-workstations/samples/generated/v1/workstations.delete_workstation.js
+++ b/packages/google-cloud-workstations/samples/generated/v1/workstations.delete_workstation.js
@@ -39,7 +39,7 @@ function main(name) {
// const validateOnly = true
/**
* If set, the request will be rejected if the latest version of the
- * workstation on the server does not have this etag.
+ * workstation on the server does not have this ETag.
*/
// const etag = 'abc123'
diff --git a/packages/google-cloud-workstations/samples/generated/v1/workstations.delete_workstation_cluster.js b/packages/google-cloud-workstations/samples/generated/v1/workstations.delete_workstation_cluster.js
index 3c33c358517..9b25cc73f57 100644
--- a/packages/google-cloud-workstations/samples/generated/v1/workstations.delete_workstation_cluster.js
+++ b/packages/google-cloud-workstations/samples/generated/v1/workstations.delete_workstation_cluster.js
@@ -38,7 +38,7 @@ function main(name) {
// const validateOnly = true
/**
* If set, the request will be rejected if the latest version of the
- * workstation cluster on the server does not have this etag.
+ * workstation cluster on the server does not have this ETag.
*/
// const etag = 'abc123'
/**
diff --git a/packages/google-cloud-workstations/samples/generated/v1/workstations.delete_workstation_config.js b/packages/google-cloud-workstations/samples/generated/v1/workstations.delete_workstation_config.js
index c3b93d2678e..e97506ccfd9 100644
--- a/packages/google-cloud-workstations/samples/generated/v1/workstations.delete_workstation_config.js
+++ b/packages/google-cloud-workstations/samples/generated/v1/workstations.delete_workstation_config.js
@@ -29,7 +29,7 @@ function main(name) {
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
- * Required. Name of the config to delete.
+ * Required. Name of the workstation configuration to delete.
*/
// const name = 'abc123'
/**
@@ -38,13 +38,14 @@ function main(name) {
*/
// const validateOnly = true
/**
- * If set, the request will be rejected if the latest version of the config on
- * the server does not have this etag.
+ * If set, the request is rejected if the latest version of the
+ * workstation configuration on the server does not have this ETag.
*/
// const etag = 'abc123'
/**
- * If set, any Workstations in the config will also be deleted. Otherwise,
- * the request will work only if the config has no workstations.
+ * If set, any workstations in the workstation configuration are also deleted.
+ * Otherwise, the request works only if the workstation configuration has
+ * no workstations.
*/
// const force = true
diff --git a/packages/google-cloud-workstations/samples/generated/v1/workstations.start_workstation.js b/packages/google-cloud-workstations/samples/generated/v1/workstations.start_workstation.js
index b4aa824bd61..dd5a70e0bb0 100644
--- a/packages/google-cloud-workstations/samples/generated/v1/workstations.start_workstation.js
+++ b/packages/google-cloud-workstations/samples/generated/v1/workstations.start_workstation.js
@@ -39,7 +39,7 @@ function main(name) {
// const validateOnly = true
/**
* If set, the request will be rejected if the latest version of the
- * workstation on the server does not have this etag.
+ * workstation on the server does not have this ETag.
*/
// const etag = 'abc123'
diff --git a/packages/google-cloud-workstations/samples/generated/v1/workstations.stop_workstation.js b/packages/google-cloud-workstations/samples/generated/v1/workstations.stop_workstation.js
index ab24801bd3f..2c33aeaecb9 100644
--- a/packages/google-cloud-workstations/samples/generated/v1/workstations.stop_workstation.js
+++ b/packages/google-cloud-workstations/samples/generated/v1/workstations.stop_workstation.js
@@ -39,7 +39,7 @@ function main(name) {
// const validateOnly = true
/**
* If set, the request will be rejected if the latest version of the
- * workstation on the server does not have this etag.
+ * workstation on the server does not have this ETag.
*/
// const etag = 'abc123'
diff --git a/packages/google-cloud-workstations/samples/generated/v1/workstations.update_workstation.js b/packages/google-cloud-workstations/samples/generated/v1/workstations.update_workstation.js
index 639fd0922d0..5f69359861f 100644
--- a/packages/google-cloud-workstations/samples/generated/v1/workstations.update_workstation.js
+++ b/packages/google-cloud-workstations/samples/generated/v1/workstations.update_workstation.js
@@ -33,7 +33,8 @@ function main(workstation, updateMask) {
*/
// const workstation = {}
/**
- * Required. Mask specifying which fields in the config should be updated.
+ * Required. Mask specifying which fields in the workstation configuration
+ * should be updated.
*/
// const updateMask = {}
/**
@@ -42,8 +43,9 @@ function main(workstation, updateMask) {
*/
// const validateOnly = true
/**
- * If set, and the config is not found, a new config will be created.
- * In this situation, update_mask is ignored.
+ * If set and the workstation configuration is not found, a new
+ * workstation configuration is created. In this situation, update_mask
+ * is ignored.
*/
// const allowMissing = true
diff --git a/packages/google-cloud-workstations/samples/generated/v1/workstations.update_workstation_config.js b/packages/google-cloud-workstations/samples/generated/v1/workstations.update_workstation_config.js
index 0c8fb992fcd..b9213a81e2b 100644
--- a/packages/google-cloud-workstations/samples/generated/v1/workstations.update_workstation_config.js
+++ b/packages/google-cloud-workstations/samples/generated/v1/workstations.update_workstation_config.js
@@ -33,7 +33,8 @@ function main(workstationConfig, updateMask) {
*/
// const workstationConfig = {}
/**
- * Required. Mask specifying which fields in the config should be updated.
+ * Required. Mask specifying which fields in the workstation configuration
+ * should be updated.
*/
// const updateMask = {}
/**
@@ -42,8 +43,9 @@ function main(workstationConfig, updateMask) {
*/
// const validateOnly = true
/**
- * If set, and the config is not found, a new config will be created.
- * In this situation, update_mask is ignored.
+ * If set and the workstation configuration is not found, a new
+ * workstation configuration will be created. In this situation,
+ * update_mask is ignored.
*/
// const allowMissing = true
diff --git a/packages/google-cloud-workstations/samples/generated/v1beta/snippet_metadata.google.cloud.workstations.v1beta.json b/packages/google-cloud-workstations/samples/generated/v1beta/snippet_metadata.google.cloud.workstations.v1beta.json
index 59d8ccd1e92..837d08d5954 100644
--- a/packages/google-cloud-workstations/samples/generated/v1beta/snippet_metadata.google.cloud.workstations.v1beta.json
+++ b/packages/google-cloud-workstations/samples/generated/v1beta/snippet_metadata.google.cloud.workstations.v1beta.json
@@ -1,7 +1,7 @@
{
"clientLibrary": {
"name": "nodejs-workstations",
- "version": "0.1.0",
+ "version": "0.1.1",
"language": "TYPESCRIPT",
"apis": [
{
@@ -454,7 +454,7 @@
"segments": [
{
"start": 25,
- "end": 69,
+ "end": 71,
"type": "FULL"
}
],
@@ -506,7 +506,7 @@
"segments": [
{
"start": 25,
- "end": 69,
+ "end": 70,
"type": "FULL"
}
],
@@ -591,7 +591,7 @@
"regionTag": "workstations_v1beta_generated_Workstations_ListWorkstations_async",
"title": "Workstations listWorkstations Sample",
"origin": "API_DEFINITION",
- "description": " Returns all Workstations using the specified config.",
+ "description": " Returns all Workstations using the specified workstation configuration.",
"canonical": true,
"file": "workstations.list_workstations.js",
"language": "JAVASCRIPT",
@@ -639,7 +639,7 @@
"regionTag": "workstations_v1beta_generated_Workstations_ListUsableWorkstations_async",
"title": "Workstations listUsableWorkstations Sample",
"origin": "API_DEFINITION",
- "description": " Returns all Workstations using the specified config on which the caller has the \"workstations.workstations.use\" permission.",
+ "description": " Returns all workstations using the specified workstation configuration on which the caller has the \"workstations.workstations.use\" permission.",
"canonical": true,
"file": "workstations.list_usable_workstations.js",
"language": "JAVASCRIPT",
@@ -746,7 +746,7 @@
"segments": [
{
"start": 25,
- "end": 69,
+ "end": 71,
"type": "FULL"
}
],
diff --git a/packages/google-cloud-workstations/samples/generated/v1beta/workstations.create_workstation_config.js b/packages/google-cloud-workstations/samples/generated/v1beta/workstations.create_workstation_config.js
index 47c69f52599..06b8cdb0a1b 100644
--- a/packages/google-cloud-workstations/samples/generated/v1beta/workstations.create_workstation_config.js
+++ b/packages/google-cloud-workstations/samples/generated/v1beta/workstations.create_workstation_config.js
@@ -33,7 +33,7 @@ function main(parent, workstationConfigId, workstationConfig) {
*/
// const parent = 'abc123'
/**
- * Required. ID to use for the config.
+ * Required. ID to use for the workstation configuration.
*/
// const workstationConfigId = 'abc123'
/**
diff --git a/packages/google-cloud-workstations/samples/generated/v1beta/workstations.delete_workstation.js b/packages/google-cloud-workstations/samples/generated/v1beta/workstations.delete_workstation.js
index 6a779b14fa2..2bbc0c5091a 100644
--- a/packages/google-cloud-workstations/samples/generated/v1beta/workstations.delete_workstation.js
+++ b/packages/google-cloud-workstations/samples/generated/v1beta/workstations.delete_workstation.js
@@ -39,7 +39,7 @@ function main(name) {
// const validateOnly = true
/**
* If set, the request will be rejected if the latest version of the
- * workstation on the server does not have this etag.
+ * workstation on the server does not have this ETag.
*/
// const etag = 'abc123'
diff --git a/packages/google-cloud-workstations/samples/generated/v1beta/workstations.delete_workstation_cluster.js b/packages/google-cloud-workstations/samples/generated/v1beta/workstations.delete_workstation_cluster.js
index 8f9e0813bc4..e6b9d1833ed 100644
--- a/packages/google-cloud-workstations/samples/generated/v1beta/workstations.delete_workstation_cluster.js
+++ b/packages/google-cloud-workstations/samples/generated/v1beta/workstations.delete_workstation_cluster.js
@@ -38,7 +38,7 @@ function main(name) {
// const validateOnly = true
/**
* If set, the request will be rejected if the latest version of the
- * workstation cluster on the server does not have this etag.
+ * workstation cluster on the server does not have this ETag.
*/
// const etag = 'abc123'
/**
diff --git a/packages/google-cloud-workstations/samples/generated/v1beta/workstations.delete_workstation_config.js b/packages/google-cloud-workstations/samples/generated/v1beta/workstations.delete_workstation_config.js
index 5c196b311b9..689d9f063ca 100644
--- a/packages/google-cloud-workstations/samples/generated/v1beta/workstations.delete_workstation_config.js
+++ b/packages/google-cloud-workstations/samples/generated/v1beta/workstations.delete_workstation_config.js
@@ -29,7 +29,7 @@ function main(name) {
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
- * Required. Name of the config to delete.
+ * Required. Name of the workstation configuration to delete.
*/
// const name = 'abc123'
/**
@@ -38,13 +38,14 @@ function main(name) {
*/
// const validateOnly = true
/**
- * If set, the request will be rejected if the latest version of the config on
- * the server does not have this etag.
+ * If set, the request is rejected if the latest version of the
+ * workstation configuration on the server does not have this ETag.
*/
// const etag = 'abc123'
/**
- * If set, any Workstations in the config will also be deleted. Otherwise,
- * the request will work only if the config has no workstations.
+ * If set, any workstations in the workstation configuration are also deleted.
+ * Otherwise, the request works only if the workstation configuration has
+ * no workstations.
*/
// const force = true
diff --git a/packages/google-cloud-workstations/samples/generated/v1beta/workstations.start_workstation.js b/packages/google-cloud-workstations/samples/generated/v1beta/workstations.start_workstation.js
index d565efb06b9..80b23015d70 100644
--- a/packages/google-cloud-workstations/samples/generated/v1beta/workstations.start_workstation.js
+++ b/packages/google-cloud-workstations/samples/generated/v1beta/workstations.start_workstation.js
@@ -39,7 +39,7 @@ function main(name) {
// const validateOnly = true
/**
* If set, the request will be rejected if the latest version of the
- * workstation on the server does not have this etag.
+ * workstation on the server does not have this ETag.
*/
// const etag = 'abc123'
diff --git a/packages/google-cloud-workstations/samples/generated/v1beta/workstations.stop_workstation.js b/packages/google-cloud-workstations/samples/generated/v1beta/workstations.stop_workstation.js
index d4200cc45f5..16ad243fe8d 100644
--- a/packages/google-cloud-workstations/samples/generated/v1beta/workstations.stop_workstation.js
+++ b/packages/google-cloud-workstations/samples/generated/v1beta/workstations.stop_workstation.js
@@ -39,7 +39,7 @@ function main(name) {
// const validateOnly = true
/**
* If set, the request will be rejected if the latest version of the
- * workstation on the server does not have this etag.
+ * workstation on the server does not have this ETag.
*/
// const etag = 'abc123'
diff --git a/packages/google-cloud-workstations/samples/generated/v1beta/workstations.update_workstation.js b/packages/google-cloud-workstations/samples/generated/v1beta/workstations.update_workstation.js
index eba23cf1a39..3dcab94e56f 100644
--- a/packages/google-cloud-workstations/samples/generated/v1beta/workstations.update_workstation.js
+++ b/packages/google-cloud-workstations/samples/generated/v1beta/workstations.update_workstation.js
@@ -33,7 +33,8 @@ function main(workstation, updateMask) {
*/
// const workstation = {}
/**
- * Required. Mask specifying which fields in the config should be updated.
+ * Required. Mask specifying which fields in the workstation configuration
+ * should be updated.
*/
// const updateMask = {}
/**
@@ -42,8 +43,9 @@ function main(workstation, updateMask) {
*/
// const validateOnly = true
/**
- * If set, and the config is not found, a new config will be created.
- * In this situation, update_mask is ignored.
+ * If set and the workstation configuration is not found, a new
+ * workstation configuration is created. In this situation, update_mask
+ * is ignored.
*/
// const allowMissing = true
diff --git a/packages/google-cloud-workstations/samples/generated/v1beta/workstations.update_workstation_config.js b/packages/google-cloud-workstations/samples/generated/v1beta/workstations.update_workstation_config.js
index 2fe7823e849..1d4a94bc91a 100644
--- a/packages/google-cloud-workstations/samples/generated/v1beta/workstations.update_workstation_config.js
+++ b/packages/google-cloud-workstations/samples/generated/v1beta/workstations.update_workstation_config.js
@@ -33,7 +33,8 @@ function main(workstationConfig, updateMask) {
*/
// const workstationConfig = {}
/**
- * Required. Mask specifying which fields in the config should be updated.
+ * Required. Mask specifying which fields in the workstation configuration
+ * should be updated.
*/
// const updateMask = {}
/**
@@ -42,8 +43,9 @@ function main(workstationConfig, updateMask) {
*/
// const validateOnly = true
/**
- * If set, and the config is not found, a new config will be created.
- * In this situation, update_mask is ignored.
+ * If set and the workstation configuration is not found, a new
+ * workstation configuration will be created. In this situation,
+ * update_mask is ignored.
*/
// const allowMissing = true
diff --git a/packages/google-cloud-workstations/src/v1/workstations_client.ts b/packages/google-cloud-workstations/src/v1/workstations_client.ts
index 5f04d5e87a6..39cfa89ca3c 100644
--- a/packages/google-cloud-workstations/src/v1/workstations_client.ts
+++ b/packages/google-cloud-workstations/src/v1/workstations_client.ts
@@ -1315,7 +1315,7 @@ export class WorkstationsClient {
* If set, validate the request and preview the review, but do not apply it.
* @param {string} request.etag
* If set, the request will be rejected if the latest version of the
- * workstation cluster on the server does not have this etag.
+ * workstation cluster on the server does not have this ETag.
* @param {boolean} request.force
* If set, any workstation configurations and workstations in the
* workstation cluster are also deleted. Otherwise, the request only
@@ -1463,7 +1463,7 @@ export class WorkstationsClient {
* @param {string} request.parent
* Required. Parent resource name.
* @param {string} request.workstationConfigId
- * Required. ID to use for the config.
+ * Required. ID to use for the workstation configuration.
* @param {google.cloud.workstations.v1.WorkstationConfig} request.workstationConfig
* Required. Config to create.
* @param {boolean} request.validateOnly
@@ -1612,13 +1612,15 @@ export class WorkstationsClient {
* @param {google.cloud.workstations.v1.WorkstationConfig} request.workstationConfig
* Required. Config to update.
* @param {google.protobuf.FieldMask} request.updateMask
- * Required. Mask specifying which fields in the config should be updated.
+ * Required. Mask specifying which fields in the workstation configuration
+ * should be updated.
* @param {boolean} request.validateOnly
* If set, validate the request and preview the review, but do not actually
* apply it.
* @param {boolean} request.allowMissing
- * If set, and the config is not found, a new config will be created.
- * In this situation, update_mask is ignored.
+ * If set and the workstation configuration is not found, a new
+ * workstation configuration will be created. In this situation,
+ * update_mask is ignored.
* @param {object} [options]
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
* @returns {Promise} - The promise which resolves to an array.
@@ -1760,16 +1762,17 @@ export class WorkstationsClient {
* @param {Object} request
* The request object that will be sent.
* @param {string} request.name
- * Required. Name of the config to delete.
+ * Required. Name of the workstation configuration to delete.
* @param {boolean} request.validateOnly
* If set, validate the request and preview the review, but do not actually
* apply it.
* @param {string} request.etag
- * If set, the request will be rejected if the latest version of the config on
- * the server does not have this etag.
+ * If set, the request is rejected if the latest version of the
+ * workstation configuration on the server does not have this ETag.
* @param {boolean} request.force
- * If set, any Workstations in the config will also be deleted. Otherwise,
- * the request will work only if the config has no workstations.
+ * If set, any workstations in the workstation configuration are also deleted.
+ * Otherwise, the request works only if the workstation configuration has
+ * no workstations.
* @param {object} [options]
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
* @returns {Promise} - The promise which resolves to an array.
@@ -2058,13 +2061,15 @@ export class WorkstationsClient {
* @param {google.cloud.workstations.v1.Workstation} request.workstation
* Required. Workstation to update.
* @param {google.protobuf.FieldMask} request.updateMask
- * Required. Mask specifying which fields in the config should be updated.
+ * Required. Mask specifying which fields in the workstation configuration
+ * should be updated.
* @param {boolean} request.validateOnly
* If set, validate the request and preview the review, but do not actually
* apply it.
* @param {boolean} request.allowMissing
- * If set, and the config is not found, a new config will be created.
- * In this situation, update_mask is ignored.
+ * If set and the workstation configuration is not found, a new
+ * workstation configuration is created. In this situation, update_mask
+ * is ignored.
* @param {object} [options]
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
* @returns {Promise} - The promise which resolves to an array.
@@ -2208,7 +2213,7 @@ export class WorkstationsClient {
* apply it.
* @param {string} request.etag
* If set, the request will be rejected if the latest version of the
- * workstation on the server does not have this etag.
+ * workstation on the server does not have this ETag.
* @param {object} [options]
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
* @returns {Promise} - The promise which resolves to an array.
@@ -2352,7 +2357,7 @@ export class WorkstationsClient {
* apply it.
* @param {string} request.etag
* If set, the request will be rejected if the latest version of the
- * workstation on the server does not have this etag.
+ * workstation on the server does not have this ETag.
* @param {object} [options]
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
* @returns {Promise} - The promise which resolves to an array.
@@ -2496,7 +2501,7 @@ export class WorkstationsClient {
* apply it.
* @param {string} request.etag
* If set, the request will be rejected if the latest version of the
- * workstation on the server does not have this etag.
+ * workstation on the server does not have this ETag.
* @param {object} [options]
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
* @returns {Promise} - The promise which resolves to an array.
@@ -2822,7 +2827,7 @@ export class WorkstationsClient {
) as AsyncIterable;
}
/**
- * Returns all WorkstationConfigs in the specified cluster.
+ * Returns all workstation configurations in the specified cluster.
*
* @param {Object} request
* The request object that will be sent.
@@ -3209,7 +3214,7 @@ export class WorkstationsClient {
) as AsyncIterable;
}
/**
- * Returns all Workstations using the specified config.
+ * Returns all Workstations using the specified workstation configuration.
*
* @param {Object} request
* The request object that will be sent.
@@ -3398,8 +3403,8 @@ export class WorkstationsClient {
) as AsyncIterable;
}
/**
- * Returns all Workstations using the specified config on which the caller has
- * the "workstations.workstations.use" permission.
+ * Returns all workstations using the specified workstation configuration
+ * on which the caller has the "workstations.workstations.use" permission.
*
* @param {Object} request
* The request object that will be sent.
diff --git a/packages/google-cloud-workstations/src/v1beta/workstations_client.ts b/packages/google-cloud-workstations/src/v1beta/workstations_client.ts
index a1c9a6e6e07..b74e54f9068 100644
--- a/packages/google-cloud-workstations/src/v1beta/workstations_client.ts
+++ b/packages/google-cloud-workstations/src/v1beta/workstations_client.ts
@@ -1321,7 +1321,7 @@ export class WorkstationsClient {
* If set, validate the request and preview the review, but do not apply it.
* @param {string} request.etag
* If set, the request will be rejected if the latest version of the
- * workstation cluster on the server does not have this etag.
+ * workstation cluster on the server does not have this ETag.
* @param {boolean} request.force
* If set, any workstation configurations and workstations in the
* workstation cluster are also deleted. Otherwise, the request only
@@ -1469,7 +1469,7 @@ export class WorkstationsClient {
* @param {string} request.parent
* Required. Parent resource name.
* @param {string} request.workstationConfigId
- * Required. ID to use for the config.
+ * Required. ID to use for the workstation configuration.
* @param {google.cloud.workstations.v1beta.WorkstationConfig} request.workstationConfig
* Required. Config to create.
* @param {boolean} request.validateOnly
@@ -1618,13 +1618,15 @@ export class WorkstationsClient {
* @param {google.cloud.workstations.v1beta.WorkstationConfig} request.workstationConfig
* Required. Config to update.
* @param {google.protobuf.FieldMask} request.updateMask
- * Required. Mask specifying which fields in the config should be updated.
+ * Required. Mask specifying which fields in the workstation configuration
+ * should be updated.
* @param {boolean} request.validateOnly
* If set, validate the request and preview the review, but do not actually
* apply it.
* @param {boolean} request.allowMissing
- * If set, and the config is not found, a new config will be created.
- * In this situation, update_mask is ignored.
+ * If set and the workstation configuration is not found, a new
+ * workstation configuration will be created. In this situation,
+ * update_mask is ignored.
* @param {object} [options]
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
* @returns {Promise} - The promise which resolves to an array.
@@ -1766,16 +1768,17 @@ export class WorkstationsClient {
* @param {Object} request
* The request object that will be sent.
* @param {string} request.name
- * Required. Name of the config to delete.
+ * Required. Name of the workstation configuration to delete.
* @param {boolean} request.validateOnly
* If set, validate the request and preview the review, but do not actually
* apply it.
* @param {string} request.etag
- * If set, the request will be rejected if the latest version of the config on
- * the server does not have this etag.
+ * If set, the request is rejected if the latest version of the
+ * workstation configuration on the server does not have this ETag.
* @param {boolean} request.force
- * If set, any Workstations in the config will also be deleted. Otherwise,
- * the request will work only if the config has no workstations.
+ * If set, any workstations in the workstation configuration are also deleted.
+ * Otherwise, the request works only if the workstation configuration has
+ * no workstations.
* @param {object} [options]
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
* @returns {Promise} - The promise which resolves to an array.
@@ -2064,13 +2067,15 @@ export class WorkstationsClient {
* @param {google.cloud.workstations.v1beta.Workstation} request.workstation
* Required. Workstation to update.
* @param {google.protobuf.FieldMask} request.updateMask
- * Required. Mask specifying which fields in the config should be updated.
+ * Required. Mask specifying which fields in the workstation configuration
+ * should be updated.
* @param {boolean} request.validateOnly
* If set, validate the request and preview the review, but do not actually
* apply it.
* @param {boolean} request.allowMissing
- * If set, and the config is not found, a new config will be created.
- * In this situation, update_mask is ignored.
+ * If set and the workstation configuration is not found, a new
+ * workstation configuration is created. In this situation, update_mask
+ * is ignored.
* @param {object} [options]
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
* @returns {Promise} - The promise which resolves to an array.
@@ -2214,7 +2219,7 @@ export class WorkstationsClient {
* apply it.
* @param {string} request.etag
* If set, the request will be rejected if the latest version of the
- * workstation on the server does not have this etag.
+ * workstation on the server does not have this ETag.
* @param {object} [options]
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
* @returns {Promise} - The promise which resolves to an array.
@@ -2358,7 +2363,7 @@ export class WorkstationsClient {
* apply it.
* @param {string} request.etag
* If set, the request will be rejected if the latest version of the
- * workstation on the server does not have this etag.
+ * workstation on the server does not have this ETag.
* @param {object} [options]
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
* @returns {Promise} - The promise which resolves to an array.
@@ -2502,7 +2507,7 @@ export class WorkstationsClient {
* apply it.
* @param {string} request.etag
* If set, the request will be rejected if the latest version of the
- * workstation on the server does not have this etag.
+ * workstation on the server does not have this ETag.
* @param {object} [options]
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
* @returns {Promise} - The promise which resolves to an array.
@@ -3215,7 +3220,7 @@ export class WorkstationsClient {
) as AsyncIterable;
}
/**
- * Returns all Workstations using the specified config.
+ * Returns all Workstations using the specified workstation configuration.
*
* @param {Object} request
* The request object that will be sent.
@@ -3404,8 +3409,8 @@ export class WorkstationsClient {
) as AsyncIterable;
}
/**
- * Returns all Workstations using the specified config on which the caller has
- * the "workstations.workstations.use" permission.
+ * Returns all workstations using the specified workstation configuration
+ * on which the caller has the "workstations.workstations.use" permission.
*
* @param {Object} request
* The request object that will be sent.