airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sma...@apache.org
Subject [3/9] airavata git commit: adding api methods for storage resources
Date Thu, 12 Nov 2015 19:55:51 GMT
http://git-wip-us.apache.org/repos/asf/airavata/blob/e2799d45/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 1e6a3c0..7330142 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
@@ -90,6 +90,11 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help':
   print('   getAllComputeResourceNames(AuthzToken authzToken)')
   print('  bool updateComputeResource(AuthzToken authzToken, string computeResourceId, ComputeResourceDescription
computeResourceDescription)')
   print('  bool deleteComputeResource(AuthzToken authzToken, string computeResourceId)')
+  print('  string registerStorageResource(AuthzToken authzToken, StorageResourceDescription
storageResourceDescription)')
+  print('  StorageResourceDescription getStorageResource(AuthzToken authzToken, string storageResourceId)')
+  print('   getAllStorageResourceNames(AuthzToken authzToken)')
+  print('  bool updateStorageResource(AuthzToken authzToken, string storageResourceId, StorageResourceDescription
storageResourceDescription)')
+  print('  bool deleteStorageResource(AuthzToken authzToken, string storageResourceId)')
   print('  string addLocalSubmissionDetails(AuthzToken authzToken, string computeResourceId,
i32 priorityOrder, LOCALSubmission localSubmission)')
   print('  bool updateLocalSubmissionDetails(AuthzToken authzToken, string jobSubmissionInterfaceId,
LOCALSubmission localSubmission)')
   print('  LOCALSubmission getLocalJobSubmission(AuthzToken authzToken, string jobSubmissionId)')
@@ -600,6 +605,36 @@ elif cmd == 'deleteComputeResource':
     sys.exit(1)
   pp.pprint(client.deleteComputeResource(eval(args[0]),args[1],))
 
+elif cmd == 'registerStorageResource':
+  if len(args) != 2:
+    print('registerStorageResource requires 2 args')
+    sys.exit(1)
+  pp.pprint(client.registerStorageResource(eval(args[0]),eval(args[1]),))
+
+elif cmd == 'getStorageResource':
+  if len(args) != 2:
+    print('getStorageResource requires 2 args')
+    sys.exit(1)
+  pp.pprint(client.getStorageResource(eval(args[0]),args[1],))
+
+elif cmd == 'getAllStorageResourceNames':
+  if len(args) != 1:
+    print('getAllStorageResourceNames requires 1 args')
+    sys.exit(1)
+  pp.pprint(client.getAllStorageResourceNames(eval(args[0]),))
+
+elif cmd == 'updateStorageResource':
+  if len(args) != 3:
+    print('updateStorageResource requires 3 args')
+    sys.exit(1)
+  pp.pprint(client.updateStorageResource(eval(args[0]),args[1],eval(args[2]),))
+
+elif cmd == 'deleteStorageResource':
+  if len(args) != 2:
+    print('deleteStorageResource requires 2 args')
+    sys.exit(1)
+  pp.pprint(client.deleteStorageResource(eval(args[0]),args[1],))
+
 elif cmd == 'addLocalSubmissionDetails':
   if len(args) != 4:
     print('addLocalSubmissionDetails requires 4 args')


Mime
View raw message