add partition delete method

Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/94bb080b
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/94bb080b
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/94bb080b

Branch: refs/heads/master
Commit: 94bb080b9ff735c3fdc400c4da760a770a34438b
Parents: 2cfb0ed
Author: Dakshika Jayathilaka <[email protected]>
Authored: Mon Jan 26 17:09:23 2015 +0530
Committer: Dakshika Jayathilaka <[email protected]>
Committed: Tue Jan 27 12:27:02 2015 +0530

----------------------------------------------------------------------
 .../console/controllers/configure/configure_requests.jag         | 3 +++
 .../console/controllers/rest/rest_calls.jag                      | 4 ++++
 2 files changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/94bb080b/components/org.apache.stratos.manager.console/console/controllers/configure/configure_requests.jag
----------------------------------------------------------------------
diff --git 
a/components/org.apache.stratos.manager.console/console/controllers/configure/configure_requests.jag
 
b/components/org.apache.stratos.manager.console/console/controllers/configure/configure_requests.jag
index 284b870..9b5b230 100644
--- 
a/components/org.apache.stratos.manager.console/console/controllers/configure/configure_requests.jag
+++ 
b/components/org.apache.stratos.manager.console/console/controllers/configure/configure_requests.jag
@@ -39,6 +39,9 @@ try {
         case "docker":
             formSubmit = 
util.RESTCalls.deployKubernetesClusterDefinition(formPayload);
             break;
+        case "delete-partitions":
+            formSubmit = util.RESTCalls.deletePartiions(formPayload);
+            break;
         case "delete-cartridge":
             formSubmit = util.RESTCalls.deleteCartridgeDefinition(formPayload);
             break;

http://git-wip-us.apache.org/repos/asf/stratos/blob/94bb080b/components/org.apache.stratos.manager.console/console/controllers/rest/rest_calls.jag
----------------------------------------------------------------------
diff --git 
a/components/org.apache.stratos.manager.console/console/controllers/rest/rest_calls.jag
 
b/components/org.apache.stratos.manager.console/console/controllers/rest/rest_calls.jag
index 3c2f014..8b0efe3 100644
--- 
a/components/org.apache.stratos.manager.console/console/controllers/rest/rest_calls.jag
+++ 
b/components/org.apache.stratos.manager.console/console/controllers/rest/rest_calls.jag
@@ -31,6 +31,10 @@ RESTCalls = new function(){
         return this.send("POST","/cartridges", cartridgeDefinition);
     };
 
+    this.deletePartiions = function(networkPartitionId){
+        return this.send("DELETE","/networkPartitions/" + 
networkPartitionId,{});
+    };
+
     this.deleteCartridgeDefinition = function(cartridgeType){
         return this.send("DELETE","/cartridges/" + cartridgeType,{});
     };

Reply via email to