Skip to content

Commit 17b2e4a

Browse files
committed
Support DescribeHaLogs.
1 parent c05af6d commit 17b2e4a

25 files changed

+2297
-4
lines changed

aliyun-java-sdk-polardb/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2025-06-13 Version: 1.8.55
2+
- Support DescribeHaLogs.
3+
14
2025-05-06 Version: 1.8.54
25
- Generated 2017-08-01 for `polardb`.
36

aliyun-java-sdk-polardb/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-polardb</artifactId>
66
<packaging>jar</packaging>
7-
<version>1.8.54</version>
7+
<version>1.8.55</version>
88
<name>aliyun-java-sdk-polardb</name>
99
<url>http://www.aliyun.com</url>
1010
<description>Aliyun Open API SDK for Java
Lines changed: 173 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,173 @@
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.polardb.model.v20170801;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import com.aliyuncs.http.ProtocolType;
19+
import com.aliyuncs.http.MethodType;
20+
import com.aliyuncs.polardb.Endpoint;
21+
22+
/**
23+
* @author auto create
24+
* @version
25+
*/
26+
public class CreateGlobalDataNetworkRequest extends RpcAcsRequest<CreateGlobalDataNetworkResponse> {
27+
28+
29+
private String destinationType;
30+
31+
private String description;
32+
33+
private String sourceType;
34+
35+
private String freezeSourceDuringSync;
36+
37+
private String sourceId;
38+
39+
private String destinationRegion;
40+
41+
private String destinationId;
42+
43+
private String sourceFileSystemPath;
44+
45+
private String destinationFileSystemPath;
46+
47+
private String sourceRegion;
48+
public CreateGlobalDataNetworkRequest() {
49+
super("polardb", "2017-08-01", "CreateGlobalDataNetwork", "polardb");
50+
setProtocol(ProtocolType.HTTPS);
51+
setMethod(MethodType.POST);
52+
try {
53+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
54+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
55+
} catch (Exception e) {}
56+
}
57+
58+
public String getDestinationType() {
59+
return this.destinationType;
60+
}
61+
62+
public void setDestinationType(String destinationType) {
63+
this.destinationType = destinationType;
64+
if(destinationType != null){
65+
putQueryParameter("DestinationType", destinationType);
66+
}
67+
}
68+
69+
public String getDescription() {
70+
return this.description;
71+
}
72+
73+
public void setDescription(String description) {
74+
this.description = description;
75+
if(description != null){
76+
putQueryParameter("Description", description);
77+
}
78+
}
79+
80+
public String getSourceType() {
81+
return this.sourceType;
82+
}
83+
84+
public void setSourceType(String sourceType) {
85+
this.sourceType = sourceType;
86+
if(sourceType != null){
87+
putQueryParameter("SourceType", sourceType);
88+
}
89+
}
90+
91+
public String getFreezeSourceDuringSync() {
92+
return this.freezeSourceDuringSync;
93+
}
94+
95+
public void setFreezeSourceDuringSync(String freezeSourceDuringSync) {
96+
this.freezeSourceDuringSync = freezeSourceDuringSync;
97+
if(freezeSourceDuringSync != null){
98+
putQueryParameter("FreezeSourceDuringSync", freezeSourceDuringSync);
99+
}
100+
}
101+
102+
public String getSourceId() {
103+
return this.sourceId;
104+
}
105+
106+
public void setSourceId(String sourceId) {
107+
this.sourceId = sourceId;
108+
if(sourceId != null){
109+
putQueryParameter("SourceId", sourceId);
110+
}
111+
}
112+
113+
public String getDestinationRegion() {
114+
return this.destinationRegion;
115+
}
116+
117+
public void setDestinationRegion(String destinationRegion) {
118+
this.destinationRegion = destinationRegion;
119+
if(destinationRegion != null){
120+
putQueryParameter("DestinationRegion", destinationRegion);
121+
}
122+
}
123+
124+
public String getDestinationId() {
125+
return this.destinationId;
126+
}
127+
128+
public void setDestinationId(String destinationId) {
129+
this.destinationId = destinationId;
130+
if(destinationId != null){
131+
putQueryParameter("DestinationId", destinationId);
132+
}
133+
}
134+
135+
public String getSourceFileSystemPath() {
136+
return this.sourceFileSystemPath;
137+
}
138+
139+
public void setSourceFileSystemPath(String sourceFileSystemPath) {
140+
this.sourceFileSystemPath = sourceFileSystemPath;
141+
if(sourceFileSystemPath != null){
142+
putQueryParameter("SourceFileSystemPath", sourceFileSystemPath);
143+
}
144+
}
145+
146+
public String getDestinationFileSystemPath() {
147+
return this.destinationFileSystemPath;
148+
}
149+
150+
public void setDestinationFileSystemPath(String destinationFileSystemPath) {
151+
this.destinationFileSystemPath = destinationFileSystemPath;
152+
if(destinationFileSystemPath != null){
153+
putQueryParameter("DestinationFileSystemPath", destinationFileSystemPath);
154+
}
155+
}
156+
157+
public String getSourceRegion() {
158+
return this.sourceRegion;
159+
}
160+
161+
public void setSourceRegion(String sourceRegion) {
162+
this.sourceRegion = sourceRegion;
163+
if(sourceRegion != null){
164+
putQueryParameter("SourceRegion", sourceRegion);
165+
}
166+
}
167+
168+
@Override
169+
public Class<CreateGlobalDataNetworkResponse> getResponseClass() {
170+
return CreateGlobalDataNetworkResponse.class;
171+
}
172+
173+
}
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
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.polardb.model.v20170801;
16+
17+
import com.aliyuncs.AcsResponse;
18+
import com.aliyuncs.polardb.transform.v20170801.CreateGlobalDataNetworkResponseUnmarshaller;
19+
import com.aliyuncs.transform.UnmarshallerContext;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class CreateGlobalDataNetworkResponse extends AcsResponse {
26+
27+
private String requestId;
28+
29+
private String networkId;
30+
31+
private String channelId;
32+
33+
public String getRequestId() {
34+
return this.requestId;
35+
}
36+
37+
public void setRequestId(String requestId) {
38+
this.requestId = requestId;
39+
}
40+
41+
public String getNetworkId() {
42+
return this.networkId;
43+
}
44+
45+
public void setNetworkId(String networkId) {
46+
this.networkId = networkId;
47+
}
48+
49+
public String getChannelId() {
50+
return this.channelId;
51+
}
52+
53+
public void setChannelId(String channelId) {
54+
this.channelId = channelId;
55+
}
56+
57+
@Override
58+
public CreateGlobalDataNetworkResponse getInstance(UnmarshallerContext context) {
59+
return CreateGlobalDataNetworkResponseUnmarshaller.unmarshall(this, context);
60+
}
61+
62+
@Override
63+
public boolean checkShowJsonItemName() {
64+
return false;
65+
}
66+
}

