Skip to content

Commit f7107ef

Browse files
authored
Replace link to 404 object IAM docs with a note on limited utility. (googleapis#5181)
Closes googleapis#4087.
1 parent c17c4e2 commit f7107ef

1 file changed

Lines changed: 21 additions & 6 deletions

File tree

  • storage/google/cloud/storage

storage/google/cloud/storage/blob.py

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1183,8 +1183,13 @@ def create_resumable_upload_session(
11831183
def get_iam_policy(self, client=None):
11841184
"""Retrieve the IAM policy for the object.
11851185
1186-
See
1187-
https://cloud.google.com/storage/docs/json_api/v1/objects/getIamPolicy
1186+
.. note:
1187+
1188+
Blob- / object-level IAM support does not yet exist and methods
1189+
currently call an internal ACL backend not providing any utility
1190+
beyond the blob's :attr:`acl` at this time. The API may be enhanced
1191+
in the future and is currently undocumented. Use :attr:`acl` for
1192+
managing object access control.
11881193
11891194
If :attr:`user_project` is set on the bucket, bills the API request
11901195
to that project.
@@ -1215,8 +1220,13 @@ def get_iam_policy(self, client=None):
12151220
def set_iam_policy(self, policy, client=None):
12161221
"""Update the IAM policy for the bucket.
12171222
1218-
See
1219-
https://cloud.google.com/storage/docs/json_api/v1/objects/setIamPolicy
1223+
.. note:
1224+
1225+
Blob- / object-level IAM support does not yet exist and methods
1226+
currently call an internal ACL backend not providing any utility
1227+
beyond the blob's :attr:`acl` at this time. The API may be enhanced
1228+
in the future and is currently undocumented. Use :attr:`acl` for
1229+
managing object access control.
12201230
12211231
If :attr:`user_project` is set on the bucket, bills the API request
12221232
to that project.
@@ -1253,8 +1263,13 @@ def set_iam_policy(self, policy, client=None):
12531263
def test_iam_permissions(self, permissions, client=None):
12541264
"""API call: test permissions
12551265
1256-
See
1257-
https://cloud.google.com/storage/docs/json_api/v1/objects/testIamPermissions
1266+
.. note:
1267+
1268+
Blob- / object-level IAM support does not yet exist and methods
1269+
currently call an internal ACL backend not providing any utility
1270+
beyond the blob's :attr:`acl` at this time. The API may be enhanced
1271+
in the future and is currently undocumented. Use :attr:`acl` for
1272+
managing object access control.
12581273
12591274
If :attr:`user_project` is set on the bucket, bills the API request
12601275
to that project.

0 commit comments

Comments
 (0)