listDeployments method
List deployments
Get a list of all the project's code deployments. You can use the query params to filter your results.
Implementation
Future<models.DeploymentList> listDeployments(
{required String functionId,
List<String>? queries,
String? search}) async {
final String apiPath = '/functions/{functionId}/deployments'
.replaceAll('{functionId}', functionId);
final Map<String, dynamic> apiParams = {
'queries': queries,
'search': search,
};
final Map<String, String> apiHeaders = {
'content-type': 'application/json',
};
final res = await client.call(HttpMethod.get,
path: apiPath, params: apiParams, headers: apiHeaders);
return models.DeploymentList.fromMap(res.data);
}