diff --git a/librarian.yaml b/librarian.yaml index 19297c9adb66..659896e09479 100644 --- a/librarian.yaml +++ b/librarian.yaml @@ -1714,7 +1714,6 @@ libraries: - path: google/cloud/workstations/v1 - path: google/cloud/workstations/v1beta copyright_year: "2026" - skip_generate: true nodejs: default_version: v1beta - name: google-container diff --git a/packages/google-cloud-workstations/.OwlBot.yaml b/packages/google-cloud-workstations/.OwlBot.yaml deleted file mode 100644 index a02213739f34..000000000000 --- a/packages/google-cloud-workstations/.OwlBot.yaml +++ /dev/null @@ -1,19 +0,0 @@ -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -deep-copy-regex: - - source: /google/cloud/workstations/google-cloud-workstations-nodejs - dest: /owl-bot-staging/google-cloud-workstations - -api-name: workstations diff --git a/packages/google-cloud-workstations/.eslintignore b/packages/google-cloud-workstations/.eslintignore deleted file mode 100644 index cfc348ec4d11..000000000000 --- a/packages/google-cloud-workstations/.eslintignore +++ /dev/null @@ -1,7 +0,0 @@ -**/node_modules -**/.coverage -build/ -docs/ -protos/ -system-test/ -samples/generated/ diff --git a/packages/google-cloud-workstations/.eslintrc.json b/packages/google-cloud-workstations/.eslintrc.json deleted file mode 100644 index 3e8d97ccb390..000000000000 --- a/packages/google-cloud-workstations/.eslintrc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "extends": "./node_modules/gts", - "root": true -} diff --git a/packages/google-cloud-workstations/.mocharc.js b/packages/google-cloud-workstations/.mocharc.js deleted file mode 100644 index 5eb34e86c874..000000000000 --- a/packages/google-cloud-workstations/.mocharc.js +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright 2026 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// ** This file is automatically generated by gapic-generator-typescript. ** -// ** https://github.com/googleapis/gapic-generator-typescript ** -// ** All changes to this file may be overwritten. ** - -const config = { - "enable-source-maps": true, - "throw-deprecation": true, - "timeout": 10000 -} -if (process.env.MOCHA_THROW_DEPRECATION === 'false') { - delete config['throw-deprecation']; -} -if (process.env.MOCHA_REPORTER) { - config.reporter = process.env.MOCHA_REPORTER; -} -if (process.env.MOCHA_REPORTER_OUTPUT) { - config['reporter-option'] = `output=${process.env.MOCHA_REPORTER_OUTPUT}`; -} -module.exports = config diff --git a/packages/google-cloud-workstations/.repo-metadata.json b/packages/google-cloud-workstations/.repo-metadata.json index 41459cd35d28..01e417b01420 100644 --- a/packages/google-cloud-workstations/.repo-metadata.json +++ b/packages/google-cloud-workstations/.repo-metadata.json @@ -1,17 +1,16 @@ { - "name": "workstations", - "name_pretty": "Cloud Workstations API", - "product_documentation": "https://cloud.google.com/workstations/docs", - "client_documentation": "https://cloud.google.com/nodejs/docs/reference/workstations/latest", - "issue_tracker": "https://github.com/googleapis/google-cloud-node/issues", - "release_level": "stable", - "language": "nodejs", - "repo": "googleapis/google-cloud-node", - "distribution_name": "@google-cloud/workstations", - "api_id": "workstations.googleapis.com", - "default_version": "v1beta", - "requires_billing": true, - "library_type": "GAPIC_AUTO", - "api_shortname": "workstations" -} - + "api_description": "Allows administrators to create managed developer environments in the cloud.", + "api_id": "workstations.googleapis.com", + "api_shortname": "workstations", + "client_documentation": "https://cloud.google.com/nodejs/docs/reference/workstations/latest", + "default_version": "v1beta", + "distribution_name": "@google-cloud/workstations", + "issue_tracker": "https://issuetracker.google.com/issues/new?component=1328344", + "language": "nodejs", + "library_type": "GAPIC_AUTO", + "name": "workstations", + "name_pretty": "Cloud Workstations", + "product_documentation": "https://cloud.google.com/workstations/docs", + "release_level": "stable", + "repo": "googleapis/google-cloud-node" +} \ No newline at end of file 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 deleted file mode 100644 index 0a46737548b2..000000000000 --- a/packages/google-cloud-workstations/samples/generated/v1/snippet_metadata_google.cloud.workstations.v1.json +++ /dev/null @@ -1,1003 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-workstations", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.workstations.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "workstations_v1_generated_Workstations_GetWorkstationCluster_async", - "title": "Workstations getWorkstationCluster Sample", - "origin": "API_DEFINITION", - "description": " Returns the requested workstation cluster.", - "canonical": true, - "file": "workstations.get_workstation_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetWorkstationCluster", - "fullName": "google.cloud.workstations.v1.Workstations.GetWorkstationCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.workstations.v1.WorkstationCluster", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1.WorkstationsClient" - }, - "method": { - "shortName": "GetWorkstationCluster", - "fullName": "google.cloud.workstations.v1.Workstations.GetWorkstationCluster", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1_generated_Workstations_ListWorkstationClusters_async", - "title": "Workstations listWorkstationClusters Sample", - "origin": "API_DEFINITION", - "description": " Returns all workstation clusters in the specified location.", - "canonical": true, - "file": "workstations.list_workstation_clusters.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListWorkstationClusters", - "fullName": "google.cloud.workstations.v1.Workstations.ListWorkstationClusters", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.workstations.v1.ListWorkstationClustersResponse", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1.WorkstationsClient" - }, - "method": { - "shortName": "ListWorkstationClusters", - "fullName": "google.cloud.workstations.v1.Workstations.ListWorkstationClusters", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1_generated_Workstations_CreateWorkstationCluster_async", - "title": "Workstations createWorkstationCluster Sample", - "origin": "API_DEFINITION", - "description": " Creates a new workstation cluster.", - "canonical": true, - "file": "workstations.create_workstation_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateWorkstationCluster", - "fullName": "google.cloud.workstations.v1.Workstations.CreateWorkstationCluster", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "workstation_cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "workstation_cluster", - "type": ".google.cloud.workstations.v1.WorkstationCluster" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1.WorkstationsClient" - }, - "method": { - "shortName": "CreateWorkstationCluster", - "fullName": "google.cloud.workstations.v1.Workstations.CreateWorkstationCluster", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1_generated_Workstations_UpdateWorkstationCluster_async", - "title": "Workstations updateWorkstationCluster Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing workstation cluster.", - "canonical": true, - "file": "workstations.update_workstation_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateWorkstationCluster", - "fullName": "google.cloud.workstations.v1.Workstations.UpdateWorkstationCluster", - "async": true, - "parameters": [ - { - "name": "workstation_cluster", - "type": ".google.cloud.workstations.v1.WorkstationCluster" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1.WorkstationsClient" - }, - "method": { - "shortName": "UpdateWorkstationCluster", - "fullName": "google.cloud.workstations.v1.Workstations.UpdateWorkstationCluster", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1_generated_Workstations_DeleteWorkstationCluster_async", - "title": "Workstations deleteWorkstationCluster Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified workstation cluster.", - "canonical": true, - "file": "workstations.delete_workstation_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteWorkstationCluster", - "fullName": "google.cloud.workstations.v1.Workstations.DeleteWorkstationCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1.WorkstationsClient" - }, - "method": { - "shortName": "DeleteWorkstationCluster", - "fullName": "google.cloud.workstations.v1.Workstations.DeleteWorkstationCluster", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1_generated_Workstations_GetWorkstationConfig_async", - "title": "Workstations getWorkstationConfig Sample", - "origin": "API_DEFINITION", - "description": " Returns the requested workstation configuration.", - "canonical": true, - "file": "workstations.get_workstation_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetWorkstationConfig", - "fullName": "google.cloud.workstations.v1.Workstations.GetWorkstationConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.workstations.v1.WorkstationConfig", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1.WorkstationsClient" - }, - "method": { - "shortName": "GetWorkstationConfig", - "fullName": "google.cloud.workstations.v1.Workstations.GetWorkstationConfig", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1_generated_Workstations_ListWorkstationConfigs_async", - "title": "Workstations listWorkstationConfigs Sample", - "origin": "API_DEFINITION", - "description": " Returns all workstation configurations in the specified cluster.", - "canonical": true, - "file": "workstations.list_workstation_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListWorkstationConfigs", - "fullName": "google.cloud.workstations.v1.Workstations.ListWorkstationConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.workstations.v1.ListWorkstationConfigsResponse", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1.WorkstationsClient" - }, - "method": { - "shortName": "ListWorkstationConfigs", - "fullName": "google.cloud.workstations.v1.Workstations.ListWorkstationConfigs", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1_generated_Workstations_ListUsableWorkstationConfigs_async", - "title": "Workstations listUsableWorkstationConfigs Sample", - "origin": "API_DEFINITION", - "description": " Returns all workstation configurations in the specified cluster on which the caller has the \"workstations.workstation.create\" permission.", - "canonical": true, - "file": "workstations.list_usable_workstation_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListUsableWorkstationConfigs", - "fullName": "google.cloud.workstations.v1.Workstations.ListUsableWorkstationConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1.WorkstationsClient" - }, - "method": { - "shortName": "ListUsableWorkstationConfigs", - "fullName": "google.cloud.workstations.v1.Workstations.ListUsableWorkstationConfigs", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1_generated_Workstations_CreateWorkstationConfig_async", - "title": "Workstations createWorkstationConfig Sample", - "origin": "API_DEFINITION", - "description": " Creates a new workstation configuration.", - "canonical": true, - "file": "workstations.create_workstation_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateWorkstationConfig", - "fullName": "google.cloud.workstations.v1.Workstations.CreateWorkstationConfig", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "workstation_config_id", - "type": "TYPE_STRING" - }, - { - "name": "workstation_config", - "type": ".google.cloud.workstations.v1.WorkstationConfig" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1.WorkstationsClient" - }, - "method": { - "shortName": "CreateWorkstationConfig", - "fullName": "google.cloud.workstations.v1.Workstations.CreateWorkstationConfig", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1_generated_Workstations_UpdateWorkstationConfig_async", - "title": "Workstations updateWorkstationConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing workstation configuration.", - "canonical": true, - "file": "workstations.update_workstation_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateWorkstationConfig", - "fullName": "google.cloud.workstations.v1.Workstations.UpdateWorkstationConfig", - "async": true, - "parameters": [ - { - "name": "workstation_config", - "type": ".google.cloud.workstations.v1.WorkstationConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1.WorkstationsClient" - }, - "method": { - "shortName": "UpdateWorkstationConfig", - "fullName": "google.cloud.workstations.v1.Workstations.UpdateWorkstationConfig", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1_generated_Workstations_DeleteWorkstationConfig_async", - "title": "Workstations deleteWorkstationConfig Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified workstation configuration.", - "canonical": true, - "file": "workstations.delete_workstation_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteWorkstationConfig", - "fullName": "google.cloud.workstations.v1.Workstations.DeleteWorkstationConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1.WorkstationsClient" - }, - "method": { - "shortName": "DeleteWorkstationConfig", - "fullName": "google.cloud.workstations.v1.Workstations.DeleteWorkstationConfig", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1_generated_Workstations_GetWorkstation_async", - "title": "Workstations getWorkstation Sample", - "origin": "API_DEFINITION", - "description": " Returns the requested workstation.", - "canonical": true, - "file": "workstations.get_workstation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetWorkstation", - "fullName": "google.cloud.workstations.v1.Workstations.GetWorkstation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.workstations.v1.Workstation", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1.WorkstationsClient" - }, - "method": { - "shortName": "GetWorkstation", - "fullName": "google.cloud.workstations.v1.Workstations.GetWorkstation", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1_generated_Workstations_ListWorkstations_async", - "title": "Workstations listWorkstations Sample", - "origin": "API_DEFINITION", - "description": " Returns all Workstations using the specified workstation configuration.", - "canonical": true, - "file": "workstations.list_workstations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListWorkstations", - "fullName": "google.cloud.workstations.v1.Workstations.ListWorkstations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.workstations.v1.ListWorkstationsResponse", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1.WorkstationsClient" - }, - "method": { - "shortName": "ListWorkstations", - "fullName": "google.cloud.workstations.v1.Workstations.ListWorkstations", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1_generated_Workstations_ListUsableWorkstations_async", - "title": "Workstations listUsableWorkstations Sample", - "origin": "API_DEFINITION", - "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", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListUsableWorkstations", - "fullName": "google.cloud.workstations.v1.Workstations.ListUsableWorkstations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.workstations.v1.ListUsableWorkstationsResponse", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1.WorkstationsClient" - }, - "method": { - "shortName": "ListUsableWorkstations", - "fullName": "google.cloud.workstations.v1.Workstations.ListUsableWorkstations", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1_generated_Workstations_CreateWorkstation_async", - "title": "Workstations createWorkstation Sample", - "origin": "API_DEFINITION", - "description": " Creates a new workstation.", - "canonical": true, - "file": "workstations.create_workstation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateWorkstation", - "fullName": "google.cloud.workstations.v1.Workstations.CreateWorkstation", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "workstation_id", - "type": "TYPE_STRING" - }, - { - "name": "workstation", - "type": ".google.cloud.workstations.v1.Workstation" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1.WorkstationsClient" - }, - "method": { - "shortName": "CreateWorkstation", - "fullName": "google.cloud.workstations.v1.Workstations.CreateWorkstation", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1_generated_Workstations_UpdateWorkstation_async", - "title": "Workstations updateWorkstation Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing workstation.", - "canonical": true, - "file": "workstations.update_workstation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateWorkstation", - "fullName": "google.cloud.workstations.v1.Workstations.UpdateWorkstation", - "async": true, - "parameters": [ - { - "name": "workstation", - "type": ".google.cloud.workstations.v1.Workstation" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1.WorkstationsClient" - }, - "method": { - "shortName": "UpdateWorkstation", - "fullName": "google.cloud.workstations.v1.Workstations.UpdateWorkstation", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1_generated_Workstations_DeleteWorkstation_async", - "title": "Workstations deleteWorkstation Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified workstation.", - "canonical": true, - "file": "workstations.delete_workstation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteWorkstation", - "fullName": "google.cloud.workstations.v1.Workstations.DeleteWorkstation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1.WorkstationsClient" - }, - "method": { - "shortName": "DeleteWorkstation", - "fullName": "google.cloud.workstations.v1.Workstations.DeleteWorkstation", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1_generated_Workstations_StartWorkstation_async", - "title": "Workstations startWorkstation Sample", - "origin": "API_DEFINITION", - "description": " Starts running a workstation so that users can connect to it.", - "canonical": true, - "file": "workstations.start_workstation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StartWorkstation", - "fullName": "google.cloud.workstations.v1.Workstations.StartWorkstation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - }, - { - "name": "boost_config", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1.WorkstationsClient" - }, - "method": { - "shortName": "StartWorkstation", - "fullName": "google.cloud.workstations.v1.Workstations.StartWorkstation", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1_generated_Workstations_StopWorkstation_async", - "title": "Workstations stopWorkstation Sample", - "origin": "API_DEFINITION", - "description": " Stops running a workstation, reducing costs.", - "canonical": true, - "file": "workstations.stop_workstation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StopWorkstation", - "fullName": "google.cloud.workstations.v1.Workstations.StopWorkstation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1.WorkstationsClient" - }, - "method": { - "shortName": "StopWorkstation", - "fullName": "google.cloud.workstations.v1.Workstations.StopWorkstation", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1_generated_Workstations_GenerateAccessToken_async", - "title": "Workstations generateAccessToken Sample", - "origin": "API_DEFINITION", - "description": " Returns a short-lived credential that can be used to send authenticated and authorized traffic to a workstation. Once generated this token cannot be revoked and is good for the lifetime of the token.", - "canonical": true, - "file": "workstations.generate_access_token.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateAccessToken", - "fullName": "google.cloud.workstations.v1.Workstations.GenerateAccessToken", - "async": true, - "parameters": [ - { - "name": "expire_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "ttl", - "type": ".google.protobuf.Duration" - }, - { - "name": "workstation", - "type": "TYPE_STRING" - }, - { - "name": "port", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.workstations.v1.GenerateAccessTokenResponse", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1.WorkstationsClient" - }, - "method": { - "shortName": "GenerateAccessToken", - "fullName": "google.cloud.workstations.v1.Workstations.GenerateAccessToken", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1.Workstations" - } - } - } - } - ] -} 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 deleted file mode 100644 index 83e7f0860cc6..000000000000 --- a/packages/google-cloud-workstations/samples/generated/v1beta/snippet_metadata_google.cloud.workstations.v1beta.json +++ /dev/null @@ -1,1047 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-workstations", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.workstations.v1beta", - "version": "v1beta" - } - ] - }, - "snippets": [ - { - "regionTag": "workstations_v1beta_generated_Workstations_GetWorkstationCluster_async", - "title": "Workstations getWorkstationCluster Sample", - "origin": "API_DEFINITION", - "description": " Returns the requested workstation cluster.", - "canonical": true, - "file": "workstations.get_workstation_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetWorkstationCluster", - "fullName": "google.cloud.workstations.v1beta.Workstations.GetWorkstationCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.workstations.v1beta.WorkstationCluster", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1beta.WorkstationsClient" - }, - "method": { - "shortName": "GetWorkstationCluster", - "fullName": "google.cloud.workstations.v1beta.Workstations.GetWorkstationCluster", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1beta.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1beta_generated_Workstations_ListWorkstationClusters_async", - "title": "Workstations listWorkstationClusters Sample", - "origin": "API_DEFINITION", - "description": " Returns all workstation clusters in the specified location.", - "canonical": true, - "file": "workstations.list_workstation_clusters.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListWorkstationClusters", - "fullName": "google.cloud.workstations.v1beta.Workstations.ListWorkstationClusters", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.workstations.v1beta.ListWorkstationClustersResponse", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1beta.WorkstationsClient" - }, - "method": { - "shortName": "ListWorkstationClusters", - "fullName": "google.cloud.workstations.v1beta.Workstations.ListWorkstationClusters", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1beta.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1beta_generated_Workstations_CreateWorkstationCluster_async", - "title": "Workstations createWorkstationCluster Sample", - "origin": "API_DEFINITION", - "description": " Creates a new workstation cluster.", - "canonical": true, - "file": "workstations.create_workstation_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateWorkstationCluster", - "fullName": "google.cloud.workstations.v1beta.Workstations.CreateWorkstationCluster", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "workstation_cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "workstation_cluster", - "type": ".google.cloud.workstations.v1beta.WorkstationCluster" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1beta.WorkstationsClient" - }, - "method": { - "shortName": "CreateWorkstationCluster", - "fullName": "google.cloud.workstations.v1beta.Workstations.CreateWorkstationCluster", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1beta.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1beta_generated_Workstations_UpdateWorkstationCluster_async", - "title": "Workstations updateWorkstationCluster Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing workstation cluster.", - "canonical": true, - "file": "workstations.update_workstation_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateWorkstationCluster", - "fullName": "google.cloud.workstations.v1beta.Workstations.UpdateWorkstationCluster", - "async": true, - "parameters": [ - { - "name": "workstation_cluster", - "type": ".google.cloud.workstations.v1beta.WorkstationCluster" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1beta.WorkstationsClient" - }, - "method": { - "shortName": "UpdateWorkstationCluster", - "fullName": "google.cloud.workstations.v1beta.Workstations.UpdateWorkstationCluster", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1beta.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1beta_generated_Workstations_DeleteWorkstationCluster_async", - "title": "Workstations deleteWorkstationCluster Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified workstation cluster.", - "canonical": true, - "file": "workstations.delete_workstation_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteWorkstationCluster", - "fullName": "google.cloud.workstations.v1beta.Workstations.DeleteWorkstationCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1beta.WorkstationsClient" - }, - "method": { - "shortName": "DeleteWorkstationCluster", - "fullName": "google.cloud.workstations.v1beta.Workstations.DeleteWorkstationCluster", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1beta.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1beta_generated_Workstations_GetWorkstationConfig_async", - "title": "Workstations getWorkstationConfig Sample", - "origin": "API_DEFINITION", - "description": " Returns the requested workstation configuration.", - "canonical": true, - "file": "workstations.get_workstation_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetWorkstationConfig", - "fullName": "google.cloud.workstations.v1beta.Workstations.GetWorkstationConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.workstations.v1beta.WorkstationConfig", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1beta.WorkstationsClient" - }, - "method": { - "shortName": "GetWorkstationConfig", - "fullName": "google.cloud.workstations.v1beta.Workstations.GetWorkstationConfig", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1beta.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1beta_generated_Workstations_ListWorkstationConfigs_async", - "title": "Workstations listWorkstationConfigs Sample", - "origin": "API_DEFINITION", - "description": " Returns all workstation configurations in the specified cluster.", - "canonical": true, - "file": "workstations.list_workstation_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListWorkstationConfigs", - "fullName": "google.cloud.workstations.v1beta.Workstations.ListWorkstationConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.workstations.v1beta.ListWorkstationConfigsResponse", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1beta.WorkstationsClient" - }, - "method": { - "shortName": "ListWorkstationConfigs", - "fullName": "google.cloud.workstations.v1beta.Workstations.ListWorkstationConfigs", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1beta.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1beta_generated_Workstations_ListUsableWorkstationConfigs_async", - "title": "Workstations listUsableWorkstationConfigs Sample", - "origin": "API_DEFINITION", - "description": " Returns all workstation configurations in the specified cluster on which the caller has the \"workstations.workstation.create\" permission.", - "canonical": true, - "file": "workstations.list_usable_workstation_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListUsableWorkstationConfigs", - "fullName": "google.cloud.workstations.v1beta.Workstations.ListUsableWorkstationConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1beta.WorkstationsClient" - }, - "method": { - "shortName": "ListUsableWorkstationConfigs", - "fullName": "google.cloud.workstations.v1beta.Workstations.ListUsableWorkstationConfigs", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1beta.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1beta_generated_Workstations_CreateWorkstationConfig_async", - "title": "Workstations createWorkstationConfig Sample", - "origin": "API_DEFINITION", - "description": " Creates a new workstation configuration.", - "canonical": true, - "file": "workstations.create_workstation_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateWorkstationConfig", - "fullName": "google.cloud.workstations.v1beta.Workstations.CreateWorkstationConfig", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "workstation_config_id", - "type": "TYPE_STRING" - }, - { - "name": "workstation_config", - "type": ".google.cloud.workstations.v1beta.WorkstationConfig" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1beta.WorkstationsClient" - }, - "method": { - "shortName": "CreateWorkstationConfig", - "fullName": "google.cloud.workstations.v1beta.Workstations.CreateWorkstationConfig", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1beta.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1beta_generated_Workstations_UpdateWorkstationConfig_async", - "title": "Workstations updateWorkstationConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing workstation configuration.", - "canonical": true, - "file": "workstations.update_workstation_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateWorkstationConfig", - "fullName": "google.cloud.workstations.v1beta.Workstations.UpdateWorkstationConfig", - "async": true, - "parameters": [ - { - "name": "workstation_config", - "type": ".google.cloud.workstations.v1beta.WorkstationConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1beta.WorkstationsClient" - }, - "method": { - "shortName": "UpdateWorkstationConfig", - "fullName": "google.cloud.workstations.v1beta.Workstations.UpdateWorkstationConfig", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1beta.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1beta_generated_Workstations_DeleteWorkstationConfig_async", - "title": "Workstations deleteWorkstationConfig Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified workstation configuration.", - "canonical": true, - "file": "workstations.delete_workstation_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteWorkstationConfig", - "fullName": "google.cloud.workstations.v1beta.Workstations.DeleteWorkstationConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1beta.WorkstationsClient" - }, - "method": { - "shortName": "DeleteWorkstationConfig", - "fullName": "google.cloud.workstations.v1beta.Workstations.DeleteWorkstationConfig", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1beta.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1beta_generated_Workstations_GetWorkstation_async", - "title": "Workstations getWorkstation Sample", - "origin": "API_DEFINITION", - "description": " Returns the requested workstation.", - "canonical": true, - "file": "workstations.get_workstation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetWorkstation", - "fullName": "google.cloud.workstations.v1beta.Workstations.GetWorkstation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.workstations.v1beta.Workstation", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1beta.WorkstationsClient" - }, - "method": { - "shortName": "GetWorkstation", - "fullName": "google.cloud.workstations.v1beta.Workstations.GetWorkstation", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1beta.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1beta_generated_Workstations_ListWorkstations_async", - "title": "Workstations listWorkstations Sample", - "origin": "API_DEFINITION", - "description": " Returns all Workstations using the specified workstation configuration.", - "canonical": true, - "file": "workstations.list_workstations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListWorkstations", - "fullName": "google.cloud.workstations.v1beta.Workstations.ListWorkstations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.workstations.v1beta.ListWorkstationsResponse", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1beta.WorkstationsClient" - }, - "method": { - "shortName": "ListWorkstations", - "fullName": "google.cloud.workstations.v1beta.Workstations.ListWorkstations", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1beta.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1beta_generated_Workstations_ListUsableWorkstations_async", - "title": "Workstations listUsableWorkstations Sample", - "origin": "API_DEFINITION", - "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", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListUsableWorkstations", - "fullName": "google.cloud.workstations.v1beta.Workstations.ListUsableWorkstations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.workstations.v1beta.ListUsableWorkstationsResponse", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1beta.WorkstationsClient" - }, - "method": { - "shortName": "ListUsableWorkstations", - "fullName": "google.cloud.workstations.v1beta.Workstations.ListUsableWorkstations", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1beta.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1beta_generated_Workstations_CreateWorkstation_async", - "title": "Workstations createWorkstation Sample", - "origin": "API_DEFINITION", - "description": " Creates a new workstation.", - "canonical": true, - "file": "workstations.create_workstation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateWorkstation", - "fullName": "google.cloud.workstations.v1beta.Workstations.CreateWorkstation", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "workstation_id", - "type": "TYPE_STRING" - }, - { - "name": "workstation", - "type": ".google.cloud.workstations.v1beta.Workstation" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1beta.WorkstationsClient" - }, - "method": { - "shortName": "CreateWorkstation", - "fullName": "google.cloud.workstations.v1beta.Workstations.CreateWorkstation", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1beta.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1beta_generated_Workstations_UpdateWorkstation_async", - "title": "Workstations updateWorkstation Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing workstation.", - "canonical": true, - "file": "workstations.update_workstation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateWorkstation", - "fullName": "google.cloud.workstations.v1beta.Workstations.UpdateWorkstation", - "async": true, - "parameters": [ - { - "name": "workstation", - "type": ".google.cloud.workstations.v1beta.Workstation" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1beta.WorkstationsClient" - }, - "method": { - "shortName": "UpdateWorkstation", - "fullName": "google.cloud.workstations.v1beta.Workstations.UpdateWorkstation", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1beta.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1beta_generated_Workstations_DeleteWorkstation_async", - "title": "Workstations deleteWorkstation Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified workstation.", - "canonical": true, - "file": "workstations.delete_workstation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteWorkstation", - "fullName": "google.cloud.workstations.v1beta.Workstations.DeleteWorkstation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1beta.WorkstationsClient" - }, - "method": { - "shortName": "DeleteWorkstation", - "fullName": "google.cloud.workstations.v1beta.Workstations.DeleteWorkstation", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1beta.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1beta_generated_Workstations_StartWorkstation_async", - "title": "Workstations startWorkstation Sample", - "origin": "API_DEFINITION", - "description": " Starts running a workstation so that users can connect to it.", - "canonical": true, - "file": "workstations.start_workstation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StartWorkstation", - "fullName": "google.cloud.workstations.v1beta.Workstations.StartWorkstation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - }, - { - "name": "boost_config", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1beta.WorkstationsClient" - }, - "method": { - "shortName": "StartWorkstation", - "fullName": "google.cloud.workstations.v1beta.Workstations.StartWorkstation", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1beta.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1beta_generated_Workstations_StopWorkstation_async", - "title": "Workstations stopWorkstation Sample", - "origin": "API_DEFINITION", - "description": " Stops running a workstation, reducing costs.", - "canonical": true, - "file": "workstations.stop_workstation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StopWorkstation", - "fullName": "google.cloud.workstations.v1beta.Workstations.StopWorkstation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1beta.WorkstationsClient" - }, - "method": { - "shortName": "StopWorkstation", - "fullName": "google.cloud.workstations.v1beta.Workstations.StopWorkstation", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1beta.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1beta_generated_Workstations_GenerateAccessToken_async", - "title": "Workstations generateAccessToken Sample", - "origin": "API_DEFINITION", - "description": " Returns a short-lived credential that can be used to send authenticated and authorized traffic to a workstation. Once generated this token cannot be revoked and is good for the lifetime of the token.", - "canonical": true, - "file": "workstations.generate_access_token.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateAccessToken", - "fullName": "google.cloud.workstations.v1beta.Workstations.GenerateAccessToken", - "async": true, - "parameters": [ - { - "name": "expire_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "ttl", - "type": ".google.protobuf.Duration" - }, - { - "name": "workstation", - "type": "TYPE_STRING" - }, - { - "name": "port", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.workstations.v1beta.GenerateAccessTokenResponse", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1beta.WorkstationsClient" - }, - "method": { - "shortName": "GenerateAccessToken", - "fullName": "google.cloud.workstations.v1beta.Workstations.GenerateAccessToken", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1beta.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1beta_generated_Workstations_PushCredentials_async", - "title": "Workstations pushCredentials Sample", - "origin": "API_DEFINITION", - "description": " Pushes credentials to a running workstation on behalf of a user. Once complete, supported credential types (application_default_credentials) are made available to processes running in the user container.", - "canonical": true, - "file": "workstations.push_credentials.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PushCredentials", - "fullName": "google.cloud.workstations.v1beta.Workstations.PushCredentials", - "async": true, - "parameters": [ - { - "name": "workstation", - "type": "TYPE_STRING" - }, - { - "name": "application_default_credentials", - "type": ".google.cloud.workstations.v1beta.PushCredentialsRequest.OAuthToken" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1beta.WorkstationsClient" - }, - "method": { - "shortName": "PushCredentials", - "fullName": "google.cloud.workstations.v1beta.Workstations.PushCredentials", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1beta.Workstations" - } - } - } - } - ] -}