Compare commits

..

6 Commits

Author SHA1 Message Date
sdk-team
059ea89535 Supported dash for compress. 2019-11-28 15:17:44 +08:00
sdk-team
55ccde8b7c Eni Supports Multi-SecurityGroup. 2019-11-28 10:22:33 +08:00
sdk-team
a25fc9202a CreateReplicationJob API supports the specified instance type. 2019-11-27 18:05:30 +08:00
sdk-team
d499a02ffc Modify QueryBill, add SubOrderId in item of response. 2019-11-26 15:45:37 +08:00
sdk-team
d1a9328f7e Supported API BindInstanceDomains. 2019-11-26 15:23:11 +08:00
sdk-team
54d2d73410 Generated 2019-10-30 for aliyuncvc. 2019-11-25 10:59:11 +08:00
151 changed files with 9673 additions and 99 deletions

View File

@@ -1,3 +1,27 @@
2019-11-28 Version 1.36.202
- Supported dash for compress.
2019-11-28 Version 1.36.201
- Eni Supports Multi-SecurityGroup.
2019-11-27 Version 1.36.200
- CreateReplicationJob API supports the specified instance type.
2019-11-26 Version 1.36.199
- Modify QueryBill, add SubOrderId in item of response.
2019-11-26 Version 1.36.198
- Supported API BindInstanceDomains.
- Supported API UnbindInstanceDomains.
- Supported API AddCustomLine.
- Supported API UpdateCustomLine.
- Supported API DeleteCustomLines.
- Supported API DescribeCustomLine.
- Supported API DescribeCustomLines.
2019-11-25 Version 1.36.197
- Generated 2019-10-30 for `aliyuncvc`.
2019-11-25 Version 1.36.196
- One or more people can be subscribed when creating tasks.

View File

@@ -1 +1 @@
1.36.196
1.36.202

View File

