From 3e5c970c6fc194fce1c2d292cf906790d84e1d8f Mon Sep 17 00:00:00 2001 From: feczo Date: Wed, 16 Mar 2016 17:05:27 +1100 Subject: [PATCH 1/2] Restoring region tags commit/5207559f92013ebd3253c8aaa45a568800dd31d8 broke autogenerated docs Restoring region tags --- storage/api/list_objects.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/storage/api/list_objects.py b/storage/api/list_objects.py index ca0d80f0e10c..29b26efac6c5 100644 --- a/storage/api/list_objects.py +++ b/storage/api/list_objects.py @@ -13,6 +13,9 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + +# [START all] + """Command-line sample application for listing all objects in a bucket using the Cloud Storage API. @@ -56,6 +59,7 @@ def get_bucket_metadata(bucket): def list_bucket(bucket): + # [START list_bucket] """Returns a list of metadata of the objects within the given bucket.""" service = create_service() @@ -72,7 +76,7 @@ def list_bucket(bucket): all_objects.extend(resp.get('items', [])) req = service.objects().list_next(req, resp) return all_objects - + # [END list_bucket] def main(bucket): print(json.dumps(get_bucket_metadata(bucket), indent=2)) @@ -88,3 +92,4 @@ def main(bucket): args = parser.parse_args() main(args.bucket) +-# [END all] From 0368add26b6cfa40af30460cad8429b4f6fa7616 Mon Sep 17 00:00:00 2001 From: feczo Date: Wed, 16 Mar 2016 17:07:27 +1100 Subject: [PATCH 2/2] Update list_objects.py --- storage/api/list_objects.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/api/list_objects.py b/storage/api/list_objects.py index 29b26efac6c5..c5e64ed9915c 100644 --- a/storage/api/list_objects.py +++ b/storage/api/list_objects.py @@ -92,4 +92,4 @@ def main(bucket): args = parser.parse_args() main(args.bucket) --# [END all] +# [END all]