Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document that blob-level IAM APIs are deprecated. #4200

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions storage/google/cloud/storage/blob.py
Original file line number Diff line number Diff line change
Expand Up @@ -1093,8 +1093,9 @@ def create_resumable_upload_session(
def get_iam_policy(self, client=None):
"""Retrieve the IAM policy for the object.

See
https://cloud.google.com/storage/docs/json_api/v1/objects/getIamPolicy
.. warning::

The ``objects.getIamPolicy`` API is deprecated.

:type client: :class:`~google.cloud.storage.client.Client` or
``NoneType``
Expand Down Expand Up @@ -1122,8 +1123,9 @@ def get_iam_policy(self, client=None):
def set_iam_policy(self, policy, client=None):
"""Update the IAM policy for the bucket.

See
https://cloud.google.com/storage/docs/json_api/v1/objects/setIamPolicy
.. warning::

The ``objects.setIamPolicy`` API is deprecated.

:type policy: :class:`google.cloud.iam.Policy`
:param policy: policy instance used to update bucket's IAM policy.
Expand Down Expand Up @@ -1157,8 +1159,9 @@ def set_iam_policy(self, policy, client=None):
def test_iam_permissions(self, permissions, client=None):
"""API call: test permissions

See
https://cloud.google.com/storage/docs/json_api/v1/objects/testIamPermissions
.. warning::

The ``objects.testIamPermissions`` API is deprecated.

:type permissions: list of string
:param permissions: the permissions to check
Expand Down