From 3ce3de0e15570ebae6044c15e8e6e9a9592854dd Mon Sep 17 00:00:00 2001 From: Google Earth Engine Authors Date: Mon, 4 Nov 2024 13:29:25 -0800 Subject: [PATCH] Update docstrings with the new policy on valid Cloud Storage buckets. PiperOrigin-RevId: 693074290 --- python/ee/blob.py | 7 +++++-- python/ee/image.py | 5 ++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/python/ee/blob.py b/python/ee/blob.py index 779a273f0..c5694949c 100644 --- a/python/ee/blob.py +++ b/python/ee/blob.py @@ -35,8 +35,11 @@ def __init__(self, url: _arg_types.String): """Creates a Blob wrapper. 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. + 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 + including US-CENTRAL1, or the US-CENTRAL1 region. """ self.initialize() diff --git a/python/ee/image.py b/python/ee/image.py index 1e64b0b6b..2a5f1b85a 100644 --- a/python/ee/image.py +++ b/python/ee/image.py @@ -2520,7 +2520,10 @@ def loadGeoTIFF(uri: _arg_types.String) -> Image: """Returns an image from a GeoTIFF in Cloud Storage. Args: - uri: The Cloud Storage URI of the GeoTIFF to load. + 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. """ return apifunction.ApiFunction.call_('Image.loadGeoTIFF', uri)