Skip to content

Commit 0bfe989

Browse files
committed
adds config removes bqclient_config
1 parent a8a76d1 commit 0bfe989

File tree

2 files changed

+45
-21
lines changed

2 files changed

+45
-21
lines changed

scripts/microgenerator/bigqueryclient_config.yaml

Lines changed: 0 additions & 21 deletions
This file was deleted.

scripts/microgenerator/config.yaml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# config.yaml
2+
3+
# The name of the service, used for variable names and comments.
4+
service_name: "bigquery"
5+
6+
# A list of paths to the source code files to be parsed.
7+
# Globs are supported.
8+
source_files:
9+
- "autogen/google/cloud/bigquery_v2/services/dataset_service/client.py"
10+
- "autogen/google/cloud/bigquery_v2/services/job_service/client.py"
11+
- "autogen/google/cloud/bigquery_v2/services/model_service/client.py"
12+
- "autogen/google/cloud/bigquery_v2/services/project_service/client.py"
13+
- "autogen/google/cloud/bigquery_v2/services/routine_service/client.py"
14+
- "autogen/google/cloud/bigquery_v2/services/row_access_policy_service/client.py"
15+
- "autogen/google/cloud/bigquery_v2/services/table_service/client.py"
16+
17+
# Filtering rules for classes and methods.
18+
filter:
19+
classes:
20+
# Only include classes with these suffixes.
21+
include_suffixes:
22+
- "Client"
23+
methods:
24+
# Include methods with these prefixes.
25+
include_prefixes:
26+
- "batch_delete_"
27+
- "cancel_"
28+
- "create_"
29+
- "delete_"
30+
- "get_"
31+
- "insert_"
32+
- "list_"
33+
- "patch_"
34+
- "undelete_"
35+
- "update_"
36+
# Exclude methods with these prefixes.
37+
exclude_prefixes:
38+
- "get_mtls_endpoint_and_cert_source"
39+
40+
# A list of templates to render and their corresponding output files.
41+
templates:
42+
- template: "autogen/scripts/microgenerator/bigqueryclient.py.j2"
43+
output: "autogen/google/cloud/bigquery_v2/services/centralized_service/client.py"
44+
# - template: "test_bigqueryclient.py.j2"
45+
# output: "tests/unit/test_bigqueryclient.py"

0 commit comments

Comments
 (0)