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

Commit dc61aa9

Browse files
committed
updated classic client references
1 parent 0a5a416 commit dc61aa9

8 files changed

Lines changed: 26 additions & 26 deletions

File tree

google/cloud/bigtable/classic/app_profile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import re
1919

2020
from .enums import RoutingPolicyType
21-
from google.cloud.bigtable_admin_v2.types import instance
21+
from google.cloud.bigtable.admin.types import instance
2222
from google.protobuf import field_mask_pb2
2323
from google.api_core.exceptions import NotFound
2424

google/cloud/bigtable/classic/backup.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
import re
1818

1919
from google.cloud._helpers import _datetime_to_pb_timestamp # type: ignore
20-
from google.cloud.bigtable_admin_v2 import BigtableTableAdminClient
21-
from google.cloud.bigtable_admin_v2.types import table
20+
from google.cloud.bigtable.admin import BigtableTableAdminClient
21+
from google.cloud.bigtable.admin.types import table
2222
from .encryption_info import EncryptionInfo
2323
from .policy import Policy
2424
from google.cloud.exceptions import NotFound # type: ignore
@@ -226,7 +226,7 @@ def size_bytes(self):
226226
def state(self):
227227
"""The current state of this Backup.
228228
229-
:rtype: :class:`~google.cloud.bigtable_admin_v2.gapic.enums.Backup.State`
229+
:rtype: :class:`~google.cloud.bigtable.admin.gapic.enums.Backup.State`
230230
:returns: The current state of this Backup.
231231
"""
232232
return self._state
@@ -305,7 +305,7 @@ def create(self, cluster_id=None):
305305
created Backup.
306306
307307
:rtype: :class:`~google.api_core.operation.Operation`
308-
:returns: :class:`~google.cloud.bigtable_admin_v2.types._OperationFuture`
308+
:returns: :class:`~google.cloud.bigtable.admin.types._OperationFuture`
309309
instance, to be used to poll the status of the 'create' request
310310
:raises Conflict: if the Backup already exists
311311
:raises NotFound: if the Instance owning the Backup does not exist
@@ -343,7 +343,7 @@ def get(self):
343343
"""Retrieves metadata of a pending or completed Backup.
344344
345345
:returns: An instance of
346-
:class:`~google.cloud.bigtable_admin_v2.types.Backup`
346+
:class:`~google.cloud.bigtable.admin.types.Backup`
347347
348348
:raises google.api_core.exceptions.GoogleAPICallError: If the request
349349
failed for any reason.
@@ -412,7 +412,7 @@ def restore(self, table_id, instance_id=None):
412412
:param instance_id: (Optional) The ID of the Instance to restore the
413413
backup into, if different from the current one.
414414
415-
:rtype: :class:`~google.cloud.bigtable_admin_v2.types._OperationFuture`
415+
:rtype: :class:`~google.cloud.bigtable.admin.types._OperationFuture`
416416
:returns: A future to be used to poll the status of the 'restore'
417417
request.
418418

google/cloud/bigtable/classic/client.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@
3535
from google.auth.credentials import AnonymousCredentials # type: ignore
3636

3737
from google.cloud import bigtable_v2
38-
from google.cloud import bigtable_admin_v2
38+
from google.cloud.bigtable import admin as bigtable_admin_v2
3939
from google.cloud.bigtable_v2.services.bigtable.transports import BigtableGrpcTransport
40-
from google.cloud.bigtable_admin_v2.services.bigtable_instance_admin.transports import (
40+
from google.cloud.bigtable.admin.services.bigtable_instance_admin.transports import (
4141
BigtableInstanceAdminGrpcTransport,
4242
)
43-
from google.cloud.bigtable_admin_v2.services.bigtable_table_admin.transports import (
43+
from google.cloud.bigtable.admin.services.bigtable_table_admin.transports import (
4444
BigtableTableAdminGrpcTransport,
4545
)
4646

@@ -50,7 +50,7 @@
5050

5151
from google.cloud.client import ClientWithProject # type: ignore
5252

53-
from google.cloud.bigtable_admin_v2.types import instance
53+
from google.cloud.bigtable.admin.types import instance
5454
from .cluster import _CLUSTER_NAME_RE
5555
from google.cloud.environment_vars import BIGTABLE_EMULATOR # type: ignore
5656

@@ -325,11 +325,11 @@ def table_admin_client(self):
325325
raise ValueError("Client is not an admin client.")
326326

327327
transport = self._create_gapic_client_channel(
328-
bigtable_admin_v2.BigtableTableAdminClient,
328+
bigtable.admin.BigtableTableAdminClient,
329329
BigtableTableAdminGrpcTransport,
330330
)
331331
klass = _create_gapic_client(
332-
bigtable_admin_v2.BigtableTableAdminClient,
332+
bigtable.admin.BigtableTableAdminClient,
333333
client_options=self._admin_client_options,
334334
transport=transport,
335335
)
@@ -358,11 +358,11 @@ def instance_admin_client(self):
358358
raise ValueError("Client is not an admin client.")
359359

360360
transport = self._create_gapic_client_channel(
361-
bigtable_admin_v2.BigtableInstanceAdminClient,
361+
bigtable.admin.BigtableInstanceAdminClient,
362362
BigtableInstanceAdminGrpcTransport,
363363
)
364364
klass = _create_gapic_client(
365-
bigtable_admin_v2.BigtableInstanceAdminClient,
365+
bigtable.admin.BigtableInstanceAdminClient,
366366
client_options=self._admin_client_options,
367367
transport=transport,
368368
)

google/cloud/bigtable/classic/cluster.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717

1818
import re
19-
from google.cloud.bigtable_admin_v2.types import instance
19+
from google.cloud.bigtable.admin.types import instance
2020
from google.api_core.exceptions import NotFound
2121
from google.protobuf import field_mask_pb2
2222

google/cloud/bigtable/classic/column_family.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616

1717

1818
from google.cloud import _helpers
19-
from google.cloud.bigtable_admin_v2.types import table as table_v2_pb2
20-
from google.cloud.bigtable_admin_v2.types import (
19+
from google.cloud.bigtable.admin.types import table as table_v2_pb2
20+
from google.cloud.bigtable.admin.types import (
2121
bigtable_table_admin as table_admin_v2_pb2,
2222
)
2323
from google.api_core.gapic_v1.method import DEFAULT

google/cloud/bigtable/classic/enums.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
# limitations under the License.
1414
"""Wrappers for gapic enum types."""
1515

16-
from google.cloud.bigtable_admin_v2.types import common
17-
from google.cloud.bigtable_admin_v2.types import instance
18-
from google.cloud.bigtable_admin_v2.types import table
16+
from google.cloud.bigtable.admin.types import common
17+
from google.cloud.bigtable.admin.types import instance
18+
from google.cloud.bigtable.admin.types import table
1919

2020

2121
class StorageType(object):

google/cloud/bigtable/classic/instance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
from google.protobuf import field_mask_pb2
2424

25-
from google.cloud.bigtable_admin_v2.types import instance
25+
from google.cloud.bigtable.admin.types import instance
2626

2727
from google.iam.v1 import options_pb2 # type: ignore
2828

google/cloud/bigtable/classic/table.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@
4747
from .row_set import RowRange
4848
from . import enums
4949
from google.cloud.bigtable_v2.types import bigtable as data_messages_v2_pb2
50-
from google.cloud.bigtable_admin_v2 import BigtableTableAdminClient
51-
from google.cloud.bigtable_admin_v2.types import table as admin_messages_v2_pb2
52-
from google.cloud.bigtable_admin_v2.types import (
50+
from google.cloud.bigtable.admin import BigtableTableAdminClient
51+
from google.cloud.bigtable.admin.types import table as admin_messages_v2_pb2
52+
from google.cloud.bigtable.admin.types import (
5353
bigtable_table_admin as table_admin_messages_v2_pb2,
5454
)
5555

@@ -1037,7 +1037,7 @@ def restore(self, new_table_id, cluster_id=None, backup_id=None, backup_name=Non
10371037
and `backup_id` parameters even of such specified.
10381038
10391039
:return: An instance of
1040-
:class:`~google.cloud.bigtable_admin_v2.types._OperationFuture`.
1040+
:class:`~google.cloud.bigtable.admin.types._OperationFuture`.
10411041
10421042
:raises: google.api_core.exceptions.AlreadyExists: If the table
10431043
already exists.

0 commit comments

Comments
 (0)