http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/d55608f1/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/experiment_model_types.h ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/experiment_model_types.h b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/experiment_model_types.h deleted file mode 100644 index 1047708..0000000 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/experiment_model_types.h +++ /dev/null @@ -1,607 +0,0 @@ -/** - * 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 experiment_model_TYPES_H -#define experiment_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 "airavata_commons_types.h" -#include "application_io_models_types.h" -#include "scheduling_model_types.h" -#include "status_models_types.h" -#include "process_model_types.h" - - -namespace apache { namespace airavata { namespace model { namespace experiment { - -struct ExperimentType { - enum type { - SINGLE_APPLICATION = 0, - WORKFLOW = 1 - }; -}; - -extern const std::map<int, const char*> _ExperimentType_VALUES_TO_NAMES; - -struct ExperimentSearchFields { - enum type { - EXPERIMENT_NAME = 0, - EXPERIMENT_DESC = 1, - APPLICATION_ID = 2, - FROM_DATE = 3, - TO_DATE = 4, - STATUS = 5, - PROJECT_ID = 6 - }; -}; - -extern const std::map<int, const char*> _ExperimentSearchFields_VALUES_TO_NAMES; - -struct ProjectSearchFields { - enum type { - PROJECT_NAME = 0, - PROJECT_DESCRIPTION = 1 - }; -}; - -extern const std::map<int, const char*> _ProjectSearchFields_VALUES_TO_NAMES; - -class UserConfigurationDataModel; - -class ExperimentModel; - -class ExperimentSummaryModel; - -class ExperimentStatistics; - -typedef struct _UserConfigurationDataModel__isset { - _UserConfigurationDataModel__isset() : shareExperimentPublicly(true), computationalResourceScheduling(false), throttleResources(true), userDN(false), generateCert(true), storageId(false), experimentDataDir(false), useUserCRPref(false) {} - bool shareExperimentPublicly :1; - bool computationalResourceScheduling :1; - bool throttleResources :1; - bool userDN :1; - bool generateCert :1; - bool storageId :1; - bool experimentDataDir :1; - bool useUserCRPref :1; -} _UserConfigurationDataModel__isset; - -class UserConfigurationDataModel { - public: - - UserConfigurationDataModel(const UserConfigurationDataModel&); - UserConfigurationDataModel& operator=(const UserConfigurationDataModel&); - UserConfigurationDataModel() : airavataAutoSchedule(false), overrideManualScheduledParams(false), shareExperimentPublicly(false), throttleResources(false), userDN(), generateCert(false), storageId(), experimentDataDir(), useUserCRPref(0) { - } - - virtual ~UserConfigurationDataModel() throw(); - bool airavataAutoSchedule; - bool overrideManualScheduledParams; - bool shareExperimentPublicly; - ::apache::airavata::model::scheduling::ComputationalResourceSchedulingModel computationalResourceScheduling; - bool throttleResources; - std::string userDN; - bool generateCert; - std::string storageId; - std::string experimentDataDir; - bool useUserCRPref; - - _UserConfigurationDataModel__isset __isset; - - void __set_airavataAutoSchedule(const bool val); - - void __set_overrideManualScheduledParams(const bool val); - - void __set_shareExperimentPublicly(const bool val); - - void __set_computationalResourceScheduling(const ::apache::airavata::model::scheduling::ComputationalResourceSchedulingModel& val); - - void __set_throttleResources(const bool val); - - void __set_userDN(const std::string& val); - - void __set_generateCert(const bool val); - - void __set_storageId(const std::string& val); - - void __set_experimentDataDir(const std::string& val); - - void __set_useUserCRPref(const bool val); - - bool operator == (const UserConfigurationDataModel & rhs) const - { - if (!(airavataAutoSchedule == rhs.airavataAutoSchedule)) - return false; - if (!(overrideManualScheduledParams == rhs.overrideManualScheduledParams)) - return false; - if (__isset.shareExperimentPublicly != rhs.__isset.shareExperimentPublicly) - return false; - else if (__isset.shareExperimentPublicly && !(shareExperimentPublicly == rhs.shareExperimentPublicly)) - return false; - if (__isset.computationalResourceScheduling != rhs.__isset.computationalResourceScheduling) - return false; - else if (__isset.computationalResourceScheduling && !(computationalResourceScheduling == rhs.computationalResourceScheduling)) - return false; - if (__isset.throttleResources != rhs.__isset.throttleResources) - return false; - else if (__isset.throttleResources && !(throttleResources == rhs.throttleResources)) - return false; - if (__isset.userDN != rhs.__isset.userDN) - return false; - else if (__isset.userDN && !(userDN == rhs.userDN)) - return false; - if (__isset.generateCert != rhs.__isset.generateCert) - return false; - else if (__isset.generateCert && !(generateCert == rhs.generateCert)) - return false; - if (__isset.storageId != rhs.__isset.storageId) - return false; - else if (__isset.storageId && !(storageId == rhs.storageId)) - return false; - if (__isset.experimentDataDir != rhs.__isset.experimentDataDir) - return false; - else if (__isset.experimentDataDir && !(experimentDataDir == rhs.experimentDataDir)) - return false; - if (__isset.useUserCRPref != rhs.__isset.useUserCRPref) - return false; - else if (__isset.useUserCRPref && !(useUserCRPref == rhs.useUserCRPref)) - return false; - return true; - } - bool operator != (const UserConfigurationDataModel &rhs) const { - return !(*this == rhs); - } - - bool operator < (const UserConfigurationDataModel & ) 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(UserConfigurationDataModel &a, UserConfigurationDataModel &b); - -inline std::ostream& operator<<(std::ostream& out, const UserConfigurationDataModel& obj) -{ - obj.printTo(out); - return out; -} - -typedef struct _ExperimentModel__isset { - _ExperimentModel__isset() : creationTime(false), description(false), executionId(false), gatewayExecutionId(false), gatewayInstanceId(false), enableEmailNotification(false), emailAddresses(false), userConfigurationData(false), experimentInputs(false), experimentOutputs(false), experimentStatus(false), errors(false), processes(false) {} - bool creationTime :1; - bool description :1; - bool executionId :1; - bool gatewayExecutionId :1; - bool gatewayInstanceId :1; - bool enableEmailNotification :1; - bool emailAddresses :1; - bool userConfigurationData :1; - bool experimentInputs :1; - bool experimentOutputs :1; - bool experimentStatus :1; - bool errors :1; - bool processes :1; -} _ExperimentModel__isset; - -class ExperimentModel { - public: - - ExperimentModel(const ExperimentModel&); - ExperimentModel& operator=(const ExperimentModel&); - ExperimentModel() : experimentId("DO_NOT_SET_AT_CLIENTS"), projectId(), gatewayId(), experimentType((ExperimentType::type)0), userName(), experimentName(), creationTime(0), description(), executionId(), gatewayExecutionId(), gatewayInstanceId(), enableEmailNotification(0) { - experimentType = (ExperimentType::type)0; - - } - - virtual ~ExperimentModel() throw(); - std::string experimentId; - std::string projectId; - std::string gatewayId; - ExperimentType::type experimentType; - std::string userName; - std::string experimentName; - int64_t creationTime; - std::string description; - std::string executionId; - std::string gatewayExecutionId; - std::string gatewayInstanceId; - bool enableEmailNotification; - std::vector<std::string> emailAddresses; - UserConfigurationDataModel userConfigurationData; - std::vector< ::apache::airavata::model::application::io::InputDataObjectType> experimentInputs; - std::vector< ::apache::airavata::model::application::io::OutputDataObjectType> experimentOutputs; - std::vector< ::apache::airavata::model::status::ExperimentStatus> experimentStatus; - std::vector< ::apache::airavata::model::commons::ErrorModel> errors; - std::vector< ::apache::airavata::model::process::ProcessModel> processes; - - _ExperimentModel__isset __isset; - - void __set_experimentId(const std::string& val); - - void __set_projectId(const std::string& val); - - void __set_gatewayId(const std::string& val); - - void __set_experimentType(const ExperimentType::type val); - - void __set_userName(const std::string& val); - - void __set_experimentName(const std::string& val); - - void __set_creationTime(const int64_t val); - - void __set_description(const std::string& val); - - void __set_executionId(const std::string& val); - - void __set_gatewayExecutionId(const std::string& val); - - void __set_gatewayInstanceId(const std::string& val); - - void __set_enableEmailNotification(const bool val); - - void __set_emailAddresses(const std::vector<std::string> & val); - - void __set_userConfigurationData(const UserConfigurationDataModel& val); - - void __set_experimentInputs(const std::vector< ::apache::airavata::model::application::io::InputDataObjectType> & val); - - void __set_experimentOutputs(const std::vector< ::apache::airavata::model::application::io::OutputDataObjectType> & val); - - void __set_experimentStatus(const std::vector< ::apache::airavata::model::status::ExperimentStatus> & val); - - void __set_errors(const std::vector< ::apache::airavata::model::commons::ErrorModel> & val); - - void __set_processes(const std::vector< ::apache::airavata::model::process::ProcessModel> & val); - - bool operator == (const ExperimentModel & rhs) const - { - if (!(experimentId == rhs.experimentId)) - return false; - if (!(projectId == rhs.projectId)) - return false; - if (!(gatewayId == rhs.gatewayId)) - return false; - if (!(experimentType == rhs.experimentType)) - return false; - if (!(userName == rhs.userName)) - return false; - if (!(experimentName == rhs.experimentName)) - return false; - if (__isset.creationTime != rhs.__isset.creationTime) - return false; - else if (__isset.creationTime && !(creationTime == rhs.creationTime)) - return false; - if (__isset.description != rhs.__isset.description) - return false; - else if (__isset.description && !(description == rhs.description)) - return false; - if (__isset.executionId != rhs.__isset.executionId) - return false; - else if (__isset.executionId && !(executionId == rhs.executionId)) - return false; - if (__isset.gatewayExecutionId != rhs.__isset.gatewayExecutionId) - return false; - else if (__isset.gatewayExecutionId && !(gatewayExecutionId == rhs.gatewayExecutionId)) - return false; - if (__isset.gatewayInstanceId != rhs.__isset.gatewayInstanceId) - return false; - else if (__isset.gatewayInstanceId && !(gatewayInstanceId == rhs.gatewayInstanceId)) - return false; - if (__isset.enableEmailNotification != rhs.__isset.enableEmailNotification) - return false; - else if (__isset.enableEmailNotification && !(enableEmailNotification == rhs.enableEmailNotification)) - return false; - if (__isset.emailAddresses != rhs.__isset.emailAddresses) - return false; - else if (__isset.emailAddresses && !(emailAddresses == rhs.emailAddresses)) - return false; - if (__isset.userConfigurationData != rhs.__isset.userConfigurationData) - return false; - else if (__isset.userConfigurationData && !(userConfigurationData == rhs.userConfigurationData)) - return false; - if (__isset.experimentInputs != rhs.__isset.experimentInputs) - return false; - else if (__isset.experimentInputs && !(experimentInputs == rhs.experimentInputs)) - return false; - if (__isset.experimentOutputs != rhs.__isset.experimentOutputs) - return false; - else if (__isset.experimentOutputs && !(experimentOutputs == rhs.experimentOutputs)) - return false; - if (__isset.experimentStatus != rhs.__isset.experimentStatus) - return false; - else if (__isset.experimentStatus && !(experimentStatus == rhs.experimentStatus)) - return false; - if (__isset.errors != rhs.__isset.errors) - return false; - else if (__isset.errors && !(errors == rhs.errors)) - return false; - if (__isset.processes != rhs.__isset.processes) - return false; - else if (__isset.processes && !(processes == rhs.processes)) - return false; - return true; - } - bool operator != (const ExperimentModel &rhs) const { - return !(*this == rhs); - } - - bool operator < (const ExperimentModel & ) 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(ExperimentModel &a, ExperimentModel &b); - -inline std::ostream& operator<<(std::ostream& out, const ExperimentModel& obj) -{ - obj.printTo(out); - return out; -} - -typedef struct _ExperimentSummaryModel__isset { - _ExperimentSummaryModel__isset() : creationTime(false), description(false), executionId(false), resourceHostId(false), experimentStatus(false), statusUpdateTime(false) {} - bool creationTime :1; - bool description :1; - bool executionId :1; - bool resourceHostId :1; - bool experimentStatus :1; - bool statusUpdateTime :1; -} _ExperimentSummaryModel__isset; - -class ExperimentSummaryModel { - public: - - ExperimentSummaryModel(const ExperimentSummaryModel&); - ExperimentSummaryModel& operator=(const ExperimentSummaryModel&); - ExperimentSummaryModel() : experimentId(), projectId(), gatewayId(), creationTime(0), userName(), name(), description(), executionId(), resourceHostId(), experimentStatus(), statusUpdateTime(0) { - } - - virtual ~ExperimentSummaryModel() throw(); - std::string experimentId; - std::string projectId; - std::string gatewayId; - int64_t creationTime; - std::string userName; - std::string name; - std::string description; - std::string executionId; - std::string resourceHostId; - std::string experimentStatus; - int64_t statusUpdateTime; - - _ExperimentSummaryModel__isset __isset; - - void __set_experimentId(const std::string& val); - - void __set_projectId(const std::string& val); - - void __set_gatewayId(const std::string& val); - - void __set_creationTime(const int64_t val); - - void __set_userName(const std::string& val); - - void __set_name(const std::string& val); - - void __set_description(const std::string& val); - - void __set_executionId(const std::string& val); - - void __set_resourceHostId(const std::string& val); - - void __set_experimentStatus(const std::string& val); - - void __set_statusUpdateTime(const int64_t val); - - bool operator == (const ExperimentSummaryModel & rhs) const - { - if (!(experimentId == rhs.experimentId)) - return false; - if (!(projectId == rhs.projectId)) - return false; - if (!(gatewayId == rhs.gatewayId)) - return false; - if (__isset.creationTime != rhs.__isset.creationTime) - return false; - else if (__isset.creationTime && !(creationTime == rhs.creationTime)) - return false; - if (!(userName == rhs.userName)) - 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.executionId != rhs.__isset.executionId) - return false; - else if (__isset.executionId && !(executionId == rhs.executionId)) - return false; - if (__isset.resourceHostId != rhs.__isset.resourceHostId) - return false; - else if (__isset.resourceHostId && !(resourceHostId == rhs.resourceHostId)) - return false; - if (__isset.experimentStatus != rhs.__isset.experimentStatus) - return false; - else if (__isset.experimentStatus && !(experimentStatus == rhs.experimentStatus)) - return false; - if (__isset.statusUpdateTime != rhs.__isset.statusUpdateTime) - return false; - else if (__isset.statusUpdateTime && !(statusUpdateTime == rhs.statusUpdateTime)) - return false; - return true; - } - bool operator != (const ExperimentSummaryModel &rhs) const { - return !(*this == rhs); - } - - bool operator < (const ExperimentSummaryModel & ) 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(ExperimentSummaryModel &a, ExperimentSummaryModel &b); - -inline std::ostream& operator<<(std::ostream& out, const ExperimentSummaryModel& obj) -{ - obj.printTo(out); - return out; -} - -typedef struct _ExperimentStatistics__isset { - _ExperimentStatistics__isset() : cancelledExperimentCount(false), completedExperiments(false), failedExperiments(false), cancelledExperiments(false), createdExperiments(false), runningExperiments(false) {} - bool cancelledExperimentCount :1; - bool completedExperiments :1; - bool failedExperiments :1; - bool cancelledExperiments :1; - bool createdExperiments :1; - bool runningExperiments :1; -} _ExperimentStatistics__isset; - -class ExperimentStatistics { - public: - - ExperimentStatistics(const ExperimentStatistics&); - ExperimentStatistics& operator=(const ExperimentStatistics&); - ExperimentStatistics() : allExperimentCount(0), completedExperimentCount(0), cancelledExperimentCount(0), failedExperimentCount(0), createdExperimentCount(0), runningExperimentCount(0) { - } - - virtual ~ExperimentStatistics() throw(); - int32_t allExperimentCount; - int32_t completedExperimentCount; - int32_t cancelledExperimentCount; - int32_t failedExperimentCount; - int32_t createdExperimentCount; - int32_t runningExperimentCount; - std::vector<ExperimentSummaryModel> allExperiments; - std::vector<ExperimentSummaryModel> completedExperiments; - std::vector<ExperimentSummaryModel> failedExperiments; - std::vector<ExperimentSummaryModel> cancelledExperiments; - std::vector<ExperimentSummaryModel> createdExperiments; - std::vector<ExperimentSummaryModel> runningExperiments; - - _ExperimentStatistics__isset __isset; - - void __set_allExperimentCount(const int32_t val); - - void __set_completedExperimentCount(const int32_t val); - - void __set_cancelledExperimentCount(const int32_t val); - - void __set_failedExperimentCount(const int32_t val); - - void __set_createdExperimentCount(const int32_t val); - - void __set_runningExperimentCount(const int32_t val); - - void __set_allExperiments(const std::vector<ExperimentSummaryModel> & val); - - void __set_completedExperiments(const std::vector<ExperimentSummaryModel> & val); - - void __set_failedExperiments(const std::vector<ExperimentSummaryModel> & val); - - void __set_cancelledExperiments(const std::vector<ExperimentSummaryModel> & val); - - void __set_createdExperiments(const std::vector<ExperimentSummaryModel> & val); - - void __set_runningExperiments(const std::vector<ExperimentSummaryModel> & val); - - bool operator == (const ExperimentStatistics & rhs) const - { - if (!(allExperimentCount == rhs.allExperimentCount)) - return false; - if (!(completedExperimentCount == rhs.completedExperimentCount)) - return false; - if (__isset.cancelledExperimentCount != rhs.__isset.cancelledExperimentCount) - return false; - else if (__isset.cancelledExperimentCount && !(cancelledExperimentCount == rhs.cancelledExperimentCount)) - return false; - if (!(failedExperimentCount == rhs.failedExperimentCount)) - return false; - if (!(createdExperimentCount == rhs.createdExperimentCount)) - return false; - if (!(runningExperimentCount == rhs.runningExperimentCount)) - return false; - if (!(allExperiments == rhs.allExperiments)) - return false; - if (__isset.completedExperiments != rhs.__isset.completedExperiments) - return false; - else if (__isset.completedExperiments && !(completedExperiments == rhs.completedExperiments)) - return false; - if (__isset.failedExperiments != rhs.__isset.failedExperiments) - return false; - else if (__isset.failedExperiments && !(failedExperiments == rhs.failedExperiments)) - return false; - if (__isset.cancelledExperiments != rhs.__isset.cancelledExperiments) - return false; - else if (__isset.cancelledExperiments && !(cancelledExperiments == rhs.cancelledExperiments)) - return false; - if (__isset.createdExperiments != rhs.__isset.createdExperiments) - return false; - else if (__isset.createdExperiments && !(createdExperiments == rhs.createdExperiments)) - return false; - if (__isset.runningExperiments != rhs.__isset.runningExperiments) - return false; - else if (__isset.runningExperiments && !(runningExperiments == rhs.runningExperiments)) - return false; - return true; - } - bool operator != (const ExperimentStatistics &rhs) const { - return !(*this == rhs); - } - - bool operator < (const ExperimentStatistics & ) 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(ExperimentStatistics &a, ExperimentStatistics &b); - -inline std::ostream& operator<<(std::ostream& out, const ExperimentStatistics& obj) -{ - obj.printTo(out); - return out; -} - -}}}} // namespace - -#endif
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/d55608f1/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/gatewayResourceProfileModel_constants.cpp ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/gatewayResourceProfileModel_constants.cpp b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/gatewayResourceProfileModel_constants.cpp deleted file mode 100644 index d130bfd..0000000 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/gatewayResourceProfileModel_constants.cpp +++ /dev/null @@ -1,34 +0,0 @@ -/** - * 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.1) - * - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING - * @generated - */ -#include "gatewayResourceProfileModel_constants.h" - -namespace apache { namespace airavata { namespace model { namespace appcatalog { namespace gatewayprofile { - -const gatewayResourceProfileModelConstants g_gatewayResourceProfileModel_constants; - -gatewayResourceProfileModelConstants::gatewayResourceProfileModelConstants() { -} - -}}}}} // namespace - http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/d55608f1/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/gatewayResourceProfileModel_constants.h ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/gatewayResourceProfileModel_constants.h b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/gatewayResourceProfileModel_constants.h deleted file mode 100644 index da93846..0000000 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/gatewayResourceProfileModel_constants.h +++ /dev/null @@ -1,41 +0,0 @@ -/** - * 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.1) - * - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING - * @generated - */ -#ifndef gatewayResourceProfileModel_CONSTANTS_H -#define gatewayResourceProfileModel_CONSTANTS_H - -#include "gatewayResourceProfileModel_types.h" - -namespace apache { namespace airavata { namespace model { namespace appcatalog { namespace gatewayprofile { - -class gatewayResourceProfileModelConstants { - public: - gatewayResourceProfileModelConstants(); - -}; - -extern const gatewayResourceProfileModelConstants g_gatewayResourceProfileModel_constants; - -}}}}} // namespace - -#endif http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/d55608f1/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/gatewayResourceProfileModel_types.cpp ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/gatewayResourceProfileModel_types.cpp b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/gatewayResourceProfileModel_types.cpp deleted file mode 100644 index 1c465e4..0000000 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/gatewayResourceProfileModel_types.cpp +++ /dev/null @@ -1,298 +0,0 @@ -/** - * 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.1) - * - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING - * @generated - */ -#include "gatewayResourceProfileModel_types.h" - -#include <algorithm> - -namespace apache { namespace airavata { namespace model { namespace appcatalog { namespace gatewayprofile { - -const char* ComputeResourcePreference::ascii_fingerprint = "D89E0E13D04B60B99B78496AC9B85D52"; -const uint8_t ComputeResourcePreference::binary_fingerprint[16] = {0xD8,0x9E,0x0E,0x13,0xD0,0x4B,0x60,0xB9,0x9B,0x78,0x49,0x6A,0xC9,0xB8,0x5D,0x52}; - -uint32_t ComputeResourcePreference::read(::apache::thrift::protocol::TProtocol* iprot) { - - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - bool isset_computeResourceId = false; - bool isset_overridebyAiravata = false; - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->computeResourceId); - isset_computeResourceId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->overridebyAiravata); - isset_overridebyAiravata = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->loginUserName); - this->__isset.loginUserName = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast0; - xfer += iprot->readI32(ecast0); - this->preferredJobSubmissionProtocol = ( ::apache::airavata::model::appcatalog::computeresource::JobSubmissionProtocol::type)ecast0; - this->__isset.preferredJobSubmissionProtocol = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1; - xfer += iprot->readI32(ecast1); - this->preferredDataMovementProtocol = ( ::apache::airavata::model::appcatalog::computeresource::DataMovementProtocol::type)ecast1; - this->__isset.preferredDataMovementProtocol = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->preferredBatchQueue); - this->__isset.preferredBatchQueue = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 7: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->scratchLocation); - this->__isset.scratchLocation = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 8: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->allocationProjectNumber); - this->__isset.allocationProjectNumber = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - if (!isset_computeResourceId) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_overridebyAiravata) - throw TProtocolException(TProtocolException::INVALID_DATA); - return xfer; -} - -uint32_t ComputeResourcePreference::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ComputeResourcePreference"); - - xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->computeResourceId); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("overridebyAiravata", ::apache::thrift::protocol::T_BOOL, 2); - xfer += oprot->writeBool(this->overridebyAiravata); - xfer += oprot->writeFieldEnd(); - - if (this->__isset.loginUserName) { - xfer += oprot->writeFieldBegin("loginUserName", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->loginUserName); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.preferredJobSubmissionProtocol) { - xfer += oprot->writeFieldBegin("preferredJobSubmissionProtocol", ::apache::thrift::protocol::T_I32, 4); - xfer += oprot->writeI32((int32_t)this->preferredJobSubmissionProtocol); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.preferredDataMovementProtocol) { - xfer += oprot->writeFieldBegin("preferredDataMovementProtocol", ::apache::thrift::protocol::T_I32, 5); - xfer += oprot->writeI32((int32_t)this->preferredDataMovementProtocol); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.preferredBatchQueue) { - xfer += oprot->writeFieldBegin("preferredBatchQueue", ::apache::thrift::protocol::T_STRING, 6); - xfer += oprot->writeString(this->preferredBatchQueue); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.scratchLocation) { - xfer += oprot->writeFieldBegin("scratchLocation", ::apache::thrift::protocol::T_STRING, 7); - xfer += oprot->writeString(this->scratchLocation); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.allocationProjectNumber) { - xfer += oprot->writeFieldBegin("allocationProjectNumber", ::apache::thrift::protocol::T_STRING, 8); - xfer += oprot->writeString(this->allocationProjectNumber); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(ComputeResourcePreference &a, ComputeResourcePreference &b) { - using ::std::swap; - swap(a.computeResourceId, b.computeResourceId); - swap(a.overridebyAiravata, b.overridebyAiravata); - swap(a.loginUserName, b.loginUserName); - swap(a.preferredJobSubmissionProtocol, b.preferredJobSubmissionProtocol); - swap(a.preferredDataMovementProtocol, b.preferredDataMovementProtocol); - swap(a.preferredBatchQueue, b.preferredBatchQueue); - swap(a.scratchLocation, b.scratchLocation); - swap(a.allocationProjectNumber, b.allocationProjectNumber); - swap(a.__isset, b.__isset); -} - -const char* GatewayResourceProfile::ascii_fingerprint = "106DE1CD0F7026F6471DE8DAF360BE03"; -const uint8_t GatewayResourceProfile::binary_fingerprint[16] = {0x10,0x6D,0xE1,0xCD,0x0F,0x70,0x26,0xF6,0x47,0x1D,0xE8,0xDA,0xF3,0x60,0xBE,0x03}; - -uint32_t GatewayResourceProfile::read(::apache::thrift::protocol::TProtocol* iprot) { - - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - bool isset_gatewayID = false; - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->gatewayID); - isset_gatewayID = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->computeResourcePreferences.clear(); - uint32_t _size2; - ::apache::thrift::protocol::TType _etype5; - xfer += iprot->readListBegin(_etype5, _size2); - this->computeResourcePreferences.resize(_size2); - uint32_t _i6; - for (_i6 = 0; _i6 < _size2; ++_i6) - { - xfer += this->computeResourcePreferences[_i6].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.computeResourcePreferences = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - if (!isset_gatewayID) - throw TProtocolException(TProtocolException::INVALID_DATA); - return xfer; -} - -uint32_t GatewayResourceProfile::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - xfer += oprot->writeStructBegin("GatewayResourceProfile"); - - xfer += oprot->writeFieldBegin("gatewayID", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->gatewayID); - xfer += oprot->writeFieldEnd(); - - if (this->__isset.computeResourcePreferences) { - xfer += oprot->writeFieldBegin("computeResourcePreferences", ::apache::thrift::protocol::T_LIST, 2); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->computeResourcePreferences.size())); - std::vector<ComputeResourcePreference> ::const_iterator _iter7; - for (_iter7 = this->computeResourcePreferences.begin(); _iter7 != this->computeResourcePreferences.end(); ++_iter7) - { - xfer += (*_iter7).write(oprot); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(GatewayResourceProfile &a, GatewayResourceProfile &b) { - using ::std::swap; - swap(a.gatewayID, b.gatewayID); - swap(a.computeResourcePreferences, b.computeResourcePreferences); - swap(a.__isset, b.__isset); -} - -}}}}} // namespace http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/d55608f1/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/gatewayResourceProfileModel_types.h ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/gatewayResourceProfileModel_types.h b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/gatewayResourceProfileModel_types.h deleted file mode 100644 index c664087..0000000 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/gatewayResourceProfileModel_types.h +++ /dev/null @@ -1,208 +0,0 @@ -/** - * 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.1) - * - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING - * @generated - */ -#ifndef gatewayResourceProfileModel_TYPES_H -#define gatewayResourceProfileModel_TYPES_H - -#include <thrift/Thrift.h> -#include <thrift/TApplicationException.h> -#include <thrift/protocol/TProtocol.h> -#include <thrift/transport/TTransport.h> - -#include <thrift/cxxfunctional.h> -#include "computeResourceModel_types.h" - - -namespace apache { namespace airavata { namespace model { namespace appcatalog { namespace gatewayprofile { - -typedef struct _ComputeResourcePreference__isset { - _ComputeResourcePreference__isset() : loginUserName(false), preferredJobSubmissionProtocol(false), preferredDataMovementProtocol(false), preferredBatchQueue(false), scratchLocation(false), allocationProjectNumber(false) {} - bool loginUserName; - bool preferredJobSubmissionProtocol; - bool preferredDataMovementProtocol; - bool preferredBatchQueue; - bool scratchLocation; - bool allocationProjectNumber; -} _ComputeResourcePreference__isset; - -class ComputeResourcePreference { - public: - - static const char* ascii_fingerprint; // = "D89E0E13D04B60B99B78496AC9B85D52"; - static const uint8_t binary_fingerprint[16]; // = {0xD8,0x9E,0x0E,0x13,0xD0,0x4B,0x60,0xB9,0x9B,0x78,0x49,0x6A,0xC9,0xB8,0x5D,0x52}; - - ComputeResourcePreference() : computeResourceId(), overridebyAiravata(true), loginUserName(), preferredJobSubmissionProtocol(( ::apache::airavata::model::appcatalog::computeresource::JobSubmissionProtocol::type)0), preferredDataMovementProtocol(( ::apache::airavata::model::appcatalog::computeresource::DataMovementProtocol::type)0), preferredBatchQueue(), scratchLocation(), allocationProjectNumber() { - } - - virtual ~ComputeResourcePreference() throw() {} - - std::string computeResourceId; - bool overridebyAiravata; - std::string loginUserName; - ::apache::airavata::model::appcatalog::computeresource::JobSubmissionProtocol::type preferredJobSubmissionProtocol; - ::apache::airavata::model::appcatalog::computeresource::DataMovementProtocol::type preferredDataMovementProtocol; - std::string preferredBatchQueue; - std::string scratchLocation; - std::string allocationProjectNumber; - - _ComputeResourcePreference__isset __isset; - - void __set_computeResourceId(const std::string& val) { - computeResourceId = val; - } - - void __set_overridebyAiravata(const bool val) { - overridebyAiravata = val; - } - - void __set_loginUserName(const std::string& val) { - loginUserName = val; - __isset.loginUserName = true; - } - - void __set_preferredJobSubmissionProtocol(const ::apache::airavata::model::appcatalog::computeresource::JobSubmissionProtocol::type val) { - preferredJobSubmissionProtocol = val; - __isset.preferredJobSubmissionProtocol = true; - } - - void __set_preferredDataMovementProtocol(const ::apache::airavata::model::appcatalog::computeresource::DataMovementProtocol::type val) { - preferredDataMovementProtocol = val; - __isset.preferredDataMovementProtocol = true; - } - - void __set_preferredBatchQueue(const std::string& val) { - preferredBatchQueue = val; - __isset.preferredBatchQueue = true; - } - - void __set_scratchLocation(const std::string& val) { - scratchLocation = val; - __isset.scratchLocation = true; - } - - void __set_allocationProjectNumber(const std::string& val) { - allocationProjectNumber = val; - __isset.allocationProjectNumber = true; - } - - 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; - 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; - -}; - -void swap(ComputeResourcePreference &a, ComputeResourcePreference &b); - -typedef struct _GatewayResourceProfile__isset { - _GatewayResourceProfile__isset() : computeResourcePreferences(false) {} - bool computeResourcePreferences; -} _GatewayResourceProfile__isset; - -class GatewayResourceProfile { - public: - - static const char* ascii_fingerprint; // = "106DE1CD0F7026F6471DE8DAF360BE03"; - static const uint8_t binary_fingerprint[16]; // = {0x10,0x6D,0xE1,0xCD,0x0F,0x70,0x26,0xF6,0x47,0x1D,0xE8,0xDA,0xF3,0x60,0xBE,0x03}; - - GatewayResourceProfile() : gatewayID() { - } - - virtual ~GatewayResourceProfile() throw() {} - - std::string gatewayID; - std::vector<ComputeResourcePreference> computeResourcePreferences; - - _GatewayResourceProfile__isset __isset; - - void __set_gatewayID(const std::string& val) { - gatewayID = val; - } - - void __set_computeResourcePreferences(const std::vector<ComputeResourcePreference> & val) { - computeResourcePreferences = val; - __isset.computeResourcePreferences = true; - } - - bool operator == (const GatewayResourceProfile & rhs) const - { - if (!(gatewayID == rhs.gatewayID)) - return false; - if (__isset.computeResourcePreferences != rhs.__isset.computeResourcePreferences) - return false; - else if (__isset.computeResourcePreferences && !(computeResourcePreferences == rhs.computeResourcePreferences)) - 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; - -}; - -void swap(GatewayResourceProfile &a, GatewayResourceProfile &b); - -}}}}} // namespace - -#endif http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/d55608f1/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/gateway_resource_profile_model_constants.cpp ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/gateway_resource_profile_model_constants.cpp b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/gateway_resource_profile_model_constants.cpp deleted file mode 100644 index fc855c1..0000000 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/gateway_resource_profile_model_constants.cpp +++ /dev/null @@ -1,34 +0,0 @@ -/** - * 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 - */ -#include "gateway_resource_profile_model_constants.h" - -namespace apache { namespace airavata { namespace model { namespace appcatalog { namespace gatewayprofile { - -const gateway_resource_profile_modelConstants g_gateway_resource_profile_model_constants; - -gateway_resource_profile_modelConstants::gateway_resource_profile_modelConstants() { -} - -}}}}} // namespace - http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/d55608f1/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/gateway_resource_profile_model_constants.h ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/gateway_resource_profile_model_constants.h b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/gateway_resource_profile_model_constants.h deleted file mode 100644 index 728ed11..0000000 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/gateway_resource_profile_model_constants.h +++ /dev/null @@ -1,41 +0,0 @@ -/** - * 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_CONSTANTS_H -#define gateway_resource_profile_model_CONSTANTS_H - -#include "gateway_resource_profile_model_types.h" - -namespace apache { namespace airavata { namespace model { namespace appcatalog { namespace gatewayprofile { - -class gateway_resource_profile_modelConstants { - public: - gateway_resource_profile_modelConstants(); - -}; - -extern const gateway_resource_profile_modelConstants g_gateway_resource_profile_model_constants; - -}}}}} // namespace - -#endif http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/d55608f1/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/gateway_resource_profile_model_types.cpp ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/gateway_resource_profile_model_types.cpp b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/gateway_resource_profile_model_types.cpp deleted file mode 100644 index 19dd9e8..0000000 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/gateway_resource_profile_model_types.cpp +++ /dev/null @@ -1,807 +0,0 @@ -/** - * 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 - */ -#include "gateway_resource_profile_model_types.h" - -#include <algorithm> -#include <ostream> - -#include <thrift/TToString.h> - -namespace apache { namespace airavata { namespace model { namespace appcatalog { namespace gatewayprofile { - - -ComputeResourcePreference::~ComputeResourcePreference() throw() { -} - - -void ComputeResourcePreference::__set_computeResourceId(const std::string& val) { - this->computeResourceId = val; -} - -void ComputeResourcePreference::__set_overridebyAiravata(const bool val) { - this->overridebyAiravata = val; -} - -void ComputeResourcePreference::__set_loginUserName(const std::string& val) { - this->loginUserName = val; -__isset.loginUserName = true; -} - -void ComputeResourcePreference::__set_preferredJobSubmissionProtocol(const ::apache::airavata::model::appcatalog::computeresource::JobSubmissionProtocol::type val) { - this->preferredJobSubmissionProtocol = val; -__isset.preferredJobSubmissionProtocol = true; -} - -void ComputeResourcePreference::__set_preferredDataMovementProtocol(const ::apache::airavata::model::data::movement::DataMovementProtocol::type val) { - this->preferredDataMovementProtocol = val; -__isset.preferredDataMovementProtocol = true; -} - -void ComputeResourcePreference::__set_preferredBatchQueue(const std::string& val) { - this->preferredBatchQueue = val; -__isset.preferredBatchQueue = true; -} - -void ComputeResourcePreference::__set_scratchLocation(const std::string& val) { - this->scratchLocation = val; -__isset.scratchLocation = true; -} - -void ComputeResourcePreference::__set_allocationProjectNumber(const std::string& val) { - this->allocationProjectNumber = val; -__isset.allocationProjectNumber = true; -} - -void ComputeResourcePreference::__set_resourceSpecificCredentialStoreToken(const std::string& val) { - this->resourceSpecificCredentialStoreToken = val; -__isset.resourceSpecificCredentialStoreToken = true; -} - -void ComputeResourcePreference::__set_usageReportingGatewayId(const std::string& val) { - this->usageReportingGatewayId = val; -__isset.usageReportingGatewayId = true; -} - -void ComputeResourcePreference::__set_qualityOfService(const std::string& val) { - this->qualityOfService = val; -__isset.qualityOfService = true; -} - -void ComputeResourcePreference::__set_reservation(const std::string& val) { - this->reservation = val; -__isset.reservation = true; -} - -void ComputeResourcePreference::__set_reservationStartTime(const int64_t val) { - this->reservationStartTime = val; -__isset.reservationStartTime = true; -} - -void ComputeResourcePreference::__set_reservationEndTime(const int64_t val) { - this->reservationEndTime = val; -__isset.reservationEndTime = true; -} - -uint32_t ComputeResourcePreference::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - bool isset_computeResourceId = false; - bool isset_overridebyAiravata = false; - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->computeResourceId); - isset_computeResourceId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->overridebyAiravata); - isset_overridebyAiravata = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->loginUserName); - this->__isset.loginUserName = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast0; - xfer += iprot->readI32(ecast0); - this->preferredJobSubmissionProtocol = ( ::apache::airavata::model::appcatalog::computeresource::JobSubmissionProtocol::type)ecast0; - this->__isset.preferredJobSubmissionProtocol = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1; - xfer += iprot->readI32(ecast1); - this->preferredDataMovementProtocol = ( ::apache::airavata::model::data::movement::DataMovementProtocol::type)ecast1; - this->__isset.preferredDataMovementProtocol = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->preferredBatchQueue); - this->__isset.preferredBatchQueue = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 7: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->scratchLocation); - this->__isset.scratchLocation = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 8: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->allocationProjectNumber); - this->__isset.allocationProjectNumber = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 9: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->resourceSpecificCredentialStoreToken); - this->__isset.resourceSpecificCredentialStoreToken = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 10: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->usageReportingGatewayId); - this->__isset.usageReportingGatewayId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 11: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->qualityOfService); - this->__isset.qualityOfService = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 12: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->reservation); - this->__isset.reservation = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 13: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->reservationStartTime); - this->__isset.reservationStartTime = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 14: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->reservationEndTime); - this->__isset.reservationEndTime = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - if (!isset_computeResourceId) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_overridebyAiravata) - throw TProtocolException(TProtocolException::INVALID_DATA); - return xfer; -} - -uint32_t ComputeResourcePreference::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ComputeResourcePreference"); - - xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->computeResourceId); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("overridebyAiravata", ::apache::thrift::protocol::T_BOOL, 2); - xfer += oprot->writeBool(this->overridebyAiravata); - xfer += oprot->writeFieldEnd(); - - if (this->__isset.loginUserName) { - xfer += oprot->writeFieldBegin("loginUserName", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->loginUserName); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.preferredJobSubmissionProtocol) { - xfer += oprot->writeFieldBegin("preferredJobSubmissionProtocol", ::apache::thrift::protocol::T_I32, 4); - xfer += oprot->writeI32((int32_t)this->preferredJobSubmissionProtocol); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.preferredDataMovementProtocol) { - xfer += oprot->writeFieldBegin("preferredDataMovementProtocol", ::apache::thrift::protocol::T_I32, 5); - xfer += oprot->writeI32((int32_t)this->preferredDataMovementProtocol); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.preferredBatchQueue) { - xfer += oprot->writeFieldBegin("preferredBatchQueue", ::apache::thrift::protocol::T_STRING, 6); - xfer += oprot->writeString(this->preferredBatchQueue); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.scratchLocation) { - xfer += oprot->writeFieldBegin("scratchLocation", ::apache::thrift::protocol::T_STRING, 7); - xfer += oprot->writeString(this->scratchLocation); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.allocationProjectNumber) { - xfer += oprot->writeFieldBegin("allocationProjectNumber", ::apache::thrift::protocol::T_STRING, 8); - xfer += oprot->writeString(this->allocationProjectNumber); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.resourceSpecificCredentialStoreToken) { - xfer += oprot->writeFieldBegin("resourceSpecificCredentialStoreToken", ::apache::thrift::protocol::T_STRING, 9); - xfer += oprot->writeString(this->resourceSpecificCredentialStoreToken); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.usageReportingGatewayId) { - xfer += oprot->writeFieldBegin("usageReportingGatewayId", ::apache::thrift::protocol::T_STRING, 10); - xfer += oprot->writeString(this->usageReportingGatewayId); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.qualityOfService) { - xfer += oprot->writeFieldBegin("qualityOfService", ::apache::thrift::protocol::T_STRING, 11); - xfer += oprot->writeString(this->qualityOfService); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.reservation) { - xfer += oprot->writeFieldBegin("reservation", ::apache::thrift::protocol::T_STRING, 12); - xfer += oprot->writeString(this->reservation); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.reservationStartTime) { - xfer += oprot->writeFieldBegin("reservationStartTime", ::apache::thrift::protocol::T_I64, 13); - xfer += oprot->writeI64(this->reservationStartTime); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.reservationEndTime) { - xfer += oprot->writeFieldBegin("reservationEndTime", ::apache::thrift::protocol::T_I64, 14); - xfer += oprot->writeI64(this->reservationEndTime); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(ComputeResourcePreference &a, ComputeResourcePreference &b) { - using ::std::swap; - swap(a.computeResourceId, b.computeResourceId); - swap(a.overridebyAiravata, b.overridebyAiravata); - swap(a.loginUserName, b.loginUserName); - swap(a.preferredJobSubmissionProtocol, b.preferredJobSubmissionProtocol); - swap(a.preferredDataMovementProtocol, b.preferredDataMovementProtocol); - swap(a.preferredBatchQueue, b.preferredBatchQueue); - swap(a.scratchLocation, b.scratchLocation); - swap(a.allocationProjectNumber, b.allocationProjectNumber); - swap(a.resourceSpecificCredentialStoreToken, b.resourceSpecificCredentialStoreToken); - swap(a.usageReportingGatewayId, b.usageReportingGatewayId); - swap(a.qualityOfService, b.qualityOfService); - swap(a.reservation, b.reservation); - swap(a.reservationStartTime, b.reservationStartTime); - swap(a.reservationEndTime, b.reservationEndTime); - swap(a.__isset, b.__isset); -} - -ComputeResourcePreference::ComputeResourcePreference(const ComputeResourcePreference& other2) { - computeResourceId = other2.computeResourceId; - overridebyAiravata = other2.overridebyAiravata; - loginUserName = other2.loginUserName; - preferredJobSubmissionProtocol = other2.preferredJobSubmissionProtocol; - preferredDataMovementProtocol = other2.preferredDataMovementProtocol; - preferredBatchQueue = other2.preferredBatchQueue; - scratchLocation = other2.scratchLocation; - allocationProjectNumber = other2.allocationProjectNumber; - resourceSpecificCredentialStoreToken = other2.resourceSpecificCredentialStoreToken; - usageReportingGatewayId = other2.usageReportingGatewayId; - qualityOfService = other2.qualityOfService; - reservation = other2.reservation; - reservationStartTime = other2.reservationStartTime; - reservationEndTime = other2.reservationEndTime; - __isset = other2.__isset; -} -ComputeResourcePreference& ComputeResourcePreference::operator=(const ComputeResourcePreference& other3) { - computeResourceId = other3.computeResourceId; - overridebyAiravata = other3.overridebyAiravata; - loginUserName = other3.loginUserName; - preferredJobSubmissionProtocol = other3.preferredJobSubmissionProtocol; - preferredDataMovementProtocol = other3.preferredDataMovementProtocol; - preferredBatchQueue = other3.preferredBatchQueue; - scratchLocation = other3.scratchLocation; - allocationProjectNumber = other3.allocationProjectNumber; - resourceSpecificCredentialStoreToken = other3.resourceSpecificCredentialStoreToken; - usageReportingGatewayId = other3.usageReportingGatewayId; - qualityOfService = other3.qualityOfService; - reservation = other3.reservation; - reservationStartTime = other3.reservationStartTime; - reservationEndTime = other3.reservationEndTime; - __isset = other3.__isset; - return *this; -} -void ComputeResourcePreference::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "ComputeResourcePreference("; - out << "computeResourceId=" << to_string(computeResourceId); - out << ", " << "overridebyAiravata=" << to_string(overridebyAiravata); - out << ", " << "loginUserName="; (__isset.loginUserName ? (out << to_string(loginUserName)) : (out << "<null>")); - out << ", " << "preferredJobSubmissionProtocol="; (__isset.preferredJobSubmissionProtocol ? (out << to_string(preferredJobSubmissionProtocol)) : (out << "<null>")); - out << ", " << "preferredDataMovementProtocol="; (__isset.preferredDataMovementProtocol ? (out << to_string(preferredDataMovementProtocol)) : (out << "<null>")); - out << ", " << "preferredBatchQueue="; (__isset.preferredBatchQueue ? (out << to_string(preferredBatchQueue)) : (out << "<null>")); - out << ", " << "scratchLocation="; (__isset.scratchLocation ? (out << to_string(scratchLocation)) : (out << "<null>")); - out << ", " << "allocationProjectNumber="; (__isset.allocationProjectNumber ? (out << to_string(allocationProjectNumber)) : (out << "<null>")); - out << ", " << "resourceSpecificCredentialStoreToken="; (__isset.resourceSpecificCredentialStoreToken ? (out << to_string(resourceSpecificCredentialStoreToken)) : (out << "<null>")); - out << ", " << "usageReportingGatewayId="; (__isset.usageReportingGatewayId ? (out << to_string(usageReportingGatewayId)) : (out << "<null>")); - out << ", " << "qualityOfService="; (__isset.qualityOfService ? (out << to_string(qualityOfService)) : (out << "<null>")); - out << ", " << "reservation="; (__isset.reservation ? (out << to_string(reservation)) : (out << "<null>")); - out << ", " << "reservationStartTime="; (__isset.reservationStartTime ? (out << to_string(reservationStartTime)) : (out << "<null>")); - out << ", " << "reservationEndTime="; (__isset.reservationEndTime ? (out << to_string(reservationEndTime)) : (out << "<null>")); - out << ")"; -} - - -StoragePreference::~StoragePreference() throw() { -} - - -void StoragePreference::__set_storageResourceId(const std::string& val) { - this->storageResourceId = val; -} - -void StoragePreference::__set_loginUserName(const std::string& val) { - this->loginUserName = val; -__isset.loginUserName = true; -} - -void StoragePreference::__set_fileSystemRootLocation(const std::string& val) { - this->fileSystemRootLocation = val; -__isset.fileSystemRootLocation = true; -} - -void StoragePreference::__set_resourceSpecificCredentialStoreToken(const std::string& val) { - this->resourceSpecificCredentialStoreToken = val; -__isset.resourceSpecificCredentialStoreToken = true; -} - -uint32_t StoragePreference::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - bool isset_storageResourceId = false; - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->storageResourceId); - isset_storageResourceId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->loginUserName); - this->__isset.loginUserName = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->fileSystemRootLocation); - this->__isset.fileSystemRootLocation = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->resourceSpecificCredentialStoreToken); - this->__isset.resourceSpecificCredentialStoreToken = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - if (!isset_storageResourceId) - throw TProtocolException(TProtocolException::INVALID_DATA); - return xfer; -} - -uint32_t StoragePreference::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("StoragePreference"); - - xfer += oprot->writeFieldBegin("storageResourceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->storageResourceId); - xfer += oprot->writeFieldEnd(); - - if (this->__isset.loginUserName) { - xfer += oprot->writeFieldBegin("loginUserName", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->loginUserName); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.fileSystemRootLocation) { - xfer += oprot->writeFieldBegin("fileSystemRootLocation", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->fileSystemRootLocation); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.resourceSpecificCredentialStoreToken) { - xfer += oprot->writeFieldBegin("resourceSpecificCredentialStoreToken", ::apache::thrift::protocol::T_STRING, 4); - xfer += oprot->writeString(this->resourceSpecificCredentialStoreToken); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(StoragePreference &a, StoragePreference &b) { - using ::std::swap; - swap(a.storageResourceId, b.storageResourceId); - swap(a.loginUserName, b.loginUserName); - swap(a.fileSystemRootLocation, b.fileSystemRootLocation); - swap(a.resourceSpecificCredentialStoreToken, b.resourceSpecificCredentialStoreToken); - swap(a.__isset, b.__isset); -} - -StoragePreference::StoragePreference(const StoragePreference& other4) { - storageResourceId = other4.storageResourceId; - loginUserName = other4.loginUserName; - fileSystemRootLocation = other4.fileSystemRootLocation; - resourceSpecificCredentialStoreToken = other4.resourceSpecificCredentialStoreToken; - __isset = other4.__isset; -} -StoragePreference& StoragePreference::operator=(const StoragePreference& other5) { - storageResourceId = other5.storageResourceId; - loginUserName = other5.loginUserName; - fileSystemRootLocation = other5.fileSystemRootLocation; - resourceSpecificCredentialStoreToken = other5.resourceSpecificCredentialStoreToken; - __isset = other5.__isset; - return *this; -} -void StoragePreference::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "StoragePreference("; - out << "storageResourceId=" << to_string(storageResourceId); - out << ", " << "loginUserName="; (__isset.loginUserName ? (out << to_string(loginUserName)) : (out << "<null>")); - out << ", " << "fileSystemRootLocation="; (__isset.fileSystemRootLocation ? (out << to_string(fileSystemRootLocation)) : (out << "<null>")); - out << ", " << "resourceSpecificCredentialStoreToken="; (__isset.resourceSpecificCredentialStoreToken ? (out << to_string(resourceSpecificCredentialStoreToken)) : (out << "<null>")); - out << ")"; -} - - -GatewayResourceProfile::~GatewayResourceProfile() throw() { -} - - -void GatewayResourceProfile::__set_gatewayID(const std::string& val) { - this->gatewayID = val; -} - -void GatewayResourceProfile::__set_credentialStoreToken(const std::string& val) { - this->credentialStoreToken = val; -__isset.credentialStoreToken = true; -} - -void GatewayResourceProfile::__set_computeResourcePreferences(const std::vector<ComputeResourcePreference> & val) { - this->computeResourcePreferences = val; -__isset.computeResourcePreferences = true; -} - -void GatewayResourceProfile::__set_storagePreferences(const std::vector<StoragePreference> & val) { - this->storagePreferences = val; -__isset.storagePreferences = true; -} - -void GatewayResourceProfile::__set_identityServerTenant(const std::string& val) { - this->identityServerTenant = val; -__isset.identityServerTenant = true; -} - -void GatewayResourceProfile::__set_identityServerPwdCredToken(const std::string& val) { - this->identityServerPwdCredToken = val; -__isset.identityServerPwdCredToken = true; -} - -uint32_t GatewayResourceProfile::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - bool isset_gatewayID = false; - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->gatewayID); - isset_gatewayID = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->credentialStoreToken); - this->__isset.credentialStoreToken = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->computeResourcePreferences.clear(); - uint32_t _size6; - ::apache::thrift::protocol::TType _etype9; - xfer += iprot->readListBegin(_etype9, _size6); - this->computeResourcePreferences.resize(_size6); - uint32_t _i10; - for (_i10 = 0; _i10 < _size6; ++_i10) - { - xfer += this->computeResourcePreferences[_i10].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.computeResourcePreferences = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->storagePreferences.clear(); - uint32_t _size11; - ::apache::thrift::protocol::TType _etype14; - xfer += iprot->readListBegin(_etype14, _size11); - this->storagePreferences.resize(_size11); - uint32_t _i15; - for (_i15 = 0; _i15 < _size11; ++_i15) - { - xfer += this->storagePreferences[_i15].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.storagePreferences = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->identityServerTenant); - this->__isset.identityServerTenant = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->identityServerPwdCredToken); - this->__isset.identityServerPwdCredToken = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - if (!isset_gatewayID) - throw TProtocolException(TProtocolException::INVALID_DATA); - return xfer; -} - -uint32_t GatewayResourceProfile::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("GatewayResourceProfile"); - - xfer += oprot->writeFieldBegin("gatewayID", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->gatewayID); - xfer += oprot->writeFieldEnd(); - - if (this->__isset.credentialStoreToken) { - xfer += oprot->writeFieldBegin("credentialStoreToken", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->credentialStoreToken); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.computeResourcePreferences) { - xfer += oprot->writeFieldBegin("computeResourcePreferences", ::apache::thrift::protocol::T_LIST, 3); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->computeResourcePreferences.size())); - std::vector<ComputeResourcePreference> ::const_iterator _iter16; - for (_iter16 = this->computeResourcePreferences.begin(); _iter16 != this->computeResourcePreferences.end(); ++_iter16) - { - xfer += (*_iter16).write(oprot); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.storagePreferences) { - xfer += oprot->writeFieldBegin("storagePreferences", ::apache::thrift::protocol::T_LIST, 4); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->storagePreferences.size())); - std::vector<StoragePreference> ::const_iterator _iter17; - for (_iter17 = this->storagePreferences.begin(); _iter17 != this->storagePreferences.end(); ++_iter17) - { - xfer += (*_iter17).write(oprot); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.identityServerTenant) { - xfer += oprot->writeFieldBegin("identityServerTenant", ::apache::thrift::protocol::T_STRING, 5); - xfer += oprot->writeString(this->identityServerTenant); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.identityServerPwdCredToken) { - xfer += oprot->writeFieldBegin("identityServerPwdCredToken", ::apache::thrift::protocol::T_STRING, 6); - xfer += oprot->writeString(this->identityServerPwdCredToken); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(GatewayResourceProfile &a, GatewayResourceProfile &b) { - using ::std::swap; - swap(a.gatewayID, b.gatewayID); - swap(a.credentialStoreToken, b.credentialStoreToken); - swap(a.computeResourcePreferences, b.computeResourcePreferences); - swap(a.storagePreferences, b.storagePreferences); - swap(a.identityServerTenant, b.identityServerTenant); - swap(a.identityServerPwdCredToken, b.identityServerPwdCredToken); - swap(a.__isset, b.__isset); -} - -GatewayResourceProfile::GatewayResourceProfile(const GatewayResourceProfile& other18) { - gatewayID = other18.gatewayID; - credentialStoreToken = other18.credentialStoreToken; - computeResourcePreferences = other18.computeResourcePreferences; - storagePreferences = other18.storagePreferences; - identityServerTenant = other18.identityServerTenant; - identityServerPwdCredToken = other18.identityServerPwdCredToken; - __isset = other18.__isset; -} -GatewayResourceProfile& GatewayResourceProfile::operator=(const GatewayResourceProfile& other19) { - gatewayID = other19.gatewayID; - credentialStoreToken = other19.credentialStoreToken; - computeResourcePreferences = other19.computeResourcePreferences; - storagePreferences = other19.storagePreferences; - identityServerTenant = other19.identityServerTenant; - identityServerPwdCredToken = other19.identityServerPwdCredToken; - __isset = other19.__isset; - return *this; -} -void GatewayResourceProfile::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "GatewayResourceProfile("; - out << "gatewayID=" << to_string(gatewayID); - out << ", " << "credentialStoreToken="; (__isset.credentialStoreToken ? (out << to_string(credentialStoreToken)) : (out << "<null>")); - out << ", " << "computeResourcePreferences="; (__isset.computeResourcePreferences ? (out << to_string(computeResourcePreferences)) : (out << "<null>")); - out << ", " << "storagePreferences="; (__isset.storagePreferences ? (out << to_string(storagePreferences)) : (out << "<null>")); - out << ", " << "identityServerTenant="; (__isset.identityServerTenant ? (out << to_string(identityServerTenant)) : (out << "<null>")); - out << ", " << "identityServerPwdCredToken="; (__isset.identityServerPwdCredToken ? (out << to_string(identityServerPwdCredToken)) : (out << "<null>")); - out << ")"; -} - -}}}}} // namespace
