Skip to content

Commit 5eb1984

Browse files
committed
Support DescribeHaLogs.
1 parent ed0045d commit 5eb1984

25 files changed

+2869
-1
lines changed

CHANGELOG

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.28
2+
- Support DescribeHaLogs.
3+
14
2025-06-12 Version: 1.0.0
25
- Support restart node list and re-elect zookeeper.
36

Lines changed: 204 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,204 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
using System.Collections.Generic;
20+
21+
using Aliyun.Acs.Core;
22+
using Aliyun.Acs.Core.Http;
23+
using Aliyun.Acs.Core.Transform;
24+
using Aliyun.Acs.Core.Utils;
25+
using Aliyun.Acs.polardb.Transform;
26+
using Aliyun.Acs.polardb.Transform.V20170801;
27+
28+
namespace Aliyun.Acs.polardb.Model.V20170801
29+
{
30+
public class CreateGlobalDataNetworkRequest : RpcAcsRequest<CreateGlobalDataNetworkResponse>
31+
{
32+
public CreateGlobalDataNetworkRequest()
33+
: base("polardb", "2017-08-01", "CreateGlobalDataNetwork", "polardb", "openAPI")
34+
{
35+
if (this.GetType().GetProperty("ProductEndpointMap") != null && this.GetType().GetProperty("ProductEndpointType") != null)
36+
{
37+
this.GetType().GetProperty("ProductEndpointMap").SetValue(this, Aliyun.Acs.polardb.Endpoint.endpointMap, null);
38+
this.GetType().GetProperty("ProductEndpointType").SetValue(this, Aliyun.Acs.polardb.Endpoint.endpointRegionalType, null);
39+
}
40+
Protocol = ProtocolType.HTTPS;
41+
Method = MethodType.POST;
42+
}
43+
44+
private string destinationType;
45+
46+
private string description;
47+
48+
private string sourceType;
49+
50+
private string freezeSourceDuringSync;
51+
52+
private string sourceId;
53+
54+
private string destinationRegion;
55+
56+
private string destinationId;
57+
58+
private string sourceFileSystemPath;
59+
60+
private string destinationFileSystemPath;
61+
62+
private string sourceRegion;
63+
64+
public string DestinationType
65+
{
66+
get
67+
{
68+
return destinationType;
69+
}
70+
set
71+
{
72+
destinationType = value;
73+
DictionaryUtil.Add(QueryParameters, "DestinationType", value);
74+
}
75+
}
76+
77+
public string Description
78+
{
79+
get
80+
{
81+
return description;
82+
}
83+
set
84+
{
85+
description = value;
86+
DictionaryUtil.Add(QueryParameters, "Description", value);
87+
}
88+
}
89+
90+
public string SourceType
91+
{
92+
get
93+
{
94+
return sourceType;
95+
}
96+
set
97+
{
98+
sourceType = value;
99+
DictionaryUtil.Add(QueryParameters, "SourceType", value);
100+
}
101+
}
102+
103+
public string FreezeSourceDuringSync
104+
{
105+
get
106+
{
107+
return freezeSourceDuringSync;
108+
}
109+
set
110+
{
111+
freezeSourceDuringSync = value;
112+
DictionaryUtil.Add(QueryParameters, "FreezeSourceDuringSync", value);
113+
}
114+
}
115+
116+
public string SourceId
117+
{
118+
get
119+
{
120+
return sourceId;
121+
}
122+
set
123+
{
124+
sourceId = value;
125+
DictionaryUtil.Add(QueryParameters, "SourceId", value);
126+
}
127+
}
128+
129+
public string DestinationRegion
130+
{
131+
get
132+
{
133+
return destinationRegion;
134+
}
135+
set
136+
{
137+
destinationRegion = value;
138+
DictionaryUtil.Add(QueryParameters, "DestinationRegion", value);
139+
}
140+
}
141+
142+
public string DestinationId
143+
{
144+
get
145+
{
146+
return destinationId;
147+
}
148+
set
149+
{
150+
destinationId = value;
151+
DictionaryUtil.Add(QueryParameters, "DestinationId", value);
152+
}
153+
}
154+
155+
public string SourceFileSystemPath
156+
{
157+
get
158+
{
159+
return sourceFileSystemPath;
160+
}
161+
set
162+
{
163+
sourceFileSystemPath = value;
164+
DictionaryUtil.Add(QueryParameters, "SourceFileSystemPath", value);
165+
}
166+
}
167+
168+
public string DestinationFileSystemPath
169+
{
170+
get
171+
{
172+
return destinationFileSystemPath;
173+
}
174+
set
175+
{
176+
destinationFileSystemPath = value;
177+
DictionaryUtil.Add(QueryParameters, "DestinationFileSystemPath", value);
178+
}
179+
}
180+
181+
public string SourceRegion
182+
{
183+
get
184+
{
185+
return sourceRegion;
186+
}
187+
set
188+
{
189+
sourceRegion = value;
190+
DictionaryUtil.Add(QueryParameters, "SourceRegion", value);
191+
}
192+
}
193+
194+
public override bool CheckShowJsonItemName()
195+
{
196+
return false;
197+
}
198+
199+
public override CreateGlobalDataNetworkResponse GetResponse(UnmarshallerContext unmarshallerContext)
200+
{
201+
return CreateGlobalDataNetworkResponseUnmarshaller.Unmarshall(unmarshallerContext);
202+
}
203+
}
204+
}
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
using System.Collections.Generic;
20+
using Newtonsoft.Json;
21+
using Aliyun.Acs.Core;
22+
23+
namespace Aliyun.Acs.polardb.Model.V20170801
24+
{
25+
public class CreateGlobalDataNetworkResponse : AcsResponse
26+
{
27+
28+
private string requestId;
29+
30+
private string networkId;
31+
32+
private string channelId;
33+
34+
public string RequestId
35+
{
36+
get
37+
{
38+
return requestId;
39+
}
40+
set
41+
{
42+
requestId = value;
43+
}
44+
}
45+
46+
public string NetworkId
47+
{
48+
get
49+
{
50+
return networkId;
51+
}
52+
set
53+
{
54+
networkId = value;
55+
}
56+
}
57+
58+
public string ChannelId
59+
{
60+
get
61+
{
62+
return channelId;
63+
}
64+
set
65+
{
66+
channelId = value;
67+
}
68+
}
69+
}
70+
}

