Skip to content

Commit 6d1d7bf

Browse files
fix: synth.py clean up for multiple version (#115)
1 parent a3ea8a6 commit 6d1d7bf

File tree

3 files changed

+23
-12
lines changed

3 files changed

+23
-12
lines changed

packages/google-devtools-cloudbuild/src/index.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414
//
15-
// ** This file is automatically generated by gapic-generator-typescript. **
16-
// ** https://github.com/googleapis/gapic-generator-typescript **
15+
// ** This file is automatically generated by synthtool. **
16+
// ** https://github.com/googleapis/synthtool **
1717
// ** All changes to this file may be overwritten. **
1818

1919
import * as v1 from './v1';
20+
2021
const CloudBuildClient = v1.CloudBuildClient;
22+
2123
export {v1, CloudBuildClient};
2224
export default {v1, CloudBuildClient};
2325
import * as protos from '../protos/protos';

packages/google-devtools-cloudbuild/synth.metadata

+9-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,15 @@
44
"git": {
55
"name": ".",
66
"remote": "[email protected]:googleapis/nodejs-cloudbuild.git",
7-
"sha": "7b55f19b90423b4e1ab4db41707ad26b036cb935"
7+
"sha": "7b50a74c098e782393f92140a37e3bd26f45e77d"
8+
}
9+
},
10+
{
11+
"git": {
12+
"name": "googleapis",
13+
"remote": "https://github.com/googleapis/googleapis.git",
14+
"sha": "a3a0bf0f6291d69f2ff3df7fcd63d28ee20ac727",
15+
"internalRef": "310060413"
816
}
917
},
1018
{

packages/google-devtools-cloudbuild/synth.py

+10-9
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,20 @@
2727
gapic = gcp.GAPICMicrogenerator()
2828
versions = ['v1']
2929
for version in versions:
30-
library = gapic.typescript_library(
31-
'cloudbuild',
32-
generator_args={
33-
"grpc-service-config": "google/devtools/cloudbuild/v1/cloudbuild_grpc_service_config.json",
34-
"package-name": "@google-cloud/cloudbuild"
35-
},
36-
proto_path='/google/devtools/cloudbuild/v1',
37-
version=version)
30+
library = gapic.typescript_library(
31+
'cloudbuild',
32+
generator_args={
33+
"grpc-service-config": "google/devtools/cloudbuild/v1/cloudbuild_grpc_service_config.json",
34+
"package-name": "@google-cloud/cloudbuild"
35+
},
36+
proto_path='/google/devtools/cloudbuild/v1',
37+
version=version)
3838
s.copy(library, excludes=['README.md', 'package.json'])
3939

4040
# Copy common templates
4141
common_templates = gcp.CommonTemplates()
42-
templates = common_templates.node_library(source_location='build/src')
42+
templates = common_templates.node_library(
43+
source_location='build/src', versions=versions, default_version='v1')
4344
s.copy(templates, excludes=[])
4445

4546
node.postprocess_gapic_library()

0 commit comments

Comments
 (0)