To use this function add it to the class library file named vCenterVAPIService.ts
GitHub Repository: https://github.com/SimonSparksUK/Orchestrator
Filename: vCenterVAPIService.ts
Function ContentLibraryItemListByType
private ContentLibraryItemListByType(objVAPIClient: VAPIClient, objVAPIContentLibraryModel: com_vmware_content_library__model, strType: string): com_vmware_content_library_item__model[] {
let arrVAPIContentLibraryItemModel: com_vmware_content_library_item__model[] = this.ContentLibraryItemList(objVAPIClient, objVAPIContentLibraryModel);
arrVAPIContentLibraryItemModel = arrVAPIContentLibraryItemModel.filter((objVAPIContentLibraryItemModel: com_vmware_content_library_item__model): boolean => {
return objVAPIContentLibraryItemModel.type === strType;
});
return arrVAPIContentLibraryItemModel;
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
