Skip to content

Commit 33cc830

Browse files
committed
IOT SDK Auto Released By cheyun.lxf,Version:7.8.0
发布日志: 1, Add api, BatchUpdateDeviceNickname. 2, Add both api, QueryDeviceFileList, QueryDeviceFile and DeleteDeviceFile. 3, Add api ListRule’s name searching feature. 4, Modify Tag format, support for special character like '.','-'.
1 parent 1f21159 commit 33cc830

File tree

8 files changed

+232
-1
lines changed

8 files changed

+232
-1
lines changed

aliyun-python-sdk-iot/ChangeLog.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2019-04-08 Version: 7.8.0
2+
1, Add api, BatchUpdateDeviceNickname.
3+
2, Add both api, QueryDeviceFileList, QueryDeviceFile and DeleteDeviceFile.
4+
3, Add api ListRule’s name searching feature.
5+
4, Modify Tag format, support for special character like '.','-'.
6+
17
2019-03-08 Version: 7.7.0
28
1, add API QueryDeviceDesiredProperty and SetDeviceDesiredProperty.
39
2, add iotId support of APIs.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "7.7.0"
1+
__version__ = "7.8.0"
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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 BatchUpdateDeviceNicknameRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'Iot', '2018-01-20', 'BatchUpdateDeviceNickname','iot')
25+
26+
def get_DeviceNicknameInfos(self):
27+
return self.get_query_params().get('DeviceNicknameInfos')
28+
29+
def set_DeviceNicknameInfos(self,DeviceNicknameInfos):
30+
for i in range(len(DeviceNicknameInfos)):
31+
if DeviceNicknameInfos[i].get('IotId') is not None:
32+
self.add_query_param('DeviceNicknameInfo.' + str(i + 1) + '.IotId' , DeviceNicknameInfos[i].get('IotId'))
33+
if DeviceNicknameInfos[i].get('Nickname') is not None:
34+
self.add_query_param('DeviceNicknameInfo.' + str(i + 1) + '.Nickname' , DeviceNicknameInfos[i].get('Nickname'))
35+
if DeviceNicknameInfos[i].get('DeviceName') is not None:
36+
self.add_query_param('DeviceNicknameInfo.' + str(i + 1) + '.DeviceName' , DeviceNicknameInfos[i].get('DeviceName'))
37+
if DeviceNicknameInfos[i].get('ProductKey') is not None:
38+
self.add_query_param('DeviceNicknameInfo.' + str(i + 1) + '.ProductKey' , DeviceNicknameInfos[i].get('ProductKey'))
39+
40+
41+
def get_IotInstanceId(self):
42+
return self.get_query_params().get('IotInstanceId')
43+
44+
def set_IotInstanceId(self,IotInstanceId):
45+
self.add_query_param('IotInstanceId',IotInstanceId)
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 DeleteDeviceFileRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'Iot', '2018-01-20', 'DeleteDeviceFile','iot')
25+
26+
def get_IotId(self):
27+
return self.get_query_params().get('IotId')
28+
29+
def set_IotId(self,IotId):
30+
self.add_query_param('IotId',IotId)
31+
32+
def get_IotInstanceId(self):
33+
return self.get_query_params().get('IotInstanceId')
34+
35+
def set_IotInstanceId(self,IotInstanceId):
36+
self.add_query_param('IotInstanceId',IotInstanceId)
37+
38+
def get_DeviceName(self):
39+
return self.get_query_params().get('DeviceName')
40+
41+
def set_DeviceName(self,DeviceName):
42+
self.add_query_param('DeviceName',DeviceName)
43+
44+
def get_ProductKey(self):
45+
return self.get_query_params().get('ProductKey')
46+
47+
def set_ProductKey(self,ProductKey):
48+
self.add_query_param('ProductKey',ProductKey)
49+
50+
def get_FileId(self):
51+
return self.get_query_params().get('FileId')
52+
53+
def set_FileId(self,FileId):
54+
self.add_query_param('FileId',FileId)

