To use this function add it to the class library file named PluginVCACCAFEService.ts
GitHub Repository: https://github.com/SimonSparksUK/Orchestrator
Filename: PluginVCACCAFEService.ts
Public Function: FindForType
publicFindForType<T>(strObjectType:"CustomProperty"|"CatalogResourceExtension"|"ApprovalPolicy"|"Subtenant"|"WorkItem"|"CatalogResourceAction"|"EventTopic"|"CatalogItemRequest"|"IdentityStore"|"AdminCatalogItem"|"EndpointType"|"CatalogItem"|"ResourceActionRequest"|"CompositeBlueprint"|"PropertyGroup"|"BusinessGroup"|"Endpoint"|"Entitlement"|"CatalogResource"|"ConsumerResourceOperation"|"VCACHost"|"FabricGroup"|"CustomResource"|"WorkItemAction"|"Tenant"|"Service"|"WorkflowSubscription"|"PropertyDefinition"|"ResourceAction"|"ReservationPolicy"|"Reservation"|"ServiceBlueprint"|"AssociationType"|"MachinePrefix",strObjectID:string):T{
letstrObjectTypePrefix:string="vCACCAFE";
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.
