Skip to content

Commit e68cc24

Browse files
feat(bigquery): refactor class imports as it moved to new file
1 parent 646297c commit e68cc24

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

bigquery/google/cloud/bigquery/dataset.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
from google.cloud.bigquery.model import ModelReference
2525
from google.cloud.bigquery.routine import RoutineReference
2626
from google.cloud.bigquery.table import TableReference
27-
from google.cloud.bigquery.table import EncryptionConfiguration
27+
from google.cloud.bigquery.encryption_configuration import EncryptionConfiguration
2828

2929

3030
def _get_table_reference(self, table_id):
@@ -577,7 +577,7 @@ def labels(self, value):
577577

578578
@property
579579
def default_encryption_configuration(self):
580-
"""google.cloud.bigquery.table.EncryptionConfiguration: Custom
580+
"""google.cloud.bigquery.encryption_configuration.EncryptionConfiguration: Custom
581581
encryption configuration for all tables in the dataset.
582582
583583
Custom encryption configuration (e.g., Cloud KMS keys) or :data:`None`

bigquery/tests/unit/test_dataset.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,9 @@ def test_to_api_repr_w_custom_field(self):
568568
self.assertEqual(resource, exp_resource)
569569

570570
def test_default_encryption_configuration_setter(self):
571-
from google.cloud.bigquery.table import EncryptionConfiguration
571+
from google.cloud.bigquery.encryption_configuration import (
572+
EncryptionConfiguration,
573+
)
572574

573575
dataset = self._make_one(self.DS_REF)
574576
encryption_configuration = EncryptionConfiguration(

0 commit comments

Comments
 (0)