Skip to content

Commit 4122d65

Browse files
committed
publish jdcloud-sdk-python 1.6.70
1 parent 31e8a54 commit 4122d65

12 files changed

Lines changed: 488 additions & 3 deletions

jdcloud_sdk/services/iotcore/ChangeLog.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# 更新历史 #
2-
API版本:1.1.24
2+
API版本:1.1.25
33

44
|发布时间|版本号|更新|说明|
55
|---|---|---|---
6+
|2020-07-24 |1.1.25 |增加权限信息 | *增加设备分组接口
67
|2020-07-02 |1.1.24 |设备检索增加标签支持 | *设备检索增加标签支持
78
|2020-06-23 |1.1.22 |增加设备离线记录接口 | *增加设备离线记录接口发布
89
|2020-06-15 |1.1.21 |增加设备统计接口 | *设备统计接口发布
Lines changed: 148 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class FindDeviceGroupLinkPageRequest(JDCloudRequest):
23+
"""
24+
获取分组列表
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v2"):
28+
super(FindDeviceGroupLinkPageRequest, self).__init__(
29+
'/regions/{regionId}/instances/{instanceId}/devicegrouplink:get', 'GET', header, version)
30+
self.parameters = parameters
31+
32+
33+
class FindDeviceGroupLinkPageParameters(object):
34+
35+
def __init__(self, instanceId, regionId, ):
36+
"""
37+
:param instanceId: 设备归属的实例ID
38+
:param regionId: 设备归属的实例所在区域
39+
"""
40+
41+
self.instanceId = instanceId
42+
self.regionId = regionId
43+
self.productKey = None
44+
self.deviceName = None
45+
self.deviceCollectorType = None
46+
self.groupName = None
47+
self.userPin = None
48+
self.tag = None
49+
self.groupId = None
50+
self.manufacturer = None
51+
self.model = None
52+
self.orderId = None
53+
self.status = None
54+
self.pageNumber = None
55+
self.pageSize = None
56+
self.order = None
57+
self.direction = None
58+
59+
def setProductKey(self, productKey):
60+
"""
61+
:param productKey: (Optional) 产品Key
62+
"""
63+
self.productKey = productKey
64+
65+
def setDeviceName(self, deviceName):
66+
"""
67+
:param deviceName: (Optional) 设备名称
68+
"""
69+
self.deviceName = deviceName
70+
71+
def setDeviceCollectorType(self, deviceCollectorType):
72+
"""
73+
:param deviceCollectorType: (Optional) 采集器类型
74+
"""
75+
self.deviceCollectorType = deviceCollectorType
76+
77+
def setGroupName(self, groupName):
78+
"""
79+
:param groupName: (Optional) 组名称
80+
"""
81+
self.groupName = groupName
82+
83+
def setUserPin(self, userPin):
84+
"""
85+
:param userPin: (Optional) 查询的用户组
86+
"""
87+
self.userPin = userPin
88+
89+
def setTag(self, tag):
90+
"""
91+
:param tag: (Optional) 组标签
92+
"""
93+
self.tag = tag
94+
95+
def setGroupId(self, groupId):
96+
"""
97+
:param groupId: (Optional) 组ID
98+
"""
99+
self.groupId = groupId
100+
101+
def setManufacturer(self, manufacturer):
102+
"""
103+
:param manufacturer: (Optional) 厂商名称
104+
"""
105+
self.manufacturer = manufacturer
106+
107+
def setModel(self, model):
108+
"""
109+
:param model: (Optional) 设备型号
110+
"""
111+
self.model = model
112+
113+
def setOrderId(self, orderId):
114+
"""
115+
:param orderId: (Optional) 订单号
116+
"""
117+
self.orderId = orderId
118+
119+
def setStatus(self, status):
120+
"""
121+
:param status: (Optional) 设备状态
122+
"""
123+
self.status = status
124+
125+
def setPageNumber(self, pageNumber):
126+
"""
127+
:param pageNumber: (Optional) 当前页码
128+
"""
129+
self.pageNumber = pageNumber
130+
131+
def setPageSize(self, pageSize):
132+
"""
133+
:param pageSize: (Optional) 每页大小
134+
"""
135+
self.pageSize = pageSize
136+
137+
def setOrder(self, order):
138+
"""
139+
:param order: (Optional) 排序字段
140+
"""
141+
self.order = order
142+
143+
def setDirection(self, direction):
144+
"""
145+
:param direction: (Optional) 排序方式(asc desc)
146+
"""
147+
self.direction = direction
148+
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class GetDeviceGroupListRequest(JDCloudRequest):
23+
"""
24+
获取组列表
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v2"):
28+
super(GetDeviceGroupListRequest, self).__init__(
29+
'/regions/{regionId}/instances/{instanceId}/devicegrouplist', 'GET', header, version)
30+
self.parameters = parameters
31+
32+
33+
class GetDeviceGroupListParameters(object):
34+
35+
def __init__(self, instanceId, regionId, ):
36+
"""
37+
:param instanceId: 设备归属的实例ID
38+
:param regionId: 设备归属的实例所在区域
39+
"""
40+
41+
self.instanceId = instanceId
42+
self.regionId = regionId
43+
self.queryUserPin = None
44+
45+
def setQueryUserPin(self, queryUserPin):
46+
"""
47+
:param queryUserPin: (Optional) 获取用户 NULL为当前用户
48+
"""
49+
self.queryUserPin = queryUserPin
50+
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class GetDeviceGroupRequest(JDCloudRequest):
23+
"""
24+
获取分组列表
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v2"):
28+
super(GetDeviceGroupRequest, self).__init__(
29+
'/regions/{regionId}/instances/{instanceId}/devicegroup:get', 'GET', header, version)
30+
self.parameters = parameters
31+
32+
33+
class GetDeviceGroupParameters(object):
34+
35+
def __init__(self, instanceId, regionId, ):
36+
"""
37+
:param instanceId: 设备归属的实例ID
38+
:param regionId: 设备归属的实例所在区域
39+
"""
40+
41+
self.instanceId = instanceId
42+
self.regionId = regionId
43+
self.groupName = None
44+
self.queryUserPin = None
45+
self.tag = None
46+
self.pageNumber = None
47+
self.pageSize = None
48+
49+
def setGroupName(self, groupName):
50+
"""
51+
:param groupName: (Optional) 组名称
52+
"""
53+
self.groupName = groupName
54+
55+
def setQueryUserPin(self, queryUserPin):
56+
"""
57+
:param queryUserPin: (Optional) 查询的用户组
58+
"""
59+
self.queryUserPin = queryUserPin
60+
61+
def setTag(self, tag):
62+
"""
63+
:param tag: (Optional) 组标签
64+
"""
65+
self.tag = tag
66+
67+
def setPageNumber(self, pageNumber):
68+
"""
69+
:param pageNumber: (Optional) 当前页号
70+
"""
71+
self.pageNumber = pageNumber
72+
73+
def setPageSize(self, pageSize):
74+
"""
75+
:param pageSize: (Optional) 每页大小
76+
"""
77+
self.pageSize = pageSize
78+

jdcloud_sdk/services/iotcore/apis/LoongrayQueryPageRequest.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ def __init__(self, instanceId, regionId, ):
5353
self.parentId = None
5454
self.orderId = None
5555
self.deviceCollectorType = None
56+
self.queryUserPin = None
5657

5758
def setDeviceName(self, deviceName):
5859
"""
@@ -132,3 +133,9 @@ def setDeviceCollectorType(self, deviceCollectorType):
132133
"""
133134
self.deviceCollectorType = deviceCollectorType
134135

136+
def setQueryUserPin(self, queryUserPin):
137+
"""
138+
:param queryUserPin: (Optional) 查询的userPin
139+
"""
140+
self.queryUserPin = queryUserPin
141+

jdcloud_sdk/services/iotcore/apis/QueryAdminStatisticsRequest.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def __init__(self, instanceId, regionId, ):
4343
self.productKey = None
4444
self.parentId = None
4545
self.deviceCollectorType = None
46+
self.queryUserPin = None
4647

4748
def setProductKey(self, productKey):
4849
"""
@@ -62,3 +63,9 @@ def setDeviceCollectorType(self, deviceCollectorType):
6263
"""
6364
self.deviceCollectorType = deviceCollectorType
6465

66+
def setQueryUserPin(self, queryUserPin):
67+
"""
68+
:param queryUserPin: (Optional) 查询的用户信息
69+
"""
70+
self.queryUserPin = queryUserPin
71+

jdcloud_sdk/services/iotcore/client/IotcoreClient.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ def __init__(self, credential, config=None, logger=None):
2626
if config is None:
2727
config = Config('iotcore.jdcloud-api.com')
2828

29-
super(IotcoreClient, self).__init__(credential, config, 'iotcore', '1.1.24', logger)
29+
super(IotcoreClient, self).__init__(credential, config, 'iotcore', '1.1.25', logger)
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
20+
class DeviceGroupInfo(object):
21+
22+
def __init__(self, deviceGroupId=None, deviceId=None, name=None, parentId=None, status=None, identifier=None, description=None, activeTime=None, lastConnectTime=None, createTime=None, updateTime=None, productName=None, model=None, manufacturer=None, deviceCollectorType=None, lastDisconnectTime=None, orderId=None, groupName=None, groupTag=None):
23+
"""
24+
:param deviceGroupId: (Optional) 组ID
25+
:param deviceId: (Optional) 设备ID
26+
:param name: (Optional) 设备名称
27+
:param parentId: (Optional) 父级设备Id
28+
:param status: (Optional) 设备状态,0-未激活,1-激活离线,2-激活在线
29+
:param identifier: (Optional) 设备标识符
30+
:param description: (Optional) 设备描述
31+
:param activeTime: (Optional) 激活时间
32+
:param lastConnectTime: (Optional) 最后连接时间
33+
:param createTime: (Optional) 注册时间
34+
:param updateTime: (Optional) 修改时间
35+
:param productName: (Optional) 产品名称
36+
:param model: (Optional) 设备型号
37+
:param manufacturer: (Optional) 设备厂商
38+
:param deviceCollectorType: (Optional) 设备采集器类型
39+
:param lastDisconnectTime: (Optional) 最后离线时间
40+
:param orderId: (Optional) 订单号
41+
:param groupName: (Optional) 设备组名称
42+
:param groupTag: (Optional) 设备组标签
43+
"""
44+
45+
self.deviceGroupId = deviceGroupId
46+
self.deviceId = deviceId
47+
self.name = name
48+
self.parentId = parentId
49+
self.status = status
50+
self.identifier = identifier
51+
self.description = description
52+
self.activeTime = activeTime
53+
self.lastConnectTime = lastConnectTime
54+
self.createTime = createTime
55+
self.updateTime = updateTime
56+
self.productName = productName
57+
self.model = model
58+
self.manufacturer = manufacturer
59+
self.deviceCollectorType = deviceCollectorType
60+
self.lastDisconnectTime = lastDisconnectTime
61+
self.orderId = orderId
62+
self.groupName = groupName
63+
self.groupTag = groupTag

0 commit comments

Comments
 (0)