Compare commits

..

8 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
sdk-team
9c795d127b Add ResourcePoolOptions.Strategy for CreateAutoProvisioningGroup. 2024-10-15 07:23:57 +00:00
sdk-team
52c309ecd7 GetPlayInfo Add EncryptMode. 2024-10-11 03:08:35 +00:00
sdk-team
d00f8d0fb2 Add ManualRunMailTask, GetMailTaskStatus and GetWorksEmbedList apis. 2024-10-10 09:55:45 +00:00
sdk-team
4393e6e44f Support Android badge. 2024-10-10 02:00:52 +00:00
235 changed files with 13023 additions and 1797 deletions

View File

@@ -1 +1 @@
1.36.1995
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());
}

View File

@@ -481,12 +481,6 @@ set(ecs_public_header_model
include/alibabacloud/ecs/model/DisableActivationResult.h
include/alibabacloud/ecs/model/DisableDiskEncryptionByDefaultRequest.h
include/alibabacloud/ecs/model/DisableDiskEncryptionByDefaultResult.h
include/alibabacloud/ecs/model/EipFillParamsRequest.h
include/alibabacloud/ecs/model/EipFillParamsResult.h
include/alibabacloud/ecs/model/EipFillProductRequest.h
include/alibabacloud/ecs/model/EipFillProductResult.h
include/alibabacloud/ecs/model/EipNotifyPaidRequest.h
include/alibabacloud/ecs/model/EipNotifyPaidResult.h
include/alibabacloud/ecs/model/EnableDiskEncryptionByDefaultRequest.h
include/alibabacloud/ecs/model/EnableDiskEncryptionByDefaultResult.h
include/alibabacloud/ecs/model/EnablePhysicalConnectionRequest.h
@@ -647,6 +641,8 @@ set(ecs_public_header_model
include/alibabacloud/ecs/model/ModifyVirtualBorderRouterAttributeResult.h
include/alibabacloud/ecs/model/ModifyVpcAttributeRequest.h
include/alibabacloud/ecs/model/ModifyVpcAttributeResult.h
include/alibabacloud/ecs/model/PurchaseElasticityAssuranceRequest.h
include/alibabacloud/ecs/model/PurchaseElasticityAssuranceResult.h
include/alibabacloud/ecs/model/PurchaseReservedInstancesOfferingRequest.h
include/alibabacloud/ecs/model/PurchaseReservedInstancesOfferingResult.h
include/alibabacloud/ecs/model/PurchaseStorageCapacityUnitRequest.h
@@ -1200,12 +1196,6 @@ set(ecs_src
src/model/DisableActivationResult.cc
src/model/DisableDiskEncryptionByDefaultRequest.cc
src/model/DisableDiskEncryptionByDefaultResult.cc
src/model/EipFillParamsRequest.cc
src/model/EipFillParamsResult.cc
src/model/EipFillProductRequest.cc
src/model/EipFillProductResult.cc
src/model/EipNotifyPaidRequest.cc
src/model/EipNotifyPaidResult.cc
src/model/EnableDiskEncryptionByDefaultRequest.cc
src/model/EnableDiskEncryptionByDefaultResult.cc
src/model/EnablePhysicalConnectionRequest.cc
@@ -1366,6 +1356,8 @@ set(ecs_src
src/model/ModifyVirtualBorderRouterAttributeResult.cc
src/model/ModifyVpcAttributeRequest.cc
src/model/ModifyVpcAttributeResult.cc
src/model/PurchaseElasticityAssuranceRequest.cc
src/model/PurchaseElasticityAssuranceResult.cc
src/model/PurchaseReservedInstancesOfferingRequest.cc
src/model/PurchaseReservedInstancesOfferingResult.cc
src/model/PurchaseStorageCapacityUnitRequest.cc

View File

@@ -482,12 +482,6 @@
#include "model/DisableActivationResult.h"
#include "model/DisableDiskEncryptionByDefaultRequest.h"
#include "model/DisableDiskEncryptionByDefaultResult.h"
#include "model/EipFillParamsRequest.h"
#include "model/EipFillParamsResult.h"
#include "model/EipFillProductRequest.h"
#include "model/EipFillProductResult.h"
#include "model/EipNotifyPaidRequest.h"
#include "model/EipNotifyPaidResult.h"
#include "model/EnableDiskEncryptionByDefaultRequest.h"
#include "model/EnableDiskEncryptionByDefaultResult.h"
#include "model/EnablePhysicalConnectionRequest.h"
@@ -648,6 +642,8 @@
#include "model/ModifyVirtualBorderRouterAttributeResult.h"
#include "model/ModifyVpcAttributeRequest.h"
#include "model/ModifyVpcAttributeResult.h"
#include "model/PurchaseElasticityAssuranceRequest.h"
#include "model/PurchaseElasticityAssuranceResult.h"
#include "model/PurchaseReservedInstancesOfferingRequest.h"
#include "model/PurchaseReservedInstancesOfferingResult.h"
#include "model/PurchaseStorageCapacityUnitRequest.h"
@@ -1437,15 +1433,6 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DisableDiskEncryptionByDefaultResult> DisableDiskEncryptionByDefaultOutcome;
typedef std::future<DisableDiskEncryptionByDefaultOutcome> DisableDiskEncryptionByDefaultOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::DisableDiskEncryptionByDefaultRequest&, const DisableDiskEncryptionByDefaultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DisableDiskEncryptionByDefaultAsyncHandler;
typedef Outcome<Error, Model::EipFillParamsResult> EipFillParamsOutcome;
typedef std::future<EipFillParamsOutcome> EipFillParamsOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::EipFillParamsRequest&, const EipFillParamsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> EipFillParamsAsyncHandler;
typedef Outcome<Error, Model::EipFillProductResult> EipFillProductOutcome;
typedef std::future<EipFillProductOutcome> EipFillProductOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::EipFillProductRequest&, const EipFillProductOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> EipFillProductAsyncHandler;
typedef Outcome<Error, Model::EipNotifyPaidResult> EipNotifyPaidOutcome;
typedef std::future<EipNotifyPaidOutcome> EipNotifyPaidOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::EipNotifyPaidRequest&, const EipNotifyPaidOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> EipNotifyPaidAsyncHandler;
typedef Outcome<Error, Model::EnableDiskEncryptionByDefaultResult> EnableDiskEncryptionByDefaultOutcome;
typedef std::future<EnableDiskEncryptionByDefaultOutcome> EnableDiskEncryptionByDefaultOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::EnableDiskEncryptionByDefaultRequest&, const EnableDiskEncryptionByDefaultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> EnableDiskEncryptionByDefaultAsyncHandler;
@@ -1686,6 +1673,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ModifyVpcAttributeResult> ModifyVpcAttributeOutcome;
typedef std::future<ModifyVpcAttributeOutcome> ModifyVpcAttributeOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::ModifyVpcAttributeRequest&, const ModifyVpcAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyVpcAttributeAsyncHandler;
typedef Outcome<Error, Model::PurchaseElasticityAssuranceResult> PurchaseElasticityAssuranceOutcome;
typedef std::future<PurchaseElasticityAssuranceOutcome> PurchaseElasticityAssuranceOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::PurchaseElasticityAssuranceRequest&, const PurchaseElasticityAssuranceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PurchaseElasticityAssuranceAsyncHandler;
typedef Outcome<Error, Model::PurchaseReservedInstancesOfferingResult> PurchaseReservedInstancesOfferingOutcome;
typedef std::future<PurchaseReservedInstancesOfferingOutcome> PurchaseReservedInstancesOfferingOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::PurchaseReservedInstancesOfferingRequest&, const PurchaseReservedInstancesOfferingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PurchaseReservedInstancesOfferingAsyncHandler;
@@ -2516,15 +2506,6 @@ namespace AlibabaCloud
DisableDiskEncryptionByDefaultOutcome disableDiskEncryptionByDefault(const Model::DisableDiskEncryptionByDefaultRequest &request)const;
void disableDiskEncryptionByDefaultAsync(const Model::DisableDiskEncryptionByDefaultRequest& request, const DisableDiskEncryptionByDefaultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DisableDiskEncryptionByDefaultOutcomeCallable disableDiskEncryptionByDefaultCallable(const Model::DisableDiskEncryptionByDefaultRequest& request) const;
EipFillParamsOutcome eipFillParams(const Model::EipFillParamsRequest &request)const;
void eipFillParamsAsync(const Model::EipFillParamsRequest& request, const EipFillParamsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
EipFillParamsOutcomeCallable eipFillParamsCallable(const Model::EipFillParamsRequest& request) const;
EipFillProductOutcome eipFillProduct(const Model::EipFillProductRequest &request)const;
void eipFillProductAsync(const Model::EipFillProductRequest& request, const EipFillProductAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
EipFillProductOutcomeCallable eipFillProductCallable(const Model::EipFillProductRequest& request) const;
EipNotifyPaidOutcome eipNotifyPaid(const Model::EipNotifyPaidRequest &request)const;
void eipNotifyPaidAsync(const Model::EipNotifyPaidRequest& request, const EipNotifyPaidAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
EipNotifyPaidOutcomeCallable eipNotifyPaidCallable(const Model::EipNotifyPaidRequest& request) const;
EnableDiskEncryptionByDefaultOutcome enableDiskEncryptionByDefault(const Model::EnableDiskEncryptionByDefaultRequest &request)const;
void enableDiskEncryptionByDefaultAsync(const Model::EnableDiskEncryptionByDefaultRequest& request, const EnableDiskEncryptionByDefaultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
EnableDiskEncryptionByDefaultOutcomeCallable enableDiskEncryptionByDefaultCallable(const Model::EnableDiskEncryptionByDefaultRequest& request) const;
@@ -2765,6 +2746,9 @@ namespace AlibabaCloud
ModifyVpcAttributeOutcome modifyVpcAttribute(const Model::ModifyVpcAttributeRequest &request)const;
void modifyVpcAttributeAsync(const Model::ModifyVpcAttributeRequest& request, const ModifyVpcAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyVpcAttributeOutcomeCallable modifyVpcAttributeCallable(const Model::ModifyVpcAttributeRequest& request) const;
PurchaseElasticityAssuranceOutcome purchaseElasticityAssurance(const Model::PurchaseElasticityAssuranceRequest &request)const;
void purchaseElasticityAssuranceAsync(const Model::PurchaseElasticityAssuranceRequest& request, const PurchaseElasticityAssuranceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
PurchaseElasticityAssuranceOutcomeCallable purchaseElasticityAssuranceCallable(const Model::PurchaseElasticityAssuranceRequest& request) const;
PurchaseReservedInstancesOfferingOutcome purchaseReservedInstancesOffering(const Model::PurchaseReservedInstancesOfferingRequest &request)const;
void purchaseReservedInstancesOfferingAsync(const Model::PurchaseReservedInstancesOfferingRequest& request, const PurchaseReservedInstancesOfferingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
PurchaseReservedInstancesOfferingOutcomeCallable purchaseReservedInstancesOfferingCallable(const Model::PurchaseReservedInstancesOfferingRequest& request) const;

View File

@@ -65,6 +65,11 @@ public:
long provisionedIops;
bool burstingEnabled;
};
struct ResourcePoolOptions {
std::string strategy;
std::string string;
std::vector<std::string> privatePoolIds;
};
struct LaunchTemplateConfig {
std::string vSwitchId;
double maxPrice;
@@ -172,6 +177,8 @@ public:
void setLaunchConfigurationInstanceDescription(const std::string &launchConfigurationInstanceDescription);
std::string getSpotAllocationStrategy() const;
void setSpotAllocationStrategy(const std::string &spotAllocationStrategy);
ResourcePoolOptions getResourcePoolOptions() const;
void setResourcePoolOptions(const ResourcePoolOptions &resourcePoolOptions);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
bool getTerminateInstances() const;
@@ -266,6 +273,7 @@ private:
std::string launchConfigurationInstanceName_;
std::string launchConfigurationInstanceDescription_;
std::string spotAllocationStrategy_;
ResourcePoolOptions resourcePoolOptions_;
std::string regionId_;
bool terminateInstances_;
std::string launchConfigurationSystemDiskName_;

View File

@@ -42,6 +42,8 @@ public:
void setDescription(const std::string &description);
std::string getSystemType() const;
void setSystemType(const std::string &systemType);
std::string getComponentVersion() const;
void setComponentVersion(const std::string &componentVersion);
std::string getContent() const;
void setContent(const std::string &content);
std::string getResourceGroupId() const;
@@ -66,6 +68,7 @@ private:
std::string clientToken_;
std::string description_;
std::string systemType_;
std::string componentVersion_;
std::string content_;
std::string resourceGroupId_;
std::string regionId_;

View File

@@ -62,6 +62,8 @@ public:
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
std::string getOwnerAccount() const;
void setOwnerAccount(const std::string &ownerAccount);
std::string getRepairMode() const;
void setRepairMode(const std::string &repairMode);
long getOwnerId() const;
void setOwnerId(long ownerId);
std::string getBaseImage() const;
@@ -74,8 +76,12 @@ public:
void setDeleteInstanceOnFailure(bool deleteInstanceOnFailure);
std::string getName() const;
void setName(const std::string &name);
std::string getImageFamily() const;
void setImageFamily(const std::string &imageFamily);
std::string getBuildContent() const;
void setBuildContent(const std::string &buildContent);
std::string getTestContent() const;
void setTestContent(const std::string &testContent);
private:
std::string baseImageType_;
@@ -92,13 +98,16 @@ private:
std::vector<Tag> tag_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
std::string repairMode_;
long ownerId_;
std::string baseImage_;
std::string vSwitchId_;
std::vector<long> addAccount_;
bool deleteInstanceOnFailure_;
std::string name_;
std::string imageFamily_;
std::string buildContent_;
std::string testContent_;
};
} // namespace Model
} // namespace Ecs

View File

@@ -65,6 +65,8 @@ public:
void setLaunchTemplateName(const std::string &launchTemplateName);
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
int getHttpPutResponseHopLimit() const;
void setHttpPutResponseHopLimit(int httpPutResponseHopLimit);
std::string getSecurityEnhancementStrategy() const;
void setSecurityEnhancementStrategy(const std::string &securityEnhancementStrategy);
std::string getNetworkType() const;
@@ -143,6 +145,8 @@ public:
void setPasswordInherit(bool passwordInherit);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getHttpEndpoint() const;
void setHttpEndpoint(const std::string &httpEndpoint);
std::string getInstanceType() const;
void setInstanceType(const std::string &instanceType);
std::string getInstanceChargeType() const;
@@ -177,6 +181,8 @@ public:
void setSystemDiskSize(int systemDiskSize);
std::string getVpcId() const;
void setVpcId(const std::string &vpcId);
std::string getHttpTokens() const;
void setHttpTokens(const std::string &httpTokens);
std::string getSystemDiskDescription() const;
void setSystemDiskDescription(const std::string &systemDiskDescription);
std::string getSystemDiskEncrypted() const;
@@ -185,6 +191,7 @@ public:
private:
std::string launchTemplateName_;
long resourceOwnerId_;
int httpPutResponseHopLimit_;
std::string securityEnhancementStrategy_;
std::string networkType_;
std::string keyPairName_;
@@ -224,6 +231,7 @@ private:
std::string userData_;
bool passwordInherit_;
std::string regionId_;
std::string httpEndpoint_;
std::string instanceType_;
std::string instanceChargeType_;
bool enableVmOsConfig_;
@@ -241,6 +249,7 @@ private:
long systemDiskProvisionedIops_;
int systemDiskSize_;
std::string vpcId_;
std::string httpTokens_;
std::string systemDiskDescription_;
std::string systemDiskEncrypted_;
};

View File

@@ -61,6 +61,8 @@ public:
void setLaunchTemplateName(const std::string &launchTemplateName);
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
int getHttpPutResponseHopLimit() const;
void setHttpPutResponseHopLimit(int httpPutResponseHopLimit);
std::string getSecurityEnhancementStrategy() const;
void setSecurityEnhancementStrategy(const std::string &securityEnhancementStrategy);
std::string getNetworkType() const;
@@ -137,6 +139,8 @@ public:
void setPasswordInherit(bool passwordInherit);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getHttpEndpoint() const;
void setHttpEndpoint(const std::string &httpEndpoint);
std::string getInstanceType() const;
void setInstanceType(const std::string &instanceType);
std::string getInstanceChargeType() const;
@@ -171,6 +175,8 @@ public:
void setSystemDiskSize(int systemDiskSize);
std::string getVpcId() const;
void setVpcId(const std::string &vpcId);
std::string getHttpTokens() const;
void setHttpTokens(const std::string &httpTokens);
std::string getSystemDiskDescription() const;
void setSystemDiskDescription(const std::string &systemDiskDescription);
std::string getSystemDiskEncrypted() const;
@@ -179,6 +185,7 @@ public:
private:
std::string launchTemplateName_;
long resourceOwnerId_;
int httpPutResponseHopLimit_;
std::string securityEnhancementStrategy_;
std::string networkType_;
std::string keyPairName_;
@@ -217,6 +224,7 @@ private:
std::string userData_;
bool passwordInherit_;
std::string regionId_;
std::string httpEndpoint_;
std::string instanceType_;
std::string instanceChargeType_;
bool enableVmOsConfig_;
@@ -234,6 +242,7 @@ private:
long systemDiskProvisionedIops_;
int systemDiskSize_;
std::string vpcId_;
std::string httpTokens_;
std::string systemDiskDescription_;
std::string systemDiskEncrypted_;
};

View File

@@ -36,6 +36,10 @@ public:
~DescribeImageComponentsRequest();
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
std::string getSystemType() const;
void setSystemType(const std::string &systemType);
std::string getComponentVersion() const;
void setComponentVersion(const std::string &componentVersion);
std::vector<std::string> getImageComponentId() const;
void setImageComponentId(const std::vector<std::string> &imageComponentId);
std::string getResourceGroupId() const;
@@ -54,6 +58,8 @@ public:
void setOwnerAccount(const std::string &ownerAccount);
long getOwnerId() const;
void setOwnerId(long ownerId);
std::string getComponentType() const;
void setComponentType(const std::string &componentType);
std::string getName() const;
void setName(const std::string &name);
int getMaxResults() const;
@@ -61,6 +67,8 @@ public:
private:
long resourceOwnerId_;
std::string systemType_;
std::string componentVersion_;
std::vector<std::string> imageComponentId_;
std::string resourceGroupId_;
std::string regionId_;
@@ -70,6 +78,7 @@ private:
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
std::string componentType_;
std::string name_;
int maxResults_;
};

View File

@@ -39,8 +39,15 @@ namespace AlibabaCloud
std::string tagKey;
std::string tagValue;
};
struct _Parameter
{
std::string defaultValue;
std::string type;
std::string name;
};
std::string componentType;
std::string owner;
std::vector<ImageComponentSet::_Parameter> parameters;
std::string description;
std::string resourceGroupId;
std::string content;
@@ -49,6 +56,7 @@ namespace AlibabaCloud
std::string imageComponentId;
std::vector<ImageComponentSet::Tag> tags;
std::string name;
std::string componentVersion;
};

View File

@@ -45,7 +45,9 @@ namespace AlibabaCloud
int systemDiskSize;
std::string imagePipelineId;
std::string vSwitchId;
std::string imageFamily;
std::vector<std::string> toRegionIds;
std::string repairMode;
std::string name;
bool deleteInstanceOnFailure;
std::string imageName;
@@ -53,6 +55,7 @@ namespace AlibabaCloud
int internetMaxBandwidthOut;
std::string creationTime;
std::string instanceType;
std::string testContent;
std::vector<ImagePipelineSet::Tag> tags;
std::string baseImage;
std::string buildContent;

View File

@@ -67,6 +67,7 @@ namespace AlibabaCloud
std::string value;
std::string key;
};
int httpPutResponseHopLimit;
std::vector<DataDisk> dataDisks;
std::string resourceGroupId;
std::string systemDiskDescription;
@@ -81,6 +82,7 @@ namespace AlibabaCloud
std::string vSwitchId;
int period;
bool deletionProtection;
std::string httpEndpoint;
std::vector<std::string> securityGroupIds;
std::string internetChargeType;
std::string deploymentSetId;
@@ -116,6 +118,7 @@ namespace AlibabaCloud
std::string systemDiskCategory;
bool systemDiskBurstingEnabled;
bool enableVmOsConfig;
std::string httpTokens;
int internetMaxBandwidthIn;
std::string creditSpecification;
};

View File

@@ -39,18 +39,20 @@ namespace AlibabaCloud
std::string tagKey;
std::string tagValue;
};
int ruleCount;
int ecsCount;
std::string description;
std::string securityGroupName;
std::string vpcId;
std::string resourceGroupId;
bool serviceManaged;
std::string securityGroupId;
std::string securityGroupType;
std::string creationTime;
std::vector<SecurityGroup::Tag> tags;
int availableInstanceAmount;
long serviceID;
std::string vpcId;
int groupToGroupRuleCount;
std::string creationTime;
std::vector<SecurityGroup::Tag> tags;
};

