diff --git a/CHANGELOG b/CHANGELOG index 33715ae79..d760b7b63 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,8 @@ +2021-03-30 Version: 1.36.658 +- Add CreateAndStartBackupPlan. +- Add DescribeFullBackupSet. +- Add DescribeLogicalBackupSet. + 2021-03-26 Version: 1.36.657 - Update api. diff --git a/VERSION b/VERSION index 5a92c0179..3a2c620ee 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.657 \ No newline at end of file +1.36.658 \ No newline at end of file diff --git a/dbs/CMakeLists.txt b/dbs/CMakeLists.txt index 47056c225..744fb0702 100644 --- a/dbs/CMakeLists.txt +++ b/dbs/CMakeLists.txt @@ -21,16 +21,12 @@ set(dbs_public_header include/alibabacloud/dbs/DbsExport.h ) set(dbs_public_header_model - include/alibabacloud/dbs/model/CloseDLAServiceRequest.h - include/alibabacloud/dbs/model/CloseDLAServiceResult.h include/alibabacloud/dbs/model/ConfigureBackupPlanRequest.h include/alibabacloud/dbs/model/ConfigureBackupPlanResult.h include/alibabacloud/dbs/model/CreateAndStartBackupPlanRequest.h include/alibabacloud/dbs/model/CreateAndStartBackupPlanResult.h include/alibabacloud/dbs/model/CreateBackupPlanRequest.h include/alibabacloud/dbs/model/CreateBackupPlanResult.h - include/alibabacloud/dbs/model/CreateDLAServiceRequest.h - include/alibabacloud/dbs/model/CreateDLAServiceResult.h include/alibabacloud/dbs/model/CreateFullBackupSetDownloadRequest.h include/alibabacloud/dbs/model/CreateFullBackupSetDownloadResult.h include/alibabacloud/dbs/model/CreateGetDBListFromAgentTaskRequest.h @@ -51,10 +47,14 @@ set(dbs_public_header_model include/alibabacloud/dbs/model/DescribeDLAServiceResult.h include/alibabacloud/dbs/model/DescribeFullBackupListRequest.h include/alibabacloud/dbs/model/DescribeFullBackupListResult.h + include/alibabacloud/dbs/model/DescribeFullBackupSetRequest.h + include/alibabacloud/dbs/model/DescribeFullBackupSetResult.h include/alibabacloud/dbs/model/DescribeIncrementBackupListRequest.h include/alibabacloud/dbs/model/DescribeIncrementBackupListResult.h include/alibabacloud/dbs/model/DescribeJobErrorCodeRequest.h include/alibabacloud/dbs/model/DescribeJobErrorCodeResult.h + include/alibabacloud/dbs/model/DescribeLogicalBackupSetRequest.h + include/alibabacloud/dbs/model/DescribeLogicalBackupSetResult.h include/alibabacloud/dbs/model/DescribeNodeCidrListRequest.h include/alibabacloud/dbs/model/DescribeNodeCidrListResult.h include/alibabacloud/dbs/model/DescribePreCheckProgressListRequest.h @@ -100,16 +100,12 @@ set(dbs_public_header_model set(dbs_src src/DbsClient.cc - src/model/CloseDLAServiceRequest.cc - src/model/CloseDLAServiceResult.cc src/model/ConfigureBackupPlanRequest.cc src/model/ConfigureBackupPlanResult.cc src/model/CreateAndStartBackupPlanRequest.cc src/model/CreateAndStartBackupPlanResult.cc src/model/CreateBackupPlanRequest.cc src/model/CreateBackupPlanResult.cc - src/model/CreateDLAServiceRequest.cc - src/model/CreateDLAServiceResult.cc src/model/CreateFullBackupSetDownloadRequest.cc src/model/CreateFullBackupSetDownloadResult.cc src/model/CreateGetDBListFromAgentTaskRequest.cc @@ -130,10 +126,14 @@ set(dbs_src src/model/DescribeDLAServiceResult.cc src/model/DescribeFullBackupListRequest.cc src/model/DescribeFullBackupListResult.cc + src/model/DescribeFullBackupSetRequest.cc + src/model/DescribeFullBackupSetResult.cc src/model/DescribeIncrementBackupListRequest.cc src/model/DescribeIncrementBackupListResult.cc src/model/DescribeJobErrorCodeRequest.cc src/model/DescribeJobErrorCodeResult.cc + src/model/DescribeLogicalBackupSetRequest.cc + src/model/DescribeLogicalBackupSetResult.cc src/model/DescribeNodeCidrListRequest.cc src/model/DescribeNodeCidrListResult.cc src/model/DescribePreCheckProgressListRequest.cc diff --git a/dbs/include/alibabacloud/dbs/DbsClient.h b/dbs/include/alibabacloud/dbs/DbsClient.h index f333d6911..15715ab44 100644 --- a/dbs/include/alibabacloud/dbs/DbsClient.h +++ b/dbs/include/alibabacloud/dbs/DbsClient.h @@ -22,16 +22,12 @@ #include #include #include "DbsExport.h" -#include "model/CloseDLAServiceRequest.h" -#include "model/CloseDLAServiceResult.h" #include "model/ConfigureBackupPlanRequest.h" #include "model/ConfigureBackupPlanResult.h" #include "model/CreateAndStartBackupPlanRequest.h" #include "model/CreateAndStartBackupPlanResult.h" #include "model/CreateBackupPlanRequest.h" #include "model/CreateBackupPlanResult.h" -#include "model/CreateDLAServiceRequest.h" -#include "model/CreateDLAServiceResult.h" #include "model/CreateFullBackupSetDownloadRequest.h" #include "model/CreateFullBackupSetDownloadResult.h" #include "model/CreateGetDBListFromAgentTaskRequest.h" @@ -52,10 +48,14 @@ #include "model/DescribeDLAServiceResult.h" #include "model/DescribeFullBackupListRequest.h" #include "model/DescribeFullBackupListResult.h" +#include "model/DescribeFullBackupSetRequest.h" +#include "model/DescribeFullBackupSetResult.h" #include "model/DescribeIncrementBackupListRequest.h" #include "model/DescribeIncrementBackupListResult.h" #include "model/DescribeJobErrorCodeRequest.h" #include "model/DescribeJobErrorCodeResult.h" +#include "model/DescribeLogicalBackupSetRequest.h" +#include "model/DescribeLogicalBackupSetResult.h" #include "model/DescribeNodeCidrListRequest.h" #include "model/DescribeNodeCidrListResult.h" #include "model/DescribePreCheckProgressListRequest.h" @@ -107,9 +107,6 @@ namespace AlibabaCloud class ALIBABACLOUD_DBS_EXPORT DbsClient : public RpcServiceClient { public: - typedef Outcome CloseDLAServiceOutcome; - typedef std::future CloseDLAServiceOutcomeCallable; - typedef std::function&)> CloseDLAServiceAsyncHandler; typedef Outcome ConfigureBackupPlanOutcome; typedef std::future ConfigureBackupPlanOutcomeCallable; typedef std::function&)> ConfigureBackupPlanAsyncHandler; @@ -119,9 +116,6 @@ namespace AlibabaCloud typedef Outcome CreateBackupPlanOutcome; typedef std::future CreateBackupPlanOutcomeCallable; typedef std::function&)> CreateBackupPlanAsyncHandler; - typedef Outcome CreateDLAServiceOutcome; - typedef std::future CreateDLAServiceOutcomeCallable; - typedef std::function&)> CreateDLAServiceAsyncHandler; typedef Outcome CreateFullBackupSetDownloadOutcome; typedef std::future CreateFullBackupSetDownloadOutcomeCallable; typedef std::function&)> CreateFullBackupSetDownloadAsyncHandler; @@ -152,12 +146,18 @@ namespace AlibabaCloud typedef Outcome DescribeFullBackupListOutcome; typedef std::future DescribeFullBackupListOutcomeCallable; typedef std::function&)> DescribeFullBackupListAsyncHandler; + typedef Outcome DescribeFullBackupSetOutcome; + typedef std::future DescribeFullBackupSetOutcomeCallable; + typedef std::function&)> DescribeFullBackupSetAsyncHandler; typedef Outcome DescribeIncrementBackupListOutcome; typedef std::future DescribeIncrementBackupListOutcomeCallable; typedef std::function&)> DescribeIncrementBackupListAsyncHandler; typedef Outcome DescribeJobErrorCodeOutcome; typedef std::future DescribeJobErrorCodeOutcomeCallable; typedef std::function&)> DescribeJobErrorCodeAsyncHandler; + typedef Outcome DescribeLogicalBackupSetOutcome; + typedef std::future DescribeLogicalBackupSetOutcomeCallable; + typedef std::function&)> DescribeLogicalBackupSetAsyncHandler; typedef Outcome DescribeNodeCidrListOutcome; typedef std::future DescribeNodeCidrListOutcomeCallable; typedef std::function&)> DescribeNodeCidrListAsyncHandler; @@ -226,9 +226,6 @@ namespace AlibabaCloud DbsClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); DbsClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); ~DbsClient(); - CloseDLAServiceOutcome closeDLAService(const Model::CloseDLAServiceRequest &request)const; - void closeDLAServiceAsync(const Model::CloseDLAServiceRequest& request, const CloseDLAServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CloseDLAServiceOutcomeCallable closeDLAServiceCallable(const Model::CloseDLAServiceRequest& request) const; ConfigureBackupPlanOutcome configureBackupPlan(const Model::ConfigureBackupPlanRequest &request)const; void configureBackupPlanAsync(const Model::ConfigureBackupPlanRequest& request, const ConfigureBackupPlanAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ConfigureBackupPlanOutcomeCallable configureBackupPlanCallable(const Model::ConfigureBackupPlanRequest& request) const; @@ -238,9 +235,6 @@ namespace AlibabaCloud CreateBackupPlanOutcome createBackupPlan(const Model::CreateBackupPlanRequest &request)const; void createBackupPlanAsync(const Model::CreateBackupPlanRequest& request, const CreateBackupPlanAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateBackupPlanOutcomeCallable createBackupPlanCallable(const Model::CreateBackupPlanRequest& request) const; - CreateDLAServiceOutcome createDLAService(const Model::CreateDLAServiceRequest &request)const; - void createDLAServiceAsync(const Model::CreateDLAServiceRequest& request, const CreateDLAServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateDLAServiceOutcomeCallable createDLAServiceCallable(const Model::CreateDLAServiceRequest& request) const; CreateFullBackupSetDownloadOutcome createFullBackupSetDownload(const Model::CreateFullBackupSetDownloadRequest &request)const; void createFullBackupSetDownloadAsync(const Model::CreateFullBackupSetDownloadRequest& request, const CreateFullBackupSetDownloadAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateFullBackupSetDownloadOutcomeCallable createFullBackupSetDownloadCallable(const Model::CreateFullBackupSetDownloadRequest& request) const; @@ -271,12 +265,18 @@ namespace AlibabaCloud DescribeFullBackupListOutcome describeFullBackupList(const Model::DescribeFullBackupListRequest &request)const; void describeFullBackupListAsync(const Model::DescribeFullBackupListRequest& request, const DescribeFullBackupListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeFullBackupListOutcomeCallable describeFullBackupListCallable(const Model::DescribeFullBackupListRequest& request) const; + DescribeFullBackupSetOutcome describeFullBackupSet(const Model::DescribeFullBackupSetRequest &request)const; + void describeFullBackupSetAsync(const Model::DescribeFullBackupSetRequest& request, const DescribeFullBackupSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeFullBackupSetOutcomeCallable describeFullBackupSetCallable(const Model::DescribeFullBackupSetRequest& request) const; DescribeIncrementBackupListOutcome describeIncrementBackupList(const Model::DescribeIncrementBackupListRequest &request)const; void describeIncrementBackupListAsync(const Model::DescribeIncrementBackupListRequest& request, const DescribeIncrementBackupListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeIncrementBackupListOutcomeCallable describeIncrementBackupListCallable(const Model::DescribeIncrementBackupListRequest& request) const; DescribeJobErrorCodeOutcome describeJobErrorCode(const Model::DescribeJobErrorCodeRequest &request)const; void describeJobErrorCodeAsync(const Model::DescribeJobErrorCodeRequest& request, const DescribeJobErrorCodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeJobErrorCodeOutcomeCallable describeJobErrorCodeCallable(const Model::DescribeJobErrorCodeRequest& request) const; + DescribeLogicalBackupSetOutcome describeLogicalBackupSet(const Model::DescribeLogicalBackupSetRequest &request)const; + void describeLogicalBackupSetAsync(const Model::DescribeLogicalBackupSetRequest& request, const DescribeLogicalBackupSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeLogicalBackupSetOutcomeCallable describeLogicalBackupSetCallable(const Model::DescribeLogicalBackupSetRequest& request) const; DescribeNodeCidrListOutcome describeNodeCidrList(const Model::DescribeNodeCidrListRequest &request)const; void describeNodeCidrListAsync(const Model::DescribeNodeCidrListRequest& request, const DescribeNodeCidrListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeNodeCidrListOutcomeCallable describeNodeCidrListCallable(const Model::DescribeNodeCidrListRequest& request) const; diff --git a/dbs/include/alibabacloud/dbs/model/CloseDLAServiceResult.h b/dbs/include/alibabacloud/dbs/model/CloseDLAServiceResult.h deleted file mode 100644 index a6aa2c2ac..000000000 --- a/dbs/include/alibabacloud/dbs/model/CloseDLAServiceResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DBS_MODEL_CLOSEDLASERVICERESULT_H_ -#define ALIBABACLOUD_DBS_MODEL_CLOSEDLASERVICERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dbs - { - namespace Model - { - class ALIBABACLOUD_DBS_EXPORT CloseDLAServiceResult : public ServiceResult - { - public: - - - CloseDLAServiceResult(); - explicit CloseDLAServiceResult(const std::string &payload); - ~CloseDLAServiceResult(); - int getHttpStatusCode()const; - std::string getErrMessage()const; - bool getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - int httpStatusCode_; - std::string errMessage_; - bool success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DBS_MODEL_CLOSEDLASERVICERESULT_H_ \ No newline at end of file diff --git a/dbs/include/alibabacloud/dbs/model/CloseDLAServiceRequest.h b/dbs/include/alibabacloud/dbs/model/DescribeFullBackupSetRequest.h similarity index 71% rename from dbs/include/alibabacloud/dbs/model/CloseDLAServiceRequest.h rename to dbs/include/alibabacloud/dbs/model/DescribeFullBackupSetRequest.h index d00bb0371..d44e5f152 100644 --- a/dbs/include/alibabacloud/dbs/model/CloseDLAServiceRequest.h +++ b/dbs/include/alibabacloud/dbs/model/DescribeFullBackupSetRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_DBS_MODEL_CLOSEDLASERVICEREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_CLOSEDLASERVICEREQUEST_H_ +#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBEFULLBACKUPSETREQUEST_H_ +#define ALIBABACLOUD_DBS_MODEL_DESCRIBEFULLBACKUPSETREQUEST_H_ #include #include @@ -28,27 +28,30 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_DBS_EXPORT CloseDLAServiceRequest : public RpcServiceRequest + class ALIBABACLOUD_DBS_EXPORT DescribeFullBackupSetRequest : public RpcServiceRequest { public: - CloseDLAServiceRequest(); - ~CloseDLAServiceRequest(); + DescribeFullBackupSetRequest(); + ~DescribeFullBackupSetRequest(); std::string getClientToken()const; void setClientToken(const std::string& clientToken); std::string getBackupPlanId()const; void setBackupPlanId(const std::string& backupPlanId); + std::string getBackupsetId()const; + void setBackupsetId(const std::string& backupsetId); std::string getOwnerId()const; void setOwnerId(const std::string& ownerId); private: std::string clientToken_; std::string backupPlanId_; + std::string backupsetId_; std::string ownerId_; }; } } } -#endif // !ALIBABACLOUD_DBS_MODEL_CLOSEDLASERVICEREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEFULLBACKUPSETREQUEST_H_ \ No newline at end of file diff --git a/dbs/include/alibabacloud/dbs/model/DescribeFullBackupSetResult.h b/dbs/include/alibabacloud/dbs/model/DescribeFullBackupSetResult.h new file mode 100644 index 000000000..d74f2a904 --- /dev/null +++ b/dbs/include/alibabacloud/dbs/model/DescribeFullBackupSetResult.h @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBEFULLBACKUPSETRESULT_H_ +#define ALIBABACLOUD_DBS_MODEL_DESCRIBEFULLBACKUPSETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dbs + { + namespace Model + { + class ALIBABACLOUD_DBS_EXPORT DescribeFullBackupSetResult : public ServiceResult + { + public: + + + DescribeFullBackupSetResult(); + explicit DescribeFullBackupSetResult(const std::string &payload); + ~DescribeFullBackupSetResult(); + std::string getStorageMethod()const; + std::string getBackupObjects()const; + long getEndTime()const; + long getBackupSize()const; + long getCreateTime()const; + long getStartTime()const; + long getBackupSetExpiredTime()const; + std::string getErrMessage()const; + std::string getBackupSetId()const; + bool getSuccess()const; + std::string getErrMessage1()const; + std::string getErrCode()const; + std::string getSourceEndpointIpPort()const; + long getFinishTime()const; + int getHttpStatusCode()const; + std::string getBackupStatus()const; + + protected: + void parse(const std::string &payload); + private: + std::string storageMethod_; + std::string backupObjects_; + long endTime_; + long backupSize_; + long createTime_; + long startTime_; + long backupSetExpiredTime_; + std::string errMessage_; + std::string backupSetId_; + bool success_; + std::string errMessage1_; + std::string errCode_; + std::string sourceEndpointIpPort_; + long finishTime_; + int httpStatusCode_; + std::string backupStatus_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEFULLBACKUPSETRESULT_H_ \ No newline at end of file diff --git a/dbs/include/alibabacloud/dbs/model/CreateDLAServiceRequest.h b/dbs/include/alibabacloud/dbs/model/DescribeLogicalBackupSetRequest.h similarity index 69% rename from dbs/include/alibabacloud/dbs/model/CreateDLAServiceRequest.h rename to dbs/include/alibabacloud/dbs/model/DescribeLogicalBackupSetRequest.h index e5077d042..c219814ad 100644 --- a/dbs/include/alibabacloud/dbs/model/CreateDLAServiceRequest.h +++ b/dbs/include/alibabacloud/dbs/model/DescribeLogicalBackupSetRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_DBS_MODEL_CREATEDLASERVICEREQUEST_H_ -#define ALIBABACLOUD_DBS_MODEL_CREATEDLASERVICEREQUEST_H_ +#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBELOGICALBACKUPSETREQUEST_H_ +#define ALIBABACLOUD_DBS_MODEL_DESCRIBELOGICALBACKUPSETREQUEST_H_ #include #include @@ -28,33 +28,30 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_DBS_EXPORT CreateDLAServiceRequest : public RpcServiceRequest + class ALIBABACLOUD_DBS_EXPORT DescribeLogicalBackupSetRequest : public RpcServiceRequest { public: - CreateDLAServiceRequest(); - ~CreateDLAServiceRequest(); + DescribeLogicalBackupSetRequest(); + ~DescribeLogicalBackupSetRequest(); std::string getClientToken()const; void setClientToken(const std::string& clientToken); - bool getAutoAdd()const; - void setAutoAdd(bool autoAdd); - std::string getBackupSetIds()const; - void setBackupSetIds(const std::string& backupSetIds); std::string getBackupPlanId()const; void setBackupPlanId(const std::string& backupPlanId); + std::string getBackupsetId()const; + void setBackupsetId(const std::string& backupsetId); std::string getOwnerId()const; void setOwnerId(const std::string& ownerId); private: std::string clientToken_; - bool autoAdd_; - std::string backupSetIds_; std::string backupPlanId_; + std::string backupsetId_; std::string ownerId_; }; } } } -#endif // !ALIBABACLOUD_DBS_MODEL_CREATEDLASERVICEREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBELOGICALBACKUPSETREQUEST_H_ \ No newline at end of file diff --git a/dbs/include/alibabacloud/dbs/model/CreateDLAServiceResult.h b/dbs/include/alibabacloud/dbs/model/DescribeLogicalBackupSetResult.h similarity index 68% rename from dbs/include/alibabacloud/dbs/model/CreateDLAServiceResult.h rename to dbs/include/alibabacloud/dbs/model/DescribeLogicalBackupSetResult.h index 98a814972..bbbd404c5 100644 --- a/dbs/include/alibabacloud/dbs/model/CreateDLAServiceResult.h +++ b/dbs/include/alibabacloud/dbs/model/DescribeLogicalBackupSetResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_DBS_MODEL_CREATEDLASERVICERESULT_H_ -#define ALIBABACLOUD_DBS_MODEL_CREATEDLASERVICERESULT_H_ +#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBELOGICALBACKUPSETRESULT_H_ +#define ALIBABACLOUD_DBS_MODEL_DESCRIBELOGICALBACKUPSETRESULT_H_ #include #include @@ -29,24 +29,28 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_DBS_EXPORT CreateDLAServiceResult : public ServiceResult + class ALIBABACLOUD_DBS_EXPORT DescribeLogicalBackupSetResult : public ServiceResult { public: - CreateDLAServiceResult(); - explicit CreateDLAServiceResult(const std::string &payload); - ~CreateDLAServiceResult(); + DescribeLogicalBackupSetResult(); + explicit DescribeLogicalBackupSetResult(const std::string &payload); + ~DescribeLogicalBackupSetResult(); + std::string getStatus()const; int getHttpStatusCode()const; std::string getErrMessage()const; + long getRowNum()const; bool getSuccess()const; std::string getErrCode()const; protected: void parse(const std::string &payload); private: + std::string status_; int httpStatusCode_; std::string errMessage_; + long rowNum_; bool success_; std::string errCode_; @@ -54,4 +58,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_DBS_MODEL_CREATEDLASERVICERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBELOGICALBACKUPSETRESULT_H_ \ No newline at end of file diff --git a/dbs/src/DbsClient.cc b/dbs/src/DbsClient.cc index 1bef7e90f..ba81affc6 100644 --- a/dbs/src/DbsClient.cc +++ b/dbs/src/DbsClient.cc @@ -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& 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>( - [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& 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>( - [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& 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>( + [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& 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>( + [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(); diff --git a/dbs/src/model/CloseDLAServiceRequest.cc b/dbs/src/model/CloseDLAServiceRequest.cc deleted file mode 100644 index 1abc66b41..000000000 --- a/dbs/src/model/CloseDLAServiceRequest.cc +++ /dev/null @@ -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 - -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); -} - diff --git a/dbs/src/model/CreateDLAServiceRequest.cc b/dbs/src/model/CreateDLAServiceRequest.cc deleted file mode 100644 index 88df32870..000000000 --- a/dbs/src/model/CreateDLAServiceRequest.cc +++ /dev/null @@ -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 - -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); -} - diff --git a/dbs/src/model/CreateDLAServiceResult.cc b/dbs/src/model/CreateDLAServiceResult.cc deleted file mode 100644 index f31749a09..000000000 --- a/dbs/src/model/CreateDLAServiceResult.cc +++ /dev/null @@ -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 -#include - -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_; -} - diff --git a/dbs/src/model/DescribeFullBackupSetRequest.cc b/dbs/src/model/DescribeFullBackupSetRequest.cc new file mode 100644 index 000000000..8a1f4ac8e --- /dev/null +++ b/dbs/src/model/DescribeFullBackupSetRequest.cc @@ -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 + +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); +} + diff --git a/dbs/src/model/DescribeFullBackupSetResult.cc b/dbs/src/model/DescribeFullBackupSetResult.cc new file mode 100644 index 000000000..427448ae2 --- /dev/null +++ b/dbs/src/model/DescribeFullBackupSetResult.cc @@ -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 +#include + +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_; +} + diff --git a/dbs/src/model/DescribeLogicalBackupSetRequest.cc b/dbs/src/model/DescribeLogicalBackupSetRequest.cc new file mode 100644 index 000000000..b487cdbad --- /dev/null +++ b/dbs/src/model/DescribeLogicalBackupSetRequest.cc @@ -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 + +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); +} + diff --git a/dbs/src/model/CloseDLAServiceResult.cc b/dbs/src/model/DescribeLogicalBackupSetResult.cc similarity index 59% rename from dbs/src/model/CloseDLAServiceResult.cc rename to dbs/src/model/DescribeLogicalBackupSetResult.cc index ad1f39276..f4e039d01 100644 --- a/dbs/src/model/CloseDLAServiceResult.cc +++ b/dbs/src/model/DescribeLogicalBackupSetResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include 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_; }