Skip to content

Commit ac6503d

Browse files
committed
DMS-ENTERPRISE SDK Auto Released By yuyang.cjx,Version:1.1.0
发布日志: 1, Add EnableUser interface, Support admin user to enable another user. 2, Add DisableUser Interface, Support admin user to disable another user. 3, Add DeleteUser Interface, Support admin user to delete another user.
1 parent 4aa1639 commit ac6503d

File tree

5 files changed

+114
-1
lines changed

5 files changed

+114
-1
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2018-12-29 Version: 1.1.0
2+
1, Add EnableUser interface, Support admin user to enable another user.
3+
2, Add DisableUser Interface, Support admin user to disable another user.
4+
3, Add DeleteUser Interface, Support admin user to delete another user.
5+
16
2018-11-26 Version: 1.0.0
27
1, Add RegisterInstance interface, Support admin or DBA user to register new db instance.
38
2, Add RegisterUser Interface, Support admin user to register new user.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.0.0"
1+
__version__ = "1.1.0"
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
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+
class DeleteUserRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'dms-enterprise', '2018-11-01', 'DeleteUser','dmsenterprise')
25+
26+
def get_Uid(self):
27+
return self.get_query_params().get('Uid')
28+
29+
def set_Uid(self,Uid):
30+
self.add_query_param('Uid',Uid)
31+
32+
def get_Tid(self):
33+
return self.get_query_params().get('Tid')
34+
35+
def set_Tid(self,Tid):
36+
self.add_query_param('Tid',Tid)
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
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+
class DisableUserRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'dms-enterprise', '2018-11-01', 'DisableUser','dmsenterprise')
25+
26+
def get_Uid(self):
27+
return self.get_query_params().get('Uid')
28+
29+
def set_Uid(self,Uid):
30+
self.add_query_param('Uid',Uid)
31+
32+
def get_Tid(self):
33+
return self.get_query_params().get('Tid')
34+
35+
def set_Tid(self,Tid):
36+
self.add_query_param('Tid',Tid)
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
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+
class EnableUserRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'dms-enterprise', '2018-11-01', 'EnableUser','dmsenterprise')
25+
26+
def get_Uid(self):
27+
return self.get_query_params().get('Uid')
28+
29+
def set_Uid(self,Uid):
30+
self.add_query_param('Uid',Uid)
31+
32+
def get_Tid(self):
33+
return self.get_query_params().get('Tid')
34+
35+
def set_Tid(self,Tid):
36+
self.add_query_param('Tid',Tid)

0 commit comments

Comments
 (0)