aliyun-python-sdk-iot/aliyunsdkiot/request/v20180120/ListRuleRequest.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ class ListRuleRequest(RpcRequest):
2323
def __init__(self):
2424
RpcRequest.__init__(self, 'Iot', '2018-01-20', 'ListRule','iot')
2525

26+
def get_SearchName(self):
27+
return self.get_query_params().get('SearchName')
28+
29+
def set_SearchName(self,SearchName):
30+
self.add_query_param('SearchName',SearchName)
31+
2632
def get_IotInstanceId(self):
2733
return self.get_query_params().get('IotInstanceId')
2834

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
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 QueryDeviceFileListRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'Iot', '2018-01-20', 'QueryDeviceFileList','iot')
25+
26+
def get_IotId(self):
27+
return self.get_query_params().get('IotId')
28+
29+
def set_IotId(self,IotId):
30+
self.add_query_param('IotId',IotId)
31+
32+
def get_IotInstanceId(self):
33+
return self.get_query_params().get('IotInstanceId')
34+
35+
def set_IotInstanceId(self,IotInstanceId):
36+
self.add_query_param('IotInstanceId',IotInstanceId)
37+
38+
def get_PageSize(self):
39+
return self.get_query_params().get('PageSize')
40+
41+
def set_PageSize(self,PageSize):
42+
self.add_query_param('PageSize',PageSize)
43+
44+
def get_DeviceName(self):
45+
return self.get_query_params().get('DeviceName')
46+
47+
def set_DeviceName(self,DeviceName):
48+
self.add_query_param('DeviceName',DeviceName)
49+
50+
def get_CurrentPage(self):
51+
return self.get_query_params().get('CurrentPage')
52+
53+
def set_CurrentPage(self,CurrentPage):
54+
self.add_query_param('CurrentPage',CurrentPage)
55+
56+
def get_ProductKey(self):
57+
return self.get_query_params().get('ProductKey')
58+
59+
def set_ProductKey(self,ProductKey):
60+
self.add_query_param('ProductKey',ProductKey)
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 QueryDeviceFileRequest(RpcRequest):
22+
23+
def __init__(self):
24+
RpcRequest.__init__(self, 'Iot', '2018-01-20', 'QueryDeviceFile','iot')
25+
26+
def get_IotId(self):
27+
return self.get_query_params().get('IotId')
28+
29+
def set_IotId(self,IotId):
30+
self.add_query_param('IotId',IotId)
31+
32+
def get_IotInstanceId(self):
33+
return self.get_query_params().get('IotInstanceId')
34+
35+
def set_IotInstanceId(self,IotInstanceId):
36+
self.add_query_param('IotInstanceId',IotInstanceId)
37+
38+
def get_DeviceName(self):
39+
return self.get_query_params().get('DeviceName')
40+
41+
def set_DeviceName(self,DeviceName):
42+
self.add_query_param('DeviceName',DeviceName)
43+
44+
def get_ProductKey(self):
45+
return self.get_query_params().get('ProductKey')
46+
47+
def set_ProductKey(self,ProductKey):
48+
self.add_query_param('ProductKey',ProductKey)
49+
50+
def get_FileId(self):
51+
return self.get_query_params().get('FileId')
52+
53+
def set_FileId(self,FileId):
54+
self.add_query_param('FileId',FileId)

aliyun-python-sdk-iot/aliyunsdkiot/request/v20180120/RegisterDeviceRequest.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ def get_IotInstanceId(self):
3535
def set_IotInstanceId(self,IotInstanceId):
3636
self.add_query_param('IotInstanceId',IotInstanceId)
3737

38+
def get_Nickname(self):
39+
return self.get_query_params().get('Nickname')
40+
41+
def set_Nickname(self,Nickname):
42+
self.add_query_param('Nickname',Nickname)
43+
3844
def get_DeviceName(self):
3945
return self.get_query_params().get('DeviceName')
4046

0 commit comments

Comments
 (0)