|
| 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 ArmsQueryDataSetRequest(RpcRequest): |
| 22 | + |
| 23 | + def __init__(self): |
| 24 | + RpcRequest.__init__(self, 'ARMS', '2016-08-04', 'ArmsQueryDataSet') |
| 25 | + |
| 26 | + def get_DateStr(self): |
| 27 | + return self.get_query_params().get('DateStr') |
| 28 | + |
| 29 | + def set_DateStr(self,DateStr): |
| 30 | + self.add_query_param('DateStr',DateStr) |
| 31 | + |
| 32 | + def get_MinTime(self): |
| 33 | + return self.get_query_params().get('MinTime') |
| 34 | + |
| 35 | + def set_MinTime(self,MinTime): |
| 36 | + self.add_query_param('MinTime',MinTime) |
| 37 | + |
| 38 | + def get_MaxTime(self): |
| 39 | + return self.get_query_params().get('MaxTime') |
| 40 | + |
| 41 | + def set_MaxTime(self,MaxTime): |
| 42 | + self.add_query_param('MaxTime',MaxTime) |
| 43 | + |
| 44 | + def get_Measuress(self): |
| 45 | + return self.get_query_params().get('Measuress') |
| 46 | + |
| 47 | + def set_Measuress(self,Measuress): |
| 48 | + for i in range(len(Measuress)): |
| 49 | + if Measuress[i] is not None: |
| 50 | + self.add_query_param('Measures.' + str(i + 1) , Measuress[i]); |
| 51 | + |
| 52 | + def get_IntervalInSec(self): |
| 53 | + return self.get_query_params().get('IntervalInSec') |
| 54 | + |
| 55 | + def set_IntervalInSec(self,IntervalInSec): |
| 56 | + self.add_query_param('IntervalInSec',IntervalInSec) |
| 57 | + |
| 58 | + def get_DatasetId(self): |
| 59 | + return self.get_query_params().get('DatasetId') |
| 60 | + |
| 61 | + def set_DatasetId(self,DatasetId): |
| 62 | + self.add_query_param('DatasetId',DatasetId) |
| 63 | + |
| 64 | + def get_Dimensionss(self): |
| 65 | + return self.get_query_params().get('Dimensionss') |
| 66 | + |
| 67 | + def set_Dimensionss(self,Dimensionss): |
| 68 | + for i in range(len(Dimensionss)): |
| 69 | + if Dimensionss[i].get('Value') is not None: |
| 70 | + self.add_query_param('Dimensions.' + str(i + 1) + '.Value' , Dimensionss[i].get('Value')) |
| 71 | + if Dimensionss[i].get('Key') is not None: |
| 72 | + self.add_query_param('Dimensions.' + str(i + 1) + '.Key' , Dimensionss[i].get('Key')) |
0 commit comments