From 965488510a2e504b05314ad9289b63922783aa94 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Thu, 12 Oct 2023 08:07:59 +0000 Subject: [PATCH] Support GetOrderBaseInfo to response AttachmentKey and OriginAttachmentName information. --- aliyun-java-sdk-dms-enterprise/ChangeLog.txt | 3 + aliyun-java-sdk-dms-enterprise/pom.xml | 2 +- .../GetDbExportDownloadURLRequest.java | 67 ++++++++++ .../GetDbExportDownloadURLResponse.java | 114 ++++++++++++++++++ .../v20181101/GetOrderBaseInfoResponse.java | 20 +++ ...ExportDownloadURLResponseUnmarshaller.java | 39 ++++++ .../GetOrderBaseInfoResponseUnmarshaller.java | 2 + 7 files changed, 246 insertions(+), 1 deletion(-) create mode 100644 aliyun-java-sdk-dms-enterprise/src/main/java/com/aliyuncs/dms_enterprise/model/v20181101/GetDbExportDownloadURLRequest.java create mode 100644 aliyun-java-sdk-dms-enterprise/src/main/java/com/aliyuncs/dms_enterprise/model/v20181101/GetDbExportDownloadURLResponse.java create mode 100644 aliyun-java-sdk-dms-enterprise/src/main/java/com/aliyuncs/dms_enterprise/transform/v20181101/GetDbExportDownloadURLResponseUnmarshaller.java diff --git a/aliyun-java-sdk-dms-enterprise/ChangeLog.txt b/aliyun-java-sdk-dms-enterprise/ChangeLog.txt index 57180cd799..9371217ff0 100644 --- a/aliyun-java-sdk-dms-enterprise/ChangeLog.txt +++ b/aliyun-java-sdk-dms-enterprise/ChangeLog.txt @@ -1,3 +1,6 @@ +2023-10-12 Version: 1.53.6 +- Support GetOrderBaseInfo to response AttachmentKey and OriginAttachmentName information. + 2023-10-11 Version: 1.53.5 - Support CreateProcCorrectAPI. diff --git a/aliyun-java-sdk-dms-enterprise/pom.xml b/aliyun-java-sdk-dms-enterprise/pom.xml index 0c68abdb45..ffe28317d8 100644 --- a/aliyun-java-sdk-dms-enterprise/pom.xml +++ b/aliyun-java-sdk-dms-enterprise/pom.xml @@ -4,7 +4,7 @@ com.aliyun aliyun-java-sdk-dms-enterprise jar - 1.53.5 + 1.53.6 aliyun-java-sdk-dms-enterprise http://www.aliyun.com Aliyun Open API SDK for Java diff --git a/aliyun-java-sdk-dms-enterprise/src/main/java/com/aliyuncs/dms_enterprise/model/v20181101/GetDbExportDownloadURLRequest.java b/aliyun-java-sdk-dms-enterprise/src/main/java/com/aliyuncs/dms_enterprise/model/v20181101/GetDbExportDownloadURLRequest.java new file mode 100644 index 0000000000..5daaab604c --- /dev/null +++ b/aliyun-java-sdk-dms-enterprise/src/main/java/com/aliyuncs/dms_enterprise/model/v20181101/GetDbExportDownloadURLRequest.java @@ -0,0 +1,67 @@ +/* + * 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.dms_enterprise.model.v20181101; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; +import com.aliyuncs.dms_enterprise.Endpoint; + +/** + * @author auto create + * @version + */ +public class GetDbExportDownloadURLRequest extends RpcAcsRequest { + + + private Long tid; + + private Long orderId; + public GetDbExportDownloadURLRequest() { + super("dms-enterprise", "2018-11-01", "GetDbExportDownloadURL", "dms-enterprise"); + 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 Long getTid() { + return this.tid; + } + + public void setTid(Long tid) { + this.tid = tid; + if(tid != null){ + putQueryParameter("Tid", tid.toString()); + } + } + + public Long getOrderId() { + return this.orderId; + } + + public void setOrderId(Long orderId) { + this.orderId = orderId; + if(orderId != null){ + putQueryParameter("OrderId", orderId.toString()); + } + } + + @Override + public Class getResponseClass() { + return GetDbExportDownloadURLResponse.class; + } + +} diff --git a/aliyun-java-sdk-dms-enterprise/src/main/java/com/aliyuncs/dms_enterprise/model/v20181101/GetDbExportDownloadURLResponse.java b/aliyun-java-sdk-dms-enterprise/src/main/java/com/aliyuncs/dms_enterprise/model/v20181101/GetDbExportDownloadURLResponse.java new file mode 100644 index 0000000000..2d915d4fe2 --- /dev/null +++ b/aliyun-java-sdk-dms-enterprise/src/main/java/com/aliyuncs/dms_enterprise/model/v20181101/GetDbExportDownloadURLResponse.java @@ -0,0 +1,114 @@ +/* + * 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.dms_enterprise.model.v20181101; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.dms_enterprise.transform.v20181101.GetDbExportDownloadURLResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class GetDbExportDownloadURLResponse extends AcsResponse { + + private String requestId; + + private String errorCode; + + private String errorMessage; + + private Boolean success; + + private DownloadURLResult downloadURLResult; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + 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 Boolean getSuccess() { + return this.success; + } + + public void setSuccess(Boolean success) { + this.success = success; + } + + public DownloadURLResult getDownloadURLResult() { + return this.downloadURLResult; + } + + public void setDownloadURLResult(DownloadURLResult downloadURLResult) { + this.downloadURLResult = downloadURLResult; + } + + public static class DownloadURLResult { + + private Boolean hasResult; + + private String tipMessage; + + private String uRL; + + public Boolean getHasResult() { + return this.hasResult; + } + + public void setHasResult(Boolean hasResult) { + this.hasResult = hasResult; + } + + public String getTipMessage() { + return this.tipMessage; + } + + public void setTipMessage(String tipMessage) { + this.tipMessage = tipMessage; + } + + public String getURL() { + return this.uRL; + } + + public void setURL(String uRL) { + this.uRL = uRL; + } + } + + @Override + public GetDbExportDownloadURLResponse getInstance(UnmarshallerContext context) { + return GetDbExportDownloadURLResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-dms-enterprise/src/main/java/com/aliyuncs/dms_enterprise/model/v20181101/GetOrderBaseInfoResponse.java b/aliyun-java-sdk-dms-enterprise/src/main/java/com/aliyuncs/dms_enterprise/model/v20181101/GetOrderBaseInfoResponse.java index ebdb4653e8..95c3217ee3 100644 --- a/aliyun-java-sdk-dms-enterprise/src/main/java/com/aliyuncs/dms_enterprise/model/v20181101/GetOrderBaseInfoResponse.java +++ b/aliyun-java-sdk-dms-enterprise/src/main/java/com/aliyuncs/dms_enterprise/model/v20181101/GetOrderBaseInfoResponse.java @@ -99,6 +99,10 @@ public static class OrderBaseInfo { private Long orderId; + private String attachmentKey; + + private String originAttachmentName; + private List relatedUserNickList; private List relatedUserList; @@ -191,6 +195,22 @@ public void setOrderId(Long orderId) { this.orderId = orderId; } + public String getAttachmentKey() { + return this.attachmentKey; + } + + public void setAttachmentKey(String attachmentKey) { + this.attachmentKey = attachmentKey; + } + + public String getOriginAttachmentName() { + return this.originAttachmentName; + } + + public void setOriginAttachmentName(String originAttachmentName) { + this.originAttachmentName = originAttachmentName; + } + public List getRelatedUserNickList() { return this.relatedUserNickList; } diff --git a/aliyun-java-sdk-dms-enterprise/src/main/java/com/aliyuncs/dms_enterprise/transform/v20181101/GetDbExportDownloadURLResponseUnmarshaller.java b/aliyun-java-sdk-dms-enterprise/src/main/java/com/aliyuncs/dms_enterprise/transform/v20181101/GetDbExportDownloadURLResponseUnmarshaller.java new file mode 100644 index 0000000000..88a630173d --- /dev/null +++ b/aliyun-java-sdk-dms-enterprise/src/main/java/com/aliyuncs/dms_enterprise/transform/v20181101/GetDbExportDownloadURLResponseUnmarshaller.java @@ -0,0 +1,39 @@ +/* + * 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.dms_enterprise.transform.v20181101; + +import com.aliyuncs.dms_enterprise.model.v20181101.GetDbExportDownloadURLResponse; +import com.aliyuncs.dms_enterprise.model.v20181101.GetDbExportDownloadURLResponse.DownloadURLResult; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class GetDbExportDownloadURLResponseUnmarshaller { + + public static GetDbExportDownloadURLResponse unmarshall(GetDbExportDownloadURLResponse getDbExportDownloadURLResponse, UnmarshallerContext _ctx) { + + getDbExportDownloadURLResponse.setRequestId(_ctx.stringValue("GetDbExportDownloadURLResponse.RequestId")); + getDbExportDownloadURLResponse.setErrorCode(_ctx.stringValue("GetDbExportDownloadURLResponse.ErrorCode")); + getDbExportDownloadURLResponse.setErrorMessage(_ctx.stringValue("GetDbExportDownloadURLResponse.ErrorMessage")); + getDbExportDownloadURLResponse.setSuccess(_ctx.booleanValue("GetDbExportDownloadURLResponse.Success")); + + DownloadURLResult downloadURLResult = new DownloadURLResult(); + downloadURLResult.setHasResult(_ctx.booleanValue("GetDbExportDownloadURLResponse.DownloadURLResult.HasResult")); + downloadURLResult.setTipMessage(_ctx.stringValue("GetDbExportDownloadURLResponse.DownloadURLResult.TipMessage")); + downloadURLResult.setURL(_ctx.stringValue("GetDbExportDownloadURLResponse.DownloadURLResult.URL")); + getDbExportDownloadURLResponse.setDownloadURLResult(downloadURLResult); + + return getDbExportDownloadURLResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-dms-enterprise/src/main/java/com/aliyuncs/dms_enterprise/transform/v20181101/GetOrderBaseInfoResponseUnmarshaller.java b/aliyun-java-sdk-dms-enterprise/src/main/java/com/aliyuncs/dms_enterprise/transform/v20181101/GetOrderBaseInfoResponseUnmarshaller.java index 6c95740356..79d73b55dc 100644 --- a/aliyun-java-sdk-dms-enterprise/src/main/java/com/aliyuncs/dms_enterprise/transform/v20181101/GetOrderBaseInfoResponseUnmarshaller.java +++ b/aliyun-java-sdk-dms-enterprise/src/main/java/com/aliyuncs/dms_enterprise/transform/v20181101/GetOrderBaseInfoResponseUnmarshaller.java @@ -43,6 +43,8 @@ public static GetOrderBaseInfoResponse unmarshall(GetOrderBaseInfoResponse getOr orderBaseInfo.setStatusDesc(_ctx.stringValue("GetOrderBaseInfoResponse.OrderBaseInfo.StatusDesc")); orderBaseInfo.setPluginType(_ctx.stringValue("GetOrderBaseInfoResponse.OrderBaseInfo.PluginType")); orderBaseInfo.setOrderId(_ctx.longValue("GetOrderBaseInfoResponse.OrderBaseInfo.OrderId")); + orderBaseInfo.setAttachmentKey(_ctx.stringValue("GetOrderBaseInfoResponse.OrderBaseInfo.AttachmentKey")); + orderBaseInfo.setOriginAttachmentName(_ctx.stringValue("GetOrderBaseInfoResponse.OrderBaseInfo.OriginAttachmentName")); List relatedUserNickList = new ArrayList(); for (int i = 0; i < _ctx.lengthValue("GetOrderBaseInfoResponse.OrderBaseInfo.RelatedUserNickList.Length"); i++) {