public override OperationResult Deprovision(AddonDeprovisionRequest request)
{
var deprovisionResult = new OperationResult {IsSuccess = false};
try
{
// this loads in the developer options and the manifest parameters
// validation will also occur here, so if this fails it will be caught prior to any invocation on the cluster.
var developerOptions = DeveloperParameters.Parse(request.DeveloperParameters, request.Manifest);
// for assumptions now, delete a volume
var netappresponse = NetAppFactory.DeleteVolume(developerOptions, request.ConnectionData);
// use the class's conversion method.
return netappresponse.ToOperationResult();
}
catch (Exception e)
{
deprovisionResult.EndUserMessage = e.Message;
}
return deprovisionResult;
}