diff --git a/src/index.ts b/src/index.ts index 0777353..ac851b0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -12,12 +12,14 @@ // 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 ** +// ** This file is automatically generated by synthtool. ** +// ** https://github.com/googleapis/synthtool ** // ** All changes to this file may be overwritten. ** import * as v1 from './v1'; + const CloudBuildClient = v1.CloudBuildClient; + export {v1, CloudBuildClient}; export default {v1, CloudBuildClient}; import * as protos from '../protos/protos'; diff --git a/synth.metadata b/synth.metadata index f9c38ca..58b9662 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,15 @@ "git": { "name": ".", "remote": "git@github.com:googleapis/nodejs-cloudbuild.git", - "sha": "7b55f19b90423b4e1ab4db41707ad26b036cb935" + "sha": "7b50a74c098e782393f92140a37e3bd26f45e77d" + } + }, + { + "git": { + "name": "googleapis", + "remote": "https://github.com/googleapis/googleapis.git", + "sha": "a3a0bf0f6291d69f2ff3df7fcd63d28ee20ac727", + "internalRef": "310060413" } }, { diff --git a/synth.py b/synth.py index cbf95c5..a14fc85 100644 --- a/synth.py +++ b/synth.py @@ -27,19 +27,20 @@ gapic = gcp.GAPICMicrogenerator() versions = ['v1'] for version in versions: - library = gapic.typescript_library( - 'cloudbuild', - generator_args={ - "grpc-service-config": "google/devtools/cloudbuild/v1/cloudbuild_grpc_service_config.json", - "package-name": "@google-cloud/cloudbuild" - }, - proto_path='/google/devtools/cloudbuild/v1', - version=version) + library = gapic.typescript_library( + 'cloudbuild', + generator_args={ + "grpc-service-config": "google/devtools/cloudbuild/v1/cloudbuild_grpc_service_config.json", + "package-name": "@google-cloud/cloudbuild" + }, + proto_path='/google/devtools/cloudbuild/v1', + version=version) s.copy(library, excludes=['README.md', 'package.json']) # Copy common templates common_templates = gcp.CommonTemplates() -templates = common_templates.node_library(source_location='build/src') +templates = common_templates.node_library( + source_location='build/src', versions=versions, default_version='v1') s.copy(templates, excludes=[]) node.postprocess_gapic_library()