Преглед изворни кода

Support SLR by InitializeDbsServiceLinkedRole action.

sdk-team пре 5 година
родитељ
комит
9f93cb2d7c

+ 4 - 0
CHANGELOG

@@ -1,3 +1,7 @@
+2021-02-25 Version: patch
+- Support SLR by InitializeDbsServiceLinkedRole action.
+- Change DescribeIncrementBackupList and DescribeFullBackupList to Support Range filter.
+
 2021-02-25 Version: patch
 2021-02-25 Version: patch
 - Generated 2020-05-18 for `dataworks-public`.
 - Generated 2020-05-18 for `dataworks-public`.
 
 

+ 8 - 0
dbs/CMakeLists.txt

@@ -65,12 +65,16 @@ set(dbs_public_header_model
 	include/alibabacloud/dbs/model/DescribeRestoreRangeInfoResult.h
 	include/alibabacloud/dbs/model/DescribeRestoreRangeInfoResult.h
 	include/alibabacloud/dbs/model/DescribeRestoreTaskListRequest.h
 	include/alibabacloud/dbs/model/DescribeRestoreTaskListRequest.h
 	include/alibabacloud/dbs/model/DescribeRestoreTaskListResult.h
 	include/alibabacloud/dbs/model/DescribeRestoreTaskListResult.h
+	include/alibabacloud/dbs/model/DescribeSandboxFromRDSRequest.h
+	include/alibabacloud/dbs/model/DescribeSandboxFromRDSResult.h
 	include/alibabacloud/dbs/model/DisableBackupLogRequest.h
 	include/alibabacloud/dbs/model/DisableBackupLogRequest.h
 	include/alibabacloud/dbs/model/DisableBackupLogResult.h
 	include/alibabacloud/dbs/model/DisableBackupLogResult.h
 	include/alibabacloud/dbs/model/EnableBackupLogRequest.h
 	include/alibabacloud/dbs/model/EnableBackupLogRequest.h
 	include/alibabacloud/dbs/model/EnableBackupLogResult.h
 	include/alibabacloud/dbs/model/EnableBackupLogResult.h
 	include/alibabacloud/dbs/model/GetDBListFromAgentRequest.h
 	include/alibabacloud/dbs/model/GetDBListFromAgentRequest.h
 	include/alibabacloud/dbs/model/GetDBListFromAgentResult.h
 	include/alibabacloud/dbs/model/GetDBListFromAgentResult.h
+	include/alibabacloud/dbs/model/InitializeDbsServiceLinkedRoleRequest.h
+	include/alibabacloud/dbs/model/InitializeDbsServiceLinkedRoleResult.h
 	include/alibabacloud/dbs/model/ModifyBackupObjectsRequest.h
 	include/alibabacloud/dbs/model/ModifyBackupObjectsRequest.h
 	include/alibabacloud/dbs/model/ModifyBackupObjectsResult.h
 	include/alibabacloud/dbs/model/ModifyBackupObjectsResult.h
 	include/alibabacloud/dbs/model/ModifyBackupPlanNameRequest.h
 	include/alibabacloud/dbs/model/ModifyBackupPlanNameRequest.h
@@ -142,12 +146,16 @@ set(dbs_src
 	src/model/DescribeRestoreRangeInfoResult.cc
 	src/model/DescribeRestoreRangeInfoResult.cc
 	src/model/DescribeRestoreTaskListRequest.cc
 	src/model/DescribeRestoreTaskListRequest.cc
 	src/model/DescribeRestoreTaskListResult.cc
 	src/model/DescribeRestoreTaskListResult.cc
+	src/model/DescribeSandboxFromRDSRequest.cc
+	src/model/DescribeSandboxFromRDSResult.cc
 	src/model/DisableBackupLogRequest.cc
 	src/model/DisableBackupLogRequest.cc
 	src/model/DisableBackupLogResult.cc
 	src/model/DisableBackupLogResult.cc
 	src/model/EnableBackupLogRequest.cc
 	src/model/EnableBackupLogRequest.cc
 	src/model/EnableBackupLogResult.cc
 	src/model/EnableBackupLogResult.cc
 	src/model/GetDBListFromAgentRequest.cc
 	src/model/GetDBListFromAgentRequest.cc
 	src/model/GetDBListFromAgentResult.cc
 	src/model/GetDBListFromAgentResult.cc
+	src/model/InitializeDbsServiceLinkedRoleRequest.cc
+	src/model/InitializeDbsServiceLinkedRoleResult.cc
 	src/model/ModifyBackupObjectsRequest.cc
 	src/model/ModifyBackupObjectsRequest.cc
 	src/model/ModifyBackupObjectsResult.cc
 	src/model/ModifyBackupObjectsResult.cc
 	src/model/ModifyBackupPlanNameRequest.cc
 	src/model/ModifyBackupPlanNameRequest.cc

+ 16 - 0
dbs/include/alibabacloud/dbs/DbsClient.h

@@ -66,12 +66,16 @@
 #include "model/DescribeRestoreRangeInfoResult.h"
 #include "model/DescribeRestoreRangeInfoResult.h"
 #include "model/DescribeRestoreTaskListRequest.h"
 #include "model/DescribeRestoreTaskListRequest.h"
 #include "model/DescribeRestoreTaskListResult.h"
 #include "model/DescribeRestoreTaskListResult.h"
+#include "model/DescribeSandboxFromRDSRequest.h"
+#include "model/DescribeSandboxFromRDSResult.h"
 #include "model/DisableBackupLogRequest.h"
 #include "model/DisableBackupLogRequest.h"
 #include "model/DisableBackupLogResult.h"
 #include "model/DisableBackupLogResult.h"
 #include "model/EnableBackupLogRequest.h"
 #include "model/EnableBackupLogRequest.h"
 #include "model/EnableBackupLogResult.h"
 #include "model/EnableBackupLogResult.h"
 #include "model/GetDBListFromAgentRequest.h"
 #include "model/GetDBListFromAgentRequest.h"
 #include "model/GetDBListFromAgentResult.h"
 #include "model/GetDBListFromAgentResult.h"
+#include "model/InitializeDbsServiceLinkedRoleRequest.h"
+#include "model/InitializeDbsServiceLinkedRoleResult.h"
 #include "model/ModifyBackupObjectsRequest.h"
 #include "model/ModifyBackupObjectsRequest.h"
 #include "model/ModifyBackupObjectsResult.h"
 #include "model/ModifyBackupObjectsResult.h"
 #include "model/ModifyBackupPlanNameRequest.h"
 #include "model/ModifyBackupPlanNameRequest.h"
@@ -171,6 +175,9 @@ namespace AlibabaCloud
 			typedef Outcome<Error, Model::DescribeRestoreTaskListResult> DescribeRestoreTaskListOutcome;
 			typedef Outcome<Error, Model::DescribeRestoreTaskListResult> DescribeRestoreTaskListOutcome;
 			typedef std::future<DescribeRestoreTaskListOutcome> DescribeRestoreTaskListOutcomeCallable;
 			typedef std::future<DescribeRestoreTaskListOutcome> DescribeRestoreTaskListOutcomeCallable;
 			typedef std::function<void(const DbsClient*, const Model::DescribeRestoreTaskListRequest&, const DescribeRestoreTaskListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRestoreTaskListAsyncHandler;
 			typedef std::function<void(const DbsClient*, const Model::DescribeRestoreTaskListRequest&, const DescribeRestoreTaskListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRestoreTaskListAsyncHandler;
+			typedef Outcome<Error, Model::DescribeSandboxFromRDSResult> DescribeSandboxFromRDSOutcome;
+			typedef std::future<DescribeSandboxFromRDSOutcome> DescribeSandboxFromRDSOutcomeCallable;
+			typedef std::function<void(const DbsClient*, const Model::DescribeSandboxFromRDSRequest&, const DescribeSandboxFromRDSOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSandboxFromRDSAsyncHandler;
 			typedef Outcome<Error, Model::DisableBackupLogResult> DisableBackupLogOutcome;
 			typedef Outcome<Error, Model::DisableBackupLogResult> DisableBackupLogOutcome;
 			typedef std::future<DisableBackupLogOutcome> DisableBackupLogOutcomeCallable;
 			typedef std::future<DisableBackupLogOutcome> DisableBackupLogOutcomeCallable;
 			typedef std::function<void(const DbsClient*, const Model::DisableBackupLogRequest&, const DisableBackupLogOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DisableBackupLogAsyncHandler;
 			typedef std::function<void(const DbsClient*, const Model::DisableBackupLogRequest&, const DisableBackupLogOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DisableBackupLogAsyncHandler;
@@ -180,6 +187,9 @@ namespace AlibabaCloud
 			typedef Outcome<Error, Model::GetDBListFromAgentResult> GetDBListFromAgentOutcome;
 			typedef Outcome<Error, Model::GetDBListFromAgentResult> GetDBListFromAgentOutcome;
 			typedef std::future<GetDBListFromAgentOutcome> GetDBListFromAgentOutcomeCallable;
 			typedef std::future<GetDBListFromAgentOutcome> GetDBListFromAgentOutcomeCallable;
 			typedef std::function<void(const DbsClient*, const Model::GetDBListFromAgentRequest&, const GetDBListFromAgentOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDBListFromAgentAsyncHandler;
 			typedef std::function<void(const DbsClient*, const Model::GetDBListFromAgentRequest&, const GetDBListFromAgentOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDBListFromAgentAsyncHandler;
+			typedef Outcome<Error, Model::InitializeDbsServiceLinkedRoleResult> InitializeDbsServiceLinkedRoleOutcome;
+			typedef std::future<InitializeDbsServiceLinkedRoleOutcome> InitializeDbsServiceLinkedRoleOutcomeCallable;
+			typedef std::function<void(const DbsClient*, const Model::InitializeDbsServiceLinkedRoleRequest&, const InitializeDbsServiceLinkedRoleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InitializeDbsServiceLinkedRoleAsyncHandler;
 			typedef Outcome<Error, Model::ModifyBackupObjectsResult> ModifyBackupObjectsOutcome;
 			typedef Outcome<Error, Model::ModifyBackupObjectsResult> ModifyBackupObjectsOutcome;
 			typedef std::future<ModifyBackupObjectsOutcome> ModifyBackupObjectsOutcomeCallable;
 			typedef std::future<ModifyBackupObjectsOutcome> ModifyBackupObjectsOutcomeCallable;
 			typedef std::function<void(const DbsClient*, const Model::ModifyBackupObjectsRequest&, const ModifyBackupObjectsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyBackupObjectsAsyncHandler;
 			typedef std::function<void(const DbsClient*, const Model::ModifyBackupObjectsRequest&, const ModifyBackupObjectsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyBackupObjectsAsyncHandler;
@@ -287,6 +297,9 @@ namespace AlibabaCloud
 			DescribeRestoreTaskListOutcome describeRestoreTaskList(const Model::DescribeRestoreTaskListRequest &request)const;
 			DescribeRestoreTaskListOutcome describeRestoreTaskList(const Model::DescribeRestoreTaskListRequest &request)const;
 			void describeRestoreTaskListAsync(const Model::DescribeRestoreTaskListRequest& request, const DescribeRestoreTaskListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
 			void describeRestoreTaskListAsync(const Model::DescribeRestoreTaskListRequest& request, const DescribeRestoreTaskListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
 			DescribeRestoreTaskListOutcomeCallable describeRestoreTaskListCallable(const Model::DescribeRestoreTaskListRequest& request) const;
 			DescribeRestoreTaskListOutcomeCallable describeRestoreTaskListCallable(const Model::DescribeRestoreTaskListRequest& request) const;
+			DescribeSandboxFromRDSOutcome describeSandboxFromRDS(const Model::DescribeSandboxFromRDSRequest &request)const;
+			void describeSandboxFromRDSAsync(const Model::DescribeSandboxFromRDSRequest& request, const DescribeSandboxFromRDSAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
+			DescribeSandboxFromRDSOutcomeCallable describeSandboxFromRDSCallable(const Model::DescribeSandboxFromRDSRequest& request) const;
 			DisableBackupLogOutcome disableBackupLog(const Model::DisableBackupLogRequest &request)const;
 			DisableBackupLogOutcome disableBackupLog(const Model::DisableBackupLogRequest &request)const;
 			void disableBackupLogAsync(const Model::DisableBackupLogRequest& request, const DisableBackupLogAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
 			void disableBackupLogAsync(const Model::DisableBackupLogRequest& request, const DisableBackupLogAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
 			DisableBackupLogOutcomeCallable disableBackupLogCallable(const Model::DisableBackupLogRequest& request) const;
 			DisableBackupLogOutcomeCallable disableBackupLogCallable(const Model::DisableBackupLogRequest& request) const;
@@ -296,6 +309,9 @@ namespace AlibabaCloud
 			GetDBListFromAgentOutcome getDBListFromAgent(const Model::GetDBListFromAgentRequest &request)const;
 			GetDBListFromAgentOutcome getDBListFromAgent(const Model::GetDBListFromAgentRequest &request)const;
 			void getDBListFromAgentAsync(const Model::GetDBListFromAgentRequest& request, const GetDBListFromAgentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
 			void getDBListFromAgentAsync(const Model::GetDBListFromAgentRequest& request, const GetDBListFromAgentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
 			GetDBListFromAgentOutcomeCallable getDBListFromAgentCallable(const Model::GetDBListFromAgentRequest& request) const;
 			GetDBListFromAgentOutcomeCallable getDBListFromAgentCallable(const Model::GetDBListFromAgentRequest& request) const;
+			InitializeDbsServiceLinkedRoleOutcome initializeDbsServiceLinkedRole(const Model::InitializeDbsServiceLinkedRoleRequest &request)const;
+			void initializeDbsServiceLinkedRoleAsync(const Model::InitializeDbsServiceLinkedRoleRequest& request, const InitializeDbsServiceLinkedRoleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
+			InitializeDbsServiceLinkedRoleOutcomeCallable initializeDbsServiceLinkedRoleCallable(const Model::InitializeDbsServiceLinkedRoleRequest& request) const;
 			ModifyBackupObjectsOutcome modifyBackupObjects(const Model::ModifyBackupObjectsRequest &request)const;
 			ModifyBackupObjectsOutcome modifyBackupObjects(const Model::ModifyBackupObjectsRequest &request)const;
 			void modifyBackupObjectsAsync(const Model::ModifyBackupObjectsRequest& request, const ModifyBackupObjectsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
 			void modifyBackupObjectsAsync(const Model::ModifyBackupObjectsRequest& request, const ModifyBackupObjectsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
 			ModifyBackupObjectsOutcomeCallable modifyBackupObjectsCallable(const Model::ModifyBackupObjectsRequest& request) const;
 			ModifyBackupObjectsOutcomeCallable modifyBackupObjectsCallable(const Model::ModifyBackupObjectsRequest& request) const;

+ 6 - 0
dbs/include/alibabacloud/dbs/model/DescribeFullBackupListRequest.h

@@ -45,6 +45,10 @@ namespace AlibabaCloud
 				void setPageNum(int pageNum);
 				void setPageNum(int pageNum);
 				std::string getOwnerId()const;
 				std::string getOwnerId()const;
 				void setOwnerId(const std::string& ownerId);
 				void setOwnerId(const std::string& ownerId);
+				long getStartTimestamp()const;
+				void setStartTimestamp(long startTimestamp);
+				long getEndTimestamp()const;
+				void setEndTimestamp(long endTimestamp);
 				bool getShowStorageType()const;
 				bool getShowStorageType()const;
 				void setShowStorageType(bool showStorageType);
 				void setShowStorageType(bool showStorageType);
 				int getPageSize()const;
 				int getPageSize()const;
@@ -56,6 +60,8 @@ namespace AlibabaCloud
 				std::string backupSetId_;
 				std::string backupSetId_;
 				int pageNum_;
 				int pageNum_;
 				std::string ownerId_;
 				std::string ownerId_;
+				long startTimestamp_;
+				long endTimestamp_;
 				bool showStorageType_;
 				bool showStorageType_;
 				int pageSize_;
 				int pageSize_;
 
 

+ 6 - 0
dbs/include/alibabacloud/dbs/model/DescribeIncrementBackupListRequest.h

@@ -43,6 +43,10 @@ namespace AlibabaCloud
 				void setPageNum(int pageNum);
 				void setPageNum(int pageNum);
 				std::string getOwnerId()const;
 				std::string getOwnerId()const;
 				void setOwnerId(const std::string& ownerId);
 				void setOwnerId(const std::string& ownerId);
+				long getStartTimestamp()const;
+				void setStartTimestamp(long startTimestamp);
+				long getEndTimestamp()const;
+				void setEndTimestamp(long endTimestamp);
 				bool getShowStorageType()const;
 				bool getShowStorageType()const;
 				void setShowStorageType(bool showStorageType);
 				void setShowStorageType(bool showStorageType);
 				int getPageSize()const;
 				int getPageSize()const;
@@ -53,6 +57,8 @@ namespace AlibabaCloud
 				std::string backupPlanId_;
 				std::string backupPlanId_;
 				int pageNum_;
 				int pageNum_;
 				std::string ownerId_;
 				std::string ownerId_;
+				long startTimestamp_;
+				long endTimestamp_;
 				bool showStorageType_;
 				bool showStorageType_;
 				int pageSize_;
 				int pageSize_;
 
 

+ 54 - 0
dbs/include/alibabacloud/dbs/model/DescribeSandboxFromRDSRequest.h

@@ -0,0 +1,54 @@
+/*
+ * Copyright 2009-2017 Alibaba Cloud All rights reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBESANDBOXFROMRDSREQUEST_H_
+#define ALIBABACLOUD_DBS_MODEL_DESCRIBESANDBOXFROMRDSREQUEST_H_
+
+#include <string>
+#include <vector>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <alibabacloud/dbs/DbsExport.h>
+
+namespace AlibabaCloud
+{
+	namespace Dbs
+	{
+		namespace Model
+		{
+			class ALIBABACLOUD_DBS_EXPORT DescribeSandboxFromRDSRequest : public RpcServiceRequest
+			{
+
+			public:
+				DescribeSandboxFromRDSRequest();
+				~DescribeSandboxFromRDSRequest();
+
+				std::string getClientToken()const;
+				void setClientToken(const std::string& clientToken);
+				std::string getRdsInstanceID()const;
+				void setRdsInstanceID(const std::string& rdsInstanceID);
+				std::string getOwnerId()const;
+				void setOwnerId(const std::string& ownerId);
+
+            private:
+				std::string clientToken_;
+				std::string rdsInstanceID_;
+				std::string ownerId_;
+
+			};
+		}
+	}
+}
+#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBESANDBOXFROMRDSREQUEST_H_

+ 75 - 0
dbs/include/alibabacloud/dbs/model/DescribeSandboxFromRDSResult.h

@@ -0,0 +1,75 @@
+/*
+ * Copyright 2009-2017 Alibaba Cloud All rights reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBESANDBOXFROMRDSRESULT_H_
+#define ALIBABACLOUD_DBS_MODEL_DESCRIBESANDBOXFROMRDSRESULT_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 DescribeSandboxFromRDSResult : public ServiceResult
+			{
+			public:
+
+
+				DescribeSandboxFromRDSResult();
+				explicit DescribeSandboxFromRDSResult(const std::string &payload);
+				~DescribeSandboxFromRDSResult();
+				std::string getBackupPlanName()const;
+				std::string getDbsInstanceId()const;
+				std::string getSourceId()const;
+				bool getSupportSandbox()const;
+				long getSandboxRecoverEndTime()const;
+				std::string getErrMessage()const;
+				bool getSuccess()const;
+				std::string getErrCode()const;
+				bool getEnabledSandbox()const;
+				long getSandboxRecoverStartTime()const;
+				int getHttpStatusCode()const;
+				std::string getBackupLog()const;
+				int getSandboxInstanceCount()const;
+
+			protected:
+				void parse(const std::string &payload);
+			private:
+				std::string backupPlanName_;
+				std::string dbsInstanceId_;
+				std::string sourceId_;
+				bool supportSandbox_;
+				long sandboxRecoverEndTime_;
+				std::string errMessage_;
+				bool success_;
+				std::string errCode_;
+				bool enabledSandbox_;
+				long sandboxRecoverStartTime_;
+				int httpStatusCode_;
+				std::string backupLog_;
+				int sandboxInstanceCount_;
+
+			};
+		}
+	}
+}
+#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBESANDBOXFROMRDSRESULT_H_

+ 45 - 0
dbs/include/alibabacloud/dbs/model/InitializeDbsServiceLinkedRoleRequest.h

@@ -0,0 +1,45 @@
+/*
+ * 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_INITIALIZEDBSSERVICELINKEDROLEREQUEST_H_
+#define ALIBABACLOUD_DBS_MODEL_INITIALIZEDBSSERVICELINKEDROLEREQUEST_H_
+
+#include <string>
+#include <vector>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <alibabacloud/dbs/DbsExport.h>
+
+namespace AlibabaCloud
+{
+	namespace Dbs
+	{
+		namespace Model
+		{
+			class ALIBABACLOUD_DBS_EXPORT InitializeDbsServiceLinkedRoleRequest : public RpcServiceRequest
+			{
+
+			public:
+				InitializeDbsServiceLinkedRoleRequest();
+				~InitializeDbsServiceLinkedRoleRequest();
+
+
+            private:
+
+			};
+		}
+	}
+}
+#endif // !ALIBABACLOUD_DBS_MODEL_INITIALIZEDBSSERVICELINKEDROLEREQUEST_H_

+ 57 - 0
dbs/include/alibabacloud/dbs/model/InitializeDbsServiceLinkedRoleResult.h

@@ -0,0 +1,57 @@
+/*
+ * Copyright 2009-2017 Alibaba Cloud All rights reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef ALIBABACLOUD_DBS_MODEL_INITIALIZEDBSSERVICELINKEDROLERESULT_H_
+#define ALIBABACLOUD_DBS_MODEL_INITIALIZEDBSSERVICELINKEDROLERESULT_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 InitializeDbsServiceLinkedRoleResult : public ServiceResult
+			{
+			public:
+
+
+				InitializeDbsServiceLinkedRoleResult();
+				explicit InitializeDbsServiceLinkedRoleResult(const std::string &payload);
+				~InitializeDbsServiceLinkedRoleResult();
+				std::string getData()const;
+				std::string getErrorCode()const;
+				std::string getErrMessage()const;
+				std::string getSuccess()const;
+
+			protected:
+				void parse(const std::string &payload);
+			private:
+				std::string data_;
+				std::string errorCode_;
+				std::string errMessage_;
+				std::string success_;
+
+			};
+		}
+	}
+}
+#endif // !ALIBABACLOUD_DBS_MODEL_INITIALIZEDBSSERVICELINKEDROLERESULT_H_

+ 72 - 0
dbs/src/DbsClient.cc

@@ -843,6 +843,42 @@ DbsClient::DescribeRestoreTaskListOutcomeCallable DbsClient::describeRestoreTask
 	return task->get_future();
 	return task->get_future();
 }
 }
 
 
+DbsClient::DescribeSandboxFromRDSOutcome DbsClient::describeSandboxFromRDS(const DescribeSandboxFromRDSRequest &request) const
+{
+	auto endpointOutcome = endpointProvider_->getEndpoint();
+	if (!endpointOutcome.isSuccess())
+		return DescribeSandboxFromRDSOutcome(endpointOutcome.error());
+
+	auto outcome = makeRequest(endpointOutcome.result(), request);
+
+	if (outcome.isSuccess())
+		return DescribeSandboxFromRDSOutcome(DescribeSandboxFromRDSResult(outcome.result()));
+	else
+		return DescribeSandboxFromRDSOutcome(outcome.error());
+}
+
+void DbsClient::describeSandboxFromRDSAsync(const DescribeSandboxFromRDSRequest& request, const DescribeSandboxFromRDSAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
+{
+	auto fn = [this, request, handler, context]()
+	{
+		handler(this, request, describeSandboxFromRDS(request), context);
+	};
+
+	asyncExecute(new Runnable(fn));
+}
+
+DbsClient::DescribeSandboxFromRDSOutcomeCallable DbsClient::describeSandboxFromRDSCallable(const DescribeSandboxFromRDSRequest &request) const
+{
+	auto task = std::make_shared<std::packaged_task<DescribeSandboxFromRDSOutcome()>>(
+			[this, request]()
+			{
+			return this->describeSandboxFromRDS(request);
+			});
+
+	asyncExecute(new Runnable([task]() { (*task)(); }));
+	return task->get_future();
+}
+
 DbsClient::DisableBackupLogOutcome DbsClient::disableBackupLog(const DisableBackupLogRequest &request) const
 DbsClient::DisableBackupLogOutcome DbsClient::disableBackupLog(const DisableBackupLogRequest &request) const
 {
 {
 	auto endpointOutcome = endpointProvider_->getEndpoint();
 	auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -951,6 +987,42 @@ DbsClient::GetDBListFromAgentOutcomeCallable DbsClient::getDBListFromAgentCallab
 	return task->get_future();
 	return task->get_future();
 }
 }
 
 
+DbsClient::InitializeDbsServiceLinkedRoleOutcome DbsClient::initializeDbsServiceLinkedRole(const InitializeDbsServiceLinkedRoleRequest &request) const
+{
+	auto endpointOutcome = endpointProvider_->getEndpoint();
+	if (!endpointOutcome.isSuccess())
+		return InitializeDbsServiceLinkedRoleOutcome(endpointOutcome.error());
+
+	auto outcome = makeRequest(endpointOutcome.result(), request);
+
+	if (outcome.isSuccess())
+		return InitializeDbsServiceLinkedRoleOutcome(InitializeDbsServiceLinkedRoleResult(outcome.result()));
+	else
+		return InitializeDbsServiceLinkedRoleOutcome(outcome.error());
+}
+
+void DbsClient::initializeDbsServiceLinkedRoleAsync(const InitializeDbsServiceLinkedRoleRequest& request, const InitializeDbsServiceLinkedRoleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
+{
+	auto fn = [this, request, handler, context]()
+	{
+		handler(this, request, initializeDbsServiceLinkedRole(request), context);
+	};
+
+	asyncExecute(new Runnable(fn));
+}
+
+DbsClient::InitializeDbsServiceLinkedRoleOutcomeCallable DbsClient::initializeDbsServiceLinkedRoleCallable(const InitializeDbsServiceLinkedRoleRequest &request) const
+{
+	auto task = std::make_shared<std::packaged_task<InitializeDbsServiceLinkedRoleOutcome()>>(
+			[this, request]()
+			{
+			return this->initializeDbsServiceLinkedRole(request);
+			});
+
+	asyncExecute(new Runnable([task]() { (*task)(); }));
+	return task->get_future();
+}
+
 DbsClient::ModifyBackupObjectsOutcome DbsClient::modifyBackupObjects(const ModifyBackupObjectsRequest &request) const
 DbsClient::ModifyBackupObjectsOutcome DbsClient::modifyBackupObjects(const ModifyBackupObjectsRequest &request) const
 {
 {
 	auto endpointOutcome = endpointProvider_->getEndpoint();
 	auto endpointOutcome = endpointProvider_->getEndpoint();

+ 22 - 0
dbs/src/model/DescribeFullBackupListRequest.cc

@@ -82,6 +82,28 @@ void DescribeFullBackupListRequest::setOwnerId(const std::string& ownerId)
 	setParameter("OwnerId", ownerId);
 	setParameter("OwnerId", ownerId);
 }
 }
 
 
+long DescribeFullBackupListRequest::getStartTimestamp()const
+{
+	return startTimestamp_;
+}
+
+void DescribeFullBackupListRequest::setStartTimestamp(long startTimestamp)
+{
+	startTimestamp_ = startTimestamp;
+	setParameter("StartTimestamp", std::to_string(startTimestamp));
+}
+
+long DescribeFullBackupListRequest::getEndTimestamp()const
+{
+	return endTimestamp_;
+}
+
+void DescribeFullBackupListRequest::setEndTimestamp(long endTimestamp)
+{
+	endTimestamp_ = endTimestamp;
+	setParameter("EndTimestamp", std::to_string(endTimestamp));
+}
+
 bool DescribeFullBackupListRequest::getShowStorageType()const
 bool DescribeFullBackupListRequest::getShowStorageType()const
 {
 {
 	return showStorageType_;
 	return showStorageType_;

+ 22 - 0
dbs/src/model/DescribeIncrementBackupListRequest.cc

@@ -71,6 +71,28 @@ void DescribeIncrementBackupListRequest::setOwnerId(const std::string& ownerId)
 	setParameter("OwnerId", ownerId);
 	setParameter("OwnerId", ownerId);
 }
 }
 
 
+long DescribeIncrementBackupListRequest::getStartTimestamp()const
+{
+	return startTimestamp_;
+}
+
+void DescribeIncrementBackupListRequest::setStartTimestamp(long startTimestamp)
+{
+	startTimestamp_ = startTimestamp;
+	setParameter("StartTimestamp", std::to_string(startTimestamp));
+}
+
+long DescribeIncrementBackupListRequest::getEndTimestamp()const
+{
+	return endTimestamp_;
+}
+
+void DescribeIncrementBackupListRequest::setEndTimestamp(long endTimestamp)
+{
+	endTimestamp_ = endTimestamp;
+	setParameter("EndTimestamp", std::to_string(endTimestamp));
+}
+
 bool DescribeIncrementBackupListRequest::getShowStorageType()const
 bool DescribeIncrementBackupListRequest::getShowStorageType()const
 {
 {
 	return showStorageType_;
 	return showStorageType_;

+ 62 - 0
dbs/src/model/DescribeSandboxFromRDSRequest.cc

@@ -0,0 +1,62 @@
+/*
+ * Copyright 2009-2017 Alibaba Cloud All rights reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include <alibabacloud/dbs/model/DescribeSandboxFromRDSRequest.h>
+
+using AlibabaCloud::Dbs::Model::DescribeSandboxFromRDSRequest;
+
+DescribeSandboxFromRDSRequest::DescribeSandboxFromRDSRequest() :
+	RpcServiceRequest("dbs", "2019-03-06", "DescribeSandboxFromRDS")
+{
+	setMethod(HttpRequest::Method::Post);
+}
+
+DescribeSandboxFromRDSRequest::~DescribeSandboxFromRDSRequest()
+{}
+
+std::string DescribeSandboxFromRDSRequest::getClientToken()const
+{
+	return clientToken_;
+}
+
+void DescribeSandboxFromRDSRequest::setClientToken(const std::string& clientToken)
+{
+	clientToken_ = clientToken;
+	setParameter("ClientToken", clientToken);
+}
+
+std::string DescribeSandboxFromRDSRequest::getRdsInstanceID()const
+{
+	return rdsInstanceID_;
+}
+
+void DescribeSandboxFromRDSRequest::setRdsInstanceID(const std::string& rdsInstanceID)
+{
+	rdsInstanceID_ = rdsInstanceID;
+	setParameter("RdsInstanceID", rdsInstanceID);
+}
+
+std::string DescribeSandboxFromRDSRequest::getOwnerId()const
+{
+	return ownerId_;
+}
+
+void DescribeSandboxFromRDSRequest::setOwnerId(const std::string& ownerId)
+{
+	ownerId_ = ownerId;
+	setParameter("OwnerId", ownerId);
+}
+

+ 135 - 0
dbs/src/model/DescribeSandboxFromRDSResult.cc

@@ -0,0 +1,135 @@
+/*
+ * 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/DescribeSandboxFromRDSResult.h>
+#include <json/json.h>
+
+using namespace AlibabaCloud::Dbs;
+using namespace AlibabaCloud::Dbs::Model;
+
+DescribeSandboxFromRDSResult::DescribeSandboxFromRDSResult() :
+	ServiceResult()
+{}
+
+DescribeSandboxFromRDSResult::DescribeSandboxFromRDSResult(const std::string &payload) :
+	ServiceResult()
+{
+	parse(payload);
+}
+
+DescribeSandboxFromRDSResult::~DescribeSandboxFromRDSResult()
+{}
+
+void DescribeSandboxFromRDSResult::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["SourceId"].isNull())
+		sourceId_ = value["SourceId"].asString();
+	if(!value["BackupPlanName"].isNull())
+		backupPlanName_ = value["BackupPlanName"].asString();
+	if(!value["BackupLog"].isNull())
+		backupLog_ = value["BackupLog"].asString();
+	if(!value["DbsInstanceId"].isNull())
+		dbsInstanceId_ = value["DbsInstanceId"].asString();
+	if(!value["SupportSandbox"].isNull())
+		supportSandbox_ = value["SupportSandbox"].asString() == "true";
+	if(!value["SandboxInstanceCount"].isNull())
+		sandboxInstanceCount_ = std::stoi(value["SandboxInstanceCount"].asString());
+	if(!value["SandboxRecoverStartTime"].isNull())
+		sandboxRecoverStartTime_ = std::stol(value["SandboxRecoverStartTime"].asString());
+	if(!value["SandboxRecoverEndTime"].isNull())
+		sandboxRecoverEndTime_ = std::stol(value["SandboxRecoverEndTime"].asString());
+	if(!value["EnabledSandbox"].isNull())
+		enabledSandbox_ = value["EnabledSandbox"].asString() == "true";
+
+}
+
+std::string DescribeSandboxFromRDSResult::getBackupPlanName()const
+{
+	return backupPlanName_;
+}
+
+std::string DescribeSandboxFromRDSResult::getDbsInstanceId()const
+{
+	return dbsInstanceId_;
+}
+
+std::string DescribeSandboxFromRDSResult::getSourceId()const
+{
+	return sourceId_;
+}
+
+bool DescribeSandboxFromRDSResult::getSupportSandbox()const
+{
+	return supportSandbox_;
+}
+
+long DescribeSandboxFromRDSResult::getSandboxRecoverEndTime()const
+{
+	return sandboxRecoverEndTime_;
+}
+
+std::string DescribeSandboxFromRDSResult::getErrMessage()const
+{
+	return errMessage_;
+}
+
+bool DescribeSandboxFromRDSResult::getSuccess()const
+{
+	return success_;
+}
+
+std::string DescribeSandboxFromRDSResult::getErrCode()const
+{
+	return errCode_;
+}
+
+bool DescribeSandboxFromRDSResult::getEnabledSandbox()const
+{
+	return enabledSandbox_;
+}
+
+long DescribeSandboxFromRDSResult::getSandboxRecoverStartTime()const
+{
+	return sandboxRecoverStartTime_;
+}
+
+int DescribeSandboxFromRDSResult::getHttpStatusCode()const
+{
+	return httpStatusCode_;
+}
+
+std::string DescribeSandboxFromRDSResult::getBackupLog()const
+{
+	return backupLog_;
+}
+
+int DescribeSandboxFromRDSResult::getSandboxInstanceCount()const
+{
+	return sandboxInstanceCount_;
+}
+

+ 29 - 0
dbs/src/model/InitializeDbsServiceLinkedRoleRequest.cc

@@ -0,0 +1,29 @@
+/*
+ * 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/InitializeDbsServiceLinkedRoleRequest.h>
+
+using AlibabaCloud::Dbs::Model::InitializeDbsServiceLinkedRoleRequest;
+
+InitializeDbsServiceLinkedRoleRequest::InitializeDbsServiceLinkedRoleRequest() :
+	RpcServiceRequest("dbs", "2019-03-06", "InitializeDbsServiceLinkedRole")
+{
+	setMethod(HttpRequest::Method::Post);
+}
+
+InitializeDbsServiceLinkedRoleRequest::~InitializeDbsServiceLinkedRoleRequest()
+{}
+

+ 72 - 0
dbs/src/model/InitializeDbsServiceLinkedRoleResult.cc

@@ -0,0 +1,72 @@
+/*
+ * Copyright 2009-2017 Alibaba Cloud All rights reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include <alibabacloud/dbs/model/InitializeDbsServiceLinkedRoleResult.h>
+#include <json/json.h>
+
+using namespace AlibabaCloud::Dbs;
+using namespace AlibabaCloud::Dbs::Model;
+
+InitializeDbsServiceLinkedRoleResult::InitializeDbsServiceLinkedRoleResult() :
+	ServiceResult()
+{}
+
+InitializeDbsServiceLinkedRoleResult::InitializeDbsServiceLinkedRoleResult(const std::string &payload) :
+	ServiceResult()
+{
+	parse(payload);
+}
+
+InitializeDbsServiceLinkedRoleResult::~InitializeDbsServiceLinkedRoleResult()
+{}
+
+void InitializeDbsServiceLinkedRoleResult::parse(const std::string &payload)
+{
+	Json::Reader reader;
+	Json::Value value;
+	reader.parse(payload, value);
+	setRequestId(value["RequestId"].asString());
+	if(!value["ErrorCode"].isNull())
+		errorCode_ = value["ErrorCode"].asString();
+	if(!value["Data"].isNull())
+		data_ = value["Data"].asString();
+	if(!value["ErrMessage"].isNull())
+		errMessage_ = value["ErrMessage"].asString();
+	if(!value["Success"].isNull())
+		success_ = value["Success"].asString();
+
+}
+
+std::string InitializeDbsServiceLinkedRoleResult::getData()const
+{
+	return data_;
+}
+
+std::string InitializeDbsServiceLinkedRoleResult::getErrorCode()const
+{
+	return errorCode_;
+}
+
+std::string InitializeDbsServiceLinkedRoleResult::getErrMessage()const
+{
+	return errMessage_;
+}
+
+std::string InitializeDbsServiceLinkedRoleResult::getSuccess()const
+{
+	return success_;
+}
+