View File

@@ -1,60 +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_ECS_MODEL_EIPFILLPARAMSREQUEST_H_
#define ALIBABACLOUD_ECS_MODEL_EIPFILLPARAMSREQUEST_H_
#include <alibabacloud/ecs/EcsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Ecs {
namespace Model {
class ALIBABACLOUD_ECS_EXPORT EipFillParamsRequest : public RpcServiceRequest {
public:
EipFillParamsRequest();
~EipFillParamsRequest();
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
std::string getData() const;
void setData(const std::string &data);
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
std::string getUserCidr() const;
void setUserCidr(const std::string &userCidr);
std::string getResourceOwnerAccount() const;
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
std::string getOwnerAccount() const;
void setOwnerAccount(const std::string &ownerAccount);
long getOwnerId() const;
void setOwnerId(long ownerId);
private:
long resourceOwnerId_;
std::string data_;
std::string clientToken_;
std::string userCidr_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
};
} // namespace Model
} // namespace Ecs
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ECS_MODEL_EIPFILLPARAMSREQUEST_H_

View File

@@ -1,60 +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_ECS_MODEL_EIPFILLPRODUCTREQUEST_H_
#define ALIBABACLOUD_ECS_MODEL_EIPFILLPRODUCTREQUEST_H_
#include <alibabacloud/ecs/EcsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Ecs {
namespace Model {
class ALIBABACLOUD_ECS_EXPORT EipFillProductRequest : public RpcServiceRequest {
public:
EipFillProductRequest();
~EipFillProductRequest();
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
std::string getData() const;
void setData(const std::string &data);
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
std::string getUserCidr() const;
void setUserCidr(const std::string &userCidr);
std::string getResourceOwnerAccount() const;
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
std::string getOwnerAccount() const;
void setOwnerAccount(const std::string &ownerAccount);
long getOwnerId() const;
void setOwnerId(long ownerId);
private:
long resourceOwnerId_;
std::string data_;
std::string clientToken_;
std::string userCidr_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
};
} // namespace Model
} // namespace Ecs
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ECS_MODEL_EIPFILLPRODUCTREQUEST_H_