aliyun-java-sdk-polardb/src/main/java/com/aliyuncs/polardb/model/v20170801/CreateGlobalDatabaseNetworkRequest.java

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ public class CreateGlobalDatabaseNetworkRequest extends RpcAcsRequest<CreateGlob
4141

4242
private Boolean enableGlobalDomainName;
4343

44-
private Long ownerId;
44+
private Long ownerId;
45+
46+
private String gDNVersion;
4547
public CreateGlobalDatabaseNetworkRequest() {
4648
super("polardb", "2017-08-01", "CreateGlobalDatabaseNetwork", "polardb");
4749
setMethod(MethodType.POST);
@@ -148,6 +150,17 @@ public void setOwnerId(Long ownerId) {
148150
if(ownerId != null){
149151
putQueryParameter("OwnerId", ownerId.toString());
150152
}
153+
}
154+
155+
public String getGDNVersion() {
156+
return this.gDNVersion;
157+
}
158+
159+
public void setGDNVersion(String gDNVersion) {
160+
this.gDNVersion = gDNVersion;
161+
if(gDNVersion != null){
162+
putQueryParameter("GDNVersion", gDNVersion);
163+
}
151164
}
152165

153166
@Override
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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.polardb.model.v20170801;
16+
17+
import com.aliyuncs.RpcAcsRequest;
18+
import com.aliyuncs.http.ProtocolType;
19+
import com.aliyuncs.http.MethodType;
20+
import com.aliyuncs.polardb.Endpoint;
21+
22+
/**
23+
* @author auto create
24+
* @version
25+
*/
26+
public class DeleteGlobalDataNetworkRequest extends RpcAcsRequest<DeleteGlobalDataNetworkResponse> {
27+
28+
29+
private String networkId;
30+
public DeleteGlobalDataNetworkRequest() {
31+
super("polardb", "2017-08-01", "DeleteGlobalDataNetwork", "polardb");
32+
setProtocol(ProtocolType.HTTPS);
33+
setMethod(MethodType.POST);
34+
try {
35+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
36+
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
37+
} catch (Exception e) {}
38+
}
39+
40+
public String getNetworkId() {
41+
return this.networkId;
42+
}
43+
44+
public void setNetworkId(String networkId) {
45+
this.networkId = networkId;
46+
if(networkId != null){
47+
putQueryParameter("NetworkId", networkId);
48+
}
49+
}
50+
51+
@Override
52+
public Class<DeleteGlobalDataNetworkResponse> getResponseClass() {
53+
return DeleteGlobalDataNetworkResponse.class;
54+
}
55+
56+
}
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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.polardb.model.v20170801;
16+
17+
import com.aliyuncs.AcsResponse;
18+
import com.aliyuncs.polardb.transform.v20170801.DeleteGlobalDataNetworkResponseUnmarshaller;
19+
import com.aliyuncs.transform.UnmarshallerContext;
20+
21+
/**
22+
* @author auto create
23+
* @version
24+
*/
25+
public class DeleteGlobalDataNetworkResponse extends AcsResponse {
26+
27+
private String requestId;
28+
29+
public String getRequestId() {
30+
return this.requestId;
31+
}
32+
33+
public void setRequestId(String requestId) {
34+
this.requestId = requestId;
35+
}
36+
37+
@Override
38+
public DeleteGlobalDataNetworkResponse getInstance(UnmarshallerContext context) {
39+
return DeleteGlobalDataNetworkResponseUnmarshaller.unmarshall(this, context);
40+
}
41+
42+
@Override
43+
public boolean checkShowJsonItemName() {
44+
return false;
45+
}
46+
}

0 commit comments

Comments
 (0)