This repository was archived by the owner on Apr 1, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
google/cloud/bigtable_admin Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414# limitations under the License.
1515#
1616
17- # There are no subpackages exported from google.cloud.bigtable_admin,
18- # only an import alias for objects in google.cloud.bigtable.admin.
19- # We maintain that surface here.
17+ import sys
18+ import importlib
19+ import pkgutil
2020
21- from google .cloud .bigtable .admin import * # noqa: F401,F403
2221import google .cloud .bigtable .admin
2322
24- __all__ = google .cloud .bigtable .admin .__all__
23+ # Alias all subpackages of google.cloud.bigtable.admin to
24+ # corresponding subpackages of google.cloud.bigtable_admin_v2.
25+
26+ _NEW_PATH = "google.cloud.bigtable.admin"
27+ sys .modules [__name__ ] = google .cloud .bigtable .admin
28+
29+ # iterate and import all submodules to populate sys.modules
30+ for _ , name , _ in pkgutil .walk_packages (
31+ path = google .cloud .bigtable .admin .__path__ ,
32+ prefix = _NEW_PATH + "." ,
33+ ):
34+ mod = importlib .import_module (name )
35+ alias = name .replace (_NEW_PATH , __name__ , 1 )
36+ sys .modules [alias ] = mod
You can’t perform that action at this time.
0 commit comments