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

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 <8822365+busunkim96@users.noreply.github.com>
  • Loading branch information
vam-google and busunkim96 committed Apr 28, 2020
1 parent d9240ae commit e6c5734
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions synth.py
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 e6c5734

Please sign in to comment.