blob: a8eb6806c2e79f257caa585eef1d70d3f4b13f20 [file] [log] [blame]
/**
* 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 gateway_resource_profile_model_TYPES_H
#define gateway_resource_profile_model_TYPES_H
#include <iosfwd>
#include <thrift/Thrift.h>
#include <thrift/TApplicationException.h>
#include <thrift/protocol/TProtocol.h>
#include <thrift/transport/TTransport.h>
#include <thrift/cxxfunctional.h>
#include "compute_resource_model_types.h"
#include "data_movement_models_types.h"
namespace apache { namespace airavata { namespace model { namespace appcatalog { namespace gatewayprofile {
class ComputeResourcePreference;
class StoragePreference;
class GatewayResourceProfile;
typedef struct _ComputeResourcePreference__isset {
_ComputeResourcePreference__isset() : loginUserName(false), preferredJobSubmissionProtocol(false), preferredDataMovementProtocol(false), preferredBatchQueue(false), scratchLocation(false), allocationProjectNumber(false), resourceSpecificCredentialStoreToken(false), usageReportingGatewayId(false), qualityOfService(false), reservation(false), reservationStartTime(false), reservationEndTime(false) {}
bool loginUserName :1;
bool preferredJobSubmissionProtocol :1;
bool preferredDataMovementProtocol :1;
bool preferredBatchQueue :1;
bool scratchLocation :1;
bool allocationProjectNumber :1;
bool resourceSpecificCredentialStoreToken :1;
bool usageReportingGatewayId :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(), overridebyAiravata(true), loginUserName(), preferredJobSubmissionProtocol(( ::apache::airavata::model::appcatalog::computeresource::JobSubmissionProtocol::type)0), preferredDataMovementProtocol(( ::apache::airavata::model::data::movement::DataMovementProtocol::type)0), preferredBatchQueue(), scratchLocation(), allocationProjectNumber(), resourceSpecificCredentialStoreToken(), usageReportingGatewayId(), qualityOfService(), reservation(), reservationStartTime(0), reservationEndTime(0) {
}
virtual ~ComputeResourcePreference() throw();
std::string computeResourceId;
bool overridebyAiravata;
std::string loginUserName;
::apache::airavata::model::appcatalog::computeresource::JobSubmissionProtocol::type preferredJobSubmissionProtocol;
::apache::airavata::model::data::movement::DataMovementProtocol::type preferredDataMovementProtocol;
std::string preferredBatchQueue;
std::string scratchLocation;
std::string allocationProjectNumber;
std::string resourceSpecificCredentialStoreToken;
std::string usageReportingGatewayId;
std::string qualityOfService;
std::string reservation;
int64_t reservationStartTime;
int64_t reservationEndTime;
_ComputeResourcePreference__isset __isset;
void __set_computeResourceId(const std::string& val);
void __set_overridebyAiravata(const bool val);
void __set_loginUserName(const std::string& val);
void __set_preferredJobSubmissionProtocol(const ::apache::airavata::model::appcatalog::computeresource::JobSubmissionProtocol::type val);
void __set_preferredDataMovementProtocol(const ::apache::airavata::model::data::movement::DataMovementProtocol::type 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_usageReportingGatewayId(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 (!(overridebyAiravata == rhs.overridebyAiravata))
return false;
if (__isset.loginUserName != rhs.__isset.loginUserName)
return false;
else if (__isset.loginUserName && !(loginUserName == rhs.loginUserName))
return false;
if (__isset.preferredJobSubmissionProtocol != rhs.__isset.preferredJobSubmissionProtocol)
return false;
else if (__isset.preferredJobSubmissionProtocol && !(preferredJobSubmissionProtocol == rhs.preferredJobSubmissionProtocol))
return false;
if (__isset.preferredDataMovementProtocol != rhs.__isset.preferredDataMovementProtocol)
return false;
else if (__isset.preferredDataMovementProtocol && !(preferredDataMovementProtocol == rhs.preferredDataMovementProtocol))
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.usageReportingGatewayId != rhs.__isset.usageReportingGatewayId)
return false;
else if (__isset.usageReportingGatewayId && !(usageReportingGatewayId == rhs.usageReportingGatewayId))
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 _GatewayResourceProfile__isset {
_GatewayResourceProfile__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;
} _GatewayResourceProfile__isset;
class GatewayResourceProfile {
public:
GatewayResourceProfile(const GatewayResourceProfile&);
GatewayResourceProfile& operator=(const GatewayResourceProfile&);
GatewayResourceProfile() : gatewayID(), credentialStoreToken(), identityServerTenant(), identityServerPwdCredToken() {
}
virtual ~GatewayResourceProfile() throw();
std::string gatewayID;
std::string credentialStoreToken;
std::vector<ComputeResourcePreference> computeResourcePreferences;
std::vector<StoragePreference> storagePreferences;
std::string identityServerTenant;
std::string identityServerPwdCredToken;
_GatewayResourceProfile__isset __isset;
void __set_gatewayID(const std::string& val);
void __set_credentialStoreToken(const std::string& val);
void __set_computeResourcePreferences(const std::vector<ComputeResourcePreference> & val);
void __set_storagePreferences(const std::vector<StoragePreference> & val);
void __set_identityServerTenant(const std::string& val);
void __set_identityServerPwdCredToken(const std::string& val);
bool operator == (const GatewayResourceProfile & rhs) const
{
if (!(gatewayID == rhs.gatewayID))
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 GatewayResourceProfile &rhs) const {
return !(*this == rhs);
}
bool operator < (const GatewayResourceProfile & ) 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(GatewayResourceProfile &a, GatewayResourceProfile &b);
inline std::ostream& operator<<(std::ostream& out, const GatewayResourceProfile& obj)
{
obj.printTo(out);
return out;
}
}}}}} // namespace
#endif