@@ -63,7 +63,7 @@ def create_service():
63
63
# Construct the service object for interacting with the Cloud Storage API -
64
64
# the 'storage' service, at version 'v1'.
65
65
# 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/
67
67
return discovery .build ('storage' , 'v1' , credentials = credentials )
68
68
69
69
@@ -95,7 +95,7 @@ def upload_object(bucket, filename, readers, owners):
95
95
})
96
96
97
97
# 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
99
99
with open (filename , 'rb' ) as f :
100
100
req = service .objects ().insert (
101
101
bucket = bucket , body = body ,
@@ -112,7 +112,7 @@ def get_object(bucket, filename, out_file):
112
112
service = create_service ()
113
113
114
114
# 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
116
116
req = service .objects ().get_media (bucket = bucket , object = filename )
117
117
118
118
downloader = http .MediaIoBaseDownload (out_file , req )
0 commit comments