diff --git a/CHANGELOG b/CHANGELOG index a38ed61b8..0b4996034 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,9 @@ +2020-07-15 Version: 1.36.518 +- Modify ConfigureBackupPlan. +- Modify DescribeFullBackupList. +- Modify DescribeBackupPlanList. +- Modify DescribeRestoreRangeInfo. + 2020-07-15 Version: 1.36.517 - Support ModifyImageAttribute by LaunchPermission. - Support ImageFamily. diff --git a/VERSION b/VERSION index 44f88b080..85e2aeb9a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.517 \ No newline at end of file +1.36.518 \ No newline at end of file diff --git a/dbs/include/alibabacloud/dbs/model/ConfigureBackupPlanRequest.h b/dbs/include/alibabacloud/dbs/model/ConfigureBackupPlanRequest.h index c7efd506d..cddc7cef1 100644 --- a/dbs/include/alibabacloud/dbs/model/ConfigureBackupPlanRequest.h +++ b/dbs/include/alibabacloud/dbs/model/ConfigureBackupPlanRequest.h @@ -65,6 +65,8 @@ namespace AlibabaCloud void setDuplicationArchivePeriod(int duplicationArchivePeriod); std::string getCrossAliyunId()const; void setCrossAliyunId(const std::string& crossAliyunId); + bool getAutoStartBackup()const; + void setAutoStartBackup(bool autoStartBackup); std::string getSourceEndpointPassword()const; void setSourceEndpointPassword(const std::string& sourceEndpointPassword); std::string getBackupObjects()const; @@ -106,6 +108,7 @@ namespace AlibabaCloud std::string backupStorageType_; int duplicationArchivePeriod_; std::string crossAliyunId_; + bool autoStartBackup_; std::string sourceEndpointPassword_; std::string backupObjects_; std::string ownerId_; diff --git a/dbs/include/alibabacloud/dbs/model/DescribeBackupPlanListResult.h b/dbs/include/alibabacloud/dbs/model/DescribeBackupPlanListResult.h index 8ec459ea8..2f791ad43 100644 --- a/dbs/include/alibabacloud/dbs/model/DescribeBackupPlanListResult.h +++ b/dbs/include/alibabacloud/dbs/model/DescribeBackupPlanListResult.h @@ -60,6 +60,7 @@ namespace AlibabaCloud std::string instanceClass; std::string backupSetDownloadIncrementDataFormat; long endTimestampForRestore; + std::string errMessage; std::string backupSetDownloadTargetType; int duplicationArchivePeriod; std::string oSSBucketName; diff --git a/dbs/include/alibabacloud/dbs/model/DescribeFullBackupListRequest.h b/dbs/include/alibabacloud/dbs/model/DescribeFullBackupListRequest.h index a6b4d4abb..53bf3f3a5 100644 --- a/dbs/include/alibabacloud/dbs/model/DescribeFullBackupListRequest.h +++ b/dbs/include/alibabacloud/dbs/model/DescribeFullBackupListRequest.h @@ -39,6 +39,8 @@ namespace AlibabaCloud 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); int getPageNum()const; void setPageNum(int pageNum); std::string getOwnerId()const; @@ -51,6 +53,7 @@ namespace AlibabaCloud private: std::string clientToken_; std::string backupPlanId_; + std::string backupSetId_; int pageNum_; std::string ownerId_; bool showStorageType_; diff --git a/dbs/include/alibabacloud/dbs/model/DescribeRestoreRangeInfoRequest.h b/dbs/include/alibabacloud/dbs/model/DescribeRestoreRangeInfoRequest.h index 2d5908541..fa812c44a 100644 --- a/dbs/include/alibabacloud/dbs/model/DescribeRestoreRangeInfoRequest.h +++ b/dbs/include/alibabacloud/dbs/model/DescribeRestoreRangeInfoRequest.h @@ -45,6 +45,8 @@ namespace AlibabaCloud void setBackupPlanId(const std::string& backupPlanId); std::string getOwnerId()const; void setOwnerId(const std::string& ownerId); + bool getRecentlyRestore()const; + void setRecentlyRestore(bool recentlyRestore); private: long beginTimestampForRestore_; @@ -52,6 +54,7 @@ namespace AlibabaCloud std::string clientToken_; std::string backupPlanId_; std::string ownerId_; + bool recentlyRestore_; }; } diff --git a/dbs/src/model/ConfigureBackupPlanRequest.cc b/dbs/src/model/ConfigureBackupPlanRequest.cc index b2eee5477..f4b356e1d 100644 --- a/dbs/src/model/ConfigureBackupPlanRequest.cc +++ b/dbs/src/model/ConfigureBackupPlanRequest.cc @@ -192,6 +192,17 @@ void ConfigureBackupPlanRequest::setCrossAliyunId(const std::string& crossAliyun setParameter("CrossAliyunId", crossAliyunId); } +bool ConfigureBackupPlanRequest::getAutoStartBackup()const +{ + return autoStartBackup_; +} + +void ConfigureBackupPlanRequest::setAutoStartBackup(bool autoStartBackup) +{ + autoStartBackup_ = autoStartBackup; + setParameter("AutoStartBackup", autoStartBackup ? "true" : "false"); +} + std::string ConfigureBackupPlanRequest::getSourceEndpointPassword()const { return sourceEndpointPassword_; diff --git a/dbs/src/model/DescribeBackupPlanListResult.cc b/dbs/src/model/DescribeBackupPlanListResult.cc index 7b863db49..1dc3e0e9b 100644 --- a/dbs/src/model/DescribeBackupPlanListResult.cc +++ b/dbs/src/model/DescribeBackupPlanListResult.cc @@ -111,6 +111,8 @@ void DescribeBackupPlanListResult::parse(const std::string &payload) itemsObject.crossRoleName = valueItemsBackupPlanDetail["CrossRoleName"].asString(); if(!valueItemsBackupPlanDetail["BackupStorageType"].isNull()) itemsObject.backupStorageType = valueItemsBackupPlanDetail["BackupStorageType"].asString(); + if(!valueItemsBackupPlanDetail["ErrMessage"].isNull()) + itemsObject.errMessage = valueItemsBackupPlanDetail["ErrMessage"].asString(); items_.push_back(itemsObject); } if(!value["Success"].isNull()) diff --git a/dbs/src/model/DescribeFullBackupListRequest.cc b/dbs/src/model/DescribeFullBackupListRequest.cc index a0bd03838..636566964 100644 --- a/dbs/src/model/DescribeFullBackupListRequest.cc +++ b/dbs/src/model/DescribeFullBackupListRequest.cc @@ -49,6 +49,17 @@ void DescribeFullBackupListRequest::setBackupPlanId(const std::string& backupPla setParameter("BackupPlanId", backupPlanId); } +std::string DescribeFullBackupListRequest::getBackupSetId()const +{ + return backupSetId_; +} + +void DescribeFullBackupListRequest::setBackupSetId(const std::string& backupSetId) +{ + backupSetId_ = backupSetId; + setParameter("BackupSetId", backupSetId); +} + int DescribeFullBackupListRequest::getPageNum()const { return pageNum_; diff --git a/dbs/src/model/DescribeRestoreRangeInfoRequest.cc b/dbs/src/model/DescribeRestoreRangeInfoRequest.cc index 5f3b8f477..547794bec 100644 --- a/dbs/src/model/DescribeRestoreRangeInfoRequest.cc +++ b/dbs/src/model/DescribeRestoreRangeInfoRequest.cc @@ -82,3 +82,14 @@ void DescribeRestoreRangeInfoRequest::setOwnerId(const std::string& ownerId) setParameter("OwnerId", ownerId); } +bool DescribeRestoreRangeInfoRequest::getRecentlyRestore()const +{ + return recentlyRestore_; +} + +void DescribeRestoreRangeInfoRequest::setRecentlyRestore(bool recentlyRestore) +{ + recentlyRestore_ = recentlyRestore; + setParameter("RecentlyRestore", recentlyRestore ? "true" : "false"); +} +