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

Commit

Permalink
chore: fix synth.py to no longer crash, switch to bazel (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
chingor13 committed Mar 9, 2020
1 parent f2cc65d commit 74e517f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,16 @@
import synthtool.gcp as gcp
import synthtool.languages.java as java

gapic = gcp.GAPICGenerator()
gapic = gcp.GAPICBazel()

service = 'scheduler'
versions = ['v1beta1', 'v1']
config_pattern = '/google/cloud/scheduler/artman_cloudscheduler_{version}.yaml'

for version in versions:
java.gapic_library(
java.bazel_library(
service=service,
version=version,
config_pattern=config_pattern,
package_pattern='com.google.cloud.{service}.{version}',
gapic=gapic,
)

Expand Down

0 comments on commit 74e517f

Please sign in to comment.