Skip to content

Commit

Permalink
Support new feature.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Jan 5, 2024
1 parent 1528970 commit 19443e0
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 1 deletion.
3 changes: 3 additions & 0 deletions aliyun-java-sdk-polardb/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2024-01-05 Version: 1.8.45
- Support new feature.

2023-12-27 Version: 1.8.44
- Support new feature.

Expand Down
2 changes: 1 addition & 1 deletion aliyun-java-sdk-polardb/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-polardb</artifactId>
<packaging>jar</packaging>
<version>1.8.44</version>
<version>1.8.45</version>
<name>aliyun-java-sdk-polardb</name>
<url>http://www.aliyun.com</url>
<description>Aliyun Open API SDK for Java
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,18 @@ public void setData(Data data) {

public static class Data {

private String ruleVersion;

private List<String> ruleList;

public String getRuleVersion() {
return this.ruleVersion;
}

public void setRuleVersion(String ruleVersion) {
this.ruleVersion = ruleVersion;
}

public List<String> getRuleList() {
return this.ruleList;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ public class ModifyMaskingRulesRequest extends RpcAcsRequest<ModifyMaskingRulesR

private String ruleName;

private String ruleVersion;

private String ruleConfig;

private String enable;
Expand Down Expand Up @@ -65,6 +67,17 @@ public void setRuleName(String ruleName) {
}
}

public String getRuleVersion() {
return this.ruleVersion;
}

public void setRuleVersion(String ruleVersion) {
this.ruleVersion = ruleVersion;
if(ruleVersion != null){
putQueryParameter("RuleVersion", ruleVersion);
}
}

public String getRuleConfig() {
return this.ruleConfig;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public static DescribeMaskingRulesResponse unmarshall(DescribeMaskingRulesRespon
describeMaskingRulesResponse.setDBClusterId(_ctx.stringValue("DescribeMaskingRulesResponse.DBClusterId"));

Data data = new Data();
data.setRuleVersion(_ctx.stringValue("DescribeMaskingRulesResponse.Data.RuleVersion"));

List<String> ruleList = new ArrayList<String>();
for (int i = 0; i < _ctx.lengthValue("DescribeMaskingRulesResponse.Data.RuleList.Length"); i++) {
Expand Down

0 comments on commit 19443e0

Please sign in to comment.