public IEnumerable <Application> GetApplications() { checkLoginStatus(); var hlpr = new AppsHelper(credMgr); IEnumerable <Application> apps = hlpr.GetApplications(); foreach (var a in apps) { a.Parent = cloud; } // TODO not thrilled about this return(apps); }
public VcapClientResult DeleteUser(string email) { var appsHelper = new AppsHelper(credMgr); foreach (Application a in appsHelper.GetApplications(email)) { appsHelper.Delete(a.Name); } var servicesHelper = new ServicesHelper(credMgr); foreach (ProvisionedService ps in servicesHelper.GetProvisionedServices(email)) { servicesHelper.DeleteService(ps.Name); } var r = new VcapJsonRequest(credMgr, Method.DELETE, Constants.USERS_PATH, email); RestResponse response = r.Execute(); return new VcapClientResult(); }
public VcapClientResult DeleteUser(string email) { var appsHelper = new AppsHelper(credMgr); foreach (Application a in appsHelper.GetApplications(email)) { appsHelper.Delete(a.Name); } var servicesHelper = new ServicesHelper(credMgr); foreach (ProvisionedService ps in servicesHelper.GetProvisionedServices(email)) { servicesHelper.DeleteService(ps.Name); } var r = new VcapJsonRequest(credMgr, Method.DELETE, Constants.USERS_PATH, email); RestResponse response = r.Execute(); return(new VcapClientResult()); }
public IEnumerable<Application> GetApplications() { checkLoginStatus(); var hlpr = new AppsHelper(credMgr); IEnumerable<Application> apps = hlpr.GetApplications(); foreach (var a in apps) { a.Parent = cloud; } // TODO not thrilled about this return apps; }