Skip to content

Commit

Permalink
Change API CreateDataArchiveOrder and GetDataArchiveCount to public.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Jul 10, 2023
1 parent b99305b commit 1c87850
Show file tree
Hide file tree
Showing 8 changed files with 634 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-07-10 Version: 1.52.3
- Change API CreateDataArchiveOrder and GetDataArchiveCount to public.

2023-07-07 Version: 1.52.2
- Add new API CreateDataArchiveOrder.

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.52.2</version>
<version>1.52.3</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,262 @@
/*
* 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 java.util.List;
import com.google.gson.Gson;
import com.google.gson.annotations.SerializedName;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.dms_enterprise.Endpoint;

/**
* @author auto create
* @version
*/
public class CreateDataArchiveOrderRequest extends RpcAcsRequest<CreateDataArchiveOrderResponse> {


private Long tid;

private Long parentId;

private String pluginType;

@SerializedName("param")
private Param param;

@SerializedName("relatedUserList")
private List<String> relatedUserList;

private String comment;
public CreateDataArchiveOrderRequest() {
super("dms-enterprise", "2018-11-01", "CreateDataArchiveOrder", "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 getParentId() {
return this.parentId;
}

public void setParentId(Long parentId) {
this.parentId = parentId;
if(parentId != null){
putQueryParameter("ParentId", parentId.toString());
}
}

public String getPluginType() {
return this.pluginType;
}

public void setPluginType(String pluginType) {
this.pluginType = pluginType;
if(pluginType != null){
putQueryParameter("PluginType", pluginType);
}
}

public Param getParam() {
return this.param;
}

public void setParam(Param param) {
this.param = param;
if (param != null) {
putQueryParameter("Param" , new Gson().toJson(param));
}
}

public List<String> getRelatedUserList() {
return this.relatedUserList;
}

public void setRelatedUserList(List<String> relatedUserList) {
this.relatedUserList = relatedUserList;
if (relatedUserList != null) {
putQueryParameter("RelatedUserList" , new Gson().toJson(relatedUserList));
}
}

public String getComment() {
return this.comment;
}

public void setComment(String comment) {
this.comment = comment;
if(comment != null){
putQueryParameter("Comment", comment);
}
}

public static class Param {

@SerializedName("Variables")
private List<String> variables;

@SerializedName("TargetInstanceId")
private String targetInstanceId;

@SerializedName("TableMapping")
private List<String> tableMapping;

@SerializedName("OrderAfter")
private List<String> orderAfter;

@SerializedName("SourceDatabaseId")
private Long sourceDatabaseId;

@SerializedName("DbSchema")
private String dbSchema;

@SerializedName("RunMethod")
private String runMethod;

@SerializedName("Logic")
private Boolean logic;

@SerializedName("ArchiveMethod")
private String archiveMethod;

@SerializedName("TableIncludes")
private List<TableIncludesItem> tableIncludes;

public List<String> getVariables() {
return this.variables;
}

public void setVariables(List<String> variables) {
this.variables = variables;
}

public String getTargetInstanceId() {
return this.targetInstanceId;
}

public void setTargetInstanceId(String targetInstanceId) {
this.targetInstanceId = targetInstanceId;
}

public List<String> getTableMapping() {
return this.tableMapping;
}

public void setTableMapping(List<String> tableMapping) {
this.tableMapping = tableMapping;
}

public List<String> getOrderAfter() {
return this.orderAfter;
}

public void setOrderAfter(List<String> orderAfter) {
this.orderAfter = orderAfter;
}

public Long getSourceDatabaseId() {
return this.sourceDatabaseId;
}

public void setSourceDatabaseId(Long sourceDatabaseId) {
this.sourceDatabaseId = sourceDatabaseId;
}

public String getDbSchema() {
return this.dbSchema;
}

public void setDbSchema(String dbSchema) {
this.dbSchema = dbSchema;
}

public String getRunMethod() {
return this.runMethod;
}

public void setRunMethod(String runMethod) {
this.runMethod = runMethod;
}

public Boolean getLogic() {
return this.logic;
}

public void setLogic(Boolean logic) {
this.logic = logic;
}

public String getArchiveMethod() {
return this.archiveMethod;
}

public void setArchiveMethod(String archiveMethod) {
this.archiveMethod = archiveMethod;
}

public List<TableIncludesItem> getTableIncludes() {
return this.tableIncludes;
}

public void setTableIncludes(List<TableIncludesItem> tableIncludes) {
this.tableIncludes = tableIncludes;
}

public static class TableIncludesItem {

@SerializedName("TableWhere")
private String tableWhere;

@SerializedName("TableName")
private String tableName;

public String getTableWhere() {
return this.tableWhere;
}

public void setTableWhere(String tableWhere) {
this.tableWhere = tableWhere;
}

public String getTableName() {
return this.tableName;
}

public void setTableName(String tableName) {
this.tableName = tableName;
}
}
}

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

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
/*
* 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 java.util.List;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.dms_enterprise.transform.v20181101.CreateDataArchiveOrderResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;

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

private String requestId;

private Boolean success;

private String errorMessage;

private String errorCode;

private List<Long> createOrderResult;

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 getErrorMessage() {
return this.errorMessage;
}

public void setErrorMessage(String errorMessage) {
this.errorMessage = errorMessage;
}

public String getErrorCode() {
return this.errorCode;
}

public void setErrorCode(String errorCode) {
this.errorCode = errorCode;
}

public List<Long> getCreateOrderResult() {
return this.createOrderResult;
}

public void setCreateOrderResult(List<Long> createOrderResult) {
this.createOrderResult = createOrderResult;
}

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

@Override
public boolean checkShowJsonItemName() {
return false;
}
}
Loading

0 comments on commit 1c87850

Please sign in to comment.