Skip to content

Commit

Permalink
fix: synth.py clean up for multiple version (#373)
Browse files Browse the repository at this point in the history
  • Loading branch information
summer-ji-eng authored May 6, 2020
1 parent 563c43b commit 10b507e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
11 changes: 6 additions & 5 deletions packages/google-cloud-dataproc/src/index.ts
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -12,8 +12,8 @@
// 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';
Expand All @@ -23,6 +23,7 @@ const AutoscalingPolicyServiceClient = v1.AutoscalingPolicyServiceClient;
const ClusterControllerClient = v1.ClusterControllerClient;
const JobControllerClient = v1.JobControllerClient;
const WorkflowTemplateServiceClient = v1.WorkflowTemplateServiceClient;

export {
v1,
v1beta2,
Expand All @@ -31,8 +32,6 @@ export {
JobControllerClient,
WorkflowTemplateServiceClient,
};
// For compatibility with JavaScript libraries we need to provide this default export:
// tslint:disable-next-line no-default-export
export default {
v1,
v1beta2,
Expand All @@ -41,3 +40,5 @@ export default {
JobControllerClient,
WorkflowTemplateServiceClient,
};
import * as protos from '../protos/protos';
export {protos};
10 changes: 9 additions & 1 deletion packages/google-cloud-dataproc/synth.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,15 @@
"git": {
"name": ".",
"remote": "git@github.com:googleapis/nodejs-dataproc.git",
"sha": "add93bce763bd1e2004790feb102a07c110a2372"
"sha": "6f22a66a6f73a758b59d26ced9985530ecc392a9"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "a3a0bf0f6291d69f2ff3df7fcd63d28ee20ac727",
"internalRef": "310060413"
}
},
{
Expand Down
3 changes: 2 additions & 1 deletion packages/google-cloud-dataproc/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
)

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)

node.postprocess_gapic_library()

0 comments on commit 10b507e

Please sign in to comment.