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 (#335)
Browse files Browse the repository at this point in the history
  • Loading branch information
summer-ji-eng authored May 6, 2020
1 parent e51abf7 commit a329db2
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 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 DeviceManagerClient = v1.DeviceManagerClient;

export {v1, DeviceManagerClient};
export default {v1, DeviceManagerClient};
import * as protos from '../protos/protos';
Expand Down
12 changes: 10 additions & 2 deletions synth.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,22 @@
"git": {
"name": ".",
"remote": "git@github.com:googleapis/nodejs-iot.git",
"sha": "7ca140e19076ba61234478ffcb2d02e4cc6f816b"
"sha": "f4a35b369297d7ff91793f59a0451931d4abff94"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "6dfd72d028a0d0a43764e060f7b15e004385c3a1",
"internalRef": "310168181"
}
},
{
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "ab883569eb0257bbf16a6d825fd018b3adde3912"
"sha": "756bc4dfc24e8bc4c5dd4116daa41a0440ebf5a0"
}
}
],
Expand Down
5 changes: 3 additions & 2 deletions synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"grpc-service-config": f"google/cloud/iot/{version}/cloudiot_grpc_service_config.json",
"package-name": "@google-cloud/iot",
"main-service": "iot"
},
},
proto_path=f'/google/cloud/iot/{version}',
extra_proto_files=['google/cloud/common_resources.proto'],
version=version)
Expand All @@ -47,7 +47,8 @@

# Copy common templated files
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 a329db2

Please sign in to comment.