Modify ConfigureBackupPlan.

This commit is contained in:
sdk-team
2020-07-15 18:18:52 +08:00
parent eee5186ffd
commit 401f5f7e4c
10 changed files with 52 additions and 1 deletions

View File

@@ -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.

View File

@@ -1 +1 @@
1.36.517
1.36.518

View File

@@ -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_;

View File

@@ -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;

View File

@@ -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_;

View File

@@ -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_;
};
}

View File

@@ -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_;

View File

@@ -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())

View File

@@ -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_;

View File

@@ -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");
}