|
51 | 51 | from google.cloud._helpers import _to_bytes |
52 | 52 | from google.cloud._helpers import _bytes_to_unicode |
53 | 53 | from google.cloud.exceptions import NotFound |
54 | | -from google.cloud.iam import Policy |
| 54 | +from google.api_core.iam import Policy |
55 | 55 | from google.cloud.storage._helpers import _PropertyMixin |
56 | 56 | from google.cloud.storage._helpers import _scalar_property |
57 | 57 | from google.cloud.storage._signing import generate_signed_url |
@@ -1293,7 +1293,7 @@ def get_iam_policy(self, client=None): |
1293 | 1293 | :param client: Optional. The client to use. If not passed, falls back |
1294 | 1294 | to the ``client`` stored on the current object's bucket. |
1295 | 1295 |
|
1296 | | - :rtype: :class:`google.cloud.iam.Policy` |
| 1296 | + :rtype: :class:`google.api_core.iam.Policy` |
1297 | 1297 | :returns: the policy instance, based on the resource returned from |
1298 | 1298 | the ``getIamPolicy`` API request. |
1299 | 1299 | """ |
@@ -1326,15 +1326,15 @@ def set_iam_policy(self, policy, client=None): |
1326 | 1326 | If :attr:`user_project` is set on the bucket, bills the API request |
1327 | 1327 | to that project. |
1328 | 1328 |
|
1329 | | - :type policy: :class:`google.cloud.iam.Policy` |
| 1329 | + :type policy: :class:`google.api_core.iam.Policy` |
1330 | 1330 | :param policy: policy instance used to update bucket's IAM policy. |
1331 | 1331 |
|
1332 | 1332 | :type client: :class:`~google.cloud.storage.client.Client` or |
1333 | 1333 | ``NoneType`` |
1334 | 1334 | :param client: Optional. The client to use. If not passed, falls back |
1335 | 1335 | to the ``client`` stored on the current bucket. |
1336 | 1336 |
|
1337 | | - :rtype: :class:`google.cloud.iam.Policy` |
| 1337 | + :rtype: :class:`google.api_core.iam.Policy` |
1338 | 1338 | :returns: the policy instance, based on the resource returned from |
1339 | 1339 | the ``setIamPolicy`` API request. |
1340 | 1340 | """ |
|
0 commit comments