airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scnakand...@apache.org
Subject [05/10] airavata git commit: adding capability to store and retreive PWD credentials in the Airavata API
Date Sun, 01 May 2016 18:28:48 GMT
http://git-wip-us.apache.org/repos/asf/airavata/blob/3bb7f493/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 2ff18a6..cd1bd6a 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
@@ -38,10 +38,13 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help':
   print('  Notification getNotification(AuthzToken authzToken, string gatewayId, string notificationId)')
   print('   getAllNotifications(AuthzToken authzToken, string gatewayId)')
   print('  string generateAndRegisterSSHKeys(AuthzToken authzToken, string gatewayId, string
userName)')
+  print('  string registerPwdCredential(AuthzToken authzToken, string gatewayId, string userName,
string password)')
   print('  string getSSHPubKey(AuthzToken authzToken, string airavataCredStoreToken, string
gatewayId)')
   print('   getAllUserSSHPubKeys(AuthzToken authzToken, string userName)')
   print('   getAllGatewaySSHPubKeys(AuthzToken authzToken, string gatewayId)')
+  print('   getAllGatewayPWDCredentials(AuthzToken authzToken, string gatewayId)')
   print('  bool deleteSSHPubKey(AuthzToken authzToken, string airavataCredStoreToken, string
gatewayId)')
+  print('  bool deletePWDCredential(AuthzToken authzToken, string airavataCredStoreToken,
string gatewayId)')
   print('  string createProject(AuthzToken authzToken, string gatewayId, Project project)')
   print('  void updateProject(AuthzToken authzToken, string projectId, Project updatedProject)')
   print('  Project getProject(AuthzToken authzToken, string projectId)')
@@ -308,6 +311,12 @@ elif cmd == 'generateAndRegisterSSHKeys':
     sys.exit(1)
   pp.pprint(client.generateAndRegisterSSHKeys(eval(args[0]),args[1],args[2],))
 
+elif cmd == 'registerPwdCredential':
+  if len(args) != 4:
+    print('registerPwdCredential requires 4 args')
+    sys.exit(1)
+  pp.pprint(client.registerPwdCredential(eval(args[0]),args[1],args[2],args[3],))
+
 elif cmd == 'getSSHPubKey':
   if len(args) != 3:
     print('getSSHPubKey requires 3 args')
@@ -326,12 +335,24 @@ elif cmd == 'getAllGatewaySSHPubKeys':
     sys.exit(1)
   pp.pprint(client.getAllGatewaySSHPubKeys(eval(args[0]),args[1],))
 
+elif cmd == 'getAllGatewayPWDCredentials':
+  if len(args) != 2:
+    print('getAllGatewayPWDCredentials requires 2 args')
+    sys.exit(1)
+  pp.pprint(client.getAllGatewayPWDCredentials(eval(args[0]),args[1],))
+
 elif cmd == 'deleteSSHPubKey':
   if len(args) != 3:
     print('deleteSSHPubKey requires 3 args')
     sys.exit(1)
   pp.pprint(client.deleteSSHPubKey(eval(args[0]),args[1],args[2],))
 
+elif cmd == 'deletePWDCredential':
+  if len(args) != 3:
+    print('deletePWDCredential requires 3 args')
+    sys.exit(1)
+  pp.pprint(client.deletePWDCredential(eval(args[0]),args[1],args[2],))
+
 elif cmd == 'createProject':
   if len(args) != 3:
     print('createProject requires 3 args')


Mime
View raw message