implement toString function in Deployment class and add cancelDeploymentAndRollback API