Support new feature.
This commit is contained in:
@@ -35,6 +35,7 @@ namespace AlibabaCloud
|
||||
struct Data
|
||||
{
|
||||
std::vector<std::string> ruleList;
|
||||
std::string ruleVersion;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -34,6 +34,8 @@ public:
|
||||
void setDBClusterId(const std::string &dBClusterId);
|
||||
std::string getRuleName() const;
|
||||
void setRuleName(const std::string &ruleName);
|
||||
std::string getRuleVersion() const;
|
||||
void setRuleVersion(const std::string &ruleVersion);
|
||||
std::string getRuleConfig() const;
|
||||
void setRuleConfig(const std::string &ruleConfig);
|
||||
std::string getEnable() const;
|
||||
@@ -44,6 +46,7 @@ public:
|
||||
private:
|
||||
std::string dBClusterId_;
|
||||
std::string ruleName_;
|
||||
std::string ruleVersion_;
|
||||
std::string ruleConfig_;
|
||||
std::string enable_;
|
||||
std::string ruleNameList_;
|
||||
|
||||
@@ -40,6 +40,8 @@ void DescribeMaskingRulesResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["RuleVersion"].isNull())
|
||||
data_.ruleVersion = dataNode["RuleVersion"].asString();
|
||||
auto allRuleList = dataNode["RuleList"]["RuleList"];
|
||||
for (auto value : allRuleList)
|
||||
data_.ruleList.push_back(value.asString());
|
||||
|
||||
@@ -43,6 +43,15 @@ void ModifyMaskingRulesRequest::setRuleName(const std::string &ruleName) {
|
||||
setParameter(std::string("RuleName"), ruleName);
|
||||
}
|
||||
|
||||
std::string ModifyMaskingRulesRequest::getRuleVersion() const {
|
||||
return ruleVersion_;
|
||||
}
|
||||
|
||||
void ModifyMaskingRulesRequest::setRuleVersion(const std::string &ruleVersion) {
|
||||
ruleVersion_ = ruleVersion;
|
||||
setParameter(std::string("RuleVersion"), ruleVersion);
|
||||
}
|
||||
|
||||
std::string ModifyMaskingRulesRequest::getRuleConfig() const {
|
||||
return ruleConfig_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user