Skip to content

Commit 6f21e85

Browse files
committed
publish jdcloud-sdk-python 1.6.59
1 parent 82dc429 commit 6f21e85

39 files changed

Lines changed: 777 additions & 43 deletions

jdcloud_sdk/services/iotcore/ChangeLog.md

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

44
|发布时间|版本号|更新|说明|
55
|---|---|---|---|
6+
|2020-05-14 |1.1.15 |增加朗锐接口 | *增加朗锐的设备接口和电梯运行状态接口
7+
|2020-04-20 |1.1.5 |增加iotcore融合 | *增加实例列表、实例详情和实例删除接口
68
|2020-01-10 |1.1.4 |增加Edge日志上报通知接口 | *增加Edge日志上报通知接口,增加自定义物模型模板接口,增加自定义topic功能
79
|2020-01-10 |1.1.1 |增加固件升级接口 | *增加固件升级接口
810
|2019-11-12 |1.1.0 |第二次对外接口 | *增加自定义topic功能
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
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 AddLooDeviceRequest(JDCloudRequest):
23+
"""
24+
注册单个朗讯设备并返回秘钥信息
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v2"):
28+
super(AddLooDeviceRequest, self).__init__(
29+
'/regions/{regionId}/instances/{instanceId}/preOrderId/{preOrderId}/device_loongray:add', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class AddLooDeviceParameters(object):
34+
35+
def __init__(self, instanceId, regionId, preOrderId, userPinParam, ):
36+
"""
37+
:param instanceId: 设备归属的实例ID
38+
:param regionId: 设备归属的实例所在区域
39+
:param preOrderId: 申请单编号
40+
:param userPinParam: 用户Pin
41+
"""
42+
43+
self.instanceId = instanceId
44+
self.regionId = regionId
45+
self.preOrderId = preOrderId
46+
self.userPinParam = userPinParam
47+
self.deviceName = None
48+
self.productKey = None
49+
self.model = None
50+
self.manufacturer = None
51+
self.identifier = None
52+
self.description = None
53+
54+
def setDeviceName(self, deviceName):
55+
"""
56+
:param deviceName: (Optional) 心跳
57+
"""
58+
self.deviceName = deviceName
59+
60+
def setProductKey(self, productKey):
61+
"""
62+
:param productKey: (Optional) 设备所归属的产品
63+
"""
64+
self.productKey = productKey
65+
66+
def setModel(self, model):
67+
"""
68+
:param model: (Optional) 设备型号
69+
"""
70+
self.model = model
71+
72+
def setManufacturer(self, manufacturer):
73+
"""
74+
:param manufacturer: (Optional) 厂商
75+
"""
76+
self.manufacturer = manufacturer
77+
78+
def setIdentifier(self, identifier):
79+
"""
80+
:param identifier: (Optional) 连接码
81+
"""
82+
self.identifier = identifier
83+
84+
def setDescription(self, description):
85+
"""
86+
:param description: (Optional) 设备名
87+
"""
88+
self.description = description
89+
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
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 LoongrayQueryPageRequest(JDCloudRequest):
23+
"""
24+
朗瑞分页查询设备信息,支持一个或多个条件
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v2"):
28+
super(LoongrayQueryPageRequest, self).__init__(
29+
'/regions/{regionId}/instances/{instanceId}/devices:loongrayQueryPage', 'GET', header, version)
30+
self.parameters = parameters
31+
32+
33+
class LoongrayQueryPageParameters(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.deviceName = None
44+
self.status = None
45+
self.productKey = None
46+
self.deviceType = None
47+
self.nowPage = None
48+
self.pageSize = None
49+
self.order = None
50+
self.direction = None
51+
self.parentId = None
52+
53+
def setDeviceName(self, deviceName):
54+
"""
55+
:param deviceName: (Optional) 设备名称,模糊匹配
56+
"""
57+
self.deviceName = deviceName
58+
59+
def setStatus(self, status):
60+
"""
61+
:param status: (Optional) 设备状态 0-未激活,1-激活离线,2-激活在线
62+
"""
63+
self.status = status
64+
65+
def setProductKey(self, productKey):
66+
"""
67+
:param productKey: (Optional) 设备所归属的产品Key
68+
"""
69+
self.productKey = productKey
70+
71+
def setDeviceType(self, deviceType):
72+
"""
73+
:param deviceType: (Optional) 设备类型,同产品类型,0-设备,1-网关
74+
"""
75+
self.deviceType = deviceType
76+
77+
def setNowPage(self, nowPage):
78+
"""
79+
:param nowPage: (Optional) 当前页数
80+
"""
81+
self.nowPage = nowPage
82+
83+
def setPageSize(self, pageSize):
84+
"""
85+
:param pageSize: (Optional) 每页的数据条数
86+
"""
87+
self.pageSize = pageSize
88+
89+
def setOrder(self, order):
90+
"""
91+
:param order: (Optional) 排序关键字--name,type,productKey,status--最多支持一个字段
92+
"""
93+
self.order = order
94+
95+
def setDirection(self, direction):
96+
"""
97+
:param direction: (Optional) 顺序,升序降序--asc,desc
98+
"""
99+
self.direction = direction
100+
101+
def setParentId(self, parentId):
102+
"""
103+
:param parentId: (Optional) 父设备Id
104+
"""
105+
self.parentId = parentId
106+
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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 RemoveLoongrayDeviceRequest(JDCloudRequest):
23+
"""
24+
删除设备
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v2"):
28+
super(RemoveLoongrayDeviceRequest, self).__init__(
29+
'/regions/{regionId}/instances/{instanceId}/products/{productKey}/device/{deviceName}:loongraydelete', 'DELETE', header, version)
30+
self.parameters = parameters
31+
32+
33+
class RemoveLoongrayDeviceParameters(object):
34+
35+
def __init__(self, deviceName, instanceId, regionId, productKey, ):
36+
"""
37+
:param deviceName: 设备名称
38+
:param instanceId: 设备归属的实例ID
39+
:param regionId: 设备归属的实例所在区域
40+
:param productKey: 产品Key
41+
"""
42+
43+
self.deviceName = deviceName
44+
self.instanceId = instanceId
45+
self.regionId = regionId
46+
self.productKey = productKey
47+
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
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 UpdateLooDeviceRequest(JDCloudRequest):
23+
"""
24+
修改设备详情
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v2"):
28+
super(UpdateLooDeviceRequest, self).__init__(
29+
'/regions/{regionId}/instances/{instanceId}/device/{deviceId}:looupdate', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class UpdateLooDeviceParameters(object):
34+
35+
def __init__(self, instanceId, regionId, deviceId, ):
36+
"""
37+
:param instanceId: 设备归属的实例ID
38+
:param regionId: 设备归属的实例所在区域
39+
:param deviceId: 设备Id
40+
"""
41+
42+
self.instanceId = instanceId
43+
self.regionId = regionId
44+
self.deviceId = deviceId
45+
self.model = None
46+
self.manufacturer = None
47+
self.description = None
48+
self.status = None
49+
self.identifier = None
50+
self.deviceName = None
51+
52+
def setModel(self, model):
53+
"""
54+
:param model: (Optional) 设备型号
55+
"""
56+
self.model = model
57+
58+
def setManufacturer(self, manufacturer):
59+
"""
60+
:param manufacturer: (Optional) 设备厂商
61+
"""
62+
self.manufacturer = manufacturer
63+
64+
def setDescription(self, description):
65+
"""
66+
:param description: (Optional) 设备名
67+
"""
68+
self.description = description
69+
70+
def setStatus(self, status):
71+
"""
72+
:param status: (Optional) 设备状态
73+
"""
74+
self.status = status
75+
76+
def setIdentifier(self, identifier):
77+
"""
78+
:param identifier: (Optional) 连接码
79+
"""
80+
self.identifier = identifier
81+
82+
def setDeviceName(self, deviceName):
83+
"""
84+
:param deviceName: (Optional) 心跳
85+
"""
86+
self.deviceName = deviceName
87+

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.4', logger)
29+
super(IotcoreClient, self).__init__(credential, config, 'iotcore', '1.1.15', logger)
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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 CheckCustomerResuleVO(object):
21+
22+
def __init__(self, instanceId=None, instanceStatus=None, userStatus=None, isAdmin=None):
23+
"""
24+
:param instanceId: (Optional) 实例ID
25+
:param instanceStatus: (Optional) 实例状态
26+
:param userStatus: (Optional) 用户状态
27+
:param isAdmin: (Optional) 是否为管理员
28+
"""
29+
30+
self.instanceId = instanceId
31+
self.instanceStatus = instanceStatus
32+
self.userStatus = userStatus
33+
self.isAdmin = isAdmin

0 commit comments

Comments
 (0)