Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 96421200B9A for ; Fri, 7 Oct 2016 22:52:37 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 94DD9160AE9; Fri, 7 Oct 2016 20:52:37 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 7EB39160AC6 for ; Fri, 7 Oct 2016 22:52:36 +0200 (CEST) Received: (qmail 6119 invoked by uid 500); 7 Oct 2016 20:52:30 -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 6107 invoked by uid 99); 7 Oct 2016 20:52:30 -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; Fri, 07 Oct 2016 20:52:30 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 2F6A0E055E; Fri, 7 Oct 2016 20:52:29 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: shameera@apache.org To: commits@airavata.apache.org Date: Fri, 07 Oct 2016 20:52:43 -0000 Message-Id: <39523e7ec3f04246a015a140067bc882@git.apache.org> In-Reply-To: <7925d8ad4e3f4238a7ad5f2df3b29452@git.apache.org> References: <7925d8ad4e3f4238a7ad5f2df3b29452@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [16/31] airavata git commit: correcting the registry code, testing not yet complete archived-at: Fri, 07 Oct 2016 20:52:37 -0000 http://git-wip-us.apache.org/repos/asf/airavata/blob/8469effc/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/user_resource_profile_model_types.h ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/user_resource_profile_model_types.h b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/user_resource_profile_model_types.h new file mode 100644 index 0000000..683ab14 --- /dev/null +++ b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/user_resource_profile_model_types.h @@ -0,0 +1,321 @@ +/** + * 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.9.3) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +#ifndef user_resource_profile_model_TYPES_H +#define user_resource_profile_model_TYPES_H + +#include + +#include +#include +#include +#include + +#include +#include "compute_resource_model_types.h" +#include "data_movement_models_types.h" +#include "user_profile_model_types.h" + + +namespace apache { namespace airavata { namespace model { namespace appcatalog { namespace userresourceprofile { + +class ComputeResourcePreference; + +class StoragePreference; + +class UserResourceProfile; + +typedef struct _ComputeResourcePreference__isset { + _ComputeResourcePreference__isset() : loginUserName(false), preferredBatchQueue(false), scratchLocation(false), allocationProjectNumber(false), resourceSpecificCredentialStoreToken(false), qualityOfService(false), reservation(false), reservationStartTime(false), reservationEndTime(false) {} + bool loginUserName :1; + bool preferredBatchQueue :1; + bool scratchLocation :1; + bool allocationProjectNumber :1; + bool resourceSpecificCredentialStoreToken :1; + bool qualityOfService :1; + bool reservation :1; + bool reservationStartTime :1; + bool reservationEndTime :1; +} _ComputeResourcePreference__isset; + +class ComputeResourcePreference { + public: + + ComputeResourcePreference(const ComputeResourcePreference&); + ComputeResourcePreference& operator=(const ComputeResourcePreference&); + ComputeResourcePreference() : computeResourceId(), loginUserName(), preferredBatchQueue(), scratchLocation(), allocationProjectNumber(), resourceSpecificCredentialStoreToken(), qualityOfService(), reservation(), reservationStartTime(0), reservationEndTime(0) { + } + + virtual ~ComputeResourcePreference() throw(); + std::string computeResourceId; + std::string loginUserName; + std::string preferredBatchQueue; + std::string scratchLocation; + std::string allocationProjectNumber; + std::string resourceSpecificCredentialStoreToken; + std::string qualityOfService; + std::string reservation; + int64_t reservationStartTime; + int64_t reservationEndTime; + + _ComputeResourcePreference__isset __isset; + + void __set_computeResourceId(const std::string& val); + + void __set_loginUserName(const std::string& val); + + void __set_preferredBatchQueue(const std::string& val); + + void __set_scratchLocation(const std::string& val); + + void __set_allocationProjectNumber(const std::string& val); + + void __set_resourceSpecificCredentialStoreToken(const std::string& val); + + void __set_qualityOfService(const std::string& val); + + void __set_reservation(const std::string& val); + + void __set_reservationStartTime(const int64_t val); + + void __set_reservationEndTime(const int64_t val); + + bool operator == (const ComputeResourcePreference & rhs) const + { + if (!(computeResourceId == rhs.computeResourceId)) + return false; + if (__isset.loginUserName != rhs.__isset.loginUserName) + return false; + else if (__isset.loginUserName && !(loginUserName == rhs.loginUserName)) + return false; + if (__isset.preferredBatchQueue != rhs.__isset.preferredBatchQueue) + return false; + else if (__isset.preferredBatchQueue && !(preferredBatchQueue == rhs.preferredBatchQueue)) + return false; + if (__isset.scratchLocation != rhs.__isset.scratchLocation) + return false; + else if (__isset.scratchLocation && !(scratchLocation == rhs.scratchLocation)) + return false; + if (__isset.allocationProjectNumber != rhs.__isset.allocationProjectNumber) + return false; + else if (__isset.allocationProjectNumber && !(allocationProjectNumber == rhs.allocationProjectNumber)) + return false; + if (__isset.resourceSpecificCredentialStoreToken != rhs.__isset.resourceSpecificCredentialStoreToken) + return false; + else if (__isset.resourceSpecificCredentialStoreToken && !(resourceSpecificCredentialStoreToken == rhs.resourceSpecificCredentialStoreToken)) + return false; + if (__isset.qualityOfService != rhs.__isset.qualityOfService) + return false; + else if (__isset.qualityOfService && !(qualityOfService == rhs.qualityOfService)) + return false; + if (__isset.reservation != rhs.__isset.reservation) + return false; + else if (__isset.reservation && !(reservation == rhs.reservation)) + return false; + if (__isset.reservationStartTime != rhs.__isset.reservationStartTime) + return false; + else if (__isset.reservationStartTime && !(reservationStartTime == rhs.reservationStartTime)) + return false; + if (__isset.reservationEndTime != rhs.__isset.reservationEndTime) + return false; + else if (__isset.reservationEndTime && !(reservationEndTime == rhs.reservationEndTime)) + return false; + return true; + } + bool operator != (const ComputeResourcePreference &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ComputeResourcePreference & ) 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(ComputeResourcePreference &a, ComputeResourcePreference &b); + +inline std::ostream& operator<<(std::ostream& out, const ComputeResourcePreference& obj) +{ + obj.printTo(out); + return out; +} + +typedef struct _StoragePreference__isset { + _StoragePreference__isset() : loginUserName(false), fileSystemRootLocation(false), resourceSpecificCredentialStoreToken(false) {} + bool loginUserName :1; + bool fileSystemRootLocation :1; + bool resourceSpecificCredentialStoreToken :1; +} _StoragePreference__isset; + +class StoragePreference { + public: + + StoragePreference(const StoragePreference&); + StoragePreference& operator=(const StoragePreference&); + StoragePreference() : storageResourceId(), loginUserName(), fileSystemRootLocation(), resourceSpecificCredentialStoreToken() { + } + + virtual ~StoragePreference() throw(); + std::string storageResourceId; + std::string loginUserName; + std::string fileSystemRootLocation; + std::string resourceSpecificCredentialStoreToken; + + _StoragePreference__isset __isset; + + void __set_storageResourceId(const std::string& val); + + void __set_loginUserName(const std::string& val); + + void __set_fileSystemRootLocation(const std::string& val); + + void __set_resourceSpecificCredentialStoreToken(const std::string& val); + + bool operator == (const StoragePreference & rhs) const + { + if (!(storageResourceId == rhs.storageResourceId)) + return false; + if (__isset.loginUserName != rhs.__isset.loginUserName) + return false; + else if (__isset.loginUserName && !(loginUserName == rhs.loginUserName)) + return false; + if (__isset.fileSystemRootLocation != rhs.__isset.fileSystemRootLocation) + return false; + else if (__isset.fileSystemRootLocation && !(fileSystemRootLocation == rhs.fileSystemRootLocation)) + return false; + if (__isset.resourceSpecificCredentialStoreToken != rhs.__isset.resourceSpecificCredentialStoreToken) + return false; + else if (__isset.resourceSpecificCredentialStoreToken && !(resourceSpecificCredentialStoreToken == rhs.resourceSpecificCredentialStoreToken)) + return false; + return true; + } + bool operator != (const StoragePreference &rhs) const { + return !(*this == rhs); + } + + bool operator < (const StoragePreference & ) 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(StoragePreference &a, StoragePreference &b); + +inline std::ostream& operator<<(std::ostream& out, const StoragePreference& obj) +{ + obj.printTo(out); + return out; +} + +typedef struct _UserResourceProfile__isset { + _UserResourceProfile__isset() : credentialStoreToken(false), computeResourcePreferences(false), storagePreferences(false), identityServerTenant(false), identityServerPwdCredToken(false) {} + bool credentialStoreToken :1; + bool computeResourcePreferences :1; + bool storagePreferences :1; + bool identityServerTenant :1; + bool identityServerPwdCredToken :1; +} _UserResourceProfile__isset; + +class UserResourceProfile { + public: + + UserResourceProfile(const UserResourceProfile&); + UserResourceProfile& operator=(const UserResourceProfile&); + UserResourceProfile() : userId(), credentialStoreToken(), identityServerTenant(), identityServerPwdCredToken() { + } + + virtual ~UserResourceProfile() throw(); + std::string userId; + std::string credentialStoreToken; + std::vector computeResourcePreferences; + std::vector storagePreferences; + std::string identityServerTenant; + std::string identityServerPwdCredToken; + + _UserResourceProfile__isset __isset; + + void __set_userId(const std::string& val); + + void __set_credentialStoreToken(const std::string& val); + + void __set_computeResourcePreferences(const std::vector & val); + + void __set_storagePreferences(const std::vector & val); + + void __set_identityServerTenant(const std::string& val); + + void __set_identityServerPwdCredToken(const std::string& val); + + bool operator == (const UserResourceProfile & rhs) const + { + if (!(userId == rhs.userId)) + return false; + if (__isset.credentialStoreToken != rhs.__isset.credentialStoreToken) + return false; + else if (__isset.credentialStoreToken && !(credentialStoreToken == rhs.credentialStoreToken)) + return false; + if (__isset.computeResourcePreferences != rhs.__isset.computeResourcePreferences) + return false; + else if (__isset.computeResourcePreferences && !(computeResourcePreferences == rhs.computeResourcePreferences)) + return false; + if (__isset.storagePreferences != rhs.__isset.storagePreferences) + return false; + else if (__isset.storagePreferences && !(storagePreferences == rhs.storagePreferences)) + return false; + if (__isset.identityServerTenant != rhs.__isset.identityServerTenant) + return false; + else if (__isset.identityServerTenant && !(identityServerTenant == rhs.identityServerTenant)) + return false; + if (__isset.identityServerPwdCredToken != rhs.__isset.identityServerPwdCredToken) + return false; + else if (__isset.identityServerPwdCredToken && !(identityServerPwdCredToken == rhs.identityServerPwdCredToken)) + return false; + return true; + } + bool operator != (const UserResourceProfile &rhs) const { + return !(*this == rhs); + } + + bool operator < (const UserResourceProfile & ) 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(UserResourceProfile &a, UserResourceProfile &b); + +inline std::ostream& operator<<(std::ostream& out, const UserResourceProfile& obj) +{ + obj.printTo(out); + return out; +} + +}}}}} // namespace + +#endif