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

fix: synth.py clean up for multiple version #115

Merged
merged 1 commit into from
May 6, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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": "[email protected]: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()