Skip to content

Commit 3e0e112

Browse files
committed
由左羽发起的ARMS SDK自动发布, BUILD_ID=288, 版本号:2.0.0
发布日志: 1, support tile dataset 2, use dimension value type to replace isDrillDown
1 parent 89fc4d7 commit 3e0e112

File tree

9 files changed

+344
-0
lines changed

9 files changed

+344
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2017-12-20 Version: 2.0.0
2+
1, support tile dataset
3+
2, use dimension value type to replace isDrillDown
4+
5+

aliyun-python-sdk-arms/MANIFEST.in

Whitespace-only changes.

aliyun-python-sdk-arms/README.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
aliyun-python-sdk-arms
2+
This is the arms module of Aliyun Python SDK.
3+
4+
Aliyun Python SDK is the official software development kit. It makes things easy to integrate your Python application, library, or script with Aliyun services.
5+
6+
This module works on Python versions:
7+
8+
2.6.5 and greater
9+
Documentation:
10+
11+
Please visit http://develop.aliyun.com/sdk/python
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = "2.0.0"

aliyun-python-sdk-arms/aliyunsdkarms/request/__init__.py

Whitespace-only changes.
Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
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-11-25', '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_ReduceTail(self):
39+
return self.get_query_params().get('ReduceTail')
40+
41+
def set_ReduceTail(self,ReduceTail):
42+
self.add_query_param('ReduceTail',ReduceTail)
43+
44+
def get_MaxTime(self):
45+
return self.get_query_params().get('MaxTime')
46+
47+
def set_MaxTime(self,MaxTime):
48+
self.add_query_param('MaxTime',MaxTime)
49+
50+
def get_OptionalDimss(self):
51+
return self.get_query_params().get('OptionalDimss')
52+
53+
def set_OptionalDimss(self,OptionalDimss):
54+
for i in range(len(OptionalDimss)):
55+
if OptionalDimss[i].get('Key') is not None:
56+
self.add_query_param('OptionalDims.' + bytes(i + 1) + '.Key' , OptionalDimss[i].get('Key'))
57+
if OptionalDimss[i].get('Value') is not None:
58+
self.add_query_param('OptionalDims.' + bytes(i + 1) + '.Value' , OptionalDimss[i].get('Value'))
59+
if OptionalDimss[i].get('Type') is not None:
60+
self.add_query_param('OptionalDims.' + bytes(i + 1) + '.Type' , OptionalDimss[i].get('Type'))
61+
62+
63+
def get_Measuress(self):
64+
return self.get_query_params().get('Measuress')
65+
66+
def set_Measuress(self,Measuress):
67+
for i in range(len(Measuress)):
68+
if Measuress[i] is not None:
69+
self.add_query_param('Measures.' + bytes(i + 1) , Measuress[i]);
70+
71+
def get_IntervalInSec(self):
72+
return self.get_query_params().get('IntervalInSec')
73+
74+
def set_IntervalInSec(self,IntervalInSec):
75+
self.add_query_param('IntervalInSec',IntervalInSec)
76+
77+
def get_IsDrillDown(self):
78+
return self.get_query_params().get('IsDrillDown')
79+
80+
def set_IsDrillDown(self,IsDrillDown):
81+
self.add_query_param('IsDrillDown',IsDrillDown)
82+
83+
def get_HungryMode(self):
84+
return self.get_query_params().get('HungryMode')
85+
86+
def set_HungryMode(self,HungryMode):
87+
self.add_query_param('HungryMode',HungryMode)
88+
89+
def get_OrderByKey(self):
90+
return self.get_query_params().get('OrderByKey')
91+
92+
def set_OrderByKey(self,OrderByKey):
93+
self.add_query_param('OrderByKey',OrderByKey)
94+
95+
def get_Limit(self):
96+
return self.get_query_params().get('Limit')
97+
98+
def set_Limit(self,Limit):
99+
self.add_query_param('Limit',Limit)
100+
101+
def get_DatasetId(self):
102+
return self.get_query_params().get('DatasetId')
103+
104+
def set_DatasetId(self,DatasetId):
105+
self.add_query_param('DatasetId',DatasetId)
106+
107+
def get_RequiredDimss(self):
108+
return self.get_query_params().get('RequiredDimss')
109+
110+
def set_RequiredDimss(self,RequiredDimss):
111+
for i in range(len(RequiredDimss)):
112+
if RequiredDimss[i].get('Key') is not None:
113+
self.add_query_param('RequiredDims.' + bytes(i + 1) + '.Key' , RequiredDimss[i].get('Key'))
114+
if RequiredDimss[i].get('Value') is not None:
115+
self.add_query_param('RequiredDims.' + bytes(i + 1) + '.Value' , RequiredDimss[i].get('Value'))
116+
if RequiredDimss[i].get('Type') is not None:
117+
self.add_query_param('RequiredDims.' + bytes(i + 1) + '.Type' , RequiredDimss[i].get('Type'))
118+
119+
120+
def get_Dimensionss(self):
121+
return self.get_query_params().get('Dimensionss')
122+
123+
def set_Dimensionss(self,Dimensionss):
124+
for i in range(len(Dimensionss)):
125+
if Dimensionss[i].get('Key') is not None:
126+
self.add_query_param('Dimensions.' + bytes(i + 1) + '.Key' , Dimensionss[i].get('Key'))
127+
if Dimensionss[i].get('Value') is not None:
128+
self.add_query_param('Dimensions.' + bytes(i + 1) + '.Value' , Dimensionss[i].get('Value'))
129+
if Dimensionss[i].get('Type') is not None:
130+
self.add_query_param('Dimensions.' + bytes(i + 1) + '.Type' , Dimensionss[i].get('Type'))
Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
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 WhereInDimQueryRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'ARMS', '2016-11-25', 'WhereInDimQuery')
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_ReduceTail(self):
39+
return self.get_query_params().get('ReduceTail')
40+
41+
def set_ReduceTail(self,ReduceTail):
42+
self.add_query_param('ReduceTail',ReduceTail)
43+
44+
def get_MaxTime(self):
45+
return self.get_query_params().get('MaxTime')
46+
47+
def set_MaxTime(self,MaxTime):
48+
self.add_query_param('MaxTime',MaxTime)
49+
50+
def get_WhereInKey(self):
51+
return self.get_query_params().get('WhereInKey')
52+
53+
def set_WhereInKey(self,WhereInKey):
54+
self.add_query_param('WhereInKey',WhereInKey)
55+
56+
def get_Measuress(self):
57+
return self.get_query_params().get('Measuress')
58+
59+
def set_Measuress(self,Measuress):
60+
for i in range(len(Measuress)):
61+
if Measuress[i] is not None:
62+
self.add_query_param('Measures.' + bytes(i + 1) , Measuress[i]);
63+
64+
def get_IntervalInSec(self):
65+
return self.get_query_params().get('IntervalInSec')
66+
67+
def set_IntervalInSec(self,IntervalInSec):
68+
self.add_query_param('IntervalInSec',IntervalInSec)
69+
70+
def get_IsDrillDown(self):
71+
return self.get_query_params().get('IsDrillDown')
72+
73+
def set_IsDrillDown(self,IsDrillDown):
74+
self.add_query_param('IsDrillDown',IsDrillDown)
75+
76+
def get_OrderByKey(self):
77+
return self.get_query_params().get('OrderByKey')
78+
79+
def set_OrderByKey(self,OrderByKey):
80+
self.add_query_param('OrderByKey',OrderByKey)
81+
82+
def get_Limit(self):
83+
return self.get_query_params().get('Limit')
84+
85+
def set_Limit(self,Limit):
86+
self.add_query_param('Limit',Limit)
87+
88+
def get_DatasetId(self):
89+
return self.get_query_params().get('DatasetId')
90+
91+
def set_DatasetId(self,DatasetId):
92+
self.add_query_param('DatasetId',DatasetId)
93+
94+
def get_WhereInValuess(self):
95+
return self.get_query_params().get('WhereInValuess')
96+
97+
def set_WhereInValuess(self,WhereInValuess):
98+
for i in range(len(WhereInValuess)):
99+
if WhereInValuess[i] is not None:
100+
self.add_query_param('WhereInValues.' + bytes(i + 1) , WhereInValuess[i]);
101+
102+
def get_Dimensionss(self):
103+
return self.get_query_params().get('Dimensionss')
104+
105+
def set_Dimensionss(self,Dimensionss):
106+
for i in range(len(Dimensionss)):
107+
if Dimensionss[i].get('Key') is not None:
108+
self.add_query_param('Dimensions.' + bytes(i + 1) + '.Key' , Dimensionss[i].get('Key'))
109+
if Dimensionss[i].get('Value') is not None:
110+
self.add_query_param('Dimensions.' + bytes(i + 1) + '.Value' , Dimensionss[i].get('Value'))
111+
if Dimensionss[i].get('Type') is not None:
112+
self.add_query_param('Dimensions.' + bytes(i + 1) + '.Type' , Dimensionss[i].get('Type'))

