public getAccountTokenResponse getAccountToken(int account_id, int subscription_id) { pem.APS aps = CookComputing.XmlRpc.XmlRpcProxyGen.Create <pem.APS>(); aps.Url = Server; var response = aps.getAccountToken(new getAccountTokenRequest() { account_id = account_id, subscription_id = subscription_id }); return(Utility.Cast <getAccountTokenResponse>(response.result)); }
public provideApplicationInstanceResponse provideApplicationInstance(int subscription_id, int rt_id, int app_id, string url_path, settings[] settings, string[] attrs) { pem.APS aps = CookComputing.XmlRpc.XmlRpcProxyGen.Create <pem.APS>(); aps.Url = Server; var response = aps.provideApplicationInstance(new provideApplicationInstanceRequest() { subscription_id = subscription_id, rt_id = rt_id, app_id = app_id, url_path = url_path, settings = settings, attrs = attrs }); return(Utility.Cast <provideApplicationInstanceResponse>(response.result)); }
public importPackageResponse importPackage(string package_url, bool disable_package = false) { pem.APS aps = CookComputing.XmlRpc.XmlRpcProxyGen.Create <pem.APS>(); aps.Url = Server; var response = aps.importPackage(new importPackageRequest() { package_url = package_url, disable_package = disable_package }); if (response.status != 0) { throw new Exception(response.error_message); } return(Utility.Cast <importPackageResponse>(response.result)); }