View File

@@ -1,60 +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_ECS_MODEL_EIPNOTIFYPAIDREQUEST_H_
#define ALIBABACLOUD_ECS_MODEL_EIPNOTIFYPAIDREQUEST_H_
#include <alibabacloud/ecs/EcsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Ecs {
namespace Model {
class ALIBABACLOUD_ECS_EXPORT EipNotifyPaidRequest : public RpcServiceRequest {
public:
EipNotifyPaidRequest();
~EipNotifyPaidRequest();
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
std::string getData() const;
void setData(const std::string &data);
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
std::string getUserCidr() const;
void setUserCidr(const std::string &userCidr);
std::string getResourceOwnerAccount() const;
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
std::string getOwnerAccount() const;
void setOwnerAccount(const std::string &ownerAccount);
long getOwnerId() const;
void setOwnerId(long ownerId);
private:
long resourceOwnerId_;
std::string data_;
std::string clientToken_;
std::string userCidr_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
};
} // namespace Model
} // namespace Ecs
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ECS_MODEL_EIPNOTIFYPAIDREQUEST_H_

View File

@@ -36,6 +36,9 @@ public:
std::string oSSObject;
int diskImageSize;
};
struct Features {
std::string nvmeSupport;
};
struct Tag {
std::string value;
std::string key;
@@ -52,6 +55,8 @@ public:
void setPlatform(const std::string &platform);
std::string getResourceGroupId() const;
void setResourceGroupId(const std::string &resourceGroupId);
Features getFeatures() const;
void setFeatures(const Features &features);
std::string getBootMode() const;
void setBootMode(const std::string &bootMode);
std::string getRegionId() const;
@@ -68,6 +73,8 @@ public:
void setLicenseType(const std::string &licenseType);
std::string getDetectionStrategy() const;
void setDetectionStrategy(const std::string &detectionStrategy);
bool getDryRun() const;
void setDryRun(bool dryRun);
std::string getResourceOwnerAccount() const;
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
std::string getRoleName() const;
@@ -83,6 +90,7 @@ private:
std::string description_;
std::string platform_;
std::string resourceGroupId_;
Features features_;
std::string bootMode_;
std::string regionId_;
std::string imageName_;
@@ -91,6 +99,7 @@ private:
std::string architecture_;
std::string licenseType_;
std::string detectionStrategy_;
bool dryRun_;
std::string resourceOwnerAccount_;
std::string roleName_;
std::string oSType_;

View File

@@ -32,6 +32,8 @@ public:
~ModifyElasticityAssuranceRequest();
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
std::string getDescription() const;
void setDescription(const std::string &description);
std::string getRegionId() const;
@@ -48,9 +50,12 @@ public:
void setOwnerId(long ownerId);
std::string getPackageType() const;
void setPackageType(const std::string &packageType);
int getInstanceAmount() const;
void setInstanceAmount(int instanceAmount);
private:
long resourceOwnerId_;
std::string clientToken_;
std::string description_;
std::string regionId_;
std::string privatePoolOptionsId_;
@@ -59,6 +64,7 @@ private:
std::string ownerAccount_;
long ownerId_;
std::string packageType_;
int instanceAmount_;
};
} // namespace Model
} // namespace Ecs

