|
| 1 | +<?php |
| 2 | + |
| 3 | +namespace ARMS\Request\V20160804; |
| 4 | + |
| 5 | +/** |
| 6 | + * @deprecated Please use https://github.com/aliyun/openapi-sdk-php |
| 7 | + * |
| 8 | + * Request of ArmsQueryDataSet |
| 9 | + * |
| 10 | + * @method string getDateStr() |
| 11 | + * @method string getMinTime() |
| 12 | + * @method string getMaxTime() |
| 13 | + * @method array getMeasuress() |
| 14 | + * @method string getIntervalInSec() |
| 15 | + * @method string getDatasetId() |
| 16 | + * @method array getDimensionss() |
| 17 | + */ |
| 18 | +class ArmsQueryDataSetRequest extends \RpcAcsRequest |
| 19 | +{ |
| 20 | + |
| 21 | + /** |
| 22 | + * @var string |
| 23 | + */ |
| 24 | + protected $method = 'POST'; |
| 25 | + |
| 26 | + /** |
| 27 | + * Class constructor. |
| 28 | + */ |
| 29 | + public function __construct() |
| 30 | + { |
| 31 | + parent::__construct( |
| 32 | + 'ARMS', |
| 33 | + '2016-08-04', |
| 34 | + 'ArmsQueryDataSet' |
| 35 | + ); |
| 36 | + } |
| 37 | + |
| 38 | + /** |
| 39 | + * @param string $dateStr |
| 40 | + * |
| 41 | + * @return $this |
| 42 | + */ |
| 43 | + public function setDateStr($dateStr) |
| 44 | + { |
| 45 | + $this->requestParameters['DateStr'] = $dateStr; |
| 46 | + $this->queryParameters['DateStr'] = $dateStr; |
| 47 | + |
| 48 | + return $this; |
| 49 | + } |
| 50 | + |
| 51 | + /** |
| 52 | + * @param string $minTime |
| 53 | + * |
| 54 | + * @return $this |
| 55 | + */ |
| 56 | + public function setMinTime($minTime) |
| 57 | + { |
| 58 | + $this->requestParameters['MinTime'] = $minTime; |
| 59 | + $this->queryParameters['MinTime'] = $minTime; |
| 60 | + |
| 61 | + return $this; |
| 62 | + } |
| 63 | + |
| 64 | + /** |
| 65 | + * @param string $maxTime |
| 66 | + * |
| 67 | + * @return $this |
| 68 | + */ |
| 69 | + public function setMaxTime($maxTime) |
| 70 | + { |
| 71 | + $this->requestParameters['MaxTime'] = $maxTime; |
| 72 | + $this->queryParameters['MaxTime'] = $maxTime; |
| 73 | + |
| 74 | + return $this; |
| 75 | + } |
| 76 | + |
| 77 | + /** |
| 78 | + * @param array $measures |
| 79 | + * |
| 80 | + * @return $this |
| 81 | + */ |
| 82 | + public function setMeasuress(array $measures) |
| 83 | + { |
| 84 | + $this->requestParameters['Measuress'] = $measures; |
| 85 | + foreach ($measures as $i => $iValue) { |
| 86 | + $this->queryParameters['Measures.' . ($i + 1)] = $iValue; |
| 87 | + } |
| 88 | + |
| 89 | + return $this; |
| 90 | + } |
| 91 | + |
| 92 | + /** |
| 93 | + * @param string $intervalInSec |
| 94 | + * |
| 95 | + * @return $this |
| 96 | + */ |
| 97 | + public function setIntervalInSec($intervalInSec) |
| 98 | + { |
| 99 | + $this->requestParameters['IntervalInSec'] = $intervalInSec; |
| 100 | + $this->queryParameters['IntervalInSec'] = $intervalInSec; |
| 101 | + |
| 102 | + return $this; |
| 103 | + } |
| 104 | + |
| 105 | + /** |
| 106 | + * @param string $datasetId |
| 107 | + * |
| 108 | + * @return $this |
| 109 | + */ |
| 110 | + public function setDatasetId($datasetId) |
| 111 | + { |
| 112 | + $this->requestParameters['DatasetId'] = $datasetId; |
| 113 | + $this->queryParameters['DatasetId'] = $datasetId; |
| 114 | + |
| 115 | + return $this; |
| 116 | + } |
| 117 | + |
| 118 | + /** |
| 119 | + * @param array $dimensions |
| 120 | + * |
| 121 | + * @return $this |
| 122 | + */ |
| 123 | + public function setDimensionss(array $dimensions) |
| 124 | + { |
| 125 | + $this->requestParameters['Dimensionss'] = $dimensions; |
| 126 | + foreach ($dimensions as $depth1 => $depth1Value) { |
| 127 | + $this->queryParameters['Dimensions.' . ($depth1 + 1) . '.Value'] = $depth1Value['Value']; |
| 128 | + $this->queryParameters['Dimensions.' . ($depth1 + 1) . '.Key'] = $depth1Value['Key']; |
| 129 | + } |
| 130 | + |
| 131 | + return $this; |
| 132 | + } |
| 133 | +} |
0 commit comments