Skip to content

Commit 6b9eb1c

Browse files
committed
CMS SDK Auto Released By wb-xzy262218,Version:6.0.9
发布日志: 1, Add new API: DescribeEventRule,ListEventTargetsByRule,PutEventRule,PutEventTargets. 2, Add return value(Id) for NodeProcessCreate.
1 parent 5288229 commit 6b9eb1c

File tree

6 files changed

+207
-1
lines changed

6 files changed

+207
-1
lines changed

aliyun-python-sdk-cms/ChangeLog.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2018-07-09 Version: 6.0.9
2+
1, Add new API: DescribeEventRule,ListEventTargetsByRule,PutEventRule,PutEventTargets.
3+
2, Add return value(Id) for NodeProcessCreate.
4+
15
2018-06-22 Version: 6.0.8
26
1, Add new API: DeleteGroupDynamicRule,ListGroupDynamicRule,ApplyTemplate,PutGroupDynamicRule.
37
2, Add parameter(AlertIds) for CreateTask and ModifyTask.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "6.0.8"
1+
__version__ = "6.0.9"
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 DescribeEventRuleRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'Cms', '2018-03-08', 'DescribeEventRule','cms')
25+
26+
def get_RuleName(self):
27+
return self.get_query_params().get('RuleName')
28+
29+
def set_RuleName(self,RuleName):
30+
self.add_query_param('RuleName',RuleName)
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 ListEventTargetsByRuleRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'Cms', '2018-03-08', 'ListEventTargetsByRule','cms')
25+
26+
def get_RuleName(self):
27+
return self.get_query_params().get('RuleName')
28+
29+
def set_RuleName(self,RuleName):
30+
self.add_query_param('RuleName',RuleName)
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
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 PutEventRuleRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'Cms', '2018-03-08', 'PutEventRule','cms')
25+
26+
def get_EventPatterns(self):
27+
return self.get_query_params().get('EventPatterns')
28+
29+
def set_EventPatterns(self,EventPatterns):
30+
for i in range(len(EventPatterns)):
31+
if EventPatterns[i].get('Product') is not None:
32+
self.add_query_param('EventPattern.' + str(i + 1) + '.Product' , EventPatterns[i].get('Product'))
33+
for j in range(len(EventPatterns[i].get('NameLists'))):
34+
if EventPatterns[i].get('NameLists')[j] is not None:
35+
self.add_query_param('EventPattern.' + str(i + 1) + '.NameList.'+str(j + 1), EventPatterns[i].get('NameLists')[j])
36+
for j in range(len(EventPatterns[i].get('StatusLists'))):
37+
if EventPatterns[i].get('StatusLists')[j] is not None:
38+
self.add_query_param('EventPattern.' + str(i + 1) + '.StatusList.'+str(j + 1), EventPatterns[i].get('StatusLists')[j])
39+
for j in range(len(EventPatterns[i].get('LevelLists'))):
40+
if EventPatterns[i].get('LevelLists')[j] is not None:
41+
self.add_query_param('EventPattern.' + str(i + 1) + '.LevelList.'+str(j + 1), EventPatterns[i].get('LevelLists')[j])
42+
43+
44+
def get_GroupId(self):
45+
return self.get_query_params().get('GroupId')
46+
47+
def set_GroupId(self,GroupId):
48+
self.add_query_param('GroupId',GroupId)
49+
50+
def get_Name(self):
51+
return self.get_query_params().get('Name')
52+
53+
def set_Name(self,Name):
54+
self.add_query_param('Name',Name)
55+
56+
def get_Description(self):
57+
return self.get_query_params().get('Description')
58+
59+
def set_Description(self,Description):
60+
self.add_query_param('Description',Description)
61+
62+
def get_EventType(self):
63+
return self.get_query_params().get('EventType')
64+
65+
def set_EventType(self,EventType):
66+
self.add_query_param('EventType',EventType)
67+
68+
def get_State(self):
69+
return self.get_query_params().get('State')
70+
71+
def set_State(self,State):
72+
self.add_query_param('State',State)
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
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 PutEventTargetsRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'Cms', '2018-03-08', 'PutEventTargets','cms')
25+
26+
def get_ContactParameterss(self):
27+
return self.get_query_params().get('ContactParameterss')
28+
29+
def set_ContactParameterss(self,ContactParameterss):
30+
for i in range(len(ContactParameterss)):
31+
if ContactParameterss[i].get('Id') is not None:
32+
self.add_query_param('ContactParameters.' + str(i + 1) + '.Id' , ContactParameterss[i].get('Id'))
33+
if ContactParameterss[i].get('ContactGroupName') is not None:
34+
self.add_query_param('ContactParameters.' + str(i + 1) + '.ContactGroupName' , ContactParameterss[i].get('ContactGroupName'))
35+
if ContactParameterss[i].get('Level') is not None:
36+
self.add_query_param('ContactParameters.' + str(i + 1) + '.Level' , ContactParameterss[i].get('Level'))
37+
38+
39+
def get_FcParameterss(self):
40+
return self.get_query_params().get('FcParameterss')
41+
42+
def set_FcParameterss(self,FcParameterss):
43+
for i in range(len(FcParameterss)):
44+
if FcParameterss[i].get('Id') is not None:
45+
self.add_query_param('FcParameters.' + str(i + 1) + '.Id' , FcParameterss[i].get('Id'))
46+
if FcParameterss[i].get('Region') is not None:
47+
self.add_query_param('FcParameters.' + str(i + 1) + '.Region' , FcParameterss[i].get('Region'))
48+
if FcParameterss[i].get('ServiceName') is not None:
49+
self.add_query_param('FcParameters.' + str(i + 1) + '.ServiceName' , FcParameterss[i].get('ServiceName'))
50+
if FcParameterss[i].get('FunctionName') is not None:
51+
self.add_query_param('FcParameters.' + str(i + 1) + '.FunctionName' , FcParameterss[i].get('FunctionName'))
52+
53+
54+
def get_RuleName(self):
55+
return self.get_query_params().get('RuleName')
56+
57+
def set_RuleName(self,RuleName):
58+
self.add_query_param('RuleName',RuleName)
59+
60+
def get_MnsParameterss(self):
61+
return self.get_query_params().get('MnsParameterss')
62+
63+
def set_MnsParameterss(self,MnsParameterss):
64+
for i in range(len(MnsParameterss)):
65+
if MnsParameterss[i].get('Id') is not None:
66+
self.add_query_param('MnsParameters.' + str(i + 1) + '.Id' , MnsParameterss[i].get('Id'))
67+
if MnsParameterss[i].get('Region') is not None:
68+
self.add_query_param('MnsParameters.' + str(i + 1) + '.Region' , MnsParameterss[i].get('Region'))
69+
if MnsParameterss[i].get('Queue') is not None:
70+
self.add_query_param('MnsParameters.' + str(i + 1) + '.Queue' , MnsParameterss[i].get('Queue'))

0 commit comments

Comments
 (0)