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
public MachineDelete(objVraMachine: VraMachine, blnForceDelete: boolean = false): VraRequestTracker {
let objVraHost: VraHost = objVraMachine.host;
let objVraInfrastructureClient: VraInfrastructureClient = objVraHost.createInfrastructureClient();
// @ts-ignore
let objVraMachineService: VraMachineService = objVraInfrastructureClient.createMachineService();
let objVraRequestTracker: VraRequestTracker = objVraMachineService.deleteMachine(objVraMachine, blnForceDelete);
return objVraRequestTracker;
}TypeScriptDiscover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
