Compare commits

..

4 Commits

Author SHA1 Message Date
sdk-team
ef4cdc8756 Add openapi StartEaiJupyter. 2024-10-22 03:02:13 +00:00
sdk-team
61a4b220eb Gwlb Open API released. 2024-10-18 03:12:25 +00:00
sdk-team
183190fd14 基于转移码的转出接口 2024-10-17 11:52:52 +00:00
sdk-team
a7841818f4 Gwlb Open API released. 2024-10-16 09:41:04 +00:00
143 changed files with 9772 additions and 363 deletions

View File

@@ -1 +1 @@
1.36.1999
1.36.2003

View File

@@ -175,6 +175,8 @@ set(domain_public_header_model
include/alibabacloud/domain/model/SaveBatchTaskForModifyingDomainDnsResult.h
include/alibabacloud/domain/model/SaveBatchTaskForReserveDropListDomainRequest.h
include/alibabacloud/domain/model/SaveBatchTaskForReserveDropListDomainResult.h
include/alibabacloud/domain/model/SaveBatchTaskForTransferOutByAuthorizationCodeRequest.h
include/alibabacloud/domain/model/SaveBatchTaskForTransferOutByAuthorizationCodeResult.h
include/alibabacloud/domain/model/SaveBatchTaskForTransferProhibitionLockRequest.h
include/alibabacloud/domain/model/SaveBatchTaskForTransferProhibitionLockResult.h
include/alibabacloud/domain/model/SaveBatchTaskForUpdateProhibitionLockRequest.h
@@ -235,6 +237,8 @@ set(domain_public_header_model
include/alibabacloud/domain/model/SaveSingleTaskForSynchronizingDSRecordResult.h
include/alibabacloud/domain/model/SaveSingleTaskForSynchronizingDnsHostRequest.h
include/alibabacloud/domain/model/SaveSingleTaskForSynchronizingDnsHostResult.h
include/alibabacloud/domain/model/SaveSingleTaskForTransferOutByAuthorizationCodeRequest.h
include/alibabacloud/domain/model/SaveSingleTaskForTransferOutByAuthorizationCodeResult.h
include/alibabacloud/domain/model/SaveSingleTaskForTransferProhibitionLockRequest.h
include/alibabacloud/domain/model/SaveSingleTaskForTransferProhibitionLockResult.h
include/alibabacloud/domain/model/SaveSingleTaskForUpdateProhibitionLockRequest.h
@@ -436,6 +440,8 @@ set(domain_src
src/model/SaveBatchTaskForModifyingDomainDnsResult.cc
src/model/SaveBatchTaskForReserveDropListDomainRequest.cc
src/model/SaveBatchTaskForReserveDropListDomainResult.cc
src/model/SaveBatchTaskForTransferOutByAuthorizationCodeRequest.cc
src/model/SaveBatchTaskForTransferOutByAuthorizationCodeResult.cc
src/model/SaveBatchTaskForTransferProhibitionLockRequest.cc
src/model/SaveBatchTaskForTransferProhibitionLockResult.cc
src/model/SaveBatchTaskForUpdateProhibitionLockRequest.cc
@@ -496,6 +502,8 @@ set(domain_src
src/model/SaveSingleTaskForSynchronizingDSRecordResult.cc
src/model/SaveSingleTaskForSynchronizingDnsHostRequest.cc
src/model/SaveSingleTaskForSynchronizingDnsHostResult.cc
src/model/SaveSingleTaskForTransferOutByAuthorizationCodeRequest.cc
src/model/SaveSingleTaskForTransferOutByAuthorizationCodeResult.cc
src/model/SaveSingleTaskForTransferProhibitionLockRequest.cc
src/model/SaveSingleTaskForTransferProhibitionLockResult.cc
src/model/SaveSingleTaskForUpdateProhibitionLockRequest.cc

View File

@@ -176,6 +176,8 @@
#include "model/SaveBatchTaskForModifyingDomainDnsResult.h"
#include "model/SaveBatchTaskForReserveDropListDomainRequest.h"
#include "model/SaveBatchTaskForReserveDropListDomainResult.h"
#include "model/SaveBatchTaskForTransferOutByAuthorizationCodeRequest.h"
#include "model/SaveBatchTaskForTransferOutByAuthorizationCodeResult.h"
#include "model/SaveBatchTaskForTransferProhibitionLockRequest.h"
#include "model/SaveBatchTaskForTransferProhibitionLockResult.h"
#include "model/SaveBatchTaskForUpdateProhibitionLockRequest.h"
@@ -236,6 +238,8 @@
#include "model/SaveSingleTaskForSynchronizingDSRecordResult.h"
#include "model/SaveSingleTaskForSynchronizingDnsHostRequest.h"
#include "model/SaveSingleTaskForSynchronizingDnsHostResult.h"
#include "model/SaveSingleTaskForTransferOutByAuthorizationCodeRequest.h"
#include "model/SaveSingleTaskForTransferOutByAuthorizationCodeResult.h"
#include "model/SaveSingleTaskForTransferProhibitionLockRequest.h"
#include "model/SaveSingleTaskForTransferProhibitionLockResult.h"
#include "model/SaveSingleTaskForUpdateProhibitionLockRequest.h"
@@ -520,6 +524,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::SaveBatchTaskForReserveDropListDomainResult> SaveBatchTaskForReserveDropListDomainOutcome;
typedef std::future<SaveBatchTaskForReserveDropListDomainOutcome> SaveBatchTaskForReserveDropListDomainOutcomeCallable;
typedef std::function<void(const DomainClient*, const Model::SaveBatchTaskForReserveDropListDomainRequest&, const SaveBatchTaskForReserveDropListDomainOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SaveBatchTaskForReserveDropListDomainAsyncHandler;
typedef Outcome<Error, Model::SaveBatchTaskForTransferOutByAuthorizationCodeResult> SaveBatchTaskForTransferOutByAuthorizationCodeOutcome;
typedef std::future<SaveBatchTaskForTransferOutByAuthorizationCodeOutcome> SaveBatchTaskForTransferOutByAuthorizationCodeOutcomeCallable;
typedef std::function<void(const DomainClient*, const Model::SaveBatchTaskForTransferOutByAuthorizationCodeRequest&, const SaveBatchTaskForTransferOutByAuthorizationCodeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SaveBatchTaskForTransferOutByAuthorizationCodeAsyncHandler;
typedef Outcome<Error, Model::SaveBatchTaskForTransferProhibitionLockResult> SaveBatchTaskForTransferProhibitionLockOutcome;
typedef std::future<SaveBatchTaskForTransferProhibitionLockOutcome> SaveBatchTaskForTransferProhibitionLockOutcomeCallable;
typedef std::function<void(const DomainClient*, const Model::SaveBatchTaskForTransferProhibitionLockRequest&, const SaveBatchTaskForTransferProhibitionLockOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SaveBatchTaskForTransferProhibitionLockAsyncHandler;
@@ -610,6 +617,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::SaveSingleTaskForSynchronizingDnsHostResult> SaveSingleTaskForSynchronizingDnsHostOutcome;
typedef std::future<SaveSingleTaskForSynchronizingDnsHostOutcome> SaveSingleTaskForSynchronizingDnsHostOutcomeCallable;
typedef std::function<void(const DomainClient*, const Model::SaveSingleTaskForSynchronizingDnsHostRequest&, const SaveSingleTaskForSynchronizingDnsHostOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SaveSingleTaskForSynchronizingDnsHostAsyncHandler;
typedef Outcome<Error, Model::SaveSingleTaskForTransferOutByAuthorizationCodeResult> SaveSingleTaskForTransferOutByAuthorizationCodeOutcome;
typedef std::future<SaveSingleTaskForTransferOutByAuthorizationCodeOutcome> SaveSingleTaskForTransferOutByAuthorizationCodeOutcomeCallable;
typedef std::function<void(const DomainClient*, const Model::SaveSingleTaskForTransferOutByAuthorizationCodeRequest&, const SaveSingleTaskForTransferOutByAuthorizationCodeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SaveSingleTaskForTransferOutByAuthorizationCodeAsyncHandler;
typedef Outcome<Error, Model::SaveSingleTaskForTransferProhibitionLockResult> SaveSingleTaskForTransferProhibitionLockOutcome;
typedef std::future<SaveSingleTaskForTransferProhibitionLockOutcome> SaveSingleTaskForTransferProhibitionLockOutcomeCallable;
typedef std::function<void(const DomainClient*, const Model::SaveSingleTaskForTransferProhibitionLockRequest&, const SaveSingleTaskForTransferProhibitionLockOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SaveSingleTaskForTransferProhibitionLockAsyncHandler;
@@ -912,6 +922,9 @@ namespace AlibabaCloud
SaveBatchTaskForReserveDropListDomainOutcome saveBatchTaskForReserveDropListDomain(const Model::SaveBatchTaskForReserveDropListDomainRequest &request)const;
void saveBatchTaskForReserveDropListDomainAsync(const Model::SaveBatchTaskForReserveDropListDomainRequest& request, const SaveBatchTaskForReserveDropListDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SaveBatchTaskForReserveDropListDomainOutcomeCallable saveBatchTaskForReserveDropListDomainCallable(const Model::SaveBatchTaskForReserveDropListDomainRequest& request) const;
SaveBatchTaskForTransferOutByAuthorizationCodeOutcome saveBatchTaskForTransferOutByAuthorizationCode(const Model::SaveBatchTaskForTransferOutByAuthorizationCodeRequest &request)const;
void saveBatchTaskForTransferOutByAuthorizationCodeAsync(const Model::SaveBatchTaskForTransferOutByAuthorizationCodeRequest& request, const SaveBatchTaskForTransferOutByAuthorizationCodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SaveBatchTaskForTransferOutByAuthorizationCodeOutcomeCallable saveBatchTaskForTransferOutByAuthorizationCodeCallable(const Model::SaveBatchTaskForTransferOutByAuthorizationCodeRequest& request) const;
SaveBatchTaskForTransferProhibitionLockOutcome saveBatchTaskForTransferProhibitionLock(const Model::SaveBatchTaskForTransferProhibitionLockRequest &request)const;
void saveBatchTaskForTransferProhibitionLockAsync(const Model::SaveBatchTaskForTransferProhibitionLockRequest& request, const SaveBatchTaskForTransferProhibitionLockAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SaveBatchTaskForTransferProhibitionLockOutcomeCallable saveBatchTaskForTransferProhibitionLockCallable(const Model::SaveBatchTaskForTransferProhibitionLockRequest& request) const;
@@ -1002,6 +1015,9 @@ namespace AlibabaCloud
SaveSingleTaskForSynchronizingDnsHostOutcome saveSingleTaskForSynchronizingDnsHost(const Model::SaveSingleTaskForSynchronizingDnsHostRequest &request)const;
void saveSingleTaskForSynchronizingDnsHostAsync(const Model::SaveSingleTaskForSynchronizingDnsHostRequest& request, const SaveSingleTaskForSynchronizingDnsHostAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SaveSingleTaskForSynchronizingDnsHostOutcomeCallable saveSingleTaskForSynchronizingDnsHostCallable(const Model::SaveSingleTaskForSynchronizingDnsHostRequest& request) const;
SaveSingleTaskForTransferOutByAuthorizationCodeOutcome saveSingleTaskForTransferOutByAuthorizationCode(const Model::SaveSingleTaskForTransferOutByAuthorizationCodeRequest &request)const;
void saveSingleTaskForTransferOutByAuthorizationCodeAsync(const Model::SaveSingleTaskForTransferOutByAuthorizationCodeRequest& request, const SaveSingleTaskForTransferOutByAuthorizationCodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SaveSingleTaskForTransferOutByAuthorizationCodeOutcomeCallable saveSingleTaskForTransferOutByAuthorizationCodeCallable(const Model::SaveSingleTaskForTransferOutByAuthorizationCodeRequest& request) const;
SaveSingleTaskForTransferProhibitionLockOutcome saveSingleTaskForTransferProhibitionLock(const Model::SaveSingleTaskForTransferProhibitionLockRequest &request)const;
void saveSingleTaskForTransferProhibitionLockAsync(const Model::SaveSingleTaskForTransferProhibitionLockRequest& request, const SaveSingleTaskForTransferProhibitionLockAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SaveSingleTaskForTransferProhibitionLockOutcomeCallable saveSingleTaskForTransferProhibitionLockCallable(const Model::SaveSingleTaskForTransferProhibitionLockRequest& request) const;

View File

@@ -34,14 +34,22 @@ namespace AlibabaCloud
public:
struct Module
{
long status;
long orderType;
long price;
std::string userId;
long createTime;
long updateTime;
std::string domain;
std::string bizId;
struct OrderList
{
int status;
int orderType;
long price;
std::string userId;
long createTime;
long updateTime;
std::string domain;
std::string bizId;
};
int currentPageNum;
int pageSize;
int totalPageNum;
std::vector<OrderList> data;
int totalItemNum;
};

View File

@@ -0,0 +1,52 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_DOMAIN_MODEL_SAVEBATCHTASKFORTRANSFEROUTBYAUTHORIZATIONCODEREQUEST_H_
#define ALIBABACLOUD_DOMAIN_MODEL_SAVEBATCHTASKFORTRANSFEROUTBYAUTHORIZATIONCODEREQUEST_H_
#include <alibabacloud/domain/DomainExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Domain {
namespace Model {
class ALIBABACLOUD_DOMAIN_EXPORT SaveBatchTaskForTransferOutByAuthorizationCodeRequest : public RpcServiceRequest {
public:
struct TransferOutParamList {
std::string authorizationCode;
std::string domainName;
};
SaveBatchTaskForTransferOutByAuthorizationCodeRequest();
~SaveBatchTaskForTransferOutByAuthorizationCodeRequest();
std::string getLong() const;
void setLong(const std::string &long);
std::vector<TransferOutParamList> getTransferOutParamList() const;
void setTransferOutParamList(const std::vector<TransferOutParamList> &transferOutParamList);
std::string getUserClientIp() const;
void setUserClientIp(const std::string &userClientIp);
private:
std::string long_;
std::vector<TransferOutParamList> transferOutParamList_;
std::string userClientIp_;
};
} // namespace Model
} // namespace Domain
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_DOMAIN_MODEL_SAVEBATCHTASKFORTRANSFEROUTBYAUTHORIZATIONCODEREQUEST_H_

View File

@@ -0,0 +1,51 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_DOMAIN_MODEL_SAVEBATCHTASKFORTRANSFEROUTBYAUTHORIZATIONCODERESULT_H_
#define ALIBABACLOUD_DOMAIN_MODEL_SAVEBATCHTASKFORTRANSFEROUTBYAUTHORIZATIONCODERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/domain/DomainExport.h>
namespace AlibabaCloud
{
namespace Domain
{
namespace Model
{
class ALIBABACLOUD_DOMAIN_EXPORT SaveBatchTaskForTransferOutByAuthorizationCodeResult : public ServiceResult
{
public:
SaveBatchTaskForTransferOutByAuthorizationCodeResult();
explicit SaveBatchTaskForTransferOutByAuthorizationCodeResult(const std::string &payload);
~SaveBatchTaskForTransferOutByAuthorizationCodeResult();
std::string getTaskNo()const;
protected:
void parse(const std::string &payload);
private:
std::string taskNo_;
};
}
}
}
#endif // !ALIBABACLOUD_DOMAIN_MODEL_SAVEBATCHTASKFORTRANSFEROUTBYAUTHORIZATIONCODERESULT_H_

View File

@@ -0,0 +1,51 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_DOMAIN_MODEL_SAVESINGLETASKFORTRANSFEROUTBYAUTHORIZATIONCODEREQUEST_H_
#define ALIBABACLOUD_DOMAIN_MODEL_SAVESINGLETASKFORTRANSFEROUTBYAUTHORIZATIONCODEREQUEST_H_
#include <alibabacloud/domain/DomainExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Domain {
namespace Model {
class ALIBABACLOUD_DOMAIN_EXPORT SaveSingleTaskForTransferOutByAuthorizationCodeRequest : public RpcServiceRequest {
public:
SaveSingleTaskForTransferOutByAuthorizationCodeRequest();
~SaveSingleTaskForTransferOutByAuthorizationCodeRequest();
std::string getDomainName() const;
void setDomainName(const std::string &domainName);
std::string getAuthorizationCode() const;
void setAuthorizationCode(const std::string &authorizationCode);
std::string getUserClientIp() const;
void setUserClientIp(const std::string &userClientIp);
std::string getLang() const;
void setLang(const std::string &lang);
private:
std::string domainName_;
std::string authorizationCode_;
std::string userClientIp_;
std::string lang_;
};
} // namespace Model
} // namespace Domain
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_DOMAIN_MODEL_SAVESINGLETASKFORTRANSFEROUTBYAUTHORIZATIONCODEREQUEST_H_

View File

@@ -0,0 +1,51 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_DOMAIN_MODEL_SAVESINGLETASKFORTRANSFEROUTBYAUTHORIZATIONCODERESULT_H_
#define ALIBABACLOUD_DOMAIN_MODEL_SAVESINGLETASKFORTRANSFEROUTBYAUTHORIZATIONCODERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/domain/DomainExport.h>
namespace AlibabaCloud
{
namespace Domain
{
namespace Model
{
class ALIBABACLOUD_DOMAIN_EXPORT SaveSingleTaskForTransferOutByAuthorizationCodeResult : public ServiceResult
{
public:
SaveSingleTaskForTransferOutByAuthorizationCodeResult();
explicit SaveSingleTaskForTransferOutByAuthorizationCodeResult(const std::string &payload);
~SaveSingleTaskForTransferOutByAuthorizationCodeResult();
std::string getTaskNo()const;
protected:
void parse(const std::string &payload);
private:
std::string taskNo_;
};
}
}
}
#endif // !ALIBABACLOUD_DOMAIN_MODEL_SAVESINGLETASKFORTRANSFEROUTBYAUTHORIZATIONCODERESULT_H_

View File

@@ -2823,6 +2823,42 @@ DomainClient::SaveBatchTaskForReserveDropListDomainOutcomeCallable DomainClient:
return task->get_future();
}
DomainClient::SaveBatchTaskForTransferOutByAuthorizationCodeOutcome DomainClient::saveBatchTaskForTransferOutByAuthorizationCode(const SaveBatchTaskForTransferOutByAuthorizationCodeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return SaveBatchTaskForTransferOutByAuthorizationCodeOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return SaveBatchTaskForTransferOutByAuthorizationCodeOutcome(SaveBatchTaskForTransferOutByAuthorizationCodeResult(outcome.result()));
else
return SaveBatchTaskForTransferOutByAuthorizationCodeOutcome(outcome.error());
}
void DomainClient::saveBatchTaskForTransferOutByAuthorizationCodeAsync(const SaveBatchTaskForTransferOutByAuthorizationCodeRequest& request, const SaveBatchTaskForTransferOutByAuthorizationCodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, saveBatchTaskForTransferOutByAuthorizationCode(request), context);
};
asyncExecute(new Runnable(fn));
}
DomainClient::SaveBatchTaskForTransferOutByAuthorizationCodeOutcomeCallable DomainClient::saveBatchTaskForTransferOutByAuthorizationCodeCallable(const SaveBatchTaskForTransferOutByAuthorizationCodeRequest &request) const
{
auto task = std::make_shared<std::packaged_task<SaveBatchTaskForTransferOutByAuthorizationCodeOutcome()>>(
[this, request]()
{
return this->saveBatchTaskForTransferOutByAuthorizationCode(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DomainClient::SaveBatchTaskForTransferProhibitionLockOutcome DomainClient::saveBatchTaskForTransferProhibitionLock(const SaveBatchTaskForTransferProhibitionLockRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -3903,6 +3939,42 @@ DomainClient::SaveSingleTaskForSynchronizingDnsHostOutcomeCallable DomainClient:
return task->get_future();
}
DomainClient::SaveSingleTaskForTransferOutByAuthorizationCodeOutcome DomainClient::saveSingleTaskForTransferOutByAuthorizationCode(const SaveSingleTaskForTransferOutByAuthorizationCodeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return SaveSingleTaskForTransferOutByAuthorizationCodeOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return SaveSingleTaskForTransferOutByAuthorizationCodeOutcome(SaveSingleTaskForTransferOutByAuthorizationCodeResult(outcome.result()));
else
return SaveSingleTaskForTransferOutByAuthorizationCodeOutcome(outcome.error());
}
void DomainClient::saveSingleTaskForTransferOutByAuthorizationCodeAsync(const SaveSingleTaskForTransferOutByAuthorizationCodeRequest& request, const SaveSingleTaskForTransferOutByAuthorizationCodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, saveSingleTaskForTransferOutByAuthorizationCode(request), context);
};
asyncExecute(new Runnable(fn));
}
DomainClient::SaveSingleTaskForTransferOutByAuthorizationCodeOutcomeCallable DomainClient::saveSingleTaskForTransferOutByAuthorizationCodeCallable(const SaveSingleTaskForTransferOutByAuthorizationCodeRequest &request) const
{
auto task = std::make_shared<std::packaged_task<SaveSingleTaskForTransferOutByAuthorizationCodeOutcome()>>(
[this, request]()
{
return this->saveSingleTaskForTransferOutByAuthorizationCode(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DomainClient::SaveSingleTaskForTransferProhibitionLockOutcome DomainClient::saveSingleTaskForTransferProhibitionLock(const SaveSingleTaskForTransferProhibitionLockRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -40,22 +40,36 @@ void QueryIntlFixedPriceOrderListResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto moduleNode = value["Module"];
if(!moduleNode["CreateTime"].isNull())
module_.createTime = std::stol(moduleNode["CreateTime"].asString());
if(!moduleNode["UpdateTime"].isNull())
module_.updateTime = std::stol(moduleNode["UpdateTime"].asString());
if(!moduleNode["UserId"].isNull())
module_.userId = moduleNode["UserId"].asString();
if(!moduleNode["BizId"].isNull())
module_.bizId = moduleNode["BizId"].asString();
if(!moduleNode["Domain"].isNull())
module_.domain = moduleNode["Domain"].asString();
if(!moduleNode["Price"].isNull())
module_.price = std::stol(moduleNode["Price"].asString());
if(!moduleNode["Status"].isNull())
module_.status = std::stol(moduleNode["Status"].asString());
if(!moduleNode["OrderType"].isNull())
module_.orderType = std::stol(moduleNode["OrderType"].asString());
if(!moduleNode["TotalItemNum"].isNull())
module_.totalItemNum = std::stoi(moduleNode["TotalItemNum"].asString());
if(!moduleNode["CurrentPageNum"].isNull())
module_.currentPageNum = std::stoi(moduleNode["CurrentPageNum"].asString());
if(!moduleNode["PageSize"].isNull())
module_.pageSize = std::stoi(moduleNode["PageSize"].asString());
if(!moduleNode["TotalPageNum"].isNull())
module_.totalPageNum = std::stoi(moduleNode["TotalPageNum"].asString());
auto allDataNode = moduleNode["Data"]["OrderList"];
for (auto moduleNodeDataOrderList : allDataNode)
{
Module::OrderList orderListObject;
if(!moduleNodeDataOrderList["OrderType"].isNull())
orderListObject.orderType = std::stoi(moduleNodeDataOrderList["OrderType"].asString());
if(!moduleNodeDataOrderList["BizId"].isNull())
orderListObject.bizId = moduleNodeDataOrderList["BizId"].asString();
if(!moduleNodeDataOrderList["UserId"].isNull())
orderListObject.userId = moduleNodeDataOrderList["UserId"].asString();
if(!moduleNodeDataOrderList["Status"].isNull())
orderListObject.status = std::stoi(moduleNodeDataOrderList["Status"].asString());
if(!moduleNodeDataOrderList["Price"].isNull())
orderListObject.price = std::stol(moduleNodeDataOrderList["Price"].asString());
if(!moduleNodeDataOrderList["Domain"].isNull())
orderListObject.domain = moduleNodeDataOrderList["Domain"].asString();
if(!moduleNodeDataOrderList["CreateTime"].isNull())
orderListObject.createTime = std::stol(moduleNodeDataOrderList["CreateTime"].asString());
if(!moduleNodeDataOrderList["UpdateTime"].isNull())
orderListObject.updateTime = std::stol(moduleNodeDataOrderList["UpdateTime"].asString());
module_.data.push_back(orderListObject);
}
}

View File

@@ -0,0 +1,59 @@
/*
* 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/domain/model/SaveBatchTaskForTransferOutByAuthorizationCodeRequest.h>
using AlibabaCloud::Domain::Model::SaveBatchTaskForTransferOutByAuthorizationCodeRequest;
SaveBatchTaskForTransferOutByAuthorizationCodeRequest::SaveBatchTaskForTransferOutByAuthorizationCodeRequest()
: RpcServiceRequest("domain", "2018-01-29", "SaveBatchTaskForTransferOutByAuthorizationCode") {
setMethod(HttpRequest::Method::Post);
}
SaveBatchTaskForTransferOutByAuthorizationCodeRequest::~SaveBatchTaskForTransferOutByAuthorizationCodeRequest() {}
std::string SaveBatchTaskForTransferOutByAuthorizationCodeRequest::getLong() const {
return long_;
}
void SaveBatchTaskForTransferOutByAuthorizationCodeRequest::setLong(const std::string &long) {
long_ = long;
setParameter(std::string("Long"), long);
}
std::vector<SaveBatchTaskForTransferOutByAuthorizationCodeRequest::TransferOutParamList> SaveBatchTaskForTransferOutByAuthorizationCodeRequest::getTransferOutParamList() const {
return transferOutParamList_;
}
void SaveBatchTaskForTransferOutByAuthorizationCodeRequest::setTransferOutParamList(const std::vector<SaveBatchTaskForTransferOutByAuthorizationCodeRequest::TransferOutParamList> &transferOutParamList) {
transferOutParamList_ = transferOutParamList;
for(int dep1 = 0; dep1 != transferOutParamList.size(); dep1++) {
auto transferOutParamListObj = transferOutParamList.at(dep1);
std::string transferOutParamListObjStr = std::string("TransferOutParamList") + "." + std::to_string(dep1 + 1);
setParameter(transferOutParamListObjStr + ".AuthorizationCode", transferOutParamListObj.authorizationCode);
setParameter(transferOutParamListObjStr + ".DomainName", transferOutParamListObj.domainName);
}
}
std::string SaveBatchTaskForTransferOutByAuthorizationCodeRequest::getUserClientIp() const {
return userClientIp_;
}
void SaveBatchTaskForTransferOutByAuthorizationCodeRequest::setUserClientIp(const std::string &userClientIp) {
userClientIp_ = userClientIp;
setParameter(std::string("UserClientIp"), userClientIp);
}

View File

@@ -0,0 +1,51 @@
/*
* 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/domain/model/SaveBatchTaskForTransferOutByAuthorizationCodeResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Domain;
using namespace AlibabaCloud::Domain::Model;
SaveBatchTaskForTransferOutByAuthorizationCodeResult::SaveBatchTaskForTransferOutByAuthorizationCodeResult() :
ServiceResult()
{}
SaveBatchTaskForTransferOutByAuthorizationCodeResult::SaveBatchTaskForTransferOutByAuthorizationCodeResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SaveBatchTaskForTransferOutByAuthorizationCodeResult::~SaveBatchTaskForTransferOutByAuthorizationCodeResult()
{}
void SaveBatchTaskForTransferOutByAuthorizationCodeResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["TaskNo"].isNull())
taskNo_ = value["TaskNo"].asString();
}
std::string SaveBatchTaskForTransferOutByAuthorizationCodeResult::getTaskNo()const
{
return taskNo_;
}

View File

@@ -0,0 +1,63 @@
/*
* 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/domain/model/SaveSingleTaskForTransferOutByAuthorizationCodeRequest.h>
using AlibabaCloud::Domain::Model::SaveSingleTaskForTransferOutByAuthorizationCodeRequest;
SaveSingleTaskForTransferOutByAuthorizationCodeRequest::SaveSingleTaskForTransferOutByAuthorizationCodeRequest()
: RpcServiceRequest("domain", "2018-01-29", "SaveSingleTaskForTransferOutByAuthorizationCode") {
setMethod(HttpRequest::Method::Post);
}
SaveSingleTaskForTransferOutByAuthorizationCodeRequest::~SaveSingleTaskForTransferOutByAuthorizationCodeRequest() {}
std::string SaveSingleTaskForTransferOutByAuthorizationCodeRequest::getDomainName() const {
return domainName_;
}
void SaveSingleTaskForTransferOutByAuthorizationCodeRequest::setDomainName(const std::string &domainName) {
domainName_ = domainName;
setParameter(std::string("DomainName"), domainName);
}
std::string SaveSingleTaskForTransferOutByAuthorizationCodeRequest::getAuthorizationCode() const {
return authorizationCode_;
}
void SaveSingleTaskForTransferOutByAuthorizationCodeRequest::setAuthorizationCode(const std::string &authorizationCode) {
authorizationCode_ = authorizationCode;
setParameter(std::string("AuthorizationCode"), authorizationCode);
}
std::string SaveSingleTaskForTransferOutByAuthorizationCodeRequest::getUserClientIp() const {
return userClientIp_;
}
void SaveSingleTaskForTransferOutByAuthorizationCodeRequest::setUserClientIp(const std::string &userClientIp) {
userClientIp_ = userClientIp;
setParameter(std::string("UserClientIp"), userClientIp);
}
std::string SaveSingleTaskForTransferOutByAuthorizationCodeRequest::getLang() const {
return lang_;
}
void SaveSingleTaskForTransferOutByAuthorizationCodeRequest::setLang(const std::string &lang) {
lang_ = lang;
setParameter(std::string("Lang"), lang);
}

View File

@@ -0,0 +1,51 @@
/*
* 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/domain/model/SaveSingleTaskForTransferOutByAuthorizationCodeResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Domain;
using namespace AlibabaCloud::Domain::Model;
SaveSingleTaskForTransferOutByAuthorizationCodeResult::SaveSingleTaskForTransferOutByAuthorizationCodeResult() :
ServiceResult()
{}
SaveSingleTaskForTransferOutByAuthorizationCodeResult::SaveSingleTaskForTransferOutByAuthorizationCodeResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SaveSingleTaskForTransferOutByAuthorizationCodeResult::~SaveSingleTaskForTransferOutByAuthorizationCodeResult()
{}
void SaveSingleTaskForTransferOutByAuthorizationCodeResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["TaskNo"].isNull())
taskNo_ = value["TaskNo"].asString();
}
std::string SaveSingleTaskForTransferOutByAuthorizationCodeResult::getTaskNo()const
{
return taskNo_;
}

View File

@@ -29,8 +29,6 @@ set(eais_public_header_model
include/alibabacloud/eais/model/ChangeResourceGroupResult.h
include/alibabacloud/eais/model/CreateEaiRequest.h
include/alibabacloud/eais/model/CreateEaiResult.h
include/alibabacloud/eais/model/CreateEaiAllRequest.h
include/alibabacloud/eais/model/CreateEaiAllResult.h
include/alibabacloud/eais/model/CreateEaiEciRequest.h
include/alibabacloud/eais/model/CreateEaiEciResult.h
include/alibabacloud/eais/model/CreateEaiEcsRequest.h
@@ -55,10 +53,20 @@ set(eais_public_header_model
include/alibabacloud/eais/model/DetachEaisEiResult.h
include/alibabacloud/eais/model/GetInstanceMetricsRequest.h
include/alibabacloud/eais/model/GetInstanceMetricsResult.h
include/alibabacloud/eais/model/ListTagResourcesRequest.h
include/alibabacloud/eais/model/ListTagResourcesResult.h
include/alibabacloud/eais/model/StartEaiJupyterRequest.h
include/alibabacloud/eais/model/StartEaiJupyterResult.h
include/alibabacloud/eais/model/StartEaisEiRequest.h
include/alibabacloud/eais/model/StartEaisEiResult.h
include/alibabacloud/eais/model/StopEaiJupyterRequest.h
include/alibabacloud/eais/model/StopEaiJupyterResult.h
include/alibabacloud/eais/model/StopEaisEiRequest.h
include/alibabacloud/eais/model/StopEaisEiResult.h )
include/alibabacloud/eais/model/StopEaisEiResult.h
include/alibabacloud/eais/model/TagResourcesRequest.h
include/alibabacloud/eais/model/TagResourcesResult.h
include/alibabacloud/eais/model/UntagResourcesRequest.h
include/alibabacloud/eais/model/UntagResourcesResult.h )
set(eais_src
src/EaisClient.cc
@@ -70,8 +78,6 @@ set(eais_src
src/model/ChangeResourceGroupResult.cc
src/model/CreateEaiRequest.cc
src/model/CreateEaiResult.cc
src/model/CreateEaiAllRequest.cc
src/model/CreateEaiAllResult.cc
src/model/CreateEaiEciRequest.cc
src/model/CreateEaiEciResult.cc
src/model/CreateEaiEcsRequest.cc
@@ -96,10 +102,20 @@ set(eais_src
src/model/DetachEaisEiResult.cc
src/model/GetInstanceMetricsRequest.cc
src/model/GetInstanceMetricsResult.cc
src/model/ListTagResourcesRequest.cc
src/model/ListTagResourcesResult.cc
src/model/StartEaiJupyterRequest.cc
src/model/StartEaiJupyterResult.cc
src/model/StartEaisEiRequest.cc
src/model/StartEaisEiResult.cc
src/model/StopEaiJupyterRequest.cc
src/model/StopEaiJupyterResult.cc
src/model/StopEaisEiRequest.cc
src/model/StopEaisEiResult.cc )
src/model/StopEaisEiResult.cc
src/model/TagResourcesRequest.cc
src/model/TagResourcesResult.cc
src/model/UntagResourcesRequest.cc
src/model/UntagResourcesResult.cc )
add_library(eais ${LIB_TYPE}
${eais_public_header}

View File

@@ -30,8 +30,6 @@
#include "model/ChangeResourceGroupResult.h"
#include "model/CreateEaiRequest.h"
#include "model/CreateEaiResult.h"
#include "model/CreateEaiAllRequest.h"
#include "model/CreateEaiAllResult.h"
#include "model/CreateEaiEciRequest.h"
#include "model/CreateEaiEciResult.h"
#include "model/CreateEaiEcsRequest.h"
@@ -56,10 +54,20 @@
#include "model/DetachEaisEiResult.h"
#include "model/GetInstanceMetricsRequest.h"
#include "model/GetInstanceMetricsResult.h"
#include "model/ListTagResourcesRequest.h"
#include "model/ListTagResourcesResult.h"
#include "model/StartEaiJupyterRequest.h"
#include "model/StartEaiJupyterResult.h"
#include "model/StartEaisEiRequest.h"
#include "model/StartEaisEiResult.h"
#include "model/StopEaiJupyterRequest.h"
#include "model/StopEaiJupyterResult.h"
#include "model/StopEaisEiRequest.h"
#include "model/StopEaisEiResult.h"
#include "model/TagResourcesRequest.h"
#include "model/TagResourcesResult.h"
#include "model/UntagResourcesRequest.h"
#include "model/UntagResourcesResult.h"
namespace AlibabaCloud
@@ -81,9 +89,6 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CreateEaiResult> CreateEaiOutcome;
typedef std::future<CreateEaiOutcome> CreateEaiOutcomeCallable;
typedef std::function<void(const EaisClient*, const Model::CreateEaiRequest&, const CreateEaiOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateEaiAsyncHandler;
typedef Outcome<Error, Model::CreateEaiAllResult> CreateEaiAllOutcome;
typedef std::future<CreateEaiAllOutcome> CreateEaiAllOutcomeCallable;
typedef std::function<void(const EaisClient*, const Model::CreateEaiAllRequest&, const CreateEaiAllOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateEaiAllAsyncHandler;
typedef Outcome<Error, Model::CreateEaiEciResult> CreateEaiEciOutcome;
typedef std::future<CreateEaiEciOutcome> CreateEaiEciOutcomeCallable;
typedef std::function<void(const EaisClient*, const Model::CreateEaiEciRequest&, const CreateEaiEciOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateEaiEciAsyncHandler;
@@ -120,12 +125,27 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GetInstanceMetricsResult> GetInstanceMetricsOutcome;
typedef std::future<GetInstanceMetricsOutcome> GetInstanceMetricsOutcomeCallable;
typedef std::function<void(const EaisClient*, const Model::GetInstanceMetricsRequest&, const GetInstanceMetricsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetInstanceMetricsAsyncHandler;
typedef Outcome<Error, Model::ListTagResourcesResult> ListTagResourcesOutcome;
typedef std::future<ListTagResourcesOutcome> ListTagResourcesOutcomeCallable;
typedef std::function<void(const EaisClient*, const Model::ListTagResourcesRequest&, const ListTagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTagResourcesAsyncHandler;
typedef Outcome<Error, Model::StartEaiJupyterResult> StartEaiJupyterOutcome;
typedef std::future<StartEaiJupyterOutcome> StartEaiJupyterOutcomeCallable;
typedef std::function<void(const EaisClient*, const Model::StartEaiJupyterRequest&, const StartEaiJupyterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartEaiJupyterAsyncHandler;
typedef Outcome<Error, Model::StartEaisEiResult> StartEaisEiOutcome;
typedef std::future<StartEaisEiOutcome> StartEaisEiOutcomeCallable;
typedef std::function<void(const EaisClient*, const Model::StartEaisEiRequest&, const StartEaisEiOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartEaisEiAsyncHandler;
typedef Outcome<Error, Model::StopEaiJupyterResult> StopEaiJupyterOutcome;
typedef std::future<StopEaiJupyterOutcome> StopEaiJupyterOutcomeCallable;
typedef std::function<void(const EaisClient*, const Model::StopEaiJupyterRequest&, const StopEaiJupyterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopEaiJupyterAsyncHandler;
typedef Outcome<Error, Model::StopEaisEiResult> StopEaisEiOutcome;
typedef std::future<StopEaisEiOutcome> StopEaisEiOutcomeCallable;
typedef std::function<void(const EaisClient*, const Model::StopEaisEiRequest&, const StopEaisEiOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopEaisEiAsyncHandler;
typedef Outcome<Error, Model::TagResourcesResult> TagResourcesOutcome;
typedef std::future<TagResourcesOutcome> TagResourcesOutcomeCallable;
typedef std::function<void(const EaisClient*, const Model::TagResourcesRequest&, const TagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TagResourcesAsyncHandler;
typedef Outcome<Error, Model::UntagResourcesResult> UntagResourcesOutcome;
typedef std::future<UntagResourcesOutcome> UntagResourcesOutcomeCallable;
typedef std::function<void(const EaisClient*, const Model::UntagResourcesRequest&, const UntagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UntagResourcesAsyncHandler;
EaisClient(const Credentials &credentials, const ClientConfiguration &configuration);
EaisClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
@@ -143,9 +163,6 @@ namespace AlibabaCloud
CreateEaiOutcome createEai(const Model::CreateEaiRequest &request)const;
void createEaiAsync(const Model::CreateEaiRequest& request, const CreateEaiAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateEaiOutcomeCallable createEaiCallable(const Model::CreateEaiRequest& request) const;
CreateEaiAllOutcome createEaiAll(const Model::CreateEaiAllRequest &request)const;
void createEaiAllAsync(const Model::CreateEaiAllRequest& request, const CreateEaiAllAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateEaiAllOutcomeCallable createEaiAllCallable(const Model::CreateEaiAllRequest& request) const;
CreateEaiEciOutcome createEaiEci(const Model::CreateEaiEciRequest &request)const;
void createEaiEciAsync(const Model::CreateEaiEciRequest& request, const CreateEaiEciAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateEaiEciOutcomeCallable createEaiEciCallable(const Model::CreateEaiEciRequest& request) const;
@@ -182,12 +199,27 @@ namespace AlibabaCloud
GetInstanceMetricsOutcome getInstanceMetrics(const Model::GetInstanceMetricsRequest &request)const;
void getInstanceMetricsAsync(const Model::GetInstanceMetricsRequest& request, const GetInstanceMetricsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetInstanceMetricsOutcomeCallable getInstanceMetricsCallable(const Model::GetInstanceMetricsRequest& request) const;
ListTagResourcesOutcome listTagResources(const Model::ListTagResourcesRequest &request)const;
void listTagResourcesAsync(const Model::ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListTagResourcesOutcomeCallable listTagResourcesCallable(const Model::ListTagResourcesRequest& request) const;
StartEaiJupyterOutcome startEaiJupyter(const Model::StartEaiJupyterRequest &request)const;
void startEaiJupyterAsync(const Model::StartEaiJupyterRequest& request, const StartEaiJupyterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
StartEaiJupyterOutcomeCallable startEaiJupyterCallable(const Model::StartEaiJupyterRequest& request) const;
StartEaisEiOutcome startEaisEi(const Model::StartEaisEiRequest &request)const;
void startEaisEiAsync(const Model::StartEaisEiRequest& request, const StartEaisEiAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
StartEaisEiOutcomeCallable startEaisEiCallable(const Model::StartEaisEiRequest& request) const;
StopEaiJupyterOutcome stopEaiJupyter(const Model::StopEaiJupyterRequest &request)const;
void stopEaiJupyterAsync(const Model::StopEaiJupyterRequest& request, const StopEaiJupyterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
StopEaiJupyterOutcomeCallable stopEaiJupyterCallable(const Model::StopEaiJupyterRequest& request) const;
StopEaisEiOutcome stopEaisEi(const Model::StopEaisEiRequest &request)const;
void stopEaisEiAsync(const Model::StopEaisEiRequest& request, const StopEaisEiAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
StopEaisEiOutcomeCallable stopEaisEiCallable(const Model::StopEaisEiRequest& request) const;
TagResourcesOutcome tagResources(const Model::TagResourcesRequest &request)const;
void tagResourcesAsync(const Model::TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
TagResourcesOutcomeCallable tagResourcesCallable(const Model::TagResourcesRequest& request) const;
UntagResourcesOutcome untagResources(const Model::UntagResourcesRequest &request)const;
void untagResourcesAsync(const Model::UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UntagResourcesOutcomeCallable untagResourcesCallable(const Model::UntagResourcesRequest& request) const;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;

View File

@@ -1,87 +0,0 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_EAIS_MODEL_CREATEEAIALLREQUEST_H_
#define ALIBABACLOUD_EAIS_MODEL_CREATEEAIALLREQUEST_H_
#include <alibabacloud/eais/EaisExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Eais {
namespace Model {
class ALIBABACLOUD_EAIS_EXPORT CreateEaiAllRequest : public RpcServiceRequest {
public:
CreateEaiAllRequest();
~CreateEaiAllRequest();
std::string getClientImageId() const;
void setClientImageId(const std::string &clientImageId);
std::string getClientSystemDiskCategory() const;
void setClientSystemDiskCategory(const std::string &clientSystemDiskCategory);
int getClientInternetMaxBandwidthOut() const;
void setClientInternetMaxBandwidthOut(int clientInternetMaxBandwidthOut);
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
std::string getResourceGroupId() const;
void setResourceGroupId(const std::string &resourceGroupId);
std::string getClientInstanceName() const;
void setClientInstanceName(const std::string &clientInstanceName);
int getClientInternetMaxBandwidthIn() const;
void setClientInternetMaxBandwidthIn(int clientInternetMaxBandwidthIn);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
int getClientSystemDiskSize() const;
void setClientSystemDiskSize(int clientSystemDiskSize);
std::string getClientVSwitchId() const;
void setClientVSwitchId(const std::string &clientVSwitchId);
std::string getClientPassword() const;
void setClientPassword(const std::string &clientPassword);
std::string getClientInstanceType() const;
void setClientInstanceType(const std::string &clientInstanceType);
std::string getClientSecurityGroupId() const;
void setClientSecurityGroupId(const std::string &clientSecurityGroupId);
std::string getEaiInstanceType() const;
void setEaiInstanceType(const std::string &eaiInstanceType);
std::string getClientZoneId() const;
void setClientZoneId(const std::string &clientZoneId);
std::string getInstanceName() const;
void setInstanceName(const std::string &instanceName);
private:
std::string clientImageId_;
std::string clientSystemDiskCategory_;
int clientInternetMaxBandwidthOut_;
std::string clientToken_;
std::string resourceGroupId_;
std::string clientInstanceName_;
int clientInternetMaxBandwidthIn_;
std::string regionId_;
int clientSystemDiskSize_;
std::string clientVSwitchId_;
std::string clientPassword_;
std::string clientInstanceType_;
std::string clientSecurityGroupId_;
std::string eaiInstanceType_;
std::string clientZoneId_;
std::string instanceName_;
};
} // namespace Model
} // namespace Eais
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_EAIS_MODEL_CREATEEAIALLREQUEST_H_

View File

@@ -0,0 +1,58 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_EAIS_MODEL_LISTTAGRESOURCESREQUEST_H_
#define ALIBABACLOUD_EAIS_MODEL_LISTTAGRESOURCESREQUEST_H_
#include <alibabacloud/eais/EaisExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Eais {
namespace Model {
class ALIBABACLOUD_EAIS_EXPORT ListTagResourcesRequest : public RpcServiceRequest {
public:
struct Tag {
std::string value;
std::string key;
};
ListTagResourcesRequest();
~ListTagResourcesRequest();
std::vector<std::string> getResourceId() const;
void setResourceId(const std::vector<std::string> &resourceId);
std::string getResourceType() const;
void setResourceType(const std::string &resourceType);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getNextToken() const;
void setNextToken(const std::string &nextToken);
std::vector<Tag> getTag() const;
void setTag(const std::vector<Tag> &tag);
private:
std::vector<std::string> resourceId_;
std::string resourceType_;
std::string regionId_;
std::string nextToken_;
std::vector<Tag> tag_;
};
} // namespace Model
} // namespace Eais
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_EAIS_MODEL_LISTTAGRESOURCESREQUEST_H_

View File

@@ -0,0 +1,60 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_EAIS_MODEL_LISTTAGRESOURCESRESULT_H_
#define ALIBABACLOUD_EAIS_MODEL_LISTTAGRESOURCESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/eais/EaisExport.h>
namespace AlibabaCloud
{
namespace Eais
{
namespace Model
{
class ALIBABACLOUD_EAIS_EXPORT ListTagResourcesResult : public ServiceResult
{
public:
struct TagResource
{
std::string resourceId;
std::string tagKey;
std::string resourceType;
std::string tagValue;
};
ListTagResourcesResult();
explicit ListTagResourcesResult(const std::string &payload);
~ListTagResourcesResult();
std::string getNextToken()const;
std::vector<TagResource> getTagResources()const;
protected:
void parse(const std::string &payload);
private:
std::string nextToken_;
std::vector<TagResource> tagResources_;
};
}
}
}
#endif // !ALIBABACLOUD_EAIS_MODEL_LISTTAGRESOURCESRESULT_H_

View 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.
*/
#ifndef ALIBABACLOUD_EAIS_MODEL_STARTEAIJUPYTERREQUEST_H_
#define ALIBABACLOUD_EAIS_MODEL_STARTEAIJUPYTERREQUEST_H_
#include <alibabacloud/eais/EaisExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Eais {
namespace Model {
class ALIBABACLOUD_EAIS_EXPORT StartEaiJupyterRequest : public RpcServiceRequest {
public:
StartEaiJupyterRequest();
~StartEaiJupyterRequest();
std::string getInstanceId() const;
void setInstanceId(const std::string &instanceId);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
private:
std::string instanceId_;
std::string regionId_;
};
} // namespace Model
} // namespace Eais
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_EAIS_MODEL_STARTEAIJUPYTERREQUEST_H_

View File

@@ -0,0 +1,61 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_EAIS_MODEL_STARTEAIJUPYTERRESULT_H_
#define ALIBABACLOUD_EAIS_MODEL_STARTEAIJUPYTERRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/eais/EaisExport.h>
namespace AlibabaCloud
{
namespace Eais
{
namespace Model
{
class ALIBABACLOUD_EAIS_EXPORT StartEaiJupyterResult : public ServiceResult
{
public:
struct AccessDeniedDetail
{
std::string policyType;
std::string authPrincipalOwnerId;
std::string encodedDiagnosticMessage;
std::string authPrincipalType;
std::string authPrincipalDisplayName;
std::string noPermissionType;
std::string authAction;
};
StartEaiJupyterResult();
explicit StartEaiJupyterResult(const std::string &payload);
~StartEaiJupyterResult();
AccessDeniedDetail getAccessDeniedDetail()const;
protected:
void parse(const std::string &payload);
private:
AccessDeniedDetail accessDeniedDetail_;
};
}
}
}
#endif // !ALIBABACLOUD_EAIS_MODEL_STARTEAIJUPYTERRESULT_H_

View 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.
*/
#ifndef ALIBABACLOUD_EAIS_MODEL_STOPEAIJUPYTERREQUEST_H_
#define ALIBABACLOUD_EAIS_MODEL_STOPEAIJUPYTERREQUEST_H_
#include <alibabacloud/eais/EaisExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Eais {
namespace Model {
class ALIBABACLOUD_EAIS_EXPORT StopEaiJupyterRequest : public RpcServiceRequest {
public:
StopEaiJupyterRequest();
~StopEaiJupyterRequest();
std::string getInstanceId() const;
void setInstanceId(const std::string &instanceId);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
private:
std::string instanceId_;
std::string regionId_;
};
} // namespace Model
} // namespace Eais
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_EAIS_MODEL_STOPEAIJUPYTERREQUEST_H_

View File

@@ -0,0 +1,61 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_EAIS_MODEL_STOPEAIJUPYTERRESULT_H_
#define ALIBABACLOUD_EAIS_MODEL_STOPEAIJUPYTERRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/eais/EaisExport.h>
namespace AlibabaCloud
{
namespace Eais
{
namespace Model
{
class ALIBABACLOUD_EAIS_EXPORT StopEaiJupyterResult : public ServiceResult
{
public:
struct AccessDeniedDetail
{
std::string policyType;
std::string authPrincipalOwnerId;
std::string encodedDiagnosticMessage;
std::string authPrincipalType;
std::string authPrincipalDisplayName;
std::string noPermissionType;
std::string authAction;
};
StopEaiJupyterResult();
explicit StopEaiJupyterResult(const std::string &payload);
~StopEaiJupyterResult();
AccessDeniedDetail getAccessDeniedDetail()const;
protected:
void parse(const std::string &payload);
private:
AccessDeniedDetail accessDeniedDetail_;
};
}
}
}
#endif // !ALIBABACLOUD_EAIS_MODEL_STOPEAIJUPYTERRESULT_H_

View File

@@ -0,0 +1,55 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_EAIS_MODEL_TAGRESOURCESREQUEST_H_
#define ALIBABACLOUD_EAIS_MODEL_TAGRESOURCESREQUEST_H_
#include <alibabacloud/eais/EaisExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Eais {
namespace Model {
class ALIBABACLOUD_EAIS_EXPORT TagResourcesRequest : public RpcServiceRequest {
public:
struct Tag {
std::string value;
std::string key;
};
TagResourcesRequest();
~TagResourcesRequest();
std::vector<std::string> getResourceId() const;
void setResourceId(const std::vector<std::string> &resourceId);
std::string getResourceType() const;
void setResourceType(const std::string &resourceType);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::vector<Tag> getTag() const;
void setTag(const std::vector<Tag> &tag);
private:
std::vector<std::string> resourceId_;
std::string resourceType_;
std::string regionId_;
std::vector<Tag> tag_;
};
} // namespace Model
} // namespace Eais
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_EAIS_MODEL_TAGRESOURCESREQUEST_H_

View File

@@ -14,8 +14,8 @@
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EAIS_MODEL_CREATEEAIALLRESULT_H_
#define ALIBABACLOUD_EAIS_MODEL_CREATEEAIALLRESULT_H_
#ifndef ALIBABACLOUD_EAIS_MODEL_TAGRESOURCESRESULT_H_
#define ALIBABACLOUD_EAIS_MODEL_TAGRESOURCESRESULT_H_
#include <string>
#include <vector>
@@ -29,25 +29,21 @@ namespace AlibabaCloud
{
namespace Model
{
class ALIBABACLOUD_EAIS_EXPORT CreateEaiAllResult : public ServiceResult
class ALIBABACLOUD_EAIS_EXPORT TagResourcesResult : public ServiceResult
{
public:
CreateEaiAllResult();
explicit CreateEaiAllResult(const std::string &payload);
~CreateEaiAllResult();
std::string getClientInstanceId()const;
std::string getElasticAcceleratedInstanceId()const;
TagResourcesResult();
explicit TagResourcesResult(const std::string &payload);
~TagResourcesResult();
protected:
void parse(const std::string &payload);
private:
std::string clientInstanceId_;
std::string elasticAcceleratedInstanceId_;
};
}
}
}
#endif // !ALIBABACLOUD_EAIS_MODEL_CREATEEAIALLRESULT_H_
#endif // !ALIBABACLOUD_EAIS_MODEL_TAGRESOURCESRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_EAIS_MODEL_UNTAGRESOURCESREQUEST_H_
#define ALIBABACLOUD_EAIS_MODEL_UNTAGRESOURCESREQUEST_H_
#include <alibabacloud/eais/EaisExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Eais {
namespace Model {
class ALIBABACLOUD_EAIS_EXPORT UntagResourcesRequest : public RpcServiceRequest {
public:
UntagResourcesRequest();
~UntagResourcesRequest();
bool getAll() const;
void setAll(bool all);
std::vector<std::string> getResourceId() const;
void setResourceId(const std::vector<std::string> &resourceId);
std::string getResourceType() const;
void setResourceType(const std::string &resourceType);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::vector<std::string> getTagKey() const;
void setTagKey(const std::vector<std::string> &tagKey);
private:
bool all_;
std::vector<std::string> resourceId_;
std::string resourceType_;
std::string regionId_;
std::vector<std::string> tagKey_;
};
} // namespace Model
} // namespace Eais
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_EAIS_MODEL_UNTAGRESOURCESREQUEST_H_

View 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.
*/
#ifndef ALIBABACLOUD_EAIS_MODEL_UNTAGRESOURCESRESULT_H_
#define ALIBABACLOUD_EAIS_MODEL_UNTAGRESOURCESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/eais/EaisExport.h>
namespace AlibabaCloud
{
namespace Eais
{
namespace Model
{
class ALIBABACLOUD_EAIS_EXPORT UntagResourcesResult : public ServiceResult
{
public:
UntagResourcesResult();
explicit UntagResourcesResult(const std::string &payload);
~UntagResourcesResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_EAIS_MODEL_UNTAGRESOURCESRESULT_H_

View File

@@ -195,42 +195,6 @@ EaisClient::CreateEaiOutcomeCallable EaisClient::createEaiCallable(const CreateE
return task->get_future();
}
EaisClient::CreateEaiAllOutcome EaisClient::createEaiAll(const CreateEaiAllRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateEaiAllOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateEaiAllOutcome(CreateEaiAllResult(outcome.result()));
else
return CreateEaiAllOutcome(outcome.error());
}
void EaisClient::createEaiAllAsync(const CreateEaiAllRequest& request, const CreateEaiAllAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createEaiAll(request), context);
};
asyncExecute(new Runnable(fn));
}
EaisClient::CreateEaiAllOutcomeCallable EaisClient::createEaiAllCallable(const CreateEaiAllRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateEaiAllOutcome()>>(
[this, request]()
{
return this->createEaiAll(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EaisClient::CreateEaiEciOutcome EaisClient::createEaiEci(const CreateEaiEciRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -663,6 +627,78 @@ EaisClient::GetInstanceMetricsOutcomeCallable EaisClient::getInstanceMetricsCall
return task->get_future();
}
EaisClient::ListTagResourcesOutcome EaisClient::listTagResources(const ListTagResourcesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListTagResourcesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListTagResourcesOutcome(ListTagResourcesResult(outcome.result()));
else
return ListTagResourcesOutcome(outcome.error());
}
void EaisClient::listTagResourcesAsync(const ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listTagResources(request), context);
};
asyncExecute(new Runnable(fn));
}
EaisClient::ListTagResourcesOutcomeCallable EaisClient::listTagResourcesCallable(const ListTagResourcesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListTagResourcesOutcome()>>(
[this, request]()
{
return this->listTagResources(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EaisClient::StartEaiJupyterOutcome EaisClient::startEaiJupyter(const StartEaiJupyterRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return StartEaiJupyterOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return StartEaiJupyterOutcome(StartEaiJupyterResult(outcome.result()));
else
return StartEaiJupyterOutcome(outcome.error());
}
void EaisClient::startEaiJupyterAsync(const StartEaiJupyterRequest& request, const StartEaiJupyterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, startEaiJupyter(request), context);
};
asyncExecute(new Runnable(fn));
}
EaisClient::StartEaiJupyterOutcomeCallable EaisClient::startEaiJupyterCallable(const StartEaiJupyterRequest &request) const
{
auto task = std::make_shared<std::packaged_task<StartEaiJupyterOutcome()>>(
[this, request]()
{
return this->startEaiJupyter(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EaisClient::StartEaisEiOutcome EaisClient::startEaisEi(const StartEaisEiRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -699,6 +735,42 @@ EaisClient::StartEaisEiOutcomeCallable EaisClient::startEaisEiCallable(const Sta
return task->get_future();
}
EaisClient::StopEaiJupyterOutcome EaisClient::stopEaiJupyter(const StopEaiJupyterRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return StopEaiJupyterOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return StopEaiJupyterOutcome(StopEaiJupyterResult(outcome.result()));
else
return StopEaiJupyterOutcome(outcome.error());
}
void EaisClient::stopEaiJupyterAsync(const StopEaiJupyterRequest& request, const StopEaiJupyterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, stopEaiJupyter(request), context);
};
asyncExecute(new Runnable(fn));
}
EaisClient::StopEaiJupyterOutcomeCallable EaisClient::stopEaiJupyterCallable(const StopEaiJupyterRequest &request) const
{
auto task = std::make_shared<std::packaged_task<StopEaiJupyterOutcome()>>(
[this, request]()
{
return this->stopEaiJupyter(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EaisClient::StopEaisEiOutcome EaisClient::stopEaisEi(const StopEaisEiRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -735,3 +807,75 @@ EaisClient::StopEaisEiOutcomeCallable EaisClient::stopEaisEiCallable(const StopE
return task->get_future();
}
EaisClient::TagResourcesOutcome EaisClient::tagResources(const TagResourcesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return TagResourcesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return TagResourcesOutcome(TagResourcesResult(outcome.result()));
else
return TagResourcesOutcome(outcome.error());
}
void EaisClient::tagResourcesAsync(const TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, tagResources(request), context);
};
asyncExecute(new Runnable(fn));
}
EaisClient::TagResourcesOutcomeCallable EaisClient::tagResourcesCallable(const TagResourcesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<TagResourcesOutcome()>>(
[this, request]()
{
return this->tagResources(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EaisClient::UntagResourcesOutcome EaisClient::untagResources(const UntagResourcesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UntagResourcesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UntagResourcesOutcome(UntagResourcesResult(outcome.result()));
else
return UntagResourcesOutcome(outcome.error());
}
void EaisClient::untagResourcesAsync(const UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, untagResources(request), context);
};
asyncExecute(new Runnable(fn));
}
EaisClient::UntagResourcesOutcomeCallable EaisClient::untagResourcesCallable(const UntagResourcesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UntagResourcesOutcome()>>(
[this, request]()
{
return this->untagResources(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}

View File

@@ -1,171 +0,0 @@
/*
* 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/eais/model/CreateEaiAllRequest.h>
using AlibabaCloud::Eais::Model::CreateEaiAllRequest;
CreateEaiAllRequest::CreateEaiAllRequest()
: RpcServiceRequest("eais", "2019-06-24", "CreateEaiAll") {
setMethod(HttpRequest::Method::Post);
}
CreateEaiAllRequest::~CreateEaiAllRequest() {}
std::string CreateEaiAllRequest::getClientImageId() const {
return clientImageId_;
}
void CreateEaiAllRequest::setClientImageId(const std::string &clientImageId) {
clientImageId_ = clientImageId;
setParameter(std::string("ClientImageId"), clientImageId);
}
std::string CreateEaiAllRequest::getClientSystemDiskCategory() const {
return clientSystemDiskCategory_;
}
void CreateEaiAllRequest::setClientSystemDiskCategory(const std::string &clientSystemDiskCategory) {
clientSystemDiskCategory_ = clientSystemDiskCategory;
setParameter(std::string("ClientSystemDiskCategory"), clientSystemDiskCategory);
}
int CreateEaiAllRequest::getClientInternetMaxBandwidthOut() const {
return clientInternetMaxBandwidthOut_;
}
void CreateEaiAllRequest::setClientInternetMaxBandwidthOut(int clientInternetMaxBandwidthOut) {
clientInternetMaxBandwidthOut_ = clientInternetMaxBandwidthOut;
setParameter(std::string("ClientInternetMaxBandwidthOut"), std::to_string(clientInternetMaxBandwidthOut));
}
std::string CreateEaiAllRequest::getClientToken() const {
return clientToken_;
}
void CreateEaiAllRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
std::string CreateEaiAllRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void CreateEaiAllRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string CreateEaiAllRequest::getClientInstanceName() const {
return clientInstanceName_;
}
void CreateEaiAllRequest::setClientInstanceName(const std::string &clientInstanceName) {
clientInstanceName_ = clientInstanceName;
setParameter(std::string("ClientInstanceName"), clientInstanceName);
}
int CreateEaiAllRequest::getClientInternetMaxBandwidthIn() const {
return clientInternetMaxBandwidthIn_;
}
void CreateEaiAllRequest::setClientInternetMaxBandwidthIn(int clientInternetMaxBandwidthIn) {
clientInternetMaxBandwidthIn_ = clientInternetMaxBandwidthIn;
setParameter(std::string("ClientInternetMaxBandwidthIn"), std::to_string(clientInternetMaxBandwidthIn));
}
std::string CreateEaiAllRequest::getRegionId() const {
return regionId_;
}
void CreateEaiAllRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
int CreateEaiAllRequest::getClientSystemDiskSize() const {
return clientSystemDiskSize_;
}
void CreateEaiAllRequest::setClientSystemDiskSize(int clientSystemDiskSize) {
clientSystemDiskSize_ = clientSystemDiskSize;
setParameter(std::string("ClientSystemDiskSize"), std::to_string(clientSystemDiskSize));
}
std::string CreateEaiAllRequest::getClientVSwitchId() const {
return clientVSwitchId_;
}
void CreateEaiAllRequest::setClientVSwitchId(const std::string &clientVSwitchId) {
clientVSwitchId_ = clientVSwitchId;
setParameter(std::string("ClientVSwitchId"), clientVSwitchId);
}
std::string CreateEaiAllRequest::getClientPassword() const {
return clientPassword_;
}
void CreateEaiAllRequest::setClientPassword(const std::string &clientPassword) {
clientPassword_ = clientPassword;
setParameter(std::string("ClientPassword"), clientPassword);
}
std::string CreateEaiAllRequest::getClientInstanceType() const {
return clientInstanceType_;
}
void CreateEaiAllRequest::setClientInstanceType(const std::string &clientInstanceType) {
clientInstanceType_ = clientInstanceType;
setParameter(std::string("ClientInstanceType"), clientInstanceType);
}
std::string CreateEaiAllRequest::getClientSecurityGroupId() const {
return clientSecurityGroupId_;
}
void CreateEaiAllRequest::setClientSecurityGroupId(const std::string &clientSecurityGroupId) {
clientSecurityGroupId_ = clientSecurityGroupId;
setParameter(std::string("ClientSecurityGroupId"), clientSecurityGroupId);
}
std::string CreateEaiAllRequest::getEaiInstanceType() const {
return eaiInstanceType_;
}
void CreateEaiAllRequest::setEaiInstanceType(const std::string &eaiInstanceType) {
eaiInstanceType_ = eaiInstanceType;
setParameter(std::string("EaiInstanceType"), eaiInstanceType);
}
std::string CreateEaiAllRequest::getClientZoneId() const {
return clientZoneId_;
}
void CreateEaiAllRequest::setClientZoneId(const std::string &clientZoneId) {
clientZoneId_ = clientZoneId;
setParameter(std::string("ClientZoneId"), clientZoneId);
}
std::string CreateEaiAllRequest::getInstanceName() const {
return instanceName_;
}
void CreateEaiAllRequest::setInstanceName(const std::string &instanceName) {
instanceName_ = instanceName;
setParameter(std::string("InstanceName"), instanceName);
}

View 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/eais/model/ListTagResourcesRequest.h>
using AlibabaCloud::Eais::Model::ListTagResourcesRequest;
ListTagResourcesRequest::ListTagResourcesRequest()
: RpcServiceRequest("eais", "2019-06-24", "ListTagResources") {
setMethod(HttpRequest::Method::Post);
}
ListTagResourcesRequest::~ListTagResourcesRequest() {}
std::vector<std::string> ListTagResourcesRequest::getResourceId() const {
return resourceId_;
}
void ListTagResourcesRequest::setResourceId(const std::vector<std::string> &resourceId) {
resourceId_ = resourceId;
}
std::string ListTagResourcesRequest::getResourceType() const {
return resourceType_;
}
void ListTagResourcesRequest::setResourceType(const std::string &resourceType) {
resourceType_ = resourceType;
setParameter(std::string("ResourceType"), resourceType);
}
std::string ListTagResourcesRequest::getRegionId() const {
return regionId_;
}
void ListTagResourcesRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string ListTagResourcesRequest::getNextToken() const {
return nextToken_;
}
void ListTagResourcesRequest::setNextToken(const std::string &nextToken) {
nextToken_ = nextToken;
setParameter(std::string("NextToken"), nextToken);
}
std::vector<ListTagResourcesRequest::Tag> ListTagResourcesRequest::getTag() const {
return tag_;
}
void ListTagResourcesRequest::setTag(const std::vector<ListTagResourcesRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
setParameter(tagObjStr + ".Value", tagObj.value);
setParameter(tagObjStr + ".Key", tagObj.key);
}
}

View File

@@ -0,0 +1,70 @@
/*
* 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/eais/model/ListTagResourcesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eais;
using namespace AlibabaCloud::Eais::Model;
ListTagResourcesResult::ListTagResourcesResult() :
ServiceResult()
{}
ListTagResourcesResult::ListTagResourcesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListTagResourcesResult::~ListTagResourcesResult()
{}
void ListTagResourcesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allTagResourcesNode = value["TagResources"]["TagResource"];
for (auto valueTagResourcesTagResource : allTagResourcesNode)
{
TagResource tagResourcesObject;
if(!valueTagResourcesTagResource["TagKey"].isNull())
tagResourcesObject.tagKey = valueTagResourcesTagResource["TagKey"].asString();
if(!valueTagResourcesTagResource["TagValue"].isNull())
tagResourcesObject.tagValue = valueTagResourcesTagResource["TagValue"].asString();
if(!valueTagResourcesTagResource["ResourceId"].isNull())
tagResourcesObject.resourceId = valueTagResourcesTagResource["ResourceId"].asString();
if(!valueTagResourcesTagResource["ResourceType"].isNull())
tagResourcesObject.resourceType = valueTagResourcesTagResource["ResourceType"].asString();
tagResources_.push_back(tagResourcesObject);
}
if(!value["NextToken"].isNull())
nextToken_ = value["NextToken"].asString();
}
std::string ListTagResourcesResult::getNextToken()const
{
return nextToken_;
}
std::vector<ListTagResourcesResult::TagResource> ListTagResourcesResult::getTagResources()const
{
return tagResources_;
}

View 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/eais/model/StartEaiJupyterRequest.h>
using AlibabaCloud::Eais::Model::StartEaiJupyterRequest;
StartEaiJupyterRequest::StartEaiJupyterRequest()
: RpcServiceRequest("eais", "2019-06-24", "StartEaiJupyter") {
setMethod(HttpRequest::Method::Post);
}
StartEaiJupyterRequest::~StartEaiJupyterRequest() {}
std::string StartEaiJupyterRequest::getInstanceId() const {
return instanceId_;
}
void StartEaiJupyterRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string StartEaiJupyterRequest::getRegionId() const {
return regionId_;
}
void StartEaiJupyterRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}

View File

@@ -0,0 +1,64 @@
/*
* 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/eais/model/StartEaiJupyterResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eais;
using namespace AlibabaCloud::Eais::Model;
StartEaiJupyterResult::StartEaiJupyterResult() :
ServiceResult()
{}
StartEaiJupyterResult::StartEaiJupyterResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
StartEaiJupyterResult::~StartEaiJupyterResult()
{}
void StartEaiJupyterResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto accessDeniedDetailNode = value["AccessDeniedDetail"];
if(!accessDeniedDetailNode["AuthAction"].isNull())
accessDeniedDetail_.authAction = accessDeniedDetailNode["AuthAction"].asString();
if(!accessDeniedDetailNode["AuthPrincipalDisplayName"].isNull())
accessDeniedDetail_.authPrincipalDisplayName = accessDeniedDetailNode["AuthPrincipalDisplayName"].asString();
if(!accessDeniedDetailNode["AuthPrincipalOwnerId"].isNull())
accessDeniedDetail_.authPrincipalOwnerId = accessDeniedDetailNode["AuthPrincipalOwnerId"].asString();
if(!accessDeniedDetailNode["AuthPrincipalType"].isNull())
accessDeniedDetail_.authPrincipalType = accessDeniedDetailNode["AuthPrincipalType"].asString();
if(!accessDeniedDetailNode["EncodedDiagnosticMessage"].isNull())
accessDeniedDetail_.encodedDiagnosticMessage = accessDeniedDetailNode["EncodedDiagnosticMessage"].asString();
if(!accessDeniedDetailNode["NoPermissionType"].isNull())
accessDeniedDetail_.noPermissionType = accessDeniedDetailNode["NoPermissionType"].asString();
if(!accessDeniedDetailNode["PolicyType"].isNull())
accessDeniedDetail_.policyType = accessDeniedDetailNode["PolicyType"].asString();
}
StartEaiJupyterResult::AccessDeniedDetail StartEaiJupyterResult::getAccessDeniedDetail()const
{
return accessDeniedDetail_;
}

View 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/eais/model/StopEaiJupyterRequest.h>
using AlibabaCloud::Eais::Model::StopEaiJupyterRequest;
StopEaiJupyterRequest::StopEaiJupyterRequest()
: RpcServiceRequest("eais", "2019-06-24", "StopEaiJupyter") {
setMethod(HttpRequest::Method::Post);
}
StopEaiJupyterRequest::~StopEaiJupyterRequest() {}
std::string StopEaiJupyterRequest::getInstanceId() const {
return instanceId_;
}
void StopEaiJupyterRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string StopEaiJupyterRequest::getRegionId() const {
return regionId_;
}
void StopEaiJupyterRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}

View File

@@ -0,0 +1,64 @@
/*
* 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/eais/model/StopEaiJupyterResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eais;
using namespace AlibabaCloud::Eais::Model;
StopEaiJupyterResult::StopEaiJupyterResult() :
ServiceResult()
{}
StopEaiJupyterResult::StopEaiJupyterResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
StopEaiJupyterResult::~StopEaiJupyterResult()
{}
void StopEaiJupyterResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto accessDeniedDetailNode = value["AccessDeniedDetail"];
if(!accessDeniedDetailNode["AuthAction"].isNull())
accessDeniedDetail_.authAction = accessDeniedDetailNode["AuthAction"].asString();
if(!accessDeniedDetailNode["AuthPrincipalDisplayName"].isNull())
accessDeniedDetail_.authPrincipalDisplayName = accessDeniedDetailNode["AuthPrincipalDisplayName"].asString();
if(!accessDeniedDetailNode["AuthPrincipalOwnerId"].isNull())
accessDeniedDetail_.authPrincipalOwnerId = accessDeniedDetailNode["AuthPrincipalOwnerId"].asString();
if(!accessDeniedDetailNode["AuthPrincipalType"].isNull())
accessDeniedDetail_.authPrincipalType = accessDeniedDetailNode["AuthPrincipalType"].asString();
if(!accessDeniedDetailNode["EncodedDiagnosticMessage"].isNull())
accessDeniedDetail_.encodedDiagnosticMessage = accessDeniedDetailNode["EncodedDiagnosticMessage"].asString();
if(!accessDeniedDetailNode["NoPermissionType"].isNull())
accessDeniedDetail_.noPermissionType = accessDeniedDetailNode["NoPermissionType"].asString();
if(!accessDeniedDetailNode["PolicyType"].isNull())
accessDeniedDetail_.policyType = accessDeniedDetailNode["PolicyType"].asString();
}
StopEaiJupyterResult::AccessDeniedDetail StopEaiJupyterResult::getAccessDeniedDetail()const
{
return accessDeniedDetail_;
}

View File

@@ -0,0 +1,67 @@
/*
* 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/eais/model/TagResourcesRequest.h>
using AlibabaCloud::Eais::Model::TagResourcesRequest;
TagResourcesRequest::TagResourcesRequest()
: RpcServiceRequest("eais", "2019-06-24", "TagResources") {
setMethod(HttpRequest::Method::Post);
}
TagResourcesRequest::~TagResourcesRequest() {}
std::vector<std::string> TagResourcesRequest::getResourceId() const {
return resourceId_;
}
void TagResourcesRequest::setResourceId(const std::vector<std::string> &resourceId) {
resourceId_ = resourceId;
}
std::string TagResourcesRequest::getResourceType() const {
return resourceType_;
}
void TagResourcesRequest::setResourceType(const std::string &resourceType) {
resourceType_ = resourceType;
setParameter(std::string("ResourceType"), resourceType);
}
std::string TagResourcesRequest::getRegionId() const {
return regionId_;
}
void TagResourcesRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::vector<TagResourcesRequest::Tag> TagResourcesRequest::getTag() const {
return tag_;
}
void TagResourcesRequest::setTag(const std::vector<TagResourcesRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1);
setParameter(tagObjStr + ".Value", tagObj.value);
setParameter(tagObjStr + ".Key", tagObj.key);
}
}

View File

@@ -14,45 +14,31 @@
* limitations under the License.
*/
#include <alibabacloud/eais/model/CreateEaiAllResult.h>
#include <alibabacloud/eais/model/TagResourcesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eais;
using namespace AlibabaCloud::Eais::Model;
CreateEaiAllResult::CreateEaiAllResult() :
TagResourcesResult::TagResourcesResult() :
ServiceResult()
{}
CreateEaiAllResult::CreateEaiAllResult(const std::string &payload) :
TagResourcesResult::TagResourcesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateEaiAllResult::~CreateEaiAllResult()
TagResourcesResult::~TagResourcesResult()
{}
void CreateEaiAllResult::parse(const std::string &payload)
void TagResourcesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ElasticAcceleratedInstanceId"].isNull())
elasticAcceleratedInstanceId_ = value["ElasticAcceleratedInstanceId"].asString();
if(!value["ClientInstanceId"].isNull())
clientInstanceId_ = value["ClientInstanceId"].asString();
}
std::string CreateEaiAllResult::getClientInstanceId()const
{
return clientInstanceId_;
}
std::string CreateEaiAllResult::getElasticAcceleratedInstanceId()const
{
return elasticAcceleratedInstanceId_;
}

View File

@@ -0,0 +1,70 @@
/*
* 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/eais/model/UntagResourcesRequest.h>
using AlibabaCloud::Eais::Model::UntagResourcesRequest;
UntagResourcesRequest::UntagResourcesRequest()
: RpcServiceRequest("eais", "2019-06-24", "UntagResources") {
setMethod(HttpRequest::Method::Post);
}
UntagResourcesRequest::~UntagResourcesRequest() {}
bool UntagResourcesRequest::getAll() const {
return all_;
}
void UntagResourcesRequest::setAll(bool all) {
all_ = all;
setParameter(std::string("All"), all ? "true" : "false");
}
std::vector<std::string> UntagResourcesRequest::getResourceId() const {
return resourceId_;
}
void UntagResourcesRequest::setResourceId(const std::vector<std::string> &resourceId) {
resourceId_ = resourceId;
}
std::string UntagResourcesRequest::getResourceType() const {
return resourceType_;
}
void UntagResourcesRequest::setResourceType(const std::string &resourceType) {
resourceType_ = resourceType;
setParameter(std::string("ResourceType"), resourceType);
}
std::string UntagResourcesRequest::getRegionId() const {
return regionId_;
}
void UntagResourcesRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::vector<std::string> UntagResourcesRequest::getTagKey() const {
return tagKey_;
}
void UntagResourcesRequest::setTagKey(const std::vector<std::string> &tagKey) {
tagKey_ = tagKey;
}

View File

@@ -0,0 +1,44 @@
/*
* 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/eais/model/UntagResourcesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Eais;
using namespace AlibabaCloud::Eais::Model;
UntagResourcesResult::UntagResourcesResult() :
ServiceResult()
{}
UntagResourcesResult::UntagResourcesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UntagResourcesResult::~UntagResourcesResult()
{}
void UntagResourcesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

182
gwlb/CMakeLists.txt Normal file
View File

@@ -0,0 +1,182 @@
#
# 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.
#
set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include)
set(gwlb_public_header
include/alibabacloud/gwlb/GwlbClient.h
include/alibabacloud/gwlb/GwlbExport.h )
set(gwlb_public_header_model
include/alibabacloud/gwlb/model/AddServersToServerGroupRequest.h
include/alibabacloud/gwlb/model/AddServersToServerGroupResult.h
include/alibabacloud/gwlb/model/CreateListenerRequest.h
include/alibabacloud/gwlb/model/CreateListenerResult.h
include/alibabacloud/gwlb/model/CreateLoadBalancerRequest.h
include/alibabacloud/gwlb/model/CreateLoadBalancerResult.h
include/alibabacloud/gwlb/model/CreateServerGroupRequest.h
include/alibabacloud/gwlb/model/CreateServerGroupResult.h
include/alibabacloud/gwlb/model/DeleteListenerRequest.h
include/alibabacloud/gwlb/model/DeleteListenerResult.h
include/alibabacloud/gwlb/model/DeleteLoadBalancerRequest.h
include/alibabacloud/gwlb/model/DeleteLoadBalancerResult.h
include/alibabacloud/gwlb/model/DeleteServerGroupRequest.h
include/alibabacloud/gwlb/model/DeleteServerGroupResult.h
include/alibabacloud/gwlb/model/DescribeRegionsRequest.h
include/alibabacloud/gwlb/model/DescribeRegionsResult.h
include/alibabacloud/gwlb/model/DescribeZonesRequest.h
include/alibabacloud/gwlb/model/DescribeZonesResult.h
include/alibabacloud/gwlb/model/GetListenerAttributeRequest.h
include/alibabacloud/gwlb/model/GetListenerAttributeResult.h
include/alibabacloud/gwlb/model/GetListenerHealthStatusRequest.h
include/alibabacloud/gwlb/model/GetListenerHealthStatusResult.h
include/alibabacloud/gwlb/model/GetLoadBalancerAttributeRequest.h
include/alibabacloud/gwlb/model/GetLoadBalancerAttributeResult.h
include/alibabacloud/gwlb/model/ListListenersRequest.h
include/alibabacloud/gwlb/model/ListListenersResult.h
include/alibabacloud/gwlb/model/ListLoadBalancersRequest.h
include/alibabacloud/gwlb/model/ListLoadBalancersResult.h
include/alibabacloud/gwlb/model/ListServerGroupServersRequest.h
include/alibabacloud/gwlb/model/ListServerGroupServersResult.h
include/alibabacloud/gwlb/model/ListServerGroupsRequest.h
include/alibabacloud/gwlb/model/ListServerGroupsResult.h
include/alibabacloud/gwlb/model/ListTagResourcesRequest.h
include/alibabacloud/gwlb/model/ListTagResourcesResult.h
include/alibabacloud/gwlb/model/MoveResourceGroupRequest.h
include/alibabacloud/gwlb/model/MoveResourceGroupResult.h
include/alibabacloud/gwlb/model/RemoveServersFromServerGroupRequest.h
include/alibabacloud/gwlb/model/RemoveServersFromServerGroupResult.h
include/alibabacloud/gwlb/model/TagResourcesRequest.h
include/alibabacloud/gwlb/model/TagResourcesResult.h
include/alibabacloud/gwlb/model/UntagResourcesRequest.h
include/alibabacloud/gwlb/model/UntagResourcesResult.h
include/alibabacloud/gwlb/model/UpdateListenerAttributeRequest.h
include/alibabacloud/gwlb/model/UpdateListenerAttributeResult.h
include/alibabacloud/gwlb/model/UpdateLoadBalancerAttributeRequest.h
include/alibabacloud/gwlb/model/UpdateLoadBalancerAttributeResult.h
include/alibabacloud/gwlb/model/UpdateLoadBalancerZonesRequest.h
include/alibabacloud/gwlb/model/UpdateLoadBalancerZonesResult.h
include/alibabacloud/gwlb/model/UpdateServerGroupAttributeRequest.h
include/alibabacloud/gwlb/model/UpdateServerGroupAttributeResult.h )
set(gwlb_src
src/GwlbClient.cc
src/model/AddServersToServerGroupRequest.cc
src/model/AddServersToServerGroupResult.cc
src/model/CreateListenerRequest.cc
src/model/CreateListenerResult.cc
src/model/CreateLoadBalancerRequest.cc
src/model/CreateLoadBalancerResult.cc
src/model/CreateServerGroupRequest.cc
src/model/CreateServerGroupResult.cc
src/model/DeleteListenerRequest.cc
src/model/DeleteListenerResult.cc
src/model/DeleteLoadBalancerRequest.cc
src/model/DeleteLoadBalancerResult.cc
src/model/DeleteServerGroupRequest.cc
src/model/DeleteServerGroupResult.cc
src/model/DescribeRegionsRequest.cc
src/model/DescribeRegionsResult.cc
src/model/DescribeZonesRequest.cc
src/model/DescribeZonesResult.cc
src/model/GetListenerAttributeRequest.cc
src/model/GetListenerAttributeResult.cc
src/model/GetListenerHealthStatusRequest.cc
src/model/GetListenerHealthStatusResult.cc
src/model/GetLoadBalancerAttributeRequest.cc
src/model/GetLoadBalancerAttributeResult.cc
src/model/ListListenersRequest.cc
src/model/ListListenersResult.cc
src/model/ListLoadBalancersRequest.cc
src/model/ListLoadBalancersResult.cc
src/model/ListServerGroupServersRequest.cc
src/model/ListServerGroupServersResult.cc
src/model/ListServerGroupsRequest.cc
src/model/ListServerGroupsResult.cc
src/model/ListTagResourcesRequest.cc
src/model/ListTagResourcesResult.cc
src/model/MoveResourceGroupRequest.cc
src/model/MoveResourceGroupResult.cc
src/model/RemoveServersFromServerGroupRequest.cc
src/model/RemoveServersFromServerGroupResult.cc
src/model/TagResourcesRequest.cc
src/model/TagResourcesResult.cc
src/model/UntagResourcesRequest.cc
src/model/UntagResourcesResult.cc
src/model/UpdateListenerAttributeRequest.cc
src/model/UpdateListenerAttributeResult.cc
src/model/UpdateLoadBalancerAttributeRequest.cc
src/model/UpdateLoadBalancerAttributeResult.cc
src/model/UpdateLoadBalancerZonesRequest.cc
src/model/UpdateLoadBalancerZonesResult.cc
src/model/UpdateServerGroupAttributeRequest.cc
src/model/UpdateServerGroupAttributeResult.cc )
add_library(gwlb ${LIB_TYPE}
${gwlb_public_header}
${gwlb_public_header_model}
${gwlb_src})
set_target_properties(gwlb
PROPERTIES
LINKER_LANGUAGE CXX
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}gwlb
)
if(${LIB_TYPE} STREQUAL "SHARED")
set_target_properties(gwlb
PROPERTIES
DEFINE_SYMBOL ALIBABACLOUD_GWLB_LIBRARY)
endif()
target_include_directories(gwlb
PRIVATE include
${CMAKE_SOURCE_DIR}/core/include
)
target_link_libraries(gwlb
core)
if(CMAKE_HOST_WIN32)
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
set(jsoncpp_install_dir ${INSTALL_DIR})
add_dependencies(gwlb
jsoncpp)
target_include_directories(gwlb
PRIVATE ${jsoncpp_install_dir}/include)
target_link_libraries(gwlb
${jsoncpp_install_dir}/lib/jsoncpp.lib)
set_target_properties(gwlb
PROPERTIES
COMPILE_OPTIONS "/bigobj")
else()
target_include_directories(gwlb
PRIVATE /usr/include/jsoncpp)
target_link_libraries(gwlb
jsoncpp)
endif()
install(FILES ${gwlb_public_header}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/gwlb)
install(FILES ${gwlb_public_header_model}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/gwlb/model)
install(TARGETS gwlb
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)

View File

@@ -0,0 +1,246 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_GWLB_GWLBCLIENT_H_
#define ALIBABACLOUD_GWLB_GWLBCLIENT_H_
#include <future>
#include <alibabacloud/core/AsyncCallerContext.h>
#include <alibabacloud/core/EndpointProvider.h>
#include <alibabacloud/core/RpcServiceClient.h>
#include "GwlbExport.h"
#include "model/AddServersToServerGroupRequest.h"
#include "model/AddServersToServerGroupResult.h"
#include "model/CreateListenerRequest.h"
#include "model/CreateListenerResult.h"
#include "model/CreateLoadBalancerRequest.h"
#include "model/CreateLoadBalancerResult.h"
#include "model/CreateServerGroupRequest.h"
#include "model/CreateServerGroupResult.h"
#include "model/DeleteListenerRequest.h"
#include "model/DeleteListenerResult.h"
#include "model/DeleteLoadBalancerRequest.h"
#include "model/DeleteLoadBalancerResult.h"
#include "model/DeleteServerGroupRequest.h"
#include "model/DeleteServerGroupResult.h"
#include "model/DescribeRegionsRequest.h"
#include "model/DescribeRegionsResult.h"
#include "model/DescribeZonesRequest.h"
#include "model/DescribeZonesResult.h"
#include "model/GetListenerAttributeRequest.h"
#include "model/GetListenerAttributeResult.h"
#include "model/GetListenerHealthStatusRequest.h"
#include "model/GetListenerHealthStatusResult.h"
#include "model/GetLoadBalancerAttributeRequest.h"
#include "model/GetLoadBalancerAttributeResult.h"
#include "model/ListListenersRequest.h"
#include "model/ListListenersResult.h"
#include "model/ListLoadBalancersRequest.h"
#include "model/ListLoadBalancersResult.h"
#include "model/ListServerGroupServersRequest.h"
#include "model/ListServerGroupServersResult.h"
#include "model/ListServerGroupsRequest.h"
#include "model/ListServerGroupsResult.h"
#include "model/ListTagResourcesRequest.h"
#include "model/ListTagResourcesResult.h"
#include "model/MoveResourceGroupRequest.h"
#include "model/MoveResourceGroupResult.h"
#include "model/RemoveServersFromServerGroupRequest.h"
#include "model/RemoveServersFromServerGroupResult.h"
#include "model/TagResourcesRequest.h"
#include "model/TagResourcesResult.h"
#include "model/UntagResourcesRequest.h"
#include "model/UntagResourcesResult.h"
#include "model/UpdateListenerAttributeRequest.h"
#include "model/UpdateListenerAttributeResult.h"
#include "model/UpdateLoadBalancerAttributeRequest.h"
#include "model/UpdateLoadBalancerAttributeResult.h"
#include "model/UpdateLoadBalancerZonesRequest.h"
#include "model/UpdateLoadBalancerZonesResult.h"
#include "model/UpdateServerGroupAttributeRequest.h"
#include "model/UpdateServerGroupAttributeResult.h"
namespace AlibabaCloud
{
namespace Gwlb
{
class ALIBABACLOUD_GWLB_EXPORT GwlbClient : public RpcServiceClient
{
public:
typedef Outcome<Error, Model::AddServersToServerGroupResult> AddServersToServerGroupOutcome;
typedef std::future<AddServersToServerGroupOutcome> AddServersToServerGroupOutcomeCallable;
typedef std::function<void(const GwlbClient*, const Model::AddServersToServerGroupRequest&, const AddServersToServerGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddServersToServerGroupAsyncHandler;
typedef Outcome<Error, Model::CreateListenerResult> CreateListenerOutcome;
typedef std::future<CreateListenerOutcome> CreateListenerOutcomeCallable;
typedef std::function<void(const GwlbClient*, const Model::CreateListenerRequest&, const CreateListenerOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateListenerAsyncHandler;
typedef Outcome<Error, Model::CreateLoadBalancerResult> CreateLoadBalancerOutcome;
typedef std::future<CreateLoadBalancerOutcome> CreateLoadBalancerOutcomeCallable;
typedef std::function<void(const GwlbClient*, const Model::CreateLoadBalancerRequest&, const CreateLoadBalancerOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateLoadBalancerAsyncHandler;
typedef Outcome<Error, Model::CreateServerGroupResult> CreateServerGroupOutcome;
typedef std::future<CreateServerGroupOutcome> CreateServerGroupOutcomeCallable;
typedef std::function<void(const GwlbClient*, const Model::CreateServerGroupRequest&, const CreateServerGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateServerGroupAsyncHandler;
typedef Outcome<Error, Model::DeleteListenerResult> DeleteListenerOutcome;
typedef std::future<DeleteListenerOutcome> DeleteListenerOutcomeCallable;
typedef std::function<void(const GwlbClient*, const Model::DeleteListenerRequest&, const DeleteListenerOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteListenerAsyncHandler;
typedef Outcome<Error, Model::DeleteLoadBalancerResult> DeleteLoadBalancerOutcome;
typedef std::future<DeleteLoadBalancerOutcome> DeleteLoadBalancerOutcomeCallable;
typedef std::function<void(const GwlbClient*, const Model::DeleteLoadBalancerRequest&, const DeleteLoadBalancerOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteLoadBalancerAsyncHandler;
typedef Outcome<Error, Model::DeleteServerGroupResult> DeleteServerGroupOutcome;
typedef std::future<DeleteServerGroupOutcome> DeleteServerGroupOutcomeCallable;
typedef std::function<void(const GwlbClient*, const Model::DeleteServerGroupRequest&, const DeleteServerGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteServerGroupAsyncHandler;
typedef Outcome<Error, Model::DescribeRegionsResult> DescribeRegionsOutcome;
typedef std::future<DescribeRegionsOutcome> DescribeRegionsOutcomeCallable;
typedef std::function<void(const GwlbClient*, const Model::DescribeRegionsRequest&, const DescribeRegionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRegionsAsyncHandler;
typedef Outcome<Error, Model::DescribeZonesResult> DescribeZonesOutcome;
typedef std::future<DescribeZonesOutcome> DescribeZonesOutcomeCallable;
typedef std::function<void(const GwlbClient*, const Model::DescribeZonesRequest&, const DescribeZonesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeZonesAsyncHandler;
typedef Outcome<Error, Model::GetListenerAttributeResult> GetListenerAttributeOutcome;
typedef std::future<GetListenerAttributeOutcome> GetListenerAttributeOutcomeCallable;
typedef std::function<void(const GwlbClient*, const Model::GetListenerAttributeRequest&, const GetListenerAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetListenerAttributeAsyncHandler;
typedef Outcome<Error, Model::GetListenerHealthStatusResult> GetListenerHealthStatusOutcome;
typedef std::future<GetListenerHealthStatusOutcome> GetListenerHealthStatusOutcomeCallable;
typedef std::function<void(const GwlbClient*, const Model::GetListenerHealthStatusRequest&, const GetListenerHealthStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetListenerHealthStatusAsyncHandler;
typedef Outcome<Error, Model::GetLoadBalancerAttributeResult> GetLoadBalancerAttributeOutcome;
typedef std::future<GetLoadBalancerAttributeOutcome> GetLoadBalancerAttributeOutcomeCallable;
typedef std::function<void(const GwlbClient*, const Model::GetLoadBalancerAttributeRequest&, const GetLoadBalancerAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetLoadBalancerAttributeAsyncHandler;
typedef Outcome<Error, Model::ListListenersResult> ListListenersOutcome;
typedef std::future<ListListenersOutcome> ListListenersOutcomeCallable;
typedef std::function<void(const GwlbClient*, const Model::ListListenersRequest&, const ListListenersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListListenersAsyncHandler;
typedef Outcome<Error, Model::ListLoadBalancersResult> ListLoadBalancersOutcome;
typedef std::future<ListLoadBalancersOutcome> ListLoadBalancersOutcomeCallable;
typedef std::function<void(const GwlbClient*, const Model::ListLoadBalancersRequest&, const ListLoadBalancersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListLoadBalancersAsyncHandler;
typedef Outcome<Error, Model::ListServerGroupServersResult> ListServerGroupServersOutcome;
typedef std::future<ListServerGroupServersOutcome> ListServerGroupServersOutcomeCallable;
typedef std::function<void(const GwlbClient*, const Model::ListServerGroupServersRequest&, const ListServerGroupServersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListServerGroupServersAsyncHandler;
typedef Outcome<Error, Model::ListServerGroupsResult> ListServerGroupsOutcome;
typedef std::future<ListServerGroupsOutcome> ListServerGroupsOutcomeCallable;
typedef std::function<void(const GwlbClient*, const Model::ListServerGroupsRequest&, const ListServerGroupsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListServerGroupsAsyncHandler;
typedef Outcome<Error, Model::ListTagResourcesResult> ListTagResourcesOutcome;
typedef std::future<ListTagResourcesOutcome> ListTagResourcesOutcomeCallable;
typedef std::function<void(const GwlbClient*, const Model::ListTagResourcesRequest&, const ListTagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTagResourcesAsyncHandler;
typedef Outcome<Error, Model::MoveResourceGroupResult> MoveResourceGroupOutcome;
typedef std::future<MoveResourceGroupOutcome> MoveResourceGroupOutcomeCallable;
typedef std::function<void(const GwlbClient*, const Model::MoveResourceGroupRequest&, const MoveResourceGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> MoveResourceGroupAsyncHandler;
typedef Outcome<Error, Model::RemoveServersFromServerGroupResult> RemoveServersFromServerGroupOutcome;
typedef std::future<RemoveServersFromServerGroupOutcome> RemoveServersFromServerGroupOutcomeCallable;
typedef std::function<void(const GwlbClient*, const Model::RemoveServersFromServerGroupRequest&, const RemoveServersFromServerGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RemoveServersFromServerGroupAsyncHandler;
typedef Outcome<Error, Model::TagResourcesResult> TagResourcesOutcome;
typedef std::future<TagResourcesOutcome> TagResourcesOutcomeCallable;
typedef std::function<void(const GwlbClient*, const Model::TagResourcesRequest&, const TagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TagResourcesAsyncHandler;
typedef Outcome<Error, Model::UntagResourcesResult> UntagResourcesOutcome;
typedef std::future<UntagResourcesOutcome> UntagResourcesOutcomeCallable;
typedef std::function<void(const GwlbClient*, const Model::UntagResourcesRequest&, const UntagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UntagResourcesAsyncHandler;
typedef Outcome<Error, Model::UpdateListenerAttributeResult> UpdateListenerAttributeOutcome;
typedef std::future<UpdateListenerAttributeOutcome> UpdateListenerAttributeOutcomeCallable;
typedef std::function<void(const GwlbClient*, const Model::UpdateListenerAttributeRequest&, const UpdateListenerAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateListenerAttributeAsyncHandler;
typedef Outcome<Error, Model::UpdateLoadBalancerAttributeResult> UpdateLoadBalancerAttributeOutcome;
typedef std::future<UpdateLoadBalancerAttributeOutcome> UpdateLoadBalancerAttributeOutcomeCallable;
typedef std::function<void(const GwlbClient*, const Model::UpdateLoadBalancerAttributeRequest&, const UpdateLoadBalancerAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateLoadBalancerAttributeAsyncHandler;
typedef Outcome<Error, Model::UpdateLoadBalancerZonesResult> UpdateLoadBalancerZonesOutcome;
typedef std::future<UpdateLoadBalancerZonesOutcome> UpdateLoadBalancerZonesOutcomeCallable;
typedef std::function<void(const GwlbClient*, const Model::UpdateLoadBalancerZonesRequest&, const UpdateLoadBalancerZonesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateLoadBalancerZonesAsyncHandler;
typedef Outcome<Error, Model::UpdateServerGroupAttributeResult> UpdateServerGroupAttributeOutcome;
typedef std::future<UpdateServerGroupAttributeOutcome> UpdateServerGroupAttributeOutcomeCallable;
typedef std::function<void(const GwlbClient*, const Model::UpdateServerGroupAttributeRequest&, const UpdateServerGroupAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateServerGroupAttributeAsyncHandler;
GwlbClient(const Credentials &credentials, const ClientConfiguration &configuration);
GwlbClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
GwlbClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
~GwlbClient();
AddServersToServerGroupOutcome addServersToServerGroup(const Model::AddServersToServerGroupRequest &request)const;
void addServersToServerGroupAsync(const Model::AddServersToServerGroupRequest& request, const AddServersToServerGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddServersToServerGroupOutcomeCallable addServersToServerGroupCallable(const Model::AddServersToServerGroupRequest& request) const;
CreateListenerOutcome createListener(const Model::CreateListenerRequest &request)const;
void createListenerAsync(const Model::CreateListenerRequest& request, const CreateListenerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateListenerOutcomeCallable createListenerCallable(const Model::CreateListenerRequest& request) const;
CreateLoadBalancerOutcome createLoadBalancer(const Model::CreateLoadBalancerRequest &request)const;
void createLoadBalancerAsync(const Model::CreateLoadBalancerRequest& request, const CreateLoadBalancerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateLoadBalancerOutcomeCallable createLoadBalancerCallable(const Model::CreateLoadBalancerRequest& request) const;
CreateServerGroupOutcome createServerGroup(const Model::CreateServerGroupRequest &request)const;
void createServerGroupAsync(const Model::CreateServerGroupRequest& request, const CreateServerGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateServerGroupOutcomeCallable createServerGroupCallable(const Model::CreateServerGroupRequest& request) const;
DeleteListenerOutcome deleteListener(const Model::DeleteListenerRequest &request)const;
void deleteListenerAsync(const Model::DeleteListenerRequest& request, const DeleteListenerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteListenerOutcomeCallable deleteListenerCallable(const Model::DeleteListenerRequest& request) const;
DeleteLoadBalancerOutcome deleteLoadBalancer(const Model::DeleteLoadBalancerRequest &request)const;
void deleteLoadBalancerAsync(const Model::DeleteLoadBalancerRequest& request, const DeleteLoadBalancerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteLoadBalancerOutcomeCallable deleteLoadBalancerCallable(const Model::DeleteLoadBalancerRequest& request) const;
DeleteServerGroupOutcome deleteServerGroup(const Model::DeleteServerGroupRequest &request)const;
void deleteServerGroupAsync(const Model::DeleteServerGroupRequest& request, const DeleteServerGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteServerGroupOutcomeCallable deleteServerGroupCallable(const Model::DeleteServerGroupRequest& request) const;
DescribeRegionsOutcome describeRegions(const Model::DescribeRegionsRequest &request)const;
void describeRegionsAsync(const Model::DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeRegionsOutcomeCallable describeRegionsCallable(const Model::DescribeRegionsRequest& request) const;
DescribeZonesOutcome describeZones(const Model::DescribeZonesRequest &request)const;
void describeZonesAsync(const Model::DescribeZonesRequest& request, const DescribeZonesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeZonesOutcomeCallable describeZonesCallable(const Model::DescribeZonesRequest& request) const;
GetListenerAttributeOutcome getListenerAttribute(const Model::GetListenerAttributeRequest &request)const;
void getListenerAttributeAsync(const Model::GetListenerAttributeRequest& request, const GetListenerAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetListenerAttributeOutcomeCallable getListenerAttributeCallable(const Model::GetListenerAttributeRequest& request) const;
GetListenerHealthStatusOutcome getListenerHealthStatus(const Model::GetListenerHealthStatusRequest &request)const;
void getListenerHealthStatusAsync(const Model::GetListenerHealthStatusRequest& request, const GetListenerHealthStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetListenerHealthStatusOutcomeCallable getListenerHealthStatusCallable(const Model::GetListenerHealthStatusRequest& request) const;
GetLoadBalancerAttributeOutcome getLoadBalancerAttribute(const Model::GetLoadBalancerAttributeRequest &request)const;
void getLoadBalancerAttributeAsync(const Model::GetLoadBalancerAttributeRequest& request, const GetLoadBalancerAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetLoadBalancerAttributeOutcomeCallable getLoadBalancerAttributeCallable(const Model::GetLoadBalancerAttributeRequest& request) const;
ListListenersOutcome listListeners(const Model::ListListenersRequest &request)const;
void listListenersAsync(const Model::ListListenersRequest& request, const ListListenersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListListenersOutcomeCallable listListenersCallable(const Model::ListListenersRequest& request) const;
ListLoadBalancersOutcome listLoadBalancers(const Model::ListLoadBalancersRequest &request)const;
void listLoadBalancersAsync(const Model::ListLoadBalancersRequest& request, const ListLoadBalancersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListLoadBalancersOutcomeCallable listLoadBalancersCallable(const Model::ListLoadBalancersRequest& request) const;
ListServerGroupServersOutcome listServerGroupServers(const Model::ListServerGroupServersRequest &request)const;
void listServerGroupServersAsync(const Model::ListServerGroupServersRequest& request, const ListServerGroupServersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListServerGroupServersOutcomeCallable listServerGroupServersCallable(const Model::ListServerGroupServersRequest& request) const;
ListServerGroupsOutcome listServerGroups(const Model::ListServerGroupsRequest &request)const;
void listServerGroupsAsync(const Model::ListServerGroupsRequest& request, const ListServerGroupsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListServerGroupsOutcomeCallable listServerGroupsCallable(const Model::ListServerGroupsRequest& request) const;
ListTagResourcesOutcome listTagResources(const Model::ListTagResourcesRequest &request)const;
void listTagResourcesAsync(const Model::ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListTagResourcesOutcomeCallable listTagResourcesCallable(const Model::ListTagResourcesRequest& request) const;
MoveResourceGroupOutcome moveResourceGroup(const Model::MoveResourceGroupRequest &request)const;
void moveResourceGroupAsync(const Model::MoveResourceGroupRequest& request, const MoveResourceGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
MoveResourceGroupOutcomeCallable moveResourceGroupCallable(const Model::MoveResourceGroupRequest& request) const;
RemoveServersFromServerGroupOutcome removeServersFromServerGroup(const Model::RemoveServersFromServerGroupRequest &request)const;
void removeServersFromServerGroupAsync(const Model::RemoveServersFromServerGroupRequest& request, const RemoveServersFromServerGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
RemoveServersFromServerGroupOutcomeCallable removeServersFromServerGroupCallable(const Model::RemoveServersFromServerGroupRequest& request) const;
TagResourcesOutcome tagResources(const Model::TagResourcesRequest &request)const;
void tagResourcesAsync(const Model::TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
TagResourcesOutcomeCallable tagResourcesCallable(const Model::TagResourcesRequest& request) const;
UntagResourcesOutcome untagResources(const Model::UntagResourcesRequest &request)const;
void untagResourcesAsync(const Model::UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UntagResourcesOutcomeCallable untagResourcesCallable(const Model::UntagResourcesRequest& request) const;
UpdateListenerAttributeOutcome updateListenerAttribute(const Model::UpdateListenerAttributeRequest &request)const;
void updateListenerAttributeAsync(const Model::UpdateListenerAttributeRequest& request, const UpdateListenerAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateListenerAttributeOutcomeCallable updateListenerAttributeCallable(const Model::UpdateListenerAttributeRequest& request) const;
UpdateLoadBalancerAttributeOutcome updateLoadBalancerAttribute(const Model::UpdateLoadBalancerAttributeRequest &request)const;
void updateLoadBalancerAttributeAsync(const Model::UpdateLoadBalancerAttributeRequest& request, const UpdateLoadBalancerAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateLoadBalancerAttributeOutcomeCallable updateLoadBalancerAttributeCallable(const Model::UpdateLoadBalancerAttributeRequest& request) const;
UpdateLoadBalancerZonesOutcome updateLoadBalancerZones(const Model::UpdateLoadBalancerZonesRequest &request)const;
void updateLoadBalancerZonesAsync(const Model::UpdateLoadBalancerZonesRequest& request, const UpdateLoadBalancerZonesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateLoadBalancerZonesOutcomeCallable updateLoadBalancerZonesCallable(const Model::UpdateLoadBalancerZonesRequest& request) const;
UpdateServerGroupAttributeOutcome updateServerGroupAttribute(const Model::UpdateServerGroupAttributeRequest &request)const;
void updateServerGroupAttributeAsync(const Model::UpdateServerGroupAttributeRequest& request, const UpdateServerGroupAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateServerGroupAttributeOutcomeCallable updateServerGroupAttributeCallable(const Model::UpdateServerGroupAttributeRequest& request) const;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;
};
}
}
#endif // !ALIBABACLOUD_GWLB_GWLBCLIENT_H_

View File

@@ -0,0 +1,32 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_GWLB_GWLBEXPORT_H_
#define ALIBABACLOUD_GWLB_GWLBEXPORT_H_
#include <alibabacloud/core/Global.h>
#if defined(ALIBABACLOUD_SHARED)
# if defined(ALIBABACLOUD_GWLB_LIBRARY)
# define ALIBABACLOUD_GWLB_EXPORT ALIBABACLOUD_DECL_EXPORT
# else
# define ALIBABACLOUD_GWLB_EXPORT ALIBABACLOUD_DECL_IMPORT
# endif
#else
# define ALIBABACLOUD_GWLB_EXPORT
#endif
#endif // !ALIBABACLOUD_GWLB_GWLBEXPORT_H_

View File

@@ -0,0 +1,57 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_GWLB_MODEL_ADDSERVERSTOSERVERGROUPREQUEST_H_
#define ALIBABACLOUD_GWLB_MODEL_ADDSERVERSTOSERVERGROUPREQUEST_H_
#include <alibabacloud/gwlb/GwlbExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Gwlb {
namespace Model {
class ALIBABACLOUD_GWLB_EXPORT AddServersToServerGroupRequest : public RpcServiceRequest {
public:
struct Servers {
int port;
std::string serverId;
std::string serverIp;
std::string serverType;
};
AddServersToServerGroupRequest();
~AddServersToServerGroupRequest();
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
std::string getServerGroupId() const;
void setServerGroupId(const std::string &serverGroupId);
std::vector<Servers> getServers() const;
void setServers(const std::vector<Servers> &servers);
bool getDryRun() const;
void setDryRun(bool dryRun);
private:
std::string clientToken_;
std::string serverGroupId_;
std::vector<Servers> servers_;
bool dryRun_;
};
} // namespace Model
} // namespace Gwlb
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_GWLB_MODEL_ADDSERVERSTOSERVERGROUPREQUEST_H_

View 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.
*/
#ifndef ALIBABACLOUD_GWLB_MODEL_ADDSERVERSTOSERVERGROUPRESULT_H_
#define ALIBABACLOUD_GWLB_MODEL_ADDSERVERSTOSERVERGROUPRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/gwlb/GwlbExport.h>
namespace AlibabaCloud
{
namespace Gwlb
{
namespace Model
{
class ALIBABACLOUD_GWLB_EXPORT AddServersToServerGroupResult : public ServiceResult
{
public:
AddServersToServerGroupResult();
explicit AddServersToServerGroupResult(const std::string &payload);
~AddServersToServerGroupResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_GWLB_MODEL_ADDSERVERSTOSERVERGROUPRESULT_H_

View File

@@ -0,0 +1,61 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_GWLB_MODEL_CREATELISTENERREQUEST_H_
#define ALIBABACLOUD_GWLB_MODEL_CREATELISTENERREQUEST_H_
#include <alibabacloud/gwlb/GwlbExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Gwlb {
namespace Model {
class ALIBABACLOUD_GWLB_EXPORT CreateListenerRequest : public RpcServiceRequest {
public:
struct Tag {
std::string key;
std::string value;
};
CreateListenerRequest();
~CreateListenerRequest();
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
std::string getServerGroupId() const;
void setServerGroupId(const std::string &serverGroupId);
std::vector<Tag> getTag() const;
void setTag(const std::vector<Tag> &tag);
bool getDryRun() const;
void setDryRun(bool dryRun);
std::string getLoadBalancerId() const;
void setLoadBalancerId(const std::string &loadBalancerId);
std::string getListenerDescription() const;
void setListenerDescription(const std::string &listenerDescription);
private:
std::string clientToken_;
std::string serverGroupId_;
std::vector<Tag> tag_;
bool dryRun_;
std::string loadBalancerId_;
std::string listenerDescription_;
};
} // namespace Model
} // namespace Gwlb
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_GWLB_MODEL_CREATELISTENERREQUEST_H_

View File

@@ -0,0 +1,51 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_GWLB_MODEL_CREATELISTENERRESULT_H_
#define ALIBABACLOUD_GWLB_MODEL_CREATELISTENERRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/gwlb/GwlbExport.h>
namespace AlibabaCloud
{
namespace Gwlb
{
namespace Model
{
class ALIBABACLOUD_GWLB_EXPORT CreateListenerResult : public ServiceResult
{
public:
CreateListenerResult();
explicit CreateListenerResult(const std::string &payload);
~CreateListenerResult();
std::string getListenerId()const;
protected:
void parse(const std::string &payload);
private:
std::string listenerId_;
};
}
}
}
#endif // !ALIBABACLOUD_GWLB_MODEL_CREATELISTENERRESULT_H_

View File

@@ -0,0 +1,74 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_GWLB_MODEL_CREATELOADBALANCERREQUEST_H_
#define ALIBABACLOUD_GWLB_MODEL_CREATELOADBALANCERREQUEST_H_
#include <alibabacloud/gwlb/GwlbExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Gwlb {
namespace Model {
class ALIBABACLOUD_GWLB_EXPORT CreateLoadBalancerRequest : public RpcServiceRequest {
public:
struct Tag {
std::string key;
std::string value;
};
struct ZoneMappings {
std::string vSwitchId;
std::string zoneId;
};
CreateLoadBalancerRequest();
~CreateLoadBalancerRequest();
bool getCrossZoneEnabled() const;
void setCrossZoneEnabled(bool crossZoneEnabled);
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
std::string getAddressIpVersion() const;
void setAddressIpVersion(const std::string &addressIpVersion);
std::string getResourceGroupId() const;
void setResourceGroupId(const std::string &resourceGroupId);
std::string getLoadBalancerName() const;
void setLoadBalancerName(const std::string &loadBalancerName);
std::vector<Tag> getTag() const;
void setTag(const std::vector<Tag> &tag);
bool getDryRun() const;
void setDryRun(bool dryRun);
std::vector<ZoneMappings> getZoneMappings() const;
void setZoneMappings(const std::vector<ZoneMappings> &zoneMappings);
std::string getVpcId() const;
void setVpcId(const std::string &vpcId);
private:
bool crossZoneEnabled_;
std::string clientToken_;
std::string addressIpVersion_;
std::string resourceGroupId_;
std::string loadBalancerName_;
std::vector<Tag> tag_;
bool dryRun_;
std::vector<ZoneMappings> zoneMappings_;
std::string vpcId_;
};
} // namespace Model
} // namespace Gwlb
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_GWLB_MODEL_CREATELOADBALANCERREQUEST_H_

View File

@@ -0,0 +1,51 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_GWLB_MODEL_CREATELOADBALANCERRESULT_H_
#define ALIBABACLOUD_GWLB_MODEL_CREATELOADBALANCERRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/gwlb/GwlbExport.h>
namespace AlibabaCloud
{
namespace Gwlb
{
namespace Model
{
class ALIBABACLOUD_GWLB_EXPORT CreateLoadBalancerResult : public ServiceResult
{
public:
CreateLoadBalancerResult();
explicit CreateLoadBalancerResult(const std::string &payload);
~CreateLoadBalancerResult();
std::string getLoadBalancerId()const;
protected:
void parse(const std::string &payload);
private:
std::string loadBalancerId_;
};
}
}
}
#endif // !ALIBABACLOUD_GWLB_MODEL_CREATELOADBALANCERRESULT_H_

View File

@@ -0,0 +1,93 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_GWLB_MODEL_CREATESERVERGROUPREQUEST_H_
#define ALIBABACLOUD_GWLB_MODEL_CREATESERVERGROUPREQUEST_H_
#include <alibabacloud/gwlb/GwlbExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Gwlb {
namespace Model {
class ALIBABACLOUD_GWLB_EXPORT CreateServerGroupRequest : public RpcServiceRequest {
public:
struct HealthCheckConfig {
int healthCheckConnectPort;
int healthCheckConnectTimeout;
std::string healthCheckDomain;
bool healthCheckEnabled;
std::string string;
std::vector<std::string> healthCheckHttpCode;
int healthCheckInterval;
std::string healthCheckPath;
std::string healthCheckProtocol;
int healthyThreshold;
int unhealthyThreshold;
};
struct Tag {
std::string key;
std::string value;
};
struct ConnectionDrainConfig {
bool connectionDrainEnabled;
int connectionDrainTimeout;
};
CreateServerGroupRequest();
~CreateServerGroupRequest();
std::string getServerGroupName() const;
void setServerGroupName(const std::string &serverGroupName);
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
HealthCheckConfig getHealthCheckConfig() const;
void setHealthCheckConfig(const HealthCheckConfig &healthCheckConfig);
std::string getScheduler() const;
void setScheduler(const std::string &scheduler);
std::string getResourceGroupId() const;
void setResourceGroupId(const std::string &resourceGroupId);
std::string getProtocol() const;
void setProtocol(const std::string &protocol);
std::vector<Tag> getTag() const;
void setTag(const std::vector<Tag> &tag);
bool getDryRun() const;
void setDryRun(bool dryRun);
ConnectionDrainConfig getConnectionDrainConfig() const;
void setConnectionDrainConfig(const ConnectionDrainConfig &connectionDrainConfig);
std::string getServerGroupType() const;
void setServerGroupType(const std::string &serverGroupType);
std::string getVpcId() const;
void setVpcId(const std::string &vpcId);
private:
std::string serverGroupName_;
std::string clientToken_;
HealthCheckConfig healthCheckConfig_;
std::string scheduler_;
std::string resourceGroupId_;
std::string protocol_;
std::vector<Tag> tag_;
bool dryRun_;
ConnectionDrainConfig connectionDrainConfig_;
std::string serverGroupType_;
std::string vpcId_;
};
} // namespace Model
} // namespace Gwlb
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_GWLB_MODEL_CREATESERVERGROUPREQUEST_H_

View File

@@ -0,0 +1,51 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_GWLB_MODEL_CREATESERVERGROUPRESULT_H_
#define ALIBABACLOUD_GWLB_MODEL_CREATESERVERGROUPRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/gwlb/GwlbExport.h>
namespace AlibabaCloud
{
namespace Gwlb
{
namespace Model
{
class ALIBABACLOUD_GWLB_EXPORT CreateServerGroupResult : public ServiceResult
{
public:
CreateServerGroupResult();
explicit CreateServerGroupResult(const std::string &payload);
~CreateServerGroupResult();
std::string getServerGroupId()const;
protected:
void parse(const std::string &payload);
private:
std::string serverGroupId_;
};
}
}
}
#endif // !ALIBABACLOUD_GWLB_MODEL_CREATESERVERGROUPRESULT_H_

View File

@@ -0,0 +1,48 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_GWLB_MODEL_DELETELISTENERREQUEST_H_
#define ALIBABACLOUD_GWLB_MODEL_DELETELISTENERREQUEST_H_
#include <alibabacloud/gwlb/GwlbExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Gwlb {
namespace Model {
class ALIBABACLOUD_GWLB_EXPORT DeleteListenerRequest : public RpcServiceRequest {
public:
DeleteListenerRequest();
~DeleteListenerRequest();
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
std::string getListenerId() const;
void setListenerId(const std::string &listenerId);
bool getDryRun() const;
void setDryRun(bool dryRun);
private:
std::string clientToken_;
std::string listenerId_;
bool dryRun_;
};
} // namespace Model
} // namespace Gwlb
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_GWLB_MODEL_DELETELISTENERREQUEST_H_

View 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.
*/
#ifndef ALIBABACLOUD_GWLB_MODEL_DELETELISTENERRESULT_H_
#define ALIBABACLOUD_GWLB_MODEL_DELETELISTENERRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/gwlb/GwlbExport.h>
namespace AlibabaCloud
{
namespace Gwlb
{
namespace Model
{
class ALIBABACLOUD_GWLB_EXPORT DeleteListenerResult : public ServiceResult
{
public:
DeleteListenerResult();
explicit DeleteListenerResult(const std::string &payload);
~DeleteListenerResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_GWLB_MODEL_DELETELISTENERRESULT_H_

View File

@@ -0,0 +1,48 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_GWLB_MODEL_DELETELOADBALANCERREQUEST_H_
#define ALIBABACLOUD_GWLB_MODEL_DELETELOADBALANCERREQUEST_H_
#include <alibabacloud/gwlb/GwlbExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Gwlb {
namespace Model {
class ALIBABACLOUD_GWLB_EXPORT DeleteLoadBalancerRequest : public RpcServiceRequest {
public:
DeleteLoadBalancerRequest();
~DeleteLoadBalancerRequest();
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
bool getDryRun() const;
void setDryRun(bool dryRun);
std::string getLoadBalancerId() const;
void setLoadBalancerId(const std::string &loadBalancerId);
private:
std::string clientToken_;
bool dryRun_;
std::string loadBalancerId_;
};
} // namespace Model
} // namespace Gwlb
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_GWLB_MODEL_DELETELOADBALANCERREQUEST_H_

View 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.
*/
#ifndef ALIBABACLOUD_GWLB_MODEL_DELETELOADBALANCERRESULT_H_
#define ALIBABACLOUD_GWLB_MODEL_DELETELOADBALANCERRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/gwlb/GwlbExport.h>
namespace AlibabaCloud
{
namespace Gwlb
{
namespace Model
{
class ALIBABACLOUD_GWLB_EXPORT DeleteLoadBalancerResult : public ServiceResult
{
public:
DeleteLoadBalancerResult();
explicit DeleteLoadBalancerResult(const std::string &payload);
~DeleteLoadBalancerResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_GWLB_MODEL_DELETELOADBALANCERRESULT_H_

View File

@@ -0,0 +1,48 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_GWLB_MODEL_DELETESERVERGROUPREQUEST_H_
#define ALIBABACLOUD_GWLB_MODEL_DELETESERVERGROUPREQUEST_H_
#include <alibabacloud/gwlb/GwlbExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Gwlb {
namespace Model {
class ALIBABACLOUD_GWLB_EXPORT DeleteServerGroupRequest : public RpcServiceRequest {
public:
DeleteServerGroupRequest();
~DeleteServerGroupRequest();
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
std::string getServerGroupId() const;
void setServerGroupId(const std::string &serverGroupId);
bool getDryRun() const;
void setDryRun(bool dryRun);
private:
std::string clientToken_;
std::string serverGroupId_;
bool dryRun_;
};
} // namespace Model
} // namespace Gwlb
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_GWLB_MODEL_DELETESERVERGROUPREQUEST_H_

View 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.
*/
#ifndef ALIBABACLOUD_GWLB_MODEL_DELETESERVERGROUPRESULT_H_
#define ALIBABACLOUD_GWLB_MODEL_DELETESERVERGROUPRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/gwlb/GwlbExport.h>
namespace AlibabaCloud
{
namespace Gwlb
{
namespace Model
{
class ALIBABACLOUD_GWLB_EXPORT DeleteServerGroupResult : public ServiceResult
{
public:
DeleteServerGroupResult();
explicit DeleteServerGroupResult(const std::string &payload);
~DeleteServerGroupResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_GWLB_MODEL_DELETESERVERGROUPRESULT_H_

View File

@@ -0,0 +1,42 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_GWLB_MODEL_DESCRIBEREGIONSREQUEST_H_
#define ALIBABACLOUD_GWLB_MODEL_DESCRIBEREGIONSREQUEST_H_
#include <alibabacloud/gwlb/GwlbExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Gwlb {
namespace Model {
class ALIBABACLOUD_GWLB_EXPORT DescribeRegionsRequest : public RpcServiceRequest {
public:
DescribeRegionsRequest();
~DescribeRegionsRequest();
std::string getAcceptLanguage() const;
void setAcceptLanguage(const std::string &acceptLanguage);
private:
std::string acceptLanguage_;
};
} // namespace Model
} // namespace Gwlb
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_GWLB_MODEL_DESCRIBEREGIONSREQUEST_H_

View File

@@ -0,0 +1,57 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_GWLB_MODEL_DESCRIBEREGIONSRESULT_H_
#define ALIBABACLOUD_GWLB_MODEL_DESCRIBEREGIONSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/gwlb/GwlbExport.h>
namespace AlibabaCloud
{
namespace Gwlb
{
namespace Model
{
class ALIBABACLOUD_GWLB_EXPORT DescribeRegionsResult : public ServiceResult
{
public:
struct Data
{
std::string regionId;
std::string regionEndpoint;
std::string localName;
};
DescribeRegionsResult();
explicit DescribeRegionsResult(const std::string &payload);
~DescribeRegionsResult();
std::vector<Data> getRegions()const;
protected:
void parse(const std::string &payload);
private:
std::vector<Data> regions_;
};
}
}
}
#endif // !ALIBABACLOUD_GWLB_MODEL_DESCRIBEREGIONSRESULT_H_

View File

@@ -0,0 +1,42 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_GWLB_MODEL_DESCRIBEZONESREQUEST_H_
#define ALIBABACLOUD_GWLB_MODEL_DESCRIBEZONESREQUEST_H_
#include <alibabacloud/gwlb/GwlbExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Gwlb {
namespace Model {
class ALIBABACLOUD_GWLB_EXPORT DescribeZonesRequest : public RpcServiceRequest {
public:
DescribeZonesRequest();
~DescribeZonesRequest();
std::string getAcceptLanguage() const;
void setAcceptLanguage(const std::string &acceptLanguage);
private:
std::string acceptLanguage_;
};
} // namespace Model
} // namespace Gwlb
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_GWLB_MODEL_DESCRIBEZONESREQUEST_H_

View File

@@ -0,0 +1,56 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_GWLB_MODEL_DESCRIBEZONESRESULT_H_
#define ALIBABACLOUD_GWLB_MODEL_DESCRIBEZONESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/gwlb/GwlbExport.h>
namespace AlibabaCloud
{
namespace Gwlb
{
namespace Model
{
class ALIBABACLOUD_GWLB_EXPORT DescribeZonesResult : public ServiceResult
{
public:
struct Data
{
std::string zoneId;
std::string localName;
};
DescribeZonesResult();
explicit DescribeZonesResult(const std::string &payload);
~DescribeZonesResult();
std::vector<Data> getZones()const;
protected:
void parse(const std::string &payload);
private:
std::vector<Data> zones_;
};
}
}
}
#endif // !ALIBABACLOUD_GWLB_MODEL_DESCRIBEZONESRESULT_H_

View File

@@ -0,0 +1,42 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_GWLB_MODEL_GETLISTENERATTRIBUTEREQUEST_H_
#define ALIBABACLOUD_GWLB_MODEL_GETLISTENERATTRIBUTEREQUEST_H_
#include <alibabacloud/gwlb/GwlbExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Gwlb {
namespace Model {
class ALIBABACLOUD_GWLB_EXPORT GetListenerAttributeRequest : public RpcServiceRequest {
public:
GetListenerAttributeRequest();
~GetListenerAttributeRequest();
std::string getListenerId() const;
void setListenerId(const std::string &listenerId);
private:
std::string listenerId_;
};
} // namespace Model
} // namespace Gwlb
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_GWLB_MODEL_GETLISTENERATTRIBUTEREQUEST_H_

View File

@@ -0,0 +1,68 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_GWLB_MODEL_GETLISTENERATTRIBUTERESULT_H_
#define ALIBABACLOUD_GWLB_MODEL_GETLISTENERATTRIBUTERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/gwlb/GwlbExport.h>
namespace AlibabaCloud
{
namespace Gwlb
{
namespace Model
{
class ALIBABACLOUD_GWLB_EXPORT GetListenerAttributeResult : public ServiceResult
{
public:
struct TagModel
{
std::string value;
std::string key;
};
GetListenerAttributeResult();
explicit GetListenerAttributeResult(const std::string &payload);
~GetListenerAttributeResult();
std::string getListenerStatus()const;
std::string getListenerDescription()const;
std::string getServerGroupId()const;
std::string getLoadBalancerId()const;
std::string getRegionId()const;
std::vector<TagModel> getTags()const;
std::string getListenerId()const;
protected:
void parse(const std::string &payload);
private:
std::string listenerStatus_;
std::string listenerDescription_;
std::string serverGroupId_;
std::string loadBalancerId_;
std::string regionId_;
std::vector<TagModel> tags_;
std::string listenerId_;
};
}
}
}
#endif // !ALIBABACLOUD_GWLB_MODEL_GETLISTENERATTRIBUTERESULT_H_

View File

@@ -0,0 +1,59 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_GWLB_MODEL_GETLISTENERHEALTHSTATUSREQUEST_H_
#define ALIBABACLOUD_GWLB_MODEL_GETLISTENERHEALTHSTATUSREQUEST_H_
#include <alibabacloud/gwlb/GwlbExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Gwlb {
namespace Model {
class ALIBABACLOUD_GWLB_EXPORT GetListenerHealthStatusRequest : public RpcServiceRequest {
public:
struct Filter {
std::string name;
std::string string;
std::vector<std::string> values;
};
GetListenerHealthStatusRequest();
~GetListenerHealthStatusRequest();
int getSkip() const;
void setSkip(int skip);
std::string getListenerId() const;
void setListenerId(const std::string &listenerId);
std::string getNextToken() const;
void setNextToken(const std::string &nextToken);
std::vector<Filter> getFilter() const;
void setFilter(const std::vector<Filter> &filter);
int getMaxResults() const;
void setMaxResults(int maxResults);
private:
int skip_;
std::string listenerId_;
std::string nextToken_;
std::vector<Filter> filter_;
int maxResults_;
};
} // namespace Model
} // namespace Gwlb
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_GWLB_MODEL_GETLISTENERHEALTHSTATUSREQUEST_H_

View File

@@ -0,0 +1,80 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_GWLB_MODEL_GETLISTENERHEALTHSTATUSRESULT_H_
#define ALIBABACLOUD_GWLB_MODEL_GETLISTENERHEALTHSTATUSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/gwlb/GwlbExport.h>
namespace AlibabaCloud
{
namespace Gwlb
{
namespace Model
{
class ALIBABACLOUD_GWLB_EXPORT GetListenerHealthStatusResult : public ServiceResult
{
public:
struct ListenerHealthStatusItem
{
struct ServerGroupInfo
{
struct Server
{
struct Reason
{
std::string reasonCode;
};
std::string status;
std::string serverId;
int port;
std::string serverIp;
Reason reason;
};
std::string serverGroupId;
std::vector<ServerGroupInfo::Server> servers;
bool healthCheckEnabled;
};
std::vector<ListenerHealthStatusItem::ServerGroupInfo> serverGroupInfos;
std::string listenerId;
};
GetListenerHealthStatusResult();
explicit GetListenerHealthStatusResult(const std::string &payload);
~GetListenerHealthStatusResult();
std::vector<ListenerHealthStatusItem> getListenerHealthStatus()const;
int getTotalCount()const;
std::string getNextToken()const;
int getMaxResults()const;
protected:
void parse(const std::string &payload);
private:
std::vector<ListenerHealthStatusItem> listenerHealthStatus_;
int totalCount_;
std::string nextToken_;
int maxResults_;
};
}
}
}
#endif // !ALIBABACLOUD_GWLB_MODEL_GETLISTENERHEALTHSTATUSRESULT_H_

View File

@@ -0,0 +1,42 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_GWLB_MODEL_GETLOADBALANCERATTRIBUTEREQUEST_H_
#define ALIBABACLOUD_GWLB_MODEL_GETLOADBALANCERATTRIBUTEREQUEST_H_
#include <alibabacloud/gwlb/GwlbExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Gwlb {
namespace Model {
class ALIBABACLOUD_GWLB_EXPORT GetLoadBalancerAttributeRequest : public RpcServiceRequest {
public:
GetLoadBalancerAttributeRequest();
~GetLoadBalancerAttributeRequest();
std::string getLoadBalancerId() const;
void setLoadBalancerId(const std::string &loadBalancerId);
private:
std::string loadBalancerId_;
};
} // namespace Model
} // namespace Gwlb
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_GWLB_MODEL_GETLOADBALANCERATTRIBUTEREQUEST_H_

View File

@@ -0,0 +1,87 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_GWLB_MODEL_GETLOADBALANCERATTRIBUTERESULT_H_
#define ALIBABACLOUD_GWLB_MODEL_GETLOADBALANCERATTRIBUTERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/gwlb/GwlbExport.h>
namespace AlibabaCloud
{
namespace Gwlb
{
namespace Model
{
class ALIBABACLOUD_GWLB_EXPORT GetLoadBalancerAttributeResult : public ServiceResult
{
public:
struct TagModel
{
std::string value;
std::string key;
};
struct ZoneEniModel
{
struct EniModels
{
std::string eniId;
std::string privateIpv4Address;
};
std::string zoneId;
std::string vSwitchId;
std::vector<ZoneEniModel::EniModels> loadBalancerAddresses;
};
GetLoadBalancerAttributeResult();
explicit GetLoadBalancerAttributeResult(const std::string &payload);
~GetLoadBalancerAttributeResult();
std::string getLoadBalancerName()const;
std::string getAddressIpVersion()const;
std::string getResourceGroupId()const;
std::string getVpcId()const;
std::string getCreateTime()const;
std::string getLoadBalancerId()const;
std::vector<ZoneEniModel> getZoneMappings()const;
std::string getLoadBalancerBusinessStatus()const;
std::string getLoadBalancerStatus()const;
std::vector<TagModel> getTags()const;
bool getCrossZoneEnabled()const;
protected:
void parse(const std::string &payload);
private:
std::string loadBalancerName_;
std::string addressIpVersion_;
std::string resourceGroupId_;
std::string vpcId_;
std::string createTime_;
std::string loadBalancerId_;
std::vector<ZoneEniModel> zoneMappings_;
std::string loadBalancerBusinessStatus_;
std::string loadBalancerStatus_;
std::vector<TagModel> tags_;
bool crossZoneEnabled_;
};
}
}
}
#endif // !ALIBABACLOUD_GWLB_MODEL_GETLOADBALANCERATTRIBUTERESULT_H_

View File

@@ -0,0 +1,61 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_GWLB_MODEL_LISTLISTENERSREQUEST_H_
#define ALIBABACLOUD_GWLB_MODEL_LISTLISTENERSREQUEST_H_
#include <alibabacloud/gwlb/GwlbExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Gwlb {
namespace Model {
class ALIBABACLOUD_GWLB_EXPORT ListListenersRequest : public RpcServiceRequest {
public:
struct Tag {
std::string key;
std::string value;
};
ListListenersRequest();
~ListListenersRequest();
std::vector<std::string> getLoadBalancerIds() const;
void setLoadBalancerIds(const std::vector<std::string> &loadBalancerIds);
int getSkip() const;
void setSkip(int skip);
std::string getNextToken() const;
void setNextToken(const std::string &nextToken);
std::vector<Tag> getTag() const;
void setTag(const std::vector<Tag> &tag);
std::vector<std::string> getListenerIds() const;
void setListenerIds(const std::vector<std::string> &listenerIds);
int getMaxResults() const;
void setMaxResults(int maxResults);
private:
std::vector<std::string> loadBalancerIds_;
int skip_;
std::string nextToken_;
std::vector<Tag> tag_;
std::vector<std::string> listenerIds_;
int maxResults_;
};
} // namespace Model
} // namespace Gwlb
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_GWLB_MODEL_LISTLISTENERSREQUEST_H_

View File

@@ -0,0 +1,71 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_GWLB_MODEL_LISTLISTENERSRESULT_H_
#define ALIBABACLOUD_GWLB_MODEL_LISTLISTENERSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/gwlb/GwlbExport.h>
namespace AlibabaCloud
{
namespace Gwlb
{
namespace Model
{
class ALIBABACLOUD_GWLB_EXPORT ListListenersResult : public ServiceResult
{
public:
struct Listener
{
struct TagModel
{
std::string value;
std::string key;
};
std::string listenerStatus;
std::string listenerDescription;
std::string serverGroupId;
std::string loadBalancerId;
std::vector<Listener::TagModel> tags;
std::string listenerId;
};
ListListenersResult();
explicit ListListenersResult(const std::string &payload);
~ListListenersResult();
std::vector<Listener> getListeners()const;
int getTotalCount()const;
std::string getNextToken()const;
int getMaxResults()const;
protected:
void parse(const std::string &payload);
private:
std::vector<Listener> listeners_;
int totalCount_;
std::string nextToken_;
int maxResults_;
};
}
}
}
#endif // !ALIBABACLOUD_GWLB_MODEL_LISTLISTENERSRESULT_H_

View File

@@ -0,0 +1,79 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_GWLB_MODEL_LISTLOADBALANCERSREQUEST_H_
#define ALIBABACLOUD_GWLB_MODEL_LISTLOADBALANCERSREQUEST_H_
#include <alibabacloud/gwlb/GwlbExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Gwlb {
namespace Model {
class ALIBABACLOUD_GWLB_EXPORT ListLoadBalancersRequest : public RpcServiceRequest {
public:
struct Tag {
std::string key;
std::string value;
};
ListLoadBalancersRequest();
~ListLoadBalancersRequest();
std::vector<std::string> getLoadBalancerNames() const;
void setLoadBalancerNames(const std::vector<std::string> &loadBalancerNames);
std::vector<std::string> getLoadBalancerIds() const;
void setLoadBalancerIds(const std::vector<std::string> &loadBalancerIds);
int getSkip() const;
void setSkip(int skip);
std::string getAddressIpVersion() const;
void setAddressIpVersion(const std::string &addressIpVersion);
std::string getResourceGroupId() const;
void setResourceGroupId(const std::string &resourceGroupId);
std::vector<std::string> getZoneIds() const;
void setZoneIds(const std::vector<std::string> &zoneIds);
std::string getNextToken() const;
void setNextToken(const std::string &nextToken);
std::vector<std::string> getVpcIds() const;
void setVpcIds(const std::vector<std::string> &vpcIds);
std::vector<Tag> getTag() const;
void setTag(const std::vector<Tag> &tag);
std::string getLoadBalancerBusinessStatus() const;
void setLoadBalancerBusinessStatus(const std::string &loadBalancerBusinessStatus);
std::string getLoadBalancerStatus() const;
void setLoadBalancerStatus(const std::string &loadBalancerStatus);
int getMaxResults() const;
void setMaxResults(int maxResults);
private:
std::vector<std::string> loadBalancerNames_;
std::vector<std::string> loadBalancerIds_;
int skip_;
std::string addressIpVersion_;
std::string resourceGroupId_;
std::vector<std::string> zoneIds_;
std::string nextToken_;
std::vector<std::string> vpcIds_;
std::vector<Tag> tag_;
std::string loadBalancerBusinessStatus_;
std::string loadBalancerStatus_;
int maxResults_;
};
} // namespace Model
} // namespace Gwlb
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_GWLB_MODEL_LISTLOADBALANCERSREQUEST_H_

View File

@@ -0,0 +1,87 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_GWLB_MODEL_LISTLOADBALANCERSRESULT_H_
#define ALIBABACLOUD_GWLB_MODEL_LISTLOADBALANCERSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/gwlb/GwlbExport.h>
namespace AlibabaCloud
{
namespace Gwlb
{
namespace Model
{
class ALIBABACLOUD_GWLB_EXPORT ListLoadBalancersResult : public ServiceResult
{
public:
struct Data
{
struct TagModel
{
std::string value;
std::string key;
};
struct ZoneEniModel
{
struct EniModels
{
std::string eniId;
std::string privateIpv4Address;
};
std::string zoneId;
std::string vSwitchId;
std::vector<ZoneEniModel::EniModels> loadBalancerAddresses;
};
std::string loadBalancerName;
std::string addressIpVersion;
std::string resourceGroupId;
std::string vpcId;
std::string createTime;
std::string loadBalancerId;
std::vector<Data::ZoneEniModel> zoneMappings;
std::string loadBalancerBusinessStatus;
std::string loadBalancerStatus;
std::vector<Data::TagModel> tags;
bool crossZoneEnabled;
};
ListLoadBalancersResult();
explicit ListLoadBalancersResult(const std::string &payload);
~ListLoadBalancersResult();
int getTotalCount()const;
std::string getNextToken()const;
int getMaxResults()const;
std::vector<Data> getLoadBalancers()const;
protected:
void parse(const std::string &payload);
private:
int totalCount_;
std::string nextToken_;
int maxResults_;
std::vector<Data> loadBalancers_;
};
}
}
}
#endif // !ALIBABACLOUD_GWLB_MODEL_LISTLOADBALANCERSRESULT_H_

View File

@@ -0,0 +1,57 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_GWLB_MODEL_LISTSERVERGROUPSERVERSREQUEST_H_
#define ALIBABACLOUD_GWLB_MODEL_LISTSERVERGROUPSERVERSREQUEST_H_
#include <alibabacloud/gwlb/GwlbExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Gwlb {
namespace Model {
class ALIBABACLOUD_GWLB_EXPORT ListServerGroupServersRequest : public RpcServiceRequest {
public:
ListServerGroupServersRequest();
~ListServerGroupServersRequest();
int getSkip() const;
void setSkip(int skip);
std::string getServerGroupId() const;
void setServerGroupId(const std::string &serverGroupId);
std::string getNextToken() const;
void setNextToken(const std::string &nextToken);
std::vector<std::string> getServerIds() const;
void setServerIds(const std::vector<std::string> &serverIds);
std::vector<std::string> getServerIps() const;
void setServerIps(const std::vector<std::string> &serverIps);
int getMaxResults() const;
void setMaxResults(int maxResults);
private:
int skip_;
std::string serverGroupId_;
std::string nextToken_;
std::vector<std::string> serverIds_;
std::vector<std::string> serverIps_;
int maxResults_;
};
} // namespace Model
} // namespace Gwlb
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_GWLB_MODEL_LISTSERVERGROUPSERVERSREQUEST_H_

View File

@@ -0,0 +1,66 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_GWLB_MODEL_LISTSERVERGROUPSERVERSRESULT_H_
#define ALIBABACLOUD_GWLB_MODEL_LISTSERVERGROUPSERVERSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/gwlb/GwlbExport.h>
namespace AlibabaCloud
{
namespace Gwlb
{
namespace Model
{
class ALIBABACLOUD_GWLB_EXPORT ListServerGroupServersResult : public ServiceResult
{
public:
struct Server
{
std::string status;
std::string serverType;
std::string serverId;
int port;
std::string serverIp;
std::string serverGroupId;
};
ListServerGroupServersResult();
explicit ListServerGroupServersResult(const std::string &payload);
~ListServerGroupServersResult();
int getTotalCount()const;
std::string getNextToken()const;
int getMaxResults()const;
std::vector<Server> getServers()const;
protected:
void parse(const std::string &payload);
private:
int totalCount_;
std::string nextToken_;
int maxResults_;
std::vector<Server> servers_;
};
}
}
}
#endif // !ALIBABACLOUD_GWLB_MODEL_LISTSERVERGROUPSERVERSRESULT_H_

View File

@@ -0,0 +1,70 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_GWLB_MODEL_LISTSERVERGROUPSREQUEST_H_
#define ALIBABACLOUD_GWLB_MODEL_LISTSERVERGROUPSREQUEST_H_
#include <alibabacloud/gwlb/GwlbExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Gwlb {
namespace Model {
class ALIBABACLOUD_GWLB_EXPORT ListServerGroupsRequest : public RpcServiceRequest {
public:
struct Tag {
std::string key;
std::string value;
};
ListServerGroupsRequest();
~ListServerGroupsRequest();
std::vector<std::string> getServerGroupNames() const;
void setServerGroupNames(const std::vector<std::string> &serverGroupNames);
int getSkip() const;
void setSkip(int skip);
std::string getResourceGroupId() const;
void setResourceGroupId(const std::string &resourceGroupId);
std::string getNextToken() const;
void setNextToken(const std::string &nextToken);
std::vector<Tag> getTag() const;
void setTag(const std::vector<Tag> &tag);
std::vector<std::string> getServerGroupIds() const;
void setServerGroupIds(const std::vector<std::string> &serverGroupIds);
std::string getServerGroupType() const;
void setServerGroupType(const std::string &serverGroupType);
std::string getVpcId() const;
void setVpcId(const std::string &vpcId);
int getMaxResults() const;
void setMaxResults(int maxResults);
private:
std::vector<std::string> serverGroupNames_;
int skip_;
std::string resourceGroupId_;
std::string nextToken_;
std::vector<Tag> tag_;
std::vector<std::string> serverGroupIds_;
std::string serverGroupType_;
std::string vpcId_;
int maxResults_;
};
} // namespace Model
} // namespace Gwlb
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_GWLB_MODEL_LISTSERVERGROUPSREQUEST_H_

View File

@@ -0,0 +1,97 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_GWLB_MODEL_LISTSERVERGROUPSRESULT_H_
#define ALIBABACLOUD_GWLB_MODEL_LISTSERVERGROUPSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/gwlb/GwlbExport.h>
namespace AlibabaCloud
{
namespace Gwlb
{
namespace Model
{
class ALIBABACLOUD_GWLB_EXPORT ListServerGroupsResult : public ServiceResult
{
public:
struct ServerGroup
{
struct ConnectionDrainConfig
{
bool connectionDrainEnabled;
int connectionDrainTimeout;
};
struct HealthCheckConfig
{
int healthCheckInterval;
int healthCheckConnectPort;
int unhealthyThreshold;
std::string healthCheckPath;
int healthyThreshold;
int healthCheckConnectTimeout;
std::string healthCheckProtocol;
std::string healthCheckDomain;
bool healthCheckEnabled;
std::vector<std::string> healthCheckHttpCode;
};
struct TagModel
{
std::string value;
std::string key;
};
ConnectionDrainConfig connectionDrainConfig;
std::vector<std::string> relatedLoadBalancerIds;
std::string resourceGroupId;
std::string scheduler;
std::string createTime;
int serverCount;
std::string serverGroupId;
std::string serverGroupType;
std::string serverGroupStatus;
std::string vpcId;
HealthCheckConfig healthCheckConfig;
std::string protocol;
std::vector<ServerGroup::TagModel> tags;
std::string serverGroupName;
};
ListServerGroupsResult();
explicit ListServerGroupsResult(const std::string &payload);
~ListServerGroupsResult();
int getTotalCount()const;
std::string getNextToken()const;
std::vector<ServerGroup> getServerGroups()const;
int getMaxResults()const;
protected:
void parse(const std::string &payload);
private:
int totalCount_;
std::string nextToken_;
std::vector<ServerGroup> serverGroups_;
int maxResults_;
};
}
}
}
#endif // !ALIBABACLOUD_GWLB_MODEL_LISTSERVERGROUPSRESULT_H_

View File

@@ -0,0 +1,58 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_GWLB_MODEL_LISTTAGRESOURCESREQUEST_H_
#define ALIBABACLOUD_GWLB_MODEL_LISTTAGRESOURCESREQUEST_H_
#include <alibabacloud/gwlb/GwlbExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Gwlb {
namespace Model {
class ALIBABACLOUD_GWLB_EXPORT ListTagResourcesRequest : public RpcServiceRequest {
public:
struct Tag {
std::string key;
std::string value;
};
ListTagResourcesRequest();
~ListTagResourcesRequest();
std::string getNextToken() const;
void setNextToken(const std::string &nextToken);
std::vector<Tag> getTag() const;
void setTag(const std::vector<Tag> &tag);
std::vector<std::string> getResourceId() const;
void setResourceId(const std::vector<std::string> &resourceId);
std::string getResourceType() const;
void setResourceType(const std::string &resourceType);
int getMaxResults() const;
void setMaxResults(int maxResults);
private:
std::string nextToken_;
std::vector<Tag> tag_;
std::vector<std::string> resourceId_;
std::string resourceType_;
int maxResults_;
};
} // namespace Model
} // namespace Gwlb
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_GWLB_MODEL_LISTTAGRESOURCESREQUEST_H_

View File

@@ -0,0 +1,60 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_GWLB_MODEL_LISTTAGRESOURCESRESULT_H_
#define ALIBABACLOUD_GWLB_MODEL_LISTTAGRESOURCESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/gwlb/GwlbExport.h>
namespace AlibabaCloud
{
namespace Gwlb
{
namespace Model
{
class ALIBABACLOUD_GWLB_EXPORT ListTagResourcesResult : public ServiceResult
{
public:
struct TagResource
{
std::string resourceId;
std::string tagKey;
std::string resourceType;
std::string tagValue;
};
ListTagResourcesResult();
explicit ListTagResourcesResult(const std::string &payload);
~ListTagResourcesResult();
std::string getNextToken()const;
std::vector<TagResource> getTagResources()const;
protected:
void parse(const std::string &payload);
private:
std::string nextToken_;
std::vector<TagResource> tagResources_;
};
}
}
}
#endif // !ALIBABACLOUD_GWLB_MODEL_LISTTAGRESOURCESRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_GWLB_MODEL_MOVERESOURCEGROUPREQUEST_H_
#define ALIBABACLOUD_GWLB_MODEL_MOVERESOURCEGROUPREQUEST_H_
#include <alibabacloud/gwlb/GwlbExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Gwlb {
namespace Model {
class ALIBABACLOUD_GWLB_EXPORT MoveResourceGroupRequest : public RpcServiceRequest {
public:
MoveResourceGroupRequest();
~MoveResourceGroupRequest();
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
std::string getResourceId() const;
void setResourceId(const std::string &resourceId);
bool getDryRun() const;
void setDryRun(bool dryRun);
std::string getResourceType() const;
void setResourceType(const std::string &resourceType);
std::string getNewResourceGroupId() const;
void setNewResourceGroupId(const std::string &newResourceGroupId);
private:
std::string clientToken_;
std::string resourceId_;
bool dryRun_;
std::string resourceType_;
std::string newResourceGroupId_;
};
} // namespace Model
} // namespace Gwlb
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_GWLB_MODEL_MOVERESOURCEGROUPREQUEST_H_

View 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.
*/
#ifndef ALIBABACLOUD_GWLB_MODEL_MOVERESOURCEGROUPRESULT_H_
#define ALIBABACLOUD_GWLB_MODEL_MOVERESOURCEGROUPRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/gwlb/GwlbExport.h>
namespace AlibabaCloud
{
namespace Gwlb
{
namespace Model
{
class ALIBABACLOUD_GWLB_EXPORT MoveResourceGroupResult : public ServiceResult
{
public:
MoveResourceGroupResult();
explicit MoveResourceGroupResult(const std::string &payload);
~MoveResourceGroupResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_GWLB_MODEL_MOVERESOURCEGROUPRESULT_H_

View File

@@ -0,0 +1,57 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_GWLB_MODEL_REMOVESERVERSFROMSERVERGROUPREQUEST_H_
#define ALIBABACLOUD_GWLB_MODEL_REMOVESERVERSFROMSERVERGROUPREQUEST_H_
#include <alibabacloud/gwlb/GwlbExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Gwlb {
namespace Model {
class ALIBABACLOUD_GWLB_EXPORT RemoveServersFromServerGroupRequest : public RpcServiceRequest {
public:
struct Servers {
int port;
std::string serverId;
std::string serverIp;
std::string serverType;
};
RemoveServersFromServerGroupRequest();
~RemoveServersFromServerGroupRequest();
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
std::string getServerGroupId() const;
void setServerGroupId(const std::string &serverGroupId);
std::vector<Servers> getServers() const;
void setServers(const std::vector<Servers> &servers);
bool getDryRun() const;
void setDryRun(bool dryRun);
private:
std::string clientToken_;
std::string serverGroupId_;
std::vector<Servers> servers_;
bool dryRun_;
};
} // namespace Model
} // namespace Gwlb
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_GWLB_MODEL_REMOVESERVERSFROMSERVERGROUPREQUEST_H_

View 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.
*/
#ifndef ALIBABACLOUD_GWLB_MODEL_REMOVESERVERSFROMSERVERGROUPRESULT_H_
#define ALIBABACLOUD_GWLB_MODEL_REMOVESERVERSFROMSERVERGROUPRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/gwlb/GwlbExport.h>
namespace AlibabaCloud
{
namespace Gwlb
{
namespace Model
{
class ALIBABACLOUD_GWLB_EXPORT RemoveServersFromServerGroupResult : public ServiceResult
{
public:
RemoveServersFromServerGroupResult();
explicit RemoveServersFromServerGroupResult(const std::string &payload);
~RemoveServersFromServerGroupResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_GWLB_MODEL_REMOVESERVERSFROMSERVERGROUPRESULT_H_

View File

@@ -0,0 +1,58 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_GWLB_MODEL_TAGRESOURCESREQUEST_H_
#define ALIBABACLOUD_GWLB_MODEL_TAGRESOURCESREQUEST_H_
#include <alibabacloud/gwlb/GwlbExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Gwlb {
namespace Model {
class ALIBABACLOUD_GWLB_EXPORT TagResourcesRequest : public RpcServiceRequest {
public:
struct Tag {
std::string key;
std::string value;
};
TagResourcesRequest();
~TagResourcesRequest();
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
std::vector<Tag> getTag() const;
void setTag(const std::vector<Tag> &tag);
std::vector<std::string> getResourceId() const;
void setResourceId(const std::vector<std::string> &resourceId);
bool getDryRun() const;
void setDryRun(bool dryRun);
std::string getResourceType() const;
void setResourceType(const std::string &resourceType);
private:
std::string clientToken_;
std::vector<Tag> tag_;
std::vector<std::string> resourceId_;
bool dryRun_;
std::string resourceType_;
};
} // namespace Model
} // namespace Gwlb
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_GWLB_MODEL_TAGRESOURCESREQUEST_H_

View 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.
*/
#ifndef ALIBABACLOUD_GWLB_MODEL_TAGRESOURCESRESULT_H_
#define ALIBABACLOUD_GWLB_MODEL_TAGRESOURCESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/gwlb/GwlbExport.h>
namespace AlibabaCloud
{
namespace Gwlb
{
namespace Model
{
class ALIBABACLOUD_GWLB_EXPORT TagResourcesResult : public ServiceResult
{
public:
TagResourcesResult();
explicit TagResourcesResult(const std::string &payload);
~TagResourcesResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_GWLB_MODEL_TAGRESOURCESRESULT_H_

View File

@@ -0,0 +1,57 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_GWLB_MODEL_UNTAGRESOURCESREQUEST_H_
#define ALIBABACLOUD_GWLB_MODEL_UNTAGRESOURCESREQUEST_H_
#include <alibabacloud/gwlb/GwlbExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Gwlb {
namespace Model {
class ALIBABACLOUD_GWLB_EXPORT UntagResourcesRequest : public RpcServiceRequest {
public:
UntagResourcesRequest();
~UntagResourcesRequest();
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
bool getAll() const;
void setAll(bool all);
std::vector<std::string> getResourceId() const;
void setResourceId(const std::vector<std::string> &resourceId);
bool getDryRun() const;
void setDryRun(bool dryRun);
std::string getResourceType() const;
void setResourceType(const std::string &resourceType);
std::vector<std::string> getTagKey() const;
void setTagKey(const std::vector<std::string> &tagKey);
private:
std::string clientToken_;
bool all_;
std::vector<std::string> resourceId_;
bool dryRun_;
std::string resourceType_;
std::vector<std::string> tagKey_;
};
} // namespace Model
} // namespace Gwlb
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_GWLB_MODEL_UNTAGRESOURCESREQUEST_H_

View 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.
*/
#ifndef ALIBABACLOUD_GWLB_MODEL_UNTAGRESOURCESRESULT_H_
#define ALIBABACLOUD_GWLB_MODEL_UNTAGRESOURCESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/gwlb/GwlbExport.h>
namespace AlibabaCloud
{
namespace Gwlb
{
namespace Model
{
class ALIBABACLOUD_GWLB_EXPORT UntagResourcesResult : public ServiceResult
{
public:
UntagResourcesResult();
explicit UntagResourcesResult(const std::string &payload);
~UntagResourcesResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_GWLB_MODEL_UNTAGRESOURCESRESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_GWLB_MODEL_UPDATELISTENERATTRIBUTEREQUEST_H_
#define ALIBABACLOUD_GWLB_MODEL_UPDATELISTENERATTRIBUTEREQUEST_H_
#include <alibabacloud/gwlb/GwlbExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Gwlb {
namespace Model {
class ALIBABACLOUD_GWLB_EXPORT UpdateListenerAttributeRequest : public RpcServiceRequest {
public:
UpdateListenerAttributeRequest();
~UpdateListenerAttributeRequest();
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
std::string getServerGroupId() const;
void setServerGroupId(const std::string &serverGroupId);
std::string getListenerId() const;
void setListenerId(const std::string &listenerId);
bool getDryRun() const;
void setDryRun(bool dryRun);
std::string getListenerDescription() const;
void setListenerDescription(const std::string &listenerDescription);
private:
std::string clientToken_;
std::string serverGroupId_;
std::string listenerId_;
bool dryRun_;
std::string listenerDescription_;
};
} // namespace Model
} // namespace Gwlb
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_GWLB_MODEL_UPDATELISTENERATTRIBUTEREQUEST_H_

View 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.
*/
#ifndef ALIBABACLOUD_GWLB_MODEL_UPDATELISTENERATTRIBUTERESULT_H_
#define ALIBABACLOUD_GWLB_MODEL_UPDATELISTENERATTRIBUTERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/gwlb/GwlbExport.h>
namespace AlibabaCloud
{
namespace Gwlb
{
namespace Model
{
class ALIBABACLOUD_GWLB_EXPORT UpdateListenerAttributeResult : public ServiceResult
{
public:
UpdateListenerAttributeResult();
explicit UpdateListenerAttributeResult(const std::string &payload);
~UpdateListenerAttributeResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_GWLB_MODEL_UPDATELISTENERATTRIBUTERESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_GWLB_MODEL_UPDATELOADBALANCERATTRIBUTEREQUEST_H_
#define ALIBABACLOUD_GWLB_MODEL_UPDATELOADBALANCERATTRIBUTEREQUEST_H_
#include <alibabacloud/gwlb/GwlbExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Gwlb {
namespace Model {
class ALIBABACLOUD_GWLB_EXPORT UpdateLoadBalancerAttributeRequest : public RpcServiceRequest {
public:
UpdateLoadBalancerAttributeRequest();
~UpdateLoadBalancerAttributeRequest();
bool getCrossZoneEnabled() const;
void setCrossZoneEnabled(bool crossZoneEnabled);
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
std::string getLoadBalancerName() const;
void setLoadBalancerName(const std::string &loadBalancerName);
bool getDryRun() const;
void setDryRun(bool dryRun);
std::string getLoadBalancerId() const;
void setLoadBalancerId(const std::string &loadBalancerId);
private:
bool crossZoneEnabled_;
std::string clientToken_;
std::string loadBalancerName_;
bool dryRun_;
std::string loadBalancerId_;
};
} // namespace Model
} // namespace Gwlb
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_GWLB_MODEL_UPDATELOADBALANCERATTRIBUTEREQUEST_H_

View 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.
*/
#ifndef ALIBABACLOUD_GWLB_MODEL_UPDATELOADBALANCERATTRIBUTERESULT_H_
#define ALIBABACLOUD_GWLB_MODEL_UPDATELOADBALANCERATTRIBUTERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/gwlb/GwlbExport.h>
namespace AlibabaCloud
{
namespace Gwlb
{
namespace Model
{
class ALIBABACLOUD_GWLB_EXPORT UpdateLoadBalancerAttributeResult : public ServiceResult
{
public:
UpdateLoadBalancerAttributeResult();
explicit UpdateLoadBalancerAttributeResult(const std::string &payload);
~UpdateLoadBalancerAttributeResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_GWLB_MODEL_UPDATELOADBALANCERATTRIBUTERESULT_H_

View File

@@ -0,0 +1,55 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_GWLB_MODEL_UPDATELOADBALANCERZONESREQUEST_H_
#define ALIBABACLOUD_GWLB_MODEL_UPDATELOADBALANCERZONESREQUEST_H_
#include <alibabacloud/gwlb/GwlbExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Gwlb {
namespace Model {
class ALIBABACLOUD_GWLB_EXPORT UpdateLoadBalancerZonesRequest : public RpcServiceRequest {
public:
struct ZoneMappings {
std::string vSwitchId;
std::string zoneId;
};
UpdateLoadBalancerZonesRequest();
~UpdateLoadBalancerZonesRequest();
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
bool getDryRun() const;
void setDryRun(bool dryRun);
std::vector<ZoneMappings> getZoneMappings() const;
void setZoneMappings(const std::vector<ZoneMappings> &zoneMappings);
std::string getLoadBalancerId() const;
void setLoadBalancerId(const std::string &loadBalancerId);
private:
std::string clientToken_;
bool dryRun_;
std::vector<ZoneMappings> zoneMappings_;
std::string loadBalancerId_;
};
} // namespace Model
} // namespace Gwlb
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_GWLB_MODEL_UPDATELOADBALANCERZONESREQUEST_H_

View 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.
*/
#ifndef ALIBABACLOUD_GWLB_MODEL_UPDATELOADBALANCERZONESRESULT_H_
#define ALIBABACLOUD_GWLB_MODEL_UPDATELOADBALANCERZONESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/gwlb/GwlbExport.h>
namespace AlibabaCloud
{
namespace Gwlb
{
namespace Model
{
class ALIBABACLOUD_GWLB_EXPORT UpdateLoadBalancerZonesResult : public ServiceResult
{
public:
UpdateLoadBalancerZonesResult();
explicit UpdateLoadBalancerZonesResult(const std::string &payload);
~UpdateLoadBalancerZonesResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_GWLB_MODEL_UPDATELOADBALANCERZONESRESULT_H_

View File

@@ -0,0 +1,77 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_GWLB_MODEL_UPDATESERVERGROUPATTRIBUTEREQUEST_H_
#define ALIBABACLOUD_GWLB_MODEL_UPDATESERVERGROUPATTRIBUTEREQUEST_H_
#include <alibabacloud/gwlb/GwlbExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Gwlb {
namespace Model {
class ALIBABACLOUD_GWLB_EXPORT UpdateServerGroupAttributeRequest : public RpcServiceRequest {
public:
struct HealthCheckConfig {
int healthCheckConnectPort;
int healthCheckConnectTimeout;
std::string healthCheckDomain;
bool healthCheckEnabled;
std::string string;
std::vector<std::string> healthCheckHttpCode;
int healthCheckInterval;
std::string healthCheckPath;
std::string healthCheckProtocol;
int healthyThreshold;
int unhealthyThreshold;
};
struct ConnectionDrainConfig {
bool connectionDrainEnabled;
int connectionDrainTimeout;
};
UpdateServerGroupAttributeRequest();
~UpdateServerGroupAttributeRequest();
std::string getServerGroupName() const;
void setServerGroupName(const std::string &serverGroupName);
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
HealthCheckConfig getHealthCheckConfig() const;
void setHealthCheckConfig(const HealthCheckConfig &healthCheckConfig);
std::string getServerGroupId() const;
void setServerGroupId(const std::string &serverGroupId);
std::string getScheduler() const;
void setScheduler(const std::string &scheduler);
bool getDryRun() const;
void setDryRun(bool dryRun);
ConnectionDrainConfig getConnectionDrainConfig() const;
void setConnectionDrainConfig(const ConnectionDrainConfig &connectionDrainConfig);
private:
std::string serverGroupName_;
std::string clientToken_;
HealthCheckConfig healthCheckConfig_;
std::string serverGroupId_;
std::string scheduler_;
bool dryRun_;
ConnectionDrainConfig connectionDrainConfig_;
};
} // namespace Model
} // namespace Gwlb
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_GWLB_MODEL_UPDATESERVERGROUPATTRIBUTEREQUEST_H_

View 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.
*/
#ifndef ALIBABACLOUD_GWLB_MODEL_UPDATESERVERGROUPATTRIBUTERESULT_H_
#define ALIBABACLOUD_GWLB_MODEL_UPDATESERVERGROUPATTRIBUTERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/gwlb/GwlbExport.h>
namespace AlibabaCloud
{
namespace Gwlb
{
namespace Model
{
class ALIBABACLOUD_GWLB_EXPORT UpdateServerGroupAttributeResult : public ServiceResult
{
public:
UpdateServerGroupAttributeResult();
explicit UpdateServerGroupAttributeResult(const std::string &payload);
~UpdateServerGroupAttributeResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_GWLB_MODEL_UPDATESERVERGROUPATTRIBUTERESULT_H_

953
gwlb/src/GwlbClient.cc Normal file
View File

@@ -0,0 +1,953 @@
/*
* 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/gwlb/GwlbClient.h>
#include <alibabacloud/core/SimpleCredentialsProvider.h>
using namespace AlibabaCloud;
using namespace AlibabaCloud::Location;
using namespace AlibabaCloud::Gwlb;
using namespace AlibabaCloud::Gwlb::Model;
namespace
{
const std::string SERVICE_NAME = "Gwlb";
}
GwlbClient::GwlbClient(const Credentials &credentials, const ClientConfiguration &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(), SERVICE_NAME, "");
}
GwlbClient::GwlbClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
GwlbClient::GwlbClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & 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(), SERVICE_NAME, "");
}
GwlbClient::~GwlbClient()
{}
GwlbClient::AddServersToServerGroupOutcome GwlbClient::addServersToServerGroup(const AddServersToServerGroupRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return AddServersToServerGroupOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return AddServersToServerGroupOutcome(AddServersToServerGroupResult(outcome.result()));
else
return AddServersToServerGroupOutcome(outcome.error());
}
void GwlbClient::addServersToServerGroupAsync(const AddServersToServerGroupRequest& request, const AddServersToServerGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, addServersToServerGroup(request), context);
};
asyncExecute(new Runnable(fn));
}
GwlbClient::AddServersToServerGroupOutcomeCallable GwlbClient::addServersToServerGroupCallable(const AddServersToServerGroupRequest &request) const
{
auto task = std::make_shared<std::packaged_task<AddServersToServerGroupOutcome()>>(
[this, request]()
{
return this->addServersToServerGroup(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
GwlbClient::CreateListenerOutcome GwlbClient::createListener(const CreateListenerRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateListenerOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateListenerOutcome(CreateListenerResult(outcome.result()));
else
return CreateListenerOutcome(outcome.error());
}
void GwlbClient::createListenerAsync(const CreateListenerRequest& request, const CreateListenerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createListener(request), context);
};
asyncExecute(new Runnable(fn));
}
GwlbClient::CreateListenerOutcomeCallable GwlbClient::createListenerCallable(const CreateListenerRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateListenerOutcome()>>(
[this, request]()
{
return this->createListener(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
GwlbClient::CreateLoadBalancerOutcome GwlbClient::createLoadBalancer(const CreateLoadBalancerRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateLoadBalancerOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateLoadBalancerOutcome(CreateLoadBalancerResult(outcome.result()));
else
return CreateLoadBalancerOutcome(outcome.error());
}
void GwlbClient::createLoadBalancerAsync(const CreateLoadBalancerRequest& request, const CreateLoadBalancerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createLoadBalancer(request), context);
};
asyncExecute(new Runnable(fn));
}
GwlbClient::CreateLoadBalancerOutcomeCallable GwlbClient::createLoadBalancerCallable(const CreateLoadBalancerRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateLoadBalancerOutcome()>>(
[this, request]()
{
return this->createLoadBalancer(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
GwlbClient::CreateServerGroupOutcome GwlbClient::createServerGroup(const CreateServerGroupRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateServerGroupOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateServerGroupOutcome(CreateServerGroupResult(outcome.result()));
else
return CreateServerGroupOutcome(outcome.error());
}
void GwlbClient::createServerGroupAsync(const CreateServerGroupRequest& request, const CreateServerGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createServerGroup(request), context);
};
asyncExecute(new Runnable(fn));
}
GwlbClient::CreateServerGroupOutcomeCallable GwlbClient::createServerGroupCallable(const CreateServerGroupRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateServerGroupOutcome()>>(
[this, request]()
{
return this->createServerGroup(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
GwlbClient::DeleteListenerOutcome GwlbClient::deleteListener(const DeleteListenerRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteListenerOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteListenerOutcome(DeleteListenerResult(outcome.result()));
else
return DeleteListenerOutcome(outcome.error());
}
void GwlbClient::deleteListenerAsync(const DeleteListenerRequest& request, const DeleteListenerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteListener(request), context);
};
asyncExecute(new Runnable(fn));
}
GwlbClient::DeleteListenerOutcomeCallable GwlbClient::deleteListenerCallable(const DeleteListenerRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteListenerOutcome()>>(
[this, request]()
{
return this->deleteListener(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
GwlbClient::DeleteLoadBalancerOutcome GwlbClient::deleteLoadBalancer(const DeleteLoadBalancerRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteLoadBalancerOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteLoadBalancerOutcome(DeleteLoadBalancerResult(outcome.result()));
else
return DeleteLoadBalancerOutcome(outcome.error());
}
void GwlbClient::deleteLoadBalancerAsync(const DeleteLoadBalancerRequest& request, const DeleteLoadBalancerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteLoadBalancer(request), context);
};
asyncExecute(new Runnable(fn));
}
GwlbClient::DeleteLoadBalancerOutcomeCallable GwlbClient::deleteLoadBalancerCallable(const DeleteLoadBalancerRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteLoadBalancerOutcome()>>(
[this, request]()
{
return this->deleteLoadBalancer(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
GwlbClient::DeleteServerGroupOutcome GwlbClient::deleteServerGroup(const DeleteServerGroupRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteServerGroupOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteServerGroupOutcome(DeleteServerGroupResult(outcome.result()));
else
return DeleteServerGroupOutcome(outcome.error());
}
void GwlbClient::deleteServerGroupAsync(const DeleteServerGroupRequest& request, const DeleteServerGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteServerGroup(request), context);
};
asyncExecute(new Runnable(fn));
}
GwlbClient::DeleteServerGroupOutcomeCallable GwlbClient::deleteServerGroupCallable(const DeleteServerGroupRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteServerGroupOutcome()>>(
[this, request]()
{
return this->deleteServerGroup(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
GwlbClient::DescribeRegionsOutcome GwlbClient::describeRegions(const DescribeRegionsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeRegionsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeRegionsOutcome(DescribeRegionsResult(outcome.result()));
else
return DescribeRegionsOutcome(outcome.error());
}
void GwlbClient::describeRegionsAsync(const DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeRegions(request), context);
};
asyncExecute(new Runnable(fn));
}
GwlbClient::DescribeRegionsOutcomeCallable GwlbClient::describeRegionsCallable(const DescribeRegionsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeRegionsOutcome()>>(
[this, request]()
{
return this->describeRegions(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
GwlbClient::DescribeZonesOutcome GwlbClient::describeZones(const DescribeZonesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeZonesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeZonesOutcome(DescribeZonesResult(outcome.result()));
else
return DescribeZonesOutcome(outcome.error());
}
void GwlbClient::describeZonesAsync(const DescribeZonesRequest& request, const DescribeZonesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeZones(request), context);
};
asyncExecute(new Runnable(fn));
}
GwlbClient::DescribeZonesOutcomeCallable GwlbClient::describeZonesCallable(const DescribeZonesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeZonesOutcome()>>(
[this, request]()
{
return this->describeZones(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
GwlbClient::GetListenerAttributeOutcome GwlbClient::getListenerAttribute(const GetListenerAttributeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetListenerAttributeOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetListenerAttributeOutcome(GetListenerAttributeResult(outcome.result()));
else
return GetListenerAttributeOutcome(outcome.error());
}
void GwlbClient::getListenerAttributeAsync(const GetListenerAttributeRequest& request, const GetListenerAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getListenerAttribute(request), context);
};
asyncExecute(new Runnable(fn));
}
GwlbClient::GetListenerAttributeOutcomeCallable GwlbClient::getListenerAttributeCallable(const GetListenerAttributeRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetListenerAttributeOutcome()>>(
[this, request]()
{
return this->getListenerAttribute(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
GwlbClient::GetListenerHealthStatusOutcome GwlbClient::getListenerHealthStatus(const GetListenerHealthStatusRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetListenerHealthStatusOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetListenerHealthStatusOutcome(GetListenerHealthStatusResult(outcome.result()));
else
return GetListenerHealthStatusOutcome(outcome.error());
}
void GwlbClient::getListenerHealthStatusAsync(const GetListenerHealthStatusRequest& request, const GetListenerHealthStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getListenerHealthStatus(request), context);
};
asyncExecute(new Runnable(fn));
}
GwlbClient::GetListenerHealthStatusOutcomeCallable GwlbClient::getListenerHealthStatusCallable(const GetListenerHealthStatusRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetListenerHealthStatusOutcome()>>(
[this, request]()
{
return this->getListenerHealthStatus(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
GwlbClient::GetLoadBalancerAttributeOutcome GwlbClient::getLoadBalancerAttribute(const GetLoadBalancerAttributeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetLoadBalancerAttributeOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetLoadBalancerAttributeOutcome(GetLoadBalancerAttributeResult(outcome.result()));
else
return GetLoadBalancerAttributeOutcome(outcome.error());
}
void GwlbClient::getLoadBalancerAttributeAsync(const GetLoadBalancerAttributeRequest& request, const GetLoadBalancerAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getLoadBalancerAttribute(request), context);
};
asyncExecute(new Runnable(fn));
}
GwlbClient::GetLoadBalancerAttributeOutcomeCallable GwlbClient::getLoadBalancerAttributeCallable(const GetLoadBalancerAttributeRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetLoadBalancerAttributeOutcome()>>(
[this, request]()
{
return this->getLoadBalancerAttribute(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
GwlbClient::ListListenersOutcome GwlbClient::listListeners(const ListListenersRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListListenersOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListListenersOutcome(ListListenersResult(outcome.result()));
else
return ListListenersOutcome(outcome.error());
}
void GwlbClient::listListenersAsync(const ListListenersRequest& request, const ListListenersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listListeners(request), context);
};
asyncExecute(new Runnable(fn));
}
GwlbClient::ListListenersOutcomeCallable GwlbClient::listListenersCallable(const ListListenersRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListListenersOutcome()>>(
[this, request]()
{
return this->listListeners(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
GwlbClient::ListLoadBalancersOutcome GwlbClient::listLoadBalancers(const ListLoadBalancersRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListLoadBalancersOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListLoadBalancersOutcome(ListLoadBalancersResult(outcome.result()));
else
return ListLoadBalancersOutcome(outcome.error());
}
void GwlbClient::listLoadBalancersAsync(const ListLoadBalancersRequest& request, const ListLoadBalancersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listLoadBalancers(request), context);
};
asyncExecute(new Runnable(fn));
}
GwlbClient::ListLoadBalancersOutcomeCallable GwlbClient::listLoadBalancersCallable(const ListLoadBalancersRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListLoadBalancersOutcome()>>(
[this, request]()
{
return this->listLoadBalancers(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
GwlbClient::ListServerGroupServersOutcome GwlbClient::listServerGroupServers(const ListServerGroupServersRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListServerGroupServersOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListServerGroupServersOutcome(ListServerGroupServersResult(outcome.result()));
else
return ListServerGroupServersOutcome(outcome.error());
}
void GwlbClient::listServerGroupServersAsync(const ListServerGroupServersRequest& request, const ListServerGroupServersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listServerGroupServers(request), context);
};
asyncExecute(new Runnable(fn));
}
GwlbClient::ListServerGroupServersOutcomeCallable GwlbClient::listServerGroupServersCallable(const ListServerGroupServersRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListServerGroupServersOutcome()>>(
[this, request]()
{
return this->listServerGroupServers(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
GwlbClient::ListServerGroupsOutcome GwlbClient::listServerGroups(const ListServerGroupsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListServerGroupsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListServerGroupsOutcome(ListServerGroupsResult(outcome.result()));
else
return ListServerGroupsOutcome(outcome.error());
}
void GwlbClient::listServerGroupsAsync(const ListServerGroupsRequest& request, const ListServerGroupsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listServerGroups(request), context);
};
asyncExecute(new Runnable(fn));
}
GwlbClient::ListServerGroupsOutcomeCallable GwlbClient::listServerGroupsCallable(const ListServerGroupsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListServerGroupsOutcome()>>(
[this, request]()
{
return this->listServerGroups(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
GwlbClient::ListTagResourcesOutcome GwlbClient::listTagResources(const ListTagResourcesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListTagResourcesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListTagResourcesOutcome(ListTagResourcesResult(outcome.result()));
else
return ListTagResourcesOutcome(outcome.error());
}
void GwlbClient::listTagResourcesAsync(const ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listTagResources(request), context);
};
asyncExecute(new Runnable(fn));
}
GwlbClient::ListTagResourcesOutcomeCallable GwlbClient::listTagResourcesCallable(const ListTagResourcesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListTagResourcesOutcome()>>(
[this, request]()
{
return this->listTagResources(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
GwlbClient::MoveResourceGroupOutcome GwlbClient::moveResourceGroup(const MoveResourceGroupRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return MoveResourceGroupOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return MoveResourceGroupOutcome(MoveResourceGroupResult(outcome.result()));
else
return MoveResourceGroupOutcome(outcome.error());
}
void GwlbClient::moveResourceGroupAsync(const MoveResourceGroupRequest& request, const MoveResourceGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, moveResourceGroup(request), context);
};
asyncExecute(new Runnable(fn));
}
GwlbClient::MoveResourceGroupOutcomeCallable GwlbClient::moveResourceGroupCallable(const MoveResourceGroupRequest &request) const
{
auto task = std::make_shared<std::packaged_task<MoveResourceGroupOutcome()>>(
[this, request]()
{
return this->moveResourceGroup(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
GwlbClient::RemoveServersFromServerGroupOutcome GwlbClient::removeServersFromServerGroup(const RemoveServersFromServerGroupRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return RemoveServersFromServerGroupOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return RemoveServersFromServerGroupOutcome(RemoveServersFromServerGroupResult(outcome.result()));
else
return RemoveServersFromServerGroupOutcome(outcome.error());
}
void GwlbClient::removeServersFromServerGroupAsync(const RemoveServersFromServerGroupRequest& request, const RemoveServersFromServerGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, removeServersFromServerGroup(request), context);
};
asyncExecute(new Runnable(fn));
}
GwlbClient::RemoveServersFromServerGroupOutcomeCallable GwlbClient::removeServersFromServerGroupCallable(const RemoveServersFromServerGroupRequest &request) const
{
auto task = std::make_shared<std::packaged_task<RemoveServersFromServerGroupOutcome()>>(
[this, request]()
{
return this->removeServersFromServerGroup(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
GwlbClient::TagResourcesOutcome GwlbClient::tagResources(const TagResourcesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return TagResourcesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return TagResourcesOutcome(TagResourcesResult(outcome.result()));
else
return TagResourcesOutcome(outcome.error());
}
void GwlbClient::tagResourcesAsync(const TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, tagResources(request), context);
};
asyncExecute(new Runnable(fn));
}
GwlbClient::TagResourcesOutcomeCallable GwlbClient::tagResourcesCallable(const TagResourcesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<TagResourcesOutcome()>>(
[this, request]()
{
return this->tagResources(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
GwlbClient::UntagResourcesOutcome GwlbClient::untagResources(const UntagResourcesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UntagResourcesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UntagResourcesOutcome(UntagResourcesResult(outcome.result()));
else
return UntagResourcesOutcome(outcome.error());
}
void GwlbClient::untagResourcesAsync(const UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, untagResources(request), context);
};
asyncExecute(new Runnable(fn));
}
GwlbClient::UntagResourcesOutcomeCallable GwlbClient::untagResourcesCallable(const UntagResourcesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UntagResourcesOutcome()>>(
[this, request]()
{
return this->untagResources(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
GwlbClient::UpdateListenerAttributeOutcome GwlbClient::updateListenerAttribute(const UpdateListenerAttributeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateListenerAttributeOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateListenerAttributeOutcome(UpdateListenerAttributeResult(outcome.result()));
else
return UpdateListenerAttributeOutcome(outcome.error());
}
void GwlbClient::updateListenerAttributeAsync(const UpdateListenerAttributeRequest& request, const UpdateListenerAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateListenerAttribute(request), context);
};
asyncExecute(new Runnable(fn));
}
GwlbClient::UpdateListenerAttributeOutcomeCallable GwlbClient::updateListenerAttributeCallable(const UpdateListenerAttributeRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateListenerAttributeOutcome()>>(
[this, request]()
{
return this->updateListenerAttribute(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
GwlbClient::UpdateLoadBalancerAttributeOutcome GwlbClient::updateLoadBalancerAttribute(const UpdateLoadBalancerAttributeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateLoadBalancerAttributeOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateLoadBalancerAttributeOutcome(UpdateLoadBalancerAttributeResult(outcome.result()));
else
return UpdateLoadBalancerAttributeOutcome(outcome.error());
}
void GwlbClient::updateLoadBalancerAttributeAsync(const UpdateLoadBalancerAttributeRequest& request, const UpdateLoadBalancerAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateLoadBalancerAttribute(request), context);
};
asyncExecute(new Runnable(fn));
}
GwlbClient::UpdateLoadBalancerAttributeOutcomeCallable GwlbClient::updateLoadBalancerAttributeCallable(const UpdateLoadBalancerAttributeRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateLoadBalancerAttributeOutcome()>>(
[this, request]()
{
return this->updateLoadBalancerAttribute(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
GwlbClient::UpdateLoadBalancerZonesOutcome GwlbClient::updateLoadBalancerZones(const UpdateLoadBalancerZonesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateLoadBalancerZonesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateLoadBalancerZonesOutcome(UpdateLoadBalancerZonesResult(outcome.result()));
else
return UpdateLoadBalancerZonesOutcome(outcome.error());
}
void GwlbClient::updateLoadBalancerZonesAsync(const UpdateLoadBalancerZonesRequest& request, const UpdateLoadBalancerZonesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateLoadBalancerZones(request), context);
};
asyncExecute(new Runnable(fn));
}
GwlbClient::UpdateLoadBalancerZonesOutcomeCallable GwlbClient::updateLoadBalancerZonesCallable(const UpdateLoadBalancerZonesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateLoadBalancerZonesOutcome()>>(
[this, request]()
{
return this->updateLoadBalancerZones(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
GwlbClient::UpdateServerGroupAttributeOutcome GwlbClient::updateServerGroupAttribute(const UpdateServerGroupAttributeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateServerGroupAttributeOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateServerGroupAttributeOutcome(UpdateServerGroupAttributeResult(outcome.result()));
else
return UpdateServerGroupAttributeOutcome(outcome.error());
}
void GwlbClient::updateServerGroupAttributeAsync(const UpdateServerGroupAttributeRequest& request, const UpdateServerGroupAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateServerGroupAttribute(request), context);
};
asyncExecute(new Runnable(fn));
}
GwlbClient::UpdateServerGroupAttributeOutcomeCallable GwlbClient::updateServerGroupAttributeCallable(const UpdateServerGroupAttributeRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateServerGroupAttributeOutcome()>>(
[this, request]()
{
return this->updateServerGroupAttribute(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}

View File

@@ -0,0 +1,68 @@
/*
* 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/gwlb/model/AddServersToServerGroupRequest.h>
using AlibabaCloud::Gwlb::Model::AddServersToServerGroupRequest;
AddServersToServerGroupRequest::AddServersToServerGroupRequest()
: RpcServiceRequest("gwlb", "2024-04-15", "AddServersToServerGroup") {
setMethod(HttpRequest::Method::Post);
}
AddServersToServerGroupRequest::~AddServersToServerGroupRequest() {}
std::string AddServersToServerGroupRequest::getClientToken() const {
return clientToken_;
}
void AddServersToServerGroupRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setBodyParameter(std::string("ClientToken"), clientToken);
}
std::string AddServersToServerGroupRequest::getServerGroupId() const {
return serverGroupId_;
}
void AddServersToServerGroupRequest::setServerGroupId(const std::string &serverGroupId) {
serverGroupId_ = serverGroupId;
setBodyParameter(std::string("ServerGroupId"), serverGroupId);
}
std::vector<AddServersToServerGroupRequest::Servers> AddServersToServerGroupRequest::getServers() const {
return servers_;
}
void AddServersToServerGroupRequest::setServers(const std::vector<AddServersToServerGroupRequest::Servers> &servers) {
servers_ = servers;
for(int dep1 = 0; dep1 != servers.size(); dep1++) {
setBodyParameter(std::string("Servers") + "." + std::to_string(dep1 + 1) + ".Port", std::to_string(servers[dep1].port));
setBodyParameter(std::string("Servers") + "." + std::to_string(dep1 + 1) + ".ServerId", servers[dep1].serverId);
setBodyParameter(std::string("Servers") + "." + std::to_string(dep1 + 1) + ".ServerIp", servers[dep1].serverIp);
setBodyParameter(std::string("Servers") + "." + std::to_string(dep1 + 1) + ".ServerType", servers[dep1].serverType);
}
}
bool AddServersToServerGroupRequest::getDryRun() const {
return dryRun_;
}
void AddServersToServerGroupRequest::setDryRun(bool dryRun) {
dryRun_ = dryRun;
setBodyParameter(std::string("DryRun"), dryRun ? "true" : "false");
}

View File

@@ -0,0 +1,44 @@
/*
* 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/gwlb/model/AddServersToServerGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Gwlb;
using namespace AlibabaCloud::Gwlb::Model;
AddServersToServerGroupResult::AddServersToServerGroupResult() :
ServiceResult()
{}
AddServersToServerGroupResult::AddServersToServerGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddServersToServerGroupResult::~AddServersToServerGroupResult()
{}
void AddServersToServerGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,84 @@
/*
* 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/gwlb/model/CreateListenerRequest.h>
using AlibabaCloud::Gwlb::Model::CreateListenerRequest;
CreateListenerRequest::CreateListenerRequest()
: RpcServiceRequest("gwlb", "2024-04-15", "CreateListener") {
setMethod(HttpRequest::Method::Post);
}
CreateListenerRequest::~CreateListenerRequest() {}
std::string CreateListenerRequest::getClientToken() const {
return clientToken_;
}
void CreateListenerRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setBodyParameter(std::string("ClientToken"), clientToken);
}
std::string CreateListenerRequest::getServerGroupId() const {
return serverGroupId_;
}
void CreateListenerRequest::setServerGroupId(const std::string &serverGroupId) {
serverGroupId_ = serverGroupId;
setBodyParameter(std::string("ServerGroupId"), serverGroupId);
}
std::vector<CreateListenerRequest::Tag> CreateListenerRequest::getTag() const {
return tag_;
}
void CreateListenerRequest::setTag(const std::vector<CreateListenerRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
setBodyParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Key", tag[dep1].key);
setBodyParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Value", tag[dep1].value);
}
}
bool CreateListenerRequest::getDryRun() const {
return dryRun_;
}
void CreateListenerRequest::setDryRun(bool dryRun) {
dryRun_ = dryRun;
setBodyParameter(std::string("DryRun"), dryRun ? "true" : "false");
}
std::string CreateListenerRequest::getLoadBalancerId() const {
return loadBalancerId_;
}
void CreateListenerRequest::setLoadBalancerId(const std::string &loadBalancerId) {
loadBalancerId_ = loadBalancerId;
setBodyParameter(std::string("LoadBalancerId"), loadBalancerId);
}
std::string CreateListenerRequest::getListenerDescription() const {
return listenerDescription_;
}
void CreateListenerRequest::setListenerDescription(const std::string &listenerDescription) {
listenerDescription_ = listenerDescription;
setBodyParameter(std::string("ListenerDescription"), listenerDescription);
}

View File

@@ -0,0 +1,51 @@
/*
* 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/gwlb/model/CreateListenerResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Gwlb;
using namespace AlibabaCloud::Gwlb::Model;
CreateListenerResult::CreateListenerResult() :
ServiceResult()
{}
CreateListenerResult::CreateListenerResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateListenerResult::~CreateListenerResult()
{}
void CreateListenerResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ListenerId"].isNull())
listenerId_ = value["ListenerId"].asString();
}
std::string CreateListenerResult::getListenerId()const
{
return listenerId_;
}

View File

@@ -0,0 +1,114 @@
/*
* 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/gwlb/model/CreateLoadBalancerRequest.h>
using AlibabaCloud::Gwlb::Model::CreateLoadBalancerRequest;
CreateLoadBalancerRequest::CreateLoadBalancerRequest()
: RpcServiceRequest("gwlb", "2024-04-15", "CreateLoadBalancer") {
setMethod(HttpRequest::Method::Post);
}
CreateLoadBalancerRequest::~CreateLoadBalancerRequest() {}
bool CreateLoadBalancerRequest::getCrossZoneEnabled() const {
return crossZoneEnabled_;
}
void CreateLoadBalancerRequest::setCrossZoneEnabled(bool crossZoneEnabled) {
crossZoneEnabled_ = crossZoneEnabled;
setBodyParameter(std::string("CrossZoneEnabled"), crossZoneEnabled ? "true" : "false");
}
std::string CreateLoadBalancerRequest::getClientToken() const {
return clientToken_;
}
void CreateLoadBalancerRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setBodyParameter(std::string("ClientToken"), clientToken);
}
std::string CreateLoadBalancerRequest::getAddressIpVersion() const {
return addressIpVersion_;
}
void CreateLoadBalancerRequest::setAddressIpVersion(const std::string &addressIpVersion) {
addressIpVersion_ = addressIpVersion;
setBodyParameter(std::string("AddressIpVersion"), addressIpVersion);
}
std::string CreateLoadBalancerRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void CreateLoadBalancerRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setBodyParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string CreateLoadBalancerRequest::getLoadBalancerName() const {
return loadBalancerName_;
}
void CreateLoadBalancerRequest::setLoadBalancerName(const std::string &loadBalancerName) {
loadBalancerName_ = loadBalancerName;
setBodyParameter(std::string("LoadBalancerName"), loadBalancerName);
}
std::vector<CreateLoadBalancerRequest::Tag> CreateLoadBalancerRequest::getTag() const {
return tag_;
}
void CreateLoadBalancerRequest::setTag(const std::vector<CreateLoadBalancerRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
setBodyParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Key", tag[dep1].key);
setBodyParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Value", tag[dep1].value);
}
}
bool CreateLoadBalancerRequest::getDryRun() const {
return dryRun_;
}
void CreateLoadBalancerRequest::setDryRun(bool dryRun) {
dryRun_ = dryRun;
setBodyParameter(std::string("DryRun"), dryRun ? "true" : "false");
}
std::vector<CreateLoadBalancerRequest::ZoneMappings> CreateLoadBalancerRequest::getZoneMappings() const {
return zoneMappings_;
}
void CreateLoadBalancerRequest::setZoneMappings(const std::vector<CreateLoadBalancerRequest::ZoneMappings> &zoneMappings) {
zoneMappings_ = zoneMappings;
for(int dep1 = 0; dep1 != zoneMappings.size(); dep1++) {
setBodyParameter(std::string("ZoneMappings") + "." + std::to_string(dep1 + 1) + ".VSwitchId", zoneMappings[dep1].vSwitchId);
setBodyParameter(std::string("ZoneMappings") + "." + std::to_string(dep1 + 1) + ".ZoneId", zoneMappings[dep1].zoneId);
}
}
std::string CreateLoadBalancerRequest::getVpcId() const {
return vpcId_;
}
void CreateLoadBalancerRequest::setVpcId(const std::string &vpcId) {
vpcId_ = vpcId;
setBodyParameter(std::string("VpcId"), vpcId);
}

View File

@@ -0,0 +1,51 @@
/*
* 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/gwlb/model/CreateLoadBalancerResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Gwlb;
using namespace AlibabaCloud::Gwlb::Model;
CreateLoadBalancerResult::CreateLoadBalancerResult() :
ServiceResult()
{}
CreateLoadBalancerResult::CreateLoadBalancerResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateLoadBalancerResult::~CreateLoadBalancerResult()
{}
void CreateLoadBalancerResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["LoadBalancerId"].isNull())
loadBalancerId_ = value["LoadBalancerId"].asString();
}
std::string CreateLoadBalancerResult::getLoadBalancerId()const
{
return loadBalancerId_;
}

View File

@@ -0,0 +1,141 @@
/*
* 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/gwlb/model/CreateServerGroupRequest.h>
using AlibabaCloud::Gwlb::Model::CreateServerGroupRequest;
CreateServerGroupRequest::CreateServerGroupRequest()
: RpcServiceRequest("gwlb", "2024-04-15", "CreateServerGroup") {
setMethod(HttpRequest::Method::Post);
}
CreateServerGroupRequest::~CreateServerGroupRequest() {}
std::string CreateServerGroupRequest::getServerGroupName() const {
return serverGroupName_;
}
void CreateServerGroupRequest::setServerGroupName(const std::string &serverGroupName) {
serverGroupName_ = serverGroupName;
setBodyParameter(std::string("ServerGroupName"), serverGroupName);
}
std::string CreateServerGroupRequest::getClientToken() const {
return clientToken_;
}
void CreateServerGroupRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setBodyParameter(std::string("ClientToken"), clientToken);
}
CreateServerGroupRequest::HealthCheckConfig CreateServerGroupRequest::getHealthCheckConfig() const {
return healthCheckConfig_;
}
void CreateServerGroupRequest::setHealthCheckConfig(const CreateServerGroupRequest::HealthCheckConfig &healthCheckConfig) {
healthCheckConfig_ = healthCheckConfig;
setBodyParameter(std::string("HealthCheckConfig") + ".HealthCheckConnectPort", std::to_string(healthCheckConfig.healthCheckConnectPort));
setBodyParameter(std::string("HealthCheckConfig") + ".HealthCheckConnectTimeout", std::to_string(healthCheckConfig.healthCheckConnectTimeout));
setBodyParameter(std::string("HealthCheckConfig") + ".HealthCheckDomain", healthCheckConfig.healthCheckDomain);
setBodyParameter(std::string("HealthCheckConfig") + ".HealthCheckEnabled", healthCheckConfig.healthCheckEnabled ? "true" : "false");
for(int dep1 = 0; dep1 != healthCheckConfig.healthCheckHttpCode.size(); dep1++) {
setBodyParameter(std::string("HealthCheckConfig") + ".HealthCheckHttpCode." + std::to_string(dep1 + 1), healthCheckConfig.healthCheckHttpCode[dep1]);
}
setBodyParameter(std::string("HealthCheckConfig") + ".HealthCheckInterval", std::to_string(healthCheckConfig.healthCheckInterval));
setBodyParameter(std::string("HealthCheckConfig") + ".HealthCheckPath", healthCheckConfig.healthCheckPath);
setBodyParameter(std::string("HealthCheckConfig") + ".HealthCheckProtocol", healthCheckConfig.healthCheckProtocol);
setBodyParameter(std::string("HealthCheckConfig") + ".HealthyThreshold", std::to_string(healthCheckConfig.healthyThreshold));
setBodyParameter(std::string("HealthCheckConfig") + ".UnhealthyThreshold", std::to_string(healthCheckConfig.unhealthyThreshold));
}
std::string CreateServerGroupRequest::getScheduler() const {
return scheduler_;
}
void CreateServerGroupRequest::setScheduler(const std::string &scheduler) {
scheduler_ = scheduler;
setBodyParameter(std::string("Scheduler"), scheduler);
}
std::string CreateServerGroupRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void CreateServerGroupRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setBodyParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string CreateServerGroupRequest::getProtocol() const {
return protocol_;
}
void CreateServerGroupRequest::setProtocol(const std::string &protocol) {
protocol_ = protocol;
setBodyParameter(std::string("Protocol"), protocol);
}
std::vector<CreateServerGroupRequest::Tag> CreateServerGroupRequest::getTag() const {
return tag_;
}
void CreateServerGroupRequest::setTag(const std::vector<CreateServerGroupRequest::Tag> &tag) {
tag_ = tag;
for(int dep1 = 0; dep1 != tag.size(); dep1++) {
setBodyParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Key", tag[dep1].key);
setBodyParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Value", tag[dep1].value);
}
}
bool CreateServerGroupRequest::getDryRun() const {
return dryRun_;
}
void CreateServerGroupRequest::setDryRun(bool dryRun) {
dryRun_ = dryRun;
setBodyParameter(std::string("DryRun"), dryRun ? "true" : "false");
}
CreateServerGroupRequest::ConnectionDrainConfig CreateServerGroupRequest::getConnectionDrainConfig() const {
return connectionDrainConfig_;
}
void CreateServerGroupRequest::setConnectionDrainConfig(const CreateServerGroupRequest::ConnectionDrainConfig &connectionDrainConfig) {
connectionDrainConfig_ = connectionDrainConfig;
setBodyParameter(std::string("ConnectionDrainConfig") + ".ConnectionDrainEnabled", connectionDrainConfig.connectionDrainEnabled ? "true" : "false");
setBodyParameter(std::string("ConnectionDrainConfig") + ".ConnectionDrainTimeout", std::to_string(connectionDrainConfig.connectionDrainTimeout));
}
std::string CreateServerGroupRequest::getServerGroupType() const {
return serverGroupType_;
}
void CreateServerGroupRequest::setServerGroupType(const std::string &serverGroupType) {
serverGroupType_ = serverGroupType;
setBodyParameter(std::string("ServerGroupType"), serverGroupType);
}
std::string CreateServerGroupRequest::getVpcId() const {
return vpcId_;
}
void CreateServerGroupRequest::setVpcId(const std::string &vpcId) {
vpcId_ = vpcId;
setBodyParameter(std::string("VpcId"), vpcId);
}

Some files were not shown because too many files have changed in this diff Show More