Skip to content

Commit

Permalink
Generated 2020-05-18 for dataworks-public.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Sep 18, 2024
1 parent 98c52c3 commit 6c6f189
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 1 deletion.
3 changes: 3 additions & 0 deletions aliyun-java-sdk-dataworks-public/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2024-09-18 Version: 5.1.9
- Generated 2020-05-18 for `dataworks-public`.

2024-09-03 Version: 5.1.8
- Generated 2020-05-18 for `dataworks-public`.

Expand Down
2 changes: 1 addition & 1 deletion aliyun-java-sdk-dataworks-public/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-dataworks-public</artifactId>
<packaging>jar</packaging>
<version>5.1.8</version>
<version>5.1.9</version>
<name>aliyun-java-sdk-dataworks-public</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 @@ -121,12 +121,16 @@ public static class Data {

private List<BizProcessesItem> bizProcesses;

private List<ReceiversItem> receivers;

private List<String> alertTargets;

private List<String> alertMethods;

private List<String> webhooks;

private List<Long> allowNodes;

public Integer getMaxAlertTimes() {
return this.maxAlertTimes;
}
Expand Down Expand Up @@ -263,6 +267,14 @@ public void setBizProcesses(List<BizProcessesItem> bizProcesses) {
this.bizProcesses = bizProcesses;
}

public List<ReceiversItem> getReceivers() {
return this.receivers;
}

public void setReceivers(List<ReceiversItem> receivers) {
this.receivers = receivers;
}

public List<String> getAlertTargets() {
return this.alertTargets;
}
Expand All @@ -287,6 +299,14 @@ public void setWebhooks(List<String> webhooks) {
this.webhooks = webhooks;
}

public List<Long> getAllowNodes() {
return this.allowNodes;
}

public void setAllowNodes(List<Long> allowNodes) {
this.allowNodes = allowNodes;
}

public static class RobotsItem {

private String webUrl;
Expand Down Expand Up @@ -411,6 +431,29 @@ public void setBizId(Long bizId) {
this.bizId = bizId;
}
}

public static class ReceiversItem {

private String alertUnit;

private List<String> alertTargets1;

public String getAlertUnit() {
return this.alertUnit;
}

public void setAlertUnit(String alertUnit) {
this.alertUnit = alertUnit;
}

public List<String> getAlertTargets1() {
return this.alertTargets1;
}

public void setAlertTargets1(List<String> alertTargets1) {
this.alertTargets1 = alertTargets1;
}
}
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import com.aliyuncs.dataworks_public.model.v20200518.GetRemindResponse.Data.BizProcessesItem;
import com.aliyuncs.dataworks_public.model.v20200518.GetRemindResponse.Data.NodesItem;
import com.aliyuncs.dataworks_public.model.v20200518.GetRemindResponse.Data.ProjectsItem;
import com.aliyuncs.dataworks_public.model.v20200518.GetRemindResponse.Data.ReceiversItem;
import com.aliyuncs.dataworks_public.model.v20200518.GetRemindResponse.Data.RobotsItem;
import com.aliyuncs.transform.UnmarshallerContext;

Expand Down Expand Up @@ -69,6 +70,12 @@ public static GetRemindResponse unmarshall(GetRemindResponse getRemindResponse,
}
data.setWebhooks(webhooks);

List<Long> allowNodes = new ArrayList<Long>();
for (int i = 0; i < _ctx.lengthValue("GetRemindResponse.Data.AllowNodes.Length"); i++) {
allowNodes.add(_ctx.longValue("GetRemindResponse.Data.AllowNodes["+ i +"]"));
}
data.setAllowNodes(allowNodes);

List<RobotsItem> robots = new ArrayList<RobotsItem>();
for (int i = 0; i < _ctx.lengthValue("GetRemindResponse.Data.Robots.Length"); i++) {
RobotsItem robotsItem = new RobotsItem();
Expand Down Expand Up @@ -119,6 +126,21 @@ public static GetRemindResponse unmarshall(GetRemindResponse getRemindResponse,
bizProcesses.add(bizProcessesItem);
}
data.setBizProcesses(bizProcesses);

List<ReceiversItem> receivers = new ArrayList<ReceiversItem>();
for (int i = 0; i < _ctx.lengthValue("GetRemindResponse.Data.Receivers.Length"); i++) {
ReceiversItem receiversItem = new ReceiversItem();
receiversItem.setAlertUnit(_ctx.stringValue("GetRemindResponse.Data.Receivers["+ i +"].AlertUnit"));

List<String> alertTargets1 = new ArrayList<String>();
for (int j = 0; j < _ctx.lengthValue("GetRemindResponse.Data.Receivers["+ i +"].AlertTargets.Length"); j++) {
alertTargets1.add(_ctx.stringValue("GetRemindResponse.Data.Receivers["+ i +"].AlertTargets["+ j +"]"));
}
receiversItem.setAlertTargets1(alertTargets1);

receivers.add(receiversItem);
}
data.setReceivers(receivers);
getRemindResponse.setData(data);

return getRemindResponse;
Expand Down

0 comments on commit 6c6f189

Please sign in to comment.