Skip to content

Commit caae43d

Browse files
jerjouJon Wayne Parrott
authored and
Jon Wayne Parrott
committed
Update shortlink with even-shorter link. (GoogleCloudPlatform#549)
1 parent 0e8995a commit caae43d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

storage/api/crud_object.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def create_service():
6363
# Construct the service object for interacting with the Cloud Storage API -
6464
# the 'storage' service, at version 'v1'.
6565
# You can browse other available api services and versions here:
66-
# http://g.co/dev/api-client-library/python/apis/
66+
# http://g.co/dv/api-client-library/python/apis/
6767
return discovery.build('storage', 'v1', credentials=credentials)
6868

6969

@@ -95,7 +95,7 @@ def upload_object(bucket, filename, readers, owners):
9595
})
9696

9797
# Now insert them into the specified bucket as a media insertion.
98-
# http://g.co/dev/resources/api-libraries/documentation/storage/v1/python/latest/storage_v1.objects.html#insert
98+
# http://g.co/dv/resources/api-libraries/documentation/storage/v1/python/latest/storage_v1.objects.html#insert
9999
with open(filename, 'rb') as f:
100100
req = service.objects().insert(
101101
bucket=bucket, body=body,
@@ -112,7 +112,7 @@ def get_object(bucket, filename, out_file):
112112
service = create_service()
113113

114114
# Use get_media instead of get to get the actual contents of the object.
115-
# http://g.co/dev/resources/api-libraries/documentation/storage/v1/python/latest/storage_v1.objects.html#get_media
115+
# http://g.co/dv/resources/api-libraries/documentation/storage/v1/python/latest/storage_v1.objects.html#get_media
116116
req = service.objects().get_media(bucket=bucket, object=filename)
117117

118118
downloader = http.MediaIoBaseDownload(out_file, req)

0 commit comments

Comments
 (0)