Fix build failed on windows
This commit is contained in:
@@ -22,46 +22,38 @@ using namespace AlibabaCloud::Location;
|
||||
using namespace AlibabaCloud::Slb;
|
||||
using namespace AlibabaCloud::Slb::Model;
|
||||
|
||||
namespace
|
||||
{
|
||||
const std::string SERVICE_NAME = "Slb";
|
||||
}
|
||||
|
||||
SlbClient::SlbClient(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(), "slb");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "slb");
|
||||
}
|
||||
|
||||
SlbClient::SlbClient(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(), "slb");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "slb");
|
||||
}
|
||||
|
||||
SlbClient::SlbClient(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(), "slb");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "slb");
|
||||
}
|
||||
|
||||
SlbClient::~SlbClient()
|
||||
{}
|
||||
|
||||
CoreClient::EndpointOutcome SlbClient::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);
|
||||
}
|
||||
|
||||
SlbClient::CreateLoadBalancerUDPListenerOutcome SlbClient::createLoadBalancerUDPListener(const CreateLoadBalancerUDPListenerRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateLoadBalancerUDPListenerOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -94,10 +86,10 @@ SlbClient::CreateLoadBalancerUDPListenerOutcomeCallable SlbClient::createLoadBal
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::DescribeMasterSlaveVServerGroupsOutcome SlbClient::describeMasterSlaveVServerGroups(const DescribeMasterSlaveVServerGroupsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeMasterSlaveVServerGroupsOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -130,10 +122,10 @@ SlbClient::DescribeMasterSlaveVServerGroupsOutcomeCallable SlbClient::describeMa
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::StartLoadBalancerListenerOutcome SlbClient::startLoadBalancerListener(const StartLoadBalancerListenerRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return StartLoadBalancerListenerOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -166,10 +158,10 @@ SlbClient::StartLoadBalancerListenerOutcomeCallable SlbClient::startLoadBalancer
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::DescribeLoadBalancerTCPListenerAttributeOutcome SlbClient::describeLoadBalancerTCPListenerAttribute(const DescribeLoadBalancerTCPListenerAttributeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeLoadBalancerTCPListenerAttributeOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -202,10 +194,10 @@ SlbClient::DescribeLoadBalancerTCPListenerAttributeOutcomeCallable SlbClient::de
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::DescribeListenerAccessControlAttributeOutcome SlbClient::describeListenerAccessControlAttribute(const DescribeListenerAccessControlAttributeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeListenerAccessControlAttributeOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -238,10 +230,10 @@ SlbClient::DescribeListenerAccessControlAttributeOutcomeCallable SlbClient::desc
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::StopLoadBalancerListenerOutcome SlbClient::stopLoadBalancerListener(const StopLoadBalancerListenerRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return StopLoadBalancerListenerOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -274,10 +266,10 @@ SlbClient::StopLoadBalancerListenerOutcomeCallable SlbClient::stopLoadBalancerLi
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::SetLoadBalancerStatusOutcome SlbClient::setLoadBalancerStatus(const SetLoadBalancerStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SetLoadBalancerStatusOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -310,10 +302,10 @@ SlbClient::SetLoadBalancerStatusOutcomeCallable SlbClient::setLoadBalancerStatus
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::ModifyLoadBalancerInstanceSpecOutcome SlbClient::modifyLoadBalancerInstanceSpec(const ModifyLoadBalancerInstanceSpecRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyLoadBalancerInstanceSpecOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -346,10 +338,10 @@ SlbClient::ModifyLoadBalancerInstanceSpecOutcomeCallable SlbClient::modifyLoadBa
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::MoveResourceGroupOutcome SlbClient::moveResourceGroup(const MoveResourceGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return MoveResourceGroupOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -382,10 +374,10 @@ SlbClient::MoveResourceGroupOutcomeCallable SlbClient::moveResourceGroupCallable
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::SetLoadBalancerTCPListenerAttributeOutcome SlbClient::setLoadBalancerTCPListenerAttribute(const SetLoadBalancerTCPListenerAttributeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SetLoadBalancerTCPListenerAttributeOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -418,10 +410,10 @@ SlbClient::SetLoadBalancerTCPListenerAttributeOutcomeCallable SlbClient::setLoad
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::DeleteVServerGroupOutcome SlbClient::deleteVServerGroup(const DeleteVServerGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteVServerGroupOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -454,10 +446,10 @@ SlbClient::DeleteVServerGroupOutcomeCallable SlbClient::deleteVServerGroupCallab
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::DescribeVServerGroupAttributeOutcome SlbClient::describeVServerGroupAttribute(const DescribeVServerGroupAttributeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeVServerGroupAttributeOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -490,10 +482,10 @@ SlbClient::DescribeVServerGroupAttributeOutcomeCallable SlbClient::describeVServ
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::AddListenerWhiteListItemOutcome SlbClient::addListenerWhiteListItem(const AddListenerWhiteListItemRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AddListenerWhiteListItemOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -526,10 +518,10 @@ SlbClient::AddListenerWhiteListItemOutcomeCallable SlbClient::addListenerWhiteLi
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::RemoveTagsOutcome SlbClient::removeTags(const RemoveTagsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return RemoveTagsOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -562,10 +554,10 @@ SlbClient::RemoveTagsOutcomeCallable SlbClient::removeTagsCallable(const RemoveT
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::CreateLoadBalancerOutcome SlbClient::createLoadBalancer(const CreateLoadBalancerRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateLoadBalancerOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -598,10 +590,10 @@ SlbClient::CreateLoadBalancerOutcomeCallable SlbClient::createLoadBalancerCallab
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::SetLoadBalancerHTTPListenerAttributeOutcome SlbClient::setLoadBalancerHTTPListenerAttribute(const SetLoadBalancerHTTPListenerAttributeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SetLoadBalancerHTTPListenerAttributeOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -634,10 +626,10 @@ SlbClient::SetLoadBalancerHTTPListenerAttributeOutcomeCallable SlbClient::setLoa
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::SetLoadBalancerAutoReleaseTimeOutcome SlbClient::setLoadBalancerAutoReleaseTime(const SetLoadBalancerAutoReleaseTimeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SetLoadBalancerAutoReleaseTimeOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -670,10 +662,10 @@ SlbClient::SetLoadBalancerAutoReleaseTimeOutcomeCallable SlbClient::setLoadBalan
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::SetListenerAccessControlStatusOutcome SlbClient::setListenerAccessControlStatus(const SetListenerAccessControlStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SetListenerAccessControlStatusOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -706,10 +698,10 @@ SlbClient::SetListenerAccessControlStatusOutcomeCallable SlbClient::setListenerA
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::UploadCACertificateOutcome SlbClient::uploadCACertificate(const UploadCACertificateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UploadCACertificateOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -742,10 +734,10 @@ SlbClient::UploadCACertificateOutcomeCallable SlbClient::uploadCACertificateCall
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::DescribeZonesOutcome SlbClient::describeZones(const DescribeZonesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeZonesOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -778,10 +770,10 @@ SlbClient::DescribeZonesOutcomeCallable SlbClient::describeZonesCallable(const D
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::SetLoadBalancerHTTPSListenerAttributeOutcome SlbClient::setLoadBalancerHTTPSListenerAttribute(const SetLoadBalancerHTTPSListenerAttributeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SetLoadBalancerHTTPSListenerAttributeOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -814,10 +806,10 @@ SlbClient::SetLoadBalancerHTTPSListenerAttributeOutcomeCallable SlbClient::setLo
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::DeleteLoadBalancerListenerOutcome SlbClient::deleteLoadBalancerListener(const DeleteLoadBalancerListenerRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteLoadBalancerListenerOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -850,10 +842,10 @@ SlbClient::DeleteLoadBalancerListenerOutcomeCallable SlbClient::deleteLoadBalanc
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::DescribeVServerGroupsOutcome SlbClient::describeVServerGroups(const DescribeVServerGroupsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeVServerGroupsOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -886,10 +878,10 @@ SlbClient::DescribeVServerGroupsOutcomeCallable SlbClient::describeVServerGroups
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::DescribeLoadBalancerHTTPListenerAttributeOutcome SlbClient::describeLoadBalancerHTTPListenerAttribute(const DescribeLoadBalancerHTTPListenerAttributeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeLoadBalancerHTTPListenerAttributeOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -922,10 +914,10 @@ SlbClient::DescribeLoadBalancerHTTPListenerAttributeOutcomeCallable SlbClient::d
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::DescribeTagsOutcome SlbClient::describeTags(const DescribeTagsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeTagsOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -958,10 +950,10 @@ SlbClient::DescribeTagsOutcomeCallable SlbClient::describeTagsCallable(const Des
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::DeleteLoadBalancerOutcome SlbClient::deleteLoadBalancer(const DeleteLoadBalancerRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteLoadBalancerOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -994,10 +986,10 @@ SlbClient::DeleteLoadBalancerOutcomeCallable SlbClient::deleteLoadBalancerCallab
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::CreateVServerGroupOutcome SlbClient::createVServerGroup(const CreateVServerGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateVServerGroupOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1030,10 +1022,10 @@ SlbClient::CreateVServerGroupOutcomeCallable SlbClient::createVServerGroupCallab
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::DescribeLoadBalancersRelatedEcsOutcome SlbClient::describeLoadBalancersRelatedEcs(const DescribeLoadBalancersRelatedEcsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeLoadBalancersRelatedEcsOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1066,10 +1058,10 @@ SlbClient::DescribeLoadBalancersRelatedEcsOutcomeCallable SlbClient::describeLoa
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::DescribeLoadBalancersOutcome SlbClient::describeLoadBalancers(const DescribeLoadBalancersRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeLoadBalancersOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1102,10 +1094,10 @@ SlbClient::DescribeLoadBalancersOutcomeCallable SlbClient::describeLoadBalancers
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::SetCACertificateNameOutcome SlbClient::setCACertificateName(const SetCACertificateNameRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SetCACertificateNameOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1138,10 +1130,10 @@ SlbClient::SetCACertificateNameOutcomeCallable SlbClient::setCACertificateNameCa
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::DescribeMasterSlaveVServerGroupAttributeOutcome SlbClient::describeMasterSlaveVServerGroupAttribute(const DescribeMasterSlaveVServerGroupAttributeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeMasterSlaveVServerGroupAttributeOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1174,10 +1166,10 @@ SlbClient::DescribeMasterSlaveVServerGroupAttributeOutcomeCallable SlbClient::de
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::CreateLoadBalancerHTTPListenerOutcome SlbClient::createLoadBalancerHTTPListener(const CreateLoadBalancerHTTPListenerRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateLoadBalancerHTTPListenerOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1210,10 +1202,10 @@ SlbClient::CreateLoadBalancerHTTPListenerOutcomeCallable SlbClient::createLoadBa
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::RemoveBackendServersOutcome SlbClient::removeBackendServers(const RemoveBackendServersRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return RemoveBackendServersOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1246,10 +1238,10 @@ SlbClient::RemoveBackendServersOutcomeCallable SlbClient::removeBackendServersCa
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::ModifyVServerGroupBackendServersOutcome SlbClient::modifyVServerGroupBackendServers(const ModifyVServerGroupBackendServersRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyVServerGroupBackendServersOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1282,10 +1274,10 @@ SlbClient::ModifyVServerGroupBackendServersOutcomeCallable SlbClient::modifyVSer
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::DescribeLoadBalancerUDPListenerAttributeOutcome SlbClient::describeLoadBalancerUDPListenerAttribute(const DescribeLoadBalancerUDPListenerAttributeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeLoadBalancerUDPListenerAttributeOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1318,10 +1310,10 @@ SlbClient::DescribeLoadBalancerUDPListenerAttributeOutcomeCallable SlbClient::de
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::DescribeAccessLogsDownloadAttributeOutcome SlbClient::describeAccessLogsDownloadAttribute(const DescribeAccessLogsDownloadAttributeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeAccessLogsDownloadAttributeOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1354,10 +1346,10 @@ SlbClient::DescribeAccessLogsDownloadAttributeOutcomeCallable SlbClient::describ
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::DeleteRulesOutcome SlbClient::deleteRules(const DeleteRulesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteRulesOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1390,10 +1382,10 @@ SlbClient::DeleteRulesOutcomeCallable SlbClient::deleteRulesCallable(const Delet
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::DeleteMasterSlaveVServerGroupOutcome SlbClient::deleteMasterSlaveVServerGroup(const DeleteMasterSlaveVServerGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteMasterSlaveVServerGroupOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1426,10 +1418,10 @@ SlbClient::DeleteMasterSlaveVServerGroupOutcomeCallable SlbClient::deleteMasterS
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::DescribeCACertificatesOutcome SlbClient::describeCACertificates(const DescribeCACertificatesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeCACertificatesOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1462,10 +1454,10 @@ SlbClient::DescribeCACertificatesOutcomeCallable SlbClient::describeCACertificat
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::CreateMasterSlaveVServerGroupOutcome SlbClient::createMasterSlaveVServerGroup(const CreateMasterSlaveVServerGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateMasterSlaveVServerGroupOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1498,10 +1490,10 @@ SlbClient::CreateMasterSlaveVServerGroupOutcomeCallable SlbClient::createMasterS
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::SetBackendServersOutcome SlbClient::setBackendServers(const SetBackendServersRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SetBackendServersOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1534,10 +1526,10 @@ SlbClient::SetBackendServersOutcomeCallable SlbClient::setBackendServersCallable
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::RemoveVServerGroupBackendServersOutcome SlbClient::removeVServerGroupBackendServers(const RemoveVServerGroupBackendServersRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return RemoveVServerGroupBackendServersOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1570,10 +1562,10 @@ SlbClient::RemoveVServerGroupBackendServersOutcomeCallable SlbClient::removeVSer
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::DescribeLoadBalancerAttributeOutcome SlbClient::describeLoadBalancerAttribute(const DescribeLoadBalancerAttributeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeLoadBalancerAttributeOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1606,10 +1598,10 @@ SlbClient::DescribeLoadBalancerAttributeOutcomeCallable SlbClient::describeLoadB
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::CreateMasterSlaveServerGroupOutcome SlbClient::createMasterSlaveServerGroup(const CreateMasterSlaveServerGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateMasterSlaveServerGroupOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1642,10 +1634,10 @@ SlbClient::CreateMasterSlaveServerGroupOutcomeCallable SlbClient::createMasterSl
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::SetServerCertificateNameOutcome SlbClient::setServerCertificateName(const SetServerCertificateNameRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SetServerCertificateNameOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1678,10 +1670,10 @@ SlbClient::SetServerCertificateNameOutcomeCallable SlbClient::setServerCertifica
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::DeleteCACertificateOutcome SlbClient::deleteCACertificate(const DeleteCACertificateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteCACertificateOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1714,10 +1706,10 @@ SlbClient::DeleteCACertificateOutcomeCallable SlbClient::deleteCACertificateCall
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::CreateLoadBalancerTCPListenerOutcome SlbClient::createLoadBalancerTCPListener(const CreateLoadBalancerTCPListenerRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateLoadBalancerTCPListenerOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1750,10 +1742,10 @@ SlbClient::CreateLoadBalancerTCPListenerOutcomeCallable SlbClient::createLoadBal
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::SetRuleOutcome SlbClient::setRule(const SetRuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SetRuleOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1786,10 +1778,10 @@ SlbClient::SetRuleOutcomeCallable SlbClient::setRuleCallable(const SetRuleReques
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::DescribeMasterSlaveServerGroupsOutcome SlbClient::describeMasterSlaveServerGroups(const DescribeMasterSlaveServerGroupsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeMasterSlaveServerGroupsOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1822,10 +1814,10 @@ SlbClient::DescribeMasterSlaveServerGroupsOutcomeCallable SlbClient::describeMas
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::DescribeHealthStatusOutcome SlbClient::describeHealthStatus(const DescribeHealthStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeHealthStatusOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1858,10 +1850,10 @@ SlbClient::DescribeHealthStatusOutcomeCallable SlbClient::describeHealthStatusCa
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::DescribeRegionsOutcome SlbClient::describeRegions(const DescribeRegionsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeRegionsOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1894,10 +1886,10 @@ SlbClient::DescribeRegionsOutcomeCallable SlbClient::describeRegionsCallable(con
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::RemoveListenerWhiteListItemOutcome SlbClient::removeListenerWhiteListItem(const RemoveListenerWhiteListItemRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return RemoveListenerWhiteListItemOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1930,10 +1922,10 @@ SlbClient::RemoveListenerWhiteListItemOutcomeCallable SlbClient::removeListenerW
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::CreateLoadBalancerHTTPSListenerOutcome SlbClient::createLoadBalancerHTTPSListener(const CreateLoadBalancerHTTPSListenerRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateLoadBalancerHTTPSListenerOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -1966,10 +1958,10 @@ SlbClient::CreateLoadBalancerHTTPSListenerOutcomeCallable SlbClient::createLoadB
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::DeleteMasterSlaveServerGroupOutcome SlbClient::deleteMasterSlaveServerGroup(const DeleteMasterSlaveServerGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteMasterSlaveServerGroupOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -2002,10 +1994,10 @@ SlbClient::DeleteMasterSlaveServerGroupOutcomeCallable SlbClient::deleteMasterSl
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::DescribeServerCertificatesOutcome SlbClient::describeServerCertificates(const DescribeServerCertificatesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeServerCertificatesOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -2038,10 +2030,10 @@ SlbClient::DescribeServerCertificatesOutcomeCallable SlbClient::describeServerCe
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::DescribeRulesOutcome SlbClient::describeRules(const DescribeRulesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeRulesOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -2074,10 +2066,10 @@ SlbClient::DescribeRulesOutcomeCallable SlbClient::describeRulesCallable(const D
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::DeleteAccessLogsDownloadAttributeOutcome SlbClient::deleteAccessLogsDownloadAttribute(const DeleteAccessLogsDownloadAttributeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteAccessLogsDownloadAttributeOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -2110,10 +2102,10 @@ SlbClient::DeleteAccessLogsDownloadAttributeOutcomeCallable SlbClient::deleteAcc
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::DescribeRuleAttributeOutcome SlbClient::describeRuleAttribute(const DescribeRuleAttributeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeRuleAttributeOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -2146,10 +2138,10 @@ SlbClient::DescribeRuleAttributeOutcomeCallable SlbClient::describeRuleAttribute
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::UploadServerCertificateOutcome SlbClient::uploadServerCertificate(const UploadServerCertificateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UploadServerCertificateOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -2182,10 +2174,10 @@ SlbClient::UploadServerCertificateOutcomeCallable SlbClient::uploadServerCertifi
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::SetAccessLogsDownloadAttributeOutcome SlbClient::setAccessLogsDownloadAttribute(const SetAccessLogsDownloadAttributeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SetAccessLogsDownloadAttributeOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -2218,10 +2210,10 @@ SlbClient::SetAccessLogsDownloadAttributeOutcomeCallable SlbClient::setAccessLog
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::DescribeLoadBalancerAutoReleaseTimeOutcome SlbClient::describeLoadBalancerAutoReleaseTime(const DescribeLoadBalancerAutoReleaseTimeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeLoadBalancerAutoReleaseTimeOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -2254,10 +2246,10 @@ SlbClient::DescribeLoadBalancerAutoReleaseTimeOutcomeCallable SlbClient::describ
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::DeleteServerCertificateOutcome SlbClient::deleteServerCertificate(const DeleteServerCertificateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteServerCertificateOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -2290,10 +2282,10 @@ SlbClient::DeleteServerCertificateOutcomeCallable SlbClient::deleteServerCertifi
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::SetLoadBalancerNameOutcome SlbClient::setLoadBalancerName(const SetLoadBalancerNameRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SetLoadBalancerNameOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -2326,10 +2318,10 @@ SlbClient::SetLoadBalancerNameOutcomeCallable SlbClient::setLoadBalancerNameCall
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::SetVServerGroupAttributeOutcome SlbClient::setVServerGroupAttribute(const SetVServerGroupAttributeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SetVServerGroupAttributeOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -2362,10 +2354,10 @@ SlbClient::SetVServerGroupAttributeOutcomeCallable SlbClient::setVServerGroupAtt
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::ModifyLoadBalancerInternetSpecOutcome SlbClient::modifyLoadBalancerInternetSpec(const ModifyLoadBalancerInternetSpecRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyLoadBalancerInternetSpecOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -2398,10 +2390,10 @@ SlbClient::ModifyLoadBalancerInternetSpecOutcomeCallable SlbClient::modifyLoadBa
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::DescribeLoadBalancerHTTPSListenerAttributeOutcome SlbClient::describeLoadBalancerHTTPSListenerAttribute(const DescribeLoadBalancerHTTPSListenerAttributeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeLoadBalancerHTTPSListenerAttributeOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -2434,10 +2426,10 @@ SlbClient::DescribeLoadBalancerHTTPSListenerAttributeOutcomeCallable SlbClient::
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::DescribeMasterSlaveServerGroupAttributeOutcome SlbClient::describeMasterSlaveServerGroupAttribute(const DescribeMasterSlaveServerGroupAttributeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeMasterSlaveServerGroupAttributeOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -2470,10 +2462,10 @@ SlbClient::DescribeMasterSlaveServerGroupAttributeOutcomeCallable SlbClient::des
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::AddTagsOutcome SlbClient::addTags(const AddTagsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AddTagsOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -2506,10 +2498,10 @@ SlbClient::AddTagsOutcomeCallable SlbClient::addTagsCallable(const AddTagsReques
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::ModifyLoadBalancerPayTypeOutcome SlbClient::modifyLoadBalancerPayType(const ModifyLoadBalancerPayTypeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyLoadBalancerPayTypeOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -2542,10 +2534,10 @@ SlbClient::ModifyLoadBalancerPayTypeOutcomeCallable SlbClient::modifyLoadBalance
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::AddBackendServersOutcome SlbClient::addBackendServers(const AddBackendServersRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AddBackendServersOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -2578,10 +2570,10 @@ SlbClient::AddBackendServersOutcomeCallable SlbClient::addBackendServersCallable
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::CreateRulesOutcome SlbClient::createRules(const CreateRulesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateRulesOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -2614,10 +2606,10 @@ SlbClient::CreateRulesOutcomeCallable SlbClient::createRulesCallable(const Creat
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::AddVServerGroupBackendServersOutcome SlbClient::addVServerGroupBackendServers(const AddVServerGroupBackendServersRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AddVServerGroupBackendServersOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -2650,10 +2642,10 @@ SlbClient::AddVServerGroupBackendServersOutcomeCallable SlbClient::addVServerGro
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
SlbClient::SetLoadBalancerUDPListenerAttributeOutcome SlbClient::setLoadBalancerUDPListenerAttribute(const SetLoadBalancerUDPListenerAttributeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SetLoadBalancerUDPListenerAttributeOutcome(endpointOutcome.error());
|
||||
|
||||
@@ -2686,4 +2678,4 @@ SlbClient::SetLoadBalancerUDPListenerAttributeOutcomeCallable SlbClient::setLoad
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user