Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8635360

Browse files
committed
Supported version.
1 parent f8960ad commit 8635360

24 files changed

+532
-101
lines changed

aliyun-java-sdk-dg/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2020-04-21 Version: 1.0.8
2+
- Supported version.
3+
14
2019-09-24 Version: 1.0.7
25
- Generated 2019-03-27 for `dg`.
36

aliyun-java-sdk-dg/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>com.aliyun</groupId>
55
<artifactId>aliyun-java-sdk-dg</artifactId>
66
<packaging>jar</packaging>
7-
<version>1.0.7</version>
7+
<version>1.0.8</version>
88
<name>aliyun-java-sdk-dg</name>
99
<url>http://www.aliyun.com</url>
1010
<description>Aliyun Open API SDK for Java

aliyun-java-sdk-dg/src/main/java/com/aliyuncs/dg/model/v20190327/AddDatabaseRequest.java

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,9 @@
2424
* @version
2525
*/
2626
public class AddDatabaseRequest extends RpcAcsRequest<AddDatabaseResponse> {
27-
28-
public AddDatabaseRequest() {
29-
super("dg", "2019-03-27", "AddDatabase", "dg");
30-
setProtocol(ProtocolType.HTTPS);
31-
setMethod(MethodType.POST);
32-
try {
33-
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
34-
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
35-
} catch (Exception e) {}
36-
}
27+
28+
29+
private String dbName;
3730

3831
private Integer port;
3932

@@ -47,7 +40,27 @@ public AddDatabaseRequest() {
4740

4841
private String dbDescription;
4942

50-
private String gatewayId;
43+
private String gatewayId;
44+
public AddDatabaseRequest() {
45+
super("dg", "2019-03-27", "AddDatabase", "dg");
46+
setProtocol(ProtocolType.HTTPS);
47+
setMethod(MethodType.POST);
48+
try {
49+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
50+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
51+
} catch (Exception e) {}
52+
}
53+
54+
public String getDbName() {
55+
return this.dbName;
56+
}
57+
58+
public void setDbName(String dbName) {
59+
this.dbName = dbName;
60+
if(dbName != null){
61+
putBodyParameter("DbName", dbName);
62+
}
63+
}
5164

5265
public Integer getPort() {
5366
return this.port;

aliyun-java-sdk-dg/src/main/java/com/aliyuncs/dg/model/v20190327/AddDatabaseResponse.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,9 @@ public void setData(String data) {
7878
public AddDatabaseResponse getInstance(UnmarshallerContext context) {
7979
return AddDatabaseResponseUnmarshaller.unmarshall(this, context);
8080
}
81+
82+
@Override
83+
public boolean checkShowJsonItemName() {
84+
return false;
85+
}
8186
}

aliyun-java-sdk-dg/src/main/java/com/aliyuncs/dg/model/v20190327/ConnectDatabaseRequest.java

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,9 @@
2424
* @version
2525
*/
2626
public class ConnectDatabaseRequest extends RpcAcsRequest<ConnectDatabaseResponse> {
27-
28-
public ConnectDatabaseRequest() {
29-
super("dg", "2019-03-27", "ConnectDatabase", "dg");
30-
setProtocol(ProtocolType.HTTPS);
31-
setMethod(MethodType.POST);
32-
try {
33-
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
34-
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
35-
} catch (Exception e) {}
36-
}
27+
28+
29+
private String dbName;
3730

3831
private Integer port;
3932

@@ -45,7 +38,27 @@ public ConnectDatabaseRequest() {
4538

4639
private String dbUserName;
4740

48-
private String gatewayId;
41+
private String gatewayId;
42+
public ConnectDatabaseRequest() {
43+
super("dg", "2019-03-27", "ConnectDatabase", "dg");
44+
setProtocol(ProtocolType.HTTPS);
45+
setMethod(MethodType.POST);
46+
try {
47+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
48+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
49+
} catch (Exception e) {}
50+
}
51+
52+
public String getDbName() {
53+
return this.dbName;
54+
}
55+
56+
public void setDbName(String dbName) {
57+
this.dbName = dbName;
58+
if(dbName != null){
59+
putBodyParameter("DbName", dbName);
60+
}
61+
}
4962

5063
public Integer getPort() {
5164
return this.port;

aliyun-java-sdk-dg/src/main/java/com/aliyuncs/dg/model/v20190327/CreateGatewayRequest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@
2424
* @version
2525
*/
2626
public class CreateGatewayRequest extends RpcAcsRequest<CreateGatewayResponse> {
27-
27+
28+
29+
private String gatewayDesc;
30+
31+
private String gatewayName;
2832
public CreateGatewayRequest() {
2933
super("dg", "2019-03-27", "CreateGateway", "dg");
3034
setProtocol(ProtocolType.HTTPS);
@@ -35,10 +39,6 @@ public CreateGatewayRequest() {
3539
} catch (Exception e) {}
3640
}
3741

38-
private String gatewayDesc;
39-
40-
private String gatewayName;
41-
4242
public String getGatewayDesc() {
4343
return this.gatewayDesc;
4444
}

aliyun-java-sdk-dg/src/main/java/com/aliyuncs/dg/model/v20190327/CreateGatewayVerifyCodeRequest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@
2424
* @version
2525
*/
2626
public class CreateGatewayVerifyCodeRequest extends RpcAcsRequest<CreateGatewayVerifyCodeResponse> {
27-
27+
28+
29+
private String gatewayId;
2830
public CreateGatewayVerifyCodeRequest() {
2931
super("dg", "2019-03-27", "CreateGatewayVerifyCode", "dg");
3032
setProtocol(ProtocolType.HTTPS);
@@ -35,8 +37,6 @@ public CreateGatewayVerifyCodeRequest() {
3537
} catch (Exception e) {}
3638
}
3739

38-
private String gatewayId;
39-
4040
public String getGatewayId() {
4141
return this.gatewayId;
4242
}

aliyun-java-sdk-dg/src/main/java/com/aliyuncs/dg/model/v20190327/DeleteDatabaseRequest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@
2424
* @version
2525
*/
2626
public class DeleteDatabaseRequest extends RpcAcsRequest<DeleteDatabaseResponse> {
27-
27+
28+
29+
private String instanceId;
2830
public DeleteDatabaseRequest() {
2931
super("dg", "2019-03-27", "DeleteDatabase", "dg");
3032
setProtocol(ProtocolType.HTTPS);
@@ -35,8 +37,6 @@ public DeleteDatabaseRequest() {
3537
} catch (Exception e) {}
3638
}
3739

38-
private String instanceId;
39-
4040
public String getInstanceId() {
4141
return this.instanceId;
4242
}
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
package com.aliyuncs.dg.model.v20190327;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import com.aliyuncs.http.ProtocolType;
19+
import com.aliyuncs.http.MethodType;
20+
import com.aliyuncs.dg.Endpoint;
21+
22+
/**
23+
* @author auto create
24+
* @version
25+
*/
26+
public class DeleteGatewayInstanceRequest extends RpcAcsRequest<DeleteGatewayInstanceResponse> {
27+
28+
29+
private String gatewayInstanceId;
30+
31+
private String gatewayId;
32+
public DeleteGatewayInstanceRequest() {
33+
super("dg", "2019-03-27", "DeleteGatewayInstance", "dg");
34+
setProtocol(ProtocolType.HTTPS);
35+
setMethod(MethodType.POST);
36+
try {
37+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
38+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
39+
} catch (Exception e) {}
40+
}
41+
42+
public String getGatewayInstanceId() {
43+
return this.gatewayInstanceId;
44+
}
45+
46+
public void setGatewayInstanceId(String gatewayInstanceId) {
47+
this.gatewayInstanceId = gatewayInstanceId;
48+
if(gatewayInstanceId != null){
49+
putBodyParameter("GatewayInstanceId", gatewayInstanceId);
50+
}
51+
}
52+
53+
public String getGatewayId() {
54+
return this.gatewayId;
55+
}
56+
57+
public void setGatewayId(String gatewayId) {
58+
this.gatewayId = gatewayId;
59+
if(gatewayId != null){
60+
putBodyParameter("GatewayId", gatewayId);
61+
}
62+
}
63+
64+
@Override
65+
public Class<DeleteGatewayInstanceResponse> getResponseClass() {
66+
return DeleteGatewayInstanceResponse.class;
67+
}
68+
69+
}
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License");
3+
* you may not use this file except in compliance with the License.
4+
* You may obtain a copy of the License at
5+
*
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
*
8+
* Unless required by applicable law or agreed to in writing, software
9+
* distributed under the License is distributed on an "AS IS" BASIS,
10+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
* See the License for the specific language governing permissions and
12+
* limitations under the License.
13+
*/
14+
15+
package com.aliyuncs.dg.model.v20190327;
16+
17+
import com.aliyuncs.AcsResponse;
18+
import com.aliyuncs.dg.transform.v20190327.DeleteGatewayInstanceResponseUnmarshaller;
19+
import com.aliyuncs.transform.UnmarshallerContext;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class DeleteGatewayInstanceResponse extends AcsResponse {
26+
27+
private String requestId;
28+
29+
private Boolean success;
30+
31+
private String code;
32+
33+
private String errorMsg;
34+
35+
private String data;
36+
37+
public String getRequestId() {
38+
return this.requestId;
39+
}
40+
41+
public void setRequestId(String requestId) {
42+
this.requestId = requestId;
43+
}
44+
45+
public Boolean getSuccess() {
46+
return this.success;
47+
}
48+
49+
public void setSuccess(Boolean success) {
50+
this.success = success;
51+
}
52+
53+
public String getCode() {
54+
return this.code;
55+
}
56+
57+
public void setCode(String code) {
58+
this.code = code;
59+
}
60+
61+
public String getErrorMsg() {
62+
return this.errorMsg;
63+
}
64+
65+
public void setErrorMsg(String errorMsg) {
66+
this.errorMsg = errorMsg;
67+
}
68+
69+
public String getData() {
70+
return this.data;
71+
}
72+
73+
public void setData(String data) {
74+
this.data = data;
75+
}
76+
77+
@Override
78+
public DeleteGatewayInstanceResponse getInstance(UnmarshallerContext context) {
79+
return DeleteGatewayInstanceResponseUnmarshaller.unmarshall(this, context);
80+
}
81+
82+
@Override
83+
public boolean checkShowJsonItemName() {
84+
return false;
85+
}
86+
}

0 commit comments

Comments
 (0)