Add CreateAndStartBackupPlan.
This commit is contained in:
@@ -51,42 +51,6 @@ DbsClient::DbsClient(const std::string & accessKeyId, const std::string & access
|
||||
DbsClient::~DbsClient()
|
||||
{}
|
||||
|
||||
DbsClient::CloseDLAServiceOutcome DbsClient::closeDLAService(const CloseDLAServiceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CloseDLAServiceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CloseDLAServiceOutcome(CloseDLAServiceResult(outcome.result()));
|
||||
else
|
||||
return CloseDLAServiceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DbsClient::closeDLAServiceAsync(const CloseDLAServiceRequest& request, const CloseDLAServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, closeDLAService(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DbsClient::CloseDLAServiceOutcomeCallable DbsClient::closeDLAServiceCallable(const CloseDLAServiceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CloseDLAServiceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->closeDLAService(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DbsClient::ConfigureBackupPlanOutcome DbsClient::configureBackupPlan(const ConfigureBackupPlanRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -195,42 +159,6 @@ DbsClient::CreateBackupPlanOutcomeCallable DbsClient::createBackupPlanCallable(c
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DbsClient::CreateDLAServiceOutcome DbsClient::createDLAService(const CreateDLAServiceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateDLAServiceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateDLAServiceOutcome(CreateDLAServiceResult(outcome.result()));
|
||||
else
|
||||
return CreateDLAServiceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DbsClient::createDLAServiceAsync(const CreateDLAServiceRequest& request, const CreateDLAServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createDLAService(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DbsClient::CreateDLAServiceOutcomeCallable DbsClient::createDLAServiceCallable(const CreateDLAServiceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateDLAServiceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createDLAService(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DbsClient::CreateFullBackupSetDownloadOutcome DbsClient::createFullBackupSetDownload(const CreateFullBackupSetDownloadRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -591,6 +519,42 @@ DbsClient::DescribeFullBackupListOutcomeCallable DbsClient::describeFullBackupLi
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DbsClient::DescribeFullBackupSetOutcome DbsClient::describeFullBackupSet(const DescribeFullBackupSetRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeFullBackupSetOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeFullBackupSetOutcome(DescribeFullBackupSetResult(outcome.result()));
|
||||
else
|
||||
return DescribeFullBackupSetOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DbsClient::describeFullBackupSetAsync(const DescribeFullBackupSetRequest& request, const DescribeFullBackupSetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeFullBackupSet(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DbsClient::DescribeFullBackupSetOutcomeCallable DbsClient::describeFullBackupSetCallable(const DescribeFullBackupSetRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeFullBackupSetOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeFullBackupSet(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DbsClient::DescribeIncrementBackupListOutcome DbsClient::describeIncrementBackupList(const DescribeIncrementBackupListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -663,6 +627,42 @@ DbsClient::DescribeJobErrorCodeOutcomeCallable DbsClient::describeJobErrorCodeCa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DbsClient::DescribeLogicalBackupSetOutcome DbsClient::describeLogicalBackupSet(const DescribeLogicalBackupSetRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeLogicalBackupSetOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeLogicalBackupSetOutcome(DescribeLogicalBackupSetResult(outcome.result()));
|
||||
else
|
||||
return DescribeLogicalBackupSetOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DbsClient::describeLogicalBackupSetAsync(const DescribeLogicalBackupSetRequest& request, const DescribeLogicalBackupSetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeLogicalBackupSet(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DbsClient::DescribeLogicalBackupSetOutcomeCallable DbsClient::describeLogicalBackupSetCallable(const DescribeLogicalBackupSetRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeLogicalBackupSetOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeLogicalBackupSet(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DbsClient::DescribeNodeCidrListOutcome DbsClient::describeNodeCidrList(const DescribeNodeCidrListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -1,62 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dbs/model/CloseDLAServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::Dbs::Model::CloseDLAServiceRequest;
|
||||
|
||||
CloseDLAServiceRequest::CloseDLAServiceRequest() :
|
||||
RpcServiceRequest("dbs", "2019-03-06", "CloseDLAService")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CloseDLAServiceRequest::~CloseDLAServiceRequest()
|
||||
{}
|
||||
|
||||
std::string CloseDLAServiceRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CloseDLAServiceRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CloseDLAServiceRequest::getBackupPlanId()const
|
||||
{
|
||||
return backupPlanId_;
|
||||
}
|
||||
|
||||
void CloseDLAServiceRequest::setBackupPlanId(const std::string& backupPlanId)
|
||||
{
|
||||
backupPlanId_ = backupPlanId;
|
||||
setParameter("BackupPlanId", backupPlanId);
|
||||
}
|
||||
|
||||
std::string CloseDLAServiceRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CloseDLAServiceRequest::setOwnerId(const std::string& ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", ownerId);
|
||||
}
|
||||
|
||||
@@ -1,84 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dbs/model/CreateDLAServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::Dbs::Model::CreateDLAServiceRequest;
|
||||
|
||||
CreateDLAServiceRequest::CreateDLAServiceRequest() :
|
||||
RpcServiceRequest("dbs", "2019-03-06", "CreateDLAService")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateDLAServiceRequest::~CreateDLAServiceRequest()
|
||||
{}
|
||||
|
||||
std::string CreateDLAServiceRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateDLAServiceRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
bool CreateDLAServiceRequest::getAutoAdd()const
|
||||
{
|
||||
return autoAdd_;
|
||||
}
|
||||
|
||||
void CreateDLAServiceRequest::setAutoAdd(bool autoAdd)
|
||||
{
|
||||
autoAdd_ = autoAdd;
|
||||
setParameter("AutoAdd", autoAdd ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateDLAServiceRequest::getBackupSetIds()const
|
||||
{
|
||||
return backupSetIds_;
|
||||
}
|
||||
|
||||
void CreateDLAServiceRequest::setBackupSetIds(const std::string& backupSetIds)
|
||||
{
|
||||
backupSetIds_ = backupSetIds;
|
||||
setParameter("BackupSetIds", backupSetIds);
|
||||
}
|
||||
|
||||
std::string CreateDLAServiceRequest::getBackupPlanId()const
|
||||
{
|
||||
return backupPlanId_;
|
||||
}
|
||||
|
||||
void CreateDLAServiceRequest::setBackupPlanId(const std::string& backupPlanId)
|
||||
{
|
||||
backupPlanId_ = backupPlanId;
|
||||
setParameter("BackupPlanId", backupPlanId);
|
||||
}
|
||||
|
||||
std::string CreateDLAServiceRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateDLAServiceRequest::setOwnerId(const std::string& ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", ownerId);
|
||||
}
|
||||
|
||||
@@ -1,72 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dbs/model/CreateDLAServiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dbs;
|
||||
using namespace AlibabaCloud::Dbs::Model;
|
||||
|
||||
CreateDLAServiceResult::CreateDLAServiceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateDLAServiceResult::CreateDLAServiceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateDLAServiceResult::~CreateDLAServiceResult()
|
||||
{}
|
||||
|
||||
void CreateDLAServiceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrCode"].isNull())
|
||||
errCode_ = value["ErrCode"].asString();
|
||||
if(!value["ErrMessage"].isNull())
|
||||
errMessage_ = value["ErrMessage"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
int CreateDLAServiceResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string CreateDLAServiceResult::getErrMessage()const
|
||||
{
|
||||
return errMessage_;
|
||||
}
|
||||
|
||||
bool CreateDLAServiceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string CreateDLAServiceResult::getErrCode()const
|
||||
{
|
||||
return errCode_;
|
||||
}
|
||||
|
||||
73
dbs/src/model/DescribeFullBackupSetRequest.cc
Normal file
73
dbs/src/model/DescribeFullBackupSetRequest.cc
Normal 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/dbs/model/DescribeFullBackupSetRequest.h>
|
||||
|
||||
using AlibabaCloud::Dbs::Model::DescribeFullBackupSetRequest;
|
||||
|
||||
DescribeFullBackupSetRequest::DescribeFullBackupSetRequest() :
|
||||
RpcServiceRequest("dbs", "2019-03-06", "DescribeFullBackupSet")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeFullBackupSetRequest::~DescribeFullBackupSetRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeFullBackupSetRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DescribeFullBackupSetRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string DescribeFullBackupSetRequest::getBackupPlanId()const
|
||||
{
|
||||
return backupPlanId_;
|
||||
}
|
||||
|
||||
void DescribeFullBackupSetRequest::setBackupPlanId(const std::string& backupPlanId)
|
||||
{
|
||||
backupPlanId_ = backupPlanId;
|
||||
setParameter("BackupPlanId", backupPlanId);
|
||||
}
|
||||
|
||||
std::string DescribeFullBackupSetRequest::getBackupsetId()const
|
||||
{
|
||||
return backupsetId_;
|
||||
}
|
||||
|
||||
void DescribeFullBackupSetRequest::setBackupsetId(const std::string& backupsetId)
|
||||
{
|
||||
backupsetId_ = backupsetId;
|
||||
setParameter("BackupsetId", backupsetId);
|
||||
}
|
||||
|
||||
std::string DescribeFullBackupSetRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeFullBackupSetRequest::setOwnerId(const std::string& ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", ownerId);
|
||||
}
|
||||
|
||||
156
dbs/src/model/DescribeFullBackupSetResult.cc
Normal file
156
dbs/src/model/DescribeFullBackupSetResult.cc
Normal file
@@ -0,0 +1,156 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/DescribeFullBackupSetResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dbs;
|
||||
using namespace AlibabaCloud::Dbs::Model;
|
||||
|
||||
DescribeFullBackupSetResult::DescribeFullBackupSetResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeFullBackupSetResult::DescribeFullBackupSetResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeFullBackupSetResult::~DescribeFullBackupSetResult()
|
||||
{}
|
||||
|
||||
void DescribeFullBackupSetResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrCode"].isNull())
|
||||
errCode_ = value["ErrCode"].asString();
|
||||
if(!value["ErrMessage"].isNull())
|
||||
errMessage_ = value["ErrMessage"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["BackupSetId"].isNull())
|
||||
backupSetId_ = value["BackupSetId"].asString();
|
||||
if(!value["SourceEndpointIpPort"].isNull())
|
||||
sourceEndpointIpPort_ = value["SourceEndpointIpPort"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = std::stol(value["StartTime"].asString());
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = std::stol(value["EndTime"].asString());
|
||||
if(!value["BackupStatus"].isNull())
|
||||
backupStatus_ = value["BackupStatus"].asString();
|
||||
if(!value["BackupSetExpiredTime"].isNull())
|
||||
backupSetExpiredTime_ = std::stol(value["BackupSetExpiredTime"].asString());
|
||||
if(!value["BackupSize"].isNull())
|
||||
backupSize_ = std::stol(value["BackupSize"].asString());
|
||||
if(!value["StorageMethod"].isNull())
|
||||
storageMethod_ = value["StorageMethod"].asString();
|
||||
if(!value["ErrMessage"].isNull())
|
||||
errMessage1_ = value["ErrMessage"].asString();
|
||||
if(!value["BackupObjects"].isNull())
|
||||
backupObjects_ = value["BackupObjects"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
createTime_ = std::stol(value["CreateTime"].asString());
|
||||
if(!value["FinishTime"].isNull())
|
||||
finishTime_ = std::stol(value["FinishTime"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeFullBackupSetResult::getStorageMethod()const
|
||||
{
|
||||
return storageMethod_;
|
||||
}
|
||||
|
||||
std::string DescribeFullBackupSetResult::getBackupObjects()const
|
||||
{
|
||||
return backupObjects_;
|
||||
}
|
||||
|
||||
long DescribeFullBackupSetResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
long DescribeFullBackupSetResult::getBackupSize()const
|
||||
{
|
||||
return backupSize_;
|
||||
}
|
||||
|
||||
long DescribeFullBackupSetResult::getCreateTime()const
|
||||
{
|
||||
return createTime_;
|
||||
}
|
||||
|
||||
long DescribeFullBackupSetResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
long DescribeFullBackupSetResult::getBackupSetExpiredTime()const
|
||||
{
|
||||
return backupSetExpiredTime_;
|
||||
}
|
||||
|
||||
std::string DescribeFullBackupSetResult::getErrMessage()const
|
||||
{
|
||||
return errMessage_;
|
||||
}
|
||||
|
||||
std::string DescribeFullBackupSetResult::getBackupSetId()const
|
||||
{
|
||||
return backupSetId_;
|
||||
}
|
||||
|
||||
bool DescribeFullBackupSetResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string DescribeFullBackupSetResult::getErrMessage1()const
|
||||
{
|
||||
return errMessage1_;
|
||||
}
|
||||
|
||||
std::string DescribeFullBackupSetResult::getErrCode()const
|
||||
{
|
||||
return errCode_;
|
||||
}
|
||||
|
||||
std::string DescribeFullBackupSetResult::getSourceEndpointIpPort()const
|
||||
{
|
||||
return sourceEndpointIpPort_;
|
||||
}
|
||||
|
||||
long DescribeFullBackupSetResult::getFinishTime()const
|
||||
{
|
||||
return finishTime_;
|
||||
}
|
||||
|
||||
int DescribeFullBackupSetResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string DescribeFullBackupSetResult::getBackupStatus()const
|
||||
{
|
||||
return backupStatus_;
|
||||
}
|
||||
|
||||
73
dbs/src/model/DescribeLogicalBackupSetRequest.cc
Normal file
73
dbs/src/model/DescribeLogicalBackupSetRequest.cc
Normal 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/dbs/model/DescribeLogicalBackupSetRequest.h>
|
||||
|
||||
using AlibabaCloud::Dbs::Model::DescribeLogicalBackupSetRequest;
|
||||
|
||||
DescribeLogicalBackupSetRequest::DescribeLogicalBackupSetRequest() :
|
||||
RpcServiceRequest("dbs", "2019-03-06", "DescribeLogicalBackupSet")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeLogicalBackupSetRequest::~DescribeLogicalBackupSetRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeLogicalBackupSetRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DescribeLogicalBackupSetRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string DescribeLogicalBackupSetRequest::getBackupPlanId()const
|
||||
{
|
||||
return backupPlanId_;
|
||||
}
|
||||
|
||||
void DescribeLogicalBackupSetRequest::setBackupPlanId(const std::string& backupPlanId)
|
||||
{
|
||||
backupPlanId_ = backupPlanId;
|
||||
setParameter("BackupPlanId", backupPlanId);
|
||||
}
|
||||
|
||||
std::string DescribeLogicalBackupSetRequest::getBackupsetId()const
|
||||
{
|
||||
return backupsetId_;
|
||||
}
|
||||
|
||||
void DescribeLogicalBackupSetRequest::setBackupsetId(const std::string& backupsetId)
|
||||
{
|
||||
backupsetId_ = backupsetId;
|
||||
setParameter("BackupsetId", backupsetId);
|
||||
}
|
||||
|
||||
std::string DescribeLogicalBackupSetRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeLogicalBackupSetRequest::setOwnerId(const std::string& ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", ownerId);
|
||||
}
|
||||
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dbs/model/CloseDLAServiceResult.h>
|
||||
#include <alibabacloud/dbs/model/DescribeLogicalBackupSetResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dbs;
|
||||
using namespace AlibabaCloud::Dbs::Model;
|
||||
|
||||
CloseDLAServiceResult::CloseDLAServiceResult() :
|
||||
DescribeLogicalBackupSetResult::DescribeLogicalBackupSetResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CloseDLAServiceResult::CloseDLAServiceResult(const std::string &payload) :
|
||||
DescribeLogicalBackupSetResult::DescribeLogicalBackupSetResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CloseDLAServiceResult::~CloseDLAServiceResult()
|
||||
DescribeLogicalBackupSetResult::~DescribeLogicalBackupSetResult()
|
||||
{}
|
||||
|
||||
void CloseDLAServiceResult::parse(const std::string &payload)
|
||||
void DescribeLogicalBackupSetResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
@@ -47,25 +47,39 @@ void CloseDLAServiceResult::parse(const std::string &payload)
|
||||
errMessage_ = value["ErrMessage"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["RowNum"].isNull())
|
||||
rowNum_ = std::stol(value["RowNum"].asString());
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString();
|
||||
|
||||
}
|
||||
|
||||
int CloseDLAServiceResult::getHttpStatusCode()const
|
||||
std::string DescribeLogicalBackupSetResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
int DescribeLogicalBackupSetResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string CloseDLAServiceResult::getErrMessage()const
|
||||
std::string DescribeLogicalBackupSetResult::getErrMessage()const
|
||||
{
|
||||
return errMessage_;
|
||||
}
|
||||
|
||||
bool CloseDLAServiceResult::getSuccess()const
|
||||
long DescribeLogicalBackupSetResult::getRowNum()const
|
||||
{
|
||||
return rowNum_;
|
||||
}
|
||||
|
||||
bool DescribeLogicalBackupSetResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string CloseDLAServiceResult::getErrCode()const
|
||||
std::string DescribeLogicalBackupSetResult::getErrCode()const
|
||||
{
|
||||
return errCode_;
|
||||
}
|
||||
Reference in New Issue
Block a user