|
33 | 33 | s.move(library / f"tests/unit/gapic/{version}") |
34 | 34 | s.move(library / f"docs/gapic/{version}") |
35 | 35 |
|
36 | | - s.replace( |
37 | | - f"google/cloud/automl_{version}/__init__.py", |
38 | | - f"from google.cloud.automl_v1beta1.gapic import prediction_service_client", |
39 | | - f"from google.cloud.automl_v1beta1.gapic import prediction_service_client" |
40 | | - f"from google.cloud.automl_v1beta1.tables import tables_client" |
41 | | - f"\n\n" |
42 | | - f"class TablesClient(tables_client.TablesClient):" |
43 | | - f" __doc__ = tables_client.TablesClient.__doc__" |
44 | | - ) |
45 | | - |
46 | | - s.replace( |
47 | | - f"google/cloud/automl_{version}/__init__.py", |
48 | | - f"__all__ = (\"enums\", \"types\", \"AutoMlClient\", \"PredictionServiceClient\")", |
49 | | - f"__all__ = (\"enums\", \"types\", \"AutoMlClient\", \"PredictionServiceClient\", \"TablesClient\")" |
50 | | - ) |
51 | | - |
52 | 36 | s.move(library / f"docs/conf.py") |
53 | 37 |
|
54 | 38 | # Use the highest version library to generate import alias. |
55 | 39 | s.move(library / "google/cloud/automl.py") |
56 | 40 |
|
| 41 | +# Add tables client to v1beta1 |
| 42 | +s.replace( |
| 43 | + f"google/cloud/automl_v1beta1/__init__.py", |
| 44 | + f"from google.cloud.automl_v1beta1.gapic import prediction_service_client", |
| 45 | + f"from google.cloud.automl_v1beta1.gapic import prediction_service_client\n" |
| 46 | + f"from google.cloud.automl_v1beta1.tables import tables_client" |
| 47 | + f"\n\n" |
| 48 | + f"class TablesClient(tables_client.TablesClient):" |
| 49 | + f" __doc__ = tables_client.TablesClient.__doc__" |
| 50 | +) |
| 51 | + |
| 52 | +s.replace( |
| 53 | + f"google/cloud/automl_v1beta1/__init__.py", |
| 54 | + f"""__all__ = \( |
| 55 | + 'enums', |
| 56 | + 'types', |
| 57 | + 'AutoMlClient', |
| 58 | + 'PredictionServiceClient', |
| 59 | +\)""", |
| 60 | + f"__all__ = (\"enums\", \"types\", \"AutoMlClient\", \"PredictionServiceClient\", \"TablesClient\")" |
| 61 | +) |
| 62 | + |
57 | 63 | # Fixup issues in generated code |
58 | 64 | s.replace( |
59 | 65 | "**/gapic/*_client.py", |
|
0 commit comments