This repository was archived by the owner on Mar 6, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 324
feat: microgen - adds config file #2284
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
b9d4a04
chore: removes old proof of concept
chalmerlowe 5b4d538
removes old __init__.py
chalmerlowe 132c571
Adds two utility files to handle basic tasks
chalmerlowe 90b224e
Adds a configuration file for the microgenerator
chalmerlowe e071eab
Removes unused comment
chalmerlowe 818185e
Merge branch 'autogen' into feat-adds-config-file
chalmerlowe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,74 @@ | ||
| # 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: | ||
| services: | ||
| - "google/cloud/bigquery_v2/services/dataset_service/client.py" | ||
| - "google/cloud/bigquery_v2/services/job_service/client.py" | ||
| - "google/cloud/bigquery_v2/services/model_service/client.py" | ||
| - "google/cloud/bigquery_v2/services/project_service/client.py" | ||
| - "google/cloud/bigquery_v2/services/routine_service/client.py" | ||
| - "google/cloud/bigquery_v2/services/row_access_policy_service/client.py" | ||
| - "google/cloud/bigquery_v2/services/table_service/client.py" | ||
| types: | ||
| - "google/cloud/bigquery_v2/types/dataset.py" | ||
| - "google/cloud/bigquery_v2/types/job.py" | ||
| - "google/cloud/bigquery_v2/types/model.py" | ||
| - "google/cloud/bigquery_v2/types/project.py" | ||
| - "google/cloud/bigquery_v2/types/routine.py" | ||
| - "google/cloud/bigquery_v2/types/row_access_policy.py" | ||
| - "google/cloud/bigquery_v2/types/table.py" | ||
|
|
||
|
|
||
| # Filtering rules for classes and methods. | ||
| filter: | ||
| classes: | ||
| # Only include classes with these suffixes. | ||
| include_suffixes: | ||
| - "ServiceClient" | ||
| - "Request" | ||
| # Exclude classes with these suffixes. | ||
| exclude_suffixes: | ||
| - "BigQueryClient" | ||
| methods: | ||
| # Include methods with these prefixes. | ||
| include_prefixes: | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd prefer to see this include list go away over time once this is stable, but LGTM for bootstrapping. |
||
| - "batch_delete_" | ||
| - "cancel_" | ||
| - "create_" | ||
| - "delete_" | ||
| - "get_" | ||
| - "insert_" | ||
| - "list_" | ||
| - "patch_" | ||
| - "undelete_" | ||
| - "update_" | ||
| # Exclude methods with these prefixes. | ||
| exclude_prefixes: | ||
| - "get_mtls_endpoint_and_cert_source" | ||
| overrides: | ||
| patch_table: | ||
| request_class_name: "UpdateOrPatchTableRequest" | ||
| patch_dataset: | ||
| request_class_name: "UpdateOrPatchDatasetRequest" | ||
|
|
||
| # A list of templates to render and their corresponding output files. | ||
| templates: | ||
| - template: "templates/client.py.j2" | ||
| output: "google/cloud/bigquery_v2/services/centralized_service/client.py" | ||
| - template: "templates/_helpers.py.j2" | ||
| output: "google/cloud/bigquery_v2/services/centralized_service/_helpers.py" | ||
| - template: "templates/__init__.py.j2" | ||
| output: "google/cloud/bigquery_v2/services/centralized_service/__init__.py" | ||
|
|
||
| post_processing_templates: | ||
| - template: "templates/post-processing/init.py.j2" | ||
| target_file: "google/cloud/bigquery_v2/__init__.py" | ||
| add_imports: | ||
| - "from .services.centralized_service import BigQueryClient" | ||
| add_to_all: | ||
| - "BigQueryClient" | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we're already filtering based on class/method should we just make this a glob for all of bigquery_v2/services now?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am tracking some of the requests from this PR series including this one.