From 5c949c7455271fd35ffd806ccd528ada5f2182a1 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Wed, 31 Jul 2024 01:50:08 +0000 Subject: [PATCH] Generated 2020-05-18 for dataworks-public. --- .../ChangeLog.txt | 3 + aliyun-java-sdk-dataworks-public/pom.xml | 2 +- .../v20200518/ListClusterConfigsRequest.java | 82 +++++++++ .../v20200518/ListClusterConfigsResponse.java | 130 ++++++++++++++ .../model/v20200518/ListClustersRequest.java | 82 +++++++++ .../model/v20200518/ListClustersResponse.java | 163 ++++++++++++++++++ .../UpdateClusterConfigsRequest.java | 135 +++++++++++++++ .../UpdateClusterConfigsResponse.java | 96 +++++++++++ ...istClusterConfigsResponseUnmarshaller.java | 48 ++++++ .../ListClustersResponseUnmarshaller.java | 54 ++++++ ...ateClusterConfigsResponseUnmarshaller.java | 34 ++++ 11 files changed, 828 insertions(+), 1 deletion(-) create mode 100644 aliyun-java-sdk-dataworks-public/src/main/java/com/aliyuncs/dataworks_public/model/v20200518/ListClusterConfigsRequest.java create mode 100644 aliyun-java-sdk-dataworks-public/src/main/java/com/aliyuncs/dataworks_public/model/v20200518/ListClusterConfigsResponse.java create mode 100644 aliyun-java-sdk-dataworks-public/src/main/java/com/aliyuncs/dataworks_public/model/v20200518/ListClustersRequest.java create mode 100644 aliyun-java-sdk-dataworks-public/src/main/java/com/aliyuncs/dataworks_public/model/v20200518/ListClustersResponse.java create mode 100644 aliyun-java-sdk-dataworks-public/src/main/java/com/aliyuncs/dataworks_public/model/v20200518/UpdateClusterConfigsRequest.java create mode 100644 aliyun-java-sdk-dataworks-public/src/main/java/com/aliyuncs/dataworks_public/model/v20200518/UpdateClusterConfigsResponse.java create mode 100644 aliyun-java-sdk-dataworks-public/src/main/java/com/aliyuncs/dataworks_public/transform/v20200518/ListClusterConfigsResponseUnmarshaller.java create mode 100644 aliyun-java-sdk-dataworks-public/src/main/java/com/aliyuncs/dataworks_public/transform/v20200518/ListClustersResponseUnmarshaller.java create mode 100644 aliyun-java-sdk-dataworks-public/src/main/java/com/aliyuncs/dataworks_public/transform/v20200518/UpdateClusterConfigsResponseUnmarshaller.java diff --git a/aliyun-java-sdk-dataworks-public/ChangeLog.txt b/aliyun-java-sdk-dataworks-public/ChangeLog.txt index 248d1cca01..4edbd40182 100644 --- a/aliyun-java-sdk-dataworks-public/ChangeLog.txt +++ b/aliyun-java-sdk-dataworks-public/ChangeLog.txt @@ -1,3 +1,6 @@ +2024-07-31 Version: 5.1.6 +- Generated 2020-05-18 for `dataworks-public`. + 2024-06-18 Version: 5.1.5 - Add TaskSetting in GetQualityRule response. diff --git a/aliyun-java-sdk-dataworks-public/pom.xml b/aliyun-java-sdk-dataworks-public/pom.xml index 5b3c61275c..693a4ac1d4 100644 --- a/aliyun-java-sdk-dataworks-public/pom.xml +++ b/aliyun-java-sdk-dataworks-public/pom.xml @@ -4,7 +4,7 @@ com.aliyun aliyun-java-sdk-dataworks-public jar - 5.1.5 + 5.1.6 aliyun-java-sdk-dataworks-public http://www.aliyun.com Aliyun Open API SDK for Java diff --git a/aliyun-java-sdk-dataworks-public/src/main/java/com/aliyuncs/dataworks_public/model/v20200518/ListClusterConfigsRequest.java b/aliyun-java-sdk-dataworks-public/src/main/java/com/aliyuncs/dataworks_public/model/v20200518/ListClusterConfigsRequest.java new file mode 100644 index 0000000000..4d52289f77 --- /dev/null +++ b/aliyun-java-sdk-dataworks-public/src/main/java/com/aliyuncs/dataworks_public/model/v20200518/ListClusterConfigsRequest.java @@ -0,0 +1,82 @@ +/* + * 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 ListClusterConfigsRequest extends RpcAcsRequest { + + + private String configType; + + private Long clusterId; + + private Long projectId; + public ListClusterConfigsRequest() { + super("dataworks-public", "2020-05-18", "ListClusterConfigs"); + setProtocol(ProtocolType.HTTPS); + setMethod(MethodType.GET); + 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 getConfigType() { + return this.configType; + } + + public void setConfigType(String configType) { + this.configType = configType; + if(configType != null){ + putQueryParameter("ConfigType", configType); + } + } + + public Long getClusterId() { + return this.clusterId; + } + + public void setClusterId(Long clusterId) { + this.clusterId = clusterId; + if(clusterId != null){ + putQueryParameter("ClusterId", clusterId.toString()); + } + } + + public Long getProjectId() { + return this.projectId; + } + + public void setProjectId(Long projectId) { + this.projectId = projectId; + if(projectId != null){ + putQueryParameter("ProjectId", projectId.toString()); + } + } + + @Override + public Class getResponseClass() { + return ListClusterConfigsResponse.class; + } + +} diff --git a/aliyun-java-sdk-dataworks-public/src/main/java/com/aliyuncs/dataworks_public/model/v20200518/ListClusterConfigsResponse.java b/aliyun-java-sdk-dataworks-public/src/main/java/com/aliyuncs/dataworks_public/model/v20200518/ListClusterConfigsResponse.java new file mode 100644 index 0000000000..c1b660a799 --- /dev/null +++ b/aliyun-java-sdk-dataworks-public/src/main/java/com/aliyuncs/dataworks_public/model/v20200518/ListClusterConfigsResponse.java @@ -0,0 +1,130 @@ +/* + * 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.ListClusterConfigsResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ListClusterConfigsResponse extends AcsResponse { + + private String requestId; + + private Boolean success; + + private String errorCode; + + private String errorMessage; + + private Integer httpStatusCode; + + private List clusterConfigs; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Boolean getSuccess() { + return this.success; + } + + public void setSuccess(Boolean success) { + this.success = success; + } + + public String getErrorCode() { + return this.errorCode; + } + + public void setErrorCode(String errorCode) { + this.errorCode = errorCode; + } + + public String getErrorMessage() { + return this.errorMessage; + } + + public void setErrorMessage(String errorMessage) { + this.errorMessage = errorMessage; + } + + public Integer getHttpStatusCode() { + return this.httpStatusCode; + } + + public void setHttpStatusCode(Integer httpStatusCode) { + this.httpStatusCode = httpStatusCode; + } + + public List getClusterConfigs() { + return this.clusterConfigs; + } + + public void setClusterConfigs(List clusterConfigs) { + this.clusterConfigs = clusterConfigs; + } + + public static class ClusterConfigsItem { + + private String moduleName; + + private String configValue; + + private Boolean enableOverwrite; + + public String getModuleName() { + return this.moduleName; + } + + public void setModuleName(String moduleName) { + this.moduleName = moduleName; + } + + public String getConfigValue() { + return this.configValue; + } + + public void setConfigValue(String configValue) { + this.configValue = configValue; + } + + public Boolean getEnableOverwrite() { + return this.enableOverwrite; + } + + public void setEnableOverwrite(Boolean enableOverwrite) { + this.enableOverwrite = enableOverwrite; + } + } + + @Override + public ListClusterConfigsResponse getInstance(UnmarshallerContext context) { + return ListClusterConfigsResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-dataworks-public/src/main/java/com/aliyuncs/dataworks_public/model/v20200518/ListClustersRequest.java b/aliyun-java-sdk-dataworks-public/src/main/java/com/aliyuncs/dataworks_public/model/v20200518/ListClustersRequest.java new file mode 100644 index 0000000000..350ffc074a --- /dev/null +++ b/aliyun-java-sdk-dataworks-public/src/main/java/com/aliyuncs/dataworks_public/model/v20200518/ListClustersRequest.java @@ -0,0 +1,82 @@ +/* + * 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 ListClustersRequest extends RpcAcsRequest { + + + private Integer pageNumber; + + private String clusterType; + + private Integer pageSize; + public ListClustersRequest() { + super("dataworks-public", "2020-05-18", "ListClusters"); + setProtocol(ProtocolType.HTTPS); + setMethod(MethodType.GET); + 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 Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putQueryParameter("PageNumber", pageNumber.toString()); + } + } + + public String getClusterType() { + return this.clusterType; + } + + public void setClusterType(String clusterType) { + this.clusterType = clusterType; + if(clusterType != null){ + putQueryParameter("ClusterType", clusterType); + } + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putQueryParameter("PageSize", pageSize.toString()); + } + } + + @Override + public Class getResponseClass() { + return ListClustersResponse.class; + } + +} diff --git a/aliyun-java-sdk-dataworks-public/src/main/java/com/aliyuncs/dataworks_public/model/v20200518/ListClustersResponse.java b/aliyun-java-sdk-dataworks-public/src/main/java/com/aliyuncs/dataworks_public/model/v20200518/ListClustersResponse.java new file mode 100644 index 0000000000..f1902b3992 --- /dev/null +++ b/aliyun-java-sdk-dataworks-public/src/main/java/com/aliyuncs/dataworks_public/model/v20200518/ListClustersResponse.java @@ -0,0 +1,163 @@ +/* + * 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.ListClustersResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ListClustersResponse extends AcsResponse { + + private String requestId; + + private Boolean success; + + private String errorCode; + + private String errorMessage; + + private Integer httpStatusCode; + + private Data data; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Boolean getSuccess() { + return this.success; + } + + public void setSuccess(Boolean success) { + this.success = success; + } + + public String getErrorCode() { + return this.errorCode; + } + + public void setErrorCode(String errorCode) { + this.errorCode = errorCode; + } + + public String getErrorMessage() { + return this.errorMessage; + } + + public void setErrorMessage(String errorMessage) { + this.errorMessage = errorMessage; + } + + public Integer getHttpStatusCode() { + return this.httpStatusCode; + } + + public void setHttpStatusCode(Integer httpStatusCode) { + this.httpStatusCode = httpStatusCode; + } + + public Data getData() { + return this.data; + } + + public void setData(Data data) { + this.data = data; + } + + public static class Data { + + private Integer pageNumber; + + private Integer pageSize; + + private Integer totalCount; + + private List clusters; + + 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 getClusters() { + return this.clusters; + } + + public void setClusters(List clusters) { + this.clusters = clusters; + } + + public static class ClustersItem { + + private Long clusterId; + + private String clusterBizId; + + public Long getClusterId() { + return this.clusterId; + } + + public void setClusterId(Long clusterId) { + this.clusterId = clusterId; + } + + public String getClusterBizId() { + return this.clusterBizId; + } + + public void setClusterBizId(String clusterBizId) { + this.clusterBizId = clusterBizId; + } + } + } + + @Override + public ListClustersResponse getInstance(UnmarshallerContext context) { + return ListClustersResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-dataworks-public/src/main/java/com/aliyuncs/dataworks_public/model/v20200518/UpdateClusterConfigsRequest.java b/aliyun-java-sdk-dataworks-public/src/main/java/com/aliyuncs/dataworks_public/model/v20200518/UpdateClusterConfigsRequest.java new file mode 100644 index 0000000000..669756dc9c --- /dev/null +++ b/aliyun-java-sdk-dataworks-public/src/main/java/com/aliyuncs/dataworks_public/model/v20200518/UpdateClusterConfigsRequest.java @@ -0,0 +1,135 @@ +/* + * 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 java.util.List; +import com.google.gson.Gson; +import com.google.gson.annotations.SerializedName; +import com.aliyuncs.http.ProtocolType; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.dataworks_public.Endpoint; + +/** + * @author auto create + * @version + */ +public class UpdateClusterConfigsRequest extends RpcAcsRequest { + + + private String configType; + + private Long clusterId; + + @SerializedName("configValues") + private List configValues; + + private Long projectId; + public UpdateClusterConfigsRequest() { + super("dataworks-public", "2020-05-18", "UpdateClusterConfigs"); + 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 getConfigType() { + return this.configType; + } + + public void setConfigType(String configType) { + this.configType = configType; + if(configType != null){ + putQueryParameter("ConfigType", configType); + } + } + + public Long getClusterId() { + return this.clusterId; + } + + public void setClusterId(Long clusterId) { + this.clusterId = clusterId; + if(clusterId != null){ + putQueryParameter("ClusterId", clusterId.toString()); + } + } + + public List getConfigValues() { + return this.configValues; + } + + public void setConfigValues(List configValues) { + this.configValues = configValues; + if (configValues != null) { + putBodyParameter("ConfigValues" , new Gson().toJson(configValues)); + } + } + + public Long getProjectId() { + return this.projectId; + } + + public void setProjectId(Long projectId) { + this.projectId = projectId; + if(projectId != null){ + putQueryParameter("ProjectId", projectId.toString()); + } + } + + public static class ConfigValues { + + @SerializedName("EnableOverwrite") + private Boolean enableOverwrite; + + @SerializedName("ModuleName") + private String moduleName; + + @SerializedName("ConfigValue") + private String configValue; + + public Boolean getEnableOverwrite() { + return this.enableOverwrite; + } + + public void setEnableOverwrite(Boolean enableOverwrite) { + this.enableOverwrite = enableOverwrite; + } + + public String getModuleName() { + return this.moduleName; + } + + public void setModuleName(String moduleName) { + this.moduleName = moduleName; + } + + public String getConfigValue() { + return this.configValue; + } + + public void setConfigValue(String configValue) { + this.configValue = configValue; + } + } + + @Override + public Class getResponseClass() { + return UpdateClusterConfigsResponse.class; + } + +} diff --git a/aliyun-java-sdk-dataworks-public/src/main/java/com/aliyuncs/dataworks_public/model/v20200518/UpdateClusterConfigsResponse.java b/aliyun-java-sdk-dataworks-public/src/main/java/com/aliyuncs/dataworks_public/model/v20200518/UpdateClusterConfigsResponse.java new file mode 100644 index 0000000000..c84cb8ef42 --- /dev/null +++ b/aliyun-java-sdk-dataworks-public/src/main/java/com/aliyuncs/dataworks_public/model/v20200518/UpdateClusterConfigsResponse.java @@ -0,0 +1,96 @@ +/* + * 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.AcsResponse; +import com.aliyuncs.dataworks_public.transform.v20200518.UpdateClusterConfigsResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class UpdateClusterConfigsResponse extends AcsResponse { + + private Boolean data; + + private String requestId; + + private Boolean success; + + private String errorCode; + + private String errorMessage; + + private Integer httpStatusCode; + + public Boolean getData() { + return this.data; + } + + public void setData(Boolean data) { + this.data = data; + } + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public Boolean getSuccess() { + return this.success; + } + + public void setSuccess(Boolean success) { + this.success = success; + } + + public String getErrorCode() { + return this.errorCode; + } + + public void setErrorCode(String errorCode) { + this.errorCode = errorCode; + } + + public String getErrorMessage() { + return this.errorMessage; + } + + public void setErrorMessage(String errorMessage) { + this.errorMessage = errorMessage; + } + + public Integer getHttpStatusCode() { + return this.httpStatusCode; + } + + public void setHttpStatusCode(Integer httpStatusCode) { + this.httpStatusCode = httpStatusCode; + } + + @Override + public UpdateClusterConfigsResponse getInstance(UnmarshallerContext context) { + return UpdateClusterConfigsResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-dataworks-public/src/main/java/com/aliyuncs/dataworks_public/transform/v20200518/ListClusterConfigsResponseUnmarshaller.java b/aliyun-java-sdk-dataworks-public/src/main/java/com/aliyuncs/dataworks_public/transform/v20200518/ListClusterConfigsResponseUnmarshaller.java new file mode 100644 index 0000000000..2fb6db7e67 --- /dev/null +++ b/aliyun-java-sdk-dataworks-public/src/main/java/com/aliyuncs/dataworks_public/transform/v20200518/ListClusterConfigsResponseUnmarshaller.java @@ -0,0 +1,48 @@ +/* + * 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.ListClusterConfigsResponse; +import com.aliyuncs.dataworks_public.model.v20200518.ListClusterConfigsResponse.ClusterConfigsItem; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ListClusterConfigsResponseUnmarshaller { + + public static ListClusterConfigsResponse unmarshall(ListClusterConfigsResponse listClusterConfigsResponse, UnmarshallerContext _ctx) { + + listClusterConfigsResponse.setRequestId(_ctx.stringValue("ListClusterConfigsResponse.RequestId")); + listClusterConfigsResponse.setSuccess(_ctx.booleanValue("ListClusterConfigsResponse.Success")); + listClusterConfigsResponse.setErrorCode(_ctx.stringValue("ListClusterConfigsResponse.ErrorCode")); + listClusterConfigsResponse.setErrorMessage(_ctx.stringValue("ListClusterConfigsResponse.ErrorMessage")); + listClusterConfigsResponse.setHttpStatusCode(_ctx.integerValue("ListClusterConfigsResponse.HttpStatusCode")); + + List clusterConfigs = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("ListClusterConfigsResponse.ClusterConfigs.Length"); i++) { + ClusterConfigsItem clusterConfigsItem = new ClusterConfigsItem(); + clusterConfigsItem.setModuleName(_ctx.stringValue("ListClusterConfigsResponse.ClusterConfigs["+ i +"].ModuleName")); + clusterConfigsItem.setConfigValue(_ctx.stringValue("ListClusterConfigsResponse.ClusterConfigs["+ i +"].ConfigValue")); + clusterConfigsItem.setEnableOverwrite(_ctx.booleanValue("ListClusterConfigsResponse.ClusterConfigs["+ i +"].EnableOverwrite")); + + clusterConfigs.add(clusterConfigsItem); + } + listClusterConfigsResponse.setClusterConfigs(clusterConfigs); + + return listClusterConfigsResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-dataworks-public/src/main/java/com/aliyuncs/dataworks_public/transform/v20200518/ListClustersResponseUnmarshaller.java b/aliyun-java-sdk-dataworks-public/src/main/java/com/aliyuncs/dataworks_public/transform/v20200518/ListClustersResponseUnmarshaller.java new file mode 100644 index 0000000000..0226c57088 --- /dev/null +++ b/aliyun-java-sdk-dataworks-public/src/main/java/com/aliyuncs/dataworks_public/transform/v20200518/ListClustersResponseUnmarshaller.java @@ -0,0 +1,54 @@ +/* + * 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.ListClustersResponse; +import com.aliyuncs.dataworks_public.model.v20200518.ListClustersResponse.Data; +import com.aliyuncs.dataworks_public.model.v20200518.ListClustersResponse.Data.ClustersItem; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ListClustersResponseUnmarshaller { + + public static ListClustersResponse unmarshall(ListClustersResponse listClustersResponse, UnmarshallerContext _ctx) { + + listClustersResponse.setRequestId(_ctx.stringValue("ListClustersResponse.RequestId")); + listClustersResponse.setSuccess(_ctx.booleanValue("ListClustersResponse.Success")); + listClustersResponse.setErrorCode(_ctx.stringValue("ListClustersResponse.ErrorCode")); + listClustersResponse.setErrorMessage(_ctx.stringValue("ListClustersResponse.ErrorMessage")); + listClustersResponse.setHttpStatusCode(_ctx.integerValue("ListClustersResponse.HttpStatusCode")); + + Data data = new Data(); + data.setPageNumber(_ctx.integerValue("ListClustersResponse.Data.PageNumber")); + data.setPageSize(_ctx.integerValue("ListClustersResponse.Data.PageSize")); + data.setTotalCount(_ctx.integerValue("ListClustersResponse.Data.TotalCount")); + + List clusters = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("ListClustersResponse.Data.Clusters.Length"); i++) { + ClustersItem clustersItem = new ClustersItem(); + clustersItem.setClusterId(_ctx.longValue("ListClustersResponse.Data.Clusters["+ i +"].ClusterId")); + clustersItem.setClusterBizId(_ctx.stringValue("ListClustersResponse.Data.Clusters["+ i +"].ClusterBizId")); + + clusters.add(clustersItem); + } + data.setClusters(clusters); + listClustersResponse.setData(data); + + return listClustersResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-dataworks-public/src/main/java/com/aliyuncs/dataworks_public/transform/v20200518/UpdateClusterConfigsResponseUnmarshaller.java b/aliyun-java-sdk-dataworks-public/src/main/java/com/aliyuncs/dataworks_public/transform/v20200518/UpdateClusterConfigsResponseUnmarshaller.java new file mode 100644 index 0000000000..e018d70a8f --- /dev/null +++ b/aliyun-java-sdk-dataworks-public/src/main/java/com/aliyuncs/dataworks_public/transform/v20200518/UpdateClusterConfigsResponseUnmarshaller.java @@ -0,0 +1,34 @@ +/* + * 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 com.aliyuncs.dataworks_public.model.v20200518.UpdateClusterConfigsResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class UpdateClusterConfigsResponseUnmarshaller { + + public static UpdateClusterConfigsResponse unmarshall(UpdateClusterConfigsResponse updateClusterConfigsResponse, UnmarshallerContext _ctx) { + + updateClusterConfigsResponse.setRequestId(_ctx.stringValue("UpdateClusterConfigsResponse.RequestId")); + updateClusterConfigsResponse.setData(_ctx.booleanValue("UpdateClusterConfigsResponse.Data")); + updateClusterConfigsResponse.setSuccess(_ctx.booleanValue("UpdateClusterConfigsResponse.Success")); + updateClusterConfigsResponse.setErrorCode(_ctx.stringValue("UpdateClusterConfigsResponse.ErrorCode")); + updateClusterConfigsResponse.setErrorMessage(_ctx.stringValue("UpdateClusterConfigsResponse.ErrorMessage")); + updateClusterConfigsResponse.setHttpStatusCode(_ctx.integerValue("UpdateClusterConfigsResponse.HttpStatusCode")); + + return updateClusterConfigsResponse; + } +} \ No newline at end of file