Skip to content

Commit d08d89e

Browse files
committed
Support ListInstanceLoginAuditLog, ListProxySQLExecAuditLog API.
1 parent 6ae00fc commit d08d89e

File tree

4 files changed

+151
-1
lines changed

4 files changed

+151
-1
lines changed

aliyun-python-sdk-dms-enterprise/ChangeLog.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2021-11-18 Version: 1.24.0
2+
- Support ListInstanceLoginAuditLog, ListProxySQLExecAuditLog API.
3+
- Support GetOpLog API to return OpUserId information.
4+
15
2021-11-04 Version: 1.23.0
26
- Support ListSQLExecAuditLog API.
37
- Support ListUsers, GetUser API to return information of Email, Webhook and DingRobot.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.23.0'
1+
__version__ = '1.24.0'
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
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 aliyunsdkdms_enterprise.endpoint import endpoint_data
22+
23+
class ListInstanceLoginAuditLogRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'dms-enterprise', '2018-11-01', 'ListInstanceLoginAuditLog','dms-enterprise')
27+
self.set_method('POST')
28+
29+
if hasattr(self, "endpoint_map"):
30+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
31+
if hasattr(self, "endpoint_regional"):
32+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
33+
34+
def get_SearchName(self): # String
35+
return self.get_query_params().get('SearchName')
36+
37+
def set_SearchName(self, SearchName): # String
38+
self.add_query_param('SearchName', SearchName)
39+
def get_OpUserName(self): # String
40+
return self.get_query_params().get('OpUserName')
41+
42+
def set_OpUserName(self, OpUserName): # String
43+
self.add_query_param('OpUserName', OpUserName)
44+
def get_EndTime(self): # String
45+
return self.get_query_params().get('EndTime')
46+
47+
def set_EndTime(self, EndTime): # String
48+
self.add_query_param('EndTime', EndTime)
49+
def get_StartTime(self): # String
50+
return self.get_query_params().get('StartTime')
51+
52+
def set_StartTime(self, StartTime): # String
53+
self.add_query_param('StartTime', StartTime)
54+
def get_PageNumber(self): # Integer
55+
return self.get_query_params().get('PageNumber')
56+
57+
def set_PageNumber(self, PageNumber): # Integer
58+
self.add_query_param('PageNumber', PageNumber)
59+
def get_Tid(self): # Long
60+
return self.get_query_params().get('Tid')
61+
62+
def set_Tid(self, Tid): # Long
63+
self.add_query_param('Tid', Tid)
64+
def get_PageSize(self): # Integer
65+
return self.get_query_params().get('PageSize')
66+
67+
def set_PageSize(self, PageSize): # Integer
68+
self.add_query_param('PageSize', PageSize)
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
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 aliyunsdkdms_enterprise.endpoint import endpoint_data
22+
23+
class ListProxySQLExecAuditLogRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'dms-enterprise', '2018-11-01', 'ListProxySQLExecAuditLog','dms-enterprise')
27+
self.set_method('POST')
28+
29+
if hasattr(self, "endpoint_map"):
30+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
31+
if hasattr(self, "endpoint_regional"):
32+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
33+
34+
def get_SQLType(self): # String
35+
return self.get_query_params().get('SQLType')
36+
37+
def set_SQLType(self, SQLType): # String
38+
self.add_query_param('SQLType', SQLType)
39+
def get_SearchName(self): # String
40+
return self.get_query_params().get('SearchName')
41+
42+
def set_SearchName(self, SearchName): # String
43+
self.add_query_param('SearchName', SearchName)
44+
def get_OpUserName(self): # String
45+
return self.get_query_params().get('OpUserName')
46+
47+
def set_OpUserName(self, OpUserName): # String
48+
self.add_query_param('OpUserName', OpUserName)
49+
def get_EndTime(self): # Long
50+
return self.get_query_params().get('EndTime')
51+
52+
def set_EndTime(self, EndTime): # Long
53+
self.add_query_param('EndTime', EndTime)
54+
def get_StartTime(self): # Long
55+
return self.get_query_params().get('StartTime')
56+
57+
def set_StartTime(self, StartTime): # Long
58+
self.add_query_param('StartTime', StartTime)
59+
def get_PageNumber(self): # Integer
60+
return self.get_query_params().get('PageNumber')
61+
62+
def set_PageNumber(self, PageNumber): # Integer
63+
self.add_query_param('PageNumber', PageNumber)
64+
def get_Tid(self): # Long
65+
return self.get_query_params().get('Tid')
66+
67+
def set_Tid(self, Tid): # Long
68+
self.add_query_param('Tid', Tid)
69+
def get_PageSize(self): # Integer
70+
return self.get_query_params().get('PageSize')
71+
72+
def set_PageSize(self, PageSize): # Integer
73+
self.add_query_param('PageSize', PageSize)
74+
def get_ExecState(self): # String
75+
return self.get_query_params().get('ExecState')
76+
77+
def set_ExecState(self, ExecState): # String
78+
self.add_query_param('ExecState', ExecState)

0 commit comments

Comments
 (0)