From 6182be962e9a3c260eccc4c274cb84e87224773b Mon Sep 17 00:00:00 2001 From: Jerjou Cheng Date: Thu, 29 Sep 2016 10:29:57 -0700 Subject: [PATCH] Update shortlink with even-shorter link. --- storage/api/crud_object.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/storage/api/crud_object.py b/storage/api/crud_object.py index ddbf280c52c..9850cf52ba2 100644 --- a/storage/api/crud_object.py +++ b/storage/api/crud_object.py @@ -63,7 +63,7 @@ def create_service(): # Construct the service object for interacting with the Cloud Storage API - # the 'storage' service, at version 'v1'. # You can browse other available api services and versions here: - # http://g.co/dev/api-client-library/python/apis/ + # http://g.co/dv/api-client-library/python/apis/ return discovery.build('storage', 'v1', credentials=credentials) @@ -95,7 +95,7 @@ def upload_object(bucket, filename, readers, owners): }) # Now insert them into the specified bucket as a media insertion. - # http://g.co/dev/resources/api-libraries/documentation/storage/v1/python/latest/storage_v1.objects.html#insert + # http://g.co/dv/resources/api-libraries/documentation/storage/v1/python/latest/storage_v1.objects.html#insert with open(filename, 'rb') as f: req = service.objects().insert( bucket=bucket, body=body, @@ -112,7 +112,7 @@ def get_object(bucket, filename, out_file): service = create_service() # Use get_media instead of get to get the actual contents of the object. - # http://g.co/dev/resources/api-libraries/documentation/storage/v1/python/latest/storage_v1.objects.html#get_media + # http://g.co/dv/resources/api-libraries/documentation/storage/v1/python/latest/storage_v1.objects.html#get_media req = service.objects().get_media(bucket=bucket, object=filename) downloader = http.MediaIoBaseDownload(out_file, req)