public VcapClientResult DeleteService(string provisionedServiceName) { checkLoginStatus(); var services = new ServicesHelper(credMgr); return(services.DeleteService(provisionedServiceName)); }
public VcapClientResult DeleteUser(string email) { var appsHelper = new AppsHelper(proxyUser, credMgr); foreach (Application a in appsHelper.GetApplications(email)) { appsHelper.Delete(a.Name); } var servicesHelper = new ServicesHelper(proxyUser, credMgr); foreach (ProvisionedService ps in servicesHelper.GetProvisionedServices(email)) { servicesHelper.DeleteService(ps.Name); } VcapJsonRequest r = base.BuildVcapJsonRequest(Method.DELETE, Constants.USERS_PATH, email); IRestResponse response = r.Execute(); return new VcapClientResult(); }
public void DeleteUser(string email) { // TODO: doing this causes a "not logged in" failure when the user // doesn't exist, which is kind of misleading. var appsHelper = new AppsHelper(proxyUser, credMgr); foreach (Application a in appsHelper.GetApplications(email)) { appsHelper.Delete(a.Name); } var servicesHelper = new ServicesHelper(proxyUser, credMgr); foreach (ProvisionedService ps in servicesHelper.GetProvisionedServices()) { servicesHelper.DeleteService(ps.Name); } VcapJsonRequest r = BuildVcapJsonRequest(Method.DELETE, Constants.USERS_PATH, email); r.Execute(); }
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 void DeleteUser(string email) { // TODO: doing this causes a "not logged in" failure when the user // doesn't exist, which is kind of misleading. var appsHelper = new AppsHelper(proxyUser, credMgr); foreach (Application a in appsHelper.GetApplications(email)) { appsHelper.Delete(a.Name); } var servicesHelper = new ServicesHelper(proxyUser, credMgr); foreach (ProvisionedService ps in servicesHelper.GetProvisionedServices()) { servicesHelper.DeleteService(ps.Name); } VcapJsonRequest r = BuildVcapJsonRequest(Method.DELETE, Constants.USERS_PATH, email); r.Execute(); }
public VcapClientResult DeleteService(string provisionedServiceName) { CheckLoginStatus(); var services = new ServicesHelper(proxyUser, credMgr); return services.DeleteService(provisionedServiceName); }
public void DeleteService(string provisionedServiceName) { var services = new ServicesHelper(proxyUser, credMgr); services.DeleteService(provisionedServiceName); }
public void DeleteService(string provisionedServiceName) { var services = new ServicesHelper(proxyUser, credMgr); services.DeleteService(provisionedServiceName); }