Skip to content

Commit e137981

Browse files
committed
Support DescribeHaLogs.
1 parent fc79b6f commit e137981

9 files changed

+289
-1
lines changed

aliyun-python-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.56
2+
- Support DescribeHaLogs.
3+
14
2025-05-06 Version: 1.8.55
25
- Generated 2017-08-01 for `polardb`.
36

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.8.55'
1+
__version__ = '1.8.56'
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RpcRequest
21+
from aliyunsdkpolardb.endpoint import endpoint_data
22+
23+
class CreateGlobalDataNetworkRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'polardb', '2017-08-01', 'CreateGlobalDataNetwork','polardb')
27+
self.set_protocol_type('https')
28+
self.set_method('POST')
29+
30+
if hasattr(self, "endpoint_map"):
31+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
32+
if hasattr(self, "endpoint_regional"):
33+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
34+
35+
def get_DestinationType(self): # String
36+
return self.get_query_params().get('DestinationType')
37+
38+
def set_DestinationType(self, DestinationType): # String
39+
self.add_query_param('DestinationType', DestinationType)
40+
def get_Description(self): # String
41+
return self.get_query_params().get('Description')
42+
43+
def set_Description(self, Description): # String
44+
self.add_query_param('Description', Description)
45+
def get_SourceType(self): # String
46+
return self.get_query_params().get('SourceType')
47+
48+
def set_SourceType(self, SourceType): # String
49+
self.add_query_param('SourceType', SourceType)
50+
def get_FreezeSourceDuringSync(self): # String
51+
return self.get_query_params().get('FreezeSourceDuringSync')
52+
53+
def set_FreezeSourceDuringSync(self, FreezeSourceDuringSync): # String
54+
self.add_query_param('FreezeSourceDuringSync', FreezeSourceDuringSync)
55+
def get_SourceId(self): # String
56+
return self.get_query_params().get('SourceId')
57+
58+
def set_SourceId(self, SourceId): # String
59+
self.add_query_param('SourceId', SourceId)
60+
def get_DestinationRegion(self): # String
61+
return self.get_query_params().get('DestinationRegion')
62+
63+
def set_DestinationRegion(self, DestinationRegion): # String
64+
self.add_query_param('DestinationRegion', DestinationRegion)
65+
def get_DestinationId(self): # String
66+
return self.get_query_params().get('DestinationId')
67+
68+
def set_DestinationId(self, DestinationId): # String
69+
self.add_query_param('DestinationId', DestinationId)
70+
def get_SourceFileSystemPath(self): # String
71+
return self.get_query_params().get('SourceFileSystemPath')
72+
73+
def set_SourceFileSystemPath(self, SourceFileSystemPath): # String
74+
self.add_query_param('SourceFileSystemPath', SourceFileSystemPath)
75+
def get_DestinationFileSystemPath(self): # String
76+
return self.get_query_params().get('DestinationFileSystemPath')
77+
78+
def set_DestinationFileSystemPath(self, DestinationFileSystemPath): # String
79+
self.add_query_param('DestinationFileSystemPath', DestinationFileSystemPath)
80+
def get_SourceRegion(self): # String
81+
return self.get_query_params().get('SourceRegion')
82+
83+
def set_SourceRegion(self, SourceRegion): # String
84+
self.add_query_param('SourceRegion', SourceRegion)

aliyun-python-sdk-polardb/aliyunsdkpolardb/request/v20170801/CreateGlobalDatabaseNetworkRequest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,8 @@ def get_OwnerId(self): # Long
7676

