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 )
0 commit comments