Skip to content

Commit

Permalink
Support GetOrderBaseInfo to response AttachmentKey and OriginAttachme…
Browse files Browse the repository at this point in the history
…ntName information.
  • Loading branch information
sdk-team committed Oct 12, 2023
1 parent 534a4b6 commit 9654885
Show file tree
Hide file tree
Showing 7 changed files with 246 additions and 1 deletion.
3 changes: 3 additions & 0 deletions aliyun-java-sdk-dms-enterprise/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
2 changes: 1 addition & 1 deletion aliyun-java-sdk-dms-enterprise/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-dms-enterprise</artifactId>
<packaging>jar</packaging>
<version>1.53.5</version>
<version>1.53.6</version>
<name>aliyun-java-sdk-dms-enterprise</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,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<GetDbExportDownloadURLResponse> {


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<GetDbExportDownloadURLResponse> getResponseClass() {
return GetDbExportDownloadURLResponse.class;
}

}
Original file line number Diff line number Diff line change
@@ -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);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ public static class OrderBaseInfo {

private Long orderId;

private String attachmentKey;

private String originAttachmentName;

private List<String> relatedUserNickList;

private List<String> relatedUserList;
Expand Down Expand Up @@ -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<String> getRelatedUserNickList() {
return this.relatedUserNickList;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> relatedUserNickList = new ArrayList<String>();
for (int i = 0; i < _ctx.lengthValue("GetOrderBaseInfoResponse.OrderBaseInfo.RelatedUserNickList.Length"); i++) {
Expand Down

0 comments on commit 9654885

Please sign in to comment.