@@ -21,8 +21,12 @@ set(alidns_public_header
include/alibabacloud/alidns/AlidnsExport.h )
set(alidns_public_header_model
include/alibabacloud/alidns/model/AddCustomLineRequest.h
include/alibabacloud/alidns/model/AddCustomLineResult.h
include/alibabacloud/alidns/model/AddDomainRequest.h
include/alibabacloud/alidns/model/AddDomainResult.h
include/alibabacloud/alidns/model/AddDomainBackupRequest.h
include/alibabacloud/alidns/model/AddDomainBackupResult.h
include/alibabacloud/alidns/model/AddDomainGroupRequest.h
include/alibabacloud/alidns/model/AddDomainGroupResult.h
include/alibabacloud/alidns/model/AddDomainRecordRequest.h
@@ -35,10 +39,14 @@ set(alidns_public_header_model
include/alibabacloud/alidns/model/AddGtmMonitorResult.h
include/alibabacloud/alidns/model/AddGtmRecoveryPlanRequest.h
include/alibabacloud/alidns/model/AddGtmRecoveryPlanResult.h
include/alibabacloud/alidns/model/BindInstanceDomainsRequest.h
include/alibabacloud/alidns/model/BindInstanceDomainsResult.h
include/alibabacloud/alidns/model/ChangeDomainGroupRequest.h
include/alibabacloud/alidns/model/ChangeDomainGroupResult.h
include/alibabacloud/alidns/model/ChangeDomainOfDnsProductRequest.h
include/alibabacloud/alidns/model/ChangeDomainOfDnsProductResult.h
include/alibabacloud/alidns/model/DeleteCustomLinesRequest.h
include/alibabacloud/alidns/model/DeleteCustomLinesResult.h
include/alibabacloud/alidns/model/DeleteDomainRequest.h
include/alibabacloud/alidns/model/DeleteDomainResult.h
include/alibabacloud/alidns/model/DeleteDomainGroupRequest.h
@@ -57,6 +65,10 @@ set(alidns_public_header_model
include/alibabacloud/alidns/model/DescribeBatchResultCountResult.h
include/alibabacloud/alidns/model/DescribeBatchResultDetailRequest.h
include/alibabacloud/alidns/model/DescribeBatchResultDetailResult.h
include/alibabacloud/alidns/model/DescribeCustomLineRequest.h
include/alibabacloud/alidns/model/DescribeCustomLineResult.h
include/alibabacloud/alidns/model/DescribeCustomLinesRequest.h
include/alibabacloud/alidns/model/DescribeCustomLinesResult.h
include/alibabacloud/alidns/model/DescribeDNSSLBSubDomainsRequest.h
include/alibabacloud/alidns/model/DescribeDNSSLBSubDomainsResult.h
include/alibabacloud/alidns/model/DescribeDnsProductInstanceRequest.h
@@ -123,6 +135,8 @@ set(alidns_public_header_model
include/alibabacloud/alidns/model/DescribeSubDomainRecordsResult.h
include/alibabacloud/alidns/model/DescribeSupportLinesRequest.h
include/alibabacloud/alidns/model/DescribeSupportLinesResult.h
include/alibabacloud/alidns/model/DescribeTransferDomainsRequest.h
include/alibabacloud/alidns/model/DescribeTransferDomainsResult.h
include/alibabacloud/alidns/model/ExecuteGtmRecoveryPlanRequest.h
include/alibabacloud/alidns/model/ExecuteGtmRecoveryPlanResult.h
include/alibabacloud/alidns/model/GetMainDomainNameRequest.h
@@ -143,6 +157,12 @@ set(alidns_public_header_model
include/alibabacloud/alidns/model/SetGtmAccessModeResult.h
include/alibabacloud/alidns/model/SetGtmMonitorStatusRequest.h
include/alibabacloud/alidns/model/SetGtmMonitorStatusResult.h
include/alibabacloud/alidns/model/TransferDomainRequest.h
include/alibabacloud/alidns/model/TransferDomainResult.h
include/alibabacloud/alidns/model/UnbindInstanceDomainsRequest.h
include/alibabacloud/alidns/model/UnbindInstanceDomainsResult.h
include/alibabacloud/alidns/model/UpdateCustomLineRequest.h
include/alibabacloud/alidns/model/UpdateCustomLineResult.h
include/alibabacloud/alidns/model/UpdateDNSSLBWeightRequest.h
include/alibabacloud/alidns/model/UpdateDNSSLBWeightResult.h
include/alibabacloud/alidns/model/UpdateDomainGroupRequest.h
@@ -166,8 +186,12 @@ set(alidns_public_header_model
set(alidns_src
src/AlidnsClient.cc
src/model/AddCustomLineRequest.cc
src/model/AddCustomLineResult.cc
src/model/AddDomainRequest.cc
src/model/AddDomainResult.cc
src/model/AddDomainBackupRequest.cc
src/model/AddDomainBackupResult.cc
src/model/AddDomainGroupRequest.cc
src/model/AddDomainGroupResult.cc
src/model/AddDomainRecordRequest.cc
@@ -180,10 +204,14 @@ set(alidns_src
src/model/AddGtmMonitorResult.cc
src/model/AddGtmRecoveryPlanRequest.cc
src/model/AddGtmRecoveryPlanResult.cc
src/model/BindInstanceDomainsRequest.cc
src/model/BindInstanceDomainsResult.cc
src/model/ChangeDomainGroupRequest.cc
src/model/ChangeDomainGroupResult.cc
src/model/ChangeDomainOfDnsProductRequest.cc
src/model/ChangeDomainOfDnsProductResult.cc
src/model/DeleteCustomLinesRequest.cc
src/model/DeleteCustomLinesResult.cc
src/model/DeleteDomainRequest.cc
src/model/DeleteDomainResult.cc
src/model/DeleteDomainGroupRequest.cc
@@ -202,6 +230,10 @@ set(alidns_src
src/model/DescribeBatchResultCountResult.cc
src/model/DescribeBatchResultDetailRequest.cc
src/model/DescribeBatchResultDetailResult.cc
src/model/DescribeCustomLineRequest.cc
src/model/DescribeCustomLineResult.cc
src/model/DescribeCustomLinesRequest.cc
src/model/DescribeCustomLinesResult.cc
src/model/DescribeDNSSLBSubDomainsRequest.cc
src/model/DescribeDNSSLBSubDomainsResult.cc
src/model/DescribeDnsProductInstanceRequest.cc
@@ -268,6 +300,8 @@ set(alidns_src
src/model/DescribeSubDomainRecordsResult.cc
src/model/DescribeSupportLinesRequest.cc
src/model/DescribeSupportLinesResult.cc
src/model/DescribeTransferDomainsRequest.cc
src/model/DescribeTransferDomainsResult.cc
src/model/ExecuteGtmRecoveryPlanRequest.cc
src/model/ExecuteGtmRecoveryPlanResult.cc
src/model/GetMainDomainNameRequest.cc
@@ -288,6 +322,12 @@ set(alidns_src
src/model/SetGtmAccessModeResult.cc
src/model/SetGtmMonitorStatusRequest.cc
src/model/SetGtmMonitorStatusResult.cc
src/model/TransferDomainRequest.cc
src/model/TransferDomainResult.cc
src/model/UnbindInstanceDomainsRequest.cc
src/model/UnbindInstanceDomainsResult.cc
src/model/UpdateCustomLineRequest.cc
src/model/UpdateCustomLineResult.cc
src/model/UpdateDNSSLBWeightRequest.cc
src/model/UpdateDNSSLBWeightResult.cc
src/model/UpdateDomainGroupRequest.cc

View File

@@ -22,8 +22,12 @@
#include <alibabacloud/core/EndpointProvider.h>
#include <alibabacloud/core/RpcServiceClient.h>
#include "AlidnsExport.h"
#include "model/AddCustomLineRequest.h"
#include "model/AddCustomLineResult.h"
#include "model/AddDomainRequest.h"
#include "model/AddDomainResult.h"
#include "model/AddDomainBackupRequest.h"
#include "model/AddDomainBackupResult.h"
#include "model/AddDomainGroupRequest.h"
#include "model/AddDomainGroupResult.h"
#include "model/AddDomainRecordRequest.h"
@@ -36,10 +40,14 @@
#include "model/AddGtmMonitorResult.h"
#include "model/AddGtmRecoveryPlanRequest.h"
#include "model/AddGtmRecoveryPlanResult.h"
#include "model/BindInstanceDomainsRequest.h"
#include "model/BindInstanceDomainsResult.h"
#include "model/ChangeDomainGroupRequest.h"
#include "model/ChangeDomainGroupResult.h"
#include "model/ChangeDomainOfDnsProductRequest.h"
#include "model/ChangeDomainOfDnsProductResult.h"
#include "model/DeleteCustomLinesRequest.h"
#include "model/DeleteCustomLinesResult.h"
#include "model/DeleteDomainRequest.h"
#include "model/DeleteDomainResult.h"
#include "model/DeleteDomainGroupRequest.h"
@@ -58,6 +66,10 @@
#include "model/DescribeBatchResultCountResult.h"
#include "model/DescribeBatchResultDetailRequest.h"
#include "model/DescribeBatchResultDetailResult.h"
#include "model/DescribeCustomLineRequest.h"
#include "model/DescribeCustomLineResult.h"
#include "model/DescribeCustomLinesRequest.h"
#include "model/DescribeCustomLinesResult.h"
#include "model/DescribeDNSSLBSubDomainsRequest.h"
#include "model/DescribeDNSSLBSubDomainsResult.h"
#include "model/DescribeDnsProductInstanceRequest.h"
@@ -124,6 +136,8 @@
#include "model/DescribeSubDomainRecordsResult.h"
#include "model/DescribeSupportLinesRequest.h"
#include "model/DescribeSupportLinesResult.h"
#include "model/DescribeTransferDomainsRequest.h"
#include "model/DescribeTransferDomainsResult.h"
#include "model/ExecuteGtmRecoveryPlanRequest.h"
#include "model/ExecuteGtmRecoveryPlanResult.h"
#include "model/GetMainDomainNameRequest.h"
@@ -144,6 +158,12 @@
#include "model/SetGtmAccessModeResult.h"
#include "model/SetGtmMonitorStatusRequest.h"
#include "model/SetGtmMonitorStatusResult.h"
#include "model/TransferDomainRequest.h"
#include "model/TransferDomainResult.h"
#include "model/UnbindInstanceDomainsRequest.h"
#include "model/UnbindInstanceDomainsResult.h"
#include "model/UpdateCustomLineRequest.h"
#include "model/UpdateCustomLineResult.h"
#include "model/UpdateDNSSLBWeightRequest.h"
#include "model/UpdateDNSSLBWeightResult.h"
#include "model/UpdateDomainGroupRequest.h"
@@ -173,9 +193,15 @@ namespace AlibabaCloud
class ALIBABACLOUD_ALIDNS_EXPORT AlidnsClient : public RpcServiceClient
{
public:
typedef Outcome<Error, Model::AddCustomLineResult> AddCustomLineOutcome;
typedef std::future<AddCustomLineOutcome> AddCustomLineOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::AddCustomLineRequest&, const AddCustomLineOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddCustomLineAsyncHandler;
typedef Outcome<Error, Model::AddDomainResult> AddDomainOutcome;
typedef std::future<AddDomainOutcome> AddDomainOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::AddDomainRequest&, const AddDomainOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddDomainAsyncHandler;
typedef Outcome<Error, Model::AddDomainBackupResult> AddDomainBackupOutcome;
typedef std::future<AddDomainBackupOutcome> AddDomainBackupOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::AddDomainBackupRequest&, const AddDomainBackupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddDomainBackupAsyncHandler;
typedef Outcome<Error, Model::AddDomainGroupResult> AddDomainGroupOutcome;
typedef std::future<AddDomainGroupOutcome> AddDomainGroupOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::AddDomainGroupRequest&, const AddDomainGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddDomainGroupAsyncHandler;
@@ -194,12 +220,18 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::AddGtmRecoveryPlanResult> AddGtmRecoveryPlanOutcome;
typedef std::future<AddGtmRecoveryPlanOutcome> AddGtmRecoveryPlanOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::AddGtmRecoveryPlanRequest&, const AddGtmRecoveryPlanOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddGtmRecoveryPlanAsyncHandler;
typedef Outcome<Error, Model::BindInstanceDomainsResult> BindInstanceDomainsOutcome;
typedef std::future<BindInstanceDomainsOutcome> BindInstanceDomainsOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::BindInstanceDomainsRequest&, const BindInstanceDomainsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BindInstanceDomainsAsyncHandler;
typedef Outcome<Error, Model::ChangeDomainGroupResult> ChangeDomainGroupOutcome;
typedef std::future<ChangeDomainGroupOutcome> ChangeDomainGroupOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::ChangeDomainGroupRequest&, const ChangeDomainGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ChangeDomainGroupAsyncHandler;
typedef Outcome<Error, Model::ChangeDomainOfDnsProductResult> ChangeDomainOfDnsProductOutcome;
typedef std::future<ChangeDomainOfDnsProductOutcome> ChangeDomainOfDnsProductOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::ChangeDomainOfDnsProductRequest&, const ChangeDomainOfDnsProductOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ChangeDomainOfDnsProductAsyncHandler;
typedef Outcome<Error, Model::DeleteCustomLinesResult> DeleteCustomLinesOutcome;
typedef std::future<DeleteCustomLinesOutcome> DeleteCustomLinesOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::DeleteCustomLinesRequest&, const DeleteCustomLinesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteCustomLinesAsyncHandler;
typedef Outcome<Error, Model::DeleteDomainResult> DeleteDomainOutcome;
typedef std::future<DeleteDomainOutcome> DeleteDomainOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::DeleteDomainRequest&, const DeleteDomainOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDomainAsyncHandler;
@@ -227,6 +259,12 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeBatchResultDetailResult> DescribeBatchResultDetailOutcome;
typedef std::future<DescribeBatchResultDetailOutcome> DescribeBatchResultDetailOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::DescribeBatchResultDetailRequest&, const DescribeBatchResultDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeBatchResultDetailAsyncHandler;
typedef Outcome<Error, Model::DescribeCustomLineResult> DescribeCustomLineOutcome;
typedef std::future<DescribeCustomLineOutcome> DescribeCustomLineOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::DescribeCustomLineRequest&, const DescribeCustomLineOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCustomLineAsyncHandler;
typedef Outcome<Error, Model::DescribeCustomLinesResult> DescribeCustomLinesOutcome;
typedef std::future<DescribeCustomLinesOutcome> DescribeCustomLinesOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::DescribeCustomLinesRequest&, const DescribeCustomLinesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCustomLinesAsyncHandler;
typedef Outcome<Error, Model::DescribeDNSSLBSubDomainsResult> DescribeDNSSLBSubDomainsOutcome;
typedef std::future<DescribeDNSSLBSubDomainsOutcome> DescribeDNSSLBSubDomainsOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::DescribeDNSSLBSubDomainsRequest&, const DescribeDNSSLBSubDomainsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDNSSLBSubDomainsAsyncHandler;
@@ -326,6 +364,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeSupportLinesResult> DescribeSupportLinesOutcome;
typedef std::future<DescribeSupportLinesOutcome> DescribeSupportLinesOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::DescribeSupportLinesRequest&, const DescribeSupportLinesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSupportLinesAsyncHandler;
typedef Outcome<Error, Model::DescribeTransferDomainsResult> DescribeTransferDomainsOutcome;
typedef std::future<DescribeTransferDomainsOutcome> DescribeTransferDomainsOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::DescribeTransferDomainsRequest&, const DescribeTransferDomainsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeTransferDomainsAsyncHandler;
typedef Outcome<Error, Model::ExecuteGtmRecoveryPlanResult> ExecuteGtmRecoveryPlanOutcome;
typedef std::future<ExecuteGtmRecoveryPlanOutcome> ExecuteGtmRecoveryPlanOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::ExecuteGtmRecoveryPlanRequest&, const ExecuteGtmRecoveryPlanOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ExecuteGtmRecoveryPlanAsyncHandler;
@@ -356,6 +397,15 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::SetGtmMonitorStatusResult> SetGtmMonitorStatusOutcome;
typedef std::future<SetGtmMonitorStatusOutcome> SetGtmMonitorStatusOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::SetGtmMonitorStatusRequest&, const SetGtmMonitorStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetGtmMonitorStatusAsyncHandler;
typedef Outcome<Error, Model::TransferDomainResult> TransferDomainOutcome;
typedef std::future<TransferDomainOutcome> TransferDomainOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::TransferDomainRequest&, const TransferDomainOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TransferDomainAsyncHandler;
typedef Outcome<Error, Model::UnbindInstanceDomainsResult> UnbindInstanceDomainsOutcome;
typedef std::future<UnbindInstanceDomainsOutcome> UnbindInstanceDomainsOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::UnbindInstanceDomainsRequest&, const UnbindInstanceDomainsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UnbindInstanceDomainsAsyncHandler;
typedef Outcome<Error, Model::UpdateCustomLineResult> UpdateCustomLineOutcome;
typedef std::future<UpdateCustomLineOutcome> UpdateCustomLineOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::UpdateCustomLineRequest&, const UpdateCustomLineOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateCustomLineAsyncHandler;
typedef Outcome<Error, Model::UpdateDNSSLBWeightResult> UpdateDNSSLBWeightOutcome;
typedef std::future<UpdateDNSSLBWeightOutcome> UpdateDNSSLBWeightOutcomeCallable;
typedef std::function<void(const AlidnsClient*, const Model::UpdateDNSSLBWeightRequest&, const UpdateDNSSLBWeightOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateDNSSLBWeightAsyncHandler;
@@ -391,9 +441,15 @@ namespace AlibabaCloud
AlidnsClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
AlidnsClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
~AlidnsClient();
AddCustomLineOutcome addCustomLine(const Model::AddCustomLineRequest &request)const;
void addCustomLineAsync(const Model::AddCustomLineRequest& request, const AddCustomLineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddCustomLineOutcomeCallable addCustomLineCallable(const Model::AddCustomLineRequest& request) const;
AddDomainOutcome addDomain(const Model::AddDomainRequest &request)const;
void addDomainAsync(const Model::AddDomainRequest& request, const AddDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddDomainOutcomeCallable addDomainCallable(const Model::AddDomainRequest& request) const;
AddDomainBackupOutcome addDomainBackup(const Model::AddDomainBackupRequest &request)const;
void addDomainBackupAsync(const Model::AddDomainBackupRequest& request, const AddDomainBackupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddDomainBackupOutcomeCallable addDomainBackupCallable(const Model::AddDomainBackupRequest& request) const;
AddDomainGroupOutcome addDomainGroup(const Model::AddDomainGroupRequest &request)const;
void addDomainGroupAsync(const Model::AddDomainGroupRequest& request, const AddDomainGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddDomainGroupOutcomeCallable addDomainGroupCallable(const Model::AddDomainGroupRequest& request) const;
@@ -412,12 +468,18 @@ namespace AlibabaCloud
AddGtmRecoveryPlanOutcome addGtmRecoveryPlan(const Model::AddGtmRecoveryPlanRequest &request)const;
void addGtmRecoveryPlanAsync(const Model::AddGtmRecoveryPlanRequest& request, const AddGtmRecoveryPlanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddGtmRecoveryPlanOutcomeCallable addGtmRecoveryPlanCallable(const Model::AddGtmRecoveryPlanRequest& request) const;
BindInstanceDomainsOutcome bindInstanceDomains(const Model::BindInstanceDomainsRequest &request)const;
void bindInstanceDomainsAsync(const Model::BindInstanceDomainsRequest& request, const BindInstanceDomainsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
BindInstanceDomainsOutcomeCallable bindInstanceDomainsCallable(const Model::BindInstanceDomainsRequest& request) const;
ChangeDomainGroupOutcome changeDomainGroup(const Model::ChangeDomainGroupRequest &request)const;
void changeDomainGroupAsync(const Model::ChangeDomainGroupRequest& request, const ChangeDomainGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ChangeDomainGroupOutcomeCallable changeDomainGroupCallable(const Model::ChangeDomainGroupRequest& request) const;
ChangeDomainOfDnsProductOutcome changeDomainOfDnsProduct(const Model::ChangeDomainOfDnsProductRequest &request)const;
void changeDomainOfDnsProductAsync(const Model::ChangeDomainOfDnsProductRequest& request, const ChangeDomainOfDnsProductAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ChangeDomainOfDnsProductOutcomeCallable changeDomainOfDnsProductCallable(const Model::ChangeDomainOfDnsProductRequest& request) const;
DeleteCustomLinesOutcome deleteCustomLines(const Model::DeleteCustomLinesRequest &request)const;
void deleteCustomLinesAsync(const Model::DeleteCustomLinesRequest& request, const DeleteCustomLinesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteCustomLinesOutcomeCallable deleteCustomLinesCallable(const Model::DeleteCustomLinesRequest& request) const;
DeleteDomainOutcome deleteDomain(const Model::DeleteDomainRequest &request)const;
void deleteDomainAsync(const Model::DeleteDomainRequest& request, const DeleteDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteDomainOutcomeCallable deleteDomainCallable(const Model::DeleteDomainRequest& request) const;
@@ -445,6 +507,12 @@ namespace AlibabaCloud
DescribeBatchResultDetailOutcome describeBatchResultDetail(const Model::DescribeBatchResultDetailRequest &request)const;
void describeBatchResultDetailAsync(const Model::DescribeBatchResultDetailRequest& request, const DescribeBatchResultDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeBatchResultDetailOutcomeCallable describeBatchResultDetailCallable(const Model::DescribeBatchResultDetailRequest& request) const;
DescribeCustomLineOutcome describeCustomLine(const Model::DescribeCustomLineRequest &request)const;
void describeCustomLineAsync(const Model::DescribeCustomLineRequest& request, const DescribeCustomLineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeCustomLineOutcomeCallable describeCustomLineCallable(const Model::DescribeCustomLineRequest& request) const;
DescribeCustomLinesOutcome describeCustomLines(const Model::DescribeCustomLinesRequest &request)const;
void describeCustomLinesAsync(const Model::DescribeCustomLinesRequest& request, const DescribeCustomLinesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeCustomLinesOutcomeCallable describeCustomLinesCallable(const Model::DescribeCustomLinesRequest& request) const;
DescribeDNSSLBSubDomainsOutcome describeDNSSLBSubDomains(const Model::DescribeDNSSLBSubDomainsRequest &request)const;
void describeDNSSLBSubDomainsAsync(const Model::DescribeDNSSLBSubDomainsRequest& request, const DescribeDNSSLBSubDomainsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDNSSLBSubDomainsOutcomeCallable describeDNSSLBSubDomainsCallable(const Model::DescribeDNSSLBSubDomainsRequest& request) const;
@@ -544,6 +612,9 @@ namespace AlibabaCloud
DescribeSupportLinesOutcome describeSupportLines(const Model::DescribeSupportLinesRequest &request)const;
void describeSupportLinesAsync(const Model::DescribeSupportLinesRequest& request, const DescribeSupportLinesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeSupportLinesOutcomeCallable describeSupportLinesCallable(const Model::DescribeSupportLinesRequest& request) const;
DescribeTransferDomainsOutcome describeTransferDomains(const Model::DescribeTransferDomainsRequest &request)const;
void describeTransferDomainsAsync(const Model::DescribeTransferDomainsRequest& request, const DescribeTransferDomainsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeTransferDomainsOutcomeCallable describeTransferDomainsCallable(const Model::DescribeTransferDomainsRequest& request) const;
ExecuteGtmRecoveryPlanOutcome executeGtmRecoveryPlan(const Model::ExecuteGtmRecoveryPlanRequest &request)const;
void executeGtmRecoveryPlanAsync(const Model::ExecuteGtmRecoveryPlanRequest& request, const ExecuteGtmRecoveryPlanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ExecuteGtmRecoveryPlanOutcomeCallable executeGtmRecoveryPlanCallable(const Model::ExecuteGtmRecoveryPlanRequest& request) const;
@@ -574,6 +645,15 @@ namespace AlibabaCloud
SetGtmMonitorStatusOutcome setGtmMonitorStatus(const Model::SetGtmMonitorStatusRequest &request)const;
void setGtmMonitorStatusAsync(const Model::SetGtmMonitorStatusRequest& request, const SetGtmMonitorStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SetGtmMonitorStatusOutcomeCallable setGtmMonitorStatusCallable(const Model::SetGtmMonitorStatusRequest& request) const;
TransferDomainOutcome transferDomain(const Model::TransferDomainRequest &request)const;
void transferDomainAsync(const Model::TransferDomainRequest& request, const TransferDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
TransferDomainOutcomeCallable transferDomainCallable(const Model::TransferDomainRequest& request) const;
UnbindInstanceDomainsOutcome unbindInstanceDomains(const Model::UnbindInstanceDomainsRequest &request)const;
void unbindInstanceDomainsAsync(const Model::UnbindInstanceDomainsRequest& request, const UnbindInstanceDomainsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UnbindInstanceDomainsOutcomeCallable unbindInstanceDomainsCallable(const Model::UnbindInstanceDomainsRequest& request) const;
UpdateCustomLineOutcome updateCustomLine(const Model::UpdateCustomLineRequest &request)const;
void updateCustomLineAsync(const Model::UpdateCustomLineRequest& request, const UpdateCustomLineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateCustomLineOutcomeCallable updateCustomLineCallable(const Model::UpdateCustomLineRequest& request) const;
UpdateDNSSLBWeightOutcome updateDNSSLBWeight(const Model::UpdateDNSSLBWeightRequest &request)const;
void updateDNSSLBWeightAsync(const Model::UpdateDNSSLBWeightRequest& request, const UpdateDNSSLBWeightAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateDNSSLBWeightOutcomeCallable updateDNSSLBWeightCallable(const Model::UpdateDNSSLBWeightRequest& request) const;

View File

@@ -0,0 +1,65 @@
/*
* 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_ALIDNS_MODEL_ADDCUSTOMLINEREQUEST_H_
#define ALIBABACLOUD_ALIDNS_MODEL_ADDCUSTOMLINEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alidns/AlidnsExport.h>
namespace AlibabaCloud
{
namespace Alidns
{
namespace Model
{
class ALIBABACLOUD_ALIDNS_EXPORT AddCustomLineRequest : public RpcServiceRequest
{
struct IpSegment
{
std::string endIp;
std::string startIp;
};
public:
AddCustomLineRequest();
~AddCustomLineRequest();
std::string getDomainName()const;
void setDomainName(const std::string& domainName);
std::vector<IpSegment> getIpSegment()const;
void setIpSegment(const std::vector<IpSegment>& ipSegment);
std::string getUserClientIp()const;
void setUserClientIp(const std::string& userClientIp);
std::string getLineName()const;
void setLineName(const std::string& lineName);
std::string getLang()const;
void setLang(const std::string& lang);
private:
std::string domainName_;
std::vector<IpSegment> ipSegment_;
std::string userClientIp_;
std::string lineName_;
std::string lang_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIDNS_MODEL_ADDCUSTOMLINEREQUEST_H_

View File

@@ -0,0 +1,53 @@
/*
* 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_ALIDNS_MODEL_ADDCUSTOMLINERESULT_H_
#define ALIBABACLOUD_ALIDNS_MODEL_ADDCUSTOMLINERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/alidns/AlidnsExport.h>
namespace AlibabaCloud
{
namespace Alidns
{
namespace Model
{
class ALIBABACLOUD_ALIDNS_EXPORT AddCustomLineResult : public ServiceResult
{
public:
AddCustomLineResult();
explicit AddCustomLineResult(const std::string &payload);
~AddCustomLineResult();
long getLineId()const;
std::string getLineCode()const;
protected:
void parse(const std::string &payload);
private:
long lineId_;
std::string lineCode_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIDNS_MODEL_ADDCUSTOMLINERESULT_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_ALIDNS_MODEL_ADDDOMAINBACKUPREQUEST_H_
#define ALIBABACLOUD_ALIDNS_MODEL_ADDDOMAINBACKUPREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alidns/AlidnsExport.h>
namespace AlibabaCloud
{
namespace Alidns
{
namespace Model
{
class ALIBABACLOUD_ALIDNS_EXPORT AddDomainBackupRequest : public RpcServiceRequest
{
public:
AddDomainBackupRequest();
~AddDomainBackupRequest();
std::string getDomainName()const;
void setDomainName(const std::string& domainName);
std::string getPeriodType()const;
void setPeriodType(const std::string& periodType);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
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 periodType_;
std::string accessKeyId_;
std::string userClientIp_;
std::string lang_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIDNS_MODEL_ADDDOMAINBACKUPREQUEST_H_

View File

@@ -0,0 +1,53 @@
/*
* 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_ALIDNS_MODEL_ADDDOMAINBACKUPRESULT_H_
#define ALIBABACLOUD_ALIDNS_MODEL_ADDDOMAINBACKUPRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/alidns/AlidnsExport.h>
namespace AlibabaCloud
{
namespace Alidns
{
namespace Model
{
class ALIBABACLOUD_ALIDNS_EXPORT AddDomainBackupResult : public ServiceResult
{
public:
AddDomainBackupResult();
explicit AddDomainBackupResult(const std::string &payload);
~AddDomainBackupResult();
std::string getPeriodType()const;
std::string getDomainName()const;
protected:
void parse(const std::string &payload);
private:
std::string periodType_;
std::string domainName_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIDNS_MODEL_ADDDOMAINBACKUPRESULT_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_ALIDNS_MODEL_BINDINSTANCEDOMAINSREQUEST_H_
#define ALIBABACLOUD_ALIDNS_MODEL_BINDINSTANCEDOMAINSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alidns/AlidnsExport.h>
namespace AlibabaCloud
{
namespace Alidns
{
namespace Model
{
class ALIBABACLOUD_ALIDNS_EXPORT BindInstanceDomainsRequest : public RpcServiceRequest
{
public:
BindInstanceDomainsRequest();
~BindInstanceDomainsRequest();
std::string getDomainNames()const;
void setDomainNames(const std::string& domainNames);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getUserClientIp()const;
void setUserClientIp(const std::string& userClientIp);
std::string getLang()const;
void setLang(const std::string& lang);
private:
std::string domainNames_;
std::string instanceId_;
std::string userClientIp_;
std::string lang_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIDNS_MODEL_BINDINSTANCEDOMAINSREQUEST_H_

View File

@@ -0,0 +1,53 @@
/*
* 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_ALIDNS_MODEL_BINDINSTANCEDOMAINSRESULT_H_
#define ALIBABACLOUD_ALIDNS_MODEL_BINDINSTANCEDOMAINSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/alidns/AlidnsExport.h>
namespace AlibabaCloud
{
namespace Alidns
{
namespace Model
{
class ALIBABACLOUD_ALIDNS_EXPORT BindInstanceDomainsResult : public ServiceResult
{
public:
BindInstanceDomainsResult();
explicit BindInstanceDomainsResult(const std::string &payload);
~BindInstanceDomainsResult();
int getFailedCount()const;
int getSuccessCount()const;
protected:
void parse(const std::string &payload);
private:
int failedCount_;
int successCount_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIDNS_MODEL_BINDINSTANCEDOMAINSRESULT_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_ALIDNS_MODEL_DELETECUSTOMLINESREQUEST_H_
#define ALIBABACLOUD_ALIDNS_MODEL_DELETECUSTOMLINESREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alidns/AlidnsExport.h>
namespace AlibabaCloud
{
namespace Alidns
{
namespace Model
{
class ALIBABACLOUD_ALIDNS_EXPORT DeleteCustomLinesRequest : public RpcServiceRequest
{
public:
DeleteCustomLinesRequest();
~DeleteCustomLinesRequest();
std::string getLineIds()const;
void setLineIds(const std::string& lineIds);
std::string getUserClientIp()const;
void setUserClientIp(const std::string& userClientIp);
std::string getLang()const;
void setLang(const std::string& lang);
private:
std::string lineIds_;
std::string userClientIp_;
std::string lang_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIDNS_MODEL_DELETECUSTOMLINESREQUEST_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_ALIDNS_MODEL_DELETECUSTOMLINESRESULT_H_
#define ALIBABACLOUD_ALIDNS_MODEL_DELETECUSTOMLINESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/alidns/AlidnsExport.h>
namespace AlibabaCloud
{
namespace Alidns
{
namespace Model
{
class ALIBABACLOUD_ALIDNS_EXPORT DeleteCustomLinesResult : public ServiceResult
{
public:
DeleteCustomLinesResult();
explicit DeleteCustomLinesResult(const std::string &payload);
~DeleteCustomLinesResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_ALIDNS_MODEL_DELETECUSTOMLINESRESULT_H_

View File

@@ -47,6 +47,8 @@ namespace AlibabaCloud
void setLang(const std::string& lang);
long getTaskId()const;
void setTaskId(long taskId);
std::string getStatus()const;
void setStatus(const std::string& status);
private:
std::string batchType_;
@@ -55,6 +57,7 @@ namespace AlibabaCloud
int pageSize_;
std::string lang_;
long taskId_;
std::string status_;
};
}

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_ALIDNS_MODEL_DESCRIBECUSTOMLINEREQUEST_H_
#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBECUSTOMLINEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alidns/AlidnsExport.h>
namespace AlibabaCloud
{
namespace Alidns
{
namespace Model
{
class ALIBABACLOUD_ALIDNS_EXPORT DescribeCustomLineRequest : public RpcServiceRequest
{
public:
DescribeCustomLineRequest();
~DescribeCustomLineRequest();
long getLineId()const;
void setLineId(long lineId);
std::string getUserClientIp()const;
void setUserClientIp(const std::string& userClientIp);
std::string getLang()const;
void setLang(const std::string& lang);
private:
long lineId_;
std::string userClientIp_;
std::string lang_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBECUSTOMLINEREQUEST_H_

View File

@@ -0,0 +1,71 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBECUSTOMLINERESULT_H_
#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBECUSTOMLINERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/alidns/AlidnsExport.h>
namespace AlibabaCloud
{
namespace Alidns
{
namespace Model
{
class ALIBABACLOUD_ALIDNS_EXPORT DescribeCustomLineResult : public ServiceResult
{
public:
struct IpSegment
{
std::string startIp;
std::string endIp;
std::string name;
};
DescribeCustomLineResult();
explicit DescribeCustomLineResult(const std::string &payload);
~DescribeCustomLineResult();
std::vector<IpSegment> getIpSegmentList()const;
std::string getDomainName()const;
std::string getCreateTime()const;
long getId()const;
std::string getIpSegments()const;
long getCreateTimestamp()const;
std::string getCode()const;
std::string getName()const;
protected:
void parse(const std::string &payload);
private:
std::vector<IpSegment> ipSegmentList_;
std::string domainName_;
std::string createTime_;
long id_;
std::string ipSegments_;
long createTimestamp_;
std::string code_;
std::string name_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBECUSTOMLINERESULT_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_ALIDNS_MODEL_DESCRIBECUSTOMLINESREQUEST_H_
#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBECUSTOMLINESREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alidns/AlidnsExport.h>
namespace AlibabaCloud
{
namespace Alidns
{
namespace Model
{
class ALIBABACLOUD_ALIDNS_EXPORT DescribeCustomLinesRequest : public RpcServiceRequest
{
public:
DescribeCustomLinesRequest();
~DescribeCustomLinesRequest();
std::string getDomainName()const;
void setDomainName(const std::string& domainName);
long getPageNumber()const;
void setPageNumber(long pageNumber);
std::string getUserClientIp()const;
void setUserClientIp(const std::string& userClientIp);
long getPageSize()const;
void setPageSize(long pageSize);
std::string getLang()const;
void setLang(const std::string& lang);
private:
std::string domainName_;
long pageNumber_;
std::string userClientIp_;
long pageSize_;
std::string lang_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBECUSTOMLINESREQUEST_H_

View File

@@ -0,0 +1,75 @@
/*
* 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_ALIDNS_MODEL_DESCRIBECUSTOMLINESRESULT_H_
#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBECUSTOMLINESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/alidns/AlidnsExport.h>
namespace AlibabaCloud
{
namespace Alidns
{
namespace Model
{
class ALIBABACLOUD_ALIDNS_EXPORT DescribeCustomLinesResult : public ServiceResult
{
public:
struct CustomLine
{
struct IpSegment
{
std::string startIp;
std::string endIp;
std::string name;
};
std::vector<CustomLine::IpSegment> ipSegmentList;
std::string createTime;
long id;
std::string ipSegments;
long createTimestamp;
std::string code;
std::string name;
};
DescribeCustomLinesResult();
explicit DescribeCustomLinesResult(const std::string &payload);
~DescribeCustomLinesResult();
int getPageSize()const;
int getPageNumber()const;
int getTotalPages()const;
std::vector<CustomLine> getCustomLines()const;
int getTotalItems()const;
protected:
void parse(const std::string &payload);
private:
int pageSize_;
int pageNumber_;
int totalPages_;
std::vector<CustomLine> customLines_;
int totalItems_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBECUSTOMLINESRESULT_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_ALIDNS_MODEL_DESCRIBETRANSFERDOMAINSREQUEST_H_
#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBETRANSFERDOMAINSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alidns/AlidnsExport.h>
namespace AlibabaCloud
{
namespace Alidns
{
namespace Model
{
class ALIBABACLOUD_ALIDNS_EXPORT DescribeTransferDomainsRequest : public RpcServiceRequest
{
public:
DescribeTransferDomainsRequest();
~DescribeTransferDomainsRequest();
long getPageNumber()const;
void setPageNumber(long pageNumber);
std::string getTransferType()const;
void setTransferType(const std::string& transferType);
std::string getUserClientIp()const;
void setUserClientIp(const std::string& userClientIp);
long getPageSize()const;
void setPageSize(long pageSize);
std::string getLang()const;
void setLang(const std::string& lang);
private:
long pageNumber_;
std::string transferType_;
std::string userClientIp_;
long pageSize_;
std::string lang_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBETRANSFERDOMAINSREQUEST_H_

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_ALIDNS_MODEL_DESCRIBETRANSFERDOMAINSRESULT_H_
#define ALIBABACLOUD_ALIDNS_MODEL_DESCRIBETRANSFERDOMAINSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/alidns/AlidnsExport.h>
namespace AlibabaCloud
{
namespace Alidns
{
namespace Model
{
class ALIBABACLOUD_ALIDNS_EXPORT DescribeTransferDomainsResult : public ServiceResult
{
public:
struct DomainTransfer
{
std::string domainName;
std::string createTime;
long fromUserId;
long id;
long createTimestamp;
long targetUserId;
};
DescribeTransferDomainsResult();
explicit DescribeTransferDomainsResult(const std::string &payload);
~DescribeTransferDomainsResult();
long getTotalCount()const;
long getPageSize()const;
long getPageNumber()const;
std::vector<DomainTransfer> getDomainTransfers()const;
protected:
void parse(const std::string &payload);
private:
long totalCount_;
long pageSize_;
long pageNumber_;
std::vector<DomainTransfer> domainTransfers_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIDNS_MODEL_DESCRIBETRANSFERDOMAINSRESULT_H_

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.
*/
#ifndef ALIBABACLOUD_ALIDNS_MODEL_TRANSFERDOMAINREQUEST_H_
#define ALIBABACLOUD_ALIDNS_MODEL_TRANSFERDOMAINREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alidns/AlidnsExport.h>
namespace AlibabaCloud
{
namespace Alidns
{
namespace Model
{
class ALIBABACLOUD_ALIDNS_EXPORT TransferDomainRequest : public RpcServiceRequest
{
public:
TransferDomainRequest();
~TransferDomainRequest();
std::string getDomainNames()const;
void setDomainNames(const std::string& domainNames);
std::string getRemark()const;
void setRemark(const std::string& remark);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
long getTargetUserId()const;
void setTargetUserId(long targetUserId);
std::string getUserClientIp()const;
void setUserClientIp(const std::string& userClientIp);
std::string getLang()const;
void setLang(const std::string& lang);
private:
std::string domainNames_;
std::string remark_;
std::string accessKeyId_;
long targetUserId_;
std::string userClientIp_;
std::string lang_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIDNS_MODEL_TRANSFERDOMAINREQUEST_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_ALIDNS_MODEL_TRANSFERDOMAINRESULT_H_
#define ALIBABACLOUD_ALIDNS_MODEL_TRANSFERDOMAINRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/alidns/AlidnsExport.h>
namespace AlibabaCloud
{
namespace Alidns
{
namespace Model
{
class ALIBABACLOUD_ALIDNS_EXPORT TransferDomainResult : public ServiceResult
{
public:
TransferDomainResult();
explicit TransferDomainResult(const std::string &payload);
~TransferDomainResult();
long getTaskId()const;
protected:
void parse(const std::string &payload);
private:
long taskId_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIDNS_MODEL_TRANSFERDOMAINRESULT_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_ALIDNS_MODEL_UNBINDINSTANCEDOMAINSREQUEST_H_
#define ALIBABACLOUD_ALIDNS_MODEL_UNBINDINSTANCEDOMAINSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alidns/AlidnsExport.h>
namespace AlibabaCloud
{
namespace Alidns
{
namespace Model
{
class ALIBABACLOUD_ALIDNS_EXPORT UnbindInstanceDomainsRequest : public RpcServiceRequest
{
public:
UnbindInstanceDomainsRequest();
~UnbindInstanceDomainsRequest();
std::string getDomainNames()const;
void setDomainNames(const std::string& domainNames);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getUserClientIp()const;
void setUserClientIp(const std::string& userClientIp);
std::string getLang()const;
void setLang(const std::string& lang);
private:
std::string domainNames_;
std::string instanceId_;
std::string userClientIp_;
std::string lang_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIDNS_MODEL_UNBINDINSTANCEDOMAINSREQUEST_H_

View File

@@ -0,0 +1,53 @@
/*
* 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_ALIDNS_MODEL_UNBINDINSTANCEDOMAINSRESULT_H_
#define ALIBABACLOUD_ALIDNS_MODEL_UNBINDINSTANCEDOMAINSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/alidns/AlidnsExport.h>
namespace AlibabaCloud
{
namespace Alidns
{
namespace Model
{
class ALIBABACLOUD_ALIDNS_EXPORT UnbindInstanceDomainsResult : public ServiceResult
{
public:
UnbindInstanceDomainsResult();
explicit UnbindInstanceDomainsResult(const std::string &payload);
~UnbindInstanceDomainsResult();
int getFailedCount()const;
int getSuccessCount()const;
protected:
void parse(const std::string &payload);
private:
int failedCount_;
int successCount_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIDNS_MODEL_UNBINDINSTANCEDOMAINSRESULT_H_

View File

@@ -0,0 +1,65 @@
/*
* 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_ALIDNS_MODEL_UPDATECUSTOMLINEREQUEST_H_
#define ALIBABACLOUD_ALIDNS_MODEL_UPDATECUSTOMLINEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/alidns/AlidnsExport.h>
namespace AlibabaCloud
{
namespace Alidns
{
namespace Model
{
class ALIBABACLOUD_ALIDNS_EXPORT UpdateCustomLineRequest : public RpcServiceRequest
{
struct IpSegment
{
std::string endIp;
std::string startIp;
};
public:
UpdateCustomLineRequest();
~UpdateCustomLineRequest();
long getLineId()const;
void setLineId(long lineId);
std::vector<IpSegment> getIpSegment()const;
void setIpSegment(const std::vector<IpSegment>& ipSegment);
std::string getUserClientIp()const;
void setUserClientIp(const std::string& userClientIp);
std::string getLineName()const;
void setLineName(const std::string& lineName);
std::string getLang()const;
void setLang(const std::string& lang);
private:
long lineId_;
std::vector<IpSegment> ipSegment_;
std::string userClientIp_;
std::string lineName_;
std::string lang_;
};
}
}
}
#endif // !ALIBABACLOUD_ALIDNS_MODEL_UPDATECUSTOMLINEREQUEST_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_ALIDNS_MODEL_UPDATECUSTOMLINERESULT_H_
#define ALIBABACLOUD_ALIDNS_MODEL_UPDATECUSTOMLINERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/alidns/AlidnsExport.h>
namespace AlibabaCloud
{
namespace Alidns
{
namespace Model
{
class ALIBABACLOUD_ALIDNS_EXPORT UpdateCustomLineResult : public ServiceResult
{
public:
UpdateCustomLineResult();
explicit UpdateCustomLineResult(const std::string &payload);
~UpdateCustomLineResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_ALIDNS_MODEL_UPDATECUSTOMLINERESULT_H_

View File

@@ -51,6 +51,42 @@ AlidnsClient::AlidnsClient(const std::string & accessKeyId, const std::string &
AlidnsClient::~AlidnsClient()
{}
AlidnsClient::AddCustomLineOutcome AlidnsClient::addCustomLine(const AddCustomLineRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return AddCustomLineOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return AddCustomLineOutcome(AddCustomLineResult(outcome.result()));
else
return AddCustomLineOutcome(outcome.error());
}
void AlidnsClient::addCustomLineAsync(const AddCustomLineRequest& request, const AddCustomLineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, addCustomLine(request), context);
};
asyncExecute(new Runnable(fn));
}
AlidnsClient::AddCustomLineOutcomeCallable AlidnsClient::addCustomLineCallable(const AddCustomLineRequest &request) const
{
auto task = std::make_shared<std::packaged_task<AddCustomLineOutcome()>>(
[this, request]()
{
return this->addCustomLine(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlidnsClient::AddDomainOutcome AlidnsClient::addDomain(const AddDomainRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -87,6 +123,42 @@ AlidnsClient::AddDomainOutcomeCallable AlidnsClient::addDomainCallable(const Add
return task->get_future();
}
AlidnsClient::AddDomainBackupOutcome AlidnsClient::addDomainBackup(const AddDomainBackupRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return AddDomainBackupOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return AddDomainBackupOutcome(AddDomainBackupResult(outcome.result()));
else
return AddDomainBackupOutcome(outcome.error());
}
void AlidnsClient::addDomainBackupAsync(const AddDomainBackupRequest& request, const AddDomainBackupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, addDomainBackup(request), context);
};
asyncExecute(new Runnable(fn));
}
AlidnsClient::AddDomainBackupOutcomeCallable AlidnsClient::addDomainBackupCallable(const AddDomainBackupRequest &request) const
{
auto task = std::make_shared<std::packaged_task<AddDomainBackupOutcome()>>(
[this, request]()
{
return this->addDomainBackup(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlidnsClient::AddDomainGroupOutcome AlidnsClient::addDomainGroup(const AddDomainGroupRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -303,6 +375,42 @@ AlidnsClient::AddGtmRecoveryPlanOutcomeCallable AlidnsClient::addGtmRecoveryPlan
return task->get_future();
}
AlidnsClient::BindInstanceDomainsOutcome AlidnsClient::bindInstanceDomains(const BindInstanceDomainsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return BindInstanceDomainsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return BindInstanceDomainsOutcome(BindInstanceDomainsResult(outcome.result()));
else
return BindInstanceDomainsOutcome(outcome.error());
}
void AlidnsClient::bindInstanceDomainsAsync(const BindInstanceDomainsRequest& request, const BindInstanceDomainsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, bindInstanceDomains(request), context);
};
asyncExecute(new Runnable(fn));
}
AlidnsClient::BindInstanceDomainsOutcomeCallable AlidnsClient::bindInstanceDomainsCallable(const BindInstanceDomainsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<BindInstanceDomainsOutcome()>>(
[this, request]()
{
return this->bindInstanceDomains(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlidnsClient::ChangeDomainGroupOutcome AlidnsClient::changeDomainGroup(const ChangeDomainGroupRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -375,6 +483,42 @@ AlidnsClient::ChangeDomainOfDnsProductOutcomeCallable AlidnsClient::changeDomain
return task->get_future();
}
AlidnsClient::DeleteCustomLinesOutcome AlidnsClient::deleteCustomLines(const DeleteCustomLinesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteCustomLinesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteCustomLinesOutcome(DeleteCustomLinesResult(outcome.result()));
else
return DeleteCustomLinesOutcome(outcome.error());
}
void AlidnsClient::deleteCustomLinesAsync(const DeleteCustomLinesRequest& request, const DeleteCustomLinesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteCustomLines(request), context);
};
asyncExecute(new Runnable(fn));
}
AlidnsClient::DeleteCustomLinesOutcomeCallable AlidnsClient::deleteCustomLinesCallable(const DeleteCustomLinesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteCustomLinesOutcome()>>(
[this, request]()
{
return this->deleteCustomLines(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlidnsClient::DeleteDomainOutcome AlidnsClient::deleteDomain(const DeleteDomainRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -699,6 +843,78 @@ AlidnsClient::DescribeBatchResultDetailOutcomeCallable AlidnsClient::describeBat
return task->get_future();
}
AlidnsClient::DescribeCustomLineOutcome AlidnsClient::describeCustomLine(const DescribeCustomLineRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeCustomLineOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeCustomLineOutcome(DescribeCustomLineResult(outcome.result()));
else
return DescribeCustomLineOutcome(outcome.error());
}
void AlidnsClient::describeCustomLineAsync(const DescribeCustomLineRequest& request, const DescribeCustomLineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeCustomLine(request), context);
};
asyncExecute(new Runnable(fn));
}
AlidnsClient::DescribeCustomLineOutcomeCallable AlidnsClient::describeCustomLineCallable(const DescribeCustomLineRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeCustomLineOutcome()>>(
[this, request]()
{
return this->describeCustomLine(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlidnsClient::DescribeCustomLinesOutcome AlidnsClient::describeCustomLines(const DescribeCustomLinesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeCustomLinesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeCustomLinesOutcome(DescribeCustomLinesResult(outcome.result()));
else
return DescribeCustomLinesOutcome(outcome.error());
}
void AlidnsClient::describeCustomLinesAsync(const DescribeCustomLinesRequest& request, const DescribeCustomLinesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeCustomLines(request), context);
};
asyncExecute(new Runnable(fn));
}
AlidnsClient::DescribeCustomLinesOutcomeCallable AlidnsClient::describeCustomLinesCallable(const DescribeCustomLinesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeCustomLinesOutcome()>>(
[this, request]()
{
return this->describeCustomLines(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlidnsClient::DescribeDNSSLBSubDomainsOutcome AlidnsClient::describeDNSSLBSubDomains(const DescribeDNSSLBSubDomainsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1887,6 +2103,42 @@ AlidnsClient::DescribeSupportLinesOutcomeCallable AlidnsClient::describeSupportL
return task->get_future();
}
AlidnsClient::DescribeTransferDomainsOutcome AlidnsClient::describeTransferDomains(const DescribeTransferDomainsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeTransferDomainsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeTransferDomainsOutcome(DescribeTransferDomainsResult(outcome.result()));
else
return DescribeTransferDomainsOutcome(outcome.error());
}
void AlidnsClient::describeTransferDomainsAsync(const DescribeTransferDomainsRequest& request, const DescribeTransferDomainsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeTransferDomains(request), context);
};
asyncExecute(new Runnable(fn));
}
AlidnsClient::DescribeTransferDomainsOutcomeCallable AlidnsClient::describeTransferDomainsCallable(const DescribeTransferDomainsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeTransferDomainsOutcome()>>(
[this, request]()
{
return this->describeTransferDomains(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlidnsClient::ExecuteGtmRecoveryPlanOutcome AlidnsClient::executeGtmRecoveryPlan(const ExecuteGtmRecoveryPlanRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2247,6 +2499,114 @@ AlidnsClient::SetGtmMonitorStatusOutcomeCallable AlidnsClient::setGtmMonitorStat
return task->get_future();
}
AlidnsClient::TransferDomainOutcome AlidnsClient::transferDomain(const TransferDomainRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return TransferDomainOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return TransferDomainOutcome(TransferDomainResult(outcome.result()));
else
return TransferDomainOutcome(outcome.error());
}
void AlidnsClient::transferDomainAsync(const TransferDomainRequest& request, const TransferDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, transferDomain(request), context);
};
asyncExecute(new Runnable(fn));
}
AlidnsClient::TransferDomainOutcomeCallable AlidnsClient::transferDomainCallable(const TransferDomainRequest &request) const
{
auto task = std::make_shared<std::packaged_task<TransferDomainOutcome()>>(
[this, request]()
{
return this->transferDomain(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlidnsClient::UnbindInstanceDomainsOutcome AlidnsClient::unbindInstanceDomains(const UnbindInstanceDomainsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UnbindInstanceDomainsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UnbindInstanceDomainsOutcome(UnbindInstanceDomainsResult(outcome.result()));
else
return UnbindInstanceDomainsOutcome(outcome.error());
}
void AlidnsClient::unbindInstanceDomainsAsync(const UnbindInstanceDomainsRequest& request, const UnbindInstanceDomainsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, unbindInstanceDomains(request), context);
};
asyncExecute(new Runnable(fn));
}
AlidnsClient::UnbindInstanceDomainsOutcomeCallable AlidnsClient::unbindInstanceDomainsCallable(const UnbindInstanceDomainsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UnbindInstanceDomainsOutcome()>>(
[this, request]()
{
return this->unbindInstanceDomains(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlidnsClient::UpdateCustomLineOutcome AlidnsClient::updateCustomLine(const UpdateCustomLineRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateCustomLineOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateCustomLineOutcome(UpdateCustomLineResult(outcome.result()));
else
return UpdateCustomLineOutcome(outcome.error());
}
void AlidnsClient::updateCustomLineAsync(const UpdateCustomLineRequest& request, const UpdateCustomLineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateCustomLine(request), context);
};
asyncExecute(new Runnable(fn));
}
AlidnsClient::UpdateCustomLineOutcomeCallable AlidnsClient::updateCustomLineCallable(const UpdateCustomLineRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateCustomLineOutcome()>>(
[this, request]()
{
return this->updateCustomLine(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
AlidnsClient::UpdateDNSSLBWeightOutcome AlidnsClient::updateDNSSLBWeight(const UpdateDNSSLBWeightRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,89 @@
/*
* 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/alidns/model/AddCustomLineRequest.h>
using AlibabaCloud::Alidns::Model::AddCustomLineRequest;
AddCustomLineRequest::AddCustomLineRequest() :
RpcServiceRequest("alidns", "2015-01-09", "AddCustomLine")
{
setMethod(HttpRequest::Method::Post);
}
AddCustomLineRequest::~AddCustomLineRequest()
{}
std::string AddCustomLineRequest::getDomainName()const
{
return domainName_;
}
void AddCustomLineRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setCoreParameter("DomainName", domainName);
}
std::vector<AddCustomLineRequest::IpSegment> AddCustomLineRequest::getIpSegment()const
{
return ipSegment_;
}
void AddCustomLineRequest::setIpSegment(const std::vector<IpSegment>& ipSegment)
{
ipSegment_ = ipSegment;
for(int dep1 = 0; dep1!= ipSegment.size(); dep1++) {
auto ipSegmentObj = ipSegment.at(dep1);
std::string ipSegmentObjStr = "IpSegment." + std::to_string(dep1);
setCoreParameter(ipSegmentObjStr + ".EndIp", ipSegmentObj.endIp);
setCoreParameter(ipSegmentObjStr + ".StartIp", ipSegmentObj.startIp);
}
}
std::string AddCustomLineRequest::getUserClientIp()const
{
return userClientIp_;
}
void AddCustomLineRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setCoreParameter("UserClientIp", userClientIp);
}
std::string AddCustomLineRequest::getLineName()const
{
return lineName_;
}
void AddCustomLineRequest::setLineName(const std::string& lineName)
{
lineName_ = lineName;
setCoreParameter("LineName", lineName);
}
std::string AddCustomLineRequest::getLang()const
{
return lang_;
}
void AddCustomLineRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}

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.
*/
#include <alibabacloud/alidns/model/AddCustomLineResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
AddCustomLineResult::AddCustomLineResult() :
ServiceResult()
{}
AddCustomLineResult::AddCustomLineResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddCustomLineResult::~AddCustomLineResult()
{}
void AddCustomLineResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["LineId"].isNull())
lineId_ = std::stol(value["LineId"].asString());
if(!value["LineCode"].isNull())
lineCode_ = value["LineCode"].asString();
}
long AddCustomLineResult::getLineId()const
{
return lineId_;
}
std::string AddCustomLineResult::getLineCode()const
{
return lineCode_;
}

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/alidns/model/AddDomainBackupRequest.h>
using AlibabaCloud::Alidns::Model::AddDomainBackupRequest;
AddDomainBackupRequest::AddDomainBackupRequest() :
RpcServiceRequest("alidns", "2015-01-09", "AddDomainBackup")
{
setMethod(HttpRequest::Method::Post);
}
AddDomainBackupRequest::~AddDomainBackupRequest()
{}
std::string AddDomainBackupRequest::getDomainName()const
{
return domainName_;
}
void AddDomainBackupRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setCoreParameter("DomainName", domainName);
}
std::string AddDomainBackupRequest::getPeriodType()const
{
return periodType_;
}
void AddDomainBackupRequest::setPeriodType(const std::string& periodType)
{
periodType_ = periodType;
setCoreParameter("PeriodType", periodType);
}
std::string AddDomainBackupRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void AddDomainBackupRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string AddDomainBackupRequest::getUserClientIp()const
{
return userClientIp_;
}
void AddDomainBackupRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setCoreParameter("UserClientIp", userClientIp);
}
std::string AddDomainBackupRequest::getLang()const
{
return lang_;
}
void AddDomainBackupRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}

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.
*/
#include <alibabacloud/alidns/model/AddDomainBackupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
AddDomainBackupResult::AddDomainBackupResult() :
ServiceResult()
{}
AddDomainBackupResult::AddDomainBackupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddDomainBackupResult::~AddDomainBackupResult()
{}
void AddDomainBackupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["DomainName"].isNull())
domainName_ = value["DomainName"].asString();
if(!value["PeriodType"].isNull())
periodType_ = value["PeriodType"].asString();
}
std::string AddDomainBackupResult::getPeriodType()const
{
return periodType_;
}
std::string AddDomainBackupResult::getDomainName()const
{
return domainName_;
}

View File

@@ -101,13 +101,12 @@ std::vector<AddGtmAddressPoolRequest::Addr> AddGtmAddressPoolRequest::getAddr()c
void AddGtmAddressPoolRequest::setAddr(const std::vector<Addr>& addr)
{
addr_ = addr;
int i = 0;
for(int i = 0; i!= addr.size(); i++) {
auto obj = addr.at(i);
std::string str ="Addr."+ std::to_string(i);
setCoreParameter(str + ".Mode", obj.mode);
setCoreParameter(str + ".LbaWeight", std::to_string(obj.lbaWeight));
setCoreParameter(str + ".Value", obj.value);
for(int dep1 = 0; dep1!= addr.size(); dep1++) {
auto addrObj = addr.at(dep1);
std::string addrObjStr = "Addr." + std::to_string(dep1);
setCoreParameter(addrObjStr + ".Mode", addrObj.mode);
setCoreParameter(addrObjStr + ".LbaWeight", std::to_string(addrObj.lbaWeight));
setCoreParameter(addrObjStr + ".Value", addrObj.value);
}
}
@@ -185,12 +184,11 @@ std::vector<AddGtmAddressPoolRequest::IspCityNode> AddGtmAddressPoolRequest::get
void AddGtmAddressPoolRequest::setIspCityNode(const std::vector<IspCityNode>& ispCityNode)
{
ispCityNode_ = ispCityNode;
int i = 0;
for(int i = 0; i!= ispCityNode.size(); i++) {
auto obj = ispCityNode.at(i);
std::string str ="IspCityNode."+ std::to_string(i);
setCoreParameter(str + ".CityCode", obj.cityCode);
setCoreParameter(str + ".IspCode", obj.ispCode);
for(int dep1 = 0; dep1!= ispCityNode.size(); dep1++) {
auto ispCityNodeObj = ispCityNode.at(dep1);
std::string ispCityNodeObjStr = "IspCityNode." + std::to_string(dep1);
setCoreParameter(ispCityNodeObjStr + ".CityCode", ispCityNodeObj.cityCode);
setCoreParameter(ispCityNodeObjStr + ".IspCode", ispCityNodeObj.ispCode);
}
}

View File

@@ -123,12 +123,11 @@ std::vector<AddGtmMonitorRequest::IspCityNode> AddGtmMonitorRequest::getIspCityN
void AddGtmMonitorRequest::setIspCityNode(const std::vector<IspCityNode>& ispCityNode)
{
ispCityNode_ = ispCityNode;
int i = 0;
for(int i = 0; i!= ispCityNode.size(); i++) {
auto obj = ispCityNode.at(i);
std::string str ="IspCityNode."+ std::to_string(i);
setCoreParameter(str + ".CityCode", obj.cityCode);
setCoreParameter(str + ".IspCode", obj.ispCode);
for(int dep1 = 0; dep1!= ispCityNode.size(); dep1++) {
auto ispCityNodeObj = ispCityNode.at(dep1);
std::string ispCityNodeObjStr = "IspCityNode." + std::to_string(dep1);
setCoreParameter(ispCityNodeObjStr + ".CityCode", ispCityNodeObj.cityCode);
setCoreParameter(ispCityNodeObjStr + ".IspCode", ispCityNodeObj.ispCode);
}
}

View File

@@ -0,0 +1,73 @@
/*
* 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/alidns/model/BindInstanceDomainsRequest.h>
using AlibabaCloud::Alidns::Model::BindInstanceDomainsRequest;
BindInstanceDomainsRequest::BindInstanceDomainsRequest() :
RpcServiceRequest("alidns", "2015-01-09", "BindInstanceDomains")
{
setMethod(HttpRequest::Method::Post);
}
BindInstanceDomainsRequest::~BindInstanceDomainsRequest()
{}
std::string BindInstanceDomainsRequest::getDomainNames()const
{
return domainNames_;
}
void BindInstanceDomainsRequest::setDomainNames(const std::string& domainNames)
{
domainNames_ = domainNames;
setCoreParameter("DomainNames", domainNames);
}
std::string BindInstanceDomainsRequest::getInstanceId()const
{
return instanceId_;
}
void BindInstanceDomainsRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setCoreParameter("InstanceId", instanceId);
}
std::string BindInstanceDomainsRequest::getUserClientIp()const
{
return userClientIp_;
}
void BindInstanceDomainsRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setCoreParameter("UserClientIp", userClientIp);
}
std::string BindInstanceDomainsRequest::getLang()const
{
return lang_;
}
void BindInstanceDomainsRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}

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.
*/
#include <alibabacloud/alidns/model/BindInstanceDomainsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
BindInstanceDomainsResult::BindInstanceDomainsResult() :
ServiceResult()
{}
BindInstanceDomainsResult::BindInstanceDomainsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
BindInstanceDomainsResult::~BindInstanceDomainsResult()
{}
void BindInstanceDomainsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["SuccessCount"].isNull())
successCount_ = std::stoi(value["SuccessCount"].asString());
if(!value["FailedCount"].isNull())
failedCount_ = std::stoi(value["FailedCount"].asString());
}
int BindInstanceDomainsResult::getFailedCount()const
{
return failedCount_;
}
int BindInstanceDomainsResult::getSuccessCount()const
{
return successCount_;
}

View File

@@ -0,0 +1,62 @@
/*
* 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/alidns/model/DeleteCustomLinesRequest.h>
using AlibabaCloud::Alidns::Model::DeleteCustomLinesRequest;
DeleteCustomLinesRequest::DeleteCustomLinesRequest() :
RpcServiceRequest("alidns", "2015-01-09", "DeleteCustomLines")
{
setMethod(HttpRequest::Method::Post);
}
DeleteCustomLinesRequest::~DeleteCustomLinesRequest()
{}
std::string DeleteCustomLinesRequest::getLineIds()const
{
return lineIds_;
}
void DeleteCustomLinesRequest::setLineIds(const std::string& lineIds)
{
lineIds_ = lineIds;
setCoreParameter("LineIds", lineIds);
}
std::string DeleteCustomLinesRequest::getUserClientIp()const
{
return userClientIp_;
}
void DeleteCustomLinesRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setCoreParameter("UserClientIp", userClientIp);
}
std::string DeleteCustomLinesRequest::getLang()const
{
return lang_;
}
void DeleteCustomLinesRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}

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

View File

@@ -93,3 +93,14 @@ void DescribeBatchResultDetailRequest::setTaskId(long taskId)
setCoreParameter("TaskId", std::to_string(taskId));
}
std::string DescribeBatchResultDetailRequest::getStatus()const
{
return status_;
}
void DescribeBatchResultDetailRequest::setStatus(const std::string& status)
{
status_ = status;
setCoreParameter("Status", status);
}

View File

@@ -0,0 +1,62 @@
/*
* 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/alidns/model/DescribeCustomLineRequest.h>
using AlibabaCloud::Alidns::Model::DescribeCustomLineRequest;
DescribeCustomLineRequest::DescribeCustomLineRequest() :
RpcServiceRequest("alidns", "2015-01-09", "DescribeCustomLine")
{
setMethod(HttpRequest::Method::Post);
}
DescribeCustomLineRequest::~DescribeCustomLineRequest()
{}
long DescribeCustomLineRequest::getLineId()const
{
return lineId_;
}
void DescribeCustomLineRequest::setLineId(long lineId)
{
lineId_ = lineId;
setCoreParameter("LineId", std::to_string(lineId));
}
std::string DescribeCustomLineRequest::getUserClientIp()const
{
return userClientIp_;
}
void DescribeCustomLineRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setCoreParameter("UserClientIp", userClientIp);
}
std::string DescribeCustomLineRequest::getLang()const
{
return lang_;
}
void DescribeCustomLineRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}

View File

@@ -0,0 +1,110 @@
/*
* 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/alidns/model/DescribeCustomLineResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
DescribeCustomLineResult::DescribeCustomLineResult() :
ServiceResult()
{}
DescribeCustomLineResult::DescribeCustomLineResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeCustomLineResult::~DescribeCustomLineResult()
{}
void DescribeCustomLineResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allIpSegmentListNode = value["IpSegmentList"]["IpSegment"];
for (auto valueIpSegmentListIpSegment : allIpSegmentListNode)
{
IpSegment ipSegmentListObject;
if(!valueIpSegmentListIpSegment["Name"].isNull())
ipSegmentListObject.name = valueIpSegmentListIpSegment["Name"].asString();
if(!valueIpSegmentListIpSegment["StartIp"].isNull())
ipSegmentListObject.startIp = valueIpSegmentListIpSegment["StartIp"].asString();
if(!valueIpSegmentListIpSegment["EndIp"].isNull())
ipSegmentListObject.endIp = valueIpSegmentListIpSegment["EndIp"].asString();
ipSegmentList_.push_back(ipSegmentListObject);
}
if(!value["Id"].isNull())
id_ = std::stol(value["Id"].asString());
if(!value["Name"].isNull())
name_ = value["Name"].asString();
if(!value["DomainName"].isNull())
domainName_ = value["DomainName"].asString();
if(!value["CreateTime"].isNull())
createTime_ = value["CreateTime"].asString();
if(!value["CreateTimestamp"].isNull())
createTimestamp_ = std::stol(value["CreateTimestamp"].asString());
if(!value["IpSegments"].isNull())
ipSegments_ = value["IpSegments"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
}
std::vector<DescribeCustomLineResult::IpSegment> DescribeCustomLineResult::getIpSegmentList()const
{
return ipSegmentList_;
}
std::string DescribeCustomLineResult::getDomainName()const
{
return domainName_;
}
std::string DescribeCustomLineResult::getCreateTime()const
{
return createTime_;
}
long DescribeCustomLineResult::getId()const
{
return id_;
}
std::string DescribeCustomLineResult::getIpSegments()const
{
return ipSegments_;
}
long DescribeCustomLineResult::getCreateTimestamp()const
{
return createTimestamp_;
}
std::string DescribeCustomLineResult::getCode()const
{
return code_;
}
std::string DescribeCustomLineResult::getName()const
{
return name_;
}

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/alidns/model/DescribeCustomLinesRequest.h>
using AlibabaCloud::Alidns::Model::DescribeCustomLinesRequest;
DescribeCustomLinesRequest::DescribeCustomLinesRequest() :
RpcServiceRequest("alidns", "2015-01-09", "DescribeCustomLines")
{
setMethod(HttpRequest::Method::Post);
}
DescribeCustomLinesRequest::~DescribeCustomLinesRequest()
{}
std::string DescribeCustomLinesRequest::getDomainName()const
{
return domainName_;
}
void DescribeCustomLinesRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setCoreParameter("DomainName", domainName);
}
long DescribeCustomLinesRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeCustomLinesRequest::setPageNumber(long pageNumber)
{
pageNumber_ = pageNumber;
setCoreParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeCustomLinesRequest::getUserClientIp()const
{
return userClientIp_;
}
void DescribeCustomLinesRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setCoreParameter("UserClientIp", userClientIp);
}
long DescribeCustomLinesRequest::getPageSize()const
{
return pageSize_;
}
void DescribeCustomLinesRequest::setPageSize(long pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeCustomLinesRequest::getLang()const
{
return lang_;
}
void DescribeCustomLinesRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}

View File

@@ -0,0 +1,107 @@
/*
* 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/alidns/model/DescribeCustomLinesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
DescribeCustomLinesResult::DescribeCustomLinesResult() :
ServiceResult()
{}
DescribeCustomLinesResult::DescribeCustomLinesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeCustomLinesResult::~DescribeCustomLinesResult()
{}
void DescribeCustomLinesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allCustomLinesNode = value["CustomLines"]["CustomLine"];
for (auto valueCustomLinesCustomLine : allCustomLinesNode)
{
CustomLine customLinesObject;
if(!valueCustomLinesCustomLine["Id"].isNull())
customLinesObject.id = std::stol(valueCustomLinesCustomLine["Id"].asString());
if(!valueCustomLinesCustomLine["Name"].isNull())
customLinesObject.name = valueCustomLinesCustomLine["Name"].asString();
if(!valueCustomLinesCustomLine["CreateTime"].isNull())
customLinesObject.createTime = valueCustomLinesCustomLine["CreateTime"].asString();
if(!valueCustomLinesCustomLine["CreateTimestamp"].isNull())
customLinesObject.createTimestamp = std::stol(valueCustomLinesCustomLine["CreateTimestamp"].asString());
if(!valueCustomLinesCustomLine["IpSegments"].isNull())
customLinesObject.ipSegments = valueCustomLinesCustomLine["IpSegments"].asString();
if(!valueCustomLinesCustomLine["Code"].isNull())
customLinesObject.code = valueCustomLinesCustomLine["Code"].asString();
auto allIpSegmentListNode = allCustomLinesNode["IpSegmentList"]["IpSegment"];
for (auto allCustomLinesNodeIpSegmentListIpSegment : allIpSegmentListNode)
{
CustomLine::IpSegment ipSegmentListObject;
if(!allCustomLinesNodeIpSegmentListIpSegment["Name"].isNull())
ipSegmentListObject.name = allCustomLinesNodeIpSegmentListIpSegment["Name"].asString();
if(!allCustomLinesNodeIpSegmentListIpSegment["StartIp"].isNull())
ipSegmentListObject.startIp = allCustomLinesNodeIpSegmentListIpSegment["StartIp"].asString();
if(!allCustomLinesNodeIpSegmentListIpSegment["EndIp"].isNull())
ipSegmentListObject.endIp = allCustomLinesNodeIpSegmentListIpSegment["EndIp"].asString();
customLinesObject.ipSegmentList.push_back(ipSegmentListObject);
}
customLines_.push_back(customLinesObject);
}
if(!value["TotalItems"].isNull())
totalItems_ = std::stoi(value["TotalItems"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["TotalPages"].isNull())
totalPages_ = std::stoi(value["TotalPages"].asString());
}
int DescribeCustomLinesResult::getPageSize()const
{
return pageSize_;
}
int DescribeCustomLinesResult::getPageNumber()const
{
return pageNumber_;
}
int DescribeCustomLinesResult::getTotalPages()const
{
return totalPages_;
}
std::vector<DescribeCustomLinesResult::CustomLine> DescribeCustomLinesResult::getCustomLines()const
{
return customLines_;
}
int DescribeCustomLinesResult::getTotalItems()const
{
return totalItems_;
}

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/alidns/model/DescribeTransferDomainsRequest.h>
using AlibabaCloud::Alidns::Model::DescribeTransferDomainsRequest;
DescribeTransferDomainsRequest::DescribeTransferDomainsRequest() :
RpcServiceRequest("alidns", "2015-01-09", "DescribeTransferDomains")
{
setMethod(HttpRequest::Method::Post);
}
DescribeTransferDomainsRequest::~DescribeTransferDomainsRequest()
{}
long DescribeTransferDomainsRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeTransferDomainsRequest::setPageNumber(long pageNumber)
{
pageNumber_ = pageNumber;
setCoreParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeTransferDomainsRequest::getTransferType()const
{
return transferType_;
}
void DescribeTransferDomainsRequest::setTransferType(const std::string& transferType)
{
transferType_ = transferType;
setCoreParameter("TransferType", transferType);
}
std::string DescribeTransferDomainsRequest::getUserClientIp()const
{
return userClientIp_;
}
void DescribeTransferDomainsRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setCoreParameter("UserClientIp", userClientIp);
}
long DescribeTransferDomainsRequest::getPageSize()const
{
return pageSize_;
}
void DescribeTransferDomainsRequest::setPageSize(long pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeTransferDomainsRequest::getLang()const
{
return lang_;
}
void DescribeTransferDomainsRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}

View File

@@ -0,0 +1,88 @@
/*
* 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/alidns/model/DescribeTransferDomainsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
DescribeTransferDomainsResult::DescribeTransferDomainsResult() :
ServiceResult()
{}
DescribeTransferDomainsResult::DescribeTransferDomainsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeTransferDomainsResult::~DescribeTransferDomainsResult()
{}
void DescribeTransferDomainsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDomainTransfersNode = value["DomainTransfers"]["DomainTransfer"];
for (auto valueDomainTransfersDomainTransfer : allDomainTransfersNode)
{
DomainTransfer domainTransfersObject;
if(!valueDomainTransfersDomainTransfer["DomainName"].isNull())
domainTransfersObject.domainName = valueDomainTransfersDomainTransfer["DomainName"].asString();
if(!valueDomainTransfersDomainTransfer["CreateTime"].isNull())
domainTransfersObject.createTime = valueDomainTransfersDomainTransfer["CreateTime"].asString();
if(!valueDomainTransfersDomainTransfer["CreateTimestamp"].isNull())
domainTransfersObject.createTimestamp = std::stol(valueDomainTransfersDomainTransfer["CreateTimestamp"].asString());
if(!valueDomainTransfersDomainTransfer["FromUserId"].isNull())
domainTransfersObject.fromUserId = std::stol(valueDomainTransfersDomainTransfer["FromUserId"].asString());
if(!valueDomainTransfersDomainTransfer["TargetUserId"].isNull())
domainTransfersObject.targetUserId = std::stol(valueDomainTransfersDomainTransfer["TargetUserId"].asString());
if(!valueDomainTransfersDomainTransfer["Id"].isNull())
domainTransfersObject.id = std::stol(valueDomainTransfersDomainTransfer["Id"].asString());
domainTransfers_.push_back(domainTransfersObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stol(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stol(value["PageSize"].asString());
}
long DescribeTransferDomainsResult::getTotalCount()const
{
return totalCount_;
}
long DescribeTransferDomainsResult::getPageSize()const
{
return pageSize_;
}
long DescribeTransferDomainsResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<DescribeTransferDomainsResult::DomainTransfer> DescribeTransferDomainsResult::getDomainTransfers()const
{
return domainTransfers_;
}

View File

@@ -35,20 +35,19 @@ std::vector<OperateBatchDomainRequest::DomainRecordInfo> OperateBatchDomainReque
void OperateBatchDomainRequest::setDomainRecordInfo(const std::vector<DomainRecordInfo>& domainRecordInfo)
{
domainRecordInfo_ = domainRecordInfo;
int i = 0;
for(int i = 0; i!= domainRecordInfo.size(); i++) {
auto obj = domainRecordInfo.at(i);
std::string str ="DomainRecordInfo."+ std::to_string(i);
setCoreParameter(str + ".Rr", obj.rr);
setCoreParameter(str + ".NewType", obj.newType);
setCoreParameter(str + ".NewValue", obj.newValue);
setCoreParameter(str + ".Line", obj.line);
setCoreParameter(str + ".Domain", obj.domain);
setCoreParameter(str + ".Type", obj.type);
setCoreParameter(str + ".Priority", std::to_string(obj.priority));
setCoreParameter(str + ".Value", obj.value);
setCoreParameter(str + ".Ttl", std::to_string(obj.ttl));
setCoreParameter(str + ".NewRr", obj.newRr);
for(int dep1 = 0; dep1!= domainRecordInfo.size(); dep1++) {
auto domainRecordInfoObj = domainRecordInfo.at(dep1);
std::string domainRecordInfoObjStr = "DomainRecordInfo." + std::to_string(dep1);
setCoreParameter(domainRecordInfoObjStr + ".Rr", domainRecordInfoObj.rr);
setCoreParameter(domainRecordInfoObjStr + ".NewType", domainRecordInfoObj.newType);
setCoreParameter(domainRecordInfoObjStr + ".NewValue", domainRecordInfoObj.newValue);
setCoreParameter(domainRecordInfoObjStr + ".Line", domainRecordInfoObj.line);
setCoreParameter(domainRecordInfoObjStr + ".Domain", domainRecordInfoObj.domain);
setCoreParameter(domainRecordInfoObjStr + ".Type", domainRecordInfoObj.type);
setCoreParameter(domainRecordInfoObjStr + ".Priority", std::to_string(domainRecordInfoObj.priority));
setCoreParameter(domainRecordInfoObjStr + ".Value", domainRecordInfoObj.value);
setCoreParameter(domainRecordInfoObjStr + ".Ttl", std::to_string(domainRecordInfoObj.ttl));
setCoreParameter(domainRecordInfoObjStr + ".NewRr", domainRecordInfoObj.newRr);
}
}

View File

@@ -0,0 +1,95 @@
/*
* 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/alidns/model/TransferDomainRequest.h>
using AlibabaCloud::Alidns::Model::TransferDomainRequest;
TransferDomainRequest::TransferDomainRequest() :
RpcServiceRequest("alidns", "2015-01-09", "TransferDomain")
{
setMethod(HttpRequest::Method::Post);
}
TransferDomainRequest::~TransferDomainRequest()
{}
std::string TransferDomainRequest::getDomainNames()const
{
return domainNames_;
}
void TransferDomainRequest::setDomainNames(const std::string& domainNames)
{
domainNames_ = domainNames;
setCoreParameter("DomainNames", domainNames);
}
std::string TransferDomainRequest::getRemark()const
{
return remark_;
}
void TransferDomainRequest::setRemark(const std::string& remark)
{
remark_ = remark;
setCoreParameter("Remark", remark);
}
std::string TransferDomainRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void TransferDomainRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
long TransferDomainRequest::getTargetUserId()const
{
return targetUserId_;
}
void TransferDomainRequest::setTargetUserId(long targetUserId)
{
targetUserId_ = targetUserId;
setCoreParameter("TargetUserId", std::to_string(targetUserId));
}
std::string TransferDomainRequest::getUserClientIp()const
{
return userClientIp_;
}
void TransferDomainRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setCoreParameter("UserClientIp", userClientIp);
}
std::string TransferDomainRequest::getLang()const
{
return lang_;
}
void TransferDomainRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("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/alidns/model/TransferDomainResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
TransferDomainResult::TransferDomainResult() :
ServiceResult()
{}
TransferDomainResult::TransferDomainResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
TransferDomainResult::~TransferDomainResult()
{}
void TransferDomainResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["TaskId"].isNull())
taskId_ = std::stol(value["TaskId"].asString());
}
long TransferDomainResult::getTaskId()const
{
return taskId_;
}

View File

@@ -0,0 +1,73 @@
/*
* 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/alidns/model/UnbindInstanceDomainsRequest.h>
using AlibabaCloud::Alidns::Model::UnbindInstanceDomainsRequest;
UnbindInstanceDomainsRequest::UnbindInstanceDomainsRequest() :
RpcServiceRequest("alidns", "2015-01-09", "UnbindInstanceDomains")
{
setMethod(HttpRequest::Method::Post);
}
UnbindInstanceDomainsRequest::~UnbindInstanceDomainsRequest()
{}
std::string UnbindInstanceDomainsRequest::getDomainNames()const
{
return domainNames_;
}
void UnbindInstanceDomainsRequest::setDomainNames(const std::string& domainNames)
{
domainNames_ = domainNames;
setCoreParameter("DomainNames", domainNames);
}
std::string UnbindInstanceDomainsRequest::getInstanceId()const
{
return instanceId_;
}
void UnbindInstanceDomainsRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setCoreParameter("InstanceId", instanceId);
}
std::string UnbindInstanceDomainsRequest::getUserClientIp()const
{
return userClientIp_;
}
void UnbindInstanceDomainsRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setCoreParameter("UserClientIp", userClientIp);
}
std::string UnbindInstanceDomainsRequest::getLang()const
{
return lang_;
}
void UnbindInstanceDomainsRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}

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.
*/
#include <alibabacloud/alidns/model/UnbindInstanceDomainsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Alidns;
using namespace AlibabaCloud::Alidns::Model;
UnbindInstanceDomainsResult::UnbindInstanceDomainsResult() :
ServiceResult()
{}
UnbindInstanceDomainsResult::UnbindInstanceDomainsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UnbindInstanceDomainsResult::~UnbindInstanceDomainsResult()
{}
void UnbindInstanceDomainsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["SuccessCount"].isNull())
successCount_ = std::stoi(value["SuccessCount"].asString());
if(!value["FailedCount"].isNull())
failedCount_ = std::stoi(value["FailedCount"].asString());
}
int UnbindInstanceDomainsResult::getFailedCount()const
{
return failedCount_;
}
int UnbindInstanceDomainsResult::getSuccessCount()const
{
return successCount_;
}

View File

@@ -0,0 +1,89 @@
/*
* 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/alidns/model/UpdateCustomLineRequest.h>
using AlibabaCloud::Alidns::Model::UpdateCustomLineRequest;
UpdateCustomLineRequest::UpdateCustomLineRequest() :
RpcServiceRequest("alidns", "2015-01-09", "UpdateCustomLine")
{
setMethod(HttpRequest::Method::Post);
}
UpdateCustomLineRequest::~UpdateCustomLineRequest()
{}
long UpdateCustomLineRequest::getLineId()const
{
return lineId_;
}
void UpdateCustomLineRequest::setLineId(long lineId)
{
lineId_ = lineId;
setCoreParameter("LineId", std::to_string(lineId));
}
std::vector<UpdateCustomLineRequest::IpSegment> UpdateCustomLineRequest::getIpSegment()const
{
return ipSegment_;
}
void UpdateCustomLineRequest::setIpSegment(const std::vector<IpSegment>& ipSegment)
{
ipSegment_ = ipSegment;
for(int dep1 = 0; dep1!= ipSegment.size(); dep1++) {
auto ipSegmentObj = ipSegment.at(dep1);
std::string ipSegmentObjStr = "IpSegment." + std::to_string(dep1);
setCoreParameter(ipSegmentObjStr + ".EndIp", ipSegmentObj.endIp);
setCoreParameter(ipSegmentObjStr + ".StartIp", ipSegmentObj.startIp);
}
}
std::string UpdateCustomLineRequest::getUserClientIp()const
{
return userClientIp_;
}
void UpdateCustomLineRequest::setUserClientIp(const std::string& userClientIp)
{
userClientIp_ = userClientIp;
setCoreParameter("UserClientIp", userClientIp);
}
std::string UpdateCustomLineRequest::getLineName()const
{
return lineName_;
}
void UpdateCustomLineRequest::setLineName(const std::string& lineName)
{
lineName_ = lineName;
setCoreParameter("LineName", lineName);
}
std::string UpdateCustomLineRequest::getLang()const
{
return lang_;
}
void UpdateCustomLineRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}

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

View File

@@ -101,13 +101,12 @@ std::vector<UpdateGtmAddressPoolRequest::Addr> UpdateGtmAddressPoolRequest::getA
void UpdateGtmAddressPoolRequest::setAddr(const std::vector<Addr>& addr)
{
addr_ = addr;
int i = 0;
for(int i = 0; i!= addr.size(); i++) {
auto obj = addr.at(i);
std::string str ="Addr."+ std::to_string(i);
setCoreParameter(str + ".Mode", obj.mode);
setCoreParameter(str + ".LbaWeight", std::to_string(obj.lbaWeight));
setCoreParameter(str + ".Value", obj.value);
for(int dep1 = 0; dep1!= addr.size(); dep1++) {
auto addrObj = addr.at(dep1);
std::string addrObjStr = "Addr." + std::to_string(dep1);
setCoreParameter(addrObjStr + ".Mode", addrObj.mode);
setCoreParameter(addrObjStr + ".LbaWeight", std::to_string(addrObj.lbaWeight));
setCoreParameter(addrObjStr + ".Value", addrObj.value);
}
}

View File

@@ -123,12 +123,11 @@ std::vector<UpdateGtmMonitorRequest::IspCityNode> UpdateGtmMonitorRequest::getIs
void UpdateGtmMonitorRequest::setIspCityNode(const std::vector<IspCityNode>& ispCityNode)
{
ispCityNode_ = ispCityNode;
int i = 0;
for(int i = 0; i!= ispCityNode.size(); i++) {
auto obj = ispCityNode.at(i);
std::string str ="IspCityNode."+ std::to_string(i);
setCoreParameter(str + ".CityCode", obj.cityCode);
setCoreParameter(str + ".IspCode", obj.ispCode);
for(int dep1 = 0; dep1!= ispCityNode.size(); dep1++) {
auto ispCityNodeObj = ispCityNode.at(dep1);
std::string ispCityNodeObjStr = "IspCityNode." + std::to_string(dep1);
setCoreParameter(ispCityNodeObjStr + ".CityCode", ispCityNodeObj.cityCode);
setCoreParameter(ispCityNodeObjStr + ".IspCode", ispCityNodeObj.ispCode);
}
}

View File

@@ -105,6 +105,8 @@ set(bssopenapi_public_header_model
include/alibabacloud/bssopenapi/model/QueryPrepaidCardsResult.h
include/alibabacloud/bssopenapi/model/QueryProductListRequest.h
include/alibabacloud/bssopenapi/model/QueryProductListResult.h
include/alibabacloud/bssopenapi/model/QueryRIUtilizationDetailRequest.h
include/alibabacloud/bssopenapi/model/QueryRIUtilizationDetailResult.h
include/alibabacloud/bssopenapi/model/QueryRedeemRequest.h
include/alibabacloud/bssopenapi/model/QueryRedeemResult.h
include/alibabacloud/bssopenapi/model/QueryResellerAvailableQuotaRequest.h
@@ -220,6 +222,8 @@ set(bssopenapi_src
src/model/QueryPrepaidCardsResult.cc
src/model/QueryProductListRequest.cc
src/model/QueryProductListResult.cc
src/model/QueryRIUtilizationDetailRequest.cc
src/model/QueryRIUtilizationDetailResult.cc
src/model/QueryRedeemRequest.cc
src/model/QueryRedeemResult.cc
src/model/QueryResellerAvailableQuotaRequest.cc

View File

@@ -106,6 +106,8 @@
#include "model/QueryPrepaidCardsResult.h"
#include "model/QueryProductListRequest.h"
#include "model/QueryProductListResult.h"
#include "model/QueryRIUtilizationDetailRequest.h"
#include "model/QueryRIUtilizationDetailResult.h"
#include "model/QueryRedeemRequest.h"
#include "model/QueryRedeemResult.h"
#include "model/QueryResellerAvailableQuotaRequest.h"
@@ -269,6 +271,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::QueryProductListResult> QueryProductListOutcome;
typedef std::future<QueryProductListOutcome> QueryProductListOutcomeCallable;
typedef std::function<void(const BssOpenApiClient*, const Model::QueryProductListRequest&, const QueryProductListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryProductListAsyncHandler;
typedef Outcome<Error, Model::QueryRIUtilizationDetailResult> QueryRIUtilizationDetailOutcome;
typedef std::future<QueryRIUtilizationDetailOutcome> QueryRIUtilizationDetailOutcomeCallable;
typedef std::function<void(const BssOpenApiClient*, const Model::QueryRIUtilizationDetailRequest&, const QueryRIUtilizationDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryRIUtilizationDetailAsyncHandler;
typedef Outcome<Error, Model::QueryRedeemResult> QueryRedeemOutcome;
typedef std::future<QueryRedeemOutcome> QueryRedeemOutcomeCallable;
typedef std::function<void(const BssOpenApiClient*, const Model::QueryRedeemRequest&, const QueryRedeemOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryRedeemAsyncHandler;
@@ -442,6 +447,9 @@ namespace AlibabaCloud
QueryProductListOutcome queryProductList(const Model::QueryProductListRequest &request)const;
void queryProductListAsync(const Model::QueryProductListRequest& request, const QueryProductListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryProductListOutcomeCallable queryProductListCallable(const Model::QueryProductListRequest& request) const;
QueryRIUtilizationDetailOutcome queryRIUtilizationDetail(const Model::QueryRIUtilizationDetailRequest &request)const;
void queryRIUtilizationDetailAsync(const Model::QueryRIUtilizationDetailRequest& request, const QueryRIUtilizationDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryRIUtilizationDetailOutcomeCallable queryRIUtilizationDetailCallable(const Model::QueryRIUtilizationDetailRequest& request) const;
QueryRedeemOutcome queryRedeem(const Model::QueryRedeemRequest &request)const;
void queryRedeemAsync(const Model::QueryRedeemRequest& request, const QueryRedeemAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryRedeemOutcomeCallable queryRedeemCallable(const Model::QueryRedeemRequest& request) const;

View File

@@ -38,6 +38,7 @@ namespace AlibabaCloud
{
float afterTaxAmount;
std::string productName;
std::string subOrderId;
float deductedByCashCoupons;
std::string paymentTime;
float tax;

View File

@@ -0,0 +1,69 @@
/*
* 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_BSSOPENAPI_MODEL_QUERYRIUTILIZATIONDETAILREQUEST_H_
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRIUTILIZATIONDETAILREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/bssopenapi/BssOpenApiExport.h>
namespace AlibabaCloud
{
namespace BssOpenApi
{
namespace Model
{
class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryRIUtilizationDetailRequest : public RpcServiceRequest
{
public:
QueryRIUtilizationDetailRequest();
~QueryRIUtilizationDetailRequest();
std::string getDeductedInstanceId()const;
void setDeductedInstanceId(const std::string& deductedInstanceId);
std::string getInstanceSpec()const;
void setInstanceSpec(const std::string& instanceSpec);
std::string getEndTime()const;
void setEndTime(const std::string& endTime);
std::string getRIInstanceId()const;
void setRIInstanceId(const std::string& rIInstanceId);
std::string getStartTime()const;
void setStartTime(const std::string& startTime);
int getPageNum()const;
void setPageNum(int pageNum);
int getPageSize()const;
void setPageSize(int pageSize);
std::string getRICommodityCode()const;
void setRICommodityCode(const std::string& rICommodityCode);
private:
std::string deductedInstanceId_;
std::string instanceSpec_;
std::string endTime_;
std::string rIInstanceId_;
std::string startTime_;
int pageNum_;
int pageSize_;
std::string rICommodityCode_;
};
}
}
}
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRIUTILIZATIONDETAILREQUEST_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_BSSOPENAPI_MODEL_QUERYRIUTILIZATIONDETAILRESULT_H_
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRIUTILIZATIONDETAILRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/bssopenapi/BssOpenApiExport.h>
namespace AlibabaCloud
{
namespace BssOpenApi
{
namespace Model
{
class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryRIUtilizationDetailResult : public ServiceResult
{
public:
struct Data
{
struct DetailListItem
{
std::string deductDate;
std::string instanceSpec;
std::string rIInstanceId;
std::string deductedProductDetail;
std::string deductedCommodityCode;
std::string deductedInstanceId;
std::string deductHours;
};
long totalCount;
long pageNum;
long pageSize;
std::vector<DetailListItem> detailList;
};
QueryRIUtilizationDetailResult();
explicit QueryRIUtilizationDetailResult(const std::string &payload);
~QueryRIUtilizationDetailResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRIUTILIZATIONDETAILRESULT_H_

View File

@@ -1563,6 +1563,42 @@ BssOpenApiClient::QueryProductListOutcomeCallable BssOpenApiClient::queryProduct
return task->get_future();
}
BssOpenApiClient::QueryRIUtilizationDetailOutcome BssOpenApiClient::queryRIUtilizationDetail(const QueryRIUtilizationDetailRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return QueryRIUtilizationDetailOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return QueryRIUtilizationDetailOutcome(QueryRIUtilizationDetailResult(outcome.result()));
else
return QueryRIUtilizationDetailOutcome(outcome.error());
}
void BssOpenApiClient::queryRIUtilizationDetailAsync(const QueryRIUtilizationDetailRequest& request, const QueryRIUtilizationDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, queryRIUtilizationDetail(request), context);
};
asyncExecute(new Runnable(fn));
}
BssOpenApiClient::QueryRIUtilizationDetailOutcomeCallable BssOpenApiClient::queryRIUtilizationDetailCallable(const QueryRIUtilizationDetailRequest &request) const
{
auto task = std::make_shared<std::packaged_task<QueryRIUtilizationDetailOutcome()>>(
[this, request]()
{
return this->queryRIUtilizationDetail(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
BssOpenApiClient::QueryRedeemOutcome BssOpenApiClient::queryRedeem(const QueryRedeemRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -35,13 +35,12 @@ std::vector<AllocateCostUnitResourceRequest::ResourceInstanceList> AllocateCostU
void AllocateCostUnitResourceRequest::setResourceInstanceList(const std::vector<ResourceInstanceList>& resourceInstanceList)
{
resourceInstanceList_ = resourceInstanceList;
int i = 0;
for(int i = 0; i!= resourceInstanceList.size(); i++) {
auto obj = resourceInstanceList.at(i);
std::string str ="ResourceInstanceList."+ std::to_string(i);
setCoreParameter(str + ".ResourceId", obj.resourceId);
setCoreParameter(str + ".CommodityCode", obj.commodityCode);
setCoreParameter(str + ".ResourceUserId", std::to_string(obj.resourceUserId));
for(int dep1 = 0; dep1!= resourceInstanceList.size(); dep1++) {
auto resourceInstanceListObj = resourceInstanceList.at(dep1);
std::string resourceInstanceListObjStr = "ResourceInstanceList." + std::to_string(dep1);
setCoreParameter(resourceInstanceListObjStr + ".ResourceId", resourceInstanceListObj.resourceId);
setCoreParameter(resourceInstanceListObjStr + ".CommodityCode", resourceInstanceListObj.commodityCode);
setCoreParameter(resourceInstanceListObjStr + ".ResourceUserId", std::to_string(resourceInstanceListObj.resourceUserId));
}
}

View File

@@ -134,8 +134,9 @@ std::vector<long> ApplyInvoiceRequest::getSelectedIds()const
void ApplyInvoiceRequest::setSelectedIds(const std::vector<long>& selectedIds)
{
selectedIds_ = selectedIds;
for(int i = 0; i!= selectedIds.size(); i++)
setCoreParameter("SelectedIds."+ std::to_string(i), std::to_string(selectedIds.at(i)));
for(int dep1 = 0; dep1!= selectedIds.size(); dep1++) {
setCoreParameter("SelectedIds."+ std::to_string(dep1), std::to_string(selectedIds.at(dep1)));
}
}
long ApplyInvoiceRequest::getCallerUid()const

View File

@@ -35,13 +35,12 @@ std::vector<CreateCostUnitRequest::UnitEntityList> CreateCostUnitRequest::getUni
void CreateCostUnitRequest::setUnitEntityList(const std::vector<UnitEntityList>& unitEntityList)
{
unitEntityList_ = unitEntityList;
int i = 0;
for(int i = 0; i!= unitEntityList.size(); i++) {
auto obj = unitEntityList.at(i);
std::string str ="UnitEntityList."+ std::to_string(i);
setCoreParameter(str + ".UnitName", obj.unitName);
setCoreParameter(str + ".ParentUnitId", std::to_string(obj.parentUnitId));
setCoreParameter(str + ".OwnerUid", std::to_string(obj.ownerUid));
for(int dep1 = 0; dep1!= unitEntityList.size(); dep1++) {
auto unitEntityListObj = unitEntityList.at(dep1);
std::string unitEntityListObjStr = "UnitEntityList." + std::to_string(dep1);
setCoreParameter(unitEntityListObjStr + ".UnitName", unitEntityListObj.unitName);
setCoreParameter(unitEntityListObjStr + ".ParentUnitId", std::to_string(unitEntityListObj.parentUnitId));
setCoreParameter(unitEntityListObjStr + ".OwnerUid", std::to_string(unitEntityListObj.ownerUid));
}
}

View File

@@ -112,12 +112,11 @@ std::vector<CreateInstanceRequest::Parameter> CreateInstanceRequest::getParamete
void CreateInstanceRequest::setParameter(const std::vector<Parameter>& parameter)
{
parameter_ = parameter;
int i = 0;
for(int i = 0; i!= parameter.size(); i++) {
auto obj = parameter.at(i);
std::string str ="Parameter."+ std::to_string(i);
setCoreParameter(str + ".Code", obj.code);
setCoreParameter(str + ".Value", obj.value);
for(int dep1 = 0; dep1!= parameter.size(); dep1++) {
auto parameterObj = parameter.at(dep1);
std::string parameterObjStr = "Parameter." + std::to_string(dep1);
setCoreParameter(parameterObjStr + ".Code", parameterObj.code);
setCoreParameter(parameterObjStr + ".Value", parameterObj.value);
}
}

View File

@@ -57,13 +57,12 @@ std::vector<GetPayAsYouGoPriceRequest::ModuleList> GetPayAsYouGoPriceRequest::ge
void GetPayAsYouGoPriceRequest::setModuleList(const std::vector<ModuleList>& moduleList)
{
moduleList_ = moduleList;
int i = 0;
for(int i = 0; i!= moduleList.size(); i++) {
auto obj = moduleList.at(i);
std::string str ="ModuleList."+ std::to_string(i);
setCoreParameter(str + ".ModuleCode", obj.moduleCode);
setCoreParameter(str + ".PriceType", obj.priceType);
setCoreParameter(str + ".Config", obj.config);
for(int dep1 = 0; dep1!= moduleList.size(); dep1++) {
auto moduleListObj = moduleList.at(dep1);
std::string moduleListObjStr = "ModuleList." + std::to_string(dep1);
setCoreParameter(moduleListObjStr + ".ModuleCode", moduleListObj.moduleCode);
setCoreParameter(moduleListObjStr + ".PriceType", moduleListObj.priceType);
setCoreParameter(moduleListObjStr + ".Config", moduleListObj.config);
}
}

View File

@@ -68,14 +68,13 @@ std::vector<GetSubscriptionPriceRequest::ModuleList> GetSubscriptionPriceRequest
void GetSubscriptionPriceRequest::setModuleList(const std::vector<ModuleList>& moduleList)
{
moduleList_ = moduleList;
int i = 0;
for(int i = 0; i!= moduleList.size(); i++) {
auto obj = moduleList.at(i);
std::string str ="ModuleList."+ std::to_string(i);
setCoreParameter(str + ".ModuleCode", obj.moduleCode);
setCoreParameter(str + ".ModuleStatus", std::to_string(obj.moduleStatus));
setCoreParameter(str + ".Tag", obj.tag);
setCoreParameter(str + ".Config", obj.config);
for(int dep1 = 0; dep1!= moduleList.size(); dep1++) {
auto moduleListObj = moduleList.at(dep1);
std::string moduleListObjStr = "ModuleList." + std::to_string(dep1);
setCoreParameter(moduleListObjStr + ".ModuleCode", moduleListObj.moduleCode);
setCoreParameter(moduleListObjStr + ".ModuleStatus", std::to_string(moduleListObj.moduleStatus));
setCoreParameter(moduleListObjStr + ".Tag", moduleListObj.tag);
setCoreParameter(moduleListObjStr + ".Config", moduleListObj.config);
}
}

View File

@@ -35,13 +35,12 @@ std::vector<ModifyCostUnitRequest::UnitEntityList> ModifyCostUnitRequest::getUni
void ModifyCostUnitRequest::setUnitEntityList(const std::vector<UnitEntityList>& unitEntityList)
{
unitEntityList_ = unitEntityList;
int i = 0;
for(int i = 0; i!= unitEntityList.size(); i++) {
auto obj = unitEntityList.at(i);
std::string str ="UnitEntityList."+ std::to_string(i);
setCoreParameter(str + ".NewUnitName", obj.newUnitName);
setCoreParameter(str + ".UnitId", std::to_string(obj.unitId));
setCoreParameter(str + ".OwnerUid", std::to_string(obj.ownerUid));
for(int dep1 = 0; dep1!= unitEntityList.size(); dep1++) {
auto unitEntityListObj = unitEntityList.at(dep1);
std::string unitEntityListObjStr = "UnitEntityList." + std::to_string(dep1);
setCoreParameter(unitEntityListObjStr + ".NewUnitName", unitEntityListObj.newUnitName);
setCoreParameter(unitEntityListObjStr + ".UnitId", std::to_string(unitEntityListObj.unitId));
setCoreParameter(unitEntityListObjStr + ".OwnerUid", std::to_string(unitEntityListObj.ownerUid));
}
}

View File

@@ -112,12 +112,11 @@ std::vector<ModifyInstanceRequest::Parameter> ModifyInstanceRequest::getParamete
void ModifyInstanceRequest::setParameter(const std::vector<Parameter>& parameter)
{
parameter_ = parameter;
int i = 0;
for(int i = 0; i!= parameter.size(); i++) {
auto obj = parameter.at(i);
std::string str ="Parameter."+ std::to_string(i);
setCoreParameter(str + ".Code", obj.code);
setCoreParameter(str + ".Value", obj.value);
for(int dep1 = 0; dep1!= parameter.size(); dep1++) {
auto parameterObj = parameter.at(dep1);
std::string parameterObjStr = "Parameter." + std::to_string(dep1);
setCoreParameter(parameterObjStr + ".Code", parameterObj.code);
setCoreParameter(parameterObjStr + ".Value", parameterObj.value);
}
}

View File

@@ -110,6 +110,8 @@ void QueryBillResult::parse(const std::string &payload)
itemObject.paymentTransactionID = dataNodeItemsItem["PaymentTransactionID"].asString();
if(!dataNodeItemsItem["RoundDownDiscount"].isNull())
itemObject.roundDownDiscount = dataNodeItemsItem["RoundDownDiscount"].asString();
if(!dataNodeItemsItem["SubOrderId"].isNull())
itemObject.subOrderId = dataNodeItemsItem["SubOrderId"].asString();
data_.items.push_back(itemObject);
}
if(!value["Success"].isNull())

View File

@@ -123,8 +123,9 @@ std::vector<std::string> QueryEvaluateListRequest::getBizTypeList()const
void QueryEvaluateListRequest::setBizTypeList(const std::vector<std::string>& bizTypeList)
{
bizTypeList_ = bizTypeList;
for(int i = 0; i!= bizTypeList.size(); i++)
setCoreParameter("BizTypeList."+ std::to_string(i), bizTypeList.at(i));
for(int dep1 = 0; dep1!= bizTypeList.size(); dep1++) {
setCoreParameter("BizTypeList."+ std::to_string(dep1), bizTypeList.at(dep1));
}
}
long QueryEvaluateListRequest::getOwnerId()const

View File

@@ -0,0 +1,117 @@
/*
* 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/bssopenapi/model/QueryRIUtilizationDetailRequest.h>
using AlibabaCloud::BssOpenApi::Model::QueryRIUtilizationDetailRequest;
QueryRIUtilizationDetailRequest::QueryRIUtilizationDetailRequest() :
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryRIUtilizationDetail")
{
setMethod(HttpRequest::Method::Post);
}
QueryRIUtilizationDetailRequest::~QueryRIUtilizationDetailRequest()
{}
std::string QueryRIUtilizationDetailRequest::getDeductedInstanceId()const
{
return deductedInstanceId_;
}
void QueryRIUtilizationDetailRequest::setDeductedInstanceId(const std::string& deductedInstanceId)
{
deductedInstanceId_ = deductedInstanceId;
setCoreParameter("DeductedInstanceId", deductedInstanceId);
}
std::string QueryRIUtilizationDetailRequest::getInstanceSpec()const
{
return instanceSpec_;
}
void QueryRIUtilizationDetailRequest::setInstanceSpec(const std::string& instanceSpec)
{
instanceSpec_ = instanceSpec;
setCoreParameter("InstanceSpec", instanceSpec);
}
std::string QueryRIUtilizationDetailRequest::getEndTime()const
{
return endTime_;
}
void QueryRIUtilizationDetailRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setCoreParameter("EndTime", endTime);
}
std::string QueryRIUtilizationDetailRequest::getRIInstanceId()const
{
return rIInstanceId_;
}
void QueryRIUtilizationDetailRequest::setRIInstanceId(const std::string& rIInstanceId)
{
rIInstanceId_ = rIInstanceId;
setCoreParameter("RIInstanceId", rIInstanceId);
}
std::string QueryRIUtilizationDetailRequest::getStartTime()const
{
return startTime_;
}
void QueryRIUtilizationDetailRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setCoreParameter("StartTime", startTime);
}
int QueryRIUtilizationDetailRequest::getPageNum()const
{
return pageNum_;
}
void QueryRIUtilizationDetailRequest::setPageNum(int pageNum)
{
pageNum_ = pageNum;
setCoreParameter("PageNum", std::to_string(pageNum));
}
int QueryRIUtilizationDetailRequest::getPageSize()const
{
return pageSize_;
}
void QueryRIUtilizationDetailRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
std::string QueryRIUtilizationDetailRequest::getRICommodityCode()const
{
return rICommodityCode_;
}
void QueryRIUtilizationDetailRequest::setRICommodityCode(const std::string& rICommodityCode)
{
rICommodityCode_ = rICommodityCode;
setCoreParameter("RICommodityCode", rICommodityCode);
}

View File

@@ -0,0 +1,97 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/bssopenapi/model/QueryRIUtilizationDetailResult.h>
#include <json/json.h>
using namespace AlibabaCloud::BssOpenApi;
using namespace AlibabaCloud::BssOpenApi::Model;
QueryRIUtilizationDetailResult::QueryRIUtilizationDetailResult() :
ServiceResult()
{}
QueryRIUtilizationDetailResult::QueryRIUtilizationDetailResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryRIUtilizationDetailResult::~QueryRIUtilizationDetailResult()
{}
void QueryRIUtilizationDetailResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["PageNum"].isNull())
data_.pageNum = std::stol(dataNode["PageNum"].asString());
if(!dataNode["PageSize"].isNull())
data_.pageSize = std::stol(dataNode["PageSize"].asString());
if(!dataNode["TotalCount"].isNull())
data_.totalCount = std::stol(dataNode["TotalCount"].asString());
auto allDetailListNode = dataNode["DetailList"]["DetailListItem"];
for (auto dataNodeDetailListDetailListItem : allDetailListNode)
{
Data::DetailListItem detailListItemObject;
if(!dataNodeDetailListDetailListItem["RIInstanceId"].isNull())
detailListItemObject.rIInstanceId = dataNodeDetailListDetailListItem["RIInstanceId"].asString();
if(!dataNodeDetailListDetailListItem["InstanceSpec"].isNull())
detailListItemObject.instanceSpec = dataNodeDetailListDetailListItem["InstanceSpec"].asString();
if(!dataNodeDetailListDetailListItem["DeductedInstanceId"].isNull())
detailListItemObject.deductedInstanceId = dataNodeDetailListDetailListItem["DeductedInstanceId"].asString();
if(!dataNodeDetailListDetailListItem["DeductedCommodityCode"].isNull())
detailListItemObject.deductedCommodityCode = dataNodeDetailListDetailListItem["DeductedCommodityCode"].asString();
if(!dataNodeDetailListDetailListItem["DeductDate"].isNull())
detailListItemObject.deductDate = dataNodeDetailListDetailListItem["DeductDate"].asString();
if(!dataNodeDetailListDetailListItem["DeductHours"].isNull())
detailListItemObject.deductHours = dataNodeDetailListDetailListItem["DeductHours"].asString();
if(!dataNodeDetailListDetailListItem["DeductedProductDetail"].isNull())
detailListItemObject.deductedProductDetail = dataNodeDetailListDetailListItem["DeductedProductDetail"].asString();
data_.detailList.push_back(detailListItemObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string QueryRIUtilizationDetailResult::getMessage()const
{
return message_;
}
QueryRIUtilizationDetailResult::Data QueryRIUtilizationDetailResult::getData()const
{
return data_;
}
std::string QueryRIUtilizationDetailResult::getCode()const
{
return code_;
}
bool QueryRIUtilizationDetailResult::getSuccess()const
{
return success_;
}

View File

@@ -103,6 +103,8 @@ set(ecs_public_header_model
include/alibabacloud/ecs/model/CreateLaunchTemplateResult.h
include/alibabacloud/ecs/model/CreateLaunchTemplateVersionRequest.h
include/alibabacloud/ecs/model/CreateLaunchTemplateVersionResult.h
include/alibabacloud/ecs/model/CreateMaintenancePropertyRequest.h
include/alibabacloud/ecs/model/CreateMaintenancePropertyResult.h
include/alibabacloud/ecs/model/CreateNatGatewayRequest.h
include/alibabacloud/ecs/model/CreateNatGatewayResult.h
include/alibabacloud/ecs/model/CreateNetworkInterfaceRequest.h
@@ -163,6 +165,8 @@ set(ecs_public_header_model
include/alibabacloud/ecs/model/DeleteLaunchTemplateResult.h
include/alibabacloud/ecs/model/DeleteLaunchTemplateVersionRequest.h
include/alibabacloud/ecs/model/DeleteLaunchTemplateVersionResult.h
include/alibabacloud/ecs/model/DeleteMaintenancePropertyRequest.h
include/alibabacloud/ecs/model/DeleteMaintenancePropertyResult.h
include/alibabacloud/ecs/model/DeleteNatGatewayRequest.h
include/alibabacloud/ecs/model/DeleteNatGatewayResult.h
include/alibabacloud/ecs/model/DeleteNetworkInterfaceRequest.h
@@ -285,6 +289,8 @@ set(ecs_public_header_model
include/alibabacloud/ecs/model/DescribeLaunchTemplatesResult.h
include/alibabacloud/ecs/model/DescribeLimitationRequest.h
include/alibabacloud/ecs/model/DescribeLimitationResult.h
include/alibabacloud/ecs/model/DescribeMaintenancePropertyRequest.h
include/alibabacloud/ecs/model/DescribeMaintenancePropertyResult.h
include/alibabacloud/ecs/model/DescribeNatGatewaysRequest.h
include/alibabacloud/ecs/model/DescribeNatGatewaysResult.h
include/alibabacloud/ecs/model/DescribeNetworkInterfacePermissionsRequest.h
@@ -461,6 +467,8 @@ set(ecs_public_header_model
include/alibabacloud/ecs/model/ModifyInstanceVpcAttributeResult.h
include/alibabacloud/ecs/model/ModifyLaunchTemplateDefaultVersionRequest.h
include/alibabacloud/ecs/model/ModifyLaunchTemplateDefaultVersionResult.h
include/alibabacloud/ecs/model/ModifyMaintenancePropertyRequest.h
include/alibabacloud/ecs/model/ModifyMaintenancePropertyResult.h
include/alibabacloud/ecs/model/ModifyNetworkInterfaceAttributeRequest.h
include/alibabacloud/ecs/model/ModifyNetworkInterfaceAttributeResult.h
include/alibabacloud/ecs/model/ModifyPhysicalConnectionAttributeRequest.h
@@ -646,6 +654,8 @@ set(ecs_src
src/model/CreateLaunchTemplateResult.cc
src/model/CreateLaunchTemplateVersionRequest.cc
src/model/CreateLaunchTemplateVersionResult.cc
src/model/CreateMaintenancePropertyRequest.cc
src/model/CreateMaintenancePropertyResult.cc
src/model/CreateNatGatewayRequest.cc
src/model/CreateNatGatewayResult.cc
src/model/CreateNetworkInterfaceRequest.cc
@@ -706,6 +716,8 @@ set(ecs_src
src/model/DeleteLaunchTemplateResult.cc
src/model/DeleteLaunchTemplateVersionRequest.cc
src/model/DeleteLaunchTemplateVersionResult.cc
src/model/DeleteMaintenancePropertyRequest.cc
src/model/DeleteMaintenancePropertyResult.cc
src/model/DeleteNatGatewayRequest.cc
src/model/DeleteNatGatewayResult.cc
src/model/DeleteNetworkInterfaceRequest.cc
@@ -828,6 +840,8 @@ set(ecs_src
src/model/DescribeLaunchTemplatesResult.cc
src/model/DescribeLimitationRequest.cc
src/model/DescribeLimitationResult.cc
src/model/DescribeMaintenancePropertyRequest.cc
src/model/DescribeMaintenancePropertyResult.cc
src/model/DescribeNatGatewaysRequest.cc
src/model/DescribeNatGatewaysResult.cc
src/model/DescribeNetworkInterfacePermissionsRequest.cc
@@ -1004,6 +1018,8 @@ set(ecs_src
src/model/ModifyInstanceVpcAttributeResult.cc
src/model/ModifyLaunchTemplateDefaultVersionRequest.cc
src/model/ModifyLaunchTemplateDefaultVersionResult.cc
src/model/ModifyMaintenancePropertyRequest.cc
src/model/ModifyMaintenancePropertyResult.cc
src/model/ModifyNetworkInterfaceAttributeRequest.cc
src/model/ModifyNetworkInterfaceAttributeResult.cc
src/model/ModifyPhysicalConnectionAttributeRequest.cc

View File

@@ -104,6 +104,8 @@
#include "model/CreateLaunchTemplateResult.h"
#include "model/CreateLaunchTemplateVersionRequest.h"
#include "model/CreateLaunchTemplateVersionResult.h"
#include "model/CreateMaintenancePropertyRequest.h"
#include "model/CreateMaintenancePropertyResult.h"
#include "model/CreateNatGatewayRequest.h"
#include "model/CreateNatGatewayResult.h"
#include "model/CreateNetworkInterfaceRequest.h"
@@ -164,6 +166,8 @@
#include "model/DeleteLaunchTemplateResult.h"
#include "model/DeleteLaunchTemplateVersionRequest.h"
#include "model/DeleteLaunchTemplateVersionResult.h"
#include "model/DeleteMaintenancePropertyRequest.h"
#include "model/DeleteMaintenancePropertyResult.h"
#include "model/DeleteNatGatewayRequest.h"
#include "model/DeleteNatGatewayResult.h"
#include "model/DeleteNetworkInterfaceRequest.h"
@@ -286,6 +290,8 @@
#include "model/DescribeLaunchTemplatesResult.h"
#include "model/DescribeLimitationRequest.h"
#include "model/DescribeLimitationResult.h"
#include "model/DescribeMaintenancePropertyRequest.h"
#include "model/DescribeMaintenancePropertyResult.h"
#include "model/DescribeNatGatewaysRequest.h"
#include "model/DescribeNatGatewaysResult.h"
#include "model/DescribeNetworkInterfacePermissionsRequest.h"
@@ -462,6 +468,8 @@
#include "model/ModifyInstanceVpcAttributeResult.h"
#include "model/ModifyLaunchTemplateDefaultVersionRequest.h"
#include "model/ModifyLaunchTemplateDefaultVersionResult.h"
#include "model/ModifyMaintenancePropertyRequest.h"
#include "model/ModifyMaintenancePropertyResult.h"
#include "model/ModifyNetworkInterfaceAttributeRequest.h"
#include "model/ModifyNetworkInterfaceAttributeResult.h"
#include "model/ModifyPhysicalConnectionAttributeRequest.h"
@@ -694,6 +702,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CreateLaunchTemplateVersionResult> CreateLaunchTemplateVersionOutcome;
typedef std::future<CreateLaunchTemplateVersionOutcome> CreateLaunchTemplateVersionOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::CreateLaunchTemplateVersionRequest&, const CreateLaunchTemplateVersionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateLaunchTemplateVersionAsyncHandler;
typedef Outcome<Error, Model::CreateMaintenancePropertyResult> CreateMaintenancePropertyOutcome;
typedef std::future<CreateMaintenancePropertyOutcome> CreateMaintenancePropertyOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::CreateMaintenancePropertyRequest&, const CreateMaintenancePropertyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateMaintenancePropertyAsyncHandler;
typedef Outcome<Error, Model::CreateNatGatewayResult> CreateNatGatewayOutcome;
typedef std::future<CreateNatGatewayOutcome> CreateNatGatewayOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::CreateNatGatewayRequest&, const CreateNatGatewayOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateNatGatewayAsyncHandler;
@@ -784,6 +795,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DeleteLaunchTemplateVersionResult> DeleteLaunchTemplateVersionOutcome;
typedef std::future<DeleteLaunchTemplateVersionOutcome> DeleteLaunchTemplateVersionOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::DeleteLaunchTemplateVersionRequest&, const DeleteLaunchTemplateVersionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteLaunchTemplateVersionAsyncHandler;
typedef Outcome<Error, Model::DeleteMaintenancePropertyResult> DeleteMaintenancePropertyOutcome;
typedef std::future<DeleteMaintenancePropertyOutcome> DeleteMaintenancePropertyOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::DeleteMaintenancePropertyRequest&, const DeleteMaintenancePropertyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteMaintenancePropertyAsyncHandler;
typedef Outcome<Error, Model::DeleteNatGatewayResult> DeleteNatGatewayOutcome;
typedef std::future<DeleteNatGatewayOutcome> DeleteNatGatewayOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::DeleteNatGatewayRequest&, const DeleteNatGatewayOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteNatGatewayAsyncHandler;
@@ -967,6 +981,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeLimitationResult> DescribeLimitationOutcome;
typedef std::future<DescribeLimitationOutcome> DescribeLimitationOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::DescribeLimitationRequest&, const DescribeLimitationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLimitationAsyncHandler;
typedef Outcome<Error, Model::DescribeMaintenancePropertyResult> DescribeMaintenancePropertyOutcome;
typedef std::future<DescribeMaintenancePropertyOutcome> DescribeMaintenancePropertyOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::DescribeMaintenancePropertyRequest&, const DescribeMaintenancePropertyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeMaintenancePropertyAsyncHandler;
typedef Outcome<Error, Model::DescribeNatGatewaysResult> DescribeNatGatewaysOutcome;
typedef std::future<DescribeNatGatewaysOutcome> DescribeNatGatewaysOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::DescribeNatGatewaysRequest&, const DescribeNatGatewaysOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeNatGatewaysAsyncHandler;
@@ -1231,6 +1248,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ModifyLaunchTemplateDefaultVersionResult> ModifyLaunchTemplateDefaultVersionOutcome;
typedef std::future<ModifyLaunchTemplateDefaultVersionOutcome> ModifyLaunchTemplateDefaultVersionOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::ModifyLaunchTemplateDefaultVersionRequest&, const ModifyLaunchTemplateDefaultVersionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyLaunchTemplateDefaultVersionAsyncHandler;
typedef Outcome<Error, Model::ModifyMaintenancePropertyResult> ModifyMaintenancePropertyOutcome;
typedef std::future<ModifyMaintenancePropertyOutcome> ModifyMaintenancePropertyOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::ModifyMaintenancePropertyRequest&, const ModifyMaintenancePropertyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyMaintenancePropertyAsyncHandler;
typedef Outcome<Error, Model::ModifyNetworkInterfaceAttributeResult> ModifyNetworkInterfaceAttributeOutcome;
typedef std::future<ModifyNetworkInterfaceAttributeOutcome> ModifyNetworkInterfaceAttributeOutcomeCallable;
typedef std::function<void(const EcsClient*, const Model::ModifyNetworkInterfaceAttributeRequest&, const ModifyNetworkInterfaceAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyNetworkInterfaceAttributeAsyncHandler;
@@ -1509,6 +1529,9 @@ namespace AlibabaCloud
CreateLaunchTemplateVersionOutcome createLaunchTemplateVersion(const Model::CreateLaunchTemplateVersionRequest &request)const;
void createLaunchTemplateVersionAsync(const Model::CreateLaunchTemplateVersionRequest& request, const CreateLaunchTemplateVersionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateLaunchTemplateVersionOutcomeCallable createLaunchTemplateVersionCallable(const Model::CreateLaunchTemplateVersionRequest& request) const;
CreateMaintenancePropertyOutcome createMaintenanceProperty(const Model::CreateMaintenancePropertyRequest &request)const;
void createMaintenancePropertyAsync(const Model::CreateMaintenancePropertyRequest& request, const CreateMaintenancePropertyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateMaintenancePropertyOutcomeCallable createMaintenancePropertyCallable(const Model::CreateMaintenancePropertyRequest& request) const;
CreateNatGatewayOutcome createNatGateway(const Model::CreateNatGatewayRequest &request)const;
void createNatGatewayAsync(const Model::CreateNatGatewayRequest& request, const CreateNatGatewayAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateNatGatewayOutcomeCallable createNatGatewayCallable(const Model::CreateNatGatewayRequest& request) const;
@@ -1599,6 +1622,9 @@ namespace AlibabaCloud
DeleteLaunchTemplateVersionOutcome deleteLaunchTemplateVersion(const Model::DeleteLaunchTemplateVersionRequest &request)const;
void deleteLaunchTemplateVersionAsync(const Model::DeleteLaunchTemplateVersionRequest& request, const DeleteLaunchTemplateVersionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteLaunchTemplateVersionOutcomeCallable deleteLaunchTemplateVersionCallable(const Model::DeleteLaunchTemplateVersionRequest& request) const;
DeleteMaintenancePropertyOutcome deleteMaintenanceProperty(const Model::DeleteMaintenancePropertyRequest &request)const;
void deleteMaintenancePropertyAsync(const Model::DeleteMaintenancePropertyRequest& request, const DeleteMaintenancePropertyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteMaintenancePropertyOutcomeCallable deleteMaintenancePropertyCallable(const Model::DeleteMaintenancePropertyRequest& request) const;
DeleteNatGatewayOutcome deleteNatGateway(const Model::DeleteNatGatewayRequest &request)const;
void deleteNatGatewayAsync(const Model::DeleteNatGatewayRequest& request, const DeleteNatGatewayAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteNatGatewayOutcomeCallable deleteNatGatewayCallable(const Model::DeleteNatGatewayRequest& request) const;
@@ -1782,6 +1808,9 @@ namespace AlibabaCloud
DescribeLimitationOutcome describeLimitation(const Model::DescribeLimitationRequest &request)const;
void describeLimitationAsync(const Model::DescribeLimitationRequest& request, const DescribeLimitationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeLimitationOutcomeCallable describeLimitationCallable(const Model::DescribeLimitationRequest& request) const;
DescribeMaintenancePropertyOutcome describeMaintenanceProperty(const Model::DescribeMaintenancePropertyRequest &request)const;
void describeMaintenancePropertyAsync(const Model::DescribeMaintenancePropertyRequest& request, const DescribeMaintenancePropertyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeMaintenancePropertyOutcomeCallable describeMaintenancePropertyCallable(const Model::DescribeMaintenancePropertyRequest& request) const;
DescribeNatGatewaysOutcome describeNatGateways(const Model::DescribeNatGatewaysRequest &request)const;
void describeNatGatewaysAsync(const Model::DescribeNatGatewaysRequest& request, const DescribeNatGatewaysAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeNatGatewaysOutcomeCallable describeNatGatewaysCallable(const Model::DescribeNatGatewaysRequest& request) const;
@@ -2046,6 +2075,9 @@ namespace AlibabaCloud
ModifyLaunchTemplateDefaultVersionOutcome modifyLaunchTemplateDefaultVersion(const Model::ModifyLaunchTemplateDefaultVersionRequest &request)const;
void modifyLaunchTemplateDefaultVersionAsync(const Model::ModifyLaunchTemplateDefaultVersionRequest& request, const ModifyLaunchTemplateDefaultVersionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyLaunchTemplateDefaultVersionOutcomeCallable modifyLaunchTemplateDefaultVersionCallable(const Model::ModifyLaunchTemplateDefaultVersionRequest& request) const;
ModifyMaintenancePropertyOutcome modifyMaintenanceProperty(const Model::ModifyMaintenancePropertyRequest &request)const;
void modifyMaintenancePropertyAsync(const Model::ModifyMaintenancePropertyRequest& request, const ModifyMaintenancePropertyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyMaintenancePropertyOutcomeCallable modifyMaintenancePropertyCallable(const Model::ModifyMaintenancePropertyRequest& request) const;
ModifyNetworkInterfaceAttributeOutcome modifyNetworkInterfaceAttribute(const Model::ModifyNetworkInterfaceAttributeRequest &request)const;
void modifyNetworkInterfaceAttributeAsync(const Model::ModifyNetworkInterfaceAttributeRequest& request, const ModifyNetworkInterfaceAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyNetworkInterfaceAttributeOutcomeCallable modifyNetworkInterfaceAttributeCallable(const Model::ModifyNetworkInterfaceAttributeRequest& request) const;

View File

@@ -0,0 +1,72 @@
/*
* 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_CREATEMAINTENANCEPROPERTYREQUEST_H_
#define ALIBABACLOUD_ECS_MODEL_CREATEMAINTENANCEPROPERTYREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ecs/EcsExport.h>
namespace AlibabaCloud
{
namespace Ecs
{
namespace Model
{
class ALIBABACLOUD_ECS_EXPORT CreateMaintenancePropertyRequest : public RpcServiceRequest
{
public:
CreateMaintenancePropertyRequest();
~CreateMaintenancePropertyRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getStartTime()const;
void setStartTime(const std::string& startTime);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getActionOnMaintenance()const;
void setActionOnMaintenance(const std::string& actionOnMaintenance);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getOwnerAccount()const;
void setOwnerAccount(const std::string& ownerAccount);
std::string getEndTime()const;
void setEndTime(const std::string& endTime);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::vector<std::string> getInstanceId()const;
void setInstanceId(const std::vector<std::string>& instanceId);
private:
long resourceOwnerId_;
std::string startTime_;
std::string regionId_;
std::string actionOnMaintenance_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
std::string endTime_;
long ownerId_;
std::vector<std::string> instanceId_;
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_CREATEMAINTENANCEPROPERTYREQUEST_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_ECS_MODEL_CREATEMAINTENANCEPROPERTYRESULT_H_
#define ALIBABACLOUD_ECS_MODEL_CREATEMAINTENANCEPROPERTYRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ecs/EcsExport.h>
namespace AlibabaCloud
{
namespace Ecs
{
namespace Model
{
class ALIBABACLOUD_ECS_EXPORT CreateMaintenancePropertyResult : public ServiceResult
{
public:
CreateMaintenancePropertyResult();
explicit CreateMaintenancePropertyResult(const std::string &payload);
~CreateMaintenancePropertyResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_CREATEMAINTENANCEPROPERTYRESULT_H_

View File

@@ -66,6 +66,8 @@ namespace AlibabaCloud
void setOwnerAccount(const std::string& ownerAccount);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::vector<std::string> getSecurityGroupIds()const;
void setSecurityGroupIds(const std::vector<std::string>& securityGroupIds);
std::string getVSwitchId()const;
void setVSwitchId(const std::string& vSwitchId);
std::string getPrimaryIpAddress()const;
@@ -85,6 +87,7 @@ namespace AlibabaCloud
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
std::vector<std::string> securityGroupIds_;
std::string vSwitchId_;
std::string primaryIpAddress_;

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.
*/
#ifndef ALIBABACLOUD_ECS_MODEL_DELETEMAINTENANCEPROPERTYREQUEST_H_
#define ALIBABACLOUD_ECS_MODEL_DELETEMAINTENANCEPROPERTYREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ecs/EcsExport.h>
namespace AlibabaCloud
{
namespace Ecs
{
namespace Model
{
class ALIBABACLOUD_ECS_EXPORT DeleteMaintenancePropertyRequest : public RpcServiceRequest
{
public:
DeleteMaintenancePropertyRequest();
~DeleteMaintenancePropertyRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
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::vector<std::string> getInstanceId()const;
void setInstanceId(const std::vector<std::string>& instanceId);
private:
long resourceOwnerId_;
std::string regionId_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
std::vector<std::string> instanceId_;
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_DELETEMAINTENANCEPROPERTYREQUEST_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_ECS_MODEL_DELETEMAINTENANCEPROPERTYRESULT_H_
#define ALIBABACLOUD_ECS_MODEL_DELETEMAINTENANCEPROPERTYRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ecs/EcsExport.h>
namespace AlibabaCloud
{
namespace Ecs
{
namespace Model
{
class ALIBABACLOUD_ECS_EXPORT DeleteMaintenancePropertyResult : public ServiceResult
{
public:
DeleteMaintenancePropertyResult();
explicit DeleteMaintenancePropertyResult(const std::string &payload);
~DeleteMaintenancePropertyResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_DELETEMAINTENANCEPROPERTYRESULT_H_

View File

@@ -42,6 +42,7 @@ namespace AlibabaCloud
std::string supplyEndTime;
};
std::string demandDescription;
std::string comment;
std::string zoneId;
std::string demandTime;
std::string endTime;

View File

@@ -0,0 +1,69 @@
/*
* 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_DESCRIBEMAINTENANCEPROPERTYREQUEST_H_
#define ALIBABACLOUD_ECS_MODEL_DESCRIBEMAINTENANCEPROPERTYREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ecs/EcsExport.h>
namespace AlibabaCloud
{
namespace Ecs
{
namespace Model
{
class ALIBABACLOUD_ECS_EXPORT DescribeMaintenancePropertyRequest : public RpcServiceRequest
{
public:
DescribeMaintenancePropertyRequest();
~DescribeMaintenancePropertyRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
long getPageNumber()const;
void setPageNumber(long pageNumber);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
long getPageSize()const;
void setPageSize(long pageSize);
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::vector<std::string> getInstanceId()const;
void setInstanceId(const std::vector<std::string>& instanceId);
private:
long resourceOwnerId_;
long pageNumber_;
std::string regionId_;
long pageSize_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
std::vector<std::string> instanceId_;
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEMAINTENANCEPROPERTYREQUEST_H_

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.
*/
#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEMAINTENANCEPROPERTYRESULT_H_
#define ALIBABACLOUD_ECS_MODEL_DESCRIBEMAINTENANCEPROPERTYRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ecs/EcsExport.h>
namespace AlibabaCloud
{
namespace Ecs
{
namespace Model
{
class ALIBABACLOUD_ECS_EXPORT DescribeMaintenancePropertyResult : public ServiceResult
{
public:
struct MaintenanceProperty
{
std::string endTime;
std::string instanceId;
std::string startTime;
std::string actionOnMaintenance;
};
DescribeMaintenancePropertyResult();
explicit DescribeMaintenancePropertyResult(const std::string &payload);
~DescribeMaintenancePropertyResult();
int getTotalCount()const;
int getPageSize()const;
int getPageNumber()const;
std::vector<MaintenanceProperty> getMaintenancePropertySet()const;
protected:
void parse(const std::string &payload);
private:
int totalCount_;
int pageSize_;
int pageNumber_;
std::vector<MaintenanceProperty> maintenancePropertySet_;
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEMAINTENANCEPROPERTYRESULT_H_

View File

@@ -52,6 +52,7 @@ namespace AlibabaCloud
std::string sourceDiskId;
std::string sourceStorageType;
std::string snapshotId;
std::string snapshotSN;
std::string sourceDiskSize;
std::string creationTime;
std::string lastModifiedTime;

View File

@@ -0,0 +1,72 @@
/*
* 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_MODIFYMAINTENANCEPROPERTYREQUEST_H_
#define ALIBABACLOUD_ECS_MODEL_MODIFYMAINTENANCEPROPERTYREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/ecs/EcsExport.h>
namespace AlibabaCloud
{
namespace Ecs
{
namespace Model
{
class ALIBABACLOUD_ECS_EXPORT ModifyMaintenancePropertyRequest : public RpcServiceRequest
{
public:
ModifyMaintenancePropertyRequest();
~ModifyMaintenancePropertyRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getStartTime()const;
void setStartTime(const std::string& startTime);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getActionOnMaintenance()const;
void setActionOnMaintenance(const std::string& actionOnMaintenance);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getOwnerAccount()const;
void setOwnerAccount(const std::string& ownerAccount);
std::string getEndTime()const;
void setEndTime(const std::string& endTime);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::vector<std::string> getInstanceId()const;
void setInstanceId(const std::vector<std::string>& instanceId);
private:
long resourceOwnerId_;
std::string startTime_;
std::string regionId_;
std::string actionOnMaintenance_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
std::string endTime_;
long ownerId_;
std::vector<std::string> instanceId_;
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYMAINTENANCEPROPERTYREQUEST_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_ECS_MODEL_MODIFYMAINTENANCEPROPERTYRESULT_H_
#define ALIBABACLOUD_ECS_MODEL_MODIFYMAINTENANCEPROPERTYRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/ecs/EcsExport.h>
namespace AlibabaCloud
{
namespace Ecs
{
namespace Model
{
class ALIBABACLOUD_ECS_EXPORT ModifyMaintenancePropertyResult : public ServiceResult
{
public:
ModifyMaintenancePropertyResult();
explicit ModifyMaintenancePropertyResult(const std::string &payload);
~ModifyMaintenancePropertyResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYMAINTENANCEPROPERTYRESULT_H_

View File

@@ -40,6 +40,7 @@ namespace AlibabaCloud
std::string primaryIpAddress;
std::string vSwitchId;
std::string securityGroupId;
std::vector<std::string> securityGroupIds;
std::string networkInterfaceName;
std::string description;
};

View File

@@ -1527,6 +1527,42 @@ EcsClient::CreateLaunchTemplateVersionOutcomeCallable EcsClient::createLaunchTem
return task->get_future();
}
EcsClient::CreateMaintenancePropertyOutcome EcsClient::createMaintenanceProperty(const CreateMaintenancePropertyRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateMaintenancePropertyOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateMaintenancePropertyOutcome(CreateMaintenancePropertyResult(outcome.result()));
else
return CreateMaintenancePropertyOutcome(outcome.error());
}
void EcsClient::createMaintenancePropertyAsync(const CreateMaintenancePropertyRequest& request, const CreateMaintenancePropertyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createMaintenanceProperty(request), context);
};
asyncExecute(new Runnable(fn));
}
EcsClient::CreateMaintenancePropertyOutcomeCallable EcsClient::createMaintenancePropertyCallable(const CreateMaintenancePropertyRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateMaintenancePropertyOutcome()>>(
[this, request]()
{
return this->createMaintenanceProperty(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EcsClient::CreateNatGatewayOutcome EcsClient::createNatGateway(const CreateNatGatewayRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2607,6 +2643,42 @@ EcsClient::DeleteLaunchTemplateVersionOutcomeCallable EcsClient::deleteLaunchTem
return task->get_future();
}
EcsClient::DeleteMaintenancePropertyOutcome EcsClient::deleteMaintenanceProperty(const DeleteMaintenancePropertyRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteMaintenancePropertyOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteMaintenancePropertyOutcome(DeleteMaintenancePropertyResult(outcome.result()));
else
return DeleteMaintenancePropertyOutcome(outcome.error());
}
void EcsClient::deleteMaintenancePropertyAsync(const DeleteMaintenancePropertyRequest& request, const DeleteMaintenancePropertyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteMaintenanceProperty(request), context);
};
asyncExecute(new Runnable(fn));
}
EcsClient::DeleteMaintenancePropertyOutcomeCallable EcsClient::deleteMaintenancePropertyCallable(const DeleteMaintenancePropertyRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteMaintenancePropertyOutcome()>>(
[this, request]()
{
return this->deleteMaintenanceProperty(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EcsClient::DeleteNatGatewayOutcome EcsClient::deleteNatGateway(const DeleteNatGatewayRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -4803,6 +4875,42 @@ EcsClient::DescribeLimitationOutcomeCallable EcsClient::describeLimitationCallab
return task->get_future();
}
EcsClient::DescribeMaintenancePropertyOutcome EcsClient::describeMaintenanceProperty(const DescribeMaintenancePropertyRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeMaintenancePropertyOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeMaintenancePropertyOutcome(DescribeMaintenancePropertyResult(outcome.result()));
else
return DescribeMaintenancePropertyOutcome(outcome.error());
}
void EcsClient::describeMaintenancePropertyAsync(const DescribeMaintenancePropertyRequest& request, const DescribeMaintenancePropertyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeMaintenanceProperty(request), context);
};
asyncExecute(new Runnable(fn));
}
EcsClient::DescribeMaintenancePropertyOutcomeCallable EcsClient::describeMaintenancePropertyCallable(const DescribeMaintenancePropertyRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeMaintenancePropertyOutcome()>>(
[this, request]()
{
return this->describeMaintenanceProperty(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EcsClient::DescribeNatGatewaysOutcome EcsClient::describeNatGateways(const DescribeNatGatewaysRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -7971,6 +8079,42 @@ EcsClient::ModifyLaunchTemplateDefaultVersionOutcomeCallable EcsClient::modifyLa
return task->get_future();
}
EcsClient::ModifyMaintenancePropertyOutcome EcsClient::modifyMaintenanceProperty(const ModifyMaintenancePropertyRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ModifyMaintenancePropertyOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ModifyMaintenancePropertyOutcome(ModifyMaintenancePropertyResult(outcome.result()));
else
return ModifyMaintenancePropertyOutcome(outcome.error());
}
void EcsClient::modifyMaintenancePropertyAsync(const ModifyMaintenancePropertyRequest& request, const ModifyMaintenancePropertyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, modifyMaintenanceProperty(request), context);
};
asyncExecute(new Runnable(fn));
}
EcsClient::ModifyMaintenancePropertyOutcomeCallable EcsClient::modifyMaintenancePropertyCallable(const ModifyMaintenancePropertyRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ModifyMaintenancePropertyOutcome()>>(
[this, request]()
{
return this->modifyMaintenanceProperty(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
EcsClient::ModifyNetworkInterfaceAttributeOutcome EcsClient::modifyNetworkInterfaceAttribute(const ModifyNetworkInterfaceAttributeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,130 @@
/*
* 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/CreateMaintenancePropertyRequest.h>
using AlibabaCloud::Ecs::Model::CreateMaintenancePropertyRequest;
CreateMaintenancePropertyRequest::CreateMaintenancePropertyRequest() :
RpcServiceRequest("ecs", "2014-05-26", "CreateMaintenanceProperty")
{
setMethod(HttpRequest::Method::Post);
}
CreateMaintenancePropertyRequest::~CreateMaintenancePropertyRequest()
{}
long CreateMaintenancePropertyRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateMaintenancePropertyRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateMaintenancePropertyRequest::getStartTime()const
{
return startTime_;
}
void CreateMaintenancePropertyRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setCoreParameter("StartTime", startTime);
}
std::string CreateMaintenancePropertyRequest::getRegionId()const
{
return regionId_;
}
void CreateMaintenancePropertyRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
std::string CreateMaintenancePropertyRequest::getActionOnMaintenance()const
{
return actionOnMaintenance_;
}
void CreateMaintenancePropertyRequest::setActionOnMaintenance(const std::string& actionOnMaintenance)
{
actionOnMaintenance_ = actionOnMaintenance;
setCoreParameter("ActionOnMaintenance", actionOnMaintenance);
}
std::string CreateMaintenancePropertyRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateMaintenancePropertyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateMaintenancePropertyRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateMaintenancePropertyRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
}
std::string CreateMaintenancePropertyRequest::getEndTime()const
{
return endTime_;
}
void CreateMaintenancePropertyRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setCoreParameter("EndTime", endTime);
}
long CreateMaintenancePropertyRequest::getOwnerId()const
{
return ownerId_;
}
void CreateMaintenancePropertyRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::vector<std::string> CreateMaintenancePropertyRequest::getInstanceId()const
{
return instanceId_;
}
void CreateMaintenancePropertyRequest::setInstanceId(const std::vector<std::string>& instanceId)
{
instanceId_ = instanceId;
for(int dep1 = 0; dep1!= instanceId.size(); dep1++) {
setCoreParameter("InstanceId."+ std::to_string(dep1), instanceId.at(dep1));
}
}

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

View File

@@ -175,6 +175,19 @@ void CreateNetworkInterfaceRequest::setOwnerId(long ownerId)
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::vector<std::string> CreateNetworkInterfaceRequest::getSecurityGroupIds()const
{
return securityGroupIds_;
}
void CreateNetworkInterfaceRequest::setSecurityGroupIds(const std::vector<std::string>& securityGroupIds)
{
securityGroupIds_ = securityGroupIds;
for(int dep1 = 0; dep1!= securityGroupIds.size(); dep1++) {
setCoreParameter("SecurityGroupIds."+ std::to_string(dep1), securityGroupIds.at(dep1));
}
}
std::string CreateNetworkInterfaceRequest::getVSwitchId()const
{
return vSwitchId_;

View File

@@ -0,0 +1,97 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ecs/model/DeleteMaintenancePropertyRequest.h>
using AlibabaCloud::Ecs::Model::DeleteMaintenancePropertyRequest;
DeleteMaintenancePropertyRequest::DeleteMaintenancePropertyRequest() :
RpcServiceRequest("ecs", "2014-05-26", "DeleteMaintenanceProperty")
{
setMethod(HttpRequest::Method::Post);
}
DeleteMaintenancePropertyRequest::~DeleteMaintenancePropertyRequest()
{}
long DeleteMaintenancePropertyRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteMaintenancePropertyRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteMaintenancePropertyRequest::getRegionId()const
{
return regionId_;
}
void DeleteMaintenancePropertyRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
std::string DeleteMaintenancePropertyRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteMaintenancePropertyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteMaintenancePropertyRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DeleteMaintenancePropertyRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
}
long DeleteMaintenancePropertyRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteMaintenancePropertyRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::vector<std::string> DeleteMaintenancePropertyRequest::getInstanceId()const
{
return instanceId_;
}
void DeleteMaintenancePropertyRequest::setInstanceId(const std::vector<std::string>& instanceId)
{
instanceId_ = instanceId;
for(int dep1 = 0; dep1!= instanceId.size(); dep1++) {
setCoreParameter("InstanceId."+ std::to_string(dep1), instanceId.at(dep1));
}
}

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

View File

@@ -53,6 +53,8 @@ void DescribeDemandsResult::parse(const std::string &payload)
demandsObject.demandId = valueDemandsDemand["DemandId"].asString();
if(!valueDemandsDemand["DemandName"].isNull())
demandsObject.demandName = valueDemandsDemand["DemandName"].asString();
if(!valueDemandsDemand["Comment"].isNull())
demandsObject.comment = valueDemandsDemand["Comment"].asString();
if(!valueDemandsDemand["DemandDescription"].isNull())
demandsObject.demandDescription = valueDemandsDemand["DemandDescription"].asString();
if(!valueDemandsDemand["InstanceType"].isNull())

View File

@@ -0,0 +1,119 @@
/*
* 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/DescribeMaintenancePropertyRequest.h>
using AlibabaCloud::Ecs::Model::DescribeMaintenancePropertyRequest;
DescribeMaintenancePropertyRequest::DescribeMaintenancePropertyRequest() :
RpcServiceRequest("ecs", "2014-05-26", "DescribeMaintenanceProperty")
{
setMethod(HttpRequest::Method::Post);
}
DescribeMaintenancePropertyRequest::~DescribeMaintenancePropertyRequest()
{}
long DescribeMaintenancePropertyRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeMaintenancePropertyRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
long DescribeMaintenancePropertyRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeMaintenancePropertyRequest::setPageNumber(long pageNumber)
{
pageNumber_ = pageNumber;
setCoreParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeMaintenancePropertyRequest::getRegionId()const
{
return regionId_;
}
void DescribeMaintenancePropertyRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
long DescribeMaintenancePropertyRequest::getPageSize()const
{
return pageSize_;
}
void DescribeMaintenancePropertyRequest::setPageSize(long pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeMaintenancePropertyRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DescribeMaintenancePropertyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DescribeMaintenancePropertyRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DescribeMaintenancePropertyRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
}
long DescribeMaintenancePropertyRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeMaintenancePropertyRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::vector<std::string> DescribeMaintenancePropertyRequest::getInstanceId()const
{
return instanceId_;
}
void DescribeMaintenancePropertyRequest::setInstanceId(const std::vector<std::string>& instanceId)
{
instanceId_ = instanceId;
for(int dep1 = 0; dep1!= instanceId.size(); dep1++) {
setCoreParameter("InstanceId."+ std::to_string(dep1), instanceId.at(dep1));
}
}

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/ecs/model/DescribeMaintenancePropertyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Ecs;
using namespace AlibabaCloud::Ecs::Model;
DescribeMaintenancePropertyResult::DescribeMaintenancePropertyResult() :
ServiceResult()
{}
DescribeMaintenancePropertyResult::DescribeMaintenancePropertyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeMaintenancePropertyResult::~DescribeMaintenancePropertyResult()
{}
void DescribeMaintenancePropertyResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allMaintenancePropertySetNode = value["MaintenancePropertySet"]["MaintenanceProperty"];
for (auto valueMaintenancePropertySetMaintenanceProperty : allMaintenancePropertySetNode)
{
MaintenanceProperty maintenancePropertySetObject;
if(!valueMaintenancePropertySetMaintenanceProperty["InstanceId"].isNull())
maintenancePropertySetObject.instanceId = valueMaintenancePropertySetMaintenanceProperty["InstanceId"].asString();
if(!valueMaintenancePropertySetMaintenanceProperty["StartTime"].isNull())
maintenancePropertySetObject.startTime = valueMaintenancePropertySetMaintenanceProperty["StartTime"].asString();
if(!valueMaintenancePropertySetMaintenanceProperty["EndTime"].isNull())
maintenancePropertySetObject.endTime = valueMaintenancePropertySetMaintenanceProperty["EndTime"].asString();
if(!valueMaintenancePropertySetMaintenanceProperty["ActionOnMaintenance"].isNull())
maintenancePropertySetObject.actionOnMaintenance = valueMaintenancePropertySetMaintenanceProperty["ActionOnMaintenance"].asString();
maintenancePropertySet_.push_back(maintenancePropertySetObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
}
int DescribeMaintenancePropertyResult::getTotalCount()const
{
return totalCount_;
}
int DescribeMaintenancePropertyResult::getPageSize()const
{
return pageSize_;
}
int DescribeMaintenancePropertyResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<DescribeMaintenancePropertyResult::MaintenanceProperty> DescribeMaintenancePropertyResult::getMaintenancePropertySet()const
{
return maintenancePropertySet_;
}

View File

@@ -45,6 +45,8 @@ void DescribeSnapshotsResult::parse(const std::string &payload)
Snapshot snapshotsObject;
if(!valueSnapshotsSnapshot["SnapshotId"].isNull())
snapshotsObject.snapshotId = valueSnapshotsSnapshot["SnapshotId"].asString();
if(!valueSnapshotsSnapshot["SnapshotSN"].isNull())
snapshotsObject.snapshotSN = valueSnapshotsSnapshot["SnapshotSN"].asString();
if(!valueSnapshotsSnapshot["SnapshotName"].isNull())
snapshotsObject.snapshotName = valueSnapshotsSnapshot["SnapshotName"].asString();
if(!valueSnapshotsSnapshot["Progress"].isNull())

View File

@@ -0,0 +1,130 @@
/*
* 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/ModifyMaintenancePropertyRequest.h>
using AlibabaCloud::Ecs::Model::ModifyMaintenancePropertyRequest;
ModifyMaintenancePropertyRequest::ModifyMaintenancePropertyRequest() :
RpcServiceRequest("ecs", "2014-05-26", "ModifyMaintenanceProperty")
{
setMethod(HttpRequest::Method::Post);
}
ModifyMaintenancePropertyRequest::~ModifyMaintenancePropertyRequest()
{}
long ModifyMaintenancePropertyRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void ModifyMaintenancePropertyRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string ModifyMaintenancePropertyRequest::getStartTime()const
{
return startTime_;
}
void ModifyMaintenancePropertyRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setCoreParameter("StartTime", startTime);
}
std::string ModifyMaintenancePropertyRequest::getRegionId()const
{
return regionId_;
}
void ModifyMaintenancePropertyRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
std::string ModifyMaintenancePropertyRequest::getActionOnMaintenance()const
{
return actionOnMaintenance_;
}
void ModifyMaintenancePropertyRequest::setActionOnMaintenance(const std::string& actionOnMaintenance)
{
actionOnMaintenance_ = actionOnMaintenance;
setCoreParameter("ActionOnMaintenance", actionOnMaintenance);
}
std::string ModifyMaintenancePropertyRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void ModifyMaintenancePropertyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string ModifyMaintenancePropertyRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void ModifyMaintenancePropertyRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
}
std::string ModifyMaintenancePropertyRequest::getEndTime()const
{
return endTime_;
}
void ModifyMaintenancePropertyRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setCoreParameter("EndTime", endTime);
}
long ModifyMaintenancePropertyRequest::getOwnerId()const
{
return ownerId_;
}
void ModifyMaintenancePropertyRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::vector<std::string> ModifyMaintenancePropertyRequest::getInstanceId()const
{
return instanceId_;
}
void ModifyMaintenancePropertyRequest::setInstanceId(const std::vector<std::string>& instanceId)
{
instanceId_ = instanceId;
for(int dep1 = 0; dep1!= instanceId.size(); dep1++) {
setCoreParameter("InstanceId."+ std::to_string(dep1), instanceId.at(dep1));
}
}

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

View File

@@ -620,6 +620,9 @@ void RunInstancesRequest::setNetworkInterface(const std::vector<NetworkInterface
setCoreParameter(networkInterfaceObjStr + ".PrimaryIpAddress", networkInterfaceObj.primaryIpAddress);
setCoreParameter(networkInterfaceObjStr + ".VSwitchId", networkInterfaceObj.vSwitchId);
setCoreParameter(networkInterfaceObjStr + ".SecurityGroupId", networkInterfaceObj.securityGroupId);
for(int dep2 = 0; dep2!= networkInterfaceObj.securityGroupIds.size(); dep2++) {
setCoreParameter(networkInterfaceObjStr + ".SecurityGroupIds."+ std::to_string(dep2), networkInterfaceObj.securityGroupIds.at(dep2));
}
setCoreParameter(networkInterfaceObjStr + ".NetworkInterfaceName", networkInterfaceObj.networkInterfaceName);
setCoreParameter(networkInterfaceObjStr + ".Description", networkInterfaceObj.description);
}

View File

@@ -41,6 +41,8 @@ namespace AlibabaCloud
void setAccessKeyId(const std::string& accessKeyId);
std::string getNotifyEndpoint()const;
void setNotifyEndpoint(const std::string& notifyEndpoint);
std::string getTargetContainer()const;
void setTargetContainer(const std::string& targetContainer);
std::string getCustomMessage()const;
void setCustomMessage(const std::string& customMessage);
std::string getNotifyTopicName()const;
@@ -54,6 +56,7 @@ namespace AlibabaCloud
std::string project_;
std::string accessKeyId_;
std::string notifyEndpoint_;
std::string targetContainer_;
std::string customMessage_;
std::string notifyTopicName_;
std::string targetList_;

View File

@@ -60,6 +60,17 @@ void CreateVideoCompressTaskRequest::setNotifyEndpoint(const std::string& notify
setCoreParameter("NotifyEndpoint", notifyEndpoint);
}
std::string CreateVideoCompressTaskRequest::getTargetContainer()const
{
return targetContainer_;
}
void CreateVideoCompressTaskRequest::setTargetContainer(const std::string& targetContainer)
{
targetContainer_ = targetContainer;
setCoreParameter("TargetContainer", targetContainer);
}
std::string CreateVideoCompressTaskRequest::getCustomMessage()const
{
return customMessage_;

130
smc/CMakeLists.txt Normal file
View File

@@ -0,0 +1,130 @@
#
# 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(smc_public_header
include/alibabacloud/smc/SmcClient.h
include/alibabacloud/smc/SmcExport.h )
set(smc_public_header_model
include/alibabacloud/smc/model/CreateReplicationJobRequest.h
include/alibabacloud/smc/model/CreateReplicationJobResult.h
include/alibabacloud/smc/model/DeleteReplicationJobRequest.h
include/alibabacloud/smc/model/DeleteReplicationJobResult.h
include/alibabacloud/smc/model/DeleteSourceServerRequest.h
include/alibabacloud/smc/model/DeleteSourceServerResult.h
include/alibabacloud/smc/model/DescribeReplicationJobsRequest.h
include/alibabacloud/smc/model/DescribeReplicationJobsResult.h
include/alibabacloud/smc/model/DescribeSourceServersRequest.h
include/alibabacloud/smc/model/DescribeSourceServersResult.h
include/alibabacloud/smc/model/ListTagResourcesRequest.h
include/alibabacloud/smc/model/ListTagResourcesResult.h
include/alibabacloud/smc/model/ModifyReplicationJobAttributeRequest.h
include/alibabacloud/smc/model/ModifyReplicationJobAttributeResult.h
include/alibabacloud/smc/model/ModifySourceServerAttributeRequest.h
include/alibabacloud/smc/model/ModifySourceServerAttributeResult.h
include/alibabacloud/smc/model/StartReplicationJobRequest.h
include/alibabacloud/smc/model/StartReplicationJobResult.h
include/alibabacloud/smc/model/StopReplicationJobRequest.h
include/alibabacloud/smc/model/StopReplicationJobResult.h
include/alibabacloud/smc/model/TagResourcesRequest.h
include/alibabacloud/smc/model/TagResourcesResult.h
include/alibabacloud/smc/model/UntagResourcesRequest.h
include/alibabacloud/smc/model/UntagResourcesResult.h )
set(smc_src
src/SmcClient.cc
src/model/CreateReplicationJobRequest.cc
src/model/CreateReplicationJobResult.cc
src/model/DeleteReplicationJobRequest.cc
src/model/DeleteReplicationJobResult.cc
src/model/DeleteSourceServerRequest.cc
src/model/DeleteSourceServerResult.cc
src/model/DescribeReplicationJobsRequest.cc
src/model/DescribeReplicationJobsResult.cc
src/model/DescribeSourceServersRequest.cc
src/model/DescribeSourceServersResult.cc
src/model/ListTagResourcesRequest.cc
src/model/ListTagResourcesResult.cc
src/model/ModifyReplicationJobAttributeRequest.cc
src/model/ModifyReplicationJobAttributeResult.cc
src/model/ModifySourceServerAttributeRequest.cc
src/model/ModifySourceServerAttributeResult.cc
src/model/StartReplicationJobRequest.cc
src/model/StartReplicationJobResult.cc
src/model/StopReplicationJobRequest.cc
src/model/StopReplicationJobResult.cc
src/model/TagResourcesRequest.cc
src/model/TagResourcesResult.cc
src/model/UntagResourcesRequest.cc
src/model/UntagResourcesResult.cc )
add_library(smc ${LIB_TYPE}
${smc_public_header}
${smc_public_header_model}
${smc_src})
set_target_properties(smc
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}smc
)
if(${LIB_TYPE} STREQUAL "SHARED")
set_target_properties(smc
PROPERTIES
DEFINE_SYMBOL ALIBABACLOUD_SMC_LIBRARY)
endif()
target_include_directories(smc
PRIVATE include
${CMAKE_SOURCE_DIR}/core/include
)
target_link_libraries(smc
core)
if(CMAKE_HOST_WIN32)
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
set(jsoncpp_install_dir ${INSTALL_DIR})
add_dependencies(smc
jsoncpp)
target_include_directories(smc
PRIVATE ${jsoncpp_install_dir}/include)
target_link_libraries(smc
${jsoncpp_install_dir}/lib/jsoncpp.lib)
set_target_properties(smc
PROPERTIES
COMPILE_OPTIONS "/bigobj")
else()
target_include_directories(smc
PRIVATE /usr/include/jsoncpp)
target_link_libraries(smc
jsoncpp)
endif()
install(FILES ${smc_public_header}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/smc)
install(FILES ${smc_public_header_model}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/smc/model)
install(TARGETS smc
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)

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