Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit b800269

Browse files
1 parent 82fb24b commit b800269

134 files changed

Lines changed: 1323 additions & 124560 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

google/cloud/bigtable_admin/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525
BigtableInstanceAdminAsyncClient,
2626
)
2727
from google.cloud.bigtable_admin_v2.services.bigtable_table_admin.client import (
28-
BigtableTableAdminClient,
28+
BaseBigtableTableAdminClient,
2929
)
3030
from google.cloud.bigtable_admin_v2.services.bigtable_table_admin.async_client import (
31-
BigtableTableAdminAsyncClient,
31+
BaseBigtableTableAdminAsyncClient,
3232
)
3333

3434
from google.cloud.bigtable_admin_v2.types.bigtable_instance_admin import (
@@ -322,8 +322,8 @@
322322
__all__ = (
323323
"BigtableInstanceAdminClient",
324324
"BigtableInstanceAdminAsyncClient",
325-
"BigtableTableAdminClient",
326-
"BigtableTableAdminAsyncClient",
325+
"BaseBigtableTableAdminClient",
326+
"BaseBigtableTableAdminAsyncClient",
327327
"CreateAppProfileRequest",
328328
"CreateClusterMetadata",
329329
"CreateClusterRequest",

google/cloud/bigtable_admin_v2/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020

2121
from .services.bigtable_instance_admin import BigtableInstanceAdminClient
2222
from .services.bigtable_instance_admin import BigtableInstanceAdminAsyncClient
23-
from .services.bigtable_table_admin import BigtableTableAdminClient
24-
from .services.bigtable_table_admin import BigtableTableAdminAsyncClient
23+
from .services.bigtable_table_admin import BaseBigtableTableAdminClient
24+
from .services.bigtable_table_admin import BaseBigtableTableAdminAsyncClient
2525

2626
from .types.bigtable_instance_admin import CreateAppProfileRequest
2727
from .types.bigtable_instance_admin import CreateClusterMetadata
@@ -144,16 +144,16 @@
144144
from .types.types import Type
145145

146146
__all__ = (
147+
"BaseBigtableTableAdminAsyncClient",
147148
"BigtableInstanceAdminAsyncClient",
148-
"BigtableTableAdminAsyncClient",
149149
"AppProfile",
150150
"AuthorizedView",
151151
"AutoscalingLimits",
152152
"AutoscalingTargets",
153153
"Backup",
154154
"BackupInfo",
155+
"BaseBigtableTableAdminClient",
155156
"BigtableInstanceAdminClient",
156-
"BigtableTableAdminClient",
157157
"ChangeStreamConfig",
158158
"CheckConsistencyRequest",
159159
"CheckConsistencyResponse",

google/cloud/bigtable_admin_v2/gapic_metadata.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@
492492
"BigtableTableAdmin": {
493493
"clients": {
494494
"grpc": {
495-
"libraryClient": "BigtableTableAdminClient",
495+
"libraryClient": "BaseBigtableTableAdminClient",
496496
"rpcs": {
497497
"CheckConsistency": {
498498
"methods": [
@@ -626,7 +626,7 @@
626626
},
627627
"RestoreTable": {
628628
"methods": [
629-
"restore_table"
629+
"_restore_table"
630630
]
631631
},
632632
"SetIamPolicy": {
@@ -672,7 +672,7 @@
672672
}
673673
},
674674
"grpc-async": {
675-
"libraryClient": "BigtableTableAdminAsyncClient",
675+
"libraryClient": "BaseBigtableTableAdminAsyncClient",
676676
"rpcs": {
677677
"CheckConsistency": {
678678
"methods": [
@@ -806,7 +806,7 @@
806806
},
807807
"RestoreTable": {
808808
"methods": [
809-
"restore_table"
809+
"_restore_table"
810810
]
811811
},
812812
"SetIamPolicy": {
@@ -852,7 +852,7 @@
852852
}
853853
},
854854
"rest": {
855-
"libraryClient": "BigtableTableAdminClient",
855+
"libraryClient": "BaseBigtableTableAdminClient",
856856
"rpcs": {
857857
"CheckConsistency": {
858858
"methods": [
@@ -986,7 +986,7 @@
986986
},
987987
"RestoreTable": {
988988
"methods": [
989-
"restore_table"
989+
"_restore_table"
990990
]
991991
},
992992
"SetIamPolicy": {

google/cloud/bigtable_admin_v2/services/bigtable_table_admin/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
from .client import BigtableTableAdminClient
17-
from .async_client import BigtableTableAdminAsyncClient
16+
from .client import BaseBigtableTableAdminClient
17+
from .async_client import BaseBigtableTableAdminAsyncClient
1818

1919
__all__ = (
20-
"BigtableTableAdminClient",
21-
"BigtableTableAdminAsyncClient",
20+
"BaseBigtableTableAdminClient",
21+
"BaseBigtableTableAdminAsyncClient",
2222
)

google/cloud/bigtable_admin_v2/services/bigtable_table_admin/async_client.py

Lines changed: 49 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
from google.protobuf import timestamp_pb2 # type: ignore
5959
from .transports.base import BigtableTableAdminTransport, DEFAULT_CLIENT_INFO
6060
from .transports.grpc_asyncio import BigtableTableAdminGrpcAsyncIOTransport
61-
from .client import BigtableTableAdminClient
61+
from .client import BaseBigtableTableAdminClient
6262

6363
try:
6464
from google.api_core import client_logging # type: ignore
@@ -70,70 +70,74 @@
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

Comments
 (0)