Skip to content

Commit

Permalink
Add some guidance on how to set the storage.buckets.get permission.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 694217028
  • Loading branch information
Google Earth Engine Authors committed Nov 7, 2024
1 parent 60e507c commit 5ec6845
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
7 changes: 5 additions & 2 deletions python/ee/blob.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,11 @@ def __init__(self, url: _arg_types.String):
Args:
url: Where to fetch the blob on GCS. Must start with "gs://". This must be
a python str or a ComputedObject that returns an ee.String. The bucket
metadata must be accessible (check the storage.buckets.get permission)
and the bucket must be located in the US multi-region, a dual-region
metadata must be accessible (requires the `storage.buckets.get`
permission which is provided by the role "Storage Legacy Bucket Reader",
among others, see
https://cloud.google.com/storage/docs/access-control/iam-roles) and
the bucket must be located in the US multi-region, a dual-region
including US-CENTRAL1, or the US-CENTRAL1 region.
"""
self.initialize()
Expand Down
8 changes: 5 additions & 3 deletions python/ee/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -2521,9 +2521,11 @@ def loadGeoTIFF(uri: _arg_types.String) -> Image:
Args:
uri: The Cloud Storage URI of the GeoTIFF to load. The bucket metadata
must be accessible (check the storage.buckets.get permission) and the
bucket metadata must be located in the US multi-region, a dual-region
including US-CENTRAL1, or the US-CENTRAL1 region.
must be accessible (requires the `storage.buckets.get` permission which
is provided by the role "Storage Legacy Bucket Reader" among others, see
https://cloud.google.com/storage/docs/access-control/iam-roles) and the
bucket metadata must be located in the US multi-region, a dual-region
including US-CENTRAL1, or the US-CENTRAL1 region.
"""

return apifunction.ApiFunction.call_('Image.loadGeoTIFF', uri)
Expand Down

0 comments on commit 5ec6845

Please sign in to comment.