| /** |
| * Licensed to the Apache Software Foundation (ASF) under one or more |
| * contributor license agreements. See the NOTICE file distributed with |
| * this work for additional information regarding copyright ownership. |
| * The ASF licenses this file to You under the Apache License, Version 2.0 |
| * (the "License"); you may not use this file except in compliance with |
| * the License. You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| |
| /** |
| * Autogenerated by Thrift Compiler (0.10.0) |
| * |
| * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING |
| * @generated |
| */ |
| #ifndef workspace_model_TYPES_H |
| #define workspace_model_TYPES_H |
| |
| #include <iosfwd> |
| |
| #include <thrift/Thrift.h> |
| #include <thrift/TApplicationException.h> |
| #include <thrift/TBase.h> |
| #include <thrift/protocol/TProtocol.h> |
| #include <thrift/transport/TTransport.h> |
| |
| #include <thrift/cxxfunctional.h> |
| #include "airavata_commons_types.h" |
| |
| |
| namespace apache { namespace airavata { namespace model { namespace workspace { |
| |
| struct GatewayApprovalStatus { |
| enum type { |
| REQUESTED = 0, |
| APPROVED = 1, |
| ACTIVE = 2, |
| DEACTIVATED = 3, |
| CANCELLED = 4, |
| DENIED = 5, |
| CREATED = 6, |
| DEPLOYED = 7 |
| }; |
| }; |
| |
| extern const std::map<int, const char*> _GatewayApprovalStatus_VALUES_TO_NAMES; |
| |
| struct NotificationPriority { |
| enum type { |
| LOW = 0, |
| NORMAL = 1, |
| HIGH = 2 |
| }; |
| }; |
| |
| extern const std::map<int, const char*> _NotificationPriority_VALUES_TO_NAMES; |
| |
| class Group; |
| |
| class Project; |
| |
| class User; |
| |
| class Gateway; |
| |
| class GatewayUsageReportingCommand; |
| |
| class Notification; |
| |
| typedef struct _Group__isset { |
| _Group__isset() : description(false) {} |
| bool description :1; |
| } _Group__isset; |
| |
| class Group : public virtual ::apache::thrift::TBase { |
| public: |
| |
| Group(const Group&); |
| Group& operator=(const Group&); |
| Group() : groupName(), description() { |
| } |
| |
| virtual ~Group() throw(); |
| std::string groupName; |
| std::string description; |
| |
| _Group__isset __isset; |
| |
| void __set_groupName(const std::string& val); |
| |
| void __set_description(const std::string& val); |
| |
| bool operator == (const Group & rhs) const |
| { |
| if (!(groupName == rhs.groupName)) |
| return false; |
| if (__isset.description != rhs.__isset.description) |
| return false; |
| else if (__isset.description && !(description == rhs.description)) |
| return false; |
| return true; |
| } |
| bool operator != (const Group &rhs) const { |
| return !(*this == rhs); |
| } |
| |
| bool operator < (const Group & ) const; |
| |
| uint32_t read(::apache::thrift::protocol::TProtocol* iprot); |
| uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; |
| |
| virtual void printTo(std::ostream& out) const; |
| }; |
| |
| void swap(Group &a, Group &b); |
| |
| inline std::ostream& operator<<(std::ostream& out, const Group& obj) |
| { |
| obj.printTo(out); |
| return out; |
| } |
| |
| typedef struct _Project__isset { |
| _Project__isset() : description(false), creationTime(false), sharedUsers(false), sharedGroups(false) {} |
| bool description :1; |
| bool creationTime :1; |
| bool sharedUsers :1; |
| bool sharedGroups :1; |
| } _Project__isset; |
| |
| class Project : public virtual ::apache::thrift::TBase { |
| public: |
| |
| Project(const Project&); |
| Project& operator=(const Project&); |
| Project() : projectID("DO_NOT_SET_AT_CLIENTS"), owner(), gatewayId(), name(), description(), creationTime(0) { |
| } |
| |
| virtual ~Project() throw(); |
| std::string projectID; |
| std::string owner; |
| std::string gatewayId; |
| std::string name; |
| std::string description; |
| int64_t creationTime; |
| std::vector<std::string> sharedUsers; |
| std::vector<std::string> sharedGroups; |
| |
| _Project__isset __isset; |
| |
| void __set_projectID(const std::string& val); |
| |
| void __set_owner(const std::string& val); |
| |
| void __set_gatewayId(const std::string& val); |
| |
| void __set_name(const std::string& val); |
| |
| void __set_description(const std::string& val); |
| |
| void __set_creationTime(const int64_t val); |
| |
| void __set_sharedUsers(const std::vector<std::string> & val); |
| |
| void __set_sharedGroups(const std::vector<std::string> & val); |
| |
| bool operator == (const Project & rhs) const |
| { |
| if (!(projectID == rhs.projectID)) |
| return false; |
| if (!(owner == rhs.owner)) |
| return false; |
| if (!(gatewayId == rhs.gatewayId)) |
| return false; |
| if (!(name == rhs.name)) |
| return false; |
| if (__isset.description != rhs.__isset.description) |
| return false; |
| else if (__isset.description && !(description == rhs.description)) |
| return false; |
| if (__isset.creationTime != rhs.__isset.creationTime) |
| return false; |
| else if (__isset.creationTime && !(creationTime == rhs.creationTime)) |
| return false; |
| if (__isset.sharedUsers != rhs.__isset.sharedUsers) |
| return false; |
| else if (__isset.sharedUsers && !(sharedUsers == rhs.sharedUsers)) |
| return false; |
| if (__isset.sharedGroups != rhs.__isset.sharedGroups) |
| return false; |
| else if (__isset.sharedGroups && !(sharedGroups == rhs.sharedGroups)) |
| return false; |
| return true; |
| } |
| bool operator != (const Project &rhs) const { |
| return !(*this == rhs); |
| } |
| |
| bool operator < (const Project & ) const; |
| |
| uint32_t read(::apache::thrift::protocol::TProtocol* iprot); |
| uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; |
| |
| virtual void printTo(std::ostream& out) const; |
| }; |
| |
| void swap(Project &a, Project &b); |
| |
| inline std::ostream& operator<<(std::ostream& out, const Project& obj) |
| { |
| obj.printTo(out); |
| return out; |
| } |
| |
| typedef struct _User__isset { |
| _User__isset() : userName(false), firstName(false), lastName(false), email(false) {} |
| bool userName :1; |
| bool firstName :1; |
| bool lastName :1; |
| bool email :1; |
| } _User__isset; |
| |
| class User : public virtual ::apache::thrift::TBase { |
| public: |
| |
| User(const User&); |
| User& operator=(const User&); |
| User() : airavataInternalUserId("DO_NOT_SET_AT_CLIENTS"), userName(), gatewayId(), firstName(), lastName(), email() { |
| } |
| |
| virtual ~User() throw(); |
| std::string airavataInternalUserId; |
| std::string userName; |
| std::string gatewayId; |
| std::string firstName; |
| std::string lastName; |
| std::string email; |
| |
| _User__isset __isset; |
| |
| void __set_airavataInternalUserId(const std::string& val); |
| |
| void __set_userName(const std::string& val); |
| |
| void __set_gatewayId(const std::string& val); |
| |
| void __set_firstName(const std::string& val); |
| |
| void __set_lastName(const std::string& val); |
| |
| void __set_email(const std::string& val); |
| |
| bool operator == (const User & rhs) const |
| { |
| if (!(airavataInternalUserId == rhs.airavataInternalUserId)) |
| return false; |
| if (__isset.userName != rhs.__isset.userName) |
| return false; |
| else if (__isset.userName && !(userName == rhs.userName)) |
| return false; |
| if (!(gatewayId == rhs.gatewayId)) |
| return false; |
| if (__isset.firstName != rhs.__isset.firstName) |
| return false; |
| else if (__isset.firstName && !(firstName == rhs.firstName)) |
| return false; |
| if (__isset.lastName != rhs.__isset.lastName) |
| return false; |
| else if (__isset.lastName && !(lastName == rhs.lastName)) |
| return false; |
| if (__isset.email != rhs.__isset.email) |
| return false; |
| else if (__isset.email && !(email == rhs.email)) |
| return false; |
| return true; |
| } |
| bool operator != (const User &rhs) const { |
| return !(*this == rhs); |
| } |
| |
| bool operator < (const User & ) const; |
| |
| uint32_t read(::apache::thrift::protocol::TProtocol* iprot); |
| uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; |
| |
| virtual void printTo(std::ostream& out) const; |
| }; |
| |
| void swap(User &a, User &b); |
| |
| inline std::ostream& operator<<(std::ostream& out, const User& obj) |
| { |
| obj.printTo(out); |
| return out; |
| } |
| |
| typedef struct _Gateway__isset { |
| _Gateway__isset() : airavataInternalGatewayId(false), gatewayName(false), domain(false), emailAddress(false), gatewayAcronym(false), gatewayURL(false), gatewayPublicAbstract(false), reviewProposalDescription(false), gatewayAdminFirstName(false), gatewayAdminLastName(false), gatewayAdminEmail(false), identityServerUserName(false), identityServerPasswordToken(false), declinedReason(false), oauthClientId(false), oauthClientSecret(false), requestCreationTime(false), requesterUsername(false) {} |
| bool airavataInternalGatewayId :1; |
| bool gatewayName :1; |
| bool domain :1; |
| bool emailAddress :1; |
| bool gatewayAcronym :1; |
| bool gatewayURL :1; |
| bool gatewayPublicAbstract :1; |
| bool reviewProposalDescription :1; |
| bool gatewayAdminFirstName :1; |
| bool gatewayAdminLastName :1; |
| bool gatewayAdminEmail :1; |
| bool identityServerUserName :1; |
| bool identityServerPasswordToken :1; |
| bool declinedReason :1; |
| bool oauthClientId :1; |
| bool oauthClientSecret :1; |
| bool requestCreationTime :1; |
| bool requesterUsername :1; |
| } _Gateway__isset; |
| |
| class Gateway : public virtual ::apache::thrift::TBase { |
| public: |
| |
| Gateway(const Gateway&); |
| Gateway& operator=(const Gateway&); |
| Gateway() : airavataInternalGatewayId(), gatewayId(), gatewayApprovalStatus((GatewayApprovalStatus::type)0), gatewayName(), domain(), emailAddress(), gatewayAcronym(), gatewayURL(), gatewayPublicAbstract(), reviewProposalDescription(), gatewayAdminFirstName(), gatewayAdminLastName(), gatewayAdminEmail(), identityServerUserName(), identityServerPasswordToken(), declinedReason(), oauthClientId(), oauthClientSecret(), requestCreationTime(0), requesterUsername() { |
| } |
| |
| virtual ~Gateway() throw(); |
| std::string airavataInternalGatewayId; |
| std::string gatewayId; |
| GatewayApprovalStatus::type gatewayApprovalStatus; |
| std::string gatewayName; |
| std::string domain; |
| std::string emailAddress; |
| std::string gatewayAcronym; |
| std::string gatewayURL; |
| std::string gatewayPublicAbstract; |
| std::string reviewProposalDescription; |
| std::string gatewayAdminFirstName; |
| std::string gatewayAdminLastName; |
| std::string gatewayAdminEmail; |
| std::string identityServerUserName; |
| std::string identityServerPasswordToken; |
| std::string declinedReason; |
| std::string oauthClientId; |
| std::string oauthClientSecret; |
| int64_t requestCreationTime; |
| std::string requesterUsername; |
| |
| _Gateway__isset __isset; |
| |
| void __set_airavataInternalGatewayId(const std::string& val); |
| |
| void __set_gatewayId(const std::string& val); |
| |
| void __set_gatewayApprovalStatus(const GatewayApprovalStatus::type val); |
| |
| void __set_gatewayName(const std::string& val); |
| |
| void __set_domain(const std::string& val); |
| |
| void __set_emailAddress(const std::string& val); |
| |
| void __set_gatewayAcronym(const std::string& val); |
| |
| void __set_gatewayURL(const std::string& val); |
| |
| void __set_gatewayPublicAbstract(const std::string& val); |
| |
| void __set_reviewProposalDescription(const std::string& val); |
| |
| void __set_gatewayAdminFirstName(const std::string& val); |
| |
| void __set_gatewayAdminLastName(const std::string& val); |
| |
| void __set_gatewayAdminEmail(const std::string& val); |
| |
| void __set_identityServerUserName(const std::string& val); |
| |
| void __set_identityServerPasswordToken(const std::string& val); |
| |
| void __set_declinedReason(const std::string& val); |
| |
| void __set_oauthClientId(const std::string& val); |
| |
| void __set_oauthClientSecret(const std::string& val); |
| |
| void __set_requestCreationTime(const int64_t val); |
| |
| void __set_requesterUsername(const std::string& val); |
| |
| bool operator == (const Gateway & rhs) const |
| { |
| if (__isset.airavataInternalGatewayId != rhs.__isset.airavataInternalGatewayId) |
| return false; |
| else if (__isset.airavataInternalGatewayId && !(airavataInternalGatewayId == rhs.airavataInternalGatewayId)) |
| return false; |
| if (!(gatewayId == rhs.gatewayId)) |
| return false; |
| if (!(gatewayApprovalStatus == rhs.gatewayApprovalStatus)) |
| return false; |
| if (__isset.gatewayName != rhs.__isset.gatewayName) |
| return false; |
| else if (__isset.gatewayName && !(gatewayName == rhs.gatewayName)) |
| return false; |
| if (__isset.domain != rhs.__isset.domain) |
| return false; |
| else if (__isset.domain && !(domain == rhs.domain)) |
| return false; |
| if (__isset.emailAddress != rhs.__isset.emailAddress) |
| return false; |
| else if (__isset.emailAddress && !(emailAddress == rhs.emailAddress)) |
| return false; |
| if (__isset.gatewayAcronym != rhs.__isset.gatewayAcronym) |
| return false; |
| else if (__isset.gatewayAcronym && !(gatewayAcronym == rhs.gatewayAcronym)) |
| return false; |
| if (__isset.gatewayURL != rhs.__isset.gatewayURL) |
| return false; |
| else if (__isset.gatewayURL && !(gatewayURL == rhs.gatewayURL)) |
| return false; |
| if (__isset.gatewayPublicAbstract != rhs.__isset.gatewayPublicAbstract) |
| return false; |
| else if (__isset.gatewayPublicAbstract && !(gatewayPublicAbstract == rhs.gatewayPublicAbstract)) |
| return false; |
| if (__isset.reviewProposalDescription != rhs.__isset.reviewProposalDescription) |
| return false; |
| else if (__isset.reviewProposalDescription && !(reviewProposalDescription == rhs.reviewProposalDescription)) |
| return false; |
| if (__isset.gatewayAdminFirstName != rhs.__isset.gatewayAdminFirstName) |
| return false; |
| else if (__isset.gatewayAdminFirstName && !(gatewayAdminFirstName == rhs.gatewayAdminFirstName)) |
| return false; |
| if (__isset.gatewayAdminLastName != rhs.__isset.gatewayAdminLastName) |
| return false; |
| else if (__isset.gatewayAdminLastName && !(gatewayAdminLastName == rhs.gatewayAdminLastName)) |
| return false; |
| if (__isset.gatewayAdminEmail != rhs.__isset.gatewayAdminEmail) |
| return false; |
| else if (__isset.gatewayAdminEmail && !(gatewayAdminEmail == rhs.gatewayAdminEmail)) |
| return false; |
| if (__isset.identityServerUserName != rhs.__isset.identityServerUserName) |
| return false; |
| else if (__isset.identityServerUserName && !(identityServerUserName == rhs.identityServerUserName)) |
| return false; |
| if (__isset.identityServerPasswordToken != rhs.__isset.identityServerPasswordToken) |
| return false; |
| else if (__isset.identityServerPasswordToken && !(identityServerPasswordToken == rhs.identityServerPasswordToken)) |
| return false; |
| if (__isset.declinedReason != rhs.__isset.declinedReason) |
| return false; |
| else if (__isset.declinedReason && !(declinedReason == rhs.declinedReason)) |
| return false; |
| if (__isset.oauthClientId != rhs.__isset.oauthClientId) |
| return false; |
| else if (__isset.oauthClientId && !(oauthClientId == rhs.oauthClientId)) |
| return false; |
| if (__isset.oauthClientSecret != rhs.__isset.oauthClientSecret) |
| return false; |
| else if (__isset.oauthClientSecret && !(oauthClientSecret == rhs.oauthClientSecret)) |
| return false; |
| if (__isset.requestCreationTime != rhs.__isset.requestCreationTime) |
| return false; |
| else if (__isset.requestCreationTime && !(requestCreationTime == rhs.requestCreationTime)) |
| return false; |
| if (__isset.requesterUsername != rhs.__isset.requesterUsername) |
| return false; |
| else if (__isset.requesterUsername && !(requesterUsername == rhs.requesterUsername)) |
| return false; |
| return true; |
| } |
| bool operator != (const Gateway &rhs) const { |
| return !(*this == rhs); |
| } |
| |
| bool operator < (const Gateway & ) const; |
| |
| uint32_t read(::apache::thrift::protocol::TProtocol* iprot); |
| uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; |
| |
| virtual void printTo(std::ostream& out) const; |
| }; |
| |
| void swap(Gateway &a, Gateway &b); |
| |
| inline std::ostream& operator<<(std::ostream& out, const Gateway& obj) |
| { |
| obj.printTo(out); |
| return out; |
| } |
| |
| |
| class GatewayUsageReportingCommand : public virtual ::apache::thrift::TBase { |
| public: |
| |
| GatewayUsageReportingCommand(const GatewayUsageReportingCommand&); |
| GatewayUsageReportingCommand& operator=(const GatewayUsageReportingCommand&); |
| GatewayUsageReportingCommand() : gatewayId(), computeResourceId(), command() { |
| } |
| |
| virtual ~GatewayUsageReportingCommand() throw(); |
| std::string gatewayId; |
| std::string computeResourceId; |
| std::string command; |
| |
| void __set_gatewayId(const std::string& val); |
| |
| void __set_computeResourceId(const std::string& val); |
| |
| void __set_command(const std::string& val); |
| |
| bool operator == (const GatewayUsageReportingCommand & rhs) const |
| { |
| if (!(gatewayId == rhs.gatewayId)) |
| return false; |
| if (!(computeResourceId == rhs.computeResourceId)) |
| return false; |
| if (!(command == rhs.command)) |
| return false; |
| return true; |
| } |
| bool operator != (const GatewayUsageReportingCommand &rhs) const { |
| return !(*this == rhs); |
| } |
| |
| bool operator < (const GatewayUsageReportingCommand & ) const; |
| |
| uint32_t read(::apache::thrift::protocol::TProtocol* iprot); |
| uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; |
| |
| virtual void printTo(std::ostream& out) const; |
| }; |
| |
| void swap(GatewayUsageReportingCommand &a, GatewayUsageReportingCommand &b); |
| |
| inline std::ostream& operator<<(std::ostream& out, const GatewayUsageReportingCommand& obj) |
| { |
| obj.printTo(out); |
| return out; |
| } |
| |
| typedef struct _Notification__isset { |
| _Notification__isset() : notificationId(false), creationTime(false), publishedTime(false), expirationTime(false), priority(false) {} |
| bool notificationId :1; |
| bool creationTime :1; |
| bool publishedTime :1; |
| bool expirationTime :1; |
| bool priority :1; |
| } _Notification__isset; |
| |
| class Notification : public virtual ::apache::thrift::TBase { |
| public: |
| |
| Notification(const Notification&); |
| Notification& operator=(const Notification&); |
| Notification() : notificationId(), gatewayId(), title(), notificationMessage(), creationTime(0), publishedTime(0), expirationTime(0), priority((NotificationPriority::type)0) { |
| } |
| |
| virtual ~Notification() throw(); |
| std::string notificationId; |
| std::string gatewayId; |
| std::string title; |
| std::string notificationMessage; |
| int64_t creationTime; |
| int64_t publishedTime; |
| int64_t expirationTime; |
| NotificationPriority::type priority; |
| |
| _Notification__isset __isset; |
| |
| void __set_notificationId(const std::string& val); |
| |
| void __set_gatewayId(const std::string& val); |
| |
| void __set_title(const std::string& val); |
| |
| void __set_notificationMessage(const std::string& val); |
| |
| void __set_creationTime(const int64_t val); |
| |
| void __set_publishedTime(const int64_t val); |
| |
| void __set_expirationTime(const int64_t val); |
| |
| void __set_priority(const NotificationPriority::type val); |
| |
| bool operator == (const Notification & rhs) const |
| { |
| if (__isset.notificationId != rhs.__isset.notificationId) |
| return false; |
| else if (__isset.notificationId && !(notificationId == rhs.notificationId)) |
| return false; |
| if (!(gatewayId == rhs.gatewayId)) |
| return false; |
| if (!(title == rhs.title)) |
| return false; |
| if (!(notificationMessage == rhs.notificationMessage)) |
| return false; |
| if (__isset.creationTime != rhs.__isset.creationTime) |
| return false; |
| else if (__isset.creationTime && !(creationTime == rhs.creationTime)) |
| return false; |
| if (__isset.publishedTime != rhs.__isset.publishedTime) |
| return false; |
| else if (__isset.publishedTime && !(publishedTime == rhs.publishedTime)) |
| return false; |
| if (__isset.expirationTime != rhs.__isset.expirationTime) |
| return false; |
| else if (__isset.expirationTime && !(expirationTime == rhs.expirationTime)) |
| return false; |
| if (__isset.priority != rhs.__isset.priority) |
| return false; |
| else if (__isset.priority && !(priority == rhs.priority)) |
| return false; |
| return true; |
| } |
| bool operator != (const Notification &rhs) const { |
| return !(*this == rhs); |
| } |
| |
| bool operator < (const Notification & ) const; |
| |
| uint32_t read(::apache::thrift::protocol::TProtocol* iprot); |
| uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; |
| |
| virtual void printTo(std::ostream& out) const; |
| }; |
| |
| void swap(Notification &a, Notification &b); |
| |
| inline std::ostream& operator<<(std::ostream& out, const Notification& obj) |
| { |
| obj.printTo(out); |
| return out; |
| } |
| |
| }}}} // namespace |
| |
| #endif |