Skip to content

Commit

Permalink
Support CreateDISyncTask with large param.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Nov 21, 2024
1 parent 087e55b commit 92ddfcf
Show file tree
Hide file tree
Showing 5 changed files with 375 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-11-21 Version: 6.1.7
- Support CreateDISyncTask with large param.

2024-10-17 Version: 5.1.11
- 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.11</version>
<version>6.1.7</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
@@ -0,0 +1,121 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.aliyuncs.dataworks_public.model.v20200518;

import com.aliyuncs.RpcAcsRequest;
import com.aliyuncs.http.ProtocolType;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.dataworks_public.Endpoint;

/**
* @author auto create
* @version
*/
public class ListCheckProcessesRequest extends RpcAcsRequest<ListCheckProcessesResponse> {


private String eventCode;

private String operator;

private Integer pageNumber;

private Integer pageSize;

private Long projectId;

private String status;
public ListCheckProcessesRequest() {
super("dataworks-public", "2020-05-18", "ListCheckProcesses");
setProtocol(ProtocolType.HTTPS);
setMethod(MethodType.POST);
try {
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
} catch (Exception e) {}
}

public String getEventCode() {
return this.eventCode;
}

public void setEventCode(String eventCode) {
this.eventCode = eventCode;
if(eventCode != null){
putBodyParameter("EventCode", eventCode);
}
}

public String getOperator() {
return this.operator;
}

public void setOperator(String operator) {
this.operator = operator;
if(operator != null){
putBodyParameter("Operator", operator);
}
}

public Integer getPageNumber() {
return this.pageNumber;
}

public void setPageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
if(pageNumber != null){
putBodyParameter("PageNumber", pageNumber.toString());
}
}

public Integer getPageSize() {
return this.pageSize;
}

public void setPageSize(Integer pageSize) {
this.pageSize = pageSize;
if(pageSize != null){
putBodyParameter("PageSize", pageSize.toString());
}
}

public Long getProjectId() {
return this.projectId;
}

public void setProjectId(Long projectId) {
this.projectId = projectId;
if(projectId != null){
putBodyParameter("ProjectId", projectId.toString());
}
}

public String getStatus() {
return this.status;
}

public void setStatus(String status) {
this.status = status;
if(status != null){
putBodyParameter("Status", status);
}
}

