-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support GetOrderBaseInfo to response AttachmentKey and OriginAttachme…
…ntName information.
- Loading branch information
Showing
7 changed files
with
246 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 67 additions & 0 deletions
67
.../main/java/com/aliyuncs/dms_enterprise/model/v20181101/GetDbExportDownloadURLRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
|
||
} |
114 changes: 114 additions & 0 deletions
114
...main/java/com/aliyuncs/dms_enterprise/model/v20181101/GetDbExportDownloadURLResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
...iyuncs/dms_enterprise/transform/v20181101/GetDbExportDownloadURLResponseUnmarshaller.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters