|
|
@@ -1671,150 +1671,6 @@ EHPCClient::GetIfEcsTypeSupportHtConfigOutcomeCallable EHPCClient::getIfEcsTypeS
|
|
|
return task->get_future();
|
|
|
}
|
|
|
|
|
|
-EHPCClient::GetInstanceReportOutcome EHPCClient::getInstanceReport(const GetInstanceReportRequest &request) const
|
|
|
-{
|
|
|
- auto endpointOutcome = endpointProvider_->getEndpoint();
|
|
|
- if (!endpointOutcome.isSuccess())
|
|
|
- return GetInstanceReportOutcome(endpointOutcome.error());
|
|
|
-
|
|
|
- auto outcome = makeRequest(endpointOutcome.result(), request);
|
|
|
-
|
|
|
- if (outcome.isSuccess())
|
|
|
- return GetInstanceReportOutcome(GetInstanceReportResult(outcome.result()));
|
|
|
- else
|
|
|
- return GetInstanceReportOutcome(outcome.error());
|
|
|
-}
|
|
|
-
|
|
|
-void EHPCClient::getInstanceReportAsync(const GetInstanceReportRequest& request, const GetInstanceReportAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
|
|
-{
|
|
|
- auto fn = [this, request, handler, context]()
|
|
|
- {
|
|
|
- handler(this, request, getInstanceReport(request), context);
|
|
|
- };
|
|
|
-
|
|
|
- asyncExecute(new Runnable(fn));
|
|
|
-}
|
|
|
-
|
|
|
-EHPCClient::GetInstanceReportOutcomeCallable EHPCClient::getInstanceReportCallable(const GetInstanceReportRequest &request) const
|
|
|
-{
|
|
|
- auto task = std::make_shared<std::packaged_task<GetInstanceReportOutcome()>>(
|
|
|
- [this, request]()
|
|
|
- {
|
|
|
- return this->getInstanceReport(request);
|
|
|
- });
|
|
|
-
|
|
|
- asyncExecute(new Runnable([task]() { (*task)(); }));
|
|
|
- return task->get_future();
|
|
|
-}
|
|
|
-
|
|
|
-EHPCClient::GetJobReportOutcome EHPCClient::getJobReport(const GetJobReportRequest &request) const
|
|
|
-{
|
|
|
- auto endpointOutcome = endpointProvider_->getEndpoint();
|
|
|
- if (!endpointOutcome.isSuccess())
|
|
|
- return GetJobReportOutcome(endpointOutcome.error());
|
|
|
-
|
|
|
- auto outcome = makeRequest(endpointOutcome.result(), request);
|
|
|
-
|
|
|
- if (outcome.isSuccess())
|
|
|
- return GetJobReportOutcome(GetJobReportResult(outcome.result()));
|
|
|
- else
|
|
|
- return GetJobReportOutcome(outcome.error());
|
|
|
-}
|
|
|
-
|
|
|
-void EHPCClient::getJobReportAsync(const GetJobReportRequest& request, const GetJobReportAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
|
|
-{
|
|
|
- auto fn = [this, request, handler, context]()
|
|
|
- {
|
|
|
- handler(this, request, getJobReport(request), context);
|
|
|
- };
|
|
|
-
|
|
|
- asyncExecute(new Runnable(fn));
|
|
|
-}
|
|
|
-
|
|
|
-EHPCClient::GetJobReportOutcomeCallable EHPCClient::getJobReportCallable(const GetJobReportRequest &request) const
|
|
|
-{
|
|
|
- auto task = std::make_shared<std::packaged_task<GetJobReportOutcome()>>(
|
|
|
- [this, request]()
|
|
|
- {
|
|
|
- return this->getJobReport(request);
|
|
|
- });
|
|
|
-
|
|
|
- asyncExecute(new Runnable([task]() { (*task)(); }));
|
|
|
- return task->get_future();
|
|
|
-}
|
|
|
-
|
|
|
-EHPCClient::GetTotalQueueReportOutcome EHPCClient::getTotalQueueReport(const GetTotalQueueReportRequest &request) const
|
|
|
-{
|
|
|
- auto endpointOutcome = endpointProvider_->getEndpoint();
|
|
|
- if (!endpointOutcome.isSuccess())
|
|
|
- return GetTotalQueueReportOutcome(endpointOutcome.error());
|
|
|
-
|
|
|
- auto outcome = makeRequest(endpointOutcome.result(), request);
|
|
|
-
|
|
|
- if (outcome.isSuccess())
|
|
|
- return GetTotalQueueReportOutcome(GetTotalQueueReportResult(outcome.result()));
|
|
|
- else
|
|
|
- return GetTotalQueueReportOutcome(outcome.error());
|
|
|
-}
|
|
|
-
|
|
|
-void EHPCClient::getTotalQueueReportAsync(const GetTotalQueueReportRequest& request, const GetTotalQueueReportAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
|
|
-{
|
|
|
- auto fn = [this, request, handler, context]()
|
|
|
- {
|
|
|
- handler(this, request, getTotalQueueReport(request), context);
|
|
|
- };
|
|
|
-
|
|
|
- asyncExecute(new Runnable(fn));
|
|
|
-}
|
|
|
-
|
|
|
-EHPCClient::GetTotalQueueReportOutcomeCallable EHPCClient::getTotalQueueReportCallable(const GetTotalQueueReportRequest &request) const
|
|
|
-{
|
|
|
- auto task = std::make_shared<std::packaged_task<GetTotalQueueReportOutcome()>>(
|
|
|
- [this, request]()
|
|
|
- {
|
|
|
- return this->getTotalQueueReport(request);
|
|
|
- });
|
|
|
-
|
|
|
- asyncExecute(new Runnable([task]() { (*task)(); }));
|
|
|
- return task->get_future();
|
|
|
-}
|
|
|
-
|
|
|
-EHPCClient::GetTotalUserReportOutcome EHPCClient::getTotalUserReport(const GetTotalUserReportRequest &request) const
|
|
|
-{
|
|
|
- auto endpointOutcome = endpointProvider_->getEndpoint();
|
|
|
- if (!endpointOutcome.isSuccess())
|
|
|
- return GetTotalUserReportOutcome(endpointOutcome.error());
|
|
|
-
|
|
|
- auto outcome = makeRequest(endpointOutcome.result(), request);
|
|
|
-
|
|
|
- if (outcome.isSuccess())
|
|
|
- return GetTotalUserReportOutcome(GetTotalUserReportResult(outcome.result()));
|
|
|
- else
|
|
|
- return GetTotalUserReportOutcome(outcome.error());
|
|
|
-}
|
|
|
-
|
|
|
-void EHPCClient::getTotalUserReportAsync(const GetTotalUserReportRequest& request, const GetTotalUserReportAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
|
|
-{
|
|
|
- auto fn = [this, request, handler, context]()
|
|
|
- {
|
|
|
- handler(this, request, getTotalUserReport(request), context);
|
|
|
- };
|
|
|
-
|
|
|
- asyncExecute(new Runnable(fn));
|
|
|
-}
|
|
|
-
|
|
|
-EHPCClient::GetTotalUserReportOutcomeCallable EHPCClient::getTotalUserReportCallable(const GetTotalUserReportRequest &request) const
|
|
|
-{
|
|
|
- auto task = std::make_shared<std::packaged_task<GetTotalUserReportOutcome()>>(
|
|
|
- [this, request]()
|
|
|
- {
|
|
|
- return this->getTotalUserReport(request);
|
|
|
- });
|
|
|
-
|
|
|
- asyncExecute(new Runnable([task]() { (*task)(); }));
|
|
|
- return task->get_future();
|
|
|
-}
|
|
|
-
|
|
|
EHPCClient::GetVisualServiceStatusOutcome EHPCClient::getVisualServiceStatus(const GetVisualServiceStatusRequest &request) const
|
|
|
{
|
|
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
|
|
@@ -1887,42 +1743,6 @@ EHPCClient::GetWorkbenchTokenOutcomeCallable EHPCClient::getWorkbenchTokenCallab
|
|
|
return task->get_future();
|
|
|
}
|
|
|
|
|
|
-EHPCClient::InstallNFSClientOutcome EHPCClient::installNFSClient(const InstallNFSClientRequest &request) const
|
|
|
-{
|
|
|
- auto endpointOutcome = endpointProvider_->getEndpoint();
|
|
|
- if (!endpointOutcome.isSuccess())
|
|
|
- return InstallNFSClientOutcome(endpointOutcome.error());
|
|
|
-
|
|
|
- auto outcome = makeRequest(endpointOutcome.result(), request);
|
|
|
-
|
|
|
- if (outcome.isSuccess())
|
|
|
- return InstallNFSClientOutcome(InstallNFSClientResult(outcome.result()));
|
|
|
- else
|
|
|
- return InstallNFSClientOutcome(outcome.error());
|
|
|
-}
|
|
|
-
|
|
|
-void EHPCClient::installNFSClientAsync(const InstallNFSClientRequest& request, const InstallNFSClientAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
|
|
-{
|
|
|
- auto fn = [this, request, handler, context]()
|
|
|
- {
|
|
|
- handler(this, request, installNFSClient(request), context);
|
|
|
- };
|
|
|
-
|
|
|
- asyncExecute(new Runnable(fn));
|
|
|
-}
|
|
|
-
|
|
|
-EHPCClient::InstallNFSClientOutcomeCallable EHPCClient::installNFSClientCallable(const InstallNFSClientRequest &request) const
|
|
|
-{
|
|
|
- auto task = std::make_shared<std::packaged_task<InstallNFSClientOutcome()>>(
|
|
|
- [this, request]()
|
|
|
- {
|
|
|
- return this->installNFSClient(request);
|
|
|
- });
|
|
|
-
|
|
|
- asyncExecute(new Runnable([task]() { (*task)(); }));
|
|
|
- return task->get_future();
|
|
|
-}
|
|
|
-
|
|
|
EHPCClient::InstallSoftwareOutcome EHPCClient::installSoftware(const InstallSoftwareRequest &request) const
|
|
|
{
|
|
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|