downloadDeployment method
Download Deployment
Get a Deployment's contents by its unique ID. This endpoint supports range requests for partial or streaming file download.
Implementation
Future<Uint8List> downloadDeployment(
{required String functionId, required String deploymentId}) async {
final String apiPath =
'/functions/{functionId}/deployments/{deploymentId}/download'
.replaceAll('{functionId}', functionId)
.replaceAll('{deploymentId}', deploymentId);
final Map<String, dynamic> params = {
'project': client.config['project'],
'key': client.config['key'],
};
final res = await client.call(HttpMethod.get,
path: apiPath, params: params, responseType: ResponseType.bytes);
return res.data;
}