aliyun-net-sdk-polardb/Polardb/Model/V20170801/CreateGlobalDatabaseNetworkRequest.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ public CreateGlobalDatabaseNetworkRequest()
5858

5959
private long? ownerId;
6060

61+
private string gDNVersion;
62+
6163
public long? ResourceOwnerId
6264
{
6365
get
@@ -175,6 +177,19 @@ public long? OwnerId
175177
}
176178
}
177179

180+
public string GDNVersion
181+
{
182+
get
183+
{
184+
return gDNVersion;
185+
}
186+
set
187+
{
188+
gDNVersion = value;
189+
DictionaryUtil.Add(QueryParameters, "GDNVersion", value);
190+
}
191+
}
192+
178193
public override bool CheckShowJsonItemName()
179194
{
180195
return false;
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
using System.Collections.Generic;
20+
21+
using Aliyun.Acs.Core;
22+
using Aliyun.Acs.Core.Http;
23+
using Aliyun.Acs.Core.Transform;
24+
using Aliyun.Acs.Core.Utils;
25+
using Aliyun.Acs.polardb.Transform;
26+
using Aliyun.Acs.polardb.Transform.V20170801;
27+
28+
namespace Aliyun.Acs.polardb.Model.V20170801
29+
{
30+
public class DeleteGlobalDataNetworkRequest : RpcAcsRequest<DeleteGlobalDataNetworkResponse>
31+
{
32+
public DeleteGlobalDataNetworkRequest()
33+
: base("polardb", "2017-08-01", "DeleteGlobalDataNetwork", "polardb", "openAPI")
34+
{
35+
if (this.GetType().GetProperty("ProductEndpointMap") != null && this.GetType().GetProperty("ProductEndpointType") != null)
36+
{
37+
this.GetType().GetProperty("ProductEndpointMap").SetValue(this, Aliyun.Acs.polardb.Endpoint.endpointMap, null);
38+
this.GetType().GetProperty("ProductEndpointType").SetValue(this, Aliyun.Acs.polardb.Endpoint.endpointRegionalType, null);
39+
}
40+
Protocol = ProtocolType.HTTPS;
41+
Method = MethodType.POST;
42+
}
43+
44+
private string networkId;
45+
46+
public string NetworkId
47+
{
48+
get
49+
{
50+
return networkId;
51+
}
52+
set
53+
{
54+
networkId = value;
55+
DictionaryUtil.Add(QueryParameters, "NetworkId", value);
56+
}
57+
}
58+
59+
public override bool CheckShowJsonItemName()
60+
{
61+
return false;
62+
}
63+
64+
public override DeleteGlobalDataNetworkResponse GetResponse(UnmarshallerContext unmarshallerContext)
65+
{
66+
return DeleteGlobalDataNetworkResponseUnmarshaller.Unmarshall(unmarshallerContext);
67+
}
68+
}
69+
}

0 commit comments

Comments
 (0)