diff --git a/packages/google-cloud-monitoring/src/index.ts b/packages/google-cloud-monitoring/src/index.ts index 09facd7d5f3..8ed785d32a8 100644 --- a/packages/google-cloud-monitoring/src/index.ts +++ b/packages/google-cloud-monitoring/src/index.ts @@ -1,4 +1,4 @@ -// Copyright 2019 Google LLC +// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -12,17 +12,19 @@ // 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 v3 from './v3'; + const AlertPolicyServiceClient = v3.AlertPolicyServiceClient; const GroupServiceClient = v3.GroupServiceClient; const MetricServiceClient = v3.MetricServiceClient; const NotificationChannelServiceClient = v3.NotificationChannelServiceClient; const ServiceMonitoringServiceClient = v3.ServiceMonitoringServiceClient; const UptimeCheckServiceClient = v3.UptimeCheckServiceClient; + export { v3, AlertPolicyServiceClient, @@ -32,8 +34,6 @@ export { ServiceMonitoringServiceClient, UptimeCheckServiceClient, }; -// For compatibility with JavaScript libraries we need to provide this default export: -// tslint:disable-next-line no-default-export export default { v3, AlertPolicyServiceClient, diff --git a/packages/google-cloud-monitoring/synth.metadata b/packages/google-cloud-monitoring/synth.metadata index 3e7c5c6fef8..389c28514fc 100644 --- a/packages/google-cloud-monitoring/synth.metadata +++ b/packages/google-cloud-monitoring/synth.metadata @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "ab883569eb0257bbf16a6d825fd018b3adde3912" + "sha": "756bc4dfc24e8bc4c5dd4116daa41a0440ebf5a0" } } ], diff --git a/packages/google-cloud-monitoring/synth.py b/packages/google-cloud-monitoring/synth.py index f3b5169b62e..43620f53f81 100644 --- a/packages/google-cloud-monitoring/synth.py +++ b/packages/google-cloud-monitoring/synth.py @@ -37,10 +37,11 @@ extra_proto_files=['google/cloud/common_resources.proto'] ) -s.copy(library, excludes=["src/index.ts", "README.md", "package.json"]) +s.copy(library, excludes=["README.md", "package.json"]) common_templates = gcp.CommonTemplates() -templates = common_templates.node_library(source_location='build/src') +templates = common_templates.node_library( + source_location="build/src", versions=["v3"], default_version="v3") s.copy(templates) node.postprocess_gapic_library()