To use this function add it to the class library file named PluginVCACService.ts
GitHub Repository: https://github.com/SimonSparksUK/Orchestrator
Filename: PluginVCACService.ts
Public Function: FindForType
publicFindForType<T>(strObjectType:"virtualFolder_ProvisioningGroups"|"virtualFolder_VirtualMachines"|"virtualFolder_Reservations"|"virtualFolder_Hosts"|"virtualFolder_Endpoints"|"virtualFolder_Prefixes"|"Reservation"|"ProvisioningGroup"|"HostNamePrefixes"|"HostMachine"|"VCACHost"|"Entity"|"Endpoint"|"VirtualMachine",strObjectID:string):T{
letstrObjectTypePrefix:string="vCAC";
letstrObjectTypeName:string=`${strObjectTypePrefix}:${strObjectType}`;
letobjObjectType:T=this.serverFindForType<T>(strObjectTypeName,strObjectID);
returnobjObjectType;
}TypeScriptDiscover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
