To use this function add it to the class library file named PluginVRAService.ts
GitHub Repository: https://github.com/SimonSparksUK/Orchestrator
Filename: PluginVRAService.ts
Description: Orchestrator Function to Delete a Machine
Public Function: MachineDelete
publicMachineDelete(objVraMachine:VraMachine,blnForceDelete:boolean=false):VraRequestTracker{
letobjVraHost:VraHost=objVraMachine.host;
letobjVraInfrastructureClient:VraInfrastructureClient=objVraHost.createInfrastructureClient();
// @ts-ignore
letobjVraMachineService:VraMachineService=objVraInfrastructureClient.createMachineService();
letobjVraRequestTracker:VraRequestTracker=objVraMachineService.deleteMachine(objVraMachine,blnForceDelete);
returnobjVraRequestTracker;
}TypeScriptDiscover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
