Skip to content

Commit 89ef24b

Browse files
committed
Supported GetSqlOptimizeAdvice.
1 parent e6467ab commit 89ef24b

File tree

4 files changed

+170
-1
lines changed

4 files changed

+170
-1
lines changed

aliyun-python-sdk-das/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2021-09-16 Version: 1.0.7
2+
- Supported GetSqlOptimizeAdvice.
3+
14
2021-08-16 Version: 1.0.6
25
- Add SQL throttle APIs for MySQL and PolarDB MySQL.
36

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.0.6'
1+
__version__ = '1.0.7'
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
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 aliyunsdkdas.endpoint import endpoint_data
22+
23+
class CreateAdamBenchTaskRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'DAS', '2020-01-16', 'CreateAdamBenchTask','das')
27+
self.set_method('POST')
28+
if hasattr(self, "endpoint_map"):
29+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
30+
if hasattr(self, "endpoint_regional"):
31+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
32+
33+
34+
def get_SrcEngine(self):
35+
return self.get_query_params().get('SrcEngine')
36+
37+
def set_SrcEngine(self,SrcEngine):
38+
self.add_query_param('SrcEngine',SrcEngine)
39+
40+
def get_Description(self):
41+
return self.get_query_params().get('Description')
42+
43+
def set_Description(self,Description):
44+
self.add_query_param('Description',Description)
45+
46+
def get_RequestStartTime(self):
47+
return self.get_query_params().get('RequestStartTime')
48+
49+
def set_RequestStartTime(self,RequestStartTime):
50+
self.add_query_param('RequestStartTime',RequestStartTime)
51+
52+
def get_DstSuperPassword(self):
53+
return self.get_query_params().get('DstSuperPassword')
54+
55+
def set_DstSuperPassword(self,DstSuperPassword):
56+
self.add_query_param('DstSuperPassword',DstSuperPassword)
57+
58+
def get_DstSuperAccount(self):
59+
return self.get_query_params().get('DstSuperAccount')
60+
61+
def set_DstSuperAccount(self,DstSuperAccount):
62+
self.add_query_param('DstSuperAccount',DstSuperAccount)
63+
64+
def get_Rate(self):
65+
return self.get_query_params().get('Rate')
66+
67+
def set_Rate(self,Rate):
68+
self.add_query_param('Rate',Rate)
69+
70+
def get_DstInstanceId(self):
71+
return self.get_query_params().get('DstInstanceId')
72+
73+
def set_DstInstanceId(self,DstInstanceId):
74+
self.add_query_param('DstInstanceId',DstInstanceId)
75+
76+
def get_RequestDuration(self):
77+
return self.get_query_params().get('RequestDuration')
78+
79+
def set_RequestDuration(self,RequestDuration):
80+
self.add_query_param('RequestDuration',RequestDuration)
81+
82+
def get_SrcMeanQps(self):
83+
return self.get_query_params().get('SrcMeanQps')
84+
85+
def set_SrcMeanQps(self,SrcMeanQps):
86+
self.add_query_param('SrcMeanQps',SrcMeanQps)
87+
88+
def get_SrcMaxQps(self):
89+
return self.get_query_params().get('SrcMaxQps')
90+
91+
def set_SrcMaxQps(self,SrcMaxQps):
92+
self.add_query_param('SrcMaxQps',SrcMaxQps)
93+
94+
def get_SrcEngineVersion(self):
95+
return self.get_query_params().get('SrcEngineVersion')
96+
97+
def set_SrcEngineVersion(self,SrcEngineVersion):
98+
self.add_query_param('SrcEngineVersion',SrcEngineVersion)
99+
100+
def get_SrcSqlOssAddr(self):
101+
return self.get_query_params().get('SrcSqlOssAddr')
102+
103+
def set_SrcSqlOssAddr(self,SrcSqlOssAddr):
104+
self.add_query_param('SrcSqlOssAddr',SrcSqlOssAddr)
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
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 aliyunsdkdas.endpoint import endpoint_data
22+
23+
class GetSqlOptimizeAdviceRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'DAS', '2020-01-16', 'GetSqlOptimizeAdvice','das')
27+
self.set_method('POST')
28+
if hasattr(self, "endpoint_map"):
29+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
30+
if hasattr(self, "endpoint_regional"):
31+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
32+
33+
34+
def get_EndDt(self):
35+
return self.get_query_params().get('EndDt')
36+
37+
def set_EndDt(self,EndDt):
38+
self.add_query_param('EndDt',EndDt)
39+
40+
def get_ConsoleContext(self):
41+
return self.get_query_params().get('ConsoleContext')
42+
43+
def set_ConsoleContext(self,ConsoleContext):
44+
self.add_query_param('ConsoleContext',ConsoleContext)
45+
46+
def get_Engine(self):
47+
return self.get_query_params().get('Engine')
48+
49+
def set_Engine(self,Engine):
50+
self.add_query_param('Engine',Engine)
51+
52+
def get_InstanceIds(self):
53+
return self.get_query_params().get('InstanceIds')
54+
55+
def set_InstanceIds(self,InstanceIds):
56+
self.add_query_param('InstanceIds',InstanceIds)
57+
58+
def get_StartDt(self):
59+
return self.get_query_params().get('StartDt')
60+
61+
def set_StartDt(self,StartDt):
62+
self.add_query_param('StartDt',StartDt)

0 commit comments

Comments
 (0)