aliyun-python-sdk-arms/aliyunsdkarms/request/v20161125/__init__.py

Whitespace-only changes.

aliyun-python-sdk-arms/setup.py

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
#!/usr/bin/python
2+
'''
3+
Licensed to the Apache Software Foundation (ASF) under one
4+
or more contributor license agreements. See the NOTICE file
5+
distributed with this work for additional information
6+
regarding copyright ownership. The ASF licenses this file
7+
to you under the Apache License, Version 2.0 (the
8+
"License"); you may not use this file except in compliance
9+
with the License. You may obtain a copy of the License at
10+
11+
http://www.apache.org/licenses/LICENSE-2.0
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+
21+
from setuptools import setup, find_packages
22+
import os
23+
import sys
24+
25+
"""
26+
setup module for arms.
27+
28+
Created on 7/3/2015
29+
30+
@author: alex
31+
"""
32+
33+
PACKAGE = "aliyunsdkarms"
34+
NAME = "aliyun-python-sdk-arms"
35+
DESCRIPTION = "The arms module of Aliyun Python sdk."
36+
AUTHOR = "Aliyun"
37+
AUTHOR_EMAIL = "aliyun-developers-efficiency@list.alibaba-inc.com"
38+
URL = "http://develop.aliyun.com/sdk/python"
39+
40+
TOPDIR = os.path.dirname(__file__) or "."
41+
VERSION = __import__(PACKAGE).__version__
42+
43+
desc_file = open("README.rst")
44+
try:
45+
LONG_DESCRIPTION = desc_file.read()
46+
finally:
47+
desc_file.close()
48+
49+
requires = []
50+
51+
if sys.version_info < (3, 3):
52+
requires.append("aliyun-python-sdk-core>=2.0.2")
53+
else:
54+
requires.append("aliyun-python-sdk-core-v3>=2.3.5")
55+
56+
setup(
57+
name=NAME,
58+
version=VERSION,
59+
description=DESCRIPTION,
60+
long_description=LONG_DESCRIPTION,
61+
author=AUTHOR,
62+
author_email=AUTHOR_EMAIL,
63+
license="Apache",
64+
url=URL,
65+
keywords=["aliyun","sdk","arms"],
66+
packages=find_packages(exclude=["tests*"]),
67+
include_package_data=True,
68+
platforms="any",
69+
install_requires=requires,
70+
classifiers=(
71+
"Development Status :: 4 - Beta",
72+
"Intended Audience :: Developers",
73+
"License :: OSI Approved :: Apache Software License",
74+
"Programming Language :: Python",
75+
"Programming Language :: Python :: 2.6",
76+
"Programming Language :: Python :: 2.7",
77+
"Programming Language :: Python :: 3",
78+
"Programming Language :: Python :: 3.3",
79+
"Programming Language :: Python :: 3.4",
80+
"Programming Language :: Python :: 3.5",
81+
"Programming Language :: Python :: 3.6",
82+
"Topic :: Software Development",
83+
)
84+
85+
)

0 commit comments

Comments
 (0)