Skip to content

Commit 04365b7

Browse files
committed
由向召元发起的CMS SDK自动发布, 版本号:6.0.5
发布日志: 1, Add api: DescribeTasks、StartTasks、StopTasks、DeleteTasks、ModifyTask、CreateTask、DescribeTaskDetail、DescribeISPAreaCity.
1 parent a41e5ac commit 04365b7

File tree

11 files changed

+460
-1
lines changed

11 files changed

+460
-1
lines changed

aliyun-python-sdk-cms/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2018-04-28 Version: 6.0.5
2+
1, Add api: DescribeTasks、StartTasks、StopTasks、DeleteTasks、ModifyTask、CreateTask、DescribeTaskDetail、DescribeISPAreaCity.
3+
14
2018-04-25 Version: 6.0.4
25
1, CreateMyGroups add parameter "options"
36

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "6.0.4"
1+
__version__ = "6.0.5"
Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
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 CreateTaskRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'Cms', '2018-03-08', 'CreateTask','cms')
25+
26+
def get_ReportProject(self):
27+
return self.get_query_params().get('ReportProject')
28+
29+
def set_ReportProject(self,ReportProject):
30+
self.add_query_param('ReportProject',ReportProject)
31+
32+
def get_TaskType(self):
33+
return self.get_query_params().get('TaskType')
34+
35+
def set_TaskType(self,TaskType):
36+
self.add_query_param('TaskType',TaskType)
37+
38+
def get_Address(self):
39+
return self.get_query_params().get('Address')
40+
41+
def set_Address(self,Address):
42+
self.add_query_param('Address',Address)
43+
44+
def get_AlertName(self):
45+
return self.get_query_params().get('AlertName')
46+
47+
def set_AlertName(self,AlertName):
48+
self.add_query_param('AlertName',AlertName)
49+
50+
def get_Ip(self):
51+
return self.get_query_params().get('Ip')
52+
53+
def set_Ip(self,Ip):
54+
self.add_query_param('Ip',Ip)
55+
56+
def get_AgentGroup(self):
57+
return self.get_query_params().get('AgentGroup')
58+
59+
def set_AgentGroup(self,AgentGroup):
60+
self.add_query_param('AgentGroup',AgentGroup)
61+
62+
def get_TaskName(self):
63+
return self.get_query_params().get('TaskName')
64+
65+
def set_TaskName(self,TaskName):
66+
self.add_query_param('TaskName',TaskName)
67+
68+
def get_EndTime(self):
69+
return self.get_query_params().get('EndTime')
70+
71+
def set_EndTime(self,EndTime):
72+
self.add_query_param('EndTime',EndTime)
73+
74+
def get_TaskState(self):
75+
return self.get_query_params().get('TaskState')
76+
77+
def set_TaskState(self,TaskState):
78+
self.add_query_param('TaskState',TaskState)
79+
80+
def get_ClientIds(self):
81+
return self.get_query_params().get('ClientIds')
82+
83+
def set_ClientIds(self,ClientIds):
84+
self.add_query_param('ClientIds',ClientIds)
85+
86+
def get_AlertInfo(self):
87+
return self.get_query_params().get('AlertInfo')
88+
89+
def set_AlertInfo(self,AlertInfo):
90+
self.add_query_param('AlertInfo',AlertInfo)
91+
92+
def get_AgentType(self):
93+
return self.get_query_params().get('AgentType')
94+
95+
def set_AgentType(self,AgentType):
96+
self.add_query_param('AgentType',AgentType)
97+
98+
def get_IspCity(self):
99+
return self.get_query_params().get('IspCity')
100+
101+
def set_IspCity(self,IspCity):
102+
self.add_query_param('IspCity',IspCity)
103+
104+
def get_Options(self):
105+
return self.get_query_params().get('Options')
106+
107+
def set_Options(self,Options):
108+
self.add_query_param('Options',Options)
109+
110+
def get_Interval(self):
111+
return self.get_query_params().get('Interval')
112+
113+
def set_Interval(self,Interval):
114+
self.add_query_param('Interval',Interval)
115+
116+
def get_AlertRule(self):
117+
return self.get_query_params().get('AlertRule')
118+
119+
def set_AlertRule(self,AlertRule):
120+
self.add_query_param('AlertRule',AlertRule)
121+
122+
def get_TaskId(self):
123+
return self.get_query_params().get('TaskId')
124+
125+
def set_TaskId(self,TaskId):
126+
self.add_query_param('TaskId',TaskId)
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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 DeleteTasksRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'Cms', '2018-03-08', 'DeleteTasks','cms')
25+
26+
def get_TaskIds(self):
27+
return self.get_query_params().get('TaskIds')
28+
29+
def set_TaskIds(self,TaskIds):
30+
self.add_query_param('TaskIds',TaskIds)
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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 DescribeISPAreaCityRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'Cms', '2018-03-08', 'DescribeISPAreaCity','cms')
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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 DescribeTaskDetailRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'Cms', '2018-03-08', 'DescribeTaskDetail','cms')
25+
26+
def get_TaskId(self):
27+
return self.get_query_params().get('TaskId')
28+
29+
def set_TaskId(self,TaskId):
30+
self.add_query_param('TaskId',TaskId)
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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 DescribeTasksRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'Cms', '2018-03-08', 'DescribeTasks','cms')
25+
26+
def get_TaskType(self):
27+
return self.get_query_params().get('TaskType')
28+
29+
def set_TaskType(self,TaskType):
30+
self.add_query_param('TaskType',TaskType)
31+
32+
def get_PageSize(self):
33+
return self.get_query_params().get('PageSize')
34+
35+
def set_PageSize(self,PageSize):
36+
self.add_query_param('PageSize',PageSize)
37+
38+
def get_Page(self):
39+
return self.get_query_params().get('Page')
40+
41+
def set_Page(self,Page):
42+
self.add_query_param('Page',Page)
43+
44+
def get_Keyword(self):
45+
return self.get_query_params().get('Keyword')
46+
47+
def set_Keyword(self,Keyword):
48+
self.add_query_param('Keyword',Keyword)
49+
50+
def get_TaskId(self):
51+
return self.get_query_params().get('TaskId')
52+
53+
def set_TaskId(self,TaskId):
54+
self.add_query_param('TaskId',TaskId)

0 commit comments

Comments
 (0)