Fix build failed on windows
This commit is contained in:
@@ -22,46 +22,38 @@ using namespace AlibabaCloud::Location;
|
||||
using namespace AlibabaCloud::Cms;
|
||||
using namespace AlibabaCloud::Cms::Model;
|
||||
|
||||
namespace
|
||||
{
|
||||
const std::string SERVICE_NAME = "Cms";
|
||||
}
|
||||
|
||||
CmsClient::CmsClient(const Credentials &credentials, const ClientConfiguration &configuration) :
|
||||
RpcServiceClient(std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), "cms");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cms");
|
||||
}
|
||||
|
||||
CmsClient::CmsClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(credentialsProvider, configuration)
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), "cms");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cms");
|
||||
}
|
||||
|
||||
CmsClient::CmsClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), "cms");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cms");
|
||||
}
|
||||
|
||||
CmsClient::~CmsClient()
|
||||
{}
|
||||
|
||||
CoreClient::EndpointOutcome CmsClient::endpoint()const
|
||||
{
|
||||
if(!configuration().endpoint().empty())
|
||||
return CoreClient::EndpointOutcome(configuration().endpoint());
|
||||
|
||||
auto endpoint = endpointProvider_->getEndpoint();
|
||||
|
||||
if (endpoint.empty())
|
||||
return CoreClient::EndpointOutcome(Error("InvalidEndpoint",""));
|
||||
else
|
||||
return CoreClient::EndpointOutcome(endpoint);
|
||||
}
|
||||
|
||||
CmsClient::ProfileSetOutcome CmsClient::profileSet(const ProfileSetRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ProfileSetOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -94,10 +86,10 @@ CmsClient::ProfileSetOutcomeCallable CmsClient::profileSetCallable(const Profile
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CmsClient::ListProductOfActiceAlertOutcome CmsClient::listProductOfActiceAlert(const ListProductOfActiceAlertRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListProductOfActiceAlertOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -130,10 +122,10 @@ CmsClient::ListProductOfActiceAlertOutcomeCallable CmsClient::listProductOfActic
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CmsClient::DeleteCustomMetricOutcome CmsClient::deleteCustomMetric(const DeleteCustomMetricRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteCustomMetricOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -166,10 +158,10 @@ CmsClient::DeleteCustomMetricOutcomeCallable CmsClient::deleteCustomMetricCallab
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CmsClient::GetNotifyPolicyOutcome CmsClient::getNotifyPolicy(const GetNotifyPolicyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetNotifyPolicyOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -202,10 +194,10 @@ CmsClient::GetNotifyPolicyOutcomeCallable CmsClient::getNotifyPolicyCallable(con
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CmsClient::NodeUninstallOutcome CmsClient::nodeUninstall(const NodeUninstallRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return NodeUninstallOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -238,10 +230,10 @@ CmsClient::NodeUninstallOutcomeCallable CmsClient::nodeUninstallCallable(const N
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CmsClient::QueryCustomEventCountOutcome CmsClient::queryCustomEventCount(const QueryCustomEventCountRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryCustomEventCountOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -274,10 +266,10 @@ CmsClient::QueryCustomEventCountOutcomeCallable CmsClient::queryCustomEventCount
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CmsClient::UpdateMyGroupInstancesOutcome CmsClient::updateMyGroupInstances(const UpdateMyGroupInstancesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateMyGroupInstancesOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -310,10 +302,10 @@ CmsClient::UpdateMyGroupInstancesOutcomeCallable CmsClient::updateMyGroupInstanc
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CmsClient::ProfileGetOutcome CmsClient::profileGet(const ProfileGetRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ProfileGetOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -346,10 +338,10 @@ CmsClient::ProfileGetOutcomeCallable CmsClient::profileGetCallable(const Profile
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CmsClient::PutSystemEventOutcome CmsClient::putSystemEvent(const PutSystemEventRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return PutSystemEventOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -382,10 +374,10 @@ CmsClient::PutSystemEventOutcomeCallable CmsClient::putSystemEventCallable(const
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CmsClient::QueryCustomMetricListOutcome CmsClient::queryCustomMetricList(const QueryCustomMetricListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryCustomMetricListOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -418,10 +410,10 @@ CmsClient::QueryCustomMetricListOutcomeCallable CmsClient::queryCustomMetricList
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CmsClient::EnableActiveAlertOutcome CmsClient::enableActiveAlert(const EnableActiveAlertRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return EnableActiveAlertOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -454,10 +446,10 @@ CmsClient::EnableActiveAlertOutcomeCallable CmsClient::enableActiveAlertCallable
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CmsClient::QuerySystemEventDetailOutcome CmsClient::querySystemEventDetail(const QuerySystemEventDetailRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QuerySystemEventDetailOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -490,10 +482,10 @@ CmsClient::QuerySystemEventDetailOutcomeCallable CmsClient::querySystemEventDeta
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CmsClient::CreateNotifyPolicyOutcome CmsClient::createNotifyPolicy(const CreateNotifyPolicyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateNotifyPolicyOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -526,10 +518,10 @@ CmsClient::CreateNotifyPolicyOutcomeCallable CmsClient::createNotifyPolicyCallab
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CmsClient::DeleteAlarmOutcome CmsClient::deleteAlarm(const DeleteAlarmRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteAlarmOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -562,10 +554,10 @@ CmsClient::DeleteAlarmOutcomeCallable CmsClient::deleteAlarmCallable(const Delet
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CmsClient::NodeListOutcome CmsClient::nodeList(const NodeListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return NodeListOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -598,10 +590,10 @@ CmsClient::NodeListOutcomeCallable CmsClient::nodeListCallable(const NodeListReq
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CmsClient::NodeProcessesOutcome CmsClient::nodeProcesses(const NodeProcessesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return NodeProcessesOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -634,10 +626,10 @@ CmsClient::NodeProcessesOutcomeCallable CmsClient::nodeProcessesCallable(const N
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CmsClient::ListMyGroupCategoriesOutcome CmsClient::listMyGroupCategories(const ListMyGroupCategoriesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListMyGroupCategoriesOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -670,10 +662,10 @@ CmsClient::ListMyGroupCategoriesOutcomeCallable CmsClient::listMyGroupCategories
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CmsClient::QueryMetricListOutcome CmsClient::queryMetricList(const QueryMetricListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryMetricListOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -706,10 +698,10 @@ CmsClient::QueryMetricListOutcomeCallable CmsClient::queryMetricListCallable(con
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CmsClient::ListMyGroupInstancesDetailsOutcome CmsClient::listMyGroupInstancesDetails(const ListMyGroupInstancesDetailsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListMyGroupInstancesDetailsOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -742,10 +734,10 @@ CmsClient::ListMyGroupInstancesDetailsOutcomeCallable CmsClient::listMyGroupInst
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CmsClient::DisableAlarmOutcome CmsClient::disableAlarm(const DisableAlarmRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DisableAlarmOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -778,10 +770,10 @@ CmsClient::DisableAlarmOutcomeCallable CmsClient::disableAlarmCallable(const Dis
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CmsClient::PutCustomMetricOutcome CmsClient::putCustomMetric(const PutCustomMetricRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return PutCustomMetricOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -814,10 +806,10 @@ CmsClient::PutCustomMetricOutcomeCallable CmsClient::putCustomMetricCallable(con
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CmsClient::DeleteMyGroupsOutcome CmsClient::deleteMyGroups(const DeleteMyGroupsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteMyGroupsOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -850,10 +842,10 @@ CmsClient::DeleteMyGroupsOutcomeCallable CmsClient::deleteMyGroupsCallable(const
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CmsClient::QueryMetricLastOutcome CmsClient::queryMetricLast(const QueryMetricLastRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryMetricLastOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -886,10 +878,10 @@ CmsClient::QueryMetricLastOutcomeCallable CmsClient::queryMetricLastCallable(con
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CmsClient::QuerySystemEventHistogramOutcome CmsClient::querySystemEventHistogram(const QuerySystemEventHistogramRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QuerySystemEventHistogramOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -922,10 +914,10 @@ CmsClient::QuerySystemEventHistogramOutcomeCallable CmsClient::querySystemEventH
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CmsClient::DescribeAlarmHistoryOutcome CmsClient::describeAlarmHistory(const DescribeAlarmHistoryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeAlarmHistoryOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -958,10 +950,10 @@ CmsClient::DescribeAlarmHistoryOutcomeCallable CmsClient::describeAlarmHistoryCa
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CmsClient::NodeStatusOutcome CmsClient::nodeStatus(const NodeStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return NodeStatusOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -994,10 +986,10 @@ CmsClient::NodeStatusOutcomeCallable CmsClient::nodeStatusCallable(const NodeSta
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CmsClient::DeleteMyGroupInstancesOutcome CmsClient::deleteMyGroupInstances(const DeleteMyGroupInstancesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteMyGroupInstancesOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1030,10 +1022,10 @@ CmsClient::DeleteMyGroupInstancesOutcomeCallable CmsClient::deleteMyGroupInstanc
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CmsClient::ListProductOfActiveAlertOutcome CmsClient::listProductOfActiveAlert(const ListProductOfActiveAlertRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListProductOfActiveAlertOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1066,10 +1058,10 @@ CmsClient::ListProductOfActiveAlertOutcomeCallable CmsClient::listProductOfActiv
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CmsClient::CreateMyGroupsOutcome CmsClient::createMyGroups(const CreateMyGroupsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateMyGroupsOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1102,10 +1094,10 @@ CmsClient::CreateMyGroupsOutcomeCallable CmsClient::createMyGroupsCallable(const
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CmsClient::CreateAlarmOutcome CmsClient::createAlarm(const CreateAlarmRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateAlarmOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1138,10 +1130,10 @@ CmsClient::CreateAlarmOutcomeCallable CmsClient::createAlarmCallable(const Creat
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CmsClient::ListActiveAlertRuleOutcome CmsClient::listActiveAlertRule(const ListActiveAlertRuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListActiveAlertRuleOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1174,10 +1166,10 @@ CmsClient::ListActiveAlertRuleOutcomeCallable CmsClient::listActiveAlertRuleCall
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CmsClient::ListMyGroupsOutcome CmsClient::listMyGroups(const ListMyGroupsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListMyGroupsOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1210,10 +1202,10 @@ CmsClient::ListMyGroupsOutcomeCallable CmsClient::listMyGroupsCallable(const Lis
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CmsClient::DeleteNotifyPolicyOutcome CmsClient::deleteNotifyPolicy(const DeleteNotifyPolicyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteNotifyPolicyOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1246,10 +1238,10 @@ CmsClient::DeleteNotifyPolicyOutcomeCallable CmsClient::deleteNotifyPolicyCallab
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CmsClient::AddMyGroupInstancesOutcome CmsClient::addMyGroupInstances(const AddMyGroupInstancesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AddMyGroupInstancesOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1282,10 +1274,10 @@ CmsClient::AddMyGroupInstancesOutcomeCallable CmsClient::addMyGroupInstancesCall
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CmsClient::NodeProcessDeleteOutcome CmsClient::nodeProcessDelete(const NodeProcessDeleteRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return NodeProcessDeleteOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1318,10 +1310,10 @@ CmsClient::NodeProcessDeleteOutcomeCallable CmsClient::nodeProcessDeleteCallable
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CmsClient::UpdateMyGroupsOutcome CmsClient::updateMyGroups(const UpdateMyGroupsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateMyGroupsOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1354,10 +1346,10 @@ CmsClient::UpdateMyGroupsOutcomeCallable CmsClient::updateMyGroupsCallable(const
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CmsClient::QuerySystemEventCountOutcome CmsClient::querySystemEventCount(const QuerySystemEventCountRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QuerySystemEventCountOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1390,10 +1382,10 @@ CmsClient::QuerySystemEventCountOutcomeCallable CmsClient::querySystemEventCount
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CmsClient::ListMyGroupInstancesOutcome CmsClient::listMyGroupInstances(const ListMyGroupInstancesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListMyGroupInstancesOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1426,10 +1418,10 @@ CmsClient::ListMyGroupInstancesOutcomeCallable CmsClient::listMyGroupInstancesCa
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CmsClient::AccessKeyGetOutcome CmsClient::accessKeyGet(const AccessKeyGetRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AccessKeyGetOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1462,10 +1454,10 @@ CmsClient::AccessKeyGetOutcomeCallable CmsClient::accessKeyGetCallable(const Acc
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CmsClient::EnableActiceAlertOutcome CmsClient::enableActiceAlert(const EnableActiceAlertRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return EnableActiceAlertOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1498,10 +1490,10 @@ CmsClient::EnableActiceAlertOutcomeCallable CmsClient::enableActiceAlertCallable
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CmsClient::PutMetricDataOutcome CmsClient::putMetricData(const PutMetricDataRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return PutMetricDataOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1534,10 +1526,10 @@ CmsClient::PutMetricDataOutcomeCallable CmsClient::putMetricDataCallable(const P
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CmsClient::DisableActiveAlertOutcome CmsClient::disableActiveAlert(const DisableActiveAlertRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DisableActiveAlertOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1570,10 +1562,10 @@ CmsClient::DisableActiveAlertOutcomeCallable CmsClient::disableActiveAlertCallab
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CmsClient::DisableActiceAlertOutcome CmsClient::disableActiceAlert(const DisableActiceAlertRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DisableActiceAlertOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1606,10 +1598,10 @@ CmsClient::DisableActiceAlertOutcomeCallable CmsClient::disableActiceAlertCallab
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CmsClient::ListAlarmOutcome CmsClient::listAlarm(const ListAlarmRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListAlarmOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1642,10 +1634,10 @@ CmsClient::ListAlarmOutcomeCallable CmsClient::listAlarmCallable(const ListAlarm
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CmsClient::NodeInstallOutcome CmsClient::nodeInstall(const NodeInstallRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return NodeInstallOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1678,10 +1670,10 @@ CmsClient::NodeInstallOutcomeCallable CmsClient::nodeInstallCallable(const NodeI
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CmsClient::QueryCustomEventHistogramOutcome CmsClient::queryCustomEventHistogram(const QueryCustomEventHistogramRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryCustomEventHistogramOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1714,10 +1706,10 @@ CmsClient::QueryCustomEventHistogramOutcomeCallable CmsClient::queryCustomEventH
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CmsClient::PutEventOutcome CmsClient::putEvent(const PutEventRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return PutEventOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1750,10 +1742,10 @@ CmsClient::PutEventOutcomeCallable CmsClient::putEventCallable(const PutEventReq
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CmsClient::ListAlarmHistoryOutcome CmsClient::listAlarmHistory(const ListAlarmHistoryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListAlarmHistoryOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1786,10 +1778,10 @@ CmsClient::ListAlarmHistoryOutcomeCallable CmsClient::listAlarmHistoryCallable(c
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CmsClient::NodeStatusListOutcome CmsClient::nodeStatusList(const NodeStatusListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return NodeStatusListOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1822,10 +1814,10 @@ CmsClient::NodeStatusListOutcomeCallable CmsClient::nodeStatusListCallable(const
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CmsClient::ListContactGroupOutcome CmsClient::listContactGroup(const ListContactGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListContactGroupOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1858,10 +1850,10 @@ CmsClient::ListContactGroupOutcomeCallable CmsClient::listContactGroupCallable(c
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CmsClient::GetMyGroupsOutcome CmsClient::getMyGroups(const GetMyGroupsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetMyGroupsOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1894,10 +1886,10 @@ CmsClient::GetMyGroupsOutcomeCallable CmsClient::getMyGroupsCallable(const GetMy
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CmsClient::ListNotifyPolicyOutcome CmsClient::listNotifyPolicy(const ListNotifyPolicyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListNotifyPolicyOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1930,10 +1922,10 @@ CmsClient::ListNotifyPolicyOutcomeCallable CmsClient::listNotifyPolicyCallable(c
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CmsClient::UpdateAlarmOutcome CmsClient::updateAlarm(const UpdateAlarmRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateAlarmOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1966,10 +1958,10 @@ CmsClient::UpdateAlarmOutcomeCallable CmsClient::updateAlarmCallable(const Updat
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CmsClient::NodeProcessCreateOutcome CmsClient::nodeProcessCreate(const NodeProcessCreateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return NodeProcessCreateOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -2002,10 +1994,10 @@ CmsClient::NodeProcessCreateOutcomeCallable CmsClient::nodeProcessCreateCallable
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CmsClient::EnableAlarmOutcome CmsClient::enableAlarm(const EnableAlarmRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return EnableAlarmOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -2038,10 +2030,10 @@ CmsClient::EnableAlarmOutcomeCallable CmsClient::enableAlarmCallable(const Enabl
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
CmsClient::QueryCustomEventDetailOutcome CmsClient::queryCustomEventDetail(const QueryCustomEventDetailRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryCustomEventDetailOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -2074,4 +2066,4 @@ CmsClient::QueryCustomEventDetailOutcomeCallable CmsClient::queryCustomEventDeta
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user