@Override
public Class<ListCheckProcessesResponse> getResponseClass() {
return ListCheckProcessesResponse.class;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,193 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.aliyuncs.dataworks_public.model.v20200518;

import java.util.List;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.dataworks_public.transform.v20200518.ListCheckProcessesResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;

/**
* @author auto create
* @version
*/
public class ListCheckProcessesResponse extends AcsResponse {

private String requestId;

private PagingInfo pagingInfo;

public String getRequestId() {
return this.requestId;
}

public void setRequestId(String requestId) {
this.requestId = requestId;
}

public PagingInfo getPagingInfo() {
return this.pagingInfo;
}

public void setPagingInfo(PagingInfo pagingInfo) {
this.pagingInfo = pagingInfo;
}

public static class PagingInfo {

private Integer pageNumber;

private Integer pageSize;

private Integer totalCount;

private List<CheckProcessesItem> checkProcesses;

public Integer getPageNumber() {
return this.pageNumber;
}

public void setPageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
}

public Integer getPageSize() {
return this.pageSize;
}

public void setPageSize(Integer pageSize) {
this.pageSize = pageSize;
}

public Integer getTotalCount() {
return this.totalCount;
}

public void setTotalCount(Integer totalCount) {
this.totalCount = totalCount;
}

public List<CheckProcessesItem> getCheckProcesses() {
return this.checkProcesses;
}

public void setCheckProcesses(List<CheckProcessesItem> checkProcesses) {
this.checkProcesses = checkProcesses;
}

public static class CheckProcessesItem {

private Long projectId;

private String status;

private String eventCode;

private String eventName;

private String eventNameEn;

private String processName;

private String messageId;

private String processId;

private String operator;

public Long getProjectId() {
return this.projectId;
}

public void setProjectId(Long projectId) {
this.projectId = projectId;
}

public String getStatus() {
return this.status;
}

public void setStatus(String status) {
this.status = status;
}

public String getEventCode() {
return this.eventCode;
}

public void setEventCode(String eventCode) {
this.eventCode = eventCode;
}

public String getEventName() {
return this.eventName;
}

public void setEventName(String eventName) {
this.eventName = eventName;
}

public String getEventNameEn() {
return this.eventNameEn;
}

public void setEventNameEn(String eventNameEn) {
this.eventNameEn = eventNameEn;
}

public String getProcessName() {
return this.processName;
}

public void setProcessName(String processName) {
this.processName = processName;
}

public String getMessageId() {
return this.messageId;
}

public void setMessageId(String messageId) {
this.messageId = messageId;
}

public String getProcessId() {
return this.processId;
}

public void setProcessId(String processId) {
this.processId = processId;
}

public String getOperator() {
return this.operator;
}

public void setOperator(String operator) {
this.operator = operator;
}
}
}

@Override
public ListCheckProcessesResponse getInstance(UnmarshallerContext context) {
return ListCheckProcessesResponseUnmarshaller.unmarshall(this, context);
}

@Override
public boolean checkShowJsonItemName() {
return false;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.aliyuncs.dataworks_public.transform.v20200518;

import java.util.ArrayList;
import java.util.List;

import com.aliyuncs.dataworks_public.model.v20200518.ListCheckProcessesResponse;
import com.aliyuncs.dataworks_public.model.v20200518.ListCheckProcessesResponse.PagingInfo;
import com.aliyuncs.dataworks_public.model.v20200518.ListCheckProcessesResponse.PagingInfo.CheckProcessesItem;
import com.aliyuncs.transform.UnmarshallerContext;


public class ListCheckProcessesResponseUnmarshaller {

public static ListCheckProcessesResponse unmarshall(ListCheckProcessesResponse listCheckProcessesResponse, UnmarshallerContext _ctx) {

listCheckProcessesResponse.setRequestId(_ctx.stringValue("ListCheckProcessesResponse.RequestId"));

PagingInfo pagingInfo = new PagingInfo();
pagingInfo.setPageNumber(_ctx.integerValue("ListCheckProcessesResponse.PagingInfo.PageNumber"));
pagingInfo.setPageSize(_ctx.integerValue("ListCheckProcessesResponse.PagingInfo.PageSize"));
pagingInfo.setTotalCount(_ctx.integerValue("ListCheckProcessesResponse.PagingInfo.TotalCount"));

List<CheckProcessesItem> checkProcesses = new ArrayList<CheckProcessesItem>();
for (int i = 0; i < _ctx.lengthValue("ListCheckProcessesResponse.PagingInfo.CheckProcesses.Length"); i++) {
CheckProcessesItem checkProcessesItem = new CheckProcessesItem();
checkProcessesItem.setProjectId(_ctx.longValue("ListCheckProcessesResponse.PagingInfo.CheckProcesses["+ i +"].ProjectId"));
checkProcessesItem.setStatus(_ctx.stringValue("ListCheckProcessesResponse.PagingInfo.CheckProcesses["+ i +"].Status"));
checkProcessesItem.setEventCode(_ctx.stringValue("ListCheckProcessesResponse.PagingInfo.CheckProcesses["+ i +"].EventCode"));
checkProcessesItem.setEventName(_ctx.stringValue("ListCheckProcessesResponse.PagingInfo.CheckProcesses["+ i +"].EventName"));
checkProcessesItem.setEventNameEn(_ctx.stringValue("ListCheckProcessesResponse.PagingInfo.CheckProcesses["+ i +"].EventNameEn"));
checkProcessesItem.setProcessName(_ctx.stringValue("ListCheckProcessesResponse.PagingInfo.CheckProcesses["+ i +"].ProcessName"));
checkProcessesItem.setMessageId(_ctx.stringValue("ListCheckProcessesResponse.PagingInfo.CheckProcesses["+ i +"].MessageId"));
checkProcessesItem.setProcessId(_ctx.stringValue("ListCheckProcessesResponse.PagingInfo.CheckProcesses["+ i +"].ProcessId"));
checkProcessesItem.setOperator(_ctx.stringValue("ListCheckProcessesResponse.PagingInfo.CheckProcesses["+ i +"].Operator"));

checkProcesses.add(checkProcessesItem);
}
pagingInfo.setCheckProcesses(checkProcesses);
listCheckProcessesResponse.setPagingInfo(pagingInfo);

return listCheckProcessesResponse;
}
}

0 comments on commit 92ddfcf

Please sign in to comment.