deleteImageBuilder method
Deletes the specified image builder and releases the capacity.
May throw ResourceNotFoundException. May throw OperationNotPermittedException. May throw ConcurrentModificationException.
Parameter name :
The name of the image builder.
Implementation
Future<DeleteImageBuilderResult> deleteImageBuilder({
required String name,
}) async {
ArgumentError.checkNotNull(name, 'name');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'PhotonAdminProxyService.DeleteImageBuilder'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'Name': name,
},
);
return DeleteImageBuilderResult.fromJson(jsonResponse.body);
}