|
15 | 15 |
|
16 | 16 | import synthtool as s |
17 | 17 | import synthtool.gcp as gcp |
| 18 | +import synthtool.languages.java as java |
18 | 19 |
|
19 | 20 | gapic = gcp.GAPICGenerator() |
20 | | -common_templates = gcp.CommonTemplates() |
21 | 21 |
|
22 | | -for version in ["v1beta1"]: |
| 22 | +service = 'bigquerystorage' |
| 23 | +versions = ['v1beta1'] |
| 24 | +config_pattern = '/google/cloud/bigquery/storage/artman_bigquerystorage_{version}.yaml' |
| 25 | + |
| 26 | +for version in versions: |
23 | 27 | library = gapic.java_library( |
24 | | - service='bigquerystorage', |
| 28 | + service=service, |
25 | 29 | version=version, |
26 | | - config_path=f'/google/cloud/bigquery/storage/artman_bigquerystorage_{version}.yaml', |
| 30 | + config_path=config_pattern.format(version=version), |
27 | 31 | artman_output_name='') |
28 | 32 |
|
29 | | - s.copy(library / f'gapic-google-cloud-bigquerystorage-{version}/src', 'src') |
30 | | - s.copy(library / f'grpc-google-cloud-bigquerystorage-{version}/src', f'../../google-api-grpc/grpc-google-cloud-bigquerystorage-{version}/src') |
31 | | - s.copy(library / f'proto-google-cloud-bigquerystorage-{version}/src', f'../../google-api-grpc/proto-google-cloud-bigquerystorage-{version}/src') |
| 33 | + s.copy(library / f'gapic-google-cloud-{service}-{version}/src', 'src') |
| 34 | + s.copy(library / f'grpc-google-cloud-{service}-{version}/src', f'../../google-api-grpc/grpc-google-cloud-{service}-{version}/src') |
| 35 | + s.copy(library / f'proto-google-cloud-{service}-{version}/src', f'../../google-api-grpc/proto-google-cloud-{service}-{version}/src') |
| 36 | + |
| 37 | + java.format_code('./src') |
| 38 | + java.format_code(f'../../google-api-grpc/grpc-google-cloud-{service}-{version}/src') |
| 39 | + java.format_code(f'../../google-api-grpc/proto-google-cloud-{service}-{version}/src') |
0 commit comments