由谦正发起的EHPC SDK自动发布, 版本号:1.11.0
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
This commit is contained in:
@@ -24,7 +24,7 @@ using namespace AlibabaCloud::EHPC::Model;
|
||||
|
||||
namespace
|
||||
{
|
||||
const std::string SERVICE_NAME = "EHPC";
|
||||
const std::string SERVICE_NAME = "EHPC";
|
||||
}
|
||||
|
||||
EHPCClient::EHPCClient(const Credentials &credentials, const ClientConfiguration &configuration) :
|
||||
@@ -86,7 +86,7 @@ EHPCClient::DeleteUsersOutcomeCallable EHPCClient::deleteUsersCallable(const Del
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
EHPCClient::DescribeClusterOutcome EHPCClient::describeCluster(const DescribeClusterRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -122,7 +122,7 @@ EHPCClient::DescribeClusterOutcomeCallable EHPCClient::describeClusterCallable(c
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
EHPCClient::ListUsersOutcome EHPCClient::listUsers(const ListUsersRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -158,7 +158,7 @@ EHPCClient::ListUsersOutcomeCallable EHPCClient::listUsersCallable(const ListUse
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
EHPCClient::UpgradeClientOutcome EHPCClient::upgradeClient(const UpgradeClientRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -194,7 +194,43 @@ EHPCClient::UpgradeClientOutcomeCallable EHPCClient::upgradeClientCallable(const
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EHPCClient::StopNodesOutcome EHPCClient::stopNodes(const StopNodesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return StopNodesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return StopNodesOutcome(StopNodesResult(outcome.result()));
|
||||
else
|
||||
return StopNodesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EHPCClient::stopNodesAsync(const StopNodesRequest& request, const StopNodesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, stopNodes(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EHPCClient::StopNodesOutcomeCallable EHPCClient::stopNodesCallable(const StopNodesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<StopNodesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->stopNodes(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EHPCClient::ListCurrentClientVersionOutcome EHPCClient::listCurrentClientVersion(const ListCurrentClientVersionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -230,7 +266,7 @@ EHPCClient::ListCurrentClientVersionOutcomeCallable EHPCClient::listCurrentClien
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
EHPCClient::DeleteClusterOutcome EHPCClient::deleteCluster(const DeleteClusterRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -266,7 +302,7 @@ EHPCClient::DeleteClusterOutcomeCallable EHPCClient::deleteClusterCallable(const
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
EHPCClient::ListImagesOutcome EHPCClient::listImages(const ListImagesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -302,7 +338,7 @@ EHPCClient::ListImagesOutcomeCallable EHPCClient::listImagesCallable(const ListI
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
EHPCClient::SetAutoScaleConfigOutcome EHPCClient::setAutoScaleConfig(const SetAutoScaleConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -338,7 +374,7 @@ EHPCClient::SetAutoScaleConfigOutcomeCallable EHPCClient::setAutoScaleConfigCall
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
EHPCClient::ListVolumesOutcome EHPCClient::listVolumes(const ListVolumesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -374,7 +410,7 @@ EHPCClient::ListVolumesOutcomeCallable EHPCClient::listVolumesCallable(const Lis
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
EHPCClient::AddNodesOutcome EHPCClient::addNodes(const AddNodesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -410,7 +446,7 @@ EHPCClient::AddNodesOutcomeCallable EHPCClient::addNodesCallable(const AddNodesR
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
EHPCClient::ListSoftwaresOutcome EHPCClient::listSoftwares(const ListSoftwaresRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -446,7 +482,7 @@ EHPCClient::ListSoftwaresOutcomeCallable EHPCClient::listSoftwaresCallable(const
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
EHPCClient::StopJobsOutcome EHPCClient::stopJobs(const StopJobsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -482,7 +518,43 @@ EHPCClient::StopJobsOutcomeCallable EHPCClient::stopJobsCallable(const StopJobsR
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EHPCClient::StartNodesOutcome EHPCClient::startNodes(const StartNodesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return StartNodesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return StartNodesOutcome(StartNodesResult(outcome.result()));
|
||||
else
|
||||
return StartNodesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EHPCClient::startNodesAsync(const StartNodesRequest& request, const StartNodesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, startNodes(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EHPCClient::StartNodesOutcomeCallable EHPCClient::startNodesCallable(const StartNodesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<StartNodesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->startNodes(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EHPCClient::GetAutoScaleConfigOutcome EHPCClient::getAutoScaleConfig(const GetAutoScaleConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -518,7 +590,7 @@ EHPCClient::GetAutoScaleConfigOutcomeCallable EHPCClient::getAutoScaleConfigCall
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
EHPCClient::ListNodesOutcome EHPCClient::listNodes(const ListNodesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -554,7 +626,7 @@ EHPCClient::ListNodesOutcomeCallable EHPCClient::listNodesCallable(const ListNod
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
EHPCClient::SetJobUserOutcome EHPCClient::setJobUser(const SetJobUserRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -590,7 +662,7 @@ EHPCClient::SetJobUserOutcomeCallable EHPCClient::setJobUserCallable(const SetJo
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
EHPCClient::ModifyUserGroupsOutcome EHPCClient::modifyUserGroups(const ModifyUserGroupsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -626,7 +698,43 @@ EHPCClient::ModifyUserGroupsOutcomeCallable EHPCClient::modifyUserGroupsCallable
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EHPCClient::StartClusterOutcome EHPCClient::startCluster(const StartClusterRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return StartClusterOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return StartClusterOutcome(StartClusterResult(outcome.result()));
|
||||
else
|
||||
return StartClusterOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EHPCClient::startClusterAsync(const StartClusterRequest& request, const StartClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, startCluster(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EHPCClient::StartClusterOutcomeCallable EHPCClient::startClusterCallable(const StartClusterRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<StartClusterOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->startCluster(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EHPCClient::ListClustersOutcome EHPCClient::listClusters(const ListClustersRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -662,7 +770,7 @@ EHPCClient::ListClustersOutcomeCallable EHPCClient::listClustersCallable(const L
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
EHPCClient::SubmitJobOutcome EHPCClient::submitJob(const SubmitJobRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -698,7 +806,7 @@ EHPCClient::SubmitJobOutcomeCallable EHPCClient::submitJobCallable(const SubmitJ
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
EHPCClient::ListCustomImagesOutcome EHPCClient::listCustomImages(const ListCustomImagesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -734,7 +842,7 @@ EHPCClient::ListCustomImagesOutcomeCallable EHPCClient::listCustomImagesCallable
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
EHPCClient::ListRegionsOutcome EHPCClient::listRegions(const ListRegionsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -770,7 +878,7 @@ EHPCClient::ListRegionsOutcomeCallable EHPCClient::listRegionsCallable(const Lis
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
EHPCClient::AddUsersOutcome EHPCClient::addUsers(const AddUsersRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -806,7 +914,7 @@ EHPCClient::AddUsersOutcomeCallable EHPCClient::addUsersCallable(const AddUsersR
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
EHPCClient::ListJobTemplatesOutcome EHPCClient::listJobTemplates(const ListJobTemplatesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -842,7 +950,7 @@ EHPCClient::ListJobTemplatesOutcomeCallable EHPCClient::listJobTemplatesCallable
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
EHPCClient::ModifyClusterAttributesOutcome EHPCClient::modifyClusterAttributes(const ModifyClusterAttributesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -878,7 +986,7 @@ EHPCClient::ModifyClusterAttributesOutcomeCallable EHPCClient::modifyClusterAttr
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
EHPCClient::DeleteJobTemplatesOutcome EHPCClient::deleteJobTemplates(const DeleteJobTemplatesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -914,7 +1022,43 @@ EHPCClient::DeleteJobTemplatesOutcomeCallable EHPCClient::deleteJobTemplatesCall
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EHPCClient::StopClusterOutcome EHPCClient::stopCluster(const StopClusterRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return StopClusterOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return StopClusterOutcome(StopClusterResult(outcome.result()));
|
||||
else
|
||||
return StopClusterOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EHPCClient::stopClusterAsync(const StopClusterRequest& request, const StopClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, stopCluster(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EHPCClient::StopClusterOutcomeCallable EHPCClient::stopClusterCallable(const StopClusterRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<StopClusterOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->stopCluster(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EHPCClient::ListNodesNoPagingOutcome EHPCClient::listNodesNoPaging(const ListNodesNoPagingRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -950,7 +1094,7 @@ EHPCClient::ListNodesNoPagingOutcomeCallable EHPCClient::listNodesNoPagingCallab
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
EHPCClient::CreateJobTemplateOutcome EHPCClient::createJobTemplate(const CreateJobTemplateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -986,7 +1130,7 @@ EHPCClient::CreateJobTemplateOutcomeCallable EHPCClient::createJobTemplateCallab
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
EHPCClient::RerunJobsOutcome EHPCClient::rerunJobs(const RerunJobsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1022,7 +1166,7 @@ EHPCClient::RerunJobsOutcomeCallable EHPCClient::rerunJobsCallable(const RerunJo
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
EHPCClient::ResetNodesOutcome EHPCClient::resetNodes(const ResetNodesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1058,7 +1202,7 @@ EHPCClient::ResetNodesOutcomeCallable EHPCClient::resetNodesCallable(const Reset
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
EHPCClient::EditJobTemplateOutcome EHPCClient::editJobTemplate(const EditJobTemplateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1094,7 +1238,7 @@ EHPCClient::EditJobTemplateOutcomeCallable EHPCClient::editJobTemplateCallable(c
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
EHPCClient::ListPreferredEcsTypesOutcome EHPCClient::listPreferredEcsTypes(const ListPreferredEcsTypesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1130,7 +1274,7 @@ EHPCClient::ListPreferredEcsTypesOutcomeCallable EHPCClient::listPreferredEcsTyp
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
EHPCClient::ListClusterLogsOutcome EHPCClient::listClusterLogs(const ListClusterLogsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1166,7 +1310,43 @@ EHPCClient::ListClusterLogsOutcomeCallable EHPCClient::listClusterLogsCallable(c
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EHPCClient::RecoverClusterOutcome EHPCClient::recoverCluster(const RecoverClusterRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return RecoverClusterOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return RecoverClusterOutcome(RecoverClusterResult(outcome.result()));
|
||||
else
|
||||
return RecoverClusterOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EHPCClient::recoverClusterAsync(const RecoverClusterRequest& request, const RecoverClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, recoverCluster(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EHPCClient::RecoverClusterOutcomeCallable EHPCClient::recoverClusterCallable(const RecoverClusterRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<RecoverClusterOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->recoverCluster(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EHPCClient::DeleteJobsOutcome EHPCClient::deleteJobs(const DeleteJobsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1202,7 +1382,7 @@ EHPCClient::DeleteJobsOutcomeCallable EHPCClient::deleteJobsCallable(const Delet
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
EHPCClient::DeleteNodesOutcome EHPCClient::deleteNodes(const DeleteNodesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1238,7 +1418,7 @@ EHPCClient::DeleteNodesOutcomeCallable EHPCClient::deleteNodesCallable(const Del
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
EHPCClient::ListJobsOutcome EHPCClient::listJobs(const ListJobsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1274,7 +1454,7 @@ EHPCClient::ListJobsOutcomeCallable EHPCClient::listJobsCallable(const ListJobsR
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
EHPCClient::CreateClusterOutcome EHPCClient::createCluster(const CreateClusterRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1310,7 +1490,7 @@ EHPCClient::CreateClusterOutcomeCallable EHPCClient::createClusterCallable(const
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
EHPCClient::ModifyUserPasswordsOutcome EHPCClient::modifyUserPasswords(const ModifyUserPasswordsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1346,4 +1526,4 @@ EHPCClient::ModifyUserPasswordsOutcomeCallable EHPCClient::modifyUserPasswordsCa
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -19,12 +19,34 @@
|
||||
using AlibabaCloud::EHPC::Model::AddNodesRequest;
|
||||
|
||||
AddNodesRequest::AddNodesRequest() :
|
||||
RpcServiceRequest("ehpc", "2017-07-14", "AddNodes")
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "AddNodes")
|
||||
{}
|
||||
|
||||
AddNodesRequest::~AddNodesRequest()
|
||||
{}
|
||||
|
||||
int AddNodesRequest::getAutoRenewPeriod()const
|
||||
{
|
||||
return autoRenewPeriod_;
|
||||
}
|
||||
|
||||
void AddNodesRequest::setAutoRenewPeriod(int autoRenewPeriod)
|
||||
{
|
||||
autoRenewPeriod_ = autoRenewPeriod;
|
||||
setParameter("AutoRenewPeriod", std::to_string(autoRenewPeriod));
|
||||
}
|
||||
|
||||
int AddNodesRequest::getPeriod()const
|
||||
{
|
||||
return period_;
|
||||
}
|
||||
|
||||
void AddNodesRequest::setPeriod(int period)
|
||||
{
|
||||
period_ = period;
|
||||
setParameter("Period", std::to_string(period));
|
||||
}
|
||||
|
||||
std::string AddNodesRequest::getImageId()const
|
||||
{
|
||||
return imageId_;
|
||||
@@ -69,17 +91,6 @@ void AddNodesRequest::setComputeSpotStrategy(const std::string& computeSpotStrat
|
||||
setParameter("ComputeSpotStrategy", computeSpotStrategy);
|
||||
}
|
||||
|
||||
std::string AddNodesRequest::getComputeSpotPriceLimit()const
|
||||
{
|
||||
return computeSpotPriceLimit_;
|
||||
}
|
||||
|
||||
void AddNodesRequest::setComputeSpotPriceLimit(const std::string& computeSpotPriceLimit)
|
||||
{
|
||||
computeSpotPriceLimit_ = computeSpotPriceLimit;
|
||||
setParameter("ComputeSpotPriceLimit", computeSpotPriceLimit);
|
||||
}
|
||||
|
||||
std::string AddNodesRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
@@ -102,3 +113,47 @@ void AddNodesRequest::setImageOwnerAlias(const std::string& imageOwnerAlias)
|
||||
setParameter("ImageOwnerAlias", imageOwnerAlias);
|
||||
}
|
||||
|
||||
std::string AddNodesRequest::getPeriodUnit()const
|
||||
{
|
||||
return periodUnit_;
|
||||
}
|
||||
|
||||
void AddNodesRequest::setPeriodUnit(const std::string& periodUnit)
|
||||
{
|
||||
periodUnit_ = periodUnit;
|
||||
setParameter("PeriodUnit", periodUnit);
|
||||
}
|
||||
|
||||
std::string AddNodesRequest::getAutoRenew()const
|
||||
{
|
||||
return autoRenew_;
|
||||
}
|
||||
|
||||
void AddNodesRequest::setAutoRenew(const std::string& autoRenew)
|
||||
{
|
||||
autoRenew_ = autoRenew;
|
||||
setParameter("AutoRenew", autoRenew);
|
||||
}
|
||||
|
||||
std::string AddNodesRequest::getEcsChargeType()const
|
||||
{
|
||||
return ecsChargeType_;
|
||||
}
|
||||
|
||||
void AddNodesRequest::setEcsChargeType(const std::string& ecsChargeType)
|
||||
{
|
||||
ecsChargeType_ = ecsChargeType;
|
||||
setParameter("EcsChargeType", ecsChargeType);
|
||||
}
|
||||
|
||||
std::string AddNodesRequest::getComputeSpotPriceLimit()const
|
||||
{
|
||||
return computeSpotPriceLimit_;
|
||||
}
|
||||
|
||||
void AddNodesRequest::setComputeSpotPriceLimit(const std::string& computeSpotPriceLimit)
|
||||
{
|
||||
computeSpotPriceLimit_ = computeSpotPriceLimit;
|
||||
setParameter("ComputeSpotPriceLimit", computeSpotPriceLimit);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,14 +40,14 @@ void AddNodesResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allInstanceIds = value["InstanceIds"]["InstanceId"];
|
||||
for (const auto &item : allInstanceIds)
|
||||
instanceIds_.push_back(item.asString());
|
||||
auto allInstanceIds = value["InstanceIds"]["InstanceId"];
|
||||
for (const auto &item : allInstanceIds)
|
||||
instanceIds_.push_back(item.asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> AddNodesResult::getInstanceIds()const
|
||||
{
|
||||
return instanceIds_;
|
||||
}
|
||||
|
||||
std::vector<std::string> AddNodesResult::getInstanceIds()const
|
||||
{
|
||||
return instanceIds_;
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::EHPC::Model::AddUsersRequest;
|
||||
|
||||
AddUsersRequest::AddUsersRequest() :
|
||||
RpcServiceRequest("ehpc", "2017-07-14", "AddUsers")
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "AddUsers")
|
||||
{}
|
||||
|
||||
AddUsersRequest::~AddUsersRequest()
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::EHPC::Model::CreateClusterRequest;
|
||||
|
||||
CreateClusterRequest::CreateClusterRequest() :
|
||||
RpcServiceRequest("ehpc", "2017-07-14", "CreateCluster")
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "CreateCluster")
|
||||
{}
|
||||
|
||||
CreateClusterRequest::~CreateClusterRequest()
|
||||
@@ -168,6 +168,17 @@ void CreateClusterRequest::setVolumeType(const std::string& volumeType)
|
||||
setParameter("VolumeType", volumeType);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getDeployMode()const
|
||||
{
|
||||
return deployMode_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setDeployMode(const std::string& deployMode)
|
||||
{
|
||||
deployMode_ = deployMode;
|
||||
setParameter("DeployMode", deployMode);
|
||||
}
|
||||
|
||||
int CreateClusterRequest::getEcsOrderManagerCount()const
|
||||
{
|
||||
return ecsOrderManagerCount_;
|
||||
@@ -212,6 +223,28 @@ void CreateClusterRequest::setComputeSpotPriceLimit(const std::string& computeSp
|
||||
setParameter("ComputeSpotPriceLimit", computeSpotPriceLimit);
|
||||
}
|
||||
|
||||
int CreateClusterRequest::getAutoRenewPeriod()const
|
||||
{
|
||||
return autoRenewPeriod_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setAutoRenewPeriod(int autoRenewPeriod)
|
||||
{
|
||||
autoRenewPeriod_ = autoRenewPeriod;
|
||||
setParameter("AutoRenewPeriod", std::to_string(autoRenewPeriod));
|
||||
}
|
||||
|
||||
int CreateClusterRequest::getPeriod()const
|
||||
{
|
||||
return period_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setPeriod(int period)
|
||||
{
|
||||
period_ = period;
|
||||
setParameter("Period", std::to_string(period));
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getVolumeProtocol()const
|
||||
{
|
||||
return volumeProtocol_;
|
||||
@@ -267,6 +300,23 @@ void CreateClusterRequest::setComputeSpotStrategy(const std::string& computeSpot
|
||||
setParameter("ComputeSpotStrategy", computeSpotStrategy);
|
||||
}
|
||||
|
||||
std::vector<CreateClusterRequest::PostInstallScript> CreateClusterRequest::getPostInstallScript()const
|
||||
{
|
||||
return postInstallScript_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setPostInstallScript(const std::vector<PostInstallScript>& postInstallScript)
|
||||
{
|
||||
postInstallScript_ = postInstallScript;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= postInstallScript.size(); i++) {
|
||||
auto obj = postInstallScript.at(i);
|
||||
std::string str ="PostInstallScript."+ std::to_string(i);
|
||||
setParameter(str + ".Url", obj.url);
|
||||
setParameter(str + ".Args", obj.args);
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getVSwitchId()const
|
||||
{
|
||||
return vSwitchId_;
|
||||
@@ -278,6 +328,17 @@ void CreateClusterRequest::setVSwitchId(const std::string& vSwitchId)
|
||||
setParameter("VSwitchId", vSwitchId);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getPeriodUnit()const
|
||||
{
|
||||
return periodUnit_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setPeriodUnit(const std::string& periodUnit)
|
||||
{
|
||||
periodUnit_ = periodUnit;
|
||||
setParameter("PeriodUnit", periodUnit);
|
||||
}
|
||||
|
||||
std::vector<CreateClusterRequest::Application> CreateClusterRequest::getApplication()const
|
||||
{
|
||||
return application_;
|
||||
@@ -294,6 +355,17 @@ void CreateClusterRequest::setApplication(const std::vector<Application>& applic
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getAutoRenew()const
|
||||
{
|
||||
return autoRenew_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setAutoRenew(const std::string& autoRenew)
|
||||
{
|
||||
autoRenew_ = autoRenew;
|
||||
setParameter("AutoRenew", autoRenew);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getEcsChargeType()const
|
||||
{
|
||||
return ecsChargeType_;
|
||||
@@ -305,6 +377,17 @@ void CreateClusterRequest::setEcsChargeType(const std::string& ecsChargeType)
|
||||
setParameter("EcsChargeType", ecsChargeType);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getVpcId()const
|
||||
{
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setVpcId(const std::string& vpcId)
|
||||
{
|
||||
vpcId_ = vpcId;
|
||||
setParameter("VpcId", vpcId);
|
||||
}
|
||||
|
||||
bool CreateClusterRequest::getHaEnable()const
|
||||
{
|
||||
return haEnable_;
|
||||
|
||||
@@ -40,13 +40,13 @@ void CreateClusterResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ClusterId"].isNull())
|
||||
clusterId_ = value["ClusterId"].asString();
|
||||
if(!value["ClusterId"].isNull())
|
||||
clusterId_ = value["ClusterId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateClusterResult::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
std::string CreateClusterResult::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::EHPC::Model::CreateJobTemplateRequest;
|
||||
|
||||
CreateJobTemplateRequest::CreateJobTemplateRequest() :
|
||||
RpcServiceRequest("ehpc", "2017-07-14", "CreateJobTemplate")
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "CreateJobTemplate")
|
||||
{}
|
||||
|
||||
CreateJobTemplateRequest::~CreateJobTemplateRequest()
|
||||
|
||||
@@ -40,13 +40,13 @@ void CreateJobTemplateResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TemplateId"].isNull())
|
||||
templateId_ = value["TemplateId"].asString();
|
||||
if(!value["TemplateId"].isNull())
|
||||
templateId_ = value["TemplateId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateJobTemplateResult::getTemplateId()const
|
||||
{
|
||||
return templateId_;
|
||||
}
|
||||
|
||||
std::string CreateJobTemplateResult::getTemplateId()const
|
||||
{
|
||||
return templateId_;
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::EHPC::Model::DeleteClusterRequest;
|
||||
|
||||
DeleteClusterRequest::DeleteClusterRequest() :
|
||||
RpcServiceRequest("ehpc", "2017-07-14", "DeleteCluster")
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "DeleteCluster")
|
||||
{}
|
||||
|
||||
DeleteClusterRequest::~DeleteClusterRequest()
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::EHPC::Model::DeleteJobTemplatesRequest;
|
||||
|
||||
DeleteJobTemplatesRequest::DeleteJobTemplatesRequest() :
|
||||
RpcServiceRequest("ehpc", "2017-07-14", "DeleteJobTemplates")
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "DeleteJobTemplates")
|
||||
{}
|
||||
|
||||
DeleteJobTemplatesRequest::~DeleteJobTemplatesRequest()
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::EHPC::Model::DeleteJobsRequest;
|
||||
|
||||
DeleteJobsRequest::DeleteJobsRequest() :
|
||||
RpcServiceRequest("ehpc", "2017-07-14", "DeleteJobs")
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "DeleteJobs")
|
||||
{}
|
||||
|
||||
DeleteJobsRequest::~DeleteJobsRequest()
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::EHPC::Model::DeleteNodesRequest;
|
||||
|
||||
DeleteNodesRequest::DeleteNodesRequest() :
|
||||
RpcServiceRequest("ehpc", "2017-07-14", "DeleteNodes")
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "DeleteNodes")
|
||||
{}
|
||||
|
||||
DeleteNodesRequest::~DeleteNodesRequest()
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::EHPC::Model::DeleteUsersRequest;
|
||||
|
||||
DeleteUsersRequest::DeleteUsersRequest() :
|
||||
RpcServiceRequest("ehpc", "2017-07-14", "DeleteUsers")
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "DeleteUsers")
|
||||
{}
|
||||
|
||||
DeleteUsersRequest::~DeleteUsersRequest()
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::EHPC::Model::DescribeClusterRequest;
|
||||
|
||||
DescribeClusterRequest::DescribeClusterRequest() :
|
||||
RpcServiceRequest("ehpc", "2017-07-14", "DescribeCluster")
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "DescribeCluster")
|
||||
{}
|
||||
|
||||
DescribeClusterRequest::~DescribeClusterRequest()
|
||||
|
||||
@@ -40,111 +40,88 @@ void DescribeClusterResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allClusterInfo = value["ClusterInfo"];
|
||||
for (auto value : allClusterInfo)
|
||||
{
|
||||
ClusterInfo clusterInfoObject;
|
||||
if(!value["Id"].isNull())
|
||||
clusterInfoObject.id = value["Id"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
clusterInfoObject.regionId = value["RegionId"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
clusterInfoObject.name = value["Name"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
clusterInfoObject.description = value["Description"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
clusterInfoObject.status = value["Status"].asString();
|
||||
if(!value["OsTag"].isNull())
|
||||
clusterInfoObject.osTag = value["OsTag"].asString();
|
||||
if(!value["AccountType"].isNull())
|
||||
clusterInfoObject.accountType = value["AccountType"].asString();
|
||||
if(!value["SchedulerType"].isNull())
|
||||
clusterInfoObject.schedulerType = value["SchedulerType"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
clusterInfoObject.createTime = value["CreateTime"].asString();
|
||||
if(!value["SecurityGroupId"].isNull())
|
||||
clusterInfoObject.securityGroupId = value["SecurityGroupId"].asString();
|
||||
if(!value["VSwitchId"].isNull())
|
||||
clusterInfoObject.vSwitchId = value["VSwitchId"].asString();
|
||||
if(!value["VolumeType"].isNull())
|
||||
clusterInfoObject.volumeType = value["VolumeType"].asString();
|
||||
if(!value["VolumeId"].isNull())
|
||||
clusterInfoObject.volumeId = value["VolumeId"].asString();
|
||||
if(!value["VolumeProtocol"].isNull())
|
||||
clusterInfoObject.volumeProtocol = value["VolumeProtocol"].asString();
|
||||
if(!value["VolumeMountpoint"].isNull())
|
||||
clusterInfoObject.volumeMountpoint = value["VolumeMountpoint"].asString();
|
||||
if(!value["RemoteDirectory"].isNull())
|
||||
clusterInfoObject.remoteDirectory = value["RemoteDirectory"].asString();
|
||||
if(!value["HaEnable"].isNull())
|
||||
clusterInfoObject.haEnable = value["HaEnable"].asString() == "true";
|
||||
if(!value["EcsChargeType"].isNull())
|
||||
clusterInfoObject.ecsChargeType = value["EcsChargeType"].asString();
|
||||
if(!value["KeyPairName"].isNull())
|
||||
clusterInfoObject.keyPairName = value["KeyPairName"].asString();
|
||||
if(!value["SccClusterId"].isNull())
|
||||
clusterInfoObject.sccClusterId = value["SccClusterId"].asString();
|
||||
if(!value["ClientVersion"].isNull())
|
||||
clusterInfoObject.clientVersion = value["ClientVersion"].asString();
|
||||
if(!value["ImageOwnerAlias"].isNull())
|
||||
clusterInfoObject.imageOwnerAlias = value["ImageOwnerAlias"].asString();
|
||||
if(!value["ImageId"].isNull())
|
||||
clusterInfoObject.imageId = value["ImageId"].asString();
|
||||
auto allApplicationInfo = value["ApplicationInfo"]["ApplicationInfoItem"];
|
||||
for (auto value : allApplicationInfo)
|
||||
{
|
||||
ClusterInfo::ApplicationInfoItem applicationInfoItemObject;
|
||||
if(!value["Tag"].isNull())
|
||||
applicationInfoItemObject.tag = value["Tag"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
applicationInfoItemObject.name = value["Name"].asString();
|
||||
if(!value["Version"].isNull())
|
||||
applicationInfoItemObject.version = value["Version"].asString();
|
||||
clusterInfoObject.applicationInfo.push_back(applicationInfoItemObject);
|
||||
}
|
||||
auto allEcsInfo = value["EcsInfo"];
|
||||
for (auto value : allEcsInfo)
|
||||
{
|
||||
ClusterInfo::EcsInfo ecsInfoObject;
|
||||
auto allManager = value["Manager"];
|
||||
for (auto value : allManager)
|
||||
{
|
||||
ClusterInfo::EcsInfo::Manager managerObject;
|
||||
if(!value["Count"].isNull())
|
||||
managerObject.count = std::stoi(value["Count"].asString());
|
||||
if(!value["InstanceType"].isNull())
|
||||
managerObject.instanceType = value["InstanceType"].asString();
|
||||
ecsInfoObject.manager.push_back(managerObject);
|
||||
}
|
||||
auto allCompute = value["Compute"];
|
||||
for (auto value : allCompute)
|
||||
{
|
||||
ClusterInfo::EcsInfo::Compute computeObject;
|
||||
if(!value["Count"].isNull())
|
||||
computeObject.count = std::stoi(value["Count"].asString());
|
||||
if(!value["InstanceType"].isNull())
|
||||
computeObject.instanceType = value["InstanceType"].asString();
|
||||
ecsInfoObject.compute.push_back(computeObject);
|
||||
}
|
||||
auto allLogin = value["Login"];
|
||||
for (auto value : allLogin)
|
||||
{
|
||||
ClusterInfo::EcsInfo::Login loginObject;
|
||||
if(!value["Count"].isNull())
|
||||
loginObject.count = std::stoi(value["Count"].asString());
|
||||
if(!value["InstanceType"].isNull())
|
||||
loginObject.instanceType = value["InstanceType"].asString();
|
||||
ecsInfoObject.login.push_back(loginObject);
|
||||
}
|
||||
clusterInfoObject.ecsInfo.push_back(ecsInfoObject);
|
||||
}
|
||||
clusterInfo_.push_back(clusterInfoObject);
|
||||
}
|
||||
auto clusterInfoNode = value["ClusterInfo"];
|
||||
if(!clusterInfoNode["Id"].isNull())
|
||||
clusterInfo_.id = clusterInfoNode["Id"].asString();
|
||||
if(!clusterInfoNode["RegionId"].isNull())
|
||||
clusterInfo_.regionId = clusterInfoNode["RegionId"].asString();
|
||||
if(!clusterInfoNode["Name"].isNull())
|
||||
clusterInfo_.name = clusterInfoNode["Name"].asString();
|
||||
if(!clusterInfoNode["Description"].isNull())
|
||||
clusterInfo_.description = clusterInfoNode["Description"].asString();
|
||||
if(!clusterInfoNode["Status"].isNull())
|
||||
clusterInfo_.status = clusterInfoNode["Status"].asString();
|
||||
if(!clusterInfoNode["OsTag"].isNull())
|
||||
clusterInfo_.osTag = clusterInfoNode["OsTag"].asString();
|
||||
if(!clusterInfoNode["AccountType"].isNull())
|
||||
clusterInfo_.accountType = clusterInfoNode["AccountType"].asString();
|
||||
if(!clusterInfoNode["SchedulerType"].isNull())
|
||||
clusterInfo_.schedulerType = clusterInfoNode["SchedulerType"].asString();
|
||||
if(!clusterInfoNode["CreateTime"].isNull())
|
||||
clusterInfo_.createTime = clusterInfoNode["CreateTime"].asString();
|
||||
if(!clusterInfoNode["SecurityGroupId"].isNull())
|
||||
clusterInfo_.securityGroupId = clusterInfoNode["SecurityGroupId"].asString();
|
||||
if(!clusterInfoNode["VSwitchId"].isNull())
|
||||
clusterInfo_.vSwitchId = clusterInfoNode["VSwitchId"].asString();
|
||||
if(!clusterInfoNode["VolumeType"].isNull())
|
||||
clusterInfo_.volumeType = clusterInfoNode["VolumeType"].asString();
|
||||
if(!clusterInfoNode["VolumeId"].isNull())
|
||||
clusterInfo_.volumeId = clusterInfoNode["VolumeId"].asString();
|
||||
if(!clusterInfoNode["VolumeProtocol"].isNull())
|
||||
clusterInfo_.volumeProtocol = clusterInfoNode["VolumeProtocol"].asString();
|
||||
if(!clusterInfoNode["VolumeMountpoint"].isNull())
|
||||
clusterInfo_.volumeMountpoint = clusterInfoNode["VolumeMountpoint"].asString();
|
||||
if(!clusterInfoNode["RemoteDirectory"].isNull())
|
||||
clusterInfo_.remoteDirectory = clusterInfoNode["RemoteDirectory"].asString();
|
||||
if(!clusterInfoNode["DeployMode"].isNull())
|
||||
clusterInfo_.deployMode = clusterInfoNode["DeployMode"].asString();
|
||||
if(!clusterInfoNode["HaEnable"].isNull())
|
||||
clusterInfo_.haEnable = clusterInfoNode["HaEnable"].asString() == "true";
|
||||
if(!clusterInfoNode["EcsChargeType"].isNull())
|
||||
clusterInfo_.ecsChargeType = clusterInfoNode["EcsChargeType"].asString();
|
||||
if(!clusterInfoNode["KeyPairName"].isNull())
|
||||
clusterInfo_.keyPairName = clusterInfoNode["KeyPairName"].asString();
|
||||
if(!clusterInfoNode["SccClusterId"].isNull())
|
||||
clusterInfo_.sccClusterId = clusterInfoNode["SccClusterId"].asString();
|
||||
if(!clusterInfoNode["ClientVersion"].isNull())
|
||||
clusterInfo_.clientVersion = clusterInfoNode["ClientVersion"].asString();
|
||||
if(!clusterInfoNode["ImageOwnerAlias"].isNull())
|
||||
clusterInfo_.imageOwnerAlias = clusterInfoNode["ImageOwnerAlias"].asString();
|
||||
if(!clusterInfoNode["ImageId"].isNull())
|
||||
clusterInfo_.imageId = clusterInfoNode["ImageId"].asString();
|
||||
auto allApplications = value["Applications"]["ApplicationInfo"];
|
||||
for (auto value : allApplications)
|
||||
{
|
||||
ClusterInfo::ApplicationInfo applicationInfoObject;
|
||||
if(!value["Tag"].isNull())
|
||||
applicationInfoObject.tag = value["Tag"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
applicationInfoObject.name = value["Name"].asString();
|
||||
if(!value["Version"].isNull())
|
||||
applicationInfoObject.version = value["Version"].asString();
|
||||
clusterInfo_.applications.push_back(applicationInfoObject);
|
||||
}
|
||||
auto ecsInfoNode = clusterInfoNode["EcsInfo"];
|
||||
auto managerNode = ecsInfoNode["Manager"];
|
||||
if(!managerNode["Count"].isNull())
|
||||
clusterInfo_.ecsInfo.manager.count = std::stoi(managerNode["Count"].asString());
|
||||
if(!managerNode["InstanceType"].isNull())
|
||||
clusterInfo_.ecsInfo.manager.instanceType = managerNode["InstanceType"].asString();
|
||||
auto computeNode = ecsInfoNode["Compute"];
|
||||
if(!computeNode["Count"].isNull())
|
||||
clusterInfo_.ecsInfo.compute.count = std::stoi(computeNode["Count"].asString());
|
||||
if(!computeNode["InstanceType"].isNull())
|
||||
clusterInfo_.ecsInfo.compute.instanceType = computeNode["InstanceType"].asString();
|
||||
auto loginNode = ecsInfoNode["Login"];
|
||||
if(!loginNode["Count"].isNull())
|
||||
clusterInfo_.ecsInfo.login.count = std::stoi(loginNode["Count"].asString());
|
||||
if(!loginNode["InstanceType"].isNull())
|
||||
clusterInfo_.ecsInfo.login.instanceType = loginNode["InstanceType"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeClusterResult::ClusterInfo> DescribeClusterResult::getClusterInfo()const
|
||||
{
|
||||
return clusterInfo_;
|
||||
}
|
||||
|
||||
DescribeClusterResult::ClusterInfo DescribeClusterResult::getClusterInfo()const
|
||||
{
|
||||
return clusterInfo_;
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::EHPC::Model::EditJobTemplateRequest;
|
||||
|
||||
EditJobTemplateRequest::EditJobTemplateRequest() :
|
||||
RpcServiceRequest("ehpc", "2017-07-14", "EditJobTemplate")
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "EditJobTemplate")
|
||||
{}
|
||||
|
||||
EditJobTemplateRequest::~EditJobTemplateRequest()
|
||||
@@ -58,6 +58,17 @@ void EditJobTemplateRequest::setRunasUser(const std::string& runasUser)
|
||||
setParameter("RunasUser", runasUser);
|
||||
}
|
||||
|
||||
bool EditJobTemplateRequest::getReRunable()const
|
||||
{
|
||||
return reRunable_;
|
||||
}
|
||||
|
||||
void EditJobTemplateRequest::setReRunable(bool reRunable)
|
||||
{
|
||||
reRunable_ = reRunable;
|
||||
setParameter("ReRunable", std::to_string(reRunable));
|
||||
}
|
||||
|
||||
std::string EditJobTemplateRequest::getTemplateId()const
|
||||
{
|
||||
return templateId_;
|
||||
@@ -124,17 +135,6 @@ void EditJobTemplateRequest::setPackagePath(const std::string& packagePath)
|
||||
setParameter("PackagePath", packagePath);
|
||||
}
|
||||
|
||||
bool EditJobTemplateRequest::getReRunnable()const
|
||||
{
|
||||
return reRunnable_;
|
||||
}
|
||||
|
||||
void EditJobTemplateRequest::setReRunnable(bool reRunnable)
|
||||
{
|
||||
reRunnable_ = reRunnable;
|
||||
setParameter("ReRunnable", std::to_string(reRunnable));
|
||||
}
|
||||
|
||||
std::string EditJobTemplateRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
|
||||
@@ -40,13 +40,13 @@ void EditJobTemplateResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TemplateId"].isNull())
|
||||
templateId_ = value["TemplateId"].asString();
|
||||
if(!value["TemplateId"].isNull())
|
||||
templateId_ = value["TemplateId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string EditJobTemplateResult::getTemplateId()const
|
||||
{
|
||||
return templateId_;
|
||||
}
|
||||
|
||||
std::string EditJobTemplateResult::getTemplateId()const
|
||||
{
|
||||
return templateId_;
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::EHPC::Model::GetAutoScaleConfigRequest;
|
||||
|
||||
GetAutoScaleConfigRequest::GetAutoScaleConfigRequest() :
|
||||
RpcServiceRequest("ehpc", "2017-07-14", "GetAutoScaleConfig")
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "GetAutoScaleConfig")
|
||||
{}
|
||||
|
||||
GetAutoScaleConfigRequest::~GetAutoScaleConfigRequest()
|
||||
|
||||
@@ -40,97 +40,97 @@ void GetAutoScaleConfigResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Uid"].isNull())
|
||||
uid_ = value["Uid"].asString();
|
||||
if(!value["ClusterId"].isNull())
|
||||
clusterId_ = value["ClusterId"].asString();
|
||||
if(!value["ClusterType"].isNull())
|
||||
clusterType_ = value["ClusterType"].asString();
|
||||
if(!value["EnableAutoGrow"].isNull())
|
||||
enableAutoGrow_ = value["EnableAutoGrow"].asString() == "true";
|
||||
if(!value["EnableAutoShrink"].isNull())
|
||||
enableAutoShrink_ = value["EnableAutoShrink"].asString() == "true";
|
||||
if(!value["GrowIntervalInMinutes"].isNull())
|
||||
growIntervalInMinutes_ = std::stoi(value["GrowIntervalInMinutes"].asString());
|
||||
if(!value["ShrinkIntervalInMinutes"].isNull())
|
||||
shrinkIntervalInMinutes_ = std::stoi(value["ShrinkIntervalInMinutes"].asString());
|
||||
if(!value["ShrinkIdleTimes"].isNull())
|
||||
shrinkIdleTimes_ = std::stoi(value["ShrinkIdleTimes"].asString());
|
||||
if(!value["GrowTimeoutInMinutes"].isNull())
|
||||
growTimeoutInMinutes_ = std::stoi(value["GrowTimeoutInMinutes"].asString());
|
||||
if(!value["ExtraNodesGrowRatio"].isNull())
|
||||
extraNodesGrowRatio_ = std::stoi(value["ExtraNodesGrowRatio"].asString());
|
||||
if(!value["GrowRatio"].isNull())
|
||||
growRatio_ = std::stoi(value["GrowRatio"].asString());
|
||||
if(!value["MaxNodesInCluster"].isNull())
|
||||
maxNodesInCluster_ = std::stoi(value["MaxNodesInCluster"].asString());
|
||||
if(!value["ExcludeNodes"].isNull())
|
||||
excludeNodes_ = value["ExcludeNodes"].asString();
|
||||
if(!value["Uid"].isNull())
|
||||
uid_ = value["Uid"].asString();
|
||||
if(!value["ClusterId"].isNull())
|
||||
clusterId_ = value["ClusterId"].asString();
|
||||
if(!value["ClusterType"].isNull())
|
||||
clusterType_ = value["ClusterType"].asString();
|
||||
if(!value["EnableAutoGrow"].isNull())
|
||||
enableAutoGrow_ = value["EnableAutoGrow"].asString() == "true";
|
||||
if(!value["EnableAutoShrink"].isNull())
|
||||
enableAutoShrink_ = value["EnableAutoShrink"].asString() == "true";
|
||||
if(!value["GrowIntervalInMinutes"].isNull())
|
||||
growIntervalInMinutes_ = std::stoi(value["GrowIntervalInMinutes"].asString());
|
||||
if(!value["ShrinkIntervalInMinutes"].isNull())
|
||||
shrinkIntervalInMinutes_ = std::stoi(value["ShrinkIntervalInMinutes"].asString());
|
||||
if(!value["ShrinkIdleTimes"].isNull())
|
||||
shrinkIdleTimes_ = std::stoi(value["ShrinkIdleTimes"].asString());
|
||||
if(!value["GrowTimeoutInMinutes"].isNull())
|
||||
growTimeoutInMinutes_ = std::stoi(value["GrowTimeoutInMinutes"].asString());
|
||||
if(!value["ExtraNodesGrowRatio"].isNull())
|
||||
extraNodesGrowRatio_ = std::stoi(value["ExtraNodesGrowRatio"].asString());
|
||||
if(!value["GrowRatio"].isNull())
|
||||
growRatio_ = std::stoi(value["GrowRatio"].asString());
|
||||
if(!value["MaxNodesInCluster"].isNull())
|
||||
maxNodesInCluster_ = std::stoi(value["MaxNodesInCluster"].asString());
|
||||
if(!value["ExcludeNodes"].isNull())
|
||||
excludeNodes_ = value["ExcludeNodes"].asString();
|
||||
|
||||
}
|
||||
|
||||
int GetAutoScaleConfigResult::getExtraNodesGrowRatio()const
|
||||
{
|
||||
return extraNodesGrowRatio_;
|
||||
}
|
||||
|
||||
bool GetAutoScaleConfigResult::getEnableAutoGrow()const
|
||||
{
|
||||
return enableAutoGrow_;
|
||||
}
|
||||
|
||||
std::string GetAutoScaleConfigResult::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
int GetAutoScaleConfigResult::getShrinkIdleTimes()const
|
||||
{
|
||||
return shrinkIdleTimes_;
|
||||
}
|
||||
|
||||
int GetAutoScaleConfigResult::getMaxNodesInCluster()const
|
||||
{
|
||||
return maxNodesInCluster_;
|
||||
}
|
||||
|
||||
std::string GetAutoScaleConfigResult::getClusterType()const
|
||||
{
|
||||
return clusterType_;
|
||||
}
|
||||
|
||||
bool GetAutoScaleConfigResult::getEnableAutoShrink()const
|
||||
{
|
||||
return enableAutoShrink_;
|
||||
}
|
||||
|
||||
int GetAutoScaleConfigResult::getGrowRatio()const
|
||||
{
|
||||
return growRatio_;
|
||||
}
|
||||
|
||||
int GetAutoScaleConfigResult::getGrowIntervalInMinutes()const
|
||||
{
|
||||
return growIntervalInMinutes_;
|
||||
}
|
||||
|
||||
std::string GetAutoScaleConfigResult::getUid()const
|
||||
{
|
||||
return uid_;
|
||||
}
|
||||
|
||||
int GetAutoScaleConfigResult::getGrowTimeoutInMinutes()const
|
||||
{
|
||||
return growTimeoutInMinutes_;
|
||||
}
|
||||
|
||||
int GetAutoScaleConfigResult::getShrinkIntervalInMinutes()const
|
||||
{
|
||||
return shrinkIntervalInMinutes_;
|
||||
}
|
||||
|
||||
std::string GetAutoScaleConfigResult::getExcludeNodes()const
|
||||
{
|
||||
return excludeNodes_;
|
||||
}
|
||||
|
||||
int GetAutoScaleConfigResult::getExtraNodesGrowRatio()const
|
||||
{
|
||||
return extraNodesGrowRatio_;
|
||||
}
|
||||
|
||||
bool GetAutoScaleConfigResult::getEnableAutoGrow()const
|
||||
{
|
||||
return enableAutoGrow_;
|
||||
}
|
||||
|
||||
std::string GetAutoScaleConfigResult::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
int GetAutoScaleConfigResult::getShrinkIdleTimes()const
|
||||
{
|
||||
return shrinkIdleTimes_;
|
||||
}
|
||||
|
||||
int GetAutoScaleConfigResult::getMaxNodesInCluster()const
|
||||
{
|
||||
return maxNodesInCluster_;
|
||||
}
|
||||
|
||||
std::string GetAutoScaleConfigResult::getClusterType()const
|
||||
{
|
||||
return clusterType_;
|
||||
}
|
||||
|
||||
bool GetAutoScaleConfigResult::getEnableAutoShrink()const
|
||||
{
|
||||
return enableAutoShrink_;
|
||||
}
|
||||
|
||||
int GetAutoScaleConfigResult::getGrowRatio()const
|
||||
{
|
||||
return growRatio_;
|
||||
}
|
||||
|
||||
int GetAutoScaleConfigResult::getGrowIntervalInMinutes()const
|
||||
{
|
||||
return growIntervalInMinutes_;
|
||||
}
|
||||
|
||||
std::string GetAutoScaleConfigResult::getUid()const
|
||||
{
|
||||
return uid_;
|
||||
}
|
||||
|
||||
int GetAutoScaleConfigResult::getGrowTimeoutInMinutes()const
|
||||
{
|
||||
return growTimeoutInMinutes_;
|
||||
}
|
||||
|
||||
int GetAutoScaleConfigResult::getShrinkIntervalInMinutes()const
|
||||
{
|
||||
return shrinkIntervalInMinutes_;
|
||||
}
|
||||
|
||||
std::string GetAutoScaleConfigResult::getExcludeNodes()const
|
||||
{
|
||||
return excludeNodes_;
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::EHPC::Model::ListClusterLogsRequest;
|
||||
|
||||
ListClusterLogsRequest::ListClusterLogsRequest() :
|
||||
RpcServiceRequest("ehpc", "2017-07-14", "ListClusterLogs")
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "ListClusterLogs")
|
||||
{}
|
||||
|
||||
ListClusterLogsRequest::~ListClusterLogsRequest()
|
||||
|
||||
@@ -40,53 +40,53 @@ void ListClusterLogsResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allLogs = value["Logs"]["LogInfo"];
|
||||
for (auto value : allLogs)
|
||||
{
|
||||
LogInfo logsObject;
|
||||
if(!value["Operation"].isNull())
|
||||
logsObject.operation = value["Operation"].asString();
|
||||
if(!value["Level"].isNull())
|
||||
logsObject.level = value["Level"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
logsObject.message = value["Message"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
logsObject.createTime = value["CreateTime"].asString();
|
||||
logs_.push_back(logsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["ClusterId"].isNull())
|
||||
clusterId_ = value["ClusterId"].asString();
|
||||
auto allLogs = value["Logs"]["LogInfo"];
|
||||
for (auto value : allLogs)
|
||||
{
|
||||
LogInfo logsObject;
|
||||
if(!value["Operation"].isNull())
|
||||
logsObject.operation = value["Operation"].asString();
|
||||
if(!value["Level"].isNull())
|
||||
logsObject.level = value["Level"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
logsObject.message = value["Message"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
logsObject.createTime = value["CreateTime"].asString();
|
||||
logs_.push_back(logsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["ClusterId"].isNull())
|
||||
clusterId_ = value["ClusterId"].asString();
|
||||
|
||||
}
|
||||
|
||||
int ListClusterLogsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int ListClusterLogsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListClusterLogsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::string ListClusterLogsResult::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
std::vector<ListClusterLogsResult::LogInfo> ListClusterLogsResult::getLogs()const
|
||||
{
|
||||
return logs_;
|
||||
}
|
||||
|
||||
int ListClusterLogsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int ListClusterLogsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListClusterLogsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::string ListClusterLogsResult::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
std::vector<ListClusterLogsResult::LogInfo> ListClusterLogsResult::getLogs()const
|
||||
{
|
||||
return logs_;
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::EHPC::Model::ListClustersRequest;
|
||||
|
||||
ListClustersRequest::ListClustersRequest() :
|
||||
RpcServiceRequest("ehpc", "2017-07-14", "ListClusters")
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "ListClusters")
|
||||
{}
|
||||
|
||||
ListClustersRequest::~ListClustersRequest()
|
||||
|
||||
@@ -40,116 +40,106 @@ void ListClustersResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allClusters = value["Clusters"]["ClusterInfoSimple"];
|
||||
for (auto value : allClusters)
|
||||
{
|
||||
ClusterInfoSimple clustersObject;
|
||||
if(!value["Id"].isNull())
|
||||
clustersObject.id = value["Id"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
clustersObject.regionId = value["RegionId"].asString();
|
||||
if(!value["ZoneId"].isNull())
|
||||
clustersObject.zoneId = value["ZoneId"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
clustersObject.name = value["Name"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
clustersObject.description = value["Description"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
clustersObject.status = value["Status"].asString();
|
||||
if(!value["OsTag"].isNull())
|
||||
clustersObject.osTag = value["OsTag"].asString();
|
||||
if(!value["AccountType"].isNull())
|
||||
clustersObject.accountType = value["AccountType"].asString();
|
||||
if(!value["SchedulerType"].isNull())
|
||||
clustersObject.schedulerType = value["SchedulerType"].asString();
|
||||
if(!value["Count"].isNull())
|
||||
clustersObject.count = std::stoi(value["Count"].asString());
|
||||
if(!value["InstanceType"].isNull())
|
||||
clustersObject.instanceType = value["InstanceType"].asString();
|
||||
if(!value["LoginNodes"].isNull())
|
||||
clustersObject.loginNodes = value["LoginNodes"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
clustersObject.createTime = value["CreateTime"].asString();
|
||||
if(!value["ImageOwnerAlias"].isNull())
|
||||
clustersObject.imageOwnerAlias = value["ImageOwnerAlias"].asString();
|
||||
if(!value["ImageId"].isNull())
|
||||
clustersObject.imageId = value["ImageId"].asString();
|
||||
auto allManagers = value["Managers"];
|
||||
for (auto value : allManagers)
|
||||
{
|
||||
ClusterInfoSimple::Managers managersObject;
|
||||
if(!value["Total"].isNull())
|
||||
managersObject.total = std::stoi(value["Total"].asString());
|
||||
if(!value["NormalCount"].isNull())
|
||||
managersObject.normalCount = std::stoi(value["NormalCount"].asString());
|
||||
if(!value["ExceptionCount"].isNull())
|
||||
managersObject.exceptionCount = std::stoi(value["ExceptionCount"].asString());
|
||||
clustersObject.managers.push_back(managersObject);
|
||||
}
|
||||
auto allComputes = value["Computes"];
|
||||
for (auto value : allComputes)
|
||||
{
|
||||
ClusterInfoSimple::Computes computesObject;
|
||||
if(!value["Total"].isNull())
|
||||
computesObject.total = std::stoi(value["Total"].asString());
|
||||
if(!value["NormalCount"].isNull())
|
||||
computesObject.normalCount = std::stoi(value["NormalCount"].asString());
|
||||
if(!value["ExceptionCount"].isNull())
|
||||
computesObject.exceptionCount = std::stoi(value["ExceptionCount"].asString());
|
||||
clustersObject.computes.push_back(computesObject);
|
||||
}
|
||||
auto allTotalResources = value["TotalResources"];
|
||||
for (auto value : allTotalResources)
|
||||
{
|
||||
ClusterInfoSimple::TotalResources totalResourcesObject;
|
||||
if(!value["Cpu"].isNull())
|
||||
totalResourcesObject.cpu = std::stoi(value["Cpu"].asString());
|
||||
if(!value["Memory"].isNull())
|
||||
totalResourcesObject.memory = std::stoi(value["Memory"].asString());
|
||||
if(!value["Gpu"].isNull())
|
||||
totalResourcesObject.gpu = std::stoi(value["Gpu"].asString());
|
||||
clustersObject.totalResources.push_back(totalResourcesObject);
|
||||
}
|
||||
auto allUsedResources = value["UsedResources"];
|
||||
for (auto value : allUsedResources)
|
||||
{
|
||||
ClusterInfoSimple::UsedResources usedResourcesObject;
|
||||
if(!value["Cpu"].isNull())
|
||||
usedResourcesObject.cpu = std::stoi(value["Cpu"].asString());
|
||||
if(!value["Memory"].isNull())
|
||||
usedResourcesObject.memory = std::stoi(value["Memory"].asString());
|
||||
if(!value["Gpu"].isNull())
|
||||
usedResourcesObject.gpu = std::stoi(value["Gpu"].asString());
|
||||
clustersObject.usedResources.push_back(usedResourcesObject);
|
||||
}
|
||||
clusters_.push_back(clustersObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
auto allClusters = value["Clusters"]["ClusterInfoSimple"];
|
||||
for (auto value : allClusters)
|
||||
{
|
||||
ClusterInfoSimple clustersObject;
|
||||
if(!value["Id"].isNull())
|
||||
clustersObject.id = value["Id"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
clustersObject.regionId = value["RegionId"].asString();
|
||||
if(!value["ZoneId"].isNull())
|
||||
clustersObject.zoneId = value["ZoneId"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
clustersObject.name = value["Name"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
clustersObject.description = value["Description"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
clustersObject.status = value["Status"].asString();
|
||||
if(!value["OsTag"].isNull())
|
||||
clustersObject.osTag = value["OsTag"].asString();
|
||||
if(!value["AccountType"].isNull())
|
||||
clustersObject.accountType = value["AccountType"].asString();
|
||||
if(!value["SchedulerType"].isNull())
|
||||
clustersObject.schedulerType = value["SchedulerType"].asString();
|
||||
if(!value["DeployMode"].isNull())
|
||||
clustersObject.deployMode = value["DeployMode"].asString();
|
||||
if(!value["Count"].isNull())
|
||||
clustersObject.count = std::stoi(value["Count"].asString());
|
||||
if(!value["InstanceType"].isNull())
|
||||
clustersObject.instanceType = value["InstanceType"].asString();
|
||||
if(!value["LoginNodes"].isNull())
|
||||
clustersObject.loginNodes = value["LoginNodes"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
clustersObject.createTime = value["CreateTime"].asString();
|
||||
if(!value["ImageOwnerAlias"].isNull())
|
||||
clustersObject.imageOwnerAlias = value["ImageOwnerAlias"].asString();
|
||||
if(!value["ImageId"].isNull())
|
||||
clustersObject.imageId = value["ImageId"].asString();
|
||||
auto managersNode = value["Managers"];
|
||||
if(!managersNode["Total"].isNull())
|
||||
clustersObject.managers.total = std::stoi(managersNode["Total"].asString());
|
||||
if(!managersNode["NormalCount"].isNull())
|
||||
clustersObject.managers.normalCount = std::stoi(managersNode["NormalCount"].asString());
|
||||
if(!managersNode["OperatingCount"].isNull())
|
||||
clustersObject.managers.operatingCount = std::stoi(managersNode["OperatingCount"].asString());
|
||||
if(!managersNode["StoppedCount"].isNull())
|
||||
clustersObject.managers.stoppedCount = std::stoi(managersNode["StoppedCount"].asString());
|
||||
if(!managersNode["ExceptionCount"].isNull())
|
||||
clustersObject.managers.exceptionCount = std::stoi(managersNode["ExceptionCount"].asString());
|
||||
auto computesNode = value["Computes"];
|
||||
if(!computesNode["Total"].isNull())
|
||||
clustersObject.computes.total = std::stoi(computesNode["Total"].asString());
|
||||
if(!computesNode["NormalCount"].isNull())
|
||||
clustersObject.computes.normalCount = std::stoi(computesNode["NormalCount"].asString());
|
||||
if(!computesNode["OperatingCount"].isNull())
|
||||
clustersObject.computes.operatingCount = std::stoi(computesNode["OperatingCount"].asString());
|
||||
if(!computesNode["StoppedCount"].isNull())
|
||||
clustersObject.computes.stoppedCount = std::stoi(computesNode["StoppedCount"].asString());
|
||||
if(!computesNode["ExceptionCount"].isNull())
|
||||
clustersObject.computes.exceptionCount = std::stoi(computesNode["ExceptionCount"].asString());
|
||||
auto totalResourcesNode = value["TotalResources"];
|
||||
if(!totalResourcesNode["Cpu"].isNull())
|
||||
clustersObject.totalResources.cpu = std::stoi(totalResourcesNode["Cpu"].asString());
|
||||
if(!totalResourcesNode["Memory"].isNull())
|
||||
clustersObject.totalResources.memory = std::stoi(totalResourcesNode["Memory"].asString());
|
||||
if(!totalResourcesNode["Gpu"].isNull())
|
||||
clustersObject.totalResources.gpu = std::stoi(totalResourcesNode["Gpu"].asString());
|
||||
auto usedResourcesNode = value["UsedResources"];
|
||||
if(!usedResourcesNode["Cpu"].isNull())
|
||||
clustersObject.usedResources.cpu = std::stoi(usedResourcesNode["Cpu"].asString());
|
||||
if(!usedResourcesNode["Memory"].isNull())
|
||||
clustersObject.usedResources.memory = std::stoi(usedResourcesNode["Memory"].asString());
|
||||
if(!usedResourcesNode["Gpu"].isNull())
|
||||
clustersObject.usedResources.gpu = std::stoi(usedResourcesNode["Gpu"].asString());
|
||||
clusters_.push_back(clustersObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
int ListClustersResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int ListClustersResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListClustersResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListClustersResult::ClusterInfoSimple> ListClustersResult::getClusters()const
|
||||
{
|
||||
return clusters_;
|
||||
}
|
||||
|
||||
int ListClustersResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int ListClustersResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListClustersResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListClustersResult::ClusterInfoSimple> ListClustersResult::getClusters()const
|
||||
{
|
||||
return clusters_;
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::EHPC::Model::ListCurrentClientVersionRequest;
|
||||
|
||||
ListCurrentClientVersionRequest::ListCurrentClientVersionRequest() :
|
||||
RpcServiceRequest("ehpc", "2017-07-14", "ListCurrentClientVersion")
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "ListCurrentClientVersion")
|
||||
{}
|
||||
|
||||
ListCurrentClientVersionRequest::~ListCurrentClientVersionRequest()
|
||||
|
||||
@@ -40,13 +40,13 @@ void ListCurrentClientVersionResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ClientVersion"].isNull())
|
||||
clientVersion_ = value["ClientVersion"].asString();
|
||||
if(!value["ClientVersion"].isNull())
|
||||
clientVersion_ = value["ClientVersion"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListCurrentClientVersionResult::getClientVersion()const
|
||||
{
|
||||
return clientVersion_;
|
||||
}
|
||||
|
||||
std::string ListCurrentClientVersionResult::getClientVersion()const
|
||||
{
|
||||
return clientVersion_;
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::EHPC::Model::ListCustomImagesRequest;
|
||||
|
||||
ListCustomImagesRequest::ListCustomImagesRequest() :
|
||||
RpcServiceRequest("ehpc", "2017-07-14", "ListCustomImages")
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "ListCustomImages")
|
||||
{}
|
||||
|
||||
ListCustomImagesRequest::~ListCustomImagesRequest()
|
||||
|
||||
@@ -40,39 +40,46 @@ void ListCustomImagesResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allImages = value["Images"]["ImageInfo"];
|
||||
for (auto value : allImages)
|
||||
{
|
||||
ImageInfo imagesObject;
|
||||
if(!value["ImageId"].isNull())
|
||||
imagesObject.imageId = value["ImageId"].asString();
|
||||
if(!value["ImageName"].isNull())
|
||||
imagesObject.imageName = value["ImageName"].asString();
|
||||
if(!value["ImageOwnerAlias"].isNull())
|
||||
imagesObject.imageOwnerAlias = value["ImageOwnerAlias"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
imagesObject.description = value["Description"].asString();
|
||||
auto allBaseOsTag = value["BaseOsTag"];
|
||||
for (auto value : allBaseOsTag)
|
||||
{
|
||||
ImageInfo::BaseOsTag baseOsTagObject;
|
||||
if(!value["OsTag"].isNull())
|
||||
baseOsTagObject.osTag = value["OsTag"].asString();
|
||||
if(!value["Platform"].isNull())
|
||||
baseOsTagObject.platform = value["Platform"].asString();
|
||||
if(!value["Version"].isNull())
|
||||
baseOsTagObject.version = value["Version"].asString();
|
||||
if(!value["Architecture"].isNull())
|
||||
baseOsTagObject.architecture = value["Architecture"].asString();
|
||||
imagesObject.baseOsTag.push_back(baseOsTagObject);
|
||||
}
|
||||
images_.push_back(imagesObject);
|
||||
}
|
||||
auto allImages = value["Images"]["ImageInfo"];
|
||||
for (auto value : allImages)
|
||||
{
|
||||
ImageInfo imagesObject;
|
||||
if(!value["Uid"].isNull())
|
||||
imagesObject.uid = value["Uid"].asString();
|
||||
if(!value["ImageId"].isNull())
|
||||
imagesObject.imageId = value["ImageId"].asString();
|
||||
if(!value["ImageName"].isNull())
|
||||
imagesObject.imageName = value["ImageName"].asString();
|
||||
if(!value["ImageOwnerAlias"].isNull())
|
||||
imagesObject.imageOwnerAlias = value["ImageOwnerAlias"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
imagesObject.description = value["Description"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
imagesObject.status = value["Status"].asString();
|
||||
if(!value["ProductCode"].isNull())
|
||||
imagesObject.productCode = value["ProductCode"].asString();
|
||||
if(!value["SkuCode"].isNull())
|
||||
imagesObject.skuCode = value["SkuCode"].asString();
|
||||
if(!value["PricingCycle"].isNull())
|
||||
imagesObject.pricingCycle = value["PricingCycle"].asString();
|
||||
if(!value["PostInstallScript"].isNull())
|
||||
imagesObject.postInstallScript = value["PostInstallScript"].asString();
|
||||
auto baseOsTagNode = value["BaseOsTag"];
|
||||
if(!baseOsTagNode["OsTag"].isNull())
|
||||
imagesObject.baseOsTag.osTag = baseOsTagNode["OsTag"].asString();
|
||||
if(!baseOsTagNode["Platform"].isNull())
|
||||
imagesObject.baseOsTag.platform = baseOsTagNode["Platform"].asString();
|
||||
if(!baseOsTagNode["Version"].isNull())
|
||||
imagesObject.baseOsTag.version = baseOsTagNode["Version"].asString();
|
||||
if(!baseOsTagNode["Architecture"].isNull())
|
||||
imagesObject.baseOsTag.architecture = baseOsTagNode["Architecture"].asString();
|
||||
images_.push_back(imagesObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListCustomImagesResult::ImageInfo> ListCustomImagesResult::getImages()const
|
||||
{
|
||||
return images_;
|
||||
}
|
||||
|
||||
std::vector<ListCustomImagesResult::ImageInfo> ListCustomImagesResult::getImages()const
|
||||
{
|
||||
return images_;
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::EHPC::Model::ListImagesRequest;
|
||||
|
||||
ListImagesRequest::ListImagesRequest() :
|
||||
RpcServiceRequest("ehpc", "2017-07-14", "ListImages")
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "ListImages")
|
||||
{}
|
||||
|
||||
ListImagesRequest::~ListImagesRequest()
|
||||
|
||||
@@ -40,25 +40,25 @@ void ListImagesResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allOsTags = value["OsTags"]["OsInfo"];
|
||||
for (auto value : allOsTags)
|
||||
{
|
||||
OsInfo osTagsObject;
|
||||
if(!value["OsTag"].isNull())
|
||||
osTagsObject.osTag = value["OsTag"].asString();
|
||||
if(!value["Platform"].isNull())
|
||||
osTagsObject.platform = value["Platform"].asString();
|
||||
if(!value["Version"].isNull())
|
||||
osTagsObject.version = value["Version"].asString();
|
||||
if(!value["Architecture"].isNull())
|
||||
osTagsObject.architecture = value["Architecture"].asString();
|
||||
osTags_.push_back(osTagsObject);
|
||||
}
|
||||
auto allOsTags = value["OsTags"]["OsInfo"];
|
||||
for (auto value : allOsTags)
|
||||
{
|
||||
OsInfo osTagsObject;
|
||||
if(!value["OsTag"].isNull())
|
||||
osTagsObject.osTag = value["OsTag"].asString();
|
||||
if(!value["Platform"].isNull())
|
||||
osTagsObject.platform = value["Platform"].asString();
|
||||
if(!value["Version"].isNull())
|
||||
osTagsObject.version = value["Version"].asString();
|
||||
if(!value["Architecture"].isNull())
|
||||
osTagsObject.architecture = value["Architecture"].asString();
|
||||
osTags_.push_back(osTagsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListImagesResult::OsInfo> ListImagesResult::getOsTags()const
|
||||
{
|
||||
return osTags_;
|
||||
}
|
||||
|
||||
std::vector<ListImagesResult::OsInfo> ListImagesResult::getOsTags()const
|
||||
{
|
||||
return osTags_;
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::EHPC::Model::ListJobTemplatesRequest;
|
||||
|
||||
ListJobTemplatesRequest::ListJobTemplatesRequest() :
|
||||
RpcServiceRequest("ehpc", "2017-07-14", "ListJobTemplates")
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "ListJobTemplates")
|
||||
{}
|
||||
|
||||
ListJobTemplatesRequest::~ListJobTemplatesRequest()
|
||||
|
||||
@@ -40,60 +40,60 @@ void ListJobTemplatesResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTemplates = value["Templates"]["JobTemplates"];
|
||||
for (auto value : allTemplates)
|
||||
{
|
||||
JobTemplates templatesObject;
|
||||
if(!value["Id"].isNull())
|
||||
templatesObject.id = value["Id"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
templatesObject.name = value["Name"].asString();
|
||||
if(!value["CommandLine"].isNull())
|
||||
templatesObject.commandLine = value["CommandLine"].asString();
|
||||
if(!value["RunasUser"].isNull())
|
||||
templatesObject.runasUser = value["RunasUser"].asString();
|
||||
if(!value["Priority"].isNull())
|
||||
templatesObject.priority = std::stoi(value["Priority"].asString());
|
||||
if(!value["Package"].isNull())
|
||||
templatesObject.package = value["Package"].asString();
|
||||
if(!value["StdoutRedirectPath"].isNull())
|
||||
templatesObject.stdoutRedirectPath = value["StdoutRedirectPath"].asString();
|
||||
if(!value["StderrRedirectPath"].isNull())
|
||||
templatesObject.stderrRedirectPath = value["StderrRedirectPath"].asString();
|
||||
if(!value["ReRunable"].isNull())
|
||||
templatesObject.reRunable = value["ReRunable"].asString() == "true";
|
||||
if(!value["ArrayRequest"].isNull())
|
||||
templatesObject.arrayRequest = value["ArrayRequest"].asString();
|
||||
if(!value["Variables"].isNull())
|
||||
templatesObject.variables = value["Variables"].asString();
|
||||
templates_.push_back(templatesObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
auto allTemplates = value["Templates"]["JobTemplates"];
|
||||
for (auto value : allTemplates)
|
||||
{
|
||||
JobTemplates templatesObject;
|
||||
if(!value["Id"].isNull())
|
||||
templatesObject.id = value["Id"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
templatesObject.name = value["Name"].asString();
|
||||
if(!value["CommandLine"].isNull())
|
||||
templatesObject.commandLine = value["CommandLine"].asString();
|
||||
if(!value["RunasUser"].isNull())
|
||||
templatesObject.runasUser = value["RunasUser"].asString();
|
||||
if(!value["Priority"].isNull())
|
||||
templatesObject.priority = std::stoi(value["Priority"].asString());
|
||||
if(!value["PackagePath"].isNull())
|
||||
templatesObject.packagePath = value["PackagePath"].asString();
|
||||
if(!value["StdoutRedirectPath"].isNull())
|
||||
templatesObject.stdoutRedirectPath = value["StdoutRedirectPath"].asString();
|
||||
if(!value["StderrRedirectPath"].isNull())
|
||||
templatesObject.stderrRedirectPath = value["StderrRedirectPath"].asString();
|
||||
if(!value["ReRunable"].isNull())
|
||||
templatesObject.reRunable = value["ReRunable"].asString() == "true";
|
||||
if(!value["ArrayRequest"].isNull())
|
||||
templatesObject.arrayRequest = value["ArrayRequest"].asString();
|
||||
if(!value["Variables"].isNull())
|
||||
templatesObject.variables = value["Variables"].asString();
|
||||
templates_.push_back(templatesObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
int ListJobTemplatesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int ListJobTemplatesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListJobTemplatesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListJobTemplatesResult::JobTemplates> ListJobTemplatesResult::getTemplates()const
|
||||
{
|
||||
return templates_;
|
||||
}
|
||||
|
||||
int ListJobTemplatesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int ListJobTemplatesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListJobTemplatesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListJobTemplatesResult::JobTemplates> ListJobTemplatesResult::getTemplates()const
|
||||
{
|
||||
return templates_;
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::EHPC::Model::ListJobsRequest;
|
||||
|
||||
ListJobsRequest::ListJobsRequest() :
|
||||
RpcServiceRequest("ehpc", "2017-07-14", "ListJobs")
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "ListJobs")
|
||||
{}
|
||||
|
||||
ListJobsRequest::~ListJobsRequest()
|
||||
@@ -69,6 +69,17 @@ void ListJobsRequest::setState(const std::string& state)
|
||||
setParameter("State", state);
|
||||
}
|
||||
|
||||
std::string ListJobsRequest::getRerunable()const
|
||||
{
|
||||
return rerunable_;
|
||||
}
|
||||
|
||||
void ListJobsRequest::setRerunable(const std::string& rerunable)
|
||||
{
|
||||
rerunable_ = rerunable;
|
||||
setParameter("Rerunable", rerunable);
|
||||
}
|
||||
|
||||
int ListJobsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
|
||||
@@ -40,72 +40,69 @@ void ListJobsResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allJobs = value["Jobs"]["JobInfo"];
|
||||
for (auto value : allJobs)
|
||||
{
|
||||
JobInfo jobsObject;
|
||||
if(!value["Id"].isNull())
|
||||
jobsObject.id = value["Id"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
jobsObject.name = value["Name"].asString();
|
||||
if(!value["Owner"].isNull())
|
||||
jobsObject.owner = value["Owner"].asString();
|
||||
if(!value["Priority"].isNull())
|
||||
jobsObject.priority = std::stoi(value["Priority"].asString());
|
||||
if(!value["State"].isNull())
|
||||
jobsObject.state = value["State"].asString();
|
||||
if(!value["SubmitTime"].isNull())
|
||||
jobsObject.submitTime = value["SubmitTime"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
jobsObject.startTime = value["StartTime"].asString();
|
||||
if(!value["LastModifyTime"].isNull())
|
||||
jobsObject.lastModifyTime = value["LastModifyTime"].asString();
|
||||
if(!value["Stdout"].isNull())
|
||||
jobsObject._stdout = value["Stdout"].asString();
|
||||
if(!value["Stderr"].isNull())
|
||||
jobsObject._stderr = value["Stderr"].asString();
|
||||
if(!value["Comment"].isNull())
|
||||
jobsObject.comment = value["Comment"].asString();
|
||||
if(!value["ArrayRequest"].isNull())
|
||||
jobsObject.arrayRequest = value["ArrayRequest"].asString();
|
||||
auto allResources = value["Resources"];
|
||||
for (auto value : allResources)
|
||||
{
|
||||
JobInfo::Resources resourcesObject;
|
||||
if(!value["Nodes"].isNull())
|
||||
resourcesObject.nodes = std::stoi(value["Nodes"].asString());
|
||||
if(!value["Cores"].isNull())
|
||||
resourcesObject.cores = std::stoi(value["Cores"].asString());
|
||||
jobsObject.resources.push_back(resourcesObject);
|
||||
}
|
||||
jobs_.push_back(jobsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
auto allJobs = value["Jobs"]["JobInfo"];
|
||||
for (auto value : allJobs)
|
||||
{
|
||||
JobInfo jobsObject;
|
||||
if(!value["Id"].isNull())
|
||||
jobsObject.id = value["Id"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
jobsObject.name = value["Name"].asString();
|
||||
if(!value["Owner"].isNull())
|
||||
jobsObject.owner = value["Owner"].asString();
|
||||
if(!value["Priority"].isNull())
|
||||
jobsObject.priority = std::stoi(value["Priority"].asString());
|
||||
if(!value["State"].isNull())
|
||||
jobsObject.state = value["State"].asString();
|
||||
if(!value["SubmitTime"].isNull())
|
||||
jobsObject.submitTime = value["SubmitTime"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
jobsObject.startTime = value["StartTime"].asString();
|
||||
if(!value["LastModifyTime"].isNull())
|
||||
jobsObject.lastModifyTime = value["LastModifyTime"].asString();
|
||||
if(!value["Stdout"].isNull())
|
||||
jobsObject._stdout = value["Stdout"].asString();
|
||||
if(!value["Stderr"].isNull())
|
||||
jobsObject._stderr = value["Stderr"].asString();
|
||||
if(!value["ShellPath"].isNull())
|
||||
jobsObject.shellPath = value["ShellPath"].asString();
|
||||
if(!value["Comment"].isNull())
|
||||
jobsObject.comment = value["Comment"].asString();
|
||||
if(!value["ArrayRequest"].isNull())
|
||||
jobsObject.arrayRequest = value["ArrayRequest"].asString();
|
||||
auto resourcesNode = value["Resources"];
|
||||
if(!resourcesNode["Nodes"].isNull())
|
||||
jobsObject.resources.nodes = std::stoi(resourcesNode["Nodes"].asString());
|
||||
if(!resourcesNode["Cores"].isNull())
|
||||
jobsObject.resources.cores = std::stoi(resourcesNode["Cores"].asString());
|
||||
jobs_.push_back(jobsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
int ListJobsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int ListJobsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::vector<ListJobsResult::JobInfo> ListJobsResult::getJobs()const
|
||||
{
|
||||
return jobs_;
|
||||
}
|
||||
|
||||
int ListJobsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
int ListJobsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int ListJobsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::vector<ListJobsResult::JobInfo> ListJobsResult::getJobs()const
|
||||
{
|
||||
return jobs_;
|
||||
}
|
||||
|
||||
int ListJobsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::EHPC::Model::ListNodesNoPagingRequest;
|
||||
|
||||
ListNodesNoPagingRequest::ListNodesNoPagingRequest() :
|
||||
RpcServiceRequest("ehpc", "2017-07-14", "ListNodesNoPaging")
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "ListNodesNoPaging")
|
||||
{}
|
||||
|
||||
ListNodesNoPagingRequest::~ListNodesNoPagingRequest()
|
||||
|
||||
@@ -40,86 +40,77 @@ void ListNodesNoPagingResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allNodes = value["Nodes"]["NodeInfo"];
|
||||
for (auto value : allNodes)
|
||||
{
|
||||
NodeInfo nodesObject;
|
||||
if(!value["Id"].isNull())
|
||||
nodesObject.id = value["Id"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
nodesObject.regionId = value["RegionId"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
nodesObject.status = value["Status"].asString();
|
||||
if(!value["CreatedByEhpc"].isNull())
|
||||
nodesObject.createdByEhpc = value["CreatedByEhpc"].asString() == "true";
|
||||
if(!value["Role"].isNull())
|
||||
nodesObject.role = value["Role"].asString();
|
||||
if(!value["AddTime"].isNull())
|
||||
nodesObject.addTime = value["AddTime"].asString();
|
||||
if(!value["Expired"].isNull())
|
||||
nodesObject.expired = value["Expired"].asString() == "true";
|
||||
if(!value["ExpiredTime"].isNull())
|
||||
nodesObject.expiredTime = value["ExpiredTime"].asString();
|
||||
if(!value["SpotStrategy"].isNull())
|
||||
nodesObject.spotStrategy = value["SpotStrategy"].asString();
|
||||
if(!value["LockReason"].isNull())
|
||||
nodesObject.lockReason = value["LockReason"].asString();
|
||||
if(!value["ImageOwnerAlias"].isNull())
|
||||
nodesObject.imageOwnerAlias = value["ImageOwnerAlias"].asString();
|
||||
if(!value["ImageId"].isNull())
|
||||
nodesObject.imageId = value["ImageId"].asString();
|
||||
auto allTotalResources = value["TotalResources"];
|
||||
for (auto value : allTotalResources)
|
||||
{
|
||||
NodeInfo::TotalResources totalResourcesObject;
|
||||
if(!value["Cpu"].isNull())
|
||||
totalResourcesObject.cpu = std::stoi(value["Cpu"].asString());
|
||||
if(!value["Memory"].isNull())
|
||||
totalResourcesObject.memory = std::stoi(value["Memory"].asString());
|
||||
if(!value["Gpu"].isNull())
|
||||
totalResourcesObject.gpu = std::stoi(value["Gpu"].asString());
|
||||
nodesObject.totalResources.push_back(totalResourcesObject);
|
||||
}
|
||||
auto allUsedResources = value["UsedResources"];
|
||||
for (auto value : allUsedResources)
|
||||
{
|
||||
NodeInfo::UsedResources usedResourcesObject;
|
||||
if(!value["Cpu"].isNull())
|
||||
usedResourcesObject.cpu = std::stoi(value["Cpu"].asString());
|
||||
if(!value["Memory"].isNull())
|
||||
usedResourcesObject.memory = std::stoi(value["Memory"].asString());
|
||||
if(!value["Gpu"].isNull())
|
||||
usedResourcesObject.gpu = std::stoi(value["Gpu"].asString());
|
||||
nodesObject.usedResources.push_back(usedResourcesObject);
|
||||
}
|
||||
nodes_.push_back(nodesObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
auto allNodes = value["Nodes"]["NodeInfo"];
|
||||
for (auto value : allNodes)
|
||||
{
|
||||
NodeInfo nodesObject;
|
||||
if(!value["Id"].isNull())
|
||||
nodesObject.id = value["Id"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
nodesObject.regionId = value["RegionId"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
nodesObject.status = value["Status"].asString();
|
||||
if(!value["CreatedByEhpc"].isNull())
|
||||
nodesObject.createdByEhpc = value["CreatedByEhpc"].asString() == "true";
|
||||
if(!value["AddTime"].isNull())
|
||||
nodesObject.addTime = value["AddTime"].asString();
|
||||
if(!value["Expired"].isNull())
|
||||
nodesObject.expired = value["Expired"].asString() == "true";
|
||||
if(!value["ExpiredTime"].isNull())
|
||||
nodesObject.expiredTime = value["ExpiredTime"].asString();
|
||||
if(!value["SpotStrategy"].isNull())
|
||||
nodesObject.spotStrategy = value["SpotStrategy"].asString();
|
||||
if(!value["LockReason"].isNull())
|
||||
nodesObject.lockReason = value["LockReason"].asString();
|
||||
if(!value["ImageOwnerAlias"].isNull())
|
||||
nodesObject.imageOwnerAlias = value["ImageOwnerAlias"].asString();
|
||||
if(!value["ImageId"].isNull())
|
||||
nodesObject.imageId = value["ImageId"].asString();
|
||||
auto totalResourcesNode = value["TotalResources"];
|
||||
if(!totalResourcesNode["Cpu"].isNull())
|
||||
nodesObject.totalResources.cpu = std::stoi(totalResourcesNode["Cpu"].asString());
|
||||
if(!totalResourcesNode["Memory"].isNull())
|
||||
nodesObject.totalResources.memory = std::stoi(totalResourcesNode["Memory"].asString());
|
||||
if(!totalResourcesNode["Gpu"].isNull())
|
||||
nodesObject.totalResources.gpu = std::stoi(totalResourcesNode["Gpu"].asString());
|
||||
auto usedResourcesNode = value["UsedResources"];
|
||||
if(!usedResourcesNode["Cpu"].isNull())
|
||||
nodesObject.usedResources.cpu = std::stoi(usedResourcesNode["Cpu"].asString());
|
||||
if(!usedResourcesNode["Memory"].isNull())
|
||||
nodesObject.usedResources.memory = std::stoi(usedResourcesNode["Memory"].asString());
|
||||
if(!usedResourcesNode["Gpu"].isNull())
|
||||
nodesObject.usedResources.gpu = std::stoi(usedResourcesNode["Gpu"].asString());
|
||||
auto allRoles = value["Roles"]["Role"];
|
||||
for (auto value : allRoles)
|
||||
nodesObject.roles.push_back(value.asString());
|
||||
nodes_.push_back(nodesObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
int ListNodesNoPagingResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int ListNodesNoPagingResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListNodesNoPagingResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListNodesNoPagingResult::NodeInfo> ListNodesNoPagingResult::getNodes()const
|
||||
{
|
||||
return nodes_;
|
||||
}
|
||||
|
||||
int ListNodesNoPagingResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int ListNodesNoPagingResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListNodesNoPagingResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListNodesNoPagingResult::NodeInfo> ListNodesNoPagingResult::getNodes()const
|
||||
{
|
||||
return nodes_;
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::EHPC::Model::ListNodesRequest;
|
||||
|
||||
ListNodesRequest::ListNodesRequest() :
|
||||
RpcServiceRequest("ehpc", "2017-07-14", "ListNodes")
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "ListNodes")
|
||||
{}
|
||||
|
||||
ListNodesRequest::~ListNodesRequest()
|
||||
|
||||
@@ -40,86 +40,77 @@ void ListNodesResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allNodes = value["Nodes"]["NodeInfo"];
|
||||
for (auto value : allNodes)
|
||||
{
|
||||
NodeInfo nodesObject;
|
||||
if(!value["Id"].isNull())
|
||||
nodesObject.id = value["Id"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
nodesObject.regionId = value["RegionId"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
nodesObject.status = value["Status"].asString();
|
||||
if(!value["CreatedByEhpc"].isNull())
|
||||
nodesObject.createdByEhpc = value["CreatedByEhpc"].asString() == "true";
|
||||
if(!value["Role"].isNull())
|
||||
nodesObject.role = value["Role"].asString();
|
||||
if(!value["AddTime"].isNull())
|
||||
nodesObject.addTime = value["AddTime"].asString();
|
||||
if(!value["Expired"].isNull())
|
||||
nodesObject.expired = value["Expired"].asString() == "true";
|
||||
if(!value["ExpiredTime"].isNull())
|
||||
nodesObject.expiredTime = value["ExpiredTime"].asString();
|
||||
if(!value["SpotStrategy"].isNull())
|
||||
nodesObject.spotStrategy = value["SpotStrategy"].asString();
|
||||
if(!value["LockReason"].isNull())
|
||||
nodesObject.lockReason = value["LockReason"].asString();
|
||||
if(!value["ImageOwnerAlias"].isNull())
|
||||
nodesObject.imageOwnerAlias = value["ImageOwnerAlias"].asString();
|
||||
if(!value["ImageId"].isNull())
|
||||
nodesObject.imageId = value["ImageId"].asString();
|
||||
auto allTotalResources = value["TotalResources"];
|
||||
for (auto value : allTotalResources)
|
||||
{
|
||||
NodeInfo::TotalResources totalResourcesObject;
|
||||
if(!value["Cpu"].isNull())
|
||||
totalResourcesObject.cpu = std::stoi(value["Cpu"].asString());
|
||||
if(!value["Memory"].isNull())
|
||||
totalResourcesObject.memory = std::stoi(value["Memory"].asString());
|
||||
if(!value["Gpu"].isNull())
|
||||
totalResourcesObject.gpu = std::stoi(value["Gpu"].asString());
|
||||
nodesObject.totalResources.push_back(totalResourcesObject);
|
||||
}
|
||||
auto allUsedResources = value["UsedResources"];
|
||||
for (auto value : allUsedResources)
|
||||
{
|
||||
NodeInfo::UsedResources usedResourcesObject;
|
||||
if(!value["Cpu"].isNull())
|
||||
usedResourcesObject.cpu = std::stoi(value["Cpu"].asString());
|
||||
if(!value["Memory"].isNull())
|
||||
usedResourcesObject.memory = std::stoi(value["Memory"].asString());
|
||||
if(!value["Gpu"].isNull())
|
||||
usedResourcesObject.gpu = std::stoi(value["Gpu"].asString());
|
||||
nodesObject.usedResources.push_back(usedResourcesObject);
|
||||
}
|
||||
nodes_.push_back(nodesObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
auto allNodes = value["Nodes"]["NodeInfo"];
|
||||
for (auto value : allNodes)
|
||||
{
|
||||
NodeInfo nodesObject;
|
||||
if(!value["Id"].isNull())
|
||||
nodesObject.id = value["Id"].asString();
|
||||
if(!value["RegionId"].isNull())
|
||||
nodesObject.regionId = value["RegionId"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
nodesObject.status = value["Status"].asString();
|
||||
if(!value["CreatedByEhpc"].isNull())
|
||||
nodesObject.createdByEhpc = value["CreatedByEhpc"].asString() == "true";
|
||||
if(!value["AddTime"].isNull())
|
||||
nodesObject.addTime = value["AddTime"].asString();
|
||||
if(!value["Expired"].isNull())
|
||||
nodesObject.expired = value["Expired"].asString() == "true";
|
||||
if(!value["ExpiredTime"].isNull())
|
||||
nodesObject.expiredTime = value["ExpiredTime"].asString();
|
||||
if(!value["SpotStrategy"].isNull())
|
||||
nodesObject.spotStrategy = value["SpotStrategy"].asString();
|
||||
if(!value["LockReason"].isNull())
|
||||
nodesObject.lockReason = value["LockReason"].asString();
|
||||
if(!value["ImageOwnerAlias"].isNull())
|
||||
nodesObject.imageOwnerAlias = value["ImageOwnerAlias"].asString();
|
||||
if(!value["ImageId"].isNull())
|
||||
nodesObject.imageId = value["ImageId"].asString();
|
||||
auto totalResourcesNode = value["TotalResources"];
|
||||
if(!totalResourcesNode["Cpu"].isNull())
|
||||
nodesObject.totalResources.cpu = std::stoi(totalResourcesNode["Cpu"].asString());
|
||||
if(!totalResourcesNode["Memory"].isNull())
|
||||
nodesObject.totalResources.memory = std::stoi(totalResourcesNode["Memory"].asString());
|
||||
if(!totalResourcesNode["Gpu"].isNull())
|
||||
nodesObject.totalResources.gpu = std::stoi(totalResourcesNode["Gpu"].asString());
|
||||
auto usedResourcesNode = value["UsedResources"];
|
||||
if(!usedResourcesNode["Cpu"].isNull())
|
||||
nodesObject.usedResources.cpu = std::stoi(usedResourcesNode["Cpu"].asString());
|
||||
if(!usedResourcesNode["Memory"].isNull())
|
||||
nodesObject.usedResources.memory = std::stoi(usedResourcesNode["Memory"].asString());
|
||||
if(!usedResourcesNode["Gpu"].isNull())
|
||||
nodesObject.usedResources.gpu = std::stoi(usedResourcesNode["Gpu"].asString());
|
||||
auto allRoles = value["Roles"]["Role"];
|
||||
for (auto value : allRoles)
|
||||
nodesObject.roles.push_back(value.asString());
|
||||
nodes_.push_back(nodesObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
int ListNodesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int ListNodesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListNodesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListNodesResult::NodeInfo> ListNodesResult::getNodes()const
|
||||
{
|
||||
return nodes_;
|
||||
}
|
||||
|
||||
int ListNodesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int ListNodesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListNodesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListNodesResult::NodeInfo> ListNodesResult::getNodes()const
|
||||
{
|
||||
return nodes_;
|
||||
}
|
||||
|
||||
|
||||
@@ -19,12 +19,23 @@
|
||||
using AlibabaCloud::EHPC::Model::ListPreferredEcsTypesRequest;
|
||||
|
||||
ListPreferredEcsTypesRequest::ListPreferredEcsTypesRequest() :
|
||||
RpcServiceRequest("ehpc", "2017-07-14", "ListPreferredEcsTypes")
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "ListPreferredEcsTypes")
|
||||
{}
|
||||
|
||||
ListPreferredEcsTypesRequest::~ListPreferredEcsTypesRequest()
|
||||
{}
|
||||
|
||||
std::string ListPreferredEcsTypesRequest::getSpotStrategy()const
|
||||
{
|
||||
return spotStrategy_;
|
||||
}
|
||||
|
||||
void ListPreferredEcsTypesRequest::setSpotStrategy(const std::string& spotStrategy)
|
||||
{
|
||||
spotStrategy_ = spotStrategy;
|
||||
setParameter("SpotStrategy", spotStrategy);
|
||||
}
|
||||
|
||||
std::string ListPreferredEcsTypesRequest::getZoneId()const
|
||||
{
|
||||
return zoneId_;
|
||||
@@ -36,6 +47,17 @@ void ListPreferredEcsTypesRequest::setZoneId(const std::string& zoneId)
|
||||
setParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
std::string ListPreferredEcsTypesRequest::getInstanceChargeType()const
|
||||
{
|
||||
return instanceChargeType_;
|
||||
}
|
||||
|
||||
void ListPreferredEcsTypesRequest::setInstanceChargeType(const std::string& instanceChargeType)
|
||||
{
|
||||
instanceChargeType_ = instanceChargeType;
|
||||
setParameter("InstanceChargeType", instanceChargeType);
|
||||
}
|
||||
|
||||
std::string ListPreferredEcsTypesRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
|
||||
@@ -40,36 +40,38 @@ void ListPreferredEcsTypesResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allSeries = value["Series"]["SeriesInfo"];
|
||||
for (auto value : allSeries)
|
||||
{
|
||||
SeriesInfo seriesObject;
|
||||
if(!value["SeriesId"].isNull())
|
||||
seriesObject.seriesId = value["SeriesId"].asString();
|
||||
if(!value["SeriesName"].isNull())
|
||||
seriesObject.seriesName = value["SeriesName"].asString();
|
||||
auto allRoles = value["Roles"];
|
||||
for (auto value : allRoles)
|
||||
{
|
||||
SeriesInfo::Roles rolesObject;
|
||||
auto allManager = value["Manager"]["InstanceTypeId"];
|
||||
for (auto value : allManager)
|
||||
rolesObject.manager.push_back(value.asString());
|
||||
auto allCompute = value["Compute"]["InstanceTypeId"];
|
||||
for (auto value : allCompute)
|
||||
rolesObject.compute.push_back(value.asString());
|
||||
auto allLogin = value["Login"]["InstanceTypeId"];
|
||||
for (auto value : allLogin)
|
||||
rolesObject.login.push_back(value.asString());
|
||||
seriesObject.roles.push_back(rolesObject);
|
||||
}
|
||||
series_.push_back(seriesObject);
|
||||
}
|
||||
auto allSeries = value["Series"]["SeriesInfo"];
|
||||
for (auto value : allSeries)
|
||||
{
|
||||
SeriesInfo seriesObject;
|
||||
if(!value["SeriesId"].isNull())
|
||||
seriesObject.seriesId = value["SeriesId"].asString();
|
||||
if(!value["SeriesName"].isNull())
|
||||
seriesObject.seriesName = value["SeriesName"].asString();
|
||||
auto rolesNode = value["Roles"];
|
||||
auto allManager = rolesNode["Manager"]["InstanceTypeId"];
|
||||
for (auto value : allManager)
|
||||
seriesObject.roles.manager.push_back(value.asString());
|
||||
auto allCompute = rolesNode["Compute"]["InstanceTypeId"];
|
||||
for (auto value : allCompute)
|
||||
seriesObject.roles.compute.push_back(value.asString());
|
||||
auto allLogin = rolesNode["Login"]["InstanceTypeId"];
|
||||
for (auto value : allLogin)
|
||||
seriesObject.roles.login.push_back(value.asString());
|
||||
series_.push_back(seriesObject);
|
||||
}
|
||||
if(!value["SupportSpotInstance"].isNull())
|
||||
supportSpotInstance_ = value["SupportSpotInstance"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListPreferredEcsTypesResult::SeriesInfo> ListPreferredEcsTypesResult::getSeries()const
|
||||
{
|
||||
return series_;
|
||||
}
|
||||
|
||||
std::vector<ListPreferredEcsTypesResult::SeriesInfo> ListPreferredEcsTypesResult::getSeries()const
|
||||
{
|
||||
return series_;
|
||||
}
|
||||
|
||||
bool ListPreferredEcsTypesResult::getSupportSpotInstance()const
|
||||
{
|
||||
return supportSpotInstance_;
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::EHPC::Model::ListRegionsRequest;
|
||||
|
||||
ListRegionsRequest::ListRegionsRequest() :
|
||||
RpcServiceRequest("ehpc", "2017-07-14", "ListRegions")
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "ListRegions")
|
||||
{}
|
||||
|
||||
ListRegionsRequest::~ListRegionsRequest()
|
||||
|
||||
@@ -40,21 +40,21 @@ void ListRegionsResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRegions = value["Regions"]["RegionInfo"];
|
||||
for (auto value : allRegions)
|
||||
{
|
||||
RegionInfo regionsObject;
|
||||
if(!value["RegionId"].isNull())
|
||||
regionsObject.regionId = value["RegionId"].asString();
|
||||
if(!value["LocalName"].isNull())
|
||||
regionsObject.localName = value["LocalName"].asString();
|
||||
regions_.push_back(regionsObject);
|
||||
}
|
||||
auto allRegions = value["Regions"]["RegionInfo"];
|
||||
for (auto value : allRegions)
|
||||
{
|
||||
RegionInfo regionsObject;
|
||||
if(!value["RegionId"].isNull())
|
||||
regionsObject.regionId = value["RegionId"].asString();
|
||||
if(!value["LocalName"].isNull())
|
||||
regionsObject.localName = value["LocalName"].asString();
|
||||
regions_.push_back(regionsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListRegionsResult::RegionInfo> ListRegionsResult::getRegions()const
|
||||
{
|
||||
return regions_;
|
||||
}
|
||||
|
||||
std::vector<ListRegionsResult::RegionInfo> ListRegionsResult::getRegions()const
|
||||
{
|
||||
return regions_;
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::EHPC::Model::ListSoftwaresRequest;
|
||||
|
||||
ListSoftwaresRequest::ListSoftwaresRequest() :
|
||||
RpcServiceRequest("ehpc", "2017-07-14", "ListSoftwares")
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "ListSoftwares")
|
||||
{}
|
||||
|
||||
ListSoftwaresRequest::~ListSoftwaresRequest()
|
||||
|
||||
@@ -40,43 +40,43 @@ void ListSoftwaresResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allSoftwares = value["Softwares"]["SoftwareInfo"];
|
||||
for (auto value : allSoftwares)
|
||||
{
|
||||
SoftwareInfo softwaresObject;
|
||||
if(!value["EhpcVersion"].isNull())
|
||||
softwaresObject.ehpcVersion = value["EhpcVersion"].asString();
|
||||
if(!value["OsTag"].isNull())
|
||||
softwaresObject.osTag = value["OsTag"].asString();
|
||||
if(!value["SchedulerType"].isNull())
|
||||
softwaresObject.schedulerType = value["SchedulerType"].asString();
|
||||
if(!value["SchedulerVersion"].isNull())
|
||||
softwaresObject.schedulerVersion = value["SchedulerVersion"].asString();
|
||||
if(!value["AccountType"].isNull())
|
||||
softwaresObject.accountType = value["AccountType"].asString();
|
||||
if(!value["AccountVersion"].isNull())
|
||||
softwaresObject.accountVersion = value["AccountVersion"].asString();
|
||||
auto allApplications = value["Applications"]["ApplicationInfo"];
|
||||
for (auto value : allApplications)
|
||||
{
|
||||
SoftwareInfo::ApplicationInfo applicationsObject;
|
||||
if(!value["Tag"].isNull())
|
||||
applicationsObject.tag = value["Tag"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
applicationsObject.name = value["Name"].asString();
|
||||
if(!value["Version"].isNull())
|
||||
applicationsObject.version = value["Version"].asString();
|
||||
if(!value["Required"].isNull())
|
||||
applicationsObject.required = value["Required"].asString() == "true";
|
||||
softwaresObject.applications.push_back(applicationsObject);
|
||||
}
|
||||
softwares_.push_back(softwaresObject);
|
||||
}
|
||||
auto allSoftwares = value["Softwares"]["SoftwareInfo"];
|
||||
for (auto value : allSoftwares)
|
||||
{
|
||||
SoftwareInfo softwaresObject;
|
||||
if(!value["EhpcVersion"].isNull())
|
||||
softwaresObject.ehpcVersion = value["EhpcVersion"].asString();
|
||||
if(!value["OsTag"].isNull())
|
||||
softwaresObject.osTag = value["OsTag"].asString();
|
||||
if(!value["SchedulerType"].isNull())
|
||||
softwaresObject.schedulerType = value["SchedulerType"].asString();
|
||||
if(!value["SchedulerVersion"].isNull())
|
||||
softwaresObject.schedulerVersion = value["SchedulerVersion"].asString();
|
||||
if(!value["AccountType"].isNull())
|
||||
softwaresObject.accountType = value["AccountType"].asString();
|
||||
if(!value["AccountVersion"].isNull())
|
||||
softwaresObject.accountVersion = value["AccountVersion"].asString();
|
||||
auto allApplications = value["Applications"]["ApplicationInfo"];
|
||||
for (auto value : allApplications)
|
||||
{
|
||||
SoftwareInfo::ApplicationInfo applicationsObject;
|
||||
if(!value["Tag"].isNull())
|
||||
applicationsObject.tag = value["Tag"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
applicationsObject.name = value["Name"].asString();
|
||||
if(!value["Version"].isNull())
|
||||
applicationsObject.version = value["Version"].asString();
|
||||
if(!value["Required"].isNull())
|
||||
applicationsObject.required = value["Required"].asString() == "true";
|
||||
softwaresObject.applications.push_back(applicationsObject);
|
||||
}
|
||||
softwares_.push_back(softwaresObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListSoftwaresResult::SoftwareInfo> ListSoftwaresResult::getSoftwares()const
|
||||
{
|
||||
return softwares_;
|
||||
}
|
||||
|
||||
std::vector<ListSoftwaresResult::SoftwareInfo> ListSoftwaresResult::getSoftwares()const
|
||||
{
|
||||
return softwares_;
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::EHPC::Model::ListUsersRequest;
|
||||
|
||||
ListUsersRequest::ListUsersRequest() :
|
||||
RpcServiceRequest("ehpc", "2017-07-14", "ListUsers")
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "ListUsers")
|
||||
{}
|
||||
|
||||
ListUsersRequest::~ListUsersRequest()
|
||||
|
||||
@@ -40,44 +40,44 @@ void ListUsersResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allUsers = value["Users"]["UserInfo"];
|
||||
for (auto value : allUsers)
|
||||
{
|
||||
UserInfo usersObject;
|
||||
if(!value["Name"].isNull())
|
||||
usersObject.name = value["Name"].asString();
|
||||
if(!value["Group"].isNull())
|
||||
usersObject.group = value["Group"].asString();
|
||||
if(!value["AddTime"].isNull())
|
||||
usersObject.addTime = value["AddTime"].asString();
|
||||
users_.push_back(usersObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
auto allUsers = value["Users"]["UserInfo"];
|
||||
for (auto value : allUsers)
|
||||
{
|
||||
UserInfo usersObject;
|
||||
if(!value["Name"].isNull())
|
||||
usersObject.name = value["Name"].asString();
|
||||
if(!value["Group"].isNull())
|
||||
usersObject.group = value["Group"].asString();
|
||||
if(!value["AddTime"].isNull())
|
||||
usersObject.addTime = value["AddTime"].asString();
|
||||
users_.push_back(usersObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
int ListUsersResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int ListUsersResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListUsersResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListUsersResult::UserInfo> ListUsersResult::getUsers()const
|
||||
{
|
||||
return users_;
|
||||
}
|
||||
|
||||
int ListUsersResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int ListUsersResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListUsersResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListUsersResult::UserInfo> ListUsersResult::getUsers()const
|
||||
{
|
||||
return users_;
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::EHPC::Model::ListVolumesRequest;
|
||||
|
||||
ListVolumesRequest::ListVolumesRequest() :
|
||||
RpcServiceRequest("ehpc", "2017-07-14", "ListVolumes")
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "ListVolumes")
|
||||
{}
|
||||
|
||||
ListVolumesRequest::~ListVolumesRequest()
|
||||
|
||||
@@ -40,54 +40,54 @@ void ListVolumesResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allVolumes = value["Volumes"]["VolumeInfo"];
|
||||
for (auto value : allVolumes)
|
||||
{
|
||||
VolumeInfo volumesObject;
|
||||
if(!value["RegionId"].isNull())
|
||||
volumesObject.regionId = value["RegionId"].asString();
|
||||
if(!value["ClusterId"].isNull())
|
||||
volumesObject.clusterId = value["ClusterId"].asString();
|
||||
if(!value["ClusterName"].isNull())
|
||||
volumesObject.clusterName = value["ClusterName"].asString();
|
||||
if(!value["VolumeId"].isNull())
|
||||
volumesObject.volumeId = value["VolumeId"].asString();
|
||||
if(!value["VolumeType"].isNull())
|
||||
volumesObject.volumeType = value["VolumeType"].asString();
|
||||
if(!value["VolumeProtocol"].isNull())
|
||||
volumesObject.volumeProtocol = value["VolumeProtocol"].asString();
|
||||
if(!value["VolumeMountpoint"].isNull())
|
||||
volumesObject.volumeMountpoint = value["VolumeMountpoint"].asString();
|
||||
if(!value["RemoteDirectory"].isNull())
|
||||
volumesObject.remoteDirectory = value["RemoteDirectory"].asString();
|
||||
volumes_.push_back(volumesObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
auto allVolumes = value["Volumes"]["VolumeInfo"];
|
||||
for (auto value : allVolumes)
|
||||
{
|
||||
VolumeInfo volumesObject;
|
||||
if(!value["RegionId"].isNull())
|
||||
volumesObject.regionId = value["RegionId"].asString();
|
||||
if(!value["ClusterId"].isNull())
|
||||
volumesObject.clusterId = value["ClusterId"].asString();
|
||||
if(!value["ClusterName"].isNull())
|
||||
volumesObject.clusterName = value["ClusterName"].asString();
|
||||
if(!value["VolumeId"].isNull())
|
||||
volumesObject.volumeId = value["VolumeId"].asString();
|
||||
if(!value["VolumeType"].isNull())
|
||||
volumesObject.volumeType = value["VolumeType"].asString();
|
||||
if(!value["VolumeProtocol"].isNull())
|
||||
volumesObject.volumeProtocol = value["VolumeProtocol"].asString();
|
||||
if(!value["VolumeMountpoint"].isNull())
|
||||
volumesObject.volumeMountpoint = value["VolumeMountpoint"].asString();
|
||||
if(!value["RemoteDirectory"].isNull())
|
||||
volumesObject.remoteDirectory = value["RemoteDirectory"].asString();
|
||||
volumes_.push_back(volumesObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
int ListVolumesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::vector<ListVolumesResult::VolumeInfo> ListVolumesResult::getVolumes()const
|
||||
{
|
||||
return volumes_;
|
||||
}
|
||||
|
||||
int ListVolumesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListVolumesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
int ListVolumesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::vector<ListVolumesResult::VolumeInfo> ListVolumesResult::getVolumes()const
|
||||
{
|
||||
return volumes_;
|
||||
}
|
||||
|
||||
int ListVolumesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListVolumesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::EHPC::Model::ModifyClusterAttributesRequest;
|
||||
|
||||
ModifyClusterAttributesRequest::ModifyClusterAttributesRequest() :
|
||||
RpcServiceRequest("ehpc", "2017-07-14", "ModifyClusterAttributes")
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "ModifyClusterAttributes")
|
||||
{}
|
||||
|
||||
ModifyClusterAttributesRequest::~ModifyClusterAttributesRequest()
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::EHPC::Model::ModifyUserGroupsRequest;
|
||||
|
||||
ModifyUserGroupsRequest::ModifyUserGroupsRequest() :
|
||||
RpcServiceRequest("ehpc", "2017-07-14", "ModifyUserGroups")
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "ModifyUserGroups")
|
||||
{}
|
||||
|
||||
ModifyUserGroupsRequest::~ModifyUserGroupsRequest()
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::EHPC::Model::ModifyUserPasswordsRequest;
|
||||
|
||||
ModifyUserPasswordsRequest::ModifyUserPasswordsRequest() :
|
||||
RpcServiceRequest("ehpc", "2017-07-14", "ModifyUserPasswords")
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "ModifyUserPasswords")
|
||||
{}
|
||||
|
||||
ModifyUserPasswordsRequest::~ModifyUserPasswordsRequest()
|
||||
|
||||
49
ehpc/src/model/RecoverClusterRequest.cc
Normal file
49
ehpc/src/model/RecoverClusterRequest.cc
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ehpc/model/RecoverClusterRequest.h>
|
||||
|
||||
using AlibabaCloud::EHPC::Model::RecoverClusterRequest;
|
||||
|
||||
RecoverClusterRequest::RecoverClusterRequest() :
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "RecoverCluster")
|
||||
{}
|
||||
|
||||
RecoverClusterRequest::~RecoverClusterRequest()
|
||||
{}
|
||||
|
||||
std::string RecoverClusterRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void RecoverClusterRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string RecoverClusterRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void RecoverClusterRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
45
ehpc/src/model/RecoverClusterResult.cc
Normal file
45
ehpc/src/model/RecoverClusterResult.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ehpc/model/RecoverClusterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::EHPC;
|
||||
using namespace AlibabaCloud::EHPC::Model;
|
||||
|
||||
RecoverClusterResult::RecoverClusterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RecoverClusterResult::RecoverClusterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RecoverClusterResult::~RecoverClusterResult()
|
||||
{}
|
||||
|
||||
void RecoverClusterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::EHPC::Model::RerunJobsRequest;
|
||||
|
||||
RerunJobsRequest::RerunJobsRequest() :
|
||||
RpcServiceRequest("ehpc", "2017-07-14", "RerunJobs")
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "RerunJobs")
|
||||
{}
|
||||
|
||||
RerunJobsRequest::~RerunJobsRequest()
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::EHPC::Model::ResetNodesRequest;
|
||||
|
||||
ResetNodesRequest::ResetNodesRequest() :
|
||||
RpcServiceRequest("ehpc", "2017-07-14", "ResetNodes")
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "ResetNodes")
|
||||
{}
|
||||
|
||||
ResetNodesRequest::~ResetNodesRequest()
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::EHPC::Model::SetAutoScaleConfigRequest;
|
||||
|
||||
SetAutoScaleConfigRequest::SetAutoScaleConfigRequest() :
|
||||
RpcServiceRequest("ehpc", "2017-07-14", "SetAutoScaleConfig")
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "SetAutoScaleConfig")
|
||||
{}
|
||||
|
||||
SetAutoScaleConfigRequest::~SetAutoScaleConfigRequest()
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::EHPC::Model::SetJobUserRequest;
|
||||
|
||||
SetJobUserRequest::SetJobUserRequest() :
|
||||
RpcServiceRequest("ehpc", "2017-07-14", "SetJobUser")
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "SetJobUser")
|
||||
{}
|
||||
|
||||
SetJobUserRequest::~SetJobUserRequest()
|
||||
|
||||
49
ehpc/src/model/StartClusterRequest.cc
Normal file
49
ehpc/src/model/StartClusterRequest.cc
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ehpc/model/StartClusterRequest.h>
|
||||
|
||||
using AlibabaCloud::EHPC::Model::StartClusterRequest;
|
||||
|
||||
StartClusterRequest::StartClusterRequest() :
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "StartCluster")
|
||||
{}
|
||||
|
||||
StartClusterRequest::~StartClusterRequest()
|
||||
{}
|
||||
|
||||
std::string StartClusterRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void StartClusterRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string StartClusterRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void StartClusterRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
45
ehpc/src/model/StartClusterResult.cc
Normal file
45
ehpc/src/model/StartClusterResult.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ehpc/model/StartClusterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::EHPC;
|
||||
using namespace AlibabaCloud::EHPC::Model;
|
||||
|
||||
StartClusterResult::StartClusterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
StartClusterResult::StartClusterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
StartClusterResult::~StartClusterResult()
|
||||
{}
|
||||
|
||||
void StartClusterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
76
ehpc/src/model/StartNodesRequest.cc
Normal file
76
ehpc/src/model/StartNodesRequest.cc
Normal file
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ehpc/model/StartNodesRequest.h>
|
||||
|
||||
using AlibabaCloud::EHPC::Model::StartNodesRequest;
|
||||
|
||||
StartNodesRequest::StartNodesRequest() :
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "StartNodes")
|
||||
{}
|
||||
|
||||
StartNodesRequest::~StartNodesRequest()
|
||||
{}
|
||||
|
||||
std::string StartNodesRequest::getRole()const
|
||||
{
|
||||
return role_;
|
||||
}
|
||||
|
||||
void StartNodesRequest::setRole(const std::string& role)
|
||||
{
|
||||
role_ = role;
|
||||
setParameter("Role", role);
|
||||
}
|
||||
|
||||
std::vector<StartNodesRequest::Instance> StartNodesRequest::getInstance()const
|
||||
{
|
||||
return instance_;
|
||||
}
|
||||
|
||||
void StartNodesRequest::setInstance(const std::vector<Instance>& instance)
|
||||
{
|
||||
instance_ = instance;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= instance.size(); i++) {
|
||||
auto obj = instance.at(i);
|
||||
std::string str ="Instance."+ std::to_string(i);
|
||||
setParameter(str + ".Id", obj.id);
|
||||
}
|
||||
}
|
||||
|
||||
std::string StartNodesRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void StartNodesRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string StartNodesRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void StartNodesRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
45
ehpc/src/model/StartNodesResult.cc
Normal file
45
ehpc/src/model/StartNodesResult.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ehpc/model/StartNodesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::EHPC;
|
||||
using namespace AlibabaCloud::EHPC::Model;
|
||||
|
||||
StartNodesResult::StartNodesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
StartNodesResult::StartNodesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
StartNodesResult::~StartNodesResult()
|
||||
{}
|
||||
|
||||
void StartNodesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
49
ehpc/src/model/StopClusterRequest.cc
Normal file
49
ehpc/src/model/StopClusterRequest.cc
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ehpc/model/StopClusterRequest.h>
|
||||
|
||||
using AlibabaCloud::EHPC::Model::StopClusterRequest;
|
||||
|
||||
StopClusterRequest::StopClusterRequest() :
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "StopCluster")
|
||||
{}
|
||||
|
||||
StopClusterRequest::~StopClusterRequest()
|
||||
{}
|
||||
|
||||
std::string StopClusterRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void StopClusterRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string StopClusterRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void StopClusterRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
45
ehpc/src/model/StopClusterResult.cc
Normal file
45
ehpc/src/model/StopClusterResult.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ehpc/model/StopClusterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::EHPC;
|
||||
using namespace AlibabaCloud::EHPC::Model;
|
||||
|
||||
StopClusterResult::StopClusterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
StopClusterResult::StopClusterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
StopClusterResult::~StopClusterResult()
|
||||
{}
|
||||
|
||||
void StopClusterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::EHPC::Model::StopJobsRequest;
|
||||
|
||||
StopJobsRequest::StopJobsRequest() :
|
||||
RpcServiceRequest("ehpc", "2017-07-14", "StopJobs")
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "StopJobs")
|
||||
{}
|
||||
|
||||
StopJobsRequest::~StopJobsRequest()
|
||||
|
||||
76
ehpc/src/model/StopNodesRequest.cc
Normal file
76
ehpc/src/model/StopNodesRequest.cc
Normal file
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ehpc/model/StopNodesRequest.h>
|
||||
|
||||
using AlibabaCloud::EHPC::Model::StopNodesRequest;
|
||||
|
||||
StopNodesRequest::StopNodesRequest() :
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "StopNodes")
|
||||
{}
|
||||
|
||||
StopNodesRequest::~StopNodesRequest()
|
||||
{}
|
||||
|
||||
std::string StopNodesRequest::getRole()const
|
||||
{
|
||||
return role_;
|
||||
}
|
||||
|
||||
void StopNodesRequest::setRole(const std::string& role)
|
||||
{
|
||||
role_ = role;
|
||||
setParameter("Role", role);
|
||||
}
|
||||
|
||||
std::vector<StopNodesRequest::Instance> StopNodesRequest::getInstance()const
|
||||
{
|
||||
return instance_;
|
||||
}
|
||||
|
||||
void StopNodesRequest::setInstance(const std::vector<Instance>& instance)
|
||||
{
|
||||
instance_ = instance;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= instance.size(); i++) {
|
||||
auto obj = instance.at(i);
|
||||
std::string str ="Instance."+ std::to_string(i);
|
||||
setParameter(str + ".Id", obj.id);
|
||||
}
|
||||
}
|
||||
|
||||
std::string StopNodesRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void StopNodesRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string StopNodesRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void StopNodesRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
45
ehpc/src/model/StopNodesResult.cc
Normal file
45
ehpc/src/model/StopNodesResult.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ehpc/model/StopNodesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::EHPC;
|
||||
using namespace AlibabaCloud::EHPC::Model;
|
||||
|
||||
StopNodesResult::StopNodesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
StopNodesResult::StopNodesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
StopNodesResult::~StopNodesResult()
|
||||
{}
|
||||
|
||||
void StopNodesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::EHPC::Model::SubmitJobRequest;
|
||||
|
||||
SubmitJobRequest::SubmitJobRequest() :
|
||||
RpcServiceRequest("ehpc", "2017-07-14", "SubmitJob")
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "SubmitJob")
|
||||
{}
|
||||
|
||||
SubmitJobRequest::~SubmitJobRequest()
|
||||
|
||||
@@ -40,13 +40,13 @@ void SubmitJobResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["JobId"].isNull())
|
||||
jobId_ = value["JobId"].asString();
|
||||
if(!value["JobId"].isNull())
|
||||
jobId_ = value["JobId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string SubmitJobResult::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
std::string SubmitJobResult::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::EHPC::Model::UpgradeClientRequest;
|
||||
|
||||
UpgradeClientRequest::UpgradeClientRequest() :
|
||||
RpcServiceRequest("ehpc", "2017-07-14", "UpgradeClient")
|
||||
RpcServiceRequest("ehpc", "2018-04-12", "UpgradeClient")
|
||||
{}
|
||||
|
||||
UpgradeClientRequest::~UpgradeClientRequest()
|
||||
|
||||
Reference in New Issue
Block a user