Skip to content
Merged
Show file tree
Hide file tree
Changes from 19 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
b9d4a04
chore: removes old proof of concept
chalmerlowe Sep 11, 2025
5b4d538
removes old __init__.py
chalmerlowe Sep 11, 2025
132c571
Adds two utility files to handle basic tasks
chalmerlowe Sep 11, 2025
90b224e
Adds a configuration file for the microgenerator
chalmerlowe Sep 11, 2025
e071eab
Removes unused comment
chalmerlowe Sep 11, 2025
dc72a98
chore: adds noxfile.py for the microgenerator
chalmerlowe Sep 11, 2025
7318f0b
feat: microgen - adds two init file templates
chalmerlowe Sep 12, 2025
07910c5
feat: adds _helpers.py.js template
chalmerlowe Sep 12, 2025
dc54c99
Updates with two usage examples
chalmerlowe Sep 12, 2025
28de5f8
feat: adds two partial templates for creating method signatures
chalmerlowe Sep 12, 2025
c457754
feat: Add microgenerator __init__.py
chalmerlowe Sep 15, 2025
595e59f
feat: Add AST analysis utilities
chalmerlowe Sep 15, 2025
44a0777
feat: Add source file analysis capabilities
chalmerlowe Sep 15, 2025
3e9ade6
feat: adds code generation logic
chalmerlowe Sep 15, 2025
485b9d4
removes extraneous content
chalmerlowe Sep 15, 2025
a4276fe
feat: microgen - adds code generation logic
chalmerlowe Sep 15, 2025
1d0d036
feat: microgen - adds main execution and post-processing logic
chalmerlowe Sep 15, 2025
eff7223
minor tweak to markers
chalmerlowe Sep 15, 2025
0734bf8
feat: Add testing directory\n\nAdds the scripts/microgenerator/testin…
chalmerlowe Sep 16, 2025
cb91a9a
Update scripts/microgenerator/testing/constraints-3.13.txt
chalmerlowe Sep 18, 2025
f0846ed
Merge branch 'autogen' into feat/migrate-testing-dir
chalmerlowe Sep 23, 2025
c83889f
Update scripts/microgenerator/generate.py
chalmerlowe Sep 23, 2025
b204300
Update scripts/microgenerator/generate.py
chalmerlowe Sep 23, 2025
98d9e24
Update scripts/microgenerator/generate.py
chalmerlowe Sep 23, 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
2 changes: 0 additions & 2 deletions google/cloud/bigquery_v2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
from .services.routine_service import RoutineServiceClient
from .services.row_access_policy_service import RowAccessPolicyServiceClient
from .services.table_service import TableServiceClient
from .services.centralized_service import BigQueryClient

from .types.biglake_config import BigLakeConfiguration
from .types.clustering import Clustering
Expand Down Expand Up @@ -215,7 +214,6 @@
"BiEngineReason",
"BiEngineStatistics",
"BigLakeConfiguration",
"BigQueryClient",
"BigtableColumn",
"BigtableColumnFamily",
"BigtableOptions",
Expand Down
249 changes: 0 additions & 249 deletions google/cloud/bigquery_v2/services/centralized_service/client.py

This file was deleted.

Empty file.
74 changes: 74 additions & 0 deletions scripts/microgenerator/config.yaml
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:
- "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"
Loading