Support new feature.
This commit is contained in:
@@ -34,6 +34,15 @@ void DescribeDBClusterVersionRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterVersionRequest::getDescribeType() const {
|
||||
return describeType_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterVersionRequest::setDescribeType(const std::string &describeType) {
|
||||
describeType_ = describeType;
|
||||
setParameter(std::string("DescribeType"), describeType);
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterVersionRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
@@ -39,6 +39,20 @@ void DescribeDBClusterVersionResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDBRevisionVersionListNode = value["DBRevisionVersionList"]["DBRevisionVersionListItem"];
|
||||
for (auto valueDBRevisionVersionListDBRevisionVersionListItem : allDBRevisionVersionListNode)
|
||||
{
|
||||
DBRevisionVersionListItem dBRevisionVersionListObject;
|
||||
if(!valueDBRevisionVersionListDBRevisionVersionListItem["ReleaseType"].isNull())
|
||||
dBRevisionVersionListObject.releaseType = valueDBRevisionVersionListDBRevisionVersionListItem["ReleaseType"].asString();
|
||||
if(!valueDBRevisionVersionListDBRevisionVersionListItem["RevisionVersionCode"].isNull())
|
||||
dBRevisionVersionListObject.revisionVersionCode = valueDBRevisionVersionListDBRevisionVersionListItem["RevisionVersionCode"].asString();
|
||||
if(!valueDBRevisionVersionListDBRevisionVersionListItem["RevisionVersionName"].isNull())
|
||||
dBRevisionVersionListObject.revisionVersionName = valueDBRevisionVersionListDBRevisionVersionListItem["RevisionVersionName"].asString();
|
||||
if(!valueDBRevisionVersionListDBRevisionVersionListItem["ReleaseNote"].isNull())
|
||||
dBRevisionVersionListObject.releaseNote = valueDBRevisionVersionListDBRevisionVersionListItem["ReleaseNote"].asString();
|
||||
dBRevisionVersionList_.push_back(dBRevisionVersionListObject);
|
||||
}
|
||||
if(!value["IsLatestVersion"].isNull())
|
||||
isLatestVersion_ = value["IsLatestVersion"].asString();
|
||||
if(!value["IsProxyLatestVersion"].isNull())
|
||||
@@ -114,6 +128,11 @@ std::string DescribeDBClusterVersionResult::getDBMinorVersion()const
|
||||
return dBMinorVersion_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDBClusterVersionResult::DBRevisionVersionListItem> DescribeDBClusterVersionResult::getDBRevisionVersionList()const
|
||||
{
|
||||
return dBRevisionVersionList_;
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterVersionResult::getProxyLatestVersion()const
|
||||
{
|
||||
return proxyLatestVersion_;
|
||||
|
||||
@@ -43,6 +43,15 @@ void OpenAITaskRequest::setNodeType(const std::string &nodeType) {
|
||||
setParameter(std::string("NodeType"), nodeType);
|
||||
}
|
||||
|
||||
std::string OpenAITaskRequest::getDescribeType() const {
|
||||
return describeType_;
|
||||
}
|
||||
|
||||
void OpenAITaskRequest::setDescribeType(const std::string &describeType) {
|
||||
describeType_ = describeType;
|
||||
setParameter(std::string("DescribeType"), describeType);
|
||||
}
|
||||
|
||||
std::string OpenAITaskRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
@@ -115,6 +115,15 @@ void UpgradeDBClusterVersionRequest::setPlannedStartTime(const std::string &plan
|
||||
setParameter(std::string("PlannedStartTime"), plannedStartTime);
|
||||
}
|
||||
|
||||
std::string UpgradeDBClusterVersionRequest::getTargetDBRevisionVersionCode() const {
|
||||
return targetDBRevisionVersionCode_;
|
||||
}
|
||||
|
||||
void UpgradeDBClusterVersionRequest::setTargetDBRevisionVersionCode(const std::string &targetDBRevisionVersionCode) {
|
||||
targetDBRevisionVersionCode_ = targetDBRevisionVersionCode;
|
||||
setParameter(std::string("TargetDBRevisionVersionCode"), targetDBRevisionVersionCode);
|
||||
}
|
||||
|
||||
std::string UpgradeDBClusterVersionRequest::getUpgradePolicy() const {
|
||||
return upgradePolicy_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user