Skip to content

Commit

Permalink
Instructions for updating apitools generated files.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertwb authored and nancyxu123 committed Mar 9, 2022
1 parent a6bb7ae commit c9a7707
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ tasks.rat {
// JupyterLab extensions
"sdks/python/apache_beam/runners/interactive/extensions/apache-beam-jupyterlab-sidepanel/yarn.lock",

// Autogenerated apitools clients.
"sdks/python/apache_beam/runners/dataflow/internal/clients/*/**/*.py",

// Sample text file for Java quickstart
"sdks/java/maven-archetypes/examples/sample.txt",

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
To regenerate these files run

pip install google-apitools[cli]
gen_client \
--discovery_url dataflow.v1b3 \
--overwrite \
--root_package=. \
--outdir=apache_beam/runners/dataflow/internal/clients/dataflow \
client

Patch up the imports in __init__ to make them conditional.

0 comments on commit c9a7707

Please sign in to comment.