7777
def set_OwnerId(self, OwnerId): # Long
7878
self.add_query_param('OwnerId', OwnerId)
79+
def get_GDNVersion(self): # String
80+
return self.get_query_params().get('GDNVersion')
81+
82+
def set_GDNVersion(self, GDNVersion): # String
83+
self.add_query_param('GDNVersion', GDNVersion)
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RpcRequest
21+
from aliyunsdkpolardb.endpoint import endpoint_data
22+
23+
class DeleteGlobalDataNetworkRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'polardb', '2017-08-01', 'DeleteGlobalDataNetwork','polardb')
27+
self.set_protocol_type('https')
28+
self.set_method('POST')
29+
30+
if hasattr(self, "endpoint_map"):
31+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
32+
if hasattr(self, "endpoint_regional"):
33+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
34+
35+
def get_NetworkId(self): # String
36+
return self.get_query_params().get('NetworkId')
37+
38+
def set_NetworkId(self, NetworkId): # String
39+
self.add_query_param('NetworkId', NetworkId)
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RpcRequest
21+
from aliyunsdkpolardb.endpoint import endpoint_data
22+
23+
class DescribeGlobalDataNetworkListRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'polardb', '2017-08-01', 'DescribeGlobalDataNetworkList','polardb')
27+
self.set_protocol_type('https')
28+
self.set_method('POST')
29+
30+
if hasattr(self, "endpoint_map"):
31+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
32+
if hasattr(self, "endpoint_regional"):
33+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
34+
35+
def get_PageNumber(self): # Long
36+
return self.get_query_params().get('PageNumber')
37+
38+
def set_PageNumber(self, PageNumber): # Long
39+
self.add_query_param('PageNumber', PageNumber)
40+
def get_PageSize(self): # Long
41+
return self.get_query_params().get('PageSize')
42+
43+
def set_PageSize(self, PageSize): # Long
44+
self.add_query_param('PageSize', PageSize)
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RpcRequest
21+
from aliyunsdkpolardb.endpoint import endpoint_data
22+
23+
class DescribeHALogsRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'polardb', '2017-08-01', 'DescribeHALogs','polardb')
27+
self.set_protocol_type('https')
28+
self.set_method('POST')
29+
30+
if hasattr(self, "endpoint_map"):
31+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
32+
if hasattr(self, "endpoint_regional"):
33+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
34+
35+
def get_DBNodeId(self): # String
36+
return self.get_query_params().get('DBNodeId')
37+
38+
def set_DBNodeId(self, DBNodeId): # String
39+
self.add_query_param('DBNodeId', DBNodeId)
40+
def get_StartTime(self): # String
41+
return self.get_query_params().get('StartTime')
42+
43+
def set_StartTime(self, StartTime): # String
44+
self.add_query_param('StartTime', StartTime)
45+
def get_PageNumber(self): # Integer
46+
return self.get_query_params().get('PageNumber')
47+
48+
def set_PageNumber(self, PageNumber): # Integer
49+
self.add_query_param('PageNumber', PageNumber)
50+
def get_LogType(self): # String
51+
return self.get_query_params().get('LogType')
52+
53+
def set_LogType(self, LogType): # String
54+
self.add_query_param('LogType', LogType)
55+
def get_PageSize(self): # Integer
56+
return self.get_query_params().get('PageSize')
57+
58+
def set_PageSize(self, PageSize): # Integer
59+
self.add_query_param('PageSize', PageSize)
60+
def get_DBClusterId(self): # String
61+
return self.get_query_params().get('DBClusterId')
62+
63+
def set_DBClusterId(self, DBClusterId): # String
64+
self.add_query_param('DBClusterId', DBClusterId)
65+
def get_EndTime(self): # String
66+
return self.get_query_params().get('EndTime')
67+
68+
def set_EndTime(self, EndTime): # String
69+
self.add_query_param('EndTime', EndTime)
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RpcRequest
21+
from aliyunsdkpolardb.endpoint import endpoint_data
22+
23+
class ReactivateDBClusterBackupRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'polardb', '2017-08-01', 'ReactivateDBClusterBackup','polardb')
27+
self.set_protocol_type('https')
28+
self.set_method('POST')
29+
30+
if hasattr(self, "endpoint_map"):
31+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
32+
if hasattr(self, "endpoint_regional"):
33+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
34+
35+
def get_DBClusterId(self): # String
36+
return self.get_query_params().get('DBClusterId')
37+
38+
def set_DBClusterId(self, DBClusterId): # String
39+
self.add_query_param('DBClusterId', DBClusterId)

aliyun-python-sdk-polardb/aliyunsdkpolardb/request/v20170801/RemoveDBClusterFromGDNRequest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,8 @@ def get_OwnerId(self): # Long
6666

6767
def set_OwnerId(self, OwnerId): # Long
6868
self.add_query_param('OwnerId', OwnerId)
69+
def get_Force(self): # Boolean
70+
return self.get_query_params().get('Force')
71+
72+
def set_Force(self, Force): # Boolean
73+
self.add_query_param('Force', Force)

0 commit comments

Comments
 (0)