Add CreateAndStartBackupPlan.

This commit is contained in:
sdk-team
2021-03-30 02:53:19 +00:00
parent fe3d15f458
commit 33bddb5fa9
17 changed files with 537 additions and 406 deletions

View File

@@ -22,16 +22,12 @@
#include <alibabacloud/core/EndpointProvider.h>
#include <alibabacloud/core/RpcServiceClient.h>
#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<Error, Model::CloseDLAServiceResult> CloseDLAServiceOutcome;
typedef std::future<CloseDLAServiceOutcome> CloseDLAServiceOutcomeCallable;
typedef std::function<void(const DbsClient*, const Model::CloseDLAServiceRequest&, const CloseDLAServiceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CloseDLAServiceAsyncHandler;
typedef Outcome<Error, Model::ConfigureBackupPlanResult> ConfigureBackupPlanOutcome;
typedef std::future<ConfigureBackupPlanOutcome> ConfigureBackupPlanOutcomeCallable;
typedef std::function<void(const DbsClient*, const Model::ConfigureBackupPlanRequest&, const ConfigureBackupPlanOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ConfigureBackupPlanAsyncHandler;
@@ -119,9 +116,6 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CreateBackupPlanResult> CreateBackupPlanOutcome;
typedef std::future<CreateBackupPlanOutcome> CreateBackupPlanOutcomeCallable;
typedef std::function<void(const DbsClient*, const Model::CreateBackupPlanRequest&, const CreateBackupPlanOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateBackupPlanAsyncHandler;
typedef Outcome<Error, Model::CreateDLAServiceResult> CreateDLAServiceOutcome;
typedef std::future<CreateDLAServiceOutcome> CreateDLAServiceOutcomeCallable;
typedef std::function<void(const DbsClient*, const Model::CreateDLAServiceRequest&, const CreateDLAServiceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDLAServiceAsyncHandler;
typedef Outcome<Error, Model::CreateFullBackupSetDownloadResult> CreateFullBackupSetDownloadOutcome;
typedef std::future<CreateFullBackupSetDownloadOutcome> CreateFullBackupSetDownloadOutcomeCallable;
typedef std::function<void(const DbsClient*, const Model::CreateFullBackupSetDownloadRequest&, const CreateFullBackupSetDownloadOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateFullBackupSetDownloadAsyncHandler;
@@ -152,12 +146,18 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeFullBackupListResult> DescribeFullBackupListOutcome;
typedef std::future<DescribeFullBackupListOutcome> DescribeFullBackupListOutcomeCallable;
typedef std::function<void(const DbsClient*, const Model::DescribeFullBackupListRequest&, const DescribeFullBackupListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeFullBackupListAsyncHandler;
typedef Outcome<Error, Model::DescribeFullBackupSetResult> DescribeFullBackupSetOutcome;
typedef std::future<DescribeFullBackupSetOutcome> DescribeFullBackupSetOutcomeCallable;
typedef std::function<void(const DbsClient*, const Model::DescribeFullBackupSetRequest&, const DescribeFullBackupSetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeFullBackupSetAsyncHandler;
typedef Outcome<Error, Model::DescribeIncrementBackupListResult> DescribeIncrementBackupListOutcome;
typedef std::future<DescribeIncrementBackupListOutcome> DescribeIncrementBackupListOutcomeCallable;
typedef std::function<void(const DbsClient*, const Model::DescribeIncrementBackupListRequest&, const DescribeIncrementBackupListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeIncrementBackupListAsyncHandler;
typedef Outcome<Error, Model::DescribeJobErrorCodeResult> DescribeJobErrorCodeOutcome;
typedef std::future<DescribeJobErrorCodeOutcome> DescribeJobErrorCodeOutcomeCallable;
typedef std::function<void(const DbsClient*, const Model::DescribeJobErrorCodeRequest&, const DescribeJobErrorCodeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeJobErrorCodeAsyncHandler;
typedef Outcome<Error, Model::DescribeLogicalBackupSetResult> DescribeLogicalBackupSetOutcome;
typedef std::future<DescribeLogicalBackupSetOutcome> DescribeLogicalBackupSetOutcomeCallable;
typedef std::function<void(const DbsClient*, const Model::DescribeLogicalBackupSetRequest&, const DescribeLogicalBackupSetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLogicalBackupSetAsyncHandler;
typedef Outcome<Error, Model::DescribeNodeCidrListResult> DescribeNodeCidrListOutcome;
typedef std::future<DescribeNodeCidrListOutcome> DescribeNodeCidrListOutcomeCallable;
typedef std::function<void(const DbsClient*, const Model::DescribeNodeCidrListRequest&, const DescribeNodeCidrListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeNodeCidrListAsyncHandler;
@@ -226,9 +226,6 @@ namespace AlibabaCloud
DbsClient(const std::shared_ptr<CredentialsProvider> &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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& context = nullptr) const;
DescribeNodeCidrListOutcomeCallable describeNodeCidrListCallable(const Model::DescribeNodeCidrListRequest& request) const;

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dbs/DbsExport.h>
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_

View File

@@ -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 <string>
#include <vector>
@@ -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_
#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEFULLBACKUPSETREQUEST_H_

View File

@@ -0,0 +1,81 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBEFULLBACKUPSETRESULT_H_
#define ALIBABACLOUD_DBS_MODEL_DESCRIBEFULLBACKUPSETRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dbs/DbsExport.h>
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_

View File

@@ -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 <string>
#include <vector>
@@ -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_
#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBELOGICALBACKUPSETREQUEST_H_

View File

@@ -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 <string>
#include <vector>
@@ -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_
#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBELOGICALBACKUPSETRESULT_H_