diff --git a/packages/google-cloud-resource-manager/google/cloud/resource_manager/client.py b/packages/google-cloud-resource-manager/google/cloud/resource_manager/client.py index 2a4ff91daf21..0bf3f5180a1f 100644 --- a/packages/google-cloud-resource-manager/google/cloud/resource_manager/client.py +++ b/packages/google-cloud-resource-manager/google/cloud/resource_manager/client.py @@ -15,7 +15,7 @@ """A Client for interacting with the Resource Manager API.""" -from google.api.core import page_iterator +from google.api_core import page_iterator from google.cloud.client import Client as BaseClient from google.cloud.resource_manager._http import Connection @@ -151,7 +151,7 @@ def list_projects(self, filter_params=None, page_size=None): single page. If not passed, defaults to a value set by the API. - :rtype: :class:`~google.api.core.page_iterator.Iterator` + :rtype: :class:`~google.api_core.page_iterator.Iterator` :returns: Iterator of all :class:`~google.cloud.resource_manager.project.Project`. that the current user has access to. @@ -176,7 +176,7 @@ def list_projects(self, filter_params=None, page_size=None): def _item_to_project(iterator, resource): """Convert a JSON project to the native object. - :type iterator: :class:`~google.api.core.page_iterator.Iterator` + :type iterator: :class:`~google.api_core.page_iterator.Iterator` :param iterator: The iterator that has retrieved the item. :type resource: dict diff --git a/packages/google-cloud-resource-manager/nox.py b/packages/google-cloud-resource-manager/nox.py index 448ff93fc292..d057ae2cc10c 100644 --- a/packages/google-cloud-resource-manager/nox.py +++ b/packages/google-cloud-resource-manager/nox.py @@ -19,7 +19,10 @@ import nox -LOCAL_DEPS = ('../core/',) +LOCAL_DEPS = ( + os.path.join('..', 'api_core'), + os.path.join('..', 'core'), +) @nox.session diff --git a/packages/google-cloud-resource-manager/tests/unit/test_client.py b/packages/google-cloud-resource-manager/tests/unit/test_client.py index 06ac02cbe627..51a925b56bde 100644 --- a/packages/google-cloud-resource-manager/tests/unit/test_client.py +++ b/packages/google-cloud-resource-manager/tests/unit/test_client.py @@ -88,7 +88,7 @@ def test_fetch_project(self): self.assertEqual(project.labels, labels) def test_list_projects_return_type(self): - from google.api.core import page_iterator + from google.api_core import page_iterator credentials = _make_credentials() client = self._make_one(credentials=credentials) @@ -227,7 +227,7 @@ def test_list_projects_with_filter(self): }) def test_page_empty_response(self): - from google.api.core import page_iterator + from google.api_core import page_iterator credentials = _make_credentials() client = self._make_one(credentials=credentials)