generateDownloadUrl method
Returns a signed URL for downloading deployed function source code. The URL is only valid for a limited period and should be used within 30 minutes of generation. For more information about the signed URL usage see: https://cloud.google.com/storage/docs/access-control/signed-urls
Throws a http.ClientException if there were problems communicating with
the API service. Throws a StatusException if the API failed with a
Status message. Throws a ServiceException for any other failure.
Implementation
Future<GenerateDownloadUrlResponse> generateDownloadUrl(
GenerateDownloadUrlRequest request,
) async {
final url = Uri.https(_host, '/v2/${request.name}:generateDownloadUrl');
final response = await _client.post(url, body: request);
return GenerateDownloadUrlResponse.fromJson(response);
}