From 44572042b1193d032c6ba1521d6647da4a39990c Mon Sep 17 00:00:00 2001 From: sdk-team Date: Fri, 30 Jun 2023 02:10:05 +0000 Subject: [PATCH] ModifyBackupPolicy API support parameter BackupPriority. --- VERSION | 2 +- .../rds/model/DescribeBackupPolicyResult.h | 4 ++++ .../rds/model/ModifyBackupPolicyRequest.h | 3 +++ rds/src/model/DescribeBackupPolicyResult.cc | 14 ++++++++++++++ rds/src/model/ModifyBackupPolicyRequest.cc | 9 +++++++++ 5 files changed, 31 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 4a1c3acfd..61995c57c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1620 \ No newline at end of file +1.36.1621 \ No newline at end of file diff --git a/rds/include/alibabacloud/rds/model/DescribeBackupPolicyResult.h b/rds/include/alibabacloud/rds/model/DescribeBackupPolicyResult.h index 488d7fd01..a577fc1fe 100644 --- a/rds/include/alibabacloud/rds/model/DescribeBackupPolicyResult.h +++ b/rds/include/alibabacloud/rds/model/DescribeBackupPolicyResult.h @@ -64,6 +64,7 @@ namespace AlibabaCloud std::string getDuplication()const; std::string getArchiveBackupKeepPolicy()const; std::string getPreferredBackupTime()const; + int getBackupPriority()const; int getLocalLogRetentionHours()const; std::string getHighSpaceUsageProtection()const; std::string getCompressType()const; @@ -72,6 +73,7 @@ namespace AlibabaCloud std::string getEnableBackupLog()const; std::string getLocalLogRetentionSpace()const; int getBackupRetentionPeriod()const; + bool getSupportModifyBackupPriority()const; std::string getBackupInterval()const; protected: @@ -94,6 +96,7 @@ namespace AlibabaCloud std::string duplication_; std::string archiveBackupKeepPolicy_; std::string preferredBackupTime_; + int backupPriority_; int localLogRetentionHours_; std::string highSpaceUsageProtection_; std::string compressType_; @@ -102,6 +105,7 @@ namespace AlibabaCloud std::string enableBackupLog_; std::string localLogRetentionSpace_; int backupRetentionPeriod_; + bool supportModifyBackupPriority_; std::string backupInterval_; }; diff --git a/rds/include/alibabacloud/rds/model/ModifyBackupPolicyRequest.h b/rds/include/alibabacloud/rds/model/ModifyBackupPolicyRequest.h index ef46d989c..83931a9be 100644 --- a/rds/include/alibabacloud/rds/model/ModifyBackupPolicyRequest.h +++ b/rds/include/alibabacloud/rds/model/ModifyBackupPolicyRequest.h @@ -34,6 +34,8 @@ public: void setResourceOwnerId(long resourceOwnerId); std::string getLocalLogRetentionHours() const; void setLocalLogRetentionHours(const std::string &localLogRetentionHours); + int getBackupPriority() const; + void setBackupPriority(int backupPriority); std::string getLogBackupFrequency() const; void setLogBackupFrequency(const std::string &logBackupFrequency); int getArchiveBackupKeepCount() const; @@ -94,6 +96,7 @@ public: private: long resourceOwnerId_; std::string localLogRetentionHours_; + int backupPriority_; std::string logBackupFrequency_; int archiveBackupKeepCount_; std::string backupLog_; diff --git a/rds/src/model/DescribeBackupPolicyResult.cc b/rds/src/model/DescribeBackupPolicyResult.cc index 3cb50c410..a7c6644de 100644 --- a/rds/src/model/DescribeBackupPolicyResult.cc +++ b/rds/src/model/DescribeBackupPolicyResult.cc @@ -97,6 +97,10 @@ void DescribeBackupPolicyResult::parse(const std::string &payload) backupLog_ = value["BackupLog"].asString(); if(!value["EnableIncrementDataBackup"].isNull()) enableIncrementDataBackup_ = value["EnableIncrementDataBackup"].asString() == "true"; + if(!value["SupportModifyBackupPriority"].isNull()) + supportModifyBackupPriority_ = value["SupportModifyBackupPriority"].asString() == "true"; + if(!value["BackupPriority"].isNull()) + backupPriority_ = std::stoi(value["BackupPriority"].asString()); } @@ -185,6 +189,11 @@ std::string DescribeBackupPolicyResult::getPreferredBackupTime()const return preferredBackupTime_; } +int DescribeBackupPolicyResult::getBackupPriority()const +{ + return backupPriority_; +} + int DescribeBackupPolicyResult::getLocalLogRetentionHours()const { return localLogRetentionHours_; @@ -225,6 +234,11 @@ int DescribeBackupPolicyResult::getBackupRetentionPeriod()const return backupRetentionPeriod_; } +bool DescribeBackupPolicyResult::getSupportModifyBackupPriority()const +{ + return supportModifyBackupPriority_; +} + std::string DescribeBackupPolicyResult::getBackupInterval()const { return backupInterval_; diff --git a/rds/src/model/ModifyBackupPolicyRequest.cc b/rds/src/model/ModifyBackupPolicyRequest.cc index 652a10915..979f94111 100644 --- a/rds/src/model/ModifyBackupPolicyRequest.cc +++ b/rds/src/model/ModifyBackupPolicyRequest.cc @@ -43,6 +43,15 @@ void ModifyBackupPolicyRequest::setLocalLogRetentionHours(const std::string &loc setParameter(std::string("LocalLogRetentionHours"), localLogRetentionHours); } +int ModifyBackupPolicyRequest::getBackupPriority() const { + return backupPriority_; +} + +void ModifyBackupPolicyRequest::setBackupPriority(int backupPriority) { + backupPriority_ = backupPriority; + setParameter(std::string("BackupPriority"), std::to_string(backupPriority)); +} + std::string ModifyBackupPolicyRequest::getLogBackupFrequency() const { return logBackupFrequency_; }