Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
fix: synth.py clean up for multiple version (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
summer-ji-eng committed May 6, 2020
1 parent 7b50a74 commit aa7d99b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 12 deletions.
6 changes: 4 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
10 changes: 9 additions & 1 deletion 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-cloudbuild.git",
"sha": "7b55f19b90423b4e1ab4db41707ad26b036cb935"
"sha": "7b50a74c098e782393f92140a37e3bd26f45e77d"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "a3a0bf0f6291d69f2ff3df7fcd63d28ee20ac727",
"internalRef": "310060413"
}
},
{
Expand Down
19 changes: 10 additions & 9 deletions synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit aa7d99b

Please sign in to comment.