airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scnakand...@apache.org
Subject [09/14] airavata git commit: adding replica catalog methods to the API
Date Fri, 11 Dec 2015 05:18:05 GMT
http://git-wip-us.apache.org/repos/asf/airavata/blob/7f777502/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/api/Airavata-remote
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/api/Airavata-remote
b/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/api/Airavata-remote
index de2098d..f562bf8 100755
--- a/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/api/Airavata-remote
+++ b/airavata-api/airavata-client-sdks/airavata-python-sdk/src/main/resources/lib/apache/airavata/api/Airavata-remote
@@ -156,6 +156,10 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help':
   print('  void updateWorkflow(AuthzToken authzToken, string workflowTemplateId, Workflow
workflow)')
   print('  string getWorkflowTemplateId(AuthzToken authzToken, string workflowName)')
   print('  bool isWorkflowExistWithName(AuthzToken authzToken, string workflowName)')
+  print('  string publishDataResource(AuthzToken authzToken, DataResourceModel dataResourceModel)')
+  print('  void updateDataResource(AuthzToken authzToken, DataResourceModel dataResourceModel)')
+  print('  void removeDataResource(AuthzToken authzToken, string resourceId)')
+  print('  DataResourceModel getDataResource(AuthzToken authzToken, string resourceId)')
   print('')
   sys.exit(0)
 
@@ -1004,6 +1008,30 @@ elif cmd == 'isWorkflowExistWithName':
     sys.exit(1)
   pp.pprint(client.isWorkflowExistWithName(eval(args[0]),args[1],))
 
+elif cmd == 'publishDataResource':
+  if len(args) != 2:
+    print('publishDataResource requires 2 args')
+    sys.exit(1)
+  pp.pprint(client.publishDataResource(eval(args[0]),eval(args[1]),))
+
+elif cmd == 'updateDataResource':
+  if len(args) != 2:
+    print('updateDataResource requires 2 args')
+    sys.exit(1)
+  pp.pprint(client.updateDataResource(eval(args[0]),eval(args[1]),))
+
+elif cmd == 'removeDataResource':
+  if len(args) != 2:
+    print('removeDataResource requires 2 args')
+    sys.exit(1)
+  pp.pprint(client.removeDataResource(eval(args[0]),args[1],))
+
+elif cmd == 'getDataResource':
+  if len(args) != 2:
+    print('getDataResource requires 2 args')
+    sys.exit(1)
+  pp.pprint(client.getDataResource(eval(args[0]),args[1],))
+
 else:
   print('Unrecognized method %s' % cmd)
   sys.exit(1)


Mime
View raw message