From 01fbf358979ee3454249fa7fb9c68bb75cef937f Mon Sep 17 00:00:00 2001 From: sdk-team Date: Wed, 5 Jun 2024 06:35:37 +0000 Subject: [PATCH] Support dms dg. --- aliyun-java-sdk-dms-dg/ChangeLog.txt | 3 + aliyun-java-sdk-dms-dg/pom.xml | 119 ++++++++ .../v20230914/AddDatabaseListRequest.java | 62 ++++ .../v20230914/AddDatabaseListResponse.java | 86 ++++++ .../model/v20230914/AddDatabaseRequest.java | 155 ++++++++++ .../model/v20230914/AddDatabaseResponse.java | 269 +++++++++++++++++ .../v20230914/CheckDGEnabledRequest.java | 38 +++ .../v20230914/CheckDGEnabledResponse.java | 81 +++++ .../v20230914/ConnectDatabaseRequest.java | 129 ++++++++ .../v20230914/ConnectDatabaseResponse.java | 81 +++++ .../model/v20230914/CreateGatewayRequest.java | 64 ++++ .../v20230914/CreateGatewayResponse.java | 81 +++++ .../CreateGatewayVerifyCodeRequest.java | 51 ++++ .../CreateGatewayVerifyCodeResponse.java | 81 +++++ .../v20230914/DeleteDatabaseRequest.java | 51 ++++ .../v20230914/DeleteDatabaseResponse.java | 81 +++++ .../DeleteGatewayInstanceRequest.java | 64 ++++ .../DeleteGatewayInstanceResponse.java | 86 ++++++ .../model/v20230914/DeleteGatewayRequest.java | 51 ++++ .../v20230914/DeleteGatewayResponse.java | 81 +++++ .../v20230914/DescribeRegionsRequest.java | 36 +++ .../v20230914/DescribeRegionsResponse.java | 115 +++++++ .../DownloadGatewayProgramRequest.java | 64 ++++ .../DownloadGatewayProgramResponse.java | 81 +++++ .../v20230914/FindUserGatewayByIdRequest.java | 51 ++++ .../FindUserGatewayByIdResponse.java | 194 ++++++++++++ .../v20230914/GetUserDatabasesRequest.java | 142 +++++++++ .../v20230914/GetUserDatabasesResponse.java | 285 ++++++++++++++++++ .../GetUserGatewayInstancesRequest.java | 51 ++++ .../GetUserGatewayInstancesResponse.java | 210 +++++++++++++ .../v20230914/GetUserGatewaysRequest.java | 75 +++++ .../v20230914/GetUserGatewaysResponse.java | 205 +++++++++++++ .../ListDatabaseAccessPointRequest.java | 142 +++++++++ .../ListDatabaseAccessPointResponse.java | 190 ++++++++++++ .../v20230914/ModifyDatabaseRequest.java | 142 +++++++++ .../v20230914/ModifyDatabaseResponse.java | 81 +++++ .../model/v20230914/ModifyGatewayRequest.java | 77 +++++ .../v20230914/ModifyGatewayResponse.java | 81 +++++ .../model/v20230914/RetryDatabaseRequest.java | 153 ++++++++++ .../v20230914/RetryDatabaseResponse.java | 86 ++++++ .../model/v20230914/StopGatewayRequest.java | 64 ++++ .../model/v20230914/StopGatewayResponse.java | 81 +++++ .../AddDatabaseListResponseUnmarshaller.java | 33 ++ .../AddDatabaseResponseUnmarshaller.java | 54 ++++ .../CheckDGEnabledResponseUnmarshaller.java | 33 ++ .../ConnectDatabaseResponseUnmarshaller.java | 33 ++ .../CreateGatewayResponseUnmarshaller.java | 33 ++ ...GatewayVerifyCodeResponseUnmarshaller.java | 33 ++ .../DeleteDatabaseResponseUnmarshaller.java | 33 ++ ...teGatewayInstanceResponseUnmarshaller.java | 33 ++ .../DeleteGatewayResponseUnmarshaller.java | 33 ++ .../DescribeRegionsResponseUnmarshaller.java | 47 +++ ...oadGatewayProgramResponseUnmarshaller.java | 33 ++ ...ndUserGatewayByIdResponseUnmarshaller.java | 47 +++ .../GetUserDatabasesResponseUnmarshaller.java | 64 ++++ ...rGatewayInstancesResponseUnmarshaller.java | 56 ++++ .../GetUserGatewaysResponseUnmarshaller.java | 56 ++++ ...tabaseAccessPointResponseUnmarshaller.java | 54 ++++ .../ModifyDatabaseResponseUnmarshaller.java | 33 ++ .../ModifyGatewayResponseUnmarshaller.java | 33 ++ .../RetryDatabaseResponseUnmarshaller.java | 33 ++ .../StopGatewayResponseUnmarshaller.java | 33 ++ 62 files changed, 5127 insertions(+) create mode 100644 aliyun-java-sdk-dms-dg/ChangeLog.txt create mode 100644 aliyun-java-sdk-dms-dg/pom.xml create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/AddDatabaseListRequest.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/AddDatabaseListResponse.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/AddDatabaseRequest.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/AddDatabaseResponse.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/CheckDGEnabledRequest.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/CheckDGEnabledResponse.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/ConnectDatabaseRequest.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/ConnectDatabaseResponse.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/CreateGatewayRequest.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/CreateGatewayResponse.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/CreateGatewayVerifyCodeRequest.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/CreateGatewayVerifyCodeResponse.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/DeleteDatabaseRequest.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/DeleteDatabaseResponse.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/DeleteGatewayInstanceRequest.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/DeleteGatewayInstanceResponse.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/DeleteGatewayRequest.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/DeleteGatewayResponse.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/DescribeRegionsRequest.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/DescribeRegionsResponse.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/DownloadGatewayProgramRequest.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/DownloadGatewayProgramResponse.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/FindUserGatewayByIdRequest.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/FindUserGatewayByIdResponse.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/GetUserDatabasesRequest.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/GetUserDatabasesResponse.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/GetUserGatewayInstancesRequest.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/GetUserGatewayInstancesResponse.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/GetUserGatewaysRequest.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/GetUserGatewaysResponse.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/ListDatabaseAccessPointRequest.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/ListDatabaseAccessPointResponse.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/ModifyDatabaseRequest.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/ModifyDatabaseResponse.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/ModifyGatewayRequest.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/ModifyGatewayResponse.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/RetryDatabaseRequest.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/RetryDatabaseResponse.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/StopGatewayRequest.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/StopGatewayResponse.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/AddDatabaseListResponseUnmarshaller.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/AddDatabaseResponseUnmarshaller.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/CheckDGEnabledResponseUnmarshaller.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/ConnectDatabaseResponseUnmarshaller.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/CreateGatewayResponseUnmarshaller.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/CreateGatewayVerifyCodeResponseUnmarshaller.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/DeleteDatabaseResponseUnmarshaller.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/DeleteGatewayInstanceResponseUnmarshaller.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/DeleteGatewayResponseUnmarshaller.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/DescribeRegionsResponseUnmarshaller.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/DownloadGatewayProgramResponseUnmarshaller.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/FindUserGatewayByIdResponseUnmarshaller.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/GetUserDatabasesResponseUnmarshaller.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/GetUserGatewayInstancesResponseUnmarshaller.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/GetUserGatewaysResponseUnmarshaller.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/ListDatabaseAccessPointResponseUnmarshaller.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/ModifyDatabaseResponseUnmarshaller.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/ModifyGatewayResponseUnmarshaller.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/RetryDatabaseResponseUnmarshaller.java create mode 100644 aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/StopGatewayResponseUnmarshaller.java diff --git a/aliyun-java-sdk-dms-dg/ChangeLog.txt b/aliyun-java-sdk-dms-dg/ChangeLog.txt new file mode 100644 index 0000000000..2a02bcbc5c --- /dev/null +++ b/aliyun-java-sdk-dms-dg/ChangeLog.txt @@ -0,0 +1,3 @@ +2024-06-05 Version: 1.0.0 +- Support dms dg. + diff --git a/aliyun-java-sdk-dms-dg/pom.xml b/aliyun-java-sdk-dms-dg/pom.xml new file mode 100644 index 0000000000..bc59f80c8e --- /dev/null +++ b/aliyun-java-sdk-dms-dg/pom.xml @@ -0,0 +1,119 @@ + + + 4.0.0 + com.aliyun + aliyun-java-sdk-dms-dg + jar + 1.0.0 + aliyun-java-sdk-dms-dg + http://www.aliyun.com + Aliyun Open API SDK for Java +Copyright (C) Alibaba Cloud Computing +All rights reserved. +版权所有 (C)阿里云计算有限公司 +http://www.aliyun.com + + + sonatype-nexus-snapshots + https://s01.oss.sonatype.org/content/repositories/snapshots + + + sonatype-nexus-staging + https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ + + + + + com.aliyun + aliyun-java-sdk-core + true + [4.4.9,5.0.0) + + + com.google.code.gson + gson + 2.8.9 + + + + + The Apache License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + + + + scm:git:git://github.com/aliyun/aliyun-openapi-java-sdk.git + scm:git:git@github.com:aliyun/aliyun-openapi-java-sdk.git + https://github.com/aliyun/aliyun-openapi-java-sdk + + + + aliyunproducts + Aliyun SDK + aliyunsdk@aliyun.com + + + + + + maven-compiler-plugin + 2.3.2 + + 1.6 + 1.6 + UTF-8 + + + + org.apache.maven.plugins + maven-jar-plugin + 2.3.2 + + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.10 + + -Dfile.encoding=UTF-8 + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.1.0 + + UTF-8 + none + + + + org.apache.maven.plugins + maven-gpg-plugin + 1.5 + + + sign-artifacts + verify + + sign + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.3 + true + + sonatype-nexus-staging + https://s01.oss.sonatype.org/ + true + + + + + \ No newline at end of file diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/AddDatabaseListRequest.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/AddDatabaseListRequest.java new file mode 100644 index 0000000000..d97efb4d8c --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/AddDatabaseListRequest.java @@ -0,0 +1,62 @@ +/* + * 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_dg.model.v20230914; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class AddDatabaseListRequest extends RpcAcsRequest { + + + private String databaseString; + + private String clientToken; + public AddDatabaseListRequest() { + super("dms-dg", "2023-09-14", "AddDatabaseList"); + setMethod(MethodType.POST); + } + + public String getDatabaseString() { + return this.databaseString; + } + + public void setDatabaseString(String databaseString) { + this.databaseString = databaseString; + if(databaseString != null){ + putBodyParameter("DatabaseString", databaseString); + } + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putBodyParameter("ClientToken", clientToken); + } + } + + @Override + public Class getResponseClass() { + return AddDatabaseListResponse.class; + } + +} diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/AddDatabaseListResponse.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/AddDatabaseListResponse.java new file mode 100644 index 0000000000..d53af3a268 --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/AddDatabaseListResponse.java @@ -0,0 +1,86 @@ +/* + * 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_dg.model.v20230914; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.dms_dg.transform.v20230914.AddDatabaseListResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class AddDatabaseListResponse extends AcsResponse { + + private String code; + + private String data; + + private String errorMsg; + + private String requestId; + + private Boolean success; + + public String getCode() { + return this.code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getData() { + return this.data; + } + + public void setData(String data) { + this.data = data; + } + + public String getErrorMsg() { + return this.errorMsg; + } + + public void setErrorMsg(String errorMsg) { + this.errorMsg = errorMsg; + } + + 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; + } + + @Override + public AddDatabaseListResponse getInstance(UnmarshallerContext context) { + return AddDatabaseListResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/AddDatabaseRequest.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/AddDatabaseRequest.java new file mode 100644 index 0000000000..e6d0b71f9d --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/AddDatabaseRequest.java @@ -0,0 +1,155 @@ +/* + * 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_dg.model.v20230914; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.ProtocolType; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class AddDatabaseRequest extends RpcAcsRequest { + + + private String clientToken; + + private String host; + + private String dbUserName; + + private String dbDescription; + + private String gatewayId; + + private String dbName; + + private Integer port; + + private String dbPassword; + + private String dbType; + public AddDatabaseRequest() { + super("dms-dg", "2023-09-14", "AddDatabase"); + setProtocol(ProtocolType.HTTPS); + setMethod(MethodType.POST); + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putBodyParameter("ClientToken", clientToken); + } + } + + public String getHost() { + return this.host; + } + + public void setHost(String host) { + this.host = host; + if(host != null){ + putBodyParameter("Host", host); + } + } + + public String getDbUserName() { + return this.dbUserName; + } + + public void setDbUserName(String dbUserName) { + this.dbUserName = dbUserName; + if(dbUserName != null){ + putBodyParameter("DbUserName", dbUserName); + } + } + + public String getDbDescription() { + return this.dbDescription; + } + + public void setDbDescription(String dbDescription) { + this.dbDescription = dbDescription; + if(dbDescription != null){ + putBodyParameter("DbDescription", dbDescription); + } + } + + public String getGatewayId() { + return this.gatewayId; + } + + public void setGatewayId(String gatewayId) { + this.gatewayId = gatewayId; + if(gatewayId != null){ + putBodyParameter("GatewayId", gatewayId); + } + } + + public String getDbName() { + return this.dbName; + } + + public void setDbName(String dbName) { + this.dbName = dbName; + if(dbName != null){ + putBodyParameter("DbName", dbName); + } + } + + public Integer getPort() { + return this.port; + } + + public void setPort(Integer port) { + this.port = port; + if(port != null){ + putBodyParameter("Port", port.toString()); + } + } + + public String getDbPassword() { + return this.dbPassword; + } + + public void setDbPassword(String dbPassword) { + this.dbPassword = dbPassword; + if(dbPassword != null){ + putBodyParameter("DbPassword", dbPassword); + } + } + + public String getDbType() { + return this.dbType; + } + + public void setDbType(String dbType) { + this.dbType = dbType; + if(dbType != null){ + putBodyParameter("DbType", dbType); + } + } + + @Override + public Class getResponseClass() { + return AddDatabaseResponse.class; + } + +} diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/AddDatabaseResponse.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/AddDatabaseResponse.java new file mode 100644 index 0000000000..b5c335518a --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/AddDatabaseResponse.java @@ -0,0 +1,269 @@ +/* + * 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_dg.model.v20230914; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.dms_dg.transform.v20230914.AddDatabaseResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class AddDatabaseResponse extends AcsResponse { + + private String code; + + private String errorMsg; + + private String requestId; + + private Boolean success; + + private DbInstance dbInstance; + + public String getCode() { + return this.code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getErrorMsg() { + return this.errorMsg; + } + + public void setErrorMsg(String errorMsg) { + this.errorMsg = errorMsg; + } + + 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 DbInstance getDbInstance() { + return this.dbInstance; + } + + public void setDbInstance(DbInstance dbInstance) { + this.dbInstance = dbInstance; + } + + public static class DbInstance { + + private Integer port; + + private String host; + + private String gatewayId; + + private String dbType; + + private String regionId; + + private String connectHost; + + private Integer connectPort; + + private String serviceType; + + private String networkType; + + private String nodeId; + + private String instanceStatus; + + private String dbDescription; + + private String instanceId; + + private String gatewayName; + + private String userId; + + private String parentId; + + private String vpcId; + + private String vpcInstanceId; + + public Integer getPort() { + return this.port; + } + + public void setPort(Integer port) { + this.port = port; + } + + public String getHost() { + return this.host; + } + + public void setHost(String host) { + this.host = host; + } + + public String getGatewayId() { + return this.gatewayId; + } + + public void setGatewayId(String gatewayId) { + this.gatewayId = gatewayId; + } + + public String getDbType() { + return this.dbType; + } + + public void setDbType(String dbType) { + this.dbType = dbType; + } + + public String getRegionId() { + return this.regionId; + } + + public void setRegionId(String regionId) { + this.regionId = regionId; + } + + public String getConnectHost() { + return this.connectHost; + } + + public void setConnectHost(String connectHost) { + this.connectHost = connectHost; + } + + public Integer getConnectPort() { + return this.connectPort; + } + + public void setConnectPort(Integer connectPort) { + this.connectPort = connectPort; + } + + public String getServiceType() { + return this.serviceType; + } + + public void setServiceType(String serviceType) { + this.serviceType = serviceType; + } + + public String getNetworkType() { + return this.networkType; + } + + public void setNetworkType(String networkType) { + this.networkType = networkType; + } + + public String getNodeId() { + return this.nodeId; + } + + public void setNodeId(String nodeId) { + this.nodeId = nodeId; + } + + public String getInstanceStatus() { + return this.instanceStatus; + } + + public void setInstanceStatus(String instanceStatus) { + this.instanceStatus = instanceStatus; + } + + public String getDbDescription() { + return this.dbDescription; + } + + public void setDbDescription(String dbDescription) { + this.dbDescription = dbDescription; + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public String getGatewayName() { + return this.gatewayName; + } + + public void setGatewayName(String gatewayName) { + this.gatewayName = gatewayName; + } + + public String getUserId() { + return this.userId; + } + + public void setUserId(String userId) { + this.userId = userId; + } + + public String getParentId() { + return this.parentId; + } + + public void setParentId(String parentId) { + this.parentId = parentId; + } + + public String getVpcId() { + return this.vpcId; + } + + public void setVpcId(String vpcId) { + this.vpcId = vpcId; + } + + public String getVpcInstanceId() { + return this.vpcInstanceId; + } + + public void setVpcInstanceId(String vpcInstanceId) { + this.vpcInstanceId = vpcInstanceId; + } + } + + @Override + public AddDatabaseResponse getInstance(UnmarshallerContext context) { + return AddDatabaseResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/CheckDGEnabledRequest.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/CheckDGEnabledRequest.java new file mode 100644 index 0000000000..96b674d4fb --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/CheckDGEnabledRequest.java @@ -0,0 +1,38 @@ +/* + * 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_dg.model.v20230914; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.ProtocolType; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class CheckDGEnabledRequest extends RpcAcsRequest { + + public CheckDGEnabledRequest() { + super("dms-dg", "2023-09-14", "CheckDGEnabled"); + setProtocol(ProtocolType.HTTPS); + setMethod(MethodType.POST); + } + + @Override + public Class getResponseClass() { + return CheckDGEnabledResponse.class; + } + +} diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/CheckDGEnabledResponse.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/CheckDGEnabledResponse.java new file mode 100644 index 0000000000..ff1aceac62 --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/CheckDGEnabledResponse.java @@ -0,0 +1,81 @@ +/* + * 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_dg.model.v20230914; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.dms_dg.transform.v20230914.CheckDGEnabledResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class CheckDGEnabledResponse extends AcsResponse { + + private String code; + + private String data; + + private String errorMsg; + + private String requestId; + + private Boolean success; + + public String getCode() { + return this.code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getData() { + return this.data; + } + + public void setData(String data) { + this.data = data; + } + + public String getErrorMsg() { + return this.errorMsg; + } + + public void setErrorMsg(String errorMsg) { + this.errorMsg = errorMsg; + } + + 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; + } + + @Override + public CheckDGEnabledResponse getInstance(UnmarshallerContext context) { + return CheckDGEnabledResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/ConnectDatabaseRequest.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/ConnectDatabaseRequest.java new file mode 100644 index 0000000000..ea9e31405e --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/ConnectDatabaseRequest.java @@ -0,0 +1,129 @@ +/* + * 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_dg.model.v20230914; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.ProtocolType; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class ConnectDatabaseRequest extends RpcAcsRequest { + + + private String dbName; + + private Integer port; + + private String dbPassword; + + private String host; + + private String dbType; + + private String dbUserName; + + private String gatewayId; + public ConnectDatabaseRequest() { + super("dms-dg", "2023-09-14", "ConnectDatabase"); + setProtocol(ProtocolType.HTTPS); + setMethod(MethodType.POST); + } + + public String getDbName() { + return this.dbName; + } + + public void setDbName(String dbName) { + this.dbName = dbName; + if(dbName != null){ + putBodyParameter("DbName", dbName); + } + } + + public Integer getPort() { + return this.port; + } + + public void setPort(Integer port) { + this.port = port; + if(port != null){ + putBodyParameter("Port", port.toString()); + } + } + + public String getDbPassword() { + return this.dbPassword; + } + + public void setDbPassword(String dbPassword) { + this.dbPassword = dbPassword; + if(dbPassword != null){ + putBodyParameter("DbPassword", dbPassword); + } + } + + public String getHost() { + return this.host; + } + + public void setHost(String host) { + this.host = host; + if(host != null){ + putBodyParameter("Host", host); + } + } + + public String getDbType() { + return this.dbType; + } + + public void setDbType(String dbType) { + this.dbType = dbType; + if(dbType != null){ + putBodyParameter("DbType", dbType); + } + } + + public String getDbUserName() { + return this.dbUserName; + } + + public void setDbUserName(String dbUserName) { + this.dbUserName = dbUserName; + if(dbUserName != null){ + putBodyParameter("DbUserName", dbUserName); + } + } + + public String getGatewayId() { + return this.gatewayId; + } + + public void setGatewayId(String gatewayId) { + this.gatewayId = gatewayId; + if(gatewayId != null){ + putBodyParameter("GatewayId", gatewayId); + } + } + + @Override + public Class getResponseClass() { + return ConnectDatabaseResponse.class; + } + +} diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/ConnectDatabaseResponse.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/ConnectDatabaseResponse.java new file mode 100644 index 0000000000..1dd8300e33 --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/ConnectDatabaseResponse.java @@ -0,0 +1,81 @@ +/* + * 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_dg.model.v20230914; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.dms_dg.transform.v20230914.ConnectDatabaseResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ConnectDatabaseResponse extends AcsResponse { + + private String code; + + private String data; + + private String errorMsg; + + private String requestId; + + private Boolean success; + + public String getCode() { + return this.code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getData() { + return this.data; + } + + public void setData(String data) { + this.data = data; + } + + public String getErrorMsg() { + return this.errorMsg; + } + + public void setErrorMsg(String errorMsg) { + this.errorMsg = errorMsg; + } + + 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; + } + + @Override + public ConnectDatabaseResponse getInstance(UnmarshallerContext context) { + return ConnectDatabaseResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/CreateGatewayRequest.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/CreateGatewayRequest.java new file mode 100644 index 0000000000..51c55017cf --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/CreateGatewayRequest.java @@ -0,0 +1,64 @@ +/* + * 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_dg.model.v20230914; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.ProtocolType; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class CreateGatewayRequest extends RpcAcsRequest { + + + private String gatewayDesc; + + private String gatewayName; + public CreateGatewayRequest() { + super("dms-dg", "2023-09-14", "CreateGateway"); + setProtocol(ProtocolType.HTTPS); + setMethod(MethodType.POST); + } + + public String getGatewayDesc() { + return this.gatewayDesc; + } + + public void setGatewayDesc(String gatewayDesc) { + this.gatewayDesc = gatewayDesc; + if(gatewayDesc != null){ + putBodyParameter("GatewayDesc", gatewayDesc); + } + } + + public String getGatewayName() { + return this.gatewayName; + } + + public void setGatewayName(String gatewayName) { + this.gatewayName = gatewayName; + if(gatewayName != null){ + putBodyParameter("GatewayName", gatewayName); + } + } + + @Override + public Class getResponseClass() { + return CreateGatewayResponse.class; + } + +} diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/CreateGatewayResponse.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/CreateGatewayResponse.java new file mode 100644 index 0000000000..bd923fa949 --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/CreateGatewayResponse.java @@ -0,0 +1,81 @@ +/* + * 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_dg.model.v20230914; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.dms_dg.transform.v20230914.CreateGatewayResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class CreateGatewayResponse extends AcsResponse { + + private String code; + + private String data; + + private String errorMsg; + + private String requestId; + + private Boolean success; + + public String getCode() { + return this.code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getData() { + return this.data; + } + + public void setData(String data) { + this.data = data; + } + + public String getErrorMsg() { + return this.errorMsg; + } + + public void setErrorMsg(String errorMsg) { + this.errorMsg = errorMsg; + } + + 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; + } + + @Override + public CreateGatewayResponse getInstance(UnmarshallerContext context) { + return CreateGatewayResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/CreateGatewayVerifyCodeRequest.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/CreateGatewayVerifyCodeRequest.java new file mode 100644 index 0000000000..821b20e029 --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/CreateGatewayVerifyCodeRequest.java @@ -0,0 +1,51 @@ +/* + * 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_dg.model.v20230914; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.ProtocolType; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class CreateGatewayVerifyCodeRequest extends RpcAcsRequest { + + + private String gatewayId; + public CreateGatewayVerifyCodeRequest() { + super("dms-dg", "2023-09-14", "CreateGatewayVerifyCode"); + setProtocol(ProtocolType.HTTPS); + setMethod(MethodType.POST); + } + + public String getGatewayId() { + return this.gatewayId; + } + + public void setGatewayId(String gatewayId) { + this.gatewayId = gatewayId; + if(gatewayId != null){ + putBodyParameter("GatewayId", gatewayId); + } + } + + @Override + public Class getResponseClass() { + return CreateGatewayVerifyCodeResponse.class; + } + +} diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/CreateGatewayVerifyCodeResponse.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/CreateGatewayVerifyCodeResponse.java new file mode 100644 index 0000000000..734bf5bf4f --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/CreateGatewayVerifyCodeResponse.java @@ -0,0 +1,81 @@ +/* + * 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_dg.model.v20230914; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.dms_dg.transform.v20230914.CreateGatewayVerifyCodeResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class CreateGatewayVerifyCodeResponse extends AcsResponse { + + private String code; + + private String data; + + private String errorMsg; + + private String requestId; + + private Boolean success; + + public String getCode() { + return this.code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getData() { + return this.data; + } + + public void setData(String data) { + this.data = data; + } + + public String getErrorMsg() { + return this.errorMsg; + } + + public void setErrorMsg(String errorMsg) { + this.errorMsg = errorMsg; + } + + 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; + } + + @Override + public CreateGatewayVerifyCodeResponse getInstance(UnmarshallerContext context) { + return CreateGatewayVerifyCodeResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/DeleteDatabaseRequest.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/DeleteDatabaseRequest.java new file mode 100644 index 0000000000..735ccee792 --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/DeleteDatabaseRequest.java @@ -0,0 +1,51 @@ +/* + * 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_dg.model.v20230914; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.ProtocolType; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class DeleteDatabaseRequest extends RpcAcsRequest { + + + private String instanceId; + public DeleteDatabaseRequest() { + super("dms-dg", "2023-09-14", "DeleteDatabase"); + setProtocol(ProtocolType.HTTPS); + setMethod(MethodType.POST); + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putBodyParameter("InstanceId", instanceId); + } + } + + @Override + public Class getResponseClass() { + return DeleteDatabaseResponse.class; + } + +} diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/DeleteDatabaseResponse.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/DeleteDatabaseResponse.java new file mode 100644 index 0000000000..8ee496be7c --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/DeleteDatabaseResponse.java @@ -0,0 +1,81 @@ +/* + * 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_dg.model.v20230914; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.dms_dg.transform.v20230914.DeleteDatabaseResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DeleteDatabaseResponse extends AcsResponse { + + private String code; + + private String data; + + private String errorMsg; + + private String requestId; + + private Boolean success; + + public String getCode() { + return this.code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getData() { + return this.data; + } + + public void setData(String data) { + this.data = data; + } + + public String getErrorMsg() { + return this.errorMsg; + } + + public void setErrorMsg(String errorMsg) { + this.errorMsg = errorMsg; + } + + 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; + } + + @Override + public DeleteDatabaseResponse getInstance(UnmarshallerContext context) { + return DeleteDatabaseResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/DeleteGatewayInstanceRequest.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/DeleteGatewayInstanceRequest.java new file mode 100644 index 0000000000..400c9168d1 --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/DeleteGatewayInstanceRequest.java @@ -0,0 +1,64 @@ +/* + * 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_dg.model.v20230914; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.ProtocolType; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class DeleteGatewayInstanceRequest extends RpcAcsRequest { + + + private String gatewayInstanceId; + + private String gatewayId; + public DeleteGatewayInstanceRequest() { + super("dms-dg", "2023-09-14", "DeleteGatewayInstance"); + setProtocol(ProtocolType.HTTPS); + setMethod(MethodType.POST); + } + + public String getGatewayInstanceId() { + return this.gatewayInstanceId; + } + + public void setGatewayInstanceId(String gatewayInstanceId) { + this.gatewayInstanceId = gatewayInstanceId; + if(gatewayInstanceId != null){ + putBodyParameter("GatewayInstanceId", gatewayInstanceId); + } + } + + public String getGatewayId() { + return this.gatewayId; + } + + public void setGatewayId(String gatewayId) { + this.gatewayId = gatewayId; + if(gatewayId != null){ + putBodyParameter("GatewayId", gatewayId); + } + } + + @Override + public Class getResponseClass() { + return DeleteGatewayInstanceResponse.class; + } + +} diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/DeleteGatewayInstanceResponse.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/DeleteGatewayInstanceResponse.java new file mode 100644 index 0000000000..a18b97a07e --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/DeleteGatewayInstanceResponse.java @@ -0,0 +1,86 @@ +/* + * 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_dg.model.v20230914; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.dms_dg.transform.v20230914.DeleteGatewayInstanceResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DeleteGatewayInstanceResponse extends AcsResponse { + + private String code; + + private String data; + + private String errorMsg; + + private String requestId; + + private Boolean success; + + public String getCode() { + return this.code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getData() { + return this.data; + } + + public void setData(String data) { + this.data = data; + } + + public String getErrorMsg() { + return this.errorMsg; + } + + public void setErrorMsg(String errorMsg) { + this.errorMsg = errorMsg; + } + + 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; + } + + @Override + public DeleteGatewayInstanceResponse getInstance(UnmarshallerContext context) { + return DeleteGatewayInstanceResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/DeleteGatewayRequest.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/DeleteGatewayRequest.java new file mode 100644 index 0000000000..a39e40c614 --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/DeleteGatewayRequest.java @@ -0,0 +1,51 @@ +/* + * 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_dg.model.v20230914; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.ProtocolType; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class DeleteGatewayRequest extends RpcAcsRequest { + + + private String gatewayId; + public DeleteGatewayRequest() { + super("dms-dg", "2023-09-14", "DeleteGateway"); + setProtocol(ProtocolType.HTTPS); + setMethod(MethodType.POST); + } + + public String getGatewayId() { + return this.gatewayId; + } + + public void setGatewayId(String gatewayId) { + this.gatewayId = gatewayId; + if(gatewayId != null){ + putBodyParameter("GatewayId", gatewayId); + } + } + + @Override + public Class getResponseClass() { + return DeleteGatewayResponse.class; + } + +} diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/DeleteGatewayResponse.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/DeleteGatewayResponse.java new file mode 100644 index 0000000000..8fb890b4d0 --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/DeleteGatewayResponse.java @@ -0,0 +1,81 @@ +/* + * 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_dg.model.v20230914; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.dms_dg.transform.v20230914.DeleteGatewayResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DeleteGatewayResponse extends AcsResponse { + + private String code; + + private String data; + + private String errorMsg; + + private String requestId; + + private Boolean success; + + public String getCode() { + return this.code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getData() { + return this.data; + } + + public void setData(String data) { + this.data = data; + } + + public String getErrorMsg() { + return this.errorMsg; + } + + public void setErrorMsg(String errorMsg) { + this.errorMsg = errorMsg; + } + + 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; + } + + @Override + public DeleteGatewayResponse getInstance(UnmarshallerContext context) { + return DeleteGatewayResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/DescribeRegionsRequest.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/DescribeRegionsRequest.java new file mode 100644 index 0000000000..9dc226ee36 --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/DescribeRegionsRequest.java @@ -0,0 +1,36 @@ +/* + * 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_dg.model.v20230914; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class DescribeRegionsRequest extends RpcAcsRequest { + + public DescribeRegionsRequest() { + super("dms-dg", "2023-09-14", "DescribeRegions"); + setMethod(MethodType.POST); + } + + @Override + public Class getResponseClass() { + return DescribeRegionsResponse.class; + } + +} diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/DescribeRegionsResponse.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/DescribeRegionsResponse.java new file mode 100644 index 0000000000..8d9b8a4ca2 --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/DescribeRegionsResponse.java @@ -0,0 +1,115 @@ +/* + * 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_dg.model.v20230914; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.dms_dg.transform.v20230914.DescribeRegionsResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DescribeRegionsResponse extends AcsResponse { + + private String code; + + private String errorMsg; + + private String requestId; + + private Boolean success; + + private List regions; + + public String getCode() { + return this.code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getErrorMsg() { + return this.errorMsg; + } + + public void setErrorMsg(String errorMsg) { + this.errorMsg = errorMsg; + } + + 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 List getRegions() { + return this.regions; + } + + public void setRegions(List regions) { + this.regions = regions; + } + + public static class Region { + + private String regionEndpoint; + + private String localName; + + private String regionId; + + public String getRegionEndpoint() { + return this.regionEndpoint; + } + + public void setRegionEndpoint(String regionEndpoint) { + this.regionEndpoint = regionEndpoint; + } + + public String getLocalName() { + return this.localName; + } + + public void setLocalName(String localName) { + this.localName = localName; + } + + public String getRegionId() { + return this.regionId; + } + + public void setRegionId(String regionId) { + this.regionId = regionId; + } + } + + @Override + public DescribeRegionsResponse getInstance(UnmarshallerContext context) { + return DescribeRegionsResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/DownloadGatewayProgramRequest.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/DownloadGatewayProgramRequest.java new file mode 100644 index 0000000000..386c323d43 --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/DownloadGatewayProgramRequest.java @@ -0,0 +1,64 @@ +/* + * 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_dg.model.v20230914; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.ProtocolType; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class DownloadGatewayProgramRequest extends RpcAcsRequest { + + + private String userOS; + + private String dgVersion; + public DownloadGatewayProgramRequest() { + super("dms-dg", "2023-09-14", "DownloadGatewayProgram"); + setProtocol(ProtocolType.HTTPS); + setMethod(MethodType.POST); + } + + public String getUserOS() { + return this.userOS; + } + + public void setUserOS(String userOS) { + this.userOS = userOS; + if(userOS != null){ + putBodyParameter("UserOS", userOS); + } + } + + public String getDgVersion() { + return this.dgVersion; + } + + public void setDgVersion(String dgVersion) { + this.dgVersion = dgVersion; + if(dgVersion != null){ + putBodyParameter("DgVersion", dgVersion); + } + } + + @Override + public Class getResponseClass() { + return DownloadGatewayProgramResponse.class; + } + +} diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/DownloadGatewayProgramResponse.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/DownloadGatewayProgramResponse.java new file mode 100644 index 0000000000..2a4472b2c2 --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/DownloadGatewayProgramResponse.java @@ -0,0 +1,81 @@ +/* + * 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_dg.model.v20230914; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.dms_dg.transform.v20230914.DownloadGatewayProgramResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class DownloadGatewayProgramResponse extends AcsResponse { + + private String code; + + private String data; + + private String errorMsg; + + private String requestId; + + private Boolean success; + + public String getCode() { + return this.code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getData() { + return this.data; + } + + public void setData(String data) { + this.data = data; + } + + public String getErrorMsg() { + return this.errorMsg; + } + + public void setErrorMsg(String errorMsg) { + this.errorMsg = errorMsg; + } + + 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; + } + + @Override + public DownloadGatewayProgramResponse getInstance(UnmarshallerContext context) { + return DownloadGatewayProgramResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/FindUserGatewayByIdRequest.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/FindUserGatewayByIdRequest.java new file mode 100644 index 0000000000..a4125128e0 --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/FindUserGatewayByIdRequest.java @@ -0,0 +1,51 @@ +/* + * 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_dg.model.v20230914; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.ProtocolType; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class FindUserGatewayByIdRequest extends RpcAcsRequest { + + + private String gatewayId; + public FindUserGatewayByIdRequest() { + super("dms-dg", "2023-09-14", "FindUserGatewayById"); + setProtocol(ProtocolType.HTTPS); + setMethod(MethodType.POST); + } + + public String getGatewayId() { + return this.gatewayId; + } + + public void setGatewayId(String gatewayId) { + this.gatewayId = gatewayId; + if(gatewayId != null){ + putBodyParameter("GatewayId", gatewayId); + } + } + + @Override + public Class getResponseClass() { + return FindUserGatewayByIdResponse.class; + } + +} diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/FindUserGatewayByIdResponse.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/FindUserGatewayByIdResponse.java new file mode 100644 index 0000000000..87cf1f9ae3 --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/FindUserGatewayByIdResponse.java @@ -0,0 +1,194 @@ +/* + * 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_dg.model.v20230914; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.dms_dg.transform.v20230914.FindUserGatewayByIdResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class FindUserGatewayByIdResponse extends AcsResponse { + + private String code; + + private String errorMsg; + + private String requestId; + + private Boolean success; + + private Gateway gateway; + + public String getCode() { + return this.code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getErrorMsg() { + return this.errorMsg; + } + + public void setErrorMsg(String errorMsg) { + this.errorMsg = errorMsg; + } + + 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 Gateway getGateway() { + return this.gateway; + } + + public void setGateway(Gateway gateway) { + this.gateway = gateway; + } + + public static class Gateway { + + private String gatewayDesc; + + private String gatewayName; + + private String regionId; + + private String gatewayId; + + private String status; + + private String userId; + + private String creatorId; + + private String dgVersion; + + private String exceptionMsg; + + private Integer numOfExceptionInstance; + + private Integer numOfRunningInstance; + + public String getGatewayDesc() { + return this.gatewayDesc; + } + + public void setGatewayDesc(String gatewayDesc) { + this.gatewayDesc = gatewayDesc; + } + + public String getGatewayName() { + return this.gatewayName; + } + + public void setGatewayName(String gatewayName) { + this.gatewayName = gatewayName; + } + + public String getRegionId() { + return this.regionId; + } + + public void setRegionId(String regionId) { + this.regionId = regionId; + } + + public String getGatewayId() { + return this.gatewayId; + } + + public void setGatewayId(String gatewayId) { + this.gatewayId = gatewayId; + } + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getUserId() { + return this.userId; + } + + public void setUserId(String userId) { + this.userId = userId; + } + + public String getCreatorId() { + return this.creatorId; + } + + public void setCreatorId(String creatorId) { + this.creatorId = creatorId; + } + + public String getDgVersion() { + return this.dgVersion; + } + + public void setDgVersion(String dgVersion) { + this.dgVersion = dgVersion; + } + + public String getExceptionMsg() { + return this.exceptionMsg; + } + + public void setExceptionMsg(String exceptionMsg) { + this.exceptionMsg = exceptionMsg; + } + + public Integer getNumOfExceptionInstance() { + return this.numOfExceptionInstance; + } + + public void setNumOfExceptionInstance(Integer numOfExceptionInstance) { + this.numOfExceptionInstance = numOfExceptionInstance; + } + + public Integer getNumOfRunningInstance() { + return this.numOfRunningInstance; + } + + public void setNumOfRunningInstance(Integer numOfRunningInstance) { + this.numOfRunningInstance = numOfRunningInstance; + } + } + + @Override + public FindUserGatewayByIdResponse getInstance(UnmarshallerContext context) { + return FindUserGatewayByIdResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/GetUserDatabasesRequest.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/GetUserDatabasesRequest.java new file mode 100644 index 0000000000..519994ff62 --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/GetUserDatabasesRequest.java @@ -0,0 +1,142 @@ +/* + * 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_dg.model.v20230914; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.ProtocolType; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class GetUserDatabasesRequest extends RpcAcsRequest { + + + private String searchKey; + + private String pageNumber; + + private String pageSize; + + private String host; + + private String gatewayId; + + private String instanceId; + + private Integer port; + + private String dbType; + public GetUserDatabasesRequest() { + super("dms-dg", "2023-09-14", "GetUserDatabases"); + setProtocol(ProtocolType.HTTPS); + setMethod(MethodType.POST); + } + + public String getSearchKey() { + return this.searchKey; + } + + public void setSearchKey(String searchKey) { + this.searchKey = searchKey; + if(searchKey != null){ + putBodyParameter("SearchKey", searchKey); + } + } + + public String getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(String pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putBodyParameter("PageNumber", pageNumber); + } + } + + public String getPageSize() { + return this.pageSize; + } + + public void setPageSize(String pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putBodyParameter("PageSize", pageSize); + } + } + + public String getHost() { + return this.host; + } + + public void setHost(String host) { + this.host = host; + if(host != null){ + putBodyParameter("Host", host); + } + } + + public String getGatewayId() { + return this.gatewayId; + } + + public void setGatewayId(String gatewayId) { + this.gatewayId = gatewayId; + if(gatewayId != null){ + putBodyParameter("GatewayId", gatewayId); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putBodyParameter("InstanceId", instanceId); + } + } + + public Integer getPort() { + return this.port; + } + + public void setPort(Integer port) { + this.port = port; + if(port != null){ + putBodyParameter("Port", port.toString()); + } + } + + public String getDbType() { + return this.dbType; + } + + public void setDbType(String dbType) { + this.dbType = dbType; + if(dbType != null){ + putBodyParameter("DbType", dbType); + } + } + + @Override + public Class getResponseClass() { + return GetUserDatabasesResponse.class; + } + +} diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/GetUserDatabasesResponse.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/GetUserDatabasesResponse.java new file mode 100644 index 0000000000..96f56376a2 --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/GetUserDatabasesResponse.java @@ -0,0 +1,285 @@ +/* + * 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_dg.model.v20230914; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.dms_dg.transform.v20230914.GetUserDatabasesResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class GetUserDatabasesResponse extends AcsResponse { + + private String requestId; + + private String success; + + private String code; + + private String errorMsg; + + private Integer count; + + private List dbInstanceList; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public String getSuccess() { + return this.success; + } + + public void setSuccess(String success) { + this.success = success; + } + + public String getCode() { + return this.code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getErrorMsg() { + return this.errorMsg; + } + + public void setErrorMsg(String errorMsg) { + this.errorMsg = errorMsg; + } + + public Integer getCount() { + return this.count; + } + + public void setCount(Integer count) { + this.count = count; + } + + public List getDbInstanceList() { + return this.dbInstanceList; + } + + public void setDbInstanceList(List dbInstanceList) { + this.dbInstanceList = dbInstanceList; + } + + public static class DbInstance { + + private Integer port; + + private String host; + + private String gatewayId; + + private String dbType; + + private String regionId; + + private String connectHost; + + private Integer connectPort; + + private String serviceType; + + private String networkType; + + private String nodeId; + + private String instanceStatus; + + private String dbDescription; + + private String instanceId; + + private String gatewayName; + + private Long gmtCreate; + + private String userId; + + private String parentId; + + private String vpcId; + + private String vpcInstanceId; + + public Integer getPort() { + return this.port; + } + + public void setPort(Integer port) { + this.port = port; + } + + public String getHost() { + return this.host; + } + + public void setHost(String host) { + this.host = host; + } + + public String getGatewayId() { + return this.gatewayId; + } + + public void setGatewayId(String gatewayId) { + this.gatewayId = gatewayId; + } + + public String getDbType() { + return this.dbType; + } + + public void setDbType(String dbType) { + this.dbType = dbType; + } + + public String getRegionId() { + return this.regionId; + } + + public void setRegionId(String regionId) { + this.regionId = regionId; + } + + public String getConnectHost() { + return this.connectHost; + } + + public void setConnectHost(String connectHost) { + this.connectHost = connectHost; + } + + public Integer getConnectPort() { + return this.connectPort; + } + + public void setConnectPort(Integer connectPort) { + this.connectPort = connectPort; + } + + public String getServiceType() { + return this.serviceType; + } + + public void setServiceType(String serviceType) { + this.serviceType = serviceType; + } + + public String getNetworkType() { + return this.networkType; + } + + public void setNetworkType(String networkType) { + this.networkType = networkType; + } + + public String getNodeId() { + return this.nodeId; + } + + public void setNodeId(String nodeId) { + this.nodeId = nodeId; + } + + public String getInstanceStatus() { + return this.instanceStatus; + } + + public void setInstanceStatus(String instanceStatus) { + this.instanceStatus = instanceStatus; + } + + public String getDbDescription() { + return this.dbDescription; + } + + public void setDbDescription(String dbDescription) { + this.dbDescription = dbDescription; + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public String getGatewayName() { + return this.gatewayName; + } + + public void setGatewayName(String gatewayName) { + this.gatewayName = gatewayName; + } + + public Long getGmtCreate() { + return this.gmtCreate; + } + + public void setGmtCreate(Long gmtCreate) { + this.gmtCreate = gmtCreate; + } + + public String getUserId() { + return this.userId; + } + + public void setUserId(String userId) { + this.userId = userId; + } + + public String getParentId() { + return this.parentId; + } + + public void setParentId(String parentId) { + this.parentId = parentId; + } + + public String getVpcId() { + return this.vpcId; + } + + public void setVpcId(String vpcId) { + this.vpcId = vpcId; + } + + public String getVpcInstanceId() { + return this.vpcInstanceId; + } + + public void setVpcInstanceId(String vpcInstanceId) { + this.vpcInstanceId = vpcInstanceId; + } + } + + @Override + public GetUserDatabasesResponse getInstance(UnmarshallerContext context) { + return GetUserDatabasesResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/GetUserGatewayInstancesRequest.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/GetUserGatewayInstancesRequest.java new file mode 100644 index 0000000000..92cd85ab66 --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/GetUserGatewayInstancesRequest.java @@ -0,0 +1,51 @@ +/* + * 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_dg.model.v20230914; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.ProtocolType; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class GetUserGatewayInstancesRequest extends RpcAcsRequest { + + + private String gatewayId; + public GetUserGatewayInstancesRequest() { + super("dms-dg", "2023-09-14", "GetUserGatewayInstances"); + setProtocol(ProtocolType.HTTPS); + setMethod(MethodType.POST); + } + + public String getGatewayId() { + return this.gatewayId; + } + + public void setGatewayId(String gatewayId) { + this.gatewayId = gatewayId; + if(gatewayId != null){ + putBodyParameter("GatewayId", gatewayId); + } + } + + @Override + public Class getResponseClass() { + return GetUserGatewayInstancesResponse.class; + } + +} diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/GetUserGatewayInstancesResponse.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/GetUserGatewayInstancesResponse.java new file mode 100644 index 0000000000..d5105bb274 --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/GetUserGatewayInstancesResponse.java @@ -0,0 +1,210 @@ +/* + * 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_dg.model.v20230914; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.dms_dg.transform.v20230914.GetUserGatewayInstancesResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class GetUserGatewayInstancesResponse extends AcsResponse { + + private String code; + + private String errorMsg; + + private String requestId; + + private Boolean success; + + private List gatewayInstanceList; + + public String getCode() { + return this.code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getErrorMsg() { + return this.errorMsg; + } + + public void setErrorMsg(String errorMsg) { + this.errorMsg = errorMsg; + } + + 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 List getGatewayInstanceList() { + return this.gatewayInstanceList; + } + + public void setGatewayInstanceList(List gatewayInstanceList) { + this.gatewayInstanceList = gatewayInstanceList; + } + + public static class GatewayInstance { + + private String gatewayInstanceId; + + private String gatewayId; + + private Long lastUpdateTime; + + private String localIP; + + private String outputIP; + + private String message; + + private String endPoint; + + private String currentDaemonVersion; + + private String currentVersion; + + private String regionId; + + private String connectEndpointType; + + private String gatewayInstanceStatus; + + public String getGatewayInstanceId() { + return this.gatewayInstanceId; + } + + public void setGatewayInstanceId(String gatewayInstanceId) { + this.gatewayInstanceId = gatewayInstanceId; + } + + public String getGatewayId() { + return this.gatewayId; + } + + public void setGatewayId(String gatewayId) { + this.gatewayId = gatewayId; + } + + public Long getLastUpdateTime() { + return this.lastUpdateTime; + } + + public void setLastUpdateTime(Long lastUpdateTime) { + this.lastUpdateTime = lastUpdateTime; + } + + public String getLocalIP() { + return this.localIP; + } + + public void setLocalIP(String localIP) { + this.localIP = localIP; + } + + public String getOutputIP() { + return this.outputIP; + } + + public void setOutputIP(String outputIP) { + this.outputIP = outputIP; + } + + public String getMessage() { + return this.message; + } + + public void setMessage(String message) { + this.message = message; + } + + public String getEndPoint() { + return this.endPoint; + } + + public void setEndPoint(String endPoint) { + this.endPoint = endPoint; + } + + public String getCurrentDaemonVersion() { + return this.currentDaemonVersion; + } + + public void setCurrentDaemonVersion(String currentDaemonVersion) { + this.currentDaemonVersion = currentDaemonVersion; + } + + public String getCurrentVersion() { + return this.currentVersion; + } + + public void setCurrentVersion(String currentVersion) { + this.currentVersion = currentVersion; + } + + public String getRegionId() { + return this.regionId; + } + + public void setRegionId(String regionId) { + this.regionId = regionId; + } + + public String getConnectEndpointType() { + return this.connectEndpointType; + } + + public void setConnectEndpointType(String connectEndpointType) { + this.connectEndpointType = connectEndpointType; + } + + public String getGatewayInstanceStatus() { + return this.gatewayInstanceStatus; + } + + public void setGatewayInstanceStatus(String gatewayInstanceStatus) { + this.gatewayInstanceStatus = gatewayInstanceStatus; + } + } + + @Override + public GetUserGatewayInstancesResponse getInstance(UnmarshallerContext context) { + return GetUserGatewayInstancesResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/GetUserGatewaysRequest.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/GetUserGatewaysRequest.java new file mode 100644 index 0000000000..83e6c6d3f7 --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/GetUserGatewaysRequest.java @@ -0,0 +1,75 @@ +/* + * 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_dg.model.v20230914; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class GetUserGatewaysRequest extends RpcAcsRequest { + + + private String searchKey; + + private Integer pageNumber; + + private Integer pageSize; + public GetUserGatewaysRequest() { + super("dms-dg", "2023-09-14", "GetUserGateways"); + setMethod(MethodType.POST); + } + + public String getSearchKey() { + return this.searchKey; + } + + public void setSearchKey(String searchKey) { + this.searchKey = searchKey; + if(searchKey != null){ + putBodyParameter("SearchKey", searchKey); + } + } + + public Integer getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putBodyParameter("PageNumber", pageNumber.toString()); + } + } + + public Integer getPageSize() { + return this.pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putBodyParameter("PageSize", pageSize.toString()); + } + } + + @Override + public Class getResponseClass() { + return GetUserGatewaysResponse.class; + } + +} diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/GetUserGatewaysResponse.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/GetUserGatewaysResponse.java new file mode 100644 index 0000000000..3663fba529 --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/GetUserGatewaysResponse.java @@ -0,0 +1,205 @@ +/* + * 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_dg.model.v20230914; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.dms_dg.transform.v20230914.GetUserGatewaysResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class GetUserGatewaysResponse extends AcsResponse { + + private String requestId; + + private Boolean success; + + private String code; + + private String errorMsg; + + private Integer count; + + private List gatewayList; + + 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 getCode() { + return this.code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getErrorMsg() { + return this.errorMsg; + } + + public void setErrorMsg(String errorMsg) { + this.errorMsg = errorMsg; + } + + public Integer getCount() { + return this.count; + } + + public void setCount(Integer count) { + this.count = count; + } + + public List getGatewayList() { + return this.gatewayList; + } + + public void setGatewayList(List gatewayList) { + this.gatewayList = gatewayList; + } + + public static class Gateway { + + private String gatewayDesc; + + private String gatewayName; + + private String regionId; + + private String gatewayId; + + private String status; + + private String userId; + + private String creatorId; + + private String dgVersion; + + private String exceptionMsg; + + private Integer numOfExceptionInstance; + + private Integer numOfRunningInstance; + + public String getGatewayDesc() { + return this.gatewayDesc; + } + + public void setGatewayDesc(String gatewayDesc) { + this.gatewayDesc = gatewayDesc; + } + + public String getGatewayName() { + return this.gatewayName; + } + + public void setGatewayName(String gatewayName) { + this.gatewayName = gatewayName; + } + + public String getRegionId() { + return this.regionId; + } + + public void setRegionId(String regionId) { + this.regionId = regionId; + } + + public String getGatewayId() { + return this.gatewayId; + } + + public void setGatewayId(String gatewayId) { + this.gatewayId = gatewayId; + } + + public String getStatus() { + return this.status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getUserId() { + return this.userId; + } + + public void setUserId(String userId) { + this.userId = userId; + } + + public String getCreatorId() { + return this.creatorId; + } + + public void setCreatorId(String creatorId) { + this.creatorId = creatorId; + } + + public String getDgVersion() { + return this.dgVersion; + } + + public void setDgVersion(String dgVersion) { + this.dgVersion = dgVersion; + } + + public String getExceptionMsg() { + return this.exceptionMsg; + } + + public void setExceptionMsg(String exceptionMsg) { + this.exceptionMsg = exceptionMsg; + } + + public Integer getNumOfExceptionInstance() { + return this.numOfExceptionInstance; + } + + public void setNumOfExceptionInstance(Integer numOfExceptionInstance) { + this.numOfExceptionInstance = numOfExceptionInstance; + } + + public Integer getNumOfRunningInstance() { + return this.numOfRunningInstance; + } + + public void setNumOfRunningInstance(Integer numOfRunningInstance) { + this.numOfRunningInstance = numOfRunningInstance; + } + } + + @Override + public GetUserGatewaysResponse getInstance(UnmarshallerContext context) { + return GetUserGatewaysResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/ListDatabaseAccessPointRequest.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/ListDatabaseAccessPointRequest.java new file mode 100644 index 0000000000..9003f445bb --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/ListDatabaseAccessPointRequest.java @@ -0,0 +1,142 @@ +/* + * 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_dg.model.v20230914; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.ProtocolType; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class ListDatabaseAccessPointRequest extends RpcAcsRequest { + + + private String searchKey; + + private String pageNumber; + + private String pageSize; + + private String host; + + private String dbInstanceId; + + private String gatewayId; + + private Integer port; + + private String vpcId; + public ListDatabaseAccessPointRequest() { + super("dms-dg", "2023-09-14", "ListDatabaseAccessPoint"); + setProtocol(ProtocolType.HTTPS); + setMethod(MethodType.POST); + } + + public String getSearchKey() { + return this.searchKey; + } + + public void setSearchKey(String searchKey) { + this.searchKey = searchKey; + if(searchKey != null){ + putBodyParameter("SearchKey", searchKey); + } + } + + public String getPageNumber() { + return this.pageNumber; + } + + public void setPageNumber(String pageNumber) { + this.pageNumber = pageNumber; + if(pageNumber != null){ + putBodyParameter("PageNumber", pageNumber); + } + } + + public String getPageSize() { + return this.pageSize; + } + + public void setPageSize(String pageSize) { + this.pageSize = pageSize; + if(pageSize != null){ + putBodyParameter("PageSize", pageSize); + } + } + + public String getHost() { + return this.host; + } + + public void setHost(String host) { + this.host = host; + if(host != null){ + putBodyParameter("Host", host); + } + } + + public String getDbInstanceId() { + return this.dbInstanceId; + } + + public void setDbInstanceId(String dbInstanceId) { + this.dbInstanceId = dbInstanceId; + if(dbInstanceId != null){ + putBodyParameter("DbInstanceId", dbInstanceId); + } + } + + public String getGatewayId() { + return this.gatewayId; + } + + public void setGatewayId(String gatewayId) { + this.gatewayId = gatewayId; + if(gatewayId != null){ + putBodyParameter("GatewayId", gatewayId); + } + } + + public Integer getPort() { + return this.port; + } + + public void setPort(Integer port) { + this.port = port; + if(port != null){ + putBodyParameter("Port", port.toString()); + } + } + + public String getVpcId() { + return this.vpcId; + } + + public void setVpcId(String vpcId) { + this.vpcId = vpcId; + if(vpcId != null){ + putBodyParameter("VpcId", vpcId); + } + } + + @Override + public Class getResponseClass() { + return ListDatabaseAccessPointResponse.class; + } + +} diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/ListDatabaseAccessPointResponse.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/ListDatabaseAccessPointResponse.java new file mode 100644 index 0000000000..7d13282708 --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/ListDatabaseAccessPointResponse.java @@ -0,0 +1,190 @@ +/* + * 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_dg.model.v20230914; + +import java.util.List; +import com.aliyuncs.AcsResponse; +import com.aliyuncs.dms_dg.transform.v20230914.ListDatabaseAccessPointResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ListDatabaseAccessPointResponse extends AcsResponse { + + private String requestId; + + private String success; + + private String code; + + private String errorMsg; + + private Integer count; + + private List dbInstanceAccessPointList; + + public String getRequestId() { + return this.requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + public String getSuccess() { + return this.success; + } + + public void setSuccess(String success) { + this.success = success; + } + + public String getCode() { + return this.code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getErrorMsg() { + return this.errorMsg; + } + + public void setErrorMsg(String errorMsg) { + this.errorMsg = errorMsg; + } + + public Integer getCount() { + return this.count; + } + + public void setCount(Integer count) { + this.count = count; + } + + public List getDbInstanceAccessPointList() { + return this.dbInstanceAccessPointList; + } + + public void setDbInstanceAccessPointList(List dbInstanceAccessPointList) { + this.dbInstanceAccessPointList = dbInstanceAccessPointList; + } + + public static class DbInstanceAccessPoint { + + private String accessAddr; + + private Integer accessPort; + + private String dbInstanceId; + + private Long gmtCreate; + + private Long gmtModified; + + private String routerId; + + private String vpcAzoneId; + + private String vpcId; + + private String vswitchId; + + public String getAccessAddr() { + return this.accessAddr; + } + + public void setAccessAddr(String accessAddr) { + this.accessAddr = accessAddr; + } + + public Integer getAccessPort() { + return this.accessPort; + } + + public void setAccessPort(Integer accessPort) { + this.accessPort = accessPort; + } + + public String getDbInstanceId() { + return this.dbInstanceId; + } + + public void setDbInstanceId(String dbInstanceId) { + this.dbInstanceId = dbInstanceId; + } + + public Long getGmtCreate() { + return this.gmtCreate; + } + + public void setGmtCreate(Long gmtCreate) { + this.gmtCreate = gmtCreate; + } + + public Long getGmtModified() { + return this.gmtModified; + } + + public void setGmtModified(Long gmtModified) { + this.gmtModified = gmtModified; + } + + public String getRouterId() { + return this.routerId; + } + + public void setRouterId(String routerId) { + this.routerId = routerId; + } + + public String getVpcAzoneId() { + return this.vpcAzoneId; + } + + public void setVpcAzoneId(String vpcAzoneId) { + this.vpcAzoneId = vpcAzoneId; + } + + public String getVpcId() { + return this.vpcId; + } + + public void setVpcId(String vpcId) { + this.vpcId = vpcId; + } + + public String getVswitchId() { + return this.vswitchId; + } + + public void setVswitchId(String vswitchId) { + this.vswitchId = vswitchId; + } + } + + @Override + public ListDatabaseAccessPointResponse getInstance(UnmarshallerContext context) { + return ListDatabaseAccessPointResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/ModifyDatabaseRequest.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/ModifyDatabaseRequest.java new file mode 100644 index 0000000000..570309a8f5 --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/ModifyDatabaseRequest.java @@ -0,0 +1,142 @@ +/* + * 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_dg.model.v20230914; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.ProtocolType; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class ModifyDatabaseRequest extends RpcAcsRequest { + + + private String host; + + private String dbUserName; + + private String dbDescription; + + private String instanceId; + + private String dbName; + + private Integer port; + + private String dbPassword; + + private String dbType; + public ModifyDatabaseRequest() { + super("dms-dg", "2023-09-14", "ModifyDatabase"); + setProtocol(ProtocolType.HTTPS); + setMethod(MethodType.POST); + } + + public String getHost() { + return this.host; + } + + public void setHost(String host) { + this.host = host; + if(host != null){ + putBodyParameter("Host", host); + } + } + + public String getDbUserName() { + return this.dbUserName; + } + + public void setDbUserName(String dbUserName) { + this.dbUserName = dbUserName; + if(dbUserName != null){ + putBodyParameter("DbUserName", dbUserName); + } + } + + public String getDbDescription() { + return this.dbDescription; + } + + public void setDbDescription(String dbDescription) { + this.dbDescription = dbDescription; + if(dbDescription != null){ + putBodyParameter("DbDescription", dbDescription); + } + } + + public String getInstanceId() { + return this.instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + if(instanceId != null){ + putBodyParameter("InstanceId", instanceId); + } + } + + public String getDbName() { + return this.dbName; + } + + public void setDbName(String dbName) { + this.dbName = dbName; + if(dbName != null){ + putBodyParameter("DbName", dbName); + } + } + + public Integer getPort() { + return this.port; + } + + public void setPort(Integer port) { + this.port = port; + if(port != null){ + putBodyParameter("Port", port.toString()); + } + } + + public String getDbPassword() { + return this.dbPassword; + } + + public void setDbPassword(String dbPassword) { + this.dbPassword = dbPassword; + if(dbPassword != null){ + putBodyParameter("DbPassword", dbPassword); + } + } + + public String getDbType() { + return this.dbType; + } + + public void setDbType(String dbType) { + this.dbType = dbType; + if(dbType != null){ + putBodyParameter("DbType", dbType); + } + } + + @Override + public Class getResponseClass() { + return ModifyDatabaseResponse.class; + } + +} diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/ModifyDatabaseResponse.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/ModifyDatabaseResponse.java new file mode 100644 index 0000000000..9b13f8b653 --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/ModifyDatabaseResponse.java @@ -0,0 +1,81 @@ +/* + * 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_dg.model.v20230914; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.dms_dg.transform.v20230914.ModifyDatabaseResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ModifyDatabaseResponse extends AcsResponse { + + private String code; + + private String data; + + private String errorMsg; + + private String requestId; + + private Boolean success; + + public String getCode() { + return this.code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getData() { + return this.data; + } + + public void setData(String data) { + this.data = data; + } + + public String getErrorMsg() { + return this.errorMsg; + } + + public void setErrorMsg(String errorMsg) { + this.errorMsg = errorMsg; + } + + 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; + } + + @Override + public ModifyDatabaseResponse getInstance(UnmarshallerContext context) { + return ModifyDatabaseResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/ModifyGatewayRequest.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/ModifyGatewayRequest.java new file mode 100644 index 0000000000..1394dfa3f0 --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/ModifyGatewayRequest.java @@ -0,0 +1,77 @@ +/* + * 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_dg.model.v20230914; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.ProtocolType; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class ModifyGatewayRequest extends RpcAcsRequest { + + + private String gatewayDesc; + + private String gatewayName; + + private String gatewayId; + public ModifyGatewayRequest() { + super("dms-dg", "2023-09-14", "ModifyGateway"); + setProtocol(ProtocolType.HTTPS); + setMethod(MethodType.POST); + } + + public String getGatewayDesc() { + return this.gatewayDesc; + } + + public void setGatewayDesc(String gatewayDesc) { + this.gatewayDesc = gatewayDesc; + if(gatewayDesc != null){ + putBodyParameter("GatewayDesc", gatewayDesc); + } + } + + public String getGatewayName() { + return this.gatewayName; + } + + public void setGatewayName(String gatewayName) { + this.gatewayName = gatewayName; + if(gatewayName != null){ + putBodyParameter("GatewayName", gatewayName); + } + } + + public String getGatewayId() { + return this.gatewayId; + } + + public void setGatewayId(String gatewayId) { + this.gatewayId = gatewayId; + if(gatewayId != null){ + putBodyParameter("GatewayId", gatewayId); + } + } + + @Override + public Class getResponseClass() { + return ModifyGatewayResponse.class; + } + +} diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/ModifyGatewayResponse.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/ModifyGatewayResponse.java new file mode 100644 index 0000000000..fd908e6254 --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/ModifyGatewayResponse.java @@ -0,0 +1,81 @@ +/* + * 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_dg.model.v20230914; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.dms_dg.transform.v20230914.ModifyGatewayResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class ModifyGatewayResponse extends AcsResponse { + + private String code; + + private String data; + + private String errorMsg; + + private String requestId; + + private Boolean success; + + public String getCode() { + return this.code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getData() { + return this.data; + } + + public void setData(String data) { + this.data = data; + } + + public String getErrorMsg() { + return this.errorMsg; + } + + public void setErrorMsg(String errorMsg) { + this.errorMsg = errorMsg; + } + + 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; + } + + @Override + public ModifyGatewayResponse getInstance(UnmarshallerContext context) { + return ModifyGatewayResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/RetryDatabaseRequest.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/RetryDatabaseRequest.java new file mode 100644 index 0000000000..2d97fa5301 --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/RetryDatabaseRequest.java @@ -0,0 +1,153 @@ +/* + * 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_dg.model.v20230914; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class RetryDatabaseRequest extends RpcAcsRequest { + + + private String clientToken; + + private String host; + + private String dbUserName; + + private String dbDescription; + + private String gatewayId; + + private String dbName; + + private Integer port; + + private String dbPassword; + + private String dbType; + public RetryDatabaseRequest() { + super("dms-dg", "2023-09-14", "RetryDatabase"); + setMethod(MethodType.POST); + } + + public String getClientToken() { + return this.clientToken; + } + + public void setClientToken(String clientToken) { + this.clientToken = clientToken; + if(clientToken != null){ + putBodyParameter("ClientToken", clientToken); + } + } + + public String getHost() { + return this.host; + } + + public void setHost(String host) { + this.host = host; + if(host != null){ + putBodyParameter("Host", host); + } + } + + public String getDbUserName() { + return this.dbUserName; + } + + public void setDbUserName(String dbUserName) { + this.dbUserName = dbUserName; + if(dbUserName != null){ + putBodyParameter("DbUserName", dbUserName); + } + } + + public String getDbDescription() { + return this.dbDescription; + } + + public void setDbDescription(String dbDescription) { + this.dbDescription = dbDescription; + if(dbDescription != null){ + putBodyParameter("DbDescription", dbDescription); + } + } + + public String getGatewayId() { + return this.gatewayId; + } + + public void setGatewayId(String gatewayId) { + this.gatewayId = gatewayId; + if(gatewayId != null){ + putBodyParameter("GatewayId", gatewayId); + } + } + + public String getDbName() { + return this.dbName; + } + + public void setDbName(String dbName) { + this.dbName = dbName; + if(dbName != null){ + putBodyParameter("DbName", dbName); + } + } + + public Integer getPort() { + return this.port; + } + + public void setPort(Integer port) { + this.port = port; + if(port != null){ + putBodyParameter("Port", port.toString()); + } + } + + public String getDbPassword() { + return this.dbPassword; + } + + public void setDbPassword(String dbPassword) { + this.dbPassword = dbPassword; + if(dbPassword != null){ + putBodyParameter("DbPassword", dbPassword); + } + } + + public String getDbType() { + return this.dbType; + } + + public void setDbType(String dbType) { + this.dbType = dbType; + if(dbType != null){ + putBodyParameter("DbType", dbType); + } + } + + @Override + public Class getResponseClass() { + return RetryDatabaseResponse.class; + } + +} diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/RetryDatabaseResponse.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/RetryDatabaseResponse.java new file mode 100644 index 0000000000..e4e3cfd012 --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/RetryDatabaseResponse.java @@ -0,0 +1,86 @@ +/* + * 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_dg.model.v20230914; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.dms_dg.transform.v20230914.RetryDatabaseResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class RetryDatabaseResponse extends AcsResponse { + + private String code; + + private String data; + + private String errorMsg; + + private String requestId; + + private Boolean success; + + public String getCode() { + return this.code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getData() { + return this.data; + } + + public void setData(String data) { + this.data = data; + } + + public String getErrorMsg() { + return this.errorMsg; + } + + public void setErrorMsg(String errorMsg) { + this.errorMsg = errorMsg; + } + + 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; + } + + @Override + public RetryDatabaseResponse getInstance(UnmarshallerContext context) { + return RetryDatabaseResponseUnmarshaller.unmarshall(this, context); + } + + @Override + public boolean checkShowJsonItemName() { + return false; + } +} diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/StopGatewayRequest.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/StopGatewayRequest.java new file mode 100644 index 0000000000..2e9adc0eee --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/StopGatewayRequest.java @@ -0,0 +1,64 @@ +/* + * 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_dg.model.v20230914; + +import com.aliyuncs.RpcAcsRequest; +import com.aliyuncs.http.ProtocolType; +import com.aliyuncs.http.MethodType; + +/** + * @author auto create + * @version + */ +public class StopGatewayRequest extends RpcAcsRequest { + + + private String gatewayInstanceId; + + private String gatewayId; + public StopGatewayRequest() { + super("dms-dg", "2023-09-14", "StopGateway"); + setProtocol(ProtocolType.HTTPS); + setMethod(MethodType.POST); + } + + public String getGatewayInstanceId() { + return this.gatewayInstanceId; + } + + public void setGatewayInstanceId(String gatewayInstanceId) { + this.gatewayInstanceId = gatewayInstanceId; + if(gatewayInstanceId != null){ + putBodyParameter("GatewayInstanceId", gatewayInstanceId); + } + } + + public String getGatewayId() { + return this.gatewayId; + } + + public void setGatewayId(String gatewayId) { + this.gatewayId = gatewayId; + if(gatewayId != null){ + putBodyParameter("GatewayId", gatewayId); + } + } + + @Override + public Class getResponseClass() { + return StopGatewayResponse.class; + } + +} diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/StopGatewayResponse.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/StopGatewayResponse.java new file mode 100644 index 0000000000..f3efee309b --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/model/v20230914/StopGatewayResponse.java @@ -0,0 +1,81 @@ +/* + * 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_dg.model.v20230914; + +import com.aliyuncs.AcsResponse; +import com.aliyuncs.dms_dg.transform.v20230914.StopGatewayResponseUnmarshaller; +import com.aliyuncs.transform.UnmarshallerContext; + +/** + * @author auto create + * @version + */ +public class StopGatewayResponse extends AcsResponse { + + private String code; + + private String data; + + private String errorMsg; + + private String requestId; + + private Boolean success; + + public String getCode() { + return this.code; + } + + public void setCode(String code) { + this.code = code; + } + + public String getData() { + return this.data; + } + + public void setData(String data) { + this.data = data; + } + + public String getErrorMsg() { + return this.errorMsg; + } + + public void setErrorMsg(String errorMsg) { + this.errorMsg = errorMsg; + } + + 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; + } + + @Override + public StopGatewayResponse getInstance(UnmarshallerContext context) { + return StopGatewayResponseUnmarshaller.unmarshall(this, context); + } +} diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/AddDatabaseListResponseUnmarshaller.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/AddDatabaseListResponseUnmarshaller.java new file mode 100644 index 0000000000..8d84251444 --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/AddDatabaseListResponseUnmarshaller.java @@ -0,0 +1,33 @@ +/* + * 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_dg.transform.v20230914; + +import com.aliyuncs.dms_dg.model.v20230914.AddDatabaseListResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class AddDatabaseListResponseUnmarshaller { + + public static AddDatabaseListResponse unmarshall(AddDatabaseListResponse addDatabaseListResponse, UnmarshallerContext _ctx) { + + addDatabaseListResponse.setRequestId(_ctx.stringValue("AddDatabaseListResponse.RequestId")); + addDatabaseListResponse.setCode(_ctx.stringValue("AddDatabaseListResponse.Code")); + addDatabaseListResponse.setData(_ctx.stringValue("AddDatabaseListResponse.Data")); + addDatabaseListResponse.setErrorMsg(_ctx.stringValue("AddDatabaseListResponse.ErrorMsg")); + addDatabaseListResponse.setSuccess(_ctx.booleanValue("AddDatabaseListResponse.Success")); + + return addDatabaseListResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/AddDatabaseResponseUnmarshaller.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/AddDatabaseResponseUnmarshaller.java new file mode 100644 index 0000000000..da1f6fdb1e --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/AddDatabaseResponseUnmarshaller.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.dms_dg.transform.v20230914; + +import com.aliyuncs.dms_dg.model.v20230914.AddDatabaseResponse; +import com.aliyuncs.dms_dg.model.v20230914.AddDatabaseResponse.DbInstance; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class AddDatabaseResponseUnmarshaller { + + public static AddDatabaseResponse unmarshall(AddDatabaseResponse addDatabaseResponse, UnmarshallerContext _ctx) { + + addDatabaseResponse.setRequestId(_ctx.stringValue("AddDatabaseResponse.RequestId")); + addDatabaseResponse.setCode(_ctx.stringValue("AddDatabaseResponse.Code")); + addDatabaseResponse.setErrorMsg(_ctx.stringValue("AddDatabaseResponse.ErrorMsg")); + addDatabaseResponse.setSuccess(_ctx.booleanValue("AddDatabaseResponse.Success")); + + DbInstance dbInstance = new DbInstance(); + dbInstance.setPort(_ctx.integerValue("AddDatabaseResponse.DbInstance.Port")); + dbInstance.setHost(_ctx.stringValue("AddDatabaseResponse.DbInstance.Host")); + dbInstance.setGatewayId(_ctx.stringValue("AddDatabaseResponse.DbInstance.GatewayId")); + dbInstance.setDbType(_ctx.stringValue("AddDatabaseResponse.DbInstance.DbType")); + dbInstance.setRegionId(_ctx.stringValue("AddDatabaseResponse.DbInstance.RegionId")); + dbInstance.setConnectHost(_ctx.stringValue("AddDatabaseResponse.DbInstance.ConnectHost")); + dbInstance.setConnectPort(_ctx.integerValue("AddDatabaseResponse.DbInstance.ConnectPort")); + dbInstance.setServiceType(_ctx.stringValue("AddDatabaseResponse.DbInstance.ServiceType")); + dbInstance.setNetworkType(_ctx.stringValue("AddDatabaseResponse.DbInstance.NetworkType")); + dbInstance.setNodeId(_ctx.stringValue("AddDatabaseResponse.DbInstance.NodeId")); + dbInstance.setInstanceStatus(_ctx.stringValue("AddDatabaseResponse.DbInstance.InstanceStatus")); + dbInstance.setDbDescription(_ctx.stringValue("AddDatabaseResponse.DbInstance.DbDescription")); + dbInstance.setInstanceId(_ctx.stringValue("AddDatabaseResponse.DbInstance.InstanceId")); + dbInstance.setGatewayName(_ctx.stringValue("AddDatabaseResponse.DbInstance.GatewayName")); + dbInstance.setUserId(_ctx.stringValue("AddDatabaseResponse.DbInstance.UserId")); + dbInstance.setParentId(_ctx.stringValue("AddDatabaseResponse.DbInstance.ParentId")); + dbInstance.setVpcId(_ctx.stringValue("AddDatabaseResponse.DbInstance.VpcId")); + dbInstance.setVpcInstanceId(_ctx.stringValue("AddDatabaseResponse.DbInstance.VpcInstanceId")); + addDatabaseResponse.setDbInstance(dbInstance); + + return addDatabaseResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/CheckDGEnabledResponseUnmarshaller.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/CheckDGEnabledResponseUnmarshaller.java new file mode 100644 index 0000000000..cc34b14671 --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/CheckDGEnabledResponseUnmarshaller.java @@ -0,0 +1,33 @@ +/* + * 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_dg.transform.v20230914; + +import com.aliyuncs.dms_dg.model.v20230914.CheckDGEnabledResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class CheckDGEnabledResponseUnmarshaller { + + public static CheckDGEnabledResponse unmarshall(CheckDGEnabledResponse checkDGEnabledResponse, UnmarshallerContext _ctx) { + + checkDGEnabledResponse.setRequestId(_ctx.stringValue("CheckDGEnabledResponse.RequestId")); + checkDGEnabledResponse.setCode(_ctx.stringValue("CheckDGEnabledResponse.Code")); + checkDGEnabledResponse.setData(_ctx.stringValue("CheckDGEnabledResponse.Data")); + checkDGEnabledResponse.setErrorMsg(_ctx.stringValue("CheckDGEnabledResponse.ErrorMsg")); + checkDGEnabledResponse.setSuccess(_ctx.booleanValue("CheckDGEnabledResponse.Success")); + + return checkDGEnabledResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/ConnectDatabaseResponseUnmarshaller.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/ConnectDatabaseResponseUnmarshaller.java new file mode 100644 index 0000000000..1b5ab1d52b --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/ConnectDatabaseResponseUnmarshaller.java @@ -0,0 +1,33 @@ +/* + * 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_dg.transform.v20230914; + +import com.aliyuncs.dms_dg.model.v20230914.ConnectDatabaseResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ConnectDatabaseResponseUnmarshaller { + + public static ConnectDatabaseResponse unmarshall(ConnectDatabaseResponse connectDatabaseResponse, UnmarshallerContext _ctx) { + + connectDatabaseResponse.setRequestId(_ctx.stringValue("ConnectDatabaseResponse.RequestId")); + connectDatabaseResponse.setCode(_ctx.stringValue("ConnectDatabaseResponse.Code")); + connectDatabaseResponse.setData(_ctx.stringValue("ConnectDatabaseResponse.Data")); + connectDatabaseResponse.setErrorMsg(_ctx.stringValue("ConnectDatabaseResponse.ErrorMsg")); + connectDatabaseResponse.setSuccess(_ctx.booleanValue("ConnectDatabaseResponse.Success")); + + return connectDatabaseResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/CreateGatewayResponseUnmarshaller.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/CreateGatewayResponseUnmarshaller.java new file mode 100644 index 0000000000..9806d067ae --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/CreateGatewayResponseUnmarshaller.java @@ -0,0 +1,33 @@ +/* + * 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_dg.transform.v20230914; + +import com.aliyuncs.dms_dg.model.v20230914.CreateGatewayResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class CreateGatewayResponseUnmarshaller { + + public static CreateGatewayResponse unmarshall(CreateGatewayResponse createGatewayResponse, UnmarshallerContext _ctx) { + + createGatewayResponse.setRequestId(_ctx.stringValue("CreateGatewayResponse.RequestId")); + createGatewayResponse.setCode(_ctx.stringValue("CreateGatewayResponse.Code")); + createGatewayResponse.setData(_ctx.stringValue("CreateGatewayResponse.Data")); + createGatewayResponse.setErrorMsg(_ctx.stringValue("CreateGatewayResponse.ErrorMsg")); + createGatewayResponse.setSuccess(_ctx.booleanValue("CreateGatewayResponse.Success")); + + return createGatewayResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/CreateGatewayVerifyCodeResponseUnmarshaller.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/CreateGatewayVerifyCodeResponseUnmarshaller.java new file mode 100644 index 0000000000..4763505387 --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/CreateGatewayVerifyCodeResponseUnmarshaller.java @@ -0,0 +1,33 @@ +/* + * 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_dg.transform.v20230914; + +import com.aliyuncs.dms_dg.model.v20230914.CreateGatewayVerifyCodeResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class CreateGatewayVerifyCodeResponseUnmarshaller { + + public static CreateGatewayVerifyCodeResponse unmarshall(CreateGatewayVerifyCodeResponse createGatewayVerifyCodeResponse, UnmarshallerContext _ctx) { + + createGatewayVerifyCodeResponse.setRequestId(_ctx.stringValue("CreateGatewayVerifyCodeResponse.RequestId")); + createGatewayVerifyCodeResponse.setCode(_ctx.stringValue("CreateGatewayVerifyCodeResponse.Code")); + createGatewayVerifyCodeResponse.setData(_ctx.stringValue("CreateGatewayVerifyCodeResponse.Data")); + createGatewayVerifyCodeResponse.setErrorMsg(_ctx.stringValue("CreateGatewayVerifyCodeResponse.ErrorMsg")); + createGatewayVerifyCodeResponse.setSuccess(_ctx.booleanValue("CreateGatewayVerifyCodeResponse.Success")); + + return createGatewayVerifyCodeResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/DeleteDatabaseResponseUnmarshaller.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/DeleteDatabaseResponseUnmarshaller.java new file mode 100644 index 0000000000..3da2c42bf3 --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/DeleteDatabaseResponseUnmarshaller.java @@ -0,0 +1,33 @@ +/* + * 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_dg.transform.v20230914; + +import com.aliyuncs.dms_dg.model.v20230914.DeleteDatabaseResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DeleteDatabaseResponseUnmarshaller { + + public static DeleteDatabaseResponse unmarshall(DeleteDatabaseResponse deleteDatabaseResponse, UnmarshallerContext _ctx) { + + deleteDatabaseResponse.setRequestId(_ctx.stringValue("DeleteDatabaseResponse.RequestId")); + deleteDatabaseResponse.setCode(_ctx.stringValue("DeleteDatabaseResponse.Code")); + deleteDatabaseResponse.setData(_ctx.stringValue("DeleteDatabaseResponse.Data")); + deleteDatabaseResponse.setErrorMsg(_ctx.stringValue("DeleteDatabaseResponse.ErrorMsg")); + deleteDatabaseResponse.setSuccess(_ctx.booleanValue("DeleteDatabaseResponse.Success")); + + return deleteDatabaseResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/DeleteGatewayInstanceResponseUnmarshaller.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/DeleteGatewayInstanceResponseUnmarshaller.java new file mode 100644 index 0000000000..fa0f6cb006 --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/DeleteGatewayInstanceResponseUnmarshaller.java @@ -0,0 +1,33 @@ +/* + * 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_dg.transform.v20230914; + +import com.aliyuncs.dms_dg.model.v20230914.DeleteGatewayInstanceResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DeleteGatewayInstanceResponseUnmarshaller { + + public static DeleteGatewayInstanceResponse unmarshall(DeleteGatewayInstanceResponse deleteGatewayInstanceResponse, UnmarshallerContext _ctx) { + + deleteGatewayInstanceResponse.setRequestId(_ctx.stringValue("DeleteGatewayInstanceResponse.RequestId")); + deleteGatewayInstanceResponse.setCode(_ctx.stringValue("DeleteGatewayInstanceResponse.Code")); + deleteGatewayInstanceResponse.setData(_ctx.stringValue("DeleteGatewayInstanceResponse.Data")); + deleteGatewayInstanceResponse.setErrorMsg(_ctx.stringValue("DeleteGatewayInstanceResponse.ErrorMsg")); + deleteGatewayInstanceResponse.setSuccess(_ctx.booleanValue("DeleteGatewayInstanceResponse.Success")); + + return deleteGatewayInstanceResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/DeleteGatewayResponseUnmarshaller.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/DeleteGatewayResponseUnmarshaller.java new file mode 100644 index 0000000000..31651bf791 --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/DeleteGatewayResponseUnmarshaller.java @@ -0,0 +1,33 @@ +/* + * 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_dg.transform.v20230914; + +import com.aliyuncs.dms_dg.model.v20230914.DeleteGatewayResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DeleteGatewayResponseUnmarshaller { + + public static DeleteGatewayResponse unmarshall(DeleteGatewayResponse deleteGatewayResponse, UnmarshallerContext _ctx) { + + deleteGatewayResponse.setRequestId(_ctx.stringValue("DeleteGatewayResponse.RequestId")); + deleteGatewayResponse.setCode(_ctx.stringValue("DeleteGatewayResponse.Code")); + deleteGatewayResponse.setData(_ctx.stringValue("DeleteGatewayResponse.Data")); + deleteGatewayResponse.setErrorMsg(_ctx.stringValue("DeleteGatewayResponse.ErrorMsg")); + deleteGatewayResponse.setSuccess(_ctx.booleanValue("DeleteGatewayResponse.Success")); + + return deleteGatewayResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/DescribeRegionsResponseUnmarshaller.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/DescribeRegionsResponseUnmarshaller.java new file mode 100644 index 0000000000..44e342a259 --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/DescribeRegionsResponseUnmarshaller.java @@ -0,0 +1,47 @@ +/* + * 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_dg.transform.v20230914; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.dms_dg.model.v20230914.DescribeRegionsResponse; +import com.aliyuncs.dms_dg.model.v20230914.DescribeRegionsResponse.Region; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DescribeRegionsResponseUnmarshaller { + + public static DescribeRegionsResponse unmarshall(DescribeRegionsResponse describeRegionsResponse, UnmarshallerContext _ctx) { + + describeRegionsResponse.setRequestId(_ctx.stringValue("DescribeRegionsResponse.RequestId")); + describeRegionsResponse.setCode(_ctx.stringValue("DescribeRegionsResponse.Code")); + describeRegionsResponse.setErrorMsg(_ctx.stringValue("DescribeRegionsResponse.ErrorMsg")); + describeRegionsResponse.setSuccess(_ctx.booleanValue("DescribeRegionsResponse.Success")); + + List regions = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("DescribeRegionsResponse.Regions.Length"); i++) { + Region region = new Region(); + region.setRegionEndpoint(_ctx.stringValue("DescribeRegionsResponse.Regions["+ i +"].RegionEndpoint")); + region.setLocalName(_ctx.stringValue("DescribeRegionsResponse.Regions["+ i +"].LocalName")); + region.setRegionId(_ctx.stringValue("DescribeRegionsResponse.Regions["+ i +"].RegionId")); + + regions.add(region); + } + describeRegionsResponse.setRegions(regions); + + return describeRegionsResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/DownloadGatewayProgramResponseUnmarshaller.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/DownloadGatewayProgramResponseUnmarshaller.java new file mode 100644 index 0000000000..6fcb752598 --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/DownloadGatewayProgramResponseUnmarshaller.java @@ -0,0 +1,33 @@ +/* + * 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_dg.transform.v20230914; + +import com.aliyuncs.dms_dg.model.v20230914.DownloadGatewayProgramResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class DownloadGatewayProgramResponseUnmarshaller { + + public static DownloadGatewayProgramResponse unmarshall(DownloadGatewayProgramResponse downloadGatewayProgramResponse, UnmarshallerContext _ctx) { + + downloadGatewayProgramResponse.setRequestId(_ctx.stringValue("DownloadGatewayProgramResponse.RequestId")); + downloadGatewayProgramResponse.setCode(_ctx.stringValue("DownloadGatewayProgramResponse.Code")); + downloadGatewayProgramResponse.setData(_ctx.stringValue("DownloadGatewayProgramResponse.Data")); + downloadGatewayProgramResponse.setErrorMsg(_ctx.stringValue("DownloadGatewayProgramResponse.ErrorMsg")); + downloadGatewayProgramResponse.setSuccess(_ctx.booleanValue("DownloadGatewayProgramResponse.Success")); + + return downloadGatewayProgramResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/FindUserGatewayByIdResponseUnmarshaller.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/FindUserGatewayByIdResponseUnmarshaller.java new file mode 100644 index 0000000000..0cb488d767 --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/FindUserGatewayByIdResponseUnmarshaller.java @@ -0,0 +1,47 @@ +/* + * 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_dg.transform.v20230914; + +import com.aliyuncs.dms_dg.model.v20230914.FindUserGatewayByIdResponse; +import com.aliyuncs.dms_dg.model.v20230914.FindUserGatewayByIdResponse.Gateway; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class FindUserGatewayByIdResponseUnmarshaller { + + public static FindUserGatewayByIdResponse unmarshall(FindUserGatewayByIdResponse findUserGatewayByIdResponse, UnmarshallerContext _ctx) { + + findUserGatewayByIdResponse.setRequestId(_ctx.stringValue("FindUserGatewayByIdResponse.RequestId")); + findUserGatewayByIdResponse.setCode(_ctx.stringValue("FindUserGatewayByIdResponse.Code")); + findUserGatewayByIdResponse.setErrorMsg(_ctx.stringValue("FindUserGatewayByIdResponse.ErrorMsg")); + findUserGatewayByIdResponse.setSuccess(_ctx.booleanValue("FindUserGatewayByIdResponse.Success")); + + Gateway gateway = new Gateway(); + gateway.setGatewayDesc(_ctx.stringValue("FindUserGatewayByIdResponse.Gateway.GatewayDesc")); + gateway.setGatewayName(_ctx.stringValue("FindUserGatewayByIdResponse.Gateway.GatewayName")); + gateway.setRegionId(_ctx.stringValue("FindUserGatewayByIdResponse.Gateway.RegionId")); + gateway.setGatewayId(_ctx.stringValue("FindUserGatewayByIdResponse.Gateway.GatewayId")); + gateway.setStatus(_ctx.stringValue("FindUserGatewayByIdResponse.Gateway.Status")); + gateway.setUserId(_ctx.stringValue("FindUserGatewayByIdResponse.Gateway.UserId")); + gateway.setCreatorId(_ctx.stringValue("FindUserGatewayByIdResponse.Gateway.CreatorId")); + gateway.setDgVersion(_ctx.stringValue("FindUserGatewayByIdResponse.Gateway.DgVersion")); + gateway.setExceptionMsg(_ctx.stringValue("FindUserGatewayByIdResponse.Gateway.ExceptionMsg")); + gateway.setNumOfExceptionInstance(_ctx.integerValue("FindUserGatewayByIdResponse.Gateway.NumOfExceptionInstance")); + gateway.setNumOfRunningInstance(_ctx.integerValue("FindUserGatewayByIdResponse.Gateway.NumOfRunningInstance")); + findUserGatewayByIdResponse.setGateway(gateway); + + return findUserGatewayByIdResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/GetUserDatabasesResponseUnmarshaller.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/GetUserDatabasesResponseUnmarshaller.java new file mode 100644 index 0000000000..18ad0fe30a --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/GetUserDatabasesResponseUnmarshaller.java @@ -0,0 +1,64 @@ +/* + * 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_dg.transform.v20230914; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.dms_dg.model.v20230914.GetUserDatabasesResponse; +import com.aliyuncs.dms_dg.model.v20230914.GetUserDatabasesResponse.DbInstance; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class GetUserDatabasesResponseUnmarshaller { + + public static GetUserDatabasesResponse unmarshall(GetUserDatabasesResponse getUserDatabasesResponse, UnmarshallerContext _ctx) { + + getUserDatabasesResponse.setRequestId(_ctx.stringValue("GetUserDatabasesResponse.RequestId")); + getUserDatabasesResponse.setSuccess(_ctx.stringValue("GetUserDatabasesResponse.Success")); + getUserDatabasesResponse.setCode(_ctx.stringValue("GetUserDatabasesResponse.Code")); + getUserDatabasesResponse.setErrorMsg(_ctx.stringValue("GetUserDatabasesResponse.ErrorMsg")); + getUserDatabasesResponse.setCount(_ctx.integerValue("GetUserDatabasesResponse.Count")); + + List dbInstanceList = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("GetUserDatabasesResponse.DbInstanceList.Length"); i++) { + DbInstance dbInstance = new DbInstance(); + dbInstance.setPort(_ctx.integerValue("GetUserDatabasesResponse.DbInstanceList["+ i +"].Port")); + dbInstance.setHost(_ctx.stringValue("GetUserDatabasesResponse.DbInstanceList["+ i +"].Host")); + dbInstance.setGatewayId(_ctx.stringValue("GetUserDatabasesResponse.DbInstanceList["+ i +"].GatewayId")); + dbInstance.setDbType(_ctx.stringValue("GetUserDatabasesResponse.DbInstanceList["+ i +"].DbType")); + dbInstance.setRegionId(_ctx.stringValue("GetUserDatabasesResponse.DbInstanceList["+ i +"].RegionId")); + dbInstance.setConnectHost(_ctx.stringValue("GetUserDatabasesResponse.DbInstanceList["+ i +"].ConnectHost")); + dbInstance.setConnectPort(_ctx.integerValue("GetUserDatabasesResponse.DbInstanceList["+ i +"].ConnectPort")); + dbInstance.setServiceType(_ctx.stringValue("GetUserDatabasesResponse.DbInstanceList["+ i +"].ServiceType")); + dbInstance.setNetworkType(_ctx.stringValue("GetUserDatabasesResponse.DbInstanceList["+ i +"].NetworkType")); + dbInstance.setNodeId(_ctx.stringValue("GetUserDatabasesResponse.DbInstanceList["+ i +"].NodeId")); + dbInstance.setInstanceStatus(_ctx.stringValue("GetUserDatabasesResponse.DbInstanceList["+ i +"].InstanceStatus")); + dbInstance.setDbDescription(_ctx.stringValue("GetUserDatabasesResponse.DbInstanceList["+ i +"].DbDescription")); + dbInstance.setInstanceId(_ctx.stringValue("GetUserDatabasesResponse.DbInstanceList["+ i +"].InstanceId")); + dbInstance.setGatewayName(_ctx.stringValue("GetUserDatabasesResponse.DbInstanceList["+ i +"].GatewayName")); + dbInstance.setGmtCreate(_ctx.longValue("GetUserDatabasesResponse.DbInstanceList["+ i +"].GmtCreate")); + dbInstance.setUserId(_ctx.stringValue("GetUserDatabasesResponse.DbInstanceList["+ i +"].UserId")); + dbInstance.setParentId(_ctx.stringValue("GetUserDatabasesResponse.DbInstanceList["+ i +"].ParentId")); + dbInstance.setVpcId(_ctx.stringValue("GetUserDatabasesResponse.DbInstanceList["+ i +"].VpcId")); + dbInstance.setVpcInstanceId(_ctx.stringValue("GetUserDatabasesResponse.DbInstanceList["+ i +"].VpcInstanceId")); + + dbInstanceList.add(dbInstance); + } + getUserDatabasesResponse.setDbInstanceList(dbInstanceList); + + return getUserDatabasesResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/GetUserGatewayInstancesResponseUnmarshaller.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/GetUserGatewayInstancesResponseUnmarshaller.java new file mode 100644 index 0000000000..e84f2d61c5 --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/GetUserGatewayInstancesResponseUnmarshaller.java @@ -0,0 +1,56 @@ +/* + * 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_dg.transform.v20230914; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.dms_dg.model.v20230914.GetUserGatewayInstancesResponse; +import com.aliyuncs.dms_dg.model.v20230914.GetUserGatewayInstancesResponse.GatewayInstance; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class GetUserGatewayInstancesResponseUnmarshaller { + + public static GetUserGatewayInstancesResponse unmarshall(GetUserGatewayInstancesResponse getUserGatewayInstancesResponse, UnmarshallerContext _ctx) { + + getUserGatewayInstancesResponse.setRequestId(_ctx.stringValue("GetUserGatewayInstancesResponse.RequestId")); + getUserGatewayInstancesResponse.setCode(_ctx.stringValue("GetUserGatewayInstancesResponse.Code")); + getUserGatewayInstancesResponse.setErrorMsg(_ctx.stringValue("GetUserGatewayInstancesResponse.ErrorMsg")); + getUserGatewayInstancesResponse.setSuccess(_ctx.booleanValue("GetUserGatewayInstancesResponse.Success")); + + List gatewayInstanceList = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("GetUserGatewayInstancesResponse.GatewayInstanceList.Length"); i++) { + GatewayInstance gatewayInstance = new GatewayInstance(); + gatewayInstance.setGatewayInstanceId(_ctx.stringValue("GetUserGatewayInstancesResponse.GatewayInstanceList["+ i +"].GatewayInstanceId")); + gatewayInstance.setGatewayId(_ctx.stringValue("GetUserGatewayInstancesResponse.GatewayInstanceList["+ i +"].GatewayId")); + gatewayInstance.setLastUpdateTime(_ctx.longValue("GetUserGatewayInstancesResponse.GatewayInstanceList["+ i +"].LastUpdateTime")); + gatewayInstance.setLocalIP(_ctx.stringValue("GetUserGatewayInstancesResponse.GatewayInstanceList["+ i +"].LocalIP")); + gatewayInstance.setOutputIP(_ctx.stringValue("GetUserGatewayInstancesResponse.GatewayInstanceList["+ i +"].OutputIP")); + gatewayInstance.setMessage(_ctx.stringValue("GetUserGatewayInstancesResponse.GatewayInstanceList["+ i +"].Message")); + gatewayInstance.setEndPoint(_ctx.stringValue("GetUserGatewayInstancesResponse.GatewayInstanceList["+ i +"].EndPoint")); + gatewayInstance.setCurrentDaemonVersion(_ctx.stringValue("GetUserGatewayInstancesResponse.GatewayInstanceList["+ i +"].CurrentDaemonVersion")); + gatewayInstance.setCurrentVersion(_ctx.stringValue("GetUserGatewayInstancesResponse.GatewayInstanceList["+ i +"].CurrentVersion")); + gatewayInstance.setRegionId(_ctx.stringValue("GetUserGatewayInstancesResponse.GatewayInstanceList["+ i +"].RegionId")); + gatewayInstance.setConnectEndpointType(_ctx.stringValue("GetUserGatewayInstancesResponse.GatewayInstanceList["+ i +"].ConnectEndpointType")); + gatewayInstance.setGatewayInstanceStatus(_ctx.stringValue("GetUserGatewayInstancesResponse.GatewayInstanceList["+ i +"].GatewayInstanceStatus")); + + gatewayInstanceList.add(gatewayInstance); + } + getUserGatewayInstancesResponse.setGatewayInstanceList(gatewayInstanceList); + + return getUserGatewayInstancesResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/GetUserGatewaysResponseUnmarshaller.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/GetUserGatewaysResponseUnmarshaller.java new file mode 100644 index 0000000000..6369a41a2c --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/GetUserGatewaysResponseUnmarshaller.java @@ -0,0 +1,56 @@ +/* + * 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_dg.transform.v20230914; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.dms_dg.model.v20230914.GetUserGatewaysResponse; +import com.aliyuncs.dms_dg.model.v20230914.GetUserGatewaysResponse.Gateway; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class GetUserGatewaysResponseUnmarshaller { + + public static GetUserGatewaysResponse unmarshall(GetUserGatewaysResponse getUserGatewaysResponse, UnmarshallerContext _ctx) { + + getUserGatewaysResponse.setRequestId(_ctx.stringValue("GetUserGatewaysResponse.RequestId")); + getUserGatewaysResponse.setSuccess(_ctx.booleanValue("GetUserGatewaysResponse.Success")); + getUserGatewaysResponse.setCode(_ctx.stringValue("GetUserGatewaysResponse.Code")); + getUserGatewaysResponse.setErrorMsg(_ctx.stringValue("GetUserGatewaysResponse.ErrorMsg")); + getUserGatewaysResponse.setCount(_ctx.integerValue("GetUserGatewaysResponse.Count")); + + List gatewayList = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("GetUserGatewaysResponse.GatewayList.Length"); i++) { + Gateway gateway = new Gateway(); + gateway.setGatewayDesc(_ctx.stringValue("GetUserGatewaysResponse.GatewayList["+ i +"].GatewayDesc")); + gateway.setGatewayName(_ctx.stringValue("GetUserGatewaysResponse.GatewayList["+ i +"].GatewayName")); + gateway.setRegionId(_ctx.stringValue("GetUserGatewaysResponse.GatewayList["+ i +"].RegionId")); + gateway.setGatewayId(_ctx.stringValue("GetUserGatewaysResponse.GatewayList["+ i +"].GatewayId")); + gateway.setStatus(_ctx.stringValue("GetUserGatewaysResponse.GatewayList["+ i +"].Status")); + gateway.setUserId(_ctx.stringValue("GetUserGatewaysResponse.GatewayList["+ i +"].UserId")); + gateway.setCreatorId(_ctx.stringValue("GetUserGatewaysResponse.GatewayList["+ i +"].CreatorId")); + gateway.setDgVersion(_ctx.stringValue("GetUserGatewaysResponse.GatewayList["+ i +"].DgVersion")); + gateway.setExceptionMsg(_ctx.stringValue("GetUserGatewaysResponse.GatewayList["+ i +"].ExceptionMsg")); + gateway.setNumOfExceptionInstance(_ctx.integerValue("GetUserGatewaysResponse.GatewayList["+ i +"].NumOfExceptionInstance")); + gateway.setNumOfRunningInstance(_ctx.integerValue("GetUserGatewaysResponse.GatewayList["+ i +"].NumOfRunningInstance")); + + gatewayList.add(gateway); + } + getUserGatewaysResponse.setGatewayList(gatewayList); + + return getUserGatewaysResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/ListDatabaseAccessPointResponseUnmarshaller.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/ListDatabaseAccessPointResponseUnmarshaller.java new file mode 100644 index 0000000000..064b546f6c --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/ListDatabaseAccessPointResponseUnmarshaller.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.dms_dg.transform.v20230914; + +import java.util.ArrayList; +import java.util.List; + +import com.aliyuncs.dms_dg.model.v20230914.ListDatabaseAccessPointResponse; +import com.aliyuncs.dms_dg.model.v20230914.ListDatabaseAccessPointResponse.DbInstanceAccessPoint; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ListDatabaseAccessPointResponseUnmarshaller { + + public static ListDatabaseAccessPointResponse unmarshall(ListDatabaseAccessPointResponse listDatabaseAccessPointResponse, UnmarshallerContext _ctx) { + + listDatabaseAccessPointResponse.setRequestId(_ctx.stringValue("ListDatabaseAccessPointResponse.RequestId")); + listDatabaseAccessPointResponse.setSuccess(_ctx.stringValue("ListDatabaseAccessPointResponse.Success")); + listDatabaseAccessPointResponse.setCode(_ctx.stringValue("ListDatabaseAccessPointResponse.Code")); + listDatabaseAccessPointResponse.setErrorMsg(_ctx.stringValue("ListDatabaseAccessPointResponse.ErrorMsg")); + listDatabaseAccessPointResponse.setCount(_ctx.integerValue("ListDatabaseAccessPointResponse.Count")); + + List dbInstanceAccessPointList = new ArrayList(); + for (int i = 0; i < _ctx.lengthValue("ListDatabaseAccessPointResponse.DbInstanceAccessPointList.Length"); i++) { + DbInstanceAccessPoint dbInstanceAccessPoint = new DbInstanceAccessPoint(); + dbInstanceAccessPoint.setAccessAddr(_ctx.stringValue("ListDatabaseAccessPointResponse.DbInstanceAccessPointList["+ i +"].AccessAddr")); + dbInstanceAccessPoint.setAccessPort(_ctx.integerValue("ListDatabaseAccessPointResponse.DbInstanceAccessPointList["+ i +"].AccessPort")); + dbInstanceAccessPoint.setDbInstanceId(_ctx.stringValue("ListDatabaseAccessPointResponse.DbInstanceAccessPointList["+ i +"].DbInstanceId")); + dbInstanceAccessPoint.setGmtCreate(_ctx.longValue("ListDatabaseAccessPointResponse.DbInstanceAccessPointList["+ i +"].GmtCreate")); + dbInstanceAccessPoint.setGmtModified(_ctx.longValue("ListDatabaseAccessPointResponse.DbInstanceAccessPointList["+ i +"].GmtModified")); + dbInstanceAccessPoint.setRouterId(_ctx.stringValue("ListDatabaseAccessPointResponse.DbInstanceAccessPointList["+ i +"].RouterId")); + dbInstanceAccessPoint.setVpcAzoneId(_ctx.stringValue("ListDatabaseAccessPointResponse.DbInstanceAccessPointList["+ i +"].VpcAzoneId")); + dbInstanceAccessPoint.setVpcId(_ctx.stringValue("ListDatabaseAccessPointResponse.DbInstanceAccessPointList["+ i +"].VpcId")); + dbInstanceAccessPoint.setVswitchId(_ctx.stringValue("ListDatabaseAccessPointResponse.DbInstanceAccessPointList["+ i +"].VswitchId")); + + dbInstanceAccessPointList.add(dbInstanceAccessPoint); + } + listDatabaseAccessPointResponse.setDbInstanceAccessPointList(dbInstanceAccessPointList); + + return listDatabaseAccessPointResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/ModifyDatabaseResponseUnmarshaller.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/ModifyDatabaseResponseUnmarshaller.java new file mode 100644 index 0000000000..fdfa16dc31 --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/ModifyDatabaseResponseUnmarshaller.java @@ -0,0 +1,33 @@ +/* + * 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_dg.transform.v20230914; + +import com.aliyuncs.dms_dg.model.v20230914.ModifyDatabaseResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ModifyDatabaseResponseUnmarshaller { + + public static ModifyDatabaseResponse unmarshall(ModifyDatabaseResponse modifyDatabaseResponse, UnmarshallerContext _ctx) { + + modifyDatabaseResponse.setRequestId(_ctx.stringValue("ModifyDatabaseResponse.RequestId")); + modifyDatabaseResponse.setCode(_ctx.stringValue("ModifyDatabaseResponse.Code")); + modifyDatabaseResponse.setData(_ctx.stringValue("ModifyDatabaseResponse.Data")); + modifyDatabaseResponse.setErrorMsg(_ctx.stringValue("ModifyDatabaseResponse.ErrorMsg")); + modifyDatabaseResponse.setSuccess(_ctx.booleanValue("ModifyDatabaseResponse.Success")); + + return modifyDatabaseResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/ModifyGatewayResponseUnmarshaller.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/ModifyGatewayResponseUnmarshaller.java new file mode 100644 index 0000000000..18e6a01c38 --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/ModifyGatewayResponseUnmarshaller.java @@ -0,0 +1,33 @@ +/* + * 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_dg.transform.v20230914; + +import com.aliyuncs.dms_dg.model.v20230914.ModifyGatewayResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class ModifyGatewayResponseUnmarshaller { + + public static ModifyGatewayResponse unmarshall(ModifyGatewayResponse modifyGatewayResponse, UnmarshallerContext _ctx) { + + modifyGatewayResponse.setRequestId(_ctx.stringValue("ModifyGatewayResponse.RequestId")); + modifyGatewayResponse.setCode(_ctx.stringValue("ModifyGatewayResponse.Code")); + modifyGatewayResponse.setData(_ctx.stringValue("ModifyGatewayResponse.Data")); + modifyGatewayResponse.setErrorMsg(_ctx.stringValue("ModifyGatewayResponse.ErrorMsg")); + modifyGatewayResponse.setSuccess(_ctx.booleanValue("ModifyGatewayResponse.Success")); + + return modifyGatewayResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/RetryDatabaseResponseUnmarshaller.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/RetryDatabaseResponseUnmarshaller.java new file mode 100644 index 0000000000..b0c19474ba --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/RetryDatabaseResponseUnmarshaller.java @@ -0,0 +1,33 @@ +/* + * 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_dg.transform.v20230914; + +import com.aliyuncs.dms_dg.model.v20230914.RetryDatabaseResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class RetryDatabaseResponseUnmarshaller { + + public static RetryDatabaseResponse unmarshall(RetryDatabaseResponse retryDatabaseResponse, UnmarshallerContext _ctx) { + + retryDatabaseResponse.setRequestId(_ctx.stringValue("RetryDatabaseResponse.RequestId")); + retryDatabaseResponse.setCode(_ctx.stringValue("RetryDatabaseResponse.Code")); + retryDatabaseResponse.setData(_ctx.stringValue("RetryDatabaseResponse.Data")); + retryDatabaseResponse.setErrorMsg(_ctx.stringValue("RetryDatabaseResponse.ErrorMsg")); + retryDatabaseResponse.setSuccess(_ctx.booleanValue("RetryDatabaseResponse.Success")); + + return retryDatabaseResponse; + } +} \ No newline at end of file diff --git a/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/StopGatewayResponseUnmarshaller.java b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/StopGatewayResponseUnmarshaller.java new file mode 100644 index 0000000000..d5548da7b5 --- /dev/null +++ b/aliyun-java-sdk-dms-dg/src/main/java/com/aliyuncs/dms_dg/transform/v20230914/StopGatewayResponseUnmarshaller.java @@ -0,0 +1,33 @@ +/* + * 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_dg.transform.v20230914; + +import com.aliyuncs.dms_dg.model.v20230914.StopGatewayResponse; +import com.aliyuncs.transform.UnmarshallerContext; + + +public class StopGatewayResponseUnmarshaller { + + public static StopGatewayResponse unmarshall(StopGatewayResponse stopGatewayResponse, UnmarshallerContext _ctx) { + + stopGatewayResponse.setRequestId(_ctx.stringValue("StopGatewayResponse.RequestId")); + stopGatewayResponse.setCode(_ctx.stringValue("StopGatewayResponse.Code")); + stopGatewayResponse.setData(_ctx.stringValue("StopGatewayResponse.Data")); + stopGatewayResponse.setErrorMsg(_ctx.stringValue("StopGatewayResponse.ErrorMsg")); + stopGatewayResponse.setSuccess(_ctx.booleanValue("StopGatewayResponse.Success")); + + return stopGatewayResponse; + } +} \ No newline at end of file