Skip to content

Commit

Permalink
chore: Migrate python-iam synth.py from artman to bazel (#8)
Browse files Browse the repository at this point in the history
Co-authored-by: Bu Sun Kim <[email protected]>
  • Loading branch information
vam-google and busunkim96 authored Apr 28, 2020
1 parent 06d2940 commit f23f20e
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions packages/google-cloud-iam/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,16 @@
import synthtool as s
from synthtool import gcp

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

# ----------------------------------------------------------------------------
# Generate automl GAPIC layer
# ----------------------------------------------------------------------------
library = gapic.py_library(
"iam_credentials",
"v1",
config_path="/google/iam/credentials/artman_iamcredentials_v1.yaml",
artman_output_name="iamcredentials-v1",
service="iam_credentials",
version="v1",
bazel_target="//google/iam/credentials/v1:iam-credentials-v1-py",
include_protos=True,
)

Expand All @@ -41,12 +40,12 @@

s.replace(
"google/**/*.py",
"google-cloud-iamcredentials",
"google-cloud-iam-credentials",
"google-cloud-iam"
)
s.replace(
"docs/**/*.py",
"google-cloud-iamcredentials",
"google-cloud-iam-credentials",
"google-cloud-iam"
)

Expand Down

0 comments on commit f23f20e

Please sign in to comment.