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 ContentLibraryGet
private ContentLibraryGet(objVAPIClient: VAPIClient, strContentLibraryName: string): com_vmware_content_library__model {
let arrVAPIContentLibraryModel: com_vmware_content_library__model[] = this.ContentLibraryList(objVAPIClient);
let objVAPIContentLibraryModel: com_vmware_content_library__model = arrVAPIContentLibraryModel.find((objVAPIContentLibraryModel: com_vmware_content_library__model): boolean => {
return objVAPIContentLibraryModel.name === strContentLibraryName;
});
objVAPIClient.close();
return objVAPIContentLibraryModel;
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
