def generate_signed_url(bucket_name, blob_name):
 storage_client = storage.Client()
 bucket = storage_client.get_bucket(bucket_name)
 blob = bucket.blob(blob_name)
 url = blob.generate_signed_url(expiration=datetime.timedelta(hours=1), method='GET')
 print 'The signed url for {} is {}'.format(blob.name, url)

def generate_signed_url ( bucket_name , blob_name ) : storage_client = storage . Client ( ) bucket = storage_client . get_bucket ( bucket_name ) blob = bucket . blob ( blob_name ) url = blob . generate_signed_url ( expiration = datetime . timedelta ( hours = 1 ) , method = 'GET' ) print 'The signed url for {} is {}' . format ( blob . name , url )
generate signed url to provide query-string authn to a resource .