Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
4d369a2
draft proof of concept microgenerator 2
chalmerlowe Aug 7, 2025
be1f568
minor update to docstring
chalmerlowe Aug 7, 2025
bef9081
adds templating utility and template file
chalmerlowe Aug 7, 2025
c421c23
Minor revision to TODO comment
chalmerlowe Aug 8, 2025
3b87189
Updates several comments
chalmerlowe Aug 14, 2025
698f401
Adds example of generated method
chalmerlowe Aug 14, 2025
b736b23
feat: adds centralized client and tests (#2249)
chalmerlowe Aug 7, 2025
0e9abc0
chore: adds ci/cd related infra content (#2258)
chalmerlowe Aug 13, 2025
c688cff
removes example code from jinja template
chalmerlowe Aug 18, 2025
05aae1b
adds endmatter to template for simplicity in assessing generated code
chalmerlowe Aug 22, 2025
49e398c
removes generated c_services content
chalmerlowe Aug 22, 2025
d91e6f7
removes unused c_services tests
chalmerlowe Aug 22, 2025
332a733
removes unneeded init lines
chalmerlowe Aug 22, 2025
4045bde
adds utils.py file
chalmerlowe Aug 22, 2025
eed1713
adds generate.py file
chalmerlowe Aug 22, 2025
a8a76d1
removes bigqueryclient_generator.py file in deference to generate.py
chalmerlowe Aug 22, 2025
0bfe989
adds config removes bqclient_config
chalmerlowe Aug 22, 2025
fc10cd4
removes unused helper and template_utils files
chalmerlowe Aug 22, 2025
240c496
adds minor mod (.) for testing purposes
chalmerlowe Aug 22, 2025
2f10bf9
Merge branch 'autogen' into poc-microgenerator
chalmerlowe Aug 22, 2025
e33a574
refactors the generator for clarity and to gen code per design
chalmerlowe Sep 5, 2025
79fe5dd
cleans up more refactoring
chalmerlowe Sep 5, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion google/cloud/bigquery_v2/services/job_service/pagers.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ def __init__(
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),

):
"""Instantiate the pager.

Expand Down
47 changes: 47 additions & 0 deletions scripts/microgenerator/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# config.yaml

# The name of the service, used for variable names and comments.
service_name: "bigquery"

# A list of paths to the source code files to be parsed.
# Globs are supported.
source_files:
- "autogen/google/cloud/bigquery_v2/services/dataset_service/client.py"
- "autogen/google/cloud/bigquery_v2/services/job_service/client.py"
- "autogen/google/cloud/bigquery_v2/services/model_service/client.py"
- "autogen/google/cloud/bigquery_v2/services/project_service/client.py"
- "autogen/google/cloud/bigquery_v2/services/routine_service/client.py"
- "autogen/google/cloud/bigquery_v2/services/row_access_policy_service/client.py"
- "autogen/google/cloud/bigquery_v2/services/table_service/client.py"

# Filtering rules for classes and methods.
filter:
classes:
# Only include classes with these suffixes.
include_suffixes:
- "DatasetServiceClient"
- "JobServiceClient"
- "ModelServiceClient"
methods:
# Include methods with these prefixes.
include_prefixes:
# - "batch_delete_"
# - "cancel_"
# - "create_"
# - "delete_"
- "get_"
- "insert_"
- "list_"
- "patch_"
# - "undelete_"
# - "update_"
# Exclude methods with these prefixes.
exclude_prefixes:
- "get_mtls_endpoint_and_cert_source"

# A list of templates to render and their corresponding output files.
templates:
- template: "autogen/scripts/microgenerator/templates/client.py.j2"
output: "autogen/google/cloud/bigquery_v2/services/centralized_service/client.py"
# - template: "test_bigqueryclient.py.j2"
# output: "tests/unit/test_bigqueryclient.py"
Loading
Loading