View File

@@ -0,0 +1,81 @@
/*
* 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_ECS_MODEL_PURCHASEELASTICITYASSURANCEREQUEST_H_
#define ALIBABACLOUD_ECS_MODEL_PURCHASEELASTICITYASSURANCEREQUEST_H_
#include <alibabacloud/ecs/EcsExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Ecs {
namespace Model {
class ALIBABACLOUD_ECS_EXPORT PurchaseElasticityAssuranceRequest : public RpcServiceRequest {
public:
PurchaseElasticityAssuranceRequest();
~PurchaseElasticityAssuranceRequest();
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
std::string getStartTime() const;
void setStartTime(const std::string &startTime);
std::string getPrivatePoolOptionsMatchCriteria() const;
void setPrivatePoolOptionsMatchCriteria(const std::string &privatePoolOptionsMatchCriteria);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
std::string getInstanceChargeType() const;
void setInstanceChargeType(const std::string &instanceChargeType);
std::string getPrivatePoolOptionsId() const;
void setPrivatePoolOptionsId(const std::string &privatePoolOptionsId);
int getPeriod() const;
void setPeriod(int period);
std::string getResourceOwnerAccount() const;
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
std::string getOwnerAccount() const;
void setOwnerAccount(const std::string &ownerAccount);
long getOwnerId() const;
void setOwnerId(long ownerId);
std::string getResourceType() const;
void setResourceType(const std::string &resourceType);
std::string getPeriodUnit() const;
void setPeriodUnit(const std::string &periodUnit);
std::string getPackageType() const;
void setPackageType(const std::string &packageType);
private:
long resourceOwnerId_;
std::string clientToken_;
std::string startTime_;
std::string privatePoolOptionsMatchCriteria_;
std::string regionId_;
std::string instanceChargeType_;
std::string privatePoolOptionsId_;
int period_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
std::string resourceType_;
std::string periodUnit_;
std::string packageType_;
};
} // namespace Model
} // namespace Ecs
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_ECS_MODEL_PURCHASEELASTICITYASSURANCEREQUEST_H_

View File

@@ -14,8 +14,8 @@
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ECS_MODEL_EIPFILLPARAMSRESULT_H_
#define ALIBABACLOUD_ECS_MODEL_EIPFILLPARAMSRESULT_H_
#ifndef ALIBABACLOUD_ECS_MODEL_PURCHASEELASTICITYASSURANCERESULT_H_
#define ALIBABACLOUD_ECS_MODEL_PURCHASEELASTICITYASSURANCERESULT_H_
#include <string>
#include <vector>
@@ -29,31 +29,21 @@ namespace AlibabaCloud
{
namespace Model
{
class ALIBABACLOUD_ECS_EXPORT EipFillParamsResult : public ServiceResult
class ALIBABACLOUD_ECS_EXPORT PurchaseElasticityAssuranceResult : public ServiceResult
{
public:
EipFillParamsResult();
explicit EipFillParamsResult(const std::string &payload);
~EipFillParamsResult();
std::string getMessage()const;
std::string getRequestId()const;
std::string getData()const;
std::string getCode()const;
bool getSuccess()const;
PurchaseElasticityAssuranceResult();
explicit PurchaseElasticityAssuranceResult(const std::string &payload);
~PurchaseElasticityAssuranceResult();
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string requestId_;
std::string data_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_EIPFILLPARAMSRESULT_H_
#endif // !ALIBABACLOUD_ECS_MODEL_PURCHASEELASTICITYASSURANCERESULT_H_

View File

@@ -233,6 +233,8 @@ public:
void setInstanceName(const std::string &instanceName);
std::string getZoneId() const;
void setZoneId(const std::string &zoneId);
std::vector<std::string> getCpuOptionsAccelerators() const;
void setCpuOptionsAccelerators(const std::vector<std::string> &cpuOptionsAccelerators);
std::vector<std::string> getIpv6Address() const;
void setIpv6Address(const std::vector<std::string> &ipv6Address);
std::string getSecurityOptionsConfidentialComputingMode() const;
@@ -356,6 +358,7 @@ private:
std::string vSwitchId_;
std::string instanceName_;
std::string zoneId_;
std::vector<std::string> cpuOptionsAccelerators_;
std::vector<std::string> ipv6Address_;
std::string securityOptionsConfidentialComputingMode_;
std::string clientToken_;

View File

@@ -8331,114 +8331,6 @@ EcsClient::DisableDiskEncryptionByDefaultOutcomeCallable EcsClient::disableDiskE
return task->get_future();
}
EcsClient::EipFillParamsOutcome EcsClient::eipFillParams(const EipFillParamsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return EipFillParamsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return EipFillParamsOutcome(EipFillParamsResult(outcome.result()));
else
return EipFillParamsOutcome(outcome.error());
}
void EcsClient::eipFillParamsAsync(const EipFillParamsRequest& request, const EipFillParamsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, eipFillParams(request), context);
};
asyncExecute(new Runnable(fn));
}
EcsClient::EipFillParamsOutcomeCallable EcsClient::eipFillParamsCallable(const EipFillParamsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<EipFillParamsOutcome()>>(
[this, request]()
{
return this->eipFillParams(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EcsClient::EipFillProductOutcome EcsClient::eipFillProduct(const EipFillProductRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return EipFillProductOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return EipFillProductOutcome(EipFillProductResult(outcome.result()));
else
return EipFillProductOutcome(outcome.error());
}
void EcsClient::eipFillProductAsync(const EipFillProductRequest& request, const EipFillProductAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, eipFillProduct(request), context);
};
asyncExecute(new Runnable(fn));
}
EcsClient::EipFillProductOutcomeCallable EcsClient::eipFillProductCallable(const EipFillProductRequest &request) const
{
auto task = std::make_shared<std::packaged_task<EipFillProductOutcome()>>(
[this, request]()
{
return this->eipFillProduct(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EcsClient::EipNotifyPaidOutcome EcsClient::eipNotifyPaid(const EipNotifyPaidRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return EipNotifyPaidOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return EipNotifyPaidOutcome(EipNotifyPaidResult(outcome.result()));
else
return EipNotifyPaidOutcome(outcome.error());
}
void EcsClient::eipNotifyPaidAsync(const EipNotifyPaidRequest& request, const EipNotifyPaidAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, eipNotifyPaid(request), context);
};
asyncExecute(new Runnable(fn));
}
EcsClient::EipNotifyPaidOutcomeCallable EcsClient::eipNotifyPaidCallable(const EipNotifyPaidRequest &request) const
{
auto task = std::make_shared<std::packaged_task<EipNotifyPaidOutcome()>>(
[this, request]()
{
return this->eipNotifyPaid(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EcsClient::EnableDiskEncryptionByDefaultOutcome EcsClient::enableDiskEncryptionByDefault(const EnableDiskEncryptionByDefaultRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -11319,6 +11211,42 @@ EcsClient::ModifyVpcAttributeOutcomeCallable EcsClient::modifyVpcAttributeCallab
return task->get_future();
}
EcsClient::PurchaseElasticityAssuranceOutcome EcsClient::purchaseElasticityAssurance(const PurchaseElasticityAssuranceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return PurchaseElasticityAssuranceOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return PurchaseElasticityAssuranceOutcome(PurchaseElasticityAssuranceResult(outcome.result()));
else
return PurchaseElasticityAssuranceOutcome(outcome.error());
}
void EcsClient::purchaseElasticityAssuranceAsync(const PurchaseElasticityAssuranceRequest& request, const PurchaseElasticityAssuranceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, purchaseElasticityAssurance(request), context);
};
asyncExecute(new Runnable(fn));
}
EcsClient::PurchaseElasticityAssuranceOutcomeCallable EcsClient::purchaseElasticityAssuranceCallable(const PurchaseElasticityAssuranceRequest &request) const
{
auto task = std::make_shared<std::packaged_task<PurchaseElasticityAssuranceOutcome()>>(
[this, request]()
{
return this->purchaseElasticityAssurance(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EcsClient::PurchaseReservedInstancesOfferingOutcome EcsClient::purchaseReservedInstancesOffering(const PurchaseReservedInstancesOfferingRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -422,6 +422,18 @@ void CreateAutoProvisioningGroupRequest::setSpotAllocationStrategy(const std::st
setParameter(std::string("SpotAllocationStrategy"), spotAllocationStrategy);
}
CreateAutoProvisioningGroupRequest::ResourcePoolOptions CreateAutoProvisioningGroupRequest::getResourcePoolOptions() const {
return resourcePoolOptions_;
}
void CreateAutoProvisioningGroupRequest::setResourcePoolOptions(const CreateAutoProvisioningGroupRequest::ResourcePoolOptions &resourcePoolOptions) {
resourcePoolOptions_ = resourcePoolOptions;
setParameter(std::string("ResourcePoolOptions") + ".Strategy", resourcePoolOptions.strategy);
for(int dep1 = 0; dep1 != resourcePoolOptions.privatePoolIds.size(); dep1++) {
setParameter(std::string("ResourcePoolOptions") + ".PrivatePoolIds." + std::to_string(dep1 + 1), resourcePoolOptions.privatePoolIds[dep1]);
}
}
std::string CreateAutoProvisioningGroupRequest::getRegionId() const {
return regionId_;
}

View File

@@ -61,6 +61,15 @@ void CreateImageComponentRequest::setSystemType(const std::string &systemType) {
setParameter(std::string("SystemType"), systemType);
}
std::string CreateImageComponentRequest::getComponentVersion() const {
return componentVersion_;
}
void CreateImageComponentRequest::setComponentVersion(const std::string &componentVersion) {
componentVersion_ = componentVersion;
setParameter(std::string("ComponentVersion"), componentVersion);
}
std::string CreateImageComponentRequest::getContent() const {
return content_;
}

View File

@@ -155,6 +155,15 @@ void CreateImagePipelineRequest::setOwnerAccount(const std::string &ownerAccount
setParameter(std::string("OwnerAccount"), ownerAccount);
}
std::string CreateImagePipelineRequest::getRepairMode() const {
return repairMode_;
}
void CreateImagePipelineRequest::setRepairMode(const std::string &repairMode) {
repairMode_ = repairMode;
setParameter(std::string("RepairMode"), repairMode);
}
long CreateImagePipelineRequest::getOwnerId() const {
return ownerId_;
}
@@ -208,6 +217,15 @@ void CreateImagePipelineRequest::setName(const std::string &name) {
setParameter(std::string("Name"), name);
}
std::string CreateImagePipelineRequest::getImageFamily() const {
return imageFamily_;
}
void CreateImagePipelineRequest::setImageFamily(const std::string &imageFamily) {
imageFamily_ = imageFamily;
setParameter(std::string("ImageFamily"), imageFamily);
}
std::string CreateImagePipelineRequest::getBuildContent() const {
return buildContent_;
}
@@ -217,3 +235,12 @@ void CreateImagePipelineRequest::setBuildContent(const std::string &buildContent
setParameter(std::string("BuildContent"), buildContent);
}
std::string CreateImagePipelineRequest::getTestContent() const {
return testContent_;
}
void CreateImagePipelineRequest::setTestContent(const std::string &testContent) {
testContent_ = testContent;
setParameter(std::string("TestContent"), testContent);
}

View File

@@ -43,6 +43,15 @@ void CreateLaunchTemplateRequest::setResourceOwnerId(long resourceOwnerId) {
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
int CreateLaunchTemplateRequest::getHttpPutResponseHopLimit() const {
return httpPutResponseHopLimit_;
}
void CreateLaunchTemplateRequest::setHttpPutResponseHopLimit(int httpPutResponseHopLimit) {
httpPutResponseHopLimit_ = httpPutResponseHopLimit;
setParameter(std::string("HttpPutResponseHopLimit"), std::to_string(httpPutResponseHopLimit));
}
std::string CreateLaunchTemplateRequest::getSecurityEnhancementStrategy() const {
return securityEnhancementStrategy_;
}
@@ -404,6 +413,15 @@ void CreateLaunchTemplateRequest::setRegionId(const std::string &regionId) {
setParameter(std::string("RegionId"), regionId);
}
std::string CreateLaunchTemplateRequest::getHttpEndpoint() const {
return httpEndpoint_;
}
void CreateLaunchTemplateRequest::setHttpEndpoint(const std::string &httpEndpoint) {
httpEndpoint_ = httpEndpoint;
setParameter(std::string("HttpEndpoint"), httpEndpoint);
}
std::string CreateLaunchTemplateRequest::getInstanceType() const {
return instanceType_;
}
@@ -581,6 +599,15 @@ void CreateLaunchTemplateRequest::setVpcId(const std::string &vpcId) {
setParameter(std::string("VpcId"), vpcId);
}
std::string CreateLaunchTemplateRequest::getHttpTokens() const {
return httpTokens_;
}
void CreateLaunchTemplateRequest::setHttpTokens(const std::string &httpTokens) {
httpTokens_ = httpTokens;
setParameter(std::string("HttpTokens"), httpTokens);
}
std::string CreateLaunchTemplateRequest::getSystemDiskDescription() const {
return systemDiskDescription_;
}

View File

@@ -43,6 +43,15 @@ void CreateLaunchTemplateVersionRequest::setResourceOwnerId(long resourceOwnerId
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
int CreateLaunchTemplateVersionRequest::getHttpPutResponseHopLimit() const {
return httpPutResponseHopLimit_;
}
void CreateLaunchTemplateVersionRequest::setHttpPutResponseHopLimit(int httpPutResponseHopLimit) {
httpPutResponseHopLimit_ = httpPutResponseHopLimit;
setParameter(std::string("HttpPutResponseHopLimit"), std::to_string(httpPutResponseHopLimit));
}
std::string CreateLaunchTemplateVersionRequest::getSecurityEnhancementStrategy() const {
return securityEnhancementStrategy_;
}
@@ -390,6 +399,15 @@ void CreateLaunchTemplateVersionRequest::setRegionId(const std::string &regionId
setParameter(std::string("RegionId"), regionId);
}
std::string CreateLaunchTemplateVersionRequest::getHttpEndpoint() const {
return httpEndpoint_;
}
void CreateLaunchTemplateVersionRequest::setHttpEndpoint(const std::string &httpEndpoint) {
httpEndpoint_ = httpEndpoint;
setParameter(std::string("HttpEndpoint"), httpEndpoint);
}
std::string CreateLaunchTemplateVersionRequest::getInstanceType() const {
return instanceType_;
}
@@ -567,6 +585,15 @@ void CreateLaunchTemplateVersionRequest::setVpcId(const std::string &vpcId) {
setParameter(std::string("VpcId"), vpcId);
}
std::string CreateLaunchTemplateVersionRequest::getHttpTokens() const {
return httpTokens_;
}
void CreateLaunchTemplateVersionRequest::setHttpTokens(const std::string &httpTokens) {
httpTokens_ = httpTokens;
setParameter(std::string("HttpTokens"), httpTokens);
}
std::string CreateLaunchTemplateVersionRequest::getSystemDiskDescription() const {
return systemDiskDescription_;
}

View File

@@ -34,6 +34,24 @@ void DescribeImageComponentsRequest::setResourceOwnerId(long resourceOwnerId) {
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string DescribeImageComponentsRequest::getSystemType() const {
return systemType_;
}
void DescribeImageComponentsRequest::setSystemType(const std::string &systemType) {
systemType_ = systemType;
setParameter(std::string("SystemType"), systemType);
}
std::string DescribeImageComponentsRequest::getComponentVersion() const {
return componentVersion_;
}
void DescribeImageComponentsRequest::setComponentVersion(const std::string &componentVersion) {
componentVersion_ = componentVersion;
setParameter(std::string("ComponentVersion"), componentVersion);
}
std::vector<std::string> DescribeImageComponentsRequest::getImageComponentId() const {
return imageComponentId_;
}
@@ -119,6 +137,15 @@ void DescribeImageComponentsRequest::setOwnerId(long ownerId) {
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
std::string DescribeImageComponentsRequest::getComponentType() const {
return componentType_;
}
void DescribeImageComponentsRequest::setComponentType(const std::string &componentType) {
componentType_ = componentType;
setParameter(std::string("ComponentType"), componentType);
}
std::string DescribeImageComponentsRequest::getName() const {
return name_;
}

View File

@@ -61,6 +61,8 @@ void DescribeImageComponentsResult::parse(const std::string &payload)
imageComponentObject.content = valueImageComponentImageComponentSet["Content"].asString();
if(!valueImageComponentImageComponentSet["Owner"].isNull())
imageComponentObject.owner = valueImageComponentImageComponentSet["Owner"].asString();
if(!valueImageComponentImageComponentSet["ComponentVersion"].isNull())
imageComponentObject.componentVersion = valueImageComponentImageComponentSet["ComponentVersion"].asString();
auto allTagsNode = valueImageComponentImageComponentSet["Tags"]["Tag"];
for (auto valueImageComponentImageComponentSetTagsTag : allTagsNode)
{
@@ -71,6 +73,18 @@ void DescribeImageComponentsResult::parse(const std::string &payload)
tagsObject.tagKey = valueImageComponentImageComponentSetTagsTag["TagKey"].asString();
imageComponentObject.tags.push_back(tagsObject);
}
auto allParametersNode = valueImageComponentImageComponentSet["Parameters"]["Parameter"];
for (auto valueImageComponentImageComponentSetParametersParameter : allParametersNode)
{
ImageComponentSet::_Parameter parametersObject;
if(!valueImageComponentImageComponentSetParametersParameter["Name"].isNull())
parametersObject.name = valueImageComponentImageComponentSetParametersParameter["Name"].asString();
if(!valueImageComponentImageComponentSetParametersParameter["Type"].isNull())
parametersObject.type = valueImageComponentImageComponentSetParametersParameter["Type"].asString();
if(!valueImageComponentImageComponentSetParametersParameter["DefaultValue"].isNull())
parametersObject.defaultValue = valueImageComponentImageComponentSetParametersParameter["DefaultValue"].asString();
imageComponentObject.parameters.push_back(parametersObject);
}
imageComponent_.push_back(imageComponentObject);
}
if(!value["NextToken"].isNull())

View File

@@ -71,6 +71,12 @@ void DescribeImagePipelinesResult::parse(const std::string &payload)
imagePipelineObject.name = valueImagePipelineImagePipelineSet["Name"].asString();
if(!valueImagePipelineImagePipelineSet["BuildContent"].isNull())
imagePipelineObject.buildContent = valueImagePipelineImagePipelineSet["BuildContent"].asString();
if(!valueImagePipelineImagePipelineSet["RepairMode"].isNull())
imagePipelineObject.repairMode = valueImagePipelineImagePipelineSet["RepairMode"].asString();
if(!valueImagePipelineImagePipelineSet["TestContent"].isNull())
imagePipelineObject.testContent = valueImagePipelineImagePipelineSet["TestContent"].asString();
if(!valueImagePipelineImagePipelineSet["ImageFamily"].isNull())
imagePipelineObject.imageFamily = valueImagePipelineImagePipelineSet["ImageFamily"].asString();
auto allTagsNode = valueImagePipelineImagePipelineSet["Tags"]["Tag"];
for (auto valueImagePipelineImagePipelineSetTagsTag : allTagsNode)
{

View File

@@ -154,6 +154,12 @@ void DescribeLaunchTemplateVersionsResult::parse(const std::string &payload)
launchTemplateVersionSetsObject.launchTemplateData.autoRenewPeriod = std::stoi(launchTemplateDataNode["AutoRenewPeriod"].asString());
if(!launchTemplateDataNode["PeriodUnit"].isNull())
launchTemplateVersionSetsObject.launchTemplateData.periodUnit = launchTemplateDataNode["PeriodUnit"].asString();
if(!launchTemplateDataNode["HttpEndpoint"].isNull())
launchTemplateVersionSetsObject.launchTemplateData.httpEndpoint = launchTemplateDataNode["HttpEndpoint"].asString();
if(!launchTemplateDataNode["HttpTokens"].isNull())
launchTemplateVersionSetsObject.launchTemplateData.httpTokens = launchTemplateDataNode["HttpTokens"].asString();
if(!launchTemplateDataNode["HttpPutResponseHopLimit"].isNull())
launchTemplateVersionSetsObject.launchTemplateData.httpPutResponseHopLimit = std::stoi(launchTemplateDataNode["HttpPutResponseHopLimit"].asString());
auto allDataDisksNode = launchTemplateDataNode["DataDisks"]["DataDisk"];
for (auto launchTemplateDataNodeDataDisksDataDisk : allDataDisksNode)
{

View File

@@ -65,6 +65,10 @@ void DescribeSecurityGroupsResult::parse(const std::string &payload)
securityGroupsObject.serviceManaged = valueSecurityGroupsSecurityGroup["ServiceManaged"].asString() == "true";
if(!valueSecurityGroupsSecurityGroup["ServiceID"].isNull())
securityGroupsObject.serviceID = std::stol(valueSecurityGroupsSecurityGroup["ServiceID"].asString());
if(!valueSecurityGroupsSecurityGroup["RuleCount"].isNull())
securityGroupsObject.ruleCount = std::stoi(valueSecurityGroupsSecurityGroup["RuleCount"].asString());
if(!valueSecurityGroupsSecurityGroup["GroupToGroupRuleCount"].isNull())
securityGroupsObject.groupToGroupRuleCount = std::stoi(valueSecurityGroupsSecurityGroup["GroupToGroupRuleCount"].asString());
auto allTagsNode = valueSecurityGroupsSecurityGroup["Tags"]["Tag"];
for (auto valueSecurityGroupsSecurityGroupTagsTag : allTagsNode)
{

View File

@@ -1,90 +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/ecs/model/EipFillParamsRequest.h>
using AlibabaCloud::Ecs::Model::EipFillParamsRequest;
EipFillParamsRequest::EipFillParamsRequest()
: RpcServiceRequest("ecs", "2014-05-26", "EipFillParams") {
setMethod(HttpRequest::Method::Post);
}
EipFillParamsRequest::~EipFillParamsRequest() {}
long EipFillParamsRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
void EipFillParamsRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string EipFillParamsRequest::getData() const {
return data_;
}
void EipFillParamsRequest::setData(const std::string &data) {
data_ = data;
setParameter(std::string("data"), data);
}
std::string EipFillParamsRequest::getClientToken() const {
return clientToken_;
}
void EipFillParamsRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
std::string EipFillParamsRequest::getUserCidr() const {
return userCidr_;
}
void EipFillParamsRequest::setUserCidr(const std::string &userCidr) {
userCidr_ = userCidr;
setParameter(std::string("UserCidr"), userCidr);
}
std::string EipFillParamsRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
void EipFillParamsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
std::string EipFillParamsRequest::getOwnerAccount() const {
return ownerAccount_;
}
void EipFillParamsRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
long EipFillParamsRequest::getOwnerId() const {
return ownerId_;
}
void EipFillParamsRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}

View File

@@ -1,79 +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/ecs/model/EipFillParamsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
EipFillParamsResult::EipFillParamsResult() :
ServiceResult()
{}
EipFillParamsResult::EipFillParamsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
EipFillParamsResult::~EipFillParamsResult()
{}
void EipFillParamsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["code"].isNull())
code_ = value["code"].asString();
if(!value["success"].isNull())
success_ = value["success"].asString() == "true";
if(!value["message"].isNull())
message_ = value["message"].asString();
if(!value["data"].isNull())
data_ = value["data"].asString();
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
}
std::string EipFillParamsResult::getMessage()const
{
return message_;
}
std::string EipFillParamsResult::getRequestId()const
{
return requestId_;
}
std::string EipFillParamsResult::getData()const
{
return data_;
}
std::string EipFillParamsResult::getCode()const
{
return code_;
}
bool EipFillParamsResult::getSuccess()const
{
return success_;
}

View File

@@ -1,90 +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/ecs/model/EipFillProductRequest.h>
using AlibabaCloud::Ecs::Model::EipFillProductRequest;
EipFillProductRequest::EipFillProductRequest()
: RpcServiceRequest("ecs", "2014-05-26", "EipFillProduct") {
setMethod(HttpRequest::Method::Post);
}
EipFillProductRequest::~EipFillProductRequest() {}
long EipFillProductRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
void EipFillProductRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string EipFillProductRequest::getData() const {
return data_;
}
void EipFillProductRequest::setData(const std::string &data) {
data_ = data;
setParameter(std::string("data"), data);
}
std::string EipFillProductRequest::getClientToken() const {
return clientToken_;
}
void EipFillProductRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
std::string EipFillProductRequest::getUserCidr() const {
return userCidr_;
}
void EipFillProductRequest::setUserCidr(const std::string &userCidr) {
userCidr_ = userCidr;
setParameter(std::string("UserCidr"), userCidr);
}
std::string EipFillProductRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
void EipFillProductRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
std::string EipFillProductRequest::getOwnerAccount() const {
return ownerAccount_;
}
void EipFillProductRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
long EipFillProductRequest::getOwnerId() const {
return ownerId_;
}
void EipFillProductRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}

View File

@@ -1,79 +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/ecs/model/EipFillProductResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
EipFillProductResult::EipFillProductResult() :
ServiceResult()
{}
EipFillProductResult::EipFillProductResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
EipFillProductResult::~EipFillProductResult()
{}
void EipFillProductResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["code"].isNull())
code_ = value["code"].asString();
if(!value["success"].isNull())
success_ = value["success"].asString() == "true";
if(!value["message"].isNull())
message_ = value["message"].asString();
if(!value["data"].isNull())
data_ = value["data"].asString();
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
}
std::string EipFillProductResult::getMessage()const
{
return message_;
}
std::string EipFillProductResult::getRequestId()const
{
return requestId_;
}
std::string EipFillProductResult::getData()const
{
return data_;
}
std::string EipFillProductResult::getCode()const
{
return code_;
}
bool EipFillProductResult::getSuccess()const
{
return success_;
}

View File

@@ -1,90 +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/ecs/model/EipNotifyPaidRequest.h>
using AlibabaCloud::Ecs::Model::EipNotifyPaidRequest;
EipNotifyPaidRequest::EipNotifyPaidRequest()
: RpcServiceRequest("ecs", "2014-05-26", "EipNotifyPaid") {
setMethod(HttpRequest::Method::Post);
}
EipNotifyPaidRequest::~EipNotifyPaidRequest() {}
long EipNotifyPaidRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
void EipNotifyPaidRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string EipNotifyPaidRequest::getData() const {
return data_;
}
void EipNotifyPaidRequest::setData(const std::string &data) {
data_ = data;
setParameter(std::string("data"), data);
}
std::string EipNotifyPaidRequest::getClientToken() const {
return clientToken_;
}
void EipNotifyPaidRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
std::string EipNotifyPaidRequest::getUserCidr() const {
return userCidr_;
}
void EipNotifyPaidRequest::setUserCidr(const std::string &userCidr) {
userCidr_ = userCidr;
setParameter(std::string("UserCidr"), userCidr);
}
std::string EipNotifyPaidRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
void EipNotifyPaidRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
std::string EipNotifyPaidRequest::getOwnerAccount() const {
return ownerAccount_;
}
void EipNotifyPaidRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
long EipNotifyPaidRequest::getOwnerId() const {
return ownerId_;
}
void EipNotifyPaidRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}

View File

@@ -1,79 +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/ecs/model/EipNotifyPaidResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
EipNotifyPaidResult::EipNotifyPaidResult() :
ServiceResult()
{}
EipNotifyPaidResult::EipNotifyPaidResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
EipNotifyPaidResult::~EipNotifyPaidResult()
{}
void EipNotifyPaidResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["code"].isNull())
code_ = value["code"].asString();
if(!value["success"].isNull())
success_ = value["success"].asString() == "true";
if(!value["message"].isNull())
message_ = value["message"].asString();
if(!value["data"].isNull())
data_ = value["data"].asString();
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
}
std::string EipNotifyPaidResult::getMessage()const
{
return message_;
}
std::string EipNotifyPaidResult::getRequestId()const
{
return requestId_;
}
std::string EipNotifyPaidResult::getData()const
{
return data_;
}
std::string EipNotifyPaidResult::getCode()const
{
return code_;
}
bool EipNotifyPaidResult::getSuccess()const
{
return success_;
}

View File

@@ -79,6 +79,15 @@ void ImportImageRequest::setResourceGroupId(const std::string &resourceGroupId)
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
ImportImageRequest::Features ImportImageRequest::getFeatures() const {
return features_;
}
void ImportImageRequest::setFeatures(const ImportImageRequest::Features &features) {
features_ = features;
setParameter(std::string("Features") + ".NvmeSupport", features.nvmeSupport);
}
std::string ImportImageRequest::getBootMode() const {
return bootMode_;
}
@@ -156,6 +165,15 @@ void ImportImageRequest::setDetectionStrategy(const std::string &detectionStrate
setParameter(std::string("DetectionStrategy"), detectionStrategy);
}
bool ImportImageRequest::getDryRun() const {
return dryRun_;
}
void ImportImageRequest::setDryRun(bool dryRun) {
dryRun_ = dryRun;
setParameter(std::string("DryRun"), dryRun ? "true" : "false");
}
std::string ImportImageRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}

View File

@@ -34,6 +34,15 @@ void ModifyElasticityAssuranceRequest::setResourceOwnerId(long resourceOwnerId)
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string ModifyElasticityAssuranceRequest::getClientToken() const {
return clientToken_;
}
void ModifyElasticityAssuranceRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
std::string ModifyElasticityAssuranceRequest::getDescription() const {
return description_;
}
@@ -106,3 +115,12 @@ void ModifyElasticityAssuranceRequest::setPackageType(const std::string &package
setParameter(std::string("PackageType"), packageType);
}
int ModifyElasticityAssuranceRequest::getInstanceAmount() const {
return instanceAmount_;
}
void ModifyElasticityAssuranceRequest::setInstanceAmount(int instanceAmount) {
instanceAmount_ = instanceAmount;
setParameter(std::string("InstanceAmount"), std::to_string(instanceAmount));
}

View File

@@ -0,0 +1,153 @@
/*
* 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/ecs/model/PurchaseElasticityAssuranceRequest.h>
using AlibabaCloud::Ecs::Model::PurchaseElasticityAssuranceRequest;
PurchaseElasticityAssuranceRequest::PurchaseElasticityAssuranceRequest()
: RpcServiceRequest("ecs", "2014-05-26", "PurchaseElasticityAssurance") {
setMethod(HttpRequest::Method::Post);
}
PurchaseElasticityAssuranceRequest::~PurchaseElasticityAssuranceRequest() {}
long PurchaseElasticityAssuranceRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
void PurchaseElasticityAssuranceRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string PurchaseElasticityAssuranceRequest::getClientToken() const {
return clientToken_;
}
void PurchaseElasticityAssuranceRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setParameter(std::string("ClientToken"), clientToken);
}
std::string PurchaseElasticityAssuranceRequest::getStartTime() const {
return startTime_;
}
void PurchaseElasticityAssuranceRequest::setStartTime(const std::string &startTime) {
startTime_ = startTime;
setParameter(std::string("StartTime"), startTime);
}
std::string PurchaseElasticityAssuranceRequest::getPrivatePoolOptionsMatchCriteria() const {
return privatePoolOptionsMatchCriteria_;
}
void PurchaseElasticityAssuranceRequest::setPrivatePoolOptionsMatchCriteria(const std::string &privatePoolOptionsMatchCriteria) {
privatePoolOptionsMatchCriteria_ = privatePoolOptionsMatchCriteria;
setParameter(std::string("PrivatePoolOptions.MatchCriteria"), privatePoolOptionsMatchCriteria);
}
std::string PurchaseElasticityAssuranceRequest::getRegionId() const {
return regionId_;
}
void PurchaseElasticityAssuranceRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string PurchaseElasticityAssuranceRequest::getInstanceChargeType() const {
return instanceChargeType_;
}
void PurchaseElasticityAssuranceRequest::setInstanceChargeType(const std::string &instanceChargeType) {
instanceChargeType_ = instanceChargeType;
setParameter(std::string("InstanceChargeType"), instanceChargeType);
}
std::string PurchaseElasticityAssuranceRequest::getPrivatePoolOptionsId() const {
return privatePoolOptionsId_;
}
void PurchaseElasticityAssuranceRequest::setPrivatePoolOptionsId(const std::string &privatePoolOptionsId) {
privatePoolOptionsId_ = privatePoolOptionsId;
setParameter(std::string("PrivatePoolOptions.Id"), privatePoolOptionsId);
}
int PurchaseElasticityAssuranceRequest::getPeriod() const {
return period_;
}
void PurchaseElasticityAssuranceRequest::setPeriod(int period) {
period_ = period;
setParameter(std::string("Period"), std::to_string(period));
}
std::string PurchaseElasticityAssuranceRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
void PurchaseElasticityAssuranceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
std::string PurchaseElasticityAssuranceRequest::getOwnerAccount() const {
return ownerAccount_;
}
void PurchaseElasticityAssuranceRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
long PurchaseElasticityAssuranceRequest::getOwnerId() const {
return ownerId_;
}
void PurchaseElasticityAssuranceRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
std::string PurchaseElasticityAssuranceRequest::getResourceType() const {
return resourceType_;
}
void PurchaseElasticityAssuranceRequest::setResourceType(const std::string &resourceType) {
resourceType_ = resourceType;
setParameter(std::string("ResourceType"), resourceType);
}
std::string PurchaseElasticityAssuranceRequest::getPeriodUnit() const {
return periodUnit_;
}
void PurchaseElasticityAssuranceRequest::setPeriodUnit(const std::string &periodUnit) {
periodUnit_ = periodUnit;
setParameter(std::string("PeriodUnit"), periodUnit);
}
std::string PurchaseElasticityAssuranceRequest::getPackageType() const {
return packageType_;
}
void PurchaseElasticityAssuranceRequest::setPackageType(const std::string &packageType) {
packageType_ = packageType;
setParameter(std::string("PackageType"), packageType);
}

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/ecs/model/PurchaseElasticityAssuranceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
PurchaseElasticityAssuranceResult::PurchaseElasticityAssuranceResult() :
ServiceResult()
{}
PurchaseElasticityAssuranceResult::PurchaseElasticityAssuranceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
PurchaseElasticityAssuranceResult::~PurchaseElasticityAssuranceResult()
{}
void PurchaseElasticityAssuranceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -635,6 +635,14 @@ void RunInstancesRequest::setZoneId(const std::string &zoneId) {
setParameter(std::string("ZoneId"), zoneId);
}
std::vector<std::string> RunInstancesRequest::getCpuOptionsAccelerators() const {
return cpuOptionsAccelerators_;
}
void RunInstancesRequest::setCpuOptionsAccelerators(const std::vector<std::string> &cpuOptionsAccelerators) {
cpuOptionsAccelerators_ = cpuOptionsAccelerators;
}
std::vector<std::string> RunInstancesRequest::getIpv6Address() const {
return ipv6Address_;
}

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_

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