Return-Path: X-Original-To: apmail-airavata-commits-archive@www.apache.org Delivered-To: apmail-airavata-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 181CF18C76 for ; Wed, 9 Dec 2015 05:08:56 +0000 (UTC) Received: (qmail 44287 invoked by uid 500); 9 Dec 2015 05:08:55 -0000 Delivered-To: apmail-airavata-commits-archive@airavata.apache.org Received: (qmail 44155 invoked by uid 500); 9 Dec 2015 05:08:55 -0000 Mailing-List: contact commits-help@airavata.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airavata.apache.org Delivered-To: mailing list commits@airavata.apache.org Received: (qmail 43652 invoked by uid 99); 9 Dec 2015 05:08:55 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Dec 2015 05:08:55 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 012A8E0B27; Wed, 9 Dec 2015 05:08:55 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: smarru@apache.org To: commits@airavata.apache.org Date: Wed, 09 Dec 2015 05:09:02 -0000 Message-Id: <5504d49b141b427c93db1146857d5c74@git.apache.org> In-Reply-To: <1a9ee4665a3341a48c67a2811b695905@git.apache.org> References: <1a9ee4665a3341a48c67a2811b695905@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [09/14] airavata git commit: Adding getkeys by gateway api methods - AIRAVATA-1874 http://git-wip-us.apache.org/repos/asf/airavata/blob/6a9a1254/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata.h ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata.h b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata.h index 21c296c..7ab5277 100644 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata.h +++ b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata.h @@ -69,6 +69,7 @@ class AiravataIf { virtual void generateAndRegisterSSHKeys(std::string& _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const std::string& userName) = 0; virtual void getSSHPubKey(std::string& _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& airavataCredStoreToken, const std::string& gatewayId) = 0; virtual void getAllUserSSHPubKeys(std::map & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& userName) = 0; + virtual void getAllGatewaySSHPubKeys(std::map & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId) = 0; /** * Creates a Project with basic metadata. @@ -1783,6 +1784,9 @@ class AiravataNull : virtual public AiravataIf { void getAllUserSSHPubKeys(std::map & /* _return */, const ::apache::airavata::model::security::AuthzToken& /* authzToken */, const std::string& /* userName */) { return; } + void getAllGatewaySSHPubKeys(std::map & /* _return */, const ::apache::airavata::model::security::AuthzToken& /* authzToken */, const std::string& /* gatewayId */) { + return; + } void createProject(std::string& /* _return */, const ::apache::airavata::model::security::AuthzToken& /* authzToken */, const std::string& /* gatewayId */, const ::apache::airavata::model::workspace::Project& /* project */) { return; } @@ -3659,6 +3663,150 @@ class Airavata_getAllUserSSHPubKeys_presult { }; +class Airavata_getAllGatewaySSHPubKeys_args { + public: + + static const char* ascii_fingerprint; // = "5C8C4FD14D732E7EC3E0A61A8C24C7FF"; + static const uint8_t binary_fingerprint[16]; // = {0x5C,0x8C,0x4F,0xD1,0x4D,0x73,0x2E,0x7E,0xC3,0xE0,0xA6,0x1A,0x8C,0x24,0xC7,0xFF}; + + Airavata_getAllGatewaySSHPubKeys_args(const Airavata_getAllGatewaySSHPubKeys_args&); + Airavata_getAllGatewaySSHPubKeys_args& operator=(const Airavata_getAllGatewaySSHPubKeys_args&); + Airavata_getAllGatewaySSHPubKeys_args() : gatewayId() { + } + + virtual ~Airavata_getAllGatewaySSHPubKeys_args() throw(); + ::apache::airavata::model::security::AuthzToken authzToken; + std::string gatewayId; + + void __set_authzToken(const ::apache::airavata::model::security::AuthzToken& val); + + void __set_gatewayId(const std::string& val); + + bool operator == (const Airavata_getAllGatewaySSHPubKeys_args & rhs) const + { + if (!(authzToken == rhs.authzToken)) + return false; + if (!(gatewayId == rhs.gatewayId)) + return false; + return true; + } + bool operator != (const Airavata_getAllGatewaySSHPubKeys_args &rhs) const { + return !(*this == rhs); + } + + bool operator < (const Airavata_getAllGatewaySSHPubKeys_args & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + friend std::ostream& operator<<(std::ostream& out, const Airavata_getAllGatewaySSHPubKeys_args& obj); +}; + + +class Airavata_getAllGatewaySSHPubKeys_pargs { + public: + + static const char* ascii_fingerprint; // = "5C8C4FD14D732E7EC3E0A61A8C24C7FF"; + static const uint8_t binary_fingerprint[16]; // = {0x5C,0x8C,0x4F,0xD1,0x4D,0x73,0x2E,0x7E,0xC3,0xE0,0xA6,0x1A,0x8C,0x24,0xC7,0xFF}; + + + virtual ~Airavata_getAllGatewaySSHPubKeys_pargs() throw(); + const ::apache::airavata::model::security::AuthzToken* authzToken; + const std::string* gatewayId; + + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + friend std::ostream& operator<<(std::ostream& out, const Airavata_getAllGatewaySSHPubKeys_pargs& obj); +}; + +typedef struct _Airavata_getAllGatewaySSHPubKeys_result__isset { + _Airavata_getAllGatewaySSHPubKeys_result__isset() : success(false), ire(false), ace(false), ase(false) {} + bool success :1; + bool ire :1; + bool ace :1; + bool ase :1; +} _Airavata_getAllGatewaySSHPubKeys_result__isset; + +class Airavata_getAllGatewaySSHPubKeys_result { + public: + + static const char* ascii_fingerprint; // = "718BFC609275A3CA37186885AF55A512"; + static const uint8_t binary_fingerprint[16]; // = {0x71,0x8B,0xFC,0x60,0x92,0x75,0xA3,0xCA,0x37,0x18,0x68,0x85,0xAF,0x55,0xA5,0x12}; + + Airavata_getAllGatewaySSHPubKeys_result(const Airavata_getAllGatewaySSHPubKeys_result&); + Airavata_getAllGatewaySSHPubKeys_result& operator=(const Airavata_getAllGatewaySSHPubKeys_result&); + Airavata_getAllGatewaySSHPubKeys_result() { + } + + virtual ~Airavata_getAllGatewaySSHPubKeys_result() throw(); + std::map success; + ::apache::airavata::api::error::InvalidRequestException ire; + ::apache::airavata::api::error::AiravataClientException ace; + ::apache::airavata::api::error::AiravataSystemException ase; + + _Airavata_getAllGatewaySSHPubKeys_result__isset __isset; + + void __set_success(const std::map & val); + + void __set_ire(const ::apache::airavata::api::error::InvalidRequestException& val); + + void __set_ace(const ::apache::airavata::api::error::AiravataClientException& val); + + void __set_ase(const ::apache::airavata::api::error::AiravataSystemException& val); + + bool operator == (const Airavata_getAllGatewaySSHPubKeys_result & rhs) const + { + if (!(success == rhs.success)) + return false; + if (!(ire == rhs.ire)) + return false; + if (!(ace == rhs.ace)) + return false; + if (!(ase == rhs.ase)) + return false; + return true; + } + bool operator != (const Airavata_getAllGatewaySSHPubKeys_result &rhs) const { + return !(*this == rhs); + } + + bool operator < (const Airavata_getAllGatewaySSHPubKeys_result & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + friend std::ostream& operator<<(std::ostream& out, const Airavata_getAllGatewaySSHPubKeys_result& obj); +}; + +typedef struct _Airavata_getAllGatewaySSHPubKeys_presult__isset { + _Airavata_getAllGatewaySSHPubKeys_presult__isset() : success(false), ire(false), ace(false), ase(false) {} + bool success :1; + bool ire :1; + bool ace :1; + bool ase :1; +} _Airavata_getAllGatewaySSHPubKeys_presult__isset; + +class Airavata_getAllGatewaySSHPubKeys_presult { + public: + + static const char* ascii_fingerprint; // = "718BFC609275A3CA37186885AF55A512"; + static const uint8_t binary_fingerprint[16]; // = {0x71,0x8B,0xFC,0x60,0x92,0x75,0xA3,0xCA,0x37,0x18,0x68,0x85,0xAF,0x55,0xA5,0x12}; + + + virtual ~Airavata_getAllGatewaySSHPubKeys_presult() throw(); + std::map * success; + ::apache::airavata::api::error::InvalidRequestException ire; + ::apache::airavata::api::error::AiravataClientException ace; + ::apache::airavata::api::error::AiravataSystemException ase; + + _Airavata_getAllGatewaySSHPubKeys_presult__isset __isset; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + + friend std::ostream& operator<<(std::ostream& out, const Airavata_getAllGatewaySSHPubKeys_presult& obj); +}; + + class Airavata_createProject_args { public: @@ -21693,6 +21841,9 @@ class AiravataClient : virtual public AiravataIf { void getAllUserSSHPubKeys(std::map & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& userName); void send_getAllUserSSHPubKeys(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& userName); void recv_getAllUserSSHPubKeys(std::map & _return); + void getAllGatewaySSHPubKeys(std::map & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId); + void send_getAllGatewaySSHPubKeys(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId); + void recv_getAllGatewaySSHPubKeys(std::map & _return); void createProject(std::string& _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const ::apache::airavata::model::workspace::Project& project); void send_createProject(const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const ::apache::airavata::model::workspace::Project& project); void recv_createProject(std::string& _return); @@ -22060,6 +22211,7 @@ class AiravataProcessor : public ::apache::thrift::TDispatchProcessor { void process_generateAndRegisterSSHKeys(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_getSSHPubKey(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_getAllUserSSHPubKeys(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_getAllGatewaySSHPubKeys(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_createProject(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_updateProject(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_getProject(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); @@ -22187,6 +22339,7 @@ class AiravataProcessor : public ::apache::thrift::TDispatchProcessor { processMap_["generateAndRegisterSSHKeys"] = &AiravataProcessor::process_generateAndRegisterSSHKeys; processMap_["getSSHPubKey"] = &AiravataProcessor::process_getSSHPubKey; processMap_["getAllUserSSHPubKeys"] = &AiravataProcessor::process_getAllUserSSHPubKeys; + processMap_["getAllGatewaySSHPubKeys"] = &AiravataProcessor::process_getAllGatewaySSHPubKeys; processMap_["createProject"] = &AiravataProcessor::process_createProject; processMap_["updateProject"] = &AiravataProcessor::process_updateProject; processMap_["getProject"] = &AiravataProcessor::process_getProject; @@ -22426,6 +22579,16 @@ class AiravataMultiface : virtual public AiravataIf { return; } + void getAllGatewaySSHPubKeys(std::map & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId) { + size_t sz = ifaces_.size(); + size_t i = 0; + for (; i < (sz - 1); ++i) { + ifaces_[i]->getAllGatewaySSHPubKeys(_return, authzToken, gatewayId); + } + ifaces_[i]->getAllGatewaySSHPubKeys(_return, authzToken, gatewayId); + return; + } + void createProject(std::string& _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId, const ::apache::airavata::model::workspace::Project& project) { size_t sz = ifaces_.size(); size_t i = 0; http://git-wip-us.apache.org/repos/asf/airavata/blob/6a9a1254/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata_server.skeleton.cpp ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata_server.skeleton.cpp b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata_server.skeleton.cpp index d28d236..54518bc 100644 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata_server.skeleton.cpp +++ b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/Airavata_server.skeleton.cpp @@ -114,6 +114,11 @@ class AiravataHandler : virtual public AiravataIf { printf("getAllUserSSHPubKeys\n"); } + void getAllGatewaySSHPubKeys(std::map & _return, const ::apache::airavata::model::security::AuthzToken& authzToken, const std::string& gatewayId) { + // Your implementation goes here + printf("getAllGatewaySSHPubKeys\n"); + } + /** * Creates a Project with basic metadata. * A Project is a container of experiments.