5858from google .protobuf import timestamp_pb2 # type: ignore
5959from .transports .base import BigtableTableAdminTransport , DEFAULT_CLIENT_INFO
6060from .transports .grpc_asyncio import BigtableTableAdminGrpcAsyncIOTransport
61- from .client import BigtableTableAdminClient
61+ from .client import BaseBigtableTableAdminClient
6262
6363try :
6464 from google .api_core import client_logging # type: ignore
7070_LOGGER = std_logging .getLogger (__name__ )
7171
7272
73- class BigtableTableAdminAsyncClient :
73+ class BaseBigtableTableAdminAsyncClient :
7474 """Service for creating, configuring, and deleting Cloud
7575 Bigtable tables.
7676
7777 Provides access to the table schemas only, not the data stored
7878 within the tables.
7979 """
8080
81- _client : BigtableTableAdminClient
81+ _client : BaseBigtableTableAdminClient
8282
8383 # Copy defaults from the synchronous client for use here.
8484 # Note: DEFAULT_ENDPOINT is deprecated. Use _DEFAULT_ENDPOINT_TEMPLATE instead.
85- DEFAULT_ENDPOINT = BigtableTableAdminClient .DEFAULT_ENDPOINT
86- DEFAULT_MTLS_ENDPOINT = BigtableTableAdminClient .DEFAULT_MTLS_ENDPOINT
87- _DEFAULT_ENDPOINT_TEMPLATE = BigtableTableAdminClient ._DEFAULT_ENDPOINT_TEMPLATE
88- _DEFAULT_UNIVERSE = BigtableTableAdminClient ._DEFAULT_UNIVERSE
85+ DEFAULT_ENDPOINT = BaseBigtableTableAdminClient .DEFAULT_ENDPOINT
86+ DEFAULT_MTLS_ENDPOINT = BaseBigtableTableAdminClient .DEFAULT_MTLS_ENDPOINT
87+ _DEFAULT_ENDPOINT_TEMPLATE = BaseBigtableTableAdminClient ._DEFAULT_ENDPOINT_TEMPLATE
88+ _DEFAULT_UNIVERSE = BaseBigtableTableAdminClient ._DEFAULT_UNIVERSE
8989
90- authorized_view_path = staticmethod (BigtableTableAdminClient .authorized_view_path )
90+ authorized_view_path = staticmethod (
91+ BaseBigtableTableAdminClient .authorized_view_path
92+ )
9193 parse_authorized_view_path = staticmethod (
92- BigtableTableAdminClient .parse_authorized_view_path
94+ BaseBigtableTableAdminClient .parse_authorized_view_path
9395 )
94- backup_path = staticmethod (BigtableTableAdminClient .backup_path )
95- parse_backup_path = staticmethod (BigtableTableAdminClient .parse_backup_path )
96- cluster_path = staticmethod (BigtableTableAdminClient .cluster_path )
97- parse_cluster_path = staticmethod (BigtableTableAdminClient .parse_cluster_path )
96+ backup_path = staticmethod (BaseBigtableTableAdminClient .backup_path )
97+ parse_backup_path = staticmethod (BaseBigtableTableAdminClient .parse_backup_path )
98+ cluster_path = staticmethod (BaseBigtableTableAdminClient .cluster_path )
99+ parse_cluster_path = staticmethod (BaseBigtableTableAdminClient .parse_cluster_path )
98100 crypto_key_version_path = staticmethod (
99- BigtableTableAdminClient .crypto_key_version_path
101+ BaseBigtableTableAdminClient .crypto_key_version_path
100102 )
101103 parse_crypto_key_version_path = staticmethod (
102- BigtableTableAdminClient .parse_crypto_key_version_path
104+ BaseBigtableTableAdminClient .parse_crypto_key_version_path
103105 )
104- instance_path = staticmethod (BigtableTableAdminClient .instance_path )
105- parse_instance_path = staticmethod (BigtableTableAdminClient .parse_instance_path )
106- schema_bundle_path = staticmethod (BigtableTableAdminClient .schema_bundle_path )
106+ instance_path = staticmethod (BaseBigtableTableAdminClient .instance_path )
107+ parse_instance_path = staticmethod (BaseBigtableTableAdminClient .parse_instance_path )
108+ schema_bundle_path = staticmethod (BaseBigtableTableAdminClient .schema_bundle_path )
107109 parse_schema_bundle_path = staticmethod (
108- BigtableTableAdminClient .parse_schema_bundle_path
110+ BaseBigtableTableAdminClient .parse_schema_bundle_path
109111 )
110- snapshot_path = staticmethod (BigtableTableAdminClient .snapshot_path )
111- parse_snapshot_path = staticmethod (BigtableTableAdminClient .parse_snapshot_path )
112- table_path = staticmethod (BigtableTableAdminClient .table_path )
113- parse_table_path = staticmethod (BigtableTableAdminClient .parse_table_path )
112+ snapshot_path = staticmethod (BaseBigtableTableAdminClient .snapshot_path )
113+ parse_snapshot_path = staticmethod (BaseBigtableTableAdminClient .parse_snapshot_path )
114+ table_path = staticmethod (BaseBigtableTableAdminClient .table_path )
115+ parse_table_path = staticmethod (BaseBigtableTableAdminClient .parse_table_path )
114116 common_billing_account_path = staticmethod (
115- BigtableTableAdminClient .common_billing_account_path
117+ BaseBigtableTableAdminClient .common_billing_account_path
116118 )
117119 parse_common_billing_account_path = staticmethod (
118- BigtableTableAdminClient .parse_common_billing_account_path
120+ BaseBigtableTableAdminClient .parse_common_billing_account_path
119121 )
120- common_folder_path = staticmethod (BigtableTableAdminClient .common_folder_path )
122+ common_folder_path = staticmethod (BaseBigtableTableAdminClient .common_folder_path )
121123 parse_common_folder_path = staticmethod (
122- BigtableTableAdminClient .parse_common_folder_path
124+ BaseBigtableTableAdminClient .parse_common_folder_path
123125 )
124126 common_organization_path = staticmethod (
125- BigtableTableAdminClient .common_organization_path
127+ BaseBigtableTableAdminClient .common_organization_path
126128 )
127129 parse_common_organization_path = staticmethod (
128- BigtableTableAdminClient .parse_common_organization_path
130+ BaseBigtableTableAdminClient .parse_common_organization_path
129131 )
130- common_project_path = staticmethod (BigtableTableAdminClient .common_project_path )
132+ common_project_path = staticmethod (BaseBigtableTableAdminClient .common_project_path )
131133 parse_common_project_path = staticmethod (
132- BigtableTableAdminClient .parse_common_project_path
134+ BaseBigtableTableAdminClient .parse_common_project_path
135+ )
136+ common_location_path = staticmethod (
137+ BaseBigtableTableAdminClient .common_location_path
133138 )
134- common_location_path = staticmethod (BigtableTableAdminClient .common_location_path )
135139 parse_common_location_path = staticmethod (
136- BigtableTableAdminClient .parse_common_location_path
140+ BaseBigtableTableAdminClient .parse_common_location_path
137141 )
138142
139143 @classmethod
@@ -147,9 +151,9 @@ def from_service_account_info(cls, info: dict, *args, **kwargs):
147151 kwargs: Additional arguments to pass to the constructor.
148152
149153 Returns:
150- BigtableTableAdminAsyncClient : The constructed client.
154+ BaseBigtableTableAdminAsyncClient : The constructed client.
151155 """
152- return BigtableTableAdminClient .from_service_account_info .__func__ (BigtableTableAdminAsyncClient , info , * args , ** kwargs ) # type: ignore
156+ return BaseBigtableTableAdminClient .from_service_account_info .__func__ (BaseBigtableTableAdminAsyncClient , info , * args , ** kwargs ) # type: ignore
153157
154158 @classmethod
155159 def from_service_account_file (cls , filename : str , * args , ** kwargs ):
@@ -163,9 +167,9 @@ def from_service_account_file(cls, filename: str, *args, **kwargs):
163167 kwargs: Additional arguments to pass to the constructor.
164168
165169 Returns:
166- BigtableTableAdminAsyncClient : The constructed client.
170+ BaseBigtableTableAdminAsyncClient : The constructed client.
167171 """
168- return BigtableTableAdminClient .from_service_account_file .__func__ (BigtableTableAdminAsyncClient , filename , * args , ** kwargs ) # type: ignore
172+ return BaseBigtableTableAdminClient .from_service_account_file .__func__ (BaseBigtableTableAdminAsyncClient , filename , * args , ** kwargs ) # type: ignore
169173
170174 from_service_account_json = from_service_account_file
171175
@@ -203,7 +207,7 @@ def get_mtls_endpoint_and_cert_source(
203207 Raises:
204208 google.auth.exceptions.MutualTLSChannelError: If any errors happen.
205209 """
206- return BigtableTableAdminClient .get_mtls_endpoint_and_cert_source (client_options ) # type: ignore
210+ return BaseBigtableTableAdminClient .get_mtls_endpoint_and_cert_source (client_options ) # type: ignore
207211
208212 @property
209213 def transport (self ) -> BigtableTableAdminTransport :
@@ -233,7 +237,7 @@ def universe_domain(self) -> str:
233237 """
234238 return self ._client ._universe_domain
235239
236- get_transport_class = BigtableTableAdminClient .get_transport_class
240+ get_transport_class = BaseBigtableTableAdminClient .get_transport_class
237241
238242 def __init__ (
239243 self ,
@@ -249,7 +253,7 @@ def __init__(
249253 client_options : Optional [ClientOptions ] = None ,
250254 client_info : gapic_v1 .client_info .ClientInfo = DEFAULT_CLIENT_INFO ,
251255 ) -> None :
252- """Instantiates the bigtable table admin async client.
256+ """Instantiates the base bigtable table admin async client.
253257
254258 Args:
255259 credentials (Optional[google.auth.credentials.Credentials]): The
@@ -298,7 +302,7 @@ def __init__(
298302 google.auth.exceptions.MutualTlsChannelError: If mutual TLS transport
299303 creation failed for any reason.
300304 """
301- self ._client = BigtableTableAdminClient (
305+ self ._client = BaseBigtableTableAdminClient (
302306 credentials = credentials ,
303307 transport = transport ,
304308 client_options = client_options ,
@@ -309,7 +313,7 @@ def __init__(
309313 std_logging .DEBUG
310314 ): # pragma: NO COVER
311315 _LOGGER .debug (
312- "Created client `google.bigtable.admin_v2.BigtableTableAdminAsyncClient `." ,
316+ "Created client `google.bigtable.admin_v2.BaseBigtableTableAdminAsyncClient `." ,
313317 extra = {
314318 "serviceName" : "google.bigtable.admin.v2.BigtableTableAdmin" ,
315319 "universeDomain" : getattr (
@@ -2921,7 +2925,7 @@ async def list_backups(
29212925 # Done; return the response.
29222926 return response
29232927
2924- async def restore_table (
2928+ async def _restore_table (
29252929 self ,
29262930 request : Optional [Union [bigtable_table_admin .RestoreTableRequest , dict ]] = None ,
29272931 * ,
@@ -3967,7 +3971,7 @@ async def delete_schema_bundle(
39673971 metadata = metadata ,
39683972 )
39693973
3970- async def __aenter__ (self ) -> "BigtableTableAdminAsyncClient " :
3974+ async def __aenter__ (self ) -> "BaseBigtableTableAdminAsyncClient " :
39713975 return self
39723976
39733977 async def __aexit__ (self , exc_type , exc , tb ):
@@ -3982,4 +3986,4 @@ async def __aexit__(self, exc_type, exc, tb):
39823986 DEFAULT_CLIENT_INFO .protobuf_runtime_version = google .protobuf .__version__
39833987
39843988
3985- __all__ = ("BigtableTableAdminAsyncClient " ,)
3989+ __all__ = ("BaseBigtableTableAdminAsyncClient " ,)
0 commit comments