Rebuild sdk (#60)

* rebuild sdk

* fixed ut include Utils.h
This commit is contained in:
Axios
2019-08-14 14:34:09 +08:00
committed by GitHub
parent f3d9843e63
commit c43307bc80
11893 changed files with 462166 additions and 221301 deletions

View File

@@ -31,21 +31,21 @@ DbsClient::DbsClient(const Credentials &credentials, const ClientConfiguration &
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cbs");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "dbs");
}
DbsClient::DbsClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cbs");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "dbs");
}
DbsClient::DbsClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
{
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cbs");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "dbs");
}
DbsClient::~DbsClient()
@@ -447,42 +447,6 @@ DbsClient::ModifyBackupObjectsOutcomeCallable DbsClient::modifyBackupObjectsCall
return task->get_future();
}
DbsClient::CreateRestoreTaskOutcome DbsClient::createRestoreTask(const CreateRestoreTaskRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateRestoreTaskOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateRestoreTaskOutcome(CreateRestoreTaskResult(outcome.result()));
else
return CreateRestoreTaskOutcome(outcome.error());
}
void DbsClient::createRestoreTaskAsync(const CreateRestoreTaskRequest& request, const CreateRestoreTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createRestoreTask(request), context);
};
asyncExecute(new Runnable(fn));
}
DbsClient::CreateRestoreTaskOutcomeCallable DbsClient::createRestoreTaskCallable(const CreateRestoreTaskRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateRestoreTaskOutcome()>>(
[this, request]()
{
return this->createRestoreTask(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DbsClient::DescribeIncrementBackupListOutcome DbsClient::describeIncrementBackupList(const DescribeIncrementBackupListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -519,6 +483,42 @@ DbsClient::DescribeIncrementBackupListOutcomeCallable DbsClient::describeIncreme
return task->get_future();
}
DbsClient::CreateRestoreTaskOutcome DbsClient::createRestoreTask(const CreateRestoreTaskRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateRestoreTaskOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateRestoreTaskOutcome(CreateRestoreTaskResult(outcome.result()));
else
return CreateRestoreTaskOutcome(outcome.error());
}
void DbsClient::createRestoreTaskAsync(const CreateRestoreTaskRequest& request, const CreateRestoreTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createRestoreTask(request), context);
};
asyncExecute(new Runnable(fn));
}
DbsClient::CreateRestoreTaskOutcomeCallable DbsClient::createRestoreTaskCallable(const CreateRestoreTaskRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateRestoreTaskOutcome()>>(
[this, request]()
{
return this->createRestoreTask(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DbsClient::ConfigureBackupPlanOutcome DbsClient::configureBackupPlan(const ConfigureBackupPlanRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -1,30 +1,30 @@
/*
* 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/dbs/model/ConfigureBackupPlanRequest.h>
using AlibabaCloud::Dbs::Model::ConfigureBackupPlanRequest;
ConfigureBackupPlanRequest::ConfigureBackupPlanRequest() :
RpcServiceRequest("dbs", "2019-03-06", "ConfigureBackupPlan")
{}
ConfigureBackupPlanRequest::~ConfigureBackupPlanRequest()
{}
/*
* 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/dbs/model/ConfigureBackupPlanRequest.h>
using AlibabaCloud::Dbs::Model::ConfigureBackupPlanRequest;
ConfigureBackupPlanRequest::ConfigureBackupPlanRequest() :
RpcServiceRequest("dbs", "2019-03-06", "ConfigureBackupPlan")
{}
ConfigureBackupPlanRequest::~ConfigureBackupPlanRequest()
{}
std::string ConfigureBackupPlanRequest::getSourceEndpointRegion()const
{
return sourceEndpointRegion_;

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dbs/model/ConfigureBackupPlanResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dbs;
using namespace AlibabaCloud::Dbs::Model;
ConfigureBackupPlanResult::ConfigureBackupPlanResult() :
ServiceResult()
{}
ConfigureBackupPlanResult::ConfigureBackupPlanResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ConfigureBackupPlanResult::~ConfigureBackupPlanResult()
{}
void ConfigureBackupPlanResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* 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/dbs/model/ConfigureBackupPlanResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dbs;
using namespace AlibabaCloud::Dbs::Model;
ConfigureBackupPlanResult::ConfigureBackupPlanResult() :
ServiceResult()
{}
ConfigureBackupPlanResult::ConfigureBackupPlanResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ConfigureBackupPlanResult::~ConfigureBackupPlanResult()
{}
void ConfigureBackupPlanResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["ErrCode"].isNull())
@@ -50,9 +53,9 @@ void ConfigureBackupPlanResult::parse(const std::string &payload)
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["BackupPlanId"].isNull())
backupPlanId_ = value["BackupPlanId"].asString();
}
}
int ConfigureBackupPlanResult::getHttpStatusCode()const
{
return httpStatusCode_;

View File

@@ -1,30 +1,30 @@
/*
* 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/dbs/model/CreateBackupPlanRequest.h>
using AlibabaCloud::Dbs::Model::CreateBackupPlanRequest;
CreateBackupPlanRequest::CreateBackupPlanRequest() :
RpcServiceRequest("dbs", "2019-03-06", "CreateBackupPlan")
{}
CreateBackupPlanRequest::~CreateBackupPlanRequest()
{}
/*
* 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/dbs/model/CreateBackupPlanRequest.h>
using AlibabaCloud::Dbs::Model::CreateBackupPlanRequest;
CreateBackupPlanRequest::CreateBackupPlanRequest() :
RpcServiceRequest("dbs", "2019-03-06", "CreateBackupPlan")
{}
CreateBackupPlanRequest::~CreateBackupPlanRequest()
{}
std::string CreateBackupPlanRequest::getDatabaseType()const
{
return databaseType_;

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dbs/model/CreateBackupPlanResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dbs;
using namespace AlibabaCloud::Dbs::Model;
CreateBackupPlanResult::CreateBackupPlanResult() :
ServiceResult()
{}
CreateBackupPlanResult::CreateBackupPlanResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateBackupPlanResult::~CreateBackupPlanResult()
{}
void CreateBackupPlanResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* 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/dbs/model/CreateBackupPlanResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dbs;
using namespace AlibabaCloud::Dbs::Model;
CreateBackupPlanResult::CreateBackupPlanResult() :
ServiceResult()
{}
CreateBackupPlanResult::CreateBackupPlanResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateBackupPlanResult::~CreateBackupPlanResult()
{}
void CreateBackupPlanResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["ErrCode"].isNull())
@@ -52,9 +55,9 @@ void CreateBackupPlanResult::parse(const std::string &payload)
backupPlanId_ = value["BackupPlanId"].asString();
if(!value["OrderId"].isNull())
orderId_ = value["OrderId"].asString();
}
}
int CreateBackupPlanResult::getHttpStatusCode()const
{
return httpStatusCode_;

View File

@@ -1,30 +1,30 @@
/*
* 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/dbs/model/CreateRestoreTaskRequest.h>
using AlibabaCloud::Dbs::Model::CreateRestoreTaskRequest;
CreateRestoreTaskRequest::CreateRestoreTaskRequest() :
RpcServiceRequest("dbs", "2019-03-06", "CreateRestoreTask")
{}
CreateRestoreTaskRequest::~CreateRestoreTaskRequest()
{}
/*
* 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/dbs/model/CreateRestoreTaskRequest.h>
using AlibabaCloud::Dbs::Model::CreateRestoreTaskRequest;
CreateRestoreTaskRequest::CreateRestoreTaskRequest() :
RpcServiceRequest("dbs", "2019-03-06", "CreateRestoreTask")
{}
CreateRestoreTaskRequest::~CreateRestoreTaskRequest()
{}
long CreateRestoreTaskRequest::getBackupGatewayId()const
{
return backupGatewayId_;

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dbs/model/CreateRestoreTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dbs;
using namespace AlibabaCloud::Dbs::Model;
CreateRestoreTaskResult::CreateRestoreTaskResult() :
ServiceResult()
{}
CreateRestoreTaskResult::CreateRestoreTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateRestoreTaskResult::~CreateRestoreTaskResult()
{}
void CreateRestoreTaskResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* 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/dbs/model/CreateRestoreTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dbs;
using namespace AlibabaCloud::Dbs::Model;
CreateRestoreTaskResult::CreateRestoreTaskResult() :
ServiceResult()
{}
CreateRestoreTaskResult::CreateRestoreTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateRestoreTaskResult::~CreateRestoreTaskResult()
{}
void CreateRestoreTaskResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["ErrCode"].isNull())
@@ -50,9 +53,9 @@ void CreateRestoreTaskResult::parse(const std::string &payload)
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["RestoreTaskId"].isNull())
restoreTaskId_ = value["RestoreTaskId"].asString();
}
}
std::string CreateRestoreTaskResult::getRestoreTaskId()const
{
return restoreTaskId_;

View File

@@ -1,30 +1,30 @@
/*
* 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/dbs/model/DescribeBackupGatewayListRequest.h>
using AlibabaCloud::Dbs::Model::DescribeBackupGatewayListRequest;
DescribeBackupGatewayListRequest::DescribeBackupGatewayListRequest() :
RpcServiceRequest("dbs", "2019-03-06", "DescribeBackupGatewayList")
{}
DescribeBackupGatewayListRequest::~DescribeBackupGatewayListRequest()
{}
/*
* 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/dbs/model/DescribeBackupGatewayListRequest.h>
using AlibabaCloud::Dbs::Model::DescribeBackupGatewayListRequest;
DescribeBackupGatewayListRequest::DescribeBackupGatewayListRequest() :
RpcServiceRequest("dbs", "2019-03-06", "DescribeBackupGatewayList")
{}
DescribeBackupGatewayListRequest::~DescribeBackupGatewayListRequest()
{}
std::string DescribeBackupGatewayListRequest::getIdentifier()const
{
return identifier_;

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dbs/model/DescribeBackupGatewayListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dbs;
using namespace AlibabaCloud::Dbs::Model;
DescribeBackupGatewayListResult::DescribeBackupGatewayListResult() :
ServiceResult()
{}
DescribeBackupGatewayListResult::DescribeBackupGatewayListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeBackupGatewayListResult::~DescribeBackupGatewayListResult()
{}
void DescribeBackupGatewayListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* 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/dbs/model/DescribeBackupGatewayListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dbs;
using namespace AlibabaCloud::Dbs::Model;
DescribeBackupGatewayListResult::DescribeBackupGatewayListResult() :
ServiceResult()
{}
DescribeBackupGatewayListResult::DescribeBackupGatewayListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeBackupGatewayListResult::~DescribeBackupGatewayListResult()
{}
void DescribeBackupGatewayListResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto allItems = value["Items"]["BackupGateway"];
for (auto value : allItems)
{
@@ -82,9 +85,9 @@ void DescribeBackupGatewayListResult::parse(const std::string &payload)
pageNum_ = std::stoi(value["PageNum"].asString());
if(!value["TotalElements"].isNull())
totalElements_ = std::stoi(value["TotalElements"].asString());
}
}
int DescribeBackupGatewayListResult::getPageSize()const
{
return pageSize_;

View File

@@ -1,30 +1,30 @@
/*
* 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/dbs/model/DescribeBackupPlanListRequest.h>
using AlibabaCloud::Dbs::Model::DescribeBackupPlanListRequest;
DescribeBackupPlanListRequest::DescribeBackupPlanListRequest() :
RpcServiceRequest("dbs", "2019-03-06", "DescribeBackupPlanList")
{}
DescribeBackupPlanListRequest::~DescribeBackupPlanListRequest()
{}
/*
* 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/dbs/model/DescribeBackupPlanListRequest.h>
using AlibabaCloud::Dbs::Model::DescribeBackupPlanListRequest;
DescribeBackupPlanListRequest::DescribeBackupPlanListRequest() :
RpcServiceRequest("dbs", "2019-03-06", "DescribeBackupPlanList")
{}
DescribeBackupPlanListRequest::~DescribeBackupPlanListRequest()
{}
std::string DescribeBackupPlanListRequest::getRegionId()const
{
return regionId_;

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dbs/model/DescribeBackupPlanListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dbs;
using namespace AlibabaCloud::Dbs::Model;
DescribeBackupPlanListResult::DescribeBackupPlanListResult() :
ServiceResult()
{}
DescribeBackupPlanListResult::DescribeBackupPlanListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeBackupPlanListResult::~DescribeBackupPlanListResult()
{}
void DescribeBackupPlanListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* 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/dbs/model/DescribeBackupPlanListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dbs;
using namespace AlibabaCloud::Dbs::Model;
DescribeBackupPlanListResult::DescribeBackupPlanListResult() :
ServiceResult()
{}
DescribeBackupPlanListResult::DescribeBackupPlanListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeBackupPlanListResult::~DescribeBackupPlanListResult()
{}
void DescribeBackupPlanListResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto allItems = value["Items"]["BackupPlanDetail"];
for (auto value : allItems)
{
@@ -112,9 +115,9 @@ void DescribeBackupPlanListResult::parse(const std::string &payload)
pageNum_ = std::stoi(value["PageNum"].asString());
if(!value["TotalElements"].isNull())
totalElements_ = std::stoi(value["TotalElements"].asString());
}
}
int DescribeBackupPlanListResult::getPageSize()const
{
return pageSize_;

View File

@@ -1,30 +1,30 @@
/*
* 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/dbs/model/DescribeFullBackupListRequest.h>
using AlibabaCloud::Dbs::Model::DescribeFullBackupListRequest;
DescribeFullBackupListRequest::DescribeFullBackupListRequest() :
RpcServiceRequest("dbs", "2019-03-06", "DescribeFullBackupList")
{}
DescribeFullBackupListRequest::~DescribeFullBackupListRequest()
{}
/*
* 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/dbs/model/DescribeFullBackupListRequest.h>
using AlibabaCloud::Dbs::Model::DescribeFullBackupListRequest;
DescribeFullBackupListRequest::DescribeFullBackupListRequest() :
RpcServiceRequest("dbs", "2019-03-06", "DescribeFullBackupList")
{}
DescribeFullBackupListRequest::~DescribeFullBackupListRequest()
{}
std::string DescribeFullBackupListRequest::getRegionId()const
{
return regionId_;

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dbs/model/DescribeFullBackupListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dbs;
using namespace AlibabaCloud::Dbs::Model;
DescribeFullBackupListResult::DescribeFullBackupListResult() :
ServiceResult()
{}
DescribeFullBackupListResult::DescribeFullBackupListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeFullBackupListResult::~DescribeFullBackupListResult()
{}
void DescribeFullBackupListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* 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/dbs/model/DescribeFullBackupListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dbs;
using namespace AlibabaCloud::Dbs::Model;
DescribeFullBackupListResult::DescribeFullBackupListResult() :
ServiceResult()
{}
DescribeFullBackupListResult::DescribeFullBackupListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeFullBackupListResult::~DescribeFullBackupListResult()
{}
void DescribeFullBackupListResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto allItems = value["Items"]["FullBackupFile"];
for (auto value : allItems)
{
@@ -86,9 +89,9 @@ void DescribeFullBackupListResult::parse(const std::string &payload)
pageNum_ = std::stoi(value["PageNum"].asString());
if(!value["TotalElements"].isNull())
totalElements_ = std::stoi(value["TotalElements"].asString());
}
}
int DescribeFullBackupListResult::getPageSize()const
{
return pageSize_;

View File

@@ -1,30 +1,30 @@
/*
* 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/dbs/model/DescribeIncrementBackupListRequest.h>
using AlibabaCloud::Dbs::Model::DescribeIncrementBackupListRequest;
DescribeIncrementBackupListRequest::DescribeIncrementBackupListRequest() :
RpcServiceRequest("dbs", "2019-03-06", "DescribeIncrementBackupList")
{}
DescribeIncrementBackupListRequest::~DescribeIncrementBackupListRequest()
{}
/*
* 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/dbs/model/DescribeIncrementBackupListRequest.h>
using AlibabaCloud::Dbs::Model::DescribeIncrementBackupListRequest;
DescribeIncrementBackupListRequest::DescribeIncrementBackupListRequest() :
RpcServiceRequest("dbs", "2019-03-06", "DescribeIncrementBackupList")
{}
DescribeIncrementBackupListRequest::~DescribeIncrementBackupListRequest()
{}
std::string DescribeIncrementBackupListRequest::getRegionId()const
{
return regionId_;

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dbs/model/DescribeIncrementBackupListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dbs;
using namespace AlibabaCloud::Dbs::Model;
DescribeIncrementBackupListResult::DescribeIncrementBackupListResult() :
ServiceResult()
{}
DescribeIncrementBackupListResult::DescribeIncrementBackupListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeIncrementBackupListResult::~DescribeIncrementBackupListResult()
{}
void DescribeIncrementBackupListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* 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/dbs/model/DescribeIncrementBackupListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dbs;
using namespace AlibabaCloud::Dbs::Model;
DescribeIncrementBackupListResult::DescribeIncrementBackupListResult() :
ServiceResult()
{}
DescribeIncrementBackupListResult::DescribeIncrementBackupListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeIncrementBackupListResult::~DescribeIncrementBackupListResult()
{}
void DescribeIncrementBackupListResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto allItems = value["Items"]["IncrementBackupFile"];
for (auto value : allItems)
{
@@ -78,9 +81,9 @@ void DescribeIncrementBackupListResult::parse(const std::string &payload)
pageNum_ = std::stoi(value["PageNum"].asString());
if(!value["TotalElements"].isNull())
totalElements_ = std::stoi(value["TotalElements"].asString());
}
}
int DescribeIncrementBackupListResult::getPageSize()const
{
return pageSize_;

View File

@@ -1,30 +1,30 @@
/*
* 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/dbs/model/DescribeNodeCidrListRequest.h>
using AlibabaCloud::Dbs::Model::DescribeNodeCidrListRequest;
DescribeNodeCidrListRequest::DescribeNodeCidrListRequest() :
RpcServiceRequest("dbs", "2019-03-06", "DescribeNodeCidrList")
{}
DescribeNodeCidrListRequest::~DescribeNodeCidrListRequest()
{}
/*
* 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/dbs/model/DescribeNodeCidrListRequest.h>
using AlibabaCloud::Dbs::Model::DescribeNodeCidrListRequest;
DescribeNodeCidrListRequest::DescribeNodeCidrListRequest() :
RpcServiceRequest("dbs", "2019-03-06", "DescribeNodeCidrList")
{}
DescribeNodeCidrListRequest::~DescribeNodeCidrListRequest()
{}
std::string DescribeNodeCidrListRequest::getRegionId()const
{
return regionId_;

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dbs/model/DescribeNodeCidrListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dbs;
using namespace AlibabaCloud::Dbs::Model;
DescribeNodeCidrListResult::DescribeNodeCidrListResult() :
ServiceResult()
{}
DescribeNodeCidrListResult::DescribeNodeCidrListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeNodeCidrListResult::~DescribeNodeCidrListResult()
{}
void DescribeNodeCidrListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* 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/dbs/model/DescribeNodeCidrListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dbs;
using namespace AlibabaCloud::Dbs::Model;
DescribeNodeCidrListResult::DescribeNodeCidrListResult() :
ServiceResult()
{}
DescribeNodeCidrListResult::DescribeNodeCidrListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeNodeCidrListResult::~DescribeNodeCidrListResult()
{}
void DescribeNodeCidrListResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto allInternetIPs = value["InternetIPs"]["InternetIP"];
for (const auto &item : allInternetIPs)
internetIPs_.push_back(item.asString());
@@ -54,9 +57,9 @@ void DescribeNodeCidrListResult::parse(const std::string &payload)
errMessage_ = value["ErrMessage"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
}
}
std::vector<std::string> DescribeNodeCidrListResult::getInternetIPs()const
{
return internetIPs_;

View File

@@ -1,30 +1,30 @@
/*
* 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/dbs/model/DescribeRestoreTaskListRequest.h>
using AlibabaCloud::Dbs::Model::DescribeRestoreTaskListRequest;
DescribeRestoreTaskListRequest::DescribeRestoreTaskListRequest() :
RpcServiceRequest("dbs", "2019-03-06", "DescribeRestoreTaskList")
{}
DescribeRestoreTaskListRequest::~DescribeRestoreTaskListRequest()
{}
/*
* 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/dbs/model/DescribeRestoreTaskListRequest.h>
using AlibabaCloud::Dbs::Model::DescribeRestoreTaskListRequest;
DescribeRestoreTaskListRequest::DescribeRestoreTaskListRequest() :
RpcServiceRequest("dbs", "2019-03-06", "DescribeRestoreTaskList")
{}
DescribeRestoreTaskListRequest::~DescribeRestoreTaskListRequest()
{}
std::string DescribeRestoreTaskListRequest::getRegionId()const
{
return regionId_;

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dbs/model/DescribeRestoreTaskListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dbs;
using namespace AlibabaCloud::Dbs::Model;
DescribeRestoreTaskListResult::DescribeRestoreTaskListResult() :
ServiceResult()
{}
DescribeRestoreTaskListResult::DescribeRestoreTaskListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeRestoreTaskListResult::~DescribeRestoreTaskListResult()
{}
void DescribeRestoreTaskListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* 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/dbs/model/DescribeRestoreTaskListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dbs;
using namespace AlibabaCloud::Dbs::Model;
DescribeRestoreTaskListResult::DescribeRestoreTaskListResult() :
ServiceResult()
{}
DescribeRestoreTaskListResult::DescribeRestoreTaskListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeRestoreTaskListResult::~DescribeRestoreTaskListResult()
{}
void DescribeRestoreTaskListResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto allItems = value["Items"]["RestoreTaskDetail"];
for (auto value : allItems)
{
@@ -108,9 +111,9 @@ void DescribeRestoreTaskListResult::parse(const std::string &payload)
pageNum_ = std::stoi(value["PageNum"].asString());
if(!value["TotalElements"].isNull())
totalElements_ = std::stoi(value["TotalElements"].asString());
}
}
int DescribeRestoreTaskListResult::getPageSize()const
{
return pageSize_;

View File

@@ -1,30 +1,30 @@
/*
* 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/dbs/model/ModifyBackupObjectsRequest.h>
using AlibabaCloud::Dbs::Model::ModifyBackupObjectsRequest;
ModifyBackupObjectsRequest::ModifyBackupObjectsRequest() :
RpcServiceRequest("dbs", "2019-03-06", "ModifyBackupObjects")
{}
ModifyBackupObjectsRequest::~ModifyBackupObjectsRequest()
{}
/*
* 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/dbs/model/ModifyBackupObjectsRequest.h>
using AlibabaCloud::Dbs::Model::ModifyBackupObjectsRequest;
ModifyBackupObjectsRequest::ModifyBackupObjectsRequest() :
RpcServiceRequest("dbs", "2019-03-06", "ModifyBackupObjects")
{}
ModifyBackupObjectsRequest::~ModifyBackupObjectsRequest()
{}
std::string ModifyBackupObjectsRequest::getRegionId()const
{
return regionId_;

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dbs/model/ModifyBackupObjectsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dbs;
using namespace AlibabaCloud::Dbs::Model;
ModifyBackupObjectsResult::ModifyBackupObjectsResult() :
ServiceResult()
{}
ModifyBackupObjectsResult::ModifyBackupObjectsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyBackupObjectsResult::~ModifyBackupObjectsResult()
{}
void ModifyBackupObjectsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* 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/dbs/model/ModifyBackupObjectsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dbs;
using namespace AlibabaCloud::Dbs::Model;
ModifyBackupObjectsResult::ModifyBackupObjectsResult() :
ServiceResult()
{}
ModifyBackupObjectsResult::ModifyBackupObjectsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyBackupObjectsResult::~ModifyBackupObjectsResult()
{}
void ModifyBackupObjectsResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["ErrCode"].isNull())
@@ -52,9 +55,9 @@ void ModifyBackupObjectsResult::parse(const std::string &payload)
backupPlanId_ = value["BackupPlanId"].asString();
if(!value["NeedPrecheck"].isNull())
needPrecheck_ = value["NeedPrecheck"].asString() == "true";
}
}
int ModifyBackupObjectsResult::getHttpStatusCode()const
{
return httpStatusCode_;

View File

@@ -1,30 +1,30 @@
/*
* 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/dbs/model/ModifyBackupPlanNameRequest.h>
using AlibabaCloud::Dbs::Model::ModifyBackupPlanNameRequest;
ModifyBackupPlanNameRequest::ModifyBackupPlanNameRequest() :
RpcServiceRequest("dbs", "2019-03-06", "ModifyBackupPlanName")
{}
ModifyBackupPlanNameRequest::~ModifyBackupPlanNameRequest()
{}
/*
* 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/dbs/model/ModifyBackupPlanNameRequest.h>
using AlibabaCloud::Dbs::Model::ModifyBackupPlanNameRequest;
ModifyBackupPlanNameRequest::ModifyBackupPlanNameRequest() :
RpcServiceRequest("dbs", "2019-03-06", "ModifyBackupPlanName")
{}
ModifyBackupPlanNameRequest::~ModifyBackupPlanNameRequest()
{}
std::string ModifyBackupPlanNameRequest::getBackupPlanName()const
{
return backupPlanName_;

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dbs/model/ModifyBackupPlanNameResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dbs;
using namespace AlibabaCloud::Dbs::Model;
ModifyBackupPlanNameResult::ModifyBackupPlanNameResult() :
ServiceResult()
{}
ModifyBackupPlanNameResult::ModifyBackupPlanNameResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyBackupPlanNameResult::~ModifyBackupPlanNameResult()
{}
void ModifyBackupPlanNameResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* 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/dbs/model/ModifyBackupPlanNameResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dbs;
using namespace AlibabaCloud::Dbs::Model;
ModifyBackupPlanNameResult::ModifyBackupPlanNameResult() :
ServiceResult()
{}
ModifyBackupPlanNameResult::ModifyBackupPlanNameResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyBackupPlanNameResult::~ModifyBackupPlanNameResult()
{}
void ModifyBackupPlanNameResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["ErrCode"].isNull())
@@ -50,9 +53,9 @@ void ModifyBackupPlanNameResult::parse(const std::string &payload)
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["BackupPlanId"].isNull())
backupPlanId_ = value["BackupPlanId"].asString();
}
}
int ModifyBackupPlanNameResult::getHttpStatusCode()const
{
return httpStatusCode_;

View File

@@ -1,30 +1,30 @@
/*
* 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/dbs/model/ModifyBackupSourceEndpointRequest.h>
using AlibabaCloud::Dbs::Model::ModifyBackupSourceEndpointRequest;
ModifyBackupSourceEndpointRequest::ModifyBackupSourceEndpointRequest() :
RpcServiceRequest("dbs", "2019-03-06", "ModifyBackupSourceEndpoint")
{}
ModifyBackupSourceEndpointRequest::~ModifyBackupSourceEndpointRequest()
{}
/*
* 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/dbs/model/ModifyBackupSourceEndpointRequest.h>
using AlibabaCloud::Dbs::Model::ModifyBackupSourceEndpointRequest;
ModifyBackupSourceEndpointRequest::ModifyBackupSourceEndpointRequest() :
RpcServiceRequest("dbs", "2019-03-06", "ModifyBackupSourceEndpoint")
{}
ModifyBackupSourceEndpointRequest::~ModifyBackupSourceEndpointRequest()
{}
std::string ModifyBackupSourceEndpointRequest::getSourceEndpointRegion()const
{
return sourceEndpointRegion_;

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dbs/model/ModifyBackupSourceEndpointResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dbs;
using namespace AlibabaCloud::Dbs::Model;
ModifyBackupSourceEndpointResult::ModifyBackupSourceEndpointResult() :
ServiceResult()
{}
ModifyBackupSourceEndpointResult::ModifyBackupSourceEndpointResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyBackupSourceEndpointResult::~ModifyBackupSourceEndpointResult()
{}
void ModifyBackupSourceEndpointResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* 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/dbs/model/ModifyBackupSourceEndpointResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dbs;
using namespace AlibabaCloud::Dbs::Model;
ModifyBackupSourceEndpointResult::ModifyBackupSourceEndpointResult() :
ServiceResult()
{}
ModifyBackupSourceEndpointResult::ModifyBackupSourceEndpointResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyBackupSourceEndpointResult::~ModifyBackupSourceEndpointResult()
{}
void ModifyBackupSourceEndpointResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["ErrCode"].isNull())
@@ -52,9 +55,9 @@ void ModifyBackupSourceEndpointResult::parse(const std::string &payload)
backupPlanId_ = value["BackupPlanId"].asString();
if(!value["NeedPrecheck"].isNull())
needPrecheck_ = value["NeedPrecheck"].asString() == "true";
}
}
int ModifyBackupSourceEndpointResult::getHttpStatusCode()const
{
return httpStatusCode_;

View File

@@ -1,30 +1,30 @@
/*
* 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/dbs/model/ModifyBackupStrategyRequest.h>
using AlibabaCloud::Dbs::Model::ModifyBackupStrategyRequest;
ModifyBackupStrategyRequest::ModifyBackupStrategyRequest() :
RpcServiceRequest("dbs", "2019-03-06", "ModifyBackupStrategy")
{}
ModifyBackupStrategyRequest::~ModifyBackupStrategyRequest()
{}
/*
* 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/dbs/model/ModifyBackupStrategyRequest.h>
using AlibabaCloud::Dbs::Model::ModifyBackupStrategyRequest;
ModifyBackupStrategyRequest::ModifyBackupStrategyRequest() :
RpcServiceRequest("dbs", "2019-03-06", "ModifyBackupStrategy")
{}
ModifyBackupStrategyRequest::~ModifyBackupStrategyRequest()
{}
std::string ModifyBackupStrategyRequest::getBackupPeriod()const
{
return backupPeriod_;

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dbs/model/ModifyBackupStrategyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dbs;
using namespace AlibabaCloud::Dbs::Model;
ModifyBackupStrategyResult::ModifyBackupStrategyResult() :
ServiceResult()
{}
ModifyBackupStrategyResult::ModifyBackupStrategyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyBackupStrategyResult::~ModifyBackupStrategyResult()
{}
void ModifyBackupStrategyResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* 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/dbs/model/ModifyBackupStrategyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dbs;
using namespace AlibabaCloud::Dbs::Model;
ModifyBackupStrategyResult::ModifyBackupStrategyResult() :
ServiceResult()
{}
ModifyBackupStrategyResult::ModifyBackupStrategyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyBackupStrategyResult::~ModifyBackupStrategyResult()
{}
void ModifyBackupStrategyResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["ErrCode"].isNull())
@@ -52,9 +55,9 @@ void ModifyBackupStrategyResult::parse(const std::string &payload)
backupPlanId_ = value["BackupPlanId"].asString();
if(!value["NeedPrecheck"].isNull())
needPrecheck_ = value["NeedPrecheck"].asString() == "true";
}
}
int ModifyBackupStrategyResult::getHttpStatusCode()const
{
return httpStatusCode_;

View File

@@ -1,30 +1,30 @@
/*
* 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/dbs/model/RenewBackupPlanRequest.h>
using AlibabaCloud::Dbs::Model::RenewBackupPlanRequest;
RenewBackupPlanRequest::RenewBackupPlanRequest() :
RpcServiceRequest("dbs", "2019-03-06", "RenewBackupPlan")
{}
RenewBackupPlanRequest::~RenewBackupPlanRequest()
{}
/*
* 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/dbs/model/RenewBackupPlanRequest.h>
using AlibabaCloud::Dbs::Model::RenewBackupPlanRequest;
RenewBackupPlanRequest::RenewBackupPlanRequest() :
RpcServiceRequest("dbs", "2019-03-06", "RenewBackupPlan")
{}
RenewBackupPlanRequest::~RenewBackupPlanRequest()
{}
std::string RenewBackupPlanRequest::getPeriod()const
{
return period_;

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dbs/model/RenewBackupPlanResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dbs;
using namespace AlibabaCloud::Dbs::Model;
RenewBackupPlanResult::RenewBackupPlanResult() :
ServiceResult()
{}
RenewBackupPlanResult::RenewBackupPlanResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
RenewBackupPlanResult::~RenewBackupPlanResult()
{}
void RenewBackupPlanResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* 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/dbs/model/RenewBackupPlanResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dbs;
using namespace AlibabaCloud::Dbs::Model;
RenewBackupPlanResult::RenewBackupPlanResult() :
ServiceResult()
{}
RenewBackupPlanResult::RenewBackupPlanResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
RenewBackupPlanResult::~RenewBackupPlanResult()
{}
void RenewBackupPlanResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["ErrCode"].isNull())
@@ -52,9 +55,9 @@ void RenewBackupPlanResult::parse(const std::string &payload)
backupPlanId_ = value["BackupPlanId"].asString();
if(!value["OrderId"].isNull())
orderId_ = value["OrderId"].asString();
}
}
int RenewBackupPlanResult::getHttpStatusCode()const
{
return httpStatusCode_;

View File

@@ -1,30 +1,30 @@
/*
* 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/dbs/model/StartBackupPlanRequest.h>
using AlibabaCloud::Dbs::Model::StartBackupPlanRequest;
StartBackupPlanRequest::StartBackupPlanRequest() :
RpcServiceRequest("dbs", "2019-03-06", "StartBackupPlan")
{}
StartBackupPlanRequest::~StartBackupPlanRequest()
{}
/*
* 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/dbs/model/StartBackupPlanRequest.h>
using AlibabaCloud::Dbs::Model::StartBackupPlanRequest;
StartBackupPlanRequest::StartBackupPlanRequest() :
RpcServiceRequest("dbs", "2019-03-06", "StartBackupPlan")
{}
StartBackupPlanRequest::~StartBackupPlanRequest()
{}
std::string StartBackupPlanRequest::getRegionId()const
{
return regionId_;

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dbs/model/StartBackupPlanResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dbs;
using namespace AlibabaCloud::Dbs::Model;
StartBackupPlanResult::StartBackupPlanResult() :
ServiceResult()
{}
StartBackupPlanResult::StartBackupPlanResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
StartBackupPlanResult::~StartBackupPlanResult()
{}
void StartBackupPlanResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* 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/dbs/model/StartBackupPlanResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dbs;
using namespace AlibabaCloud::Dbs::Model;
StartBackupPlanResult::StartBackupPlanResult() :
ServiceResult()
{}
StartBackupPlanResult::StartBackupPlanResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
StartBackupPlanResult::~StartBackupPlanResult()
{}
void StartBackupPlanResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["ErrCode"].isNull())
@@ -50,9 +53,9 @@ void StartBackupPlanResult::parse(const std::string &payload)
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["BackupPlanId"].isNull())
backupPlanId_ = value["BackupPlanId"].asString();
}
}
int StartBackupPlanResult::getHttpStatusCode()const
{
return httpStatusCode_;

View File

@@ -1,30 +1,30 @@
/*
* 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/dbs/model/StartRestoreTaskRequest.h>
using AlibabaCloud::Dbs::Model::StartRestoreTaskRequest;
StartRestoreTaskRequest::StartRestoreTaskRequest() :
RpcServiceRequest("dbs", "2019-03-06", "StartRestoreTask")
{}
StartRestoreTaskRequest::~StartRestoreTaskRequest()
{}
/*
* 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/dbs/model/StartRestoreTaskRequest.h>
using AlibabaCloud::Dbs::Model::StartRestoreTaskRequest;
StartRestoreTaskRequest::StartRestoreTaskRequest() :
RpcServiceRequest("dbs", "2019-03-06", "StartRestoreTask")
{}
StartRestoreTaskRequest::~StartRestoreTaskRequest()
{}
std::string StartRestoreTaskRequest::getRegionId()const
{
return regionId_;

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dbs/model/StartRestoreTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dbs;
using namespace AlibabaCloud::Dbs::Model;
StartRestoreTaskResult::StartRestoreTaskResult() :
ServiceResult()
{}
StartRestoreTaskResult::StartRestoreTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
StartRestoreTaskResult::~StartRestoreTaskResult()
{}
void StartRestoreTaskResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* 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/dbs/model/StartRestoreTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dbs;
using namespace AlibabaCloud::Dbs::Model;
StartRestoreTaskResult::StartRestoreTaskResult() :
ServiceResult()
{}
StartRestoreTaskResult::StartRestoreTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
StartRestoreTaskResult::~StartRestoreTaskResult()
{}
void StartRestoreTaskResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["ErrCode"].isNull())
@@ -50,9 +53,9 @@ void StartRestoreTaskResult::parse(const std::string &payload)
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["RestoreTaskId"].isNull())
restoreTaskId_ = value["RestoreTaskId"].asString();
}
}
std::string StartRestoreTaskResult::getRestoreTaskId()const
{
return restoreTaskId_;

View File

@@ -1,30 +1,30 @@
/*
* 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/dbs/model/StopBackupPlanRequest.h>
using AlibabaCloud::Dbs::Model::StopBackupPlanRequest;
StopBackupPlanRequest::StopBackupPlanRequest() :
RpcServiceRequest("dbs", "2019-03-06", "StopBackupPlan")
{}
StopBackupPlanRequest::~StopBackupPlanRequest()
{}
/*
* 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/dbs/model/StopBackupPlanRequest.h>
using AlibabaCloud::Dbs::Model::StopBackupPlanRequest;
StopBackupPlanRequest::StopBackupPlanRequest() :
RpcServiceRequest("dbs", "2019-03-06", "StopBackupPlan")
{}
StopBackupPlanRequest::~StopBackupPlanRequest()
{}
std::string StopBackupPlanRequest::getStopMethod()const
{
return stopMethod_;

View File

@@ -1,45 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dbs/model/StopBackupPlanResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dbs;
using namespace AlibabaCloud::Dbs::Model;
StopBackupPlanResult::StopBackupPlanResult() :
ServiceResult()
{}
StopBackupPlanResult::StopBackupPlanResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
StopBackupPlanResult::~StopBackupPlanResult()
{}
void StopBackupPlanResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
/*
* 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/dbs/model/StopBackupPlanResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dbs;
using namespace AlibabaCloud::Dbs::Model;
StopBackupPlanResult::StopBackupPlanResult() :
ServiceResult()
{}
StopBackupPlanResult::StopBackupPlanResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
StopBackupPlanResult::~StopBackupPlanResult()
{}
void StopBackupPlanResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["ErrCode"].isNull())
@@ -50,9 +53,9 @@ void StopBackupPlanResult::parse(const std::string &payload)
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["BackupPlanId"].isNull())
backupPlanId_ = value["BackupPlanId"].asString();
}
}
int StopBackupPlanResult::getHttpStatusCode()const
{
return httpStatusCode_;