Skip to content

Commit

Permalink
fix: synth.py clean up for multiple version (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
summer-ji-eng authored May 7, 2020
1 parent 55abc0e commit 44b6cde
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
6 changes: 4 additions & 2 deletions packages/google-cloud-talent/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,20 @@
// 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 v4beta1 from './v4beta1';

const ApplicationServiceClient = v4beta1.ApplicationServiceClient;
const CompanyServiceClient = v4beta1.CompanyServiceClient;
const CompletionClient = v4beta1.CompletionClient;
const EventServiceClient = v4beta1.EventServiceClient;
const JobServiceClient = v4beta1.JobServiceClient;
const ProfileServiceClient = v4beta1.ProfileServiceClient;
const TenantServiceClient = v4beta1.TenantServiceClient;

export {
v4beta1,
ApplicationServiceClient,
Expand Down
2 changes: 1 addition & 1 deletion packages/google-cloud-talent/synth.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "ab883569eb0257bbf16a6d825fd018b3adde3912"
"sha": "be74d3e532faa47eb59f1a0eaebde0860d1d8ab4"
}
}
],
Expand Down
9 changes: 5 additions & 4 deletions packages/google-cloud-talent/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,20 @@
versions = ["v4beta1"]
for version in versions:
library = gapic.typescript_library(
"talent", version,
"talent", version,
generator_args={
"grpc-service-config": f"google/cloud/talent/{version}/talent_grpc_service_config.json",
"package-name": "@google-cloud/talent",
"main-service": "talent"
},
proto_path=f'/google/cloud/talent/{version}',
},
proto_path=f'/google/cloud/talent/{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='v4beta1')
s.copy(templates)

node.postprocess_gapic_library()

0 comments on commit 44b6cde

Please sign in to comment.