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 ContentLibraryList
private ContentLibraryList(objVAPIClient: VAPIClient): com_vmware_content_library__model[] {
let objVAPIContentLibraryLocal: com_vmware_content_local__library = new com_vmware_content_local__library(objVAPIClient);
let arrVAPIContentLibraryID: string[] = objVAPIContentLibraryLocal.list();
let arrVAPIContentLibraryModel: com_vmware_content_library__model[] = arrVAPIContentLibraryID.map((strVAPIContentLibraryID: string): com_vmware_content_library__model => {
let objVAPIContentLibraryModel: com_vmware_content_library__model = objVAPIContentLibraryLocal.get(strVAPIContentLibraryID);
return objVAPIContentLibraryModel;
});
objVAPIClient.close();
return arrVAPIContentLibraryModel;
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
