Skip to content

Commit 313b164

Browse files
committed
publish jdcloud-sdk-python 1.6.62
1 parent e8c171a commit 313b164

7 files changed

Lines changed: 107 additions & 7 deletions

File tree

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.15
2+
API版本:1.1.19
33

44
|发布时间|版本号|更新|说明|
55
|---|---|---|---|
6+
|2020-05-28 |1.1.19 |增加朗锐接口 | *(0x03)读保持寄存器
67
|2020-05-14 |1.1.18 |增加朗锐接口 | *朗瑞查询接口加参数
78
|2020-05-14 |1.1.15 |增加朗锐接口 | *增加朗锐的设备接口和电梯运行状态接口
89
|2020-04-20 |1.1.5 |增加iotcore融合 | *增加实例列表、实例详情和实例删除接口
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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 DescribeThingModelRequest(JDCloudRequest):
23+
"""
24+
根据模型ID查看物模型完整信息
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v2"):
28+
super(DescribeThingModelRequest, self).__init__(
29+
'/regions/{regionId}/coreinstances/{instanceId}/thingModel:describeThingModel', 'GET', header, version)
30+
self.parameters = parameters
31+
32+
33+
class DescribeThingModelParameters(object):
34+
35+
def __init__(self, regionId, instanceId, thingModelId, ):
36+
"""
37+
:param regionId: 区域id
38+
:param instanceId: 实例Id
39+
:param thingModelId: 物模型ID编号
40+
"""
41+
42+
self.regionId = regionId
43+
self.instanceId = instanceId
44+
self.thingModelId = thingModelId
45+
self.thingModelVersion = None
46+
47+
def setThingModelVersion(self, thingModelVersion):
48+
"""
49+
:param thingModelVersion: (Optional) 版本号。如果为空,则返回最新版本
50+
"""
51+
self.thingModelVersion = thingModelVersion
52+
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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 ReadHoldingRegistersRequest(JDCloudRequest):
23+
"""
24+
(0x03)读保持寄存器
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v2"):
28+
super(ReadHoldingRegistersRequest, self).__init__(
29+
'/regions/{regionId}/loongrayinstances/{instanceId}/readHoldingRegisters', 'GET', header, version)
30+
self.parameters = parameters
31+
32+
33+
class ReadHoldingRegistersParameters(object):
34+
35+
def __init__(self, instanceId, regionId, identifier, addressOfFirstRegister, numberOfRegisters):
36+
"""
37+
:param instanceId: Hub实例Id
38+
:param regionId: 区域Id
39+
:param identifier: 连接码
40+
:param addressOfFirstRegister: 起始地址,如40301
41+
:param numberOfRegisters: 寄存器数量
42+
"""
43+
44+
self.instanceId = instanceId
45+
self.regionId = regionId
46+
self.identifier = identifier
47+
self.addressOfFirstRegister = addressOfFirstRegister
48+
self.numberOfRegisters = numberOfRegisters
49+

jdcloud_sdk/services/iotcore/apis/ThingTypeDescribeRequest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
class ThingTypeDescribeRequest(JDCloudRequest):
2323
"""
24-
查询物类型列表
24+
查询物类型详情
2525
"""
2626

2727
def __init__(self, parameters, header=None, version="v2"):

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.18', logger)
29+
super(IotcoreClient, self).__init__(credential, config, 'iotcore', '1.1.19', logger)

jdcloud_sdk/services/iotcore/models/DeviceInfoVO.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
class DeviceInfoVO(object):
2121

22-
def __init__(self, activateTime=None, connectAgentDeviceId=None, createTime=None, customProfiles=None, deviceId=None, deviceName=None, deviceTagList=None, globalProfiles=None, lastConnectTime=None, lastDisconnectTime=None, latitude=None, longitude=None, macAddress=None, manufactureId=None, manufactureName=None, nodeType=None, lastReportTime=None, status=None, thingModelId=None, thingModelVersion=None, thingType=None, thingTypeCode=None, thingTypeName=None, uniqueId=None, updateTime=None):
22+
def __init__(self, activateTime=None, connectAgentDeviceId=None, createTime=None, customProfiles=None, deviceId=None, deviceName=None, deviceTagList=None, globalProfiles=None, lastConnectTime=None, lastDisconnectTime=None, latitude=None, longitude=None, macAddress=None, manufactureId=None, manufactureName=None, nodeType=None, lastReportTime=None, status=None, thingModelId=None, thingModelVersion=None, thingTypeCode=None, thingTypeName=None, uniqueId=None, updateTime=None):
2323
"""
2424
:param activateTime: (Optional) 激活时间
2525
:param connectAgentDeviceId: (Optional) 代理设备id
@@ -41,7 +41,6 @@ def __init__(self, activateTime=None, connectAgentDeviceId=None, createTime=None
4141
:param status: (Optional) 设备状态:0 停用;1 未激活;2 离线;3 在线
4242
:param thingModelId: (Optional) 物模型ID
4343
:param thingModelVersion: (Optional) 物模型版本号
44-
:param thingType: (Optional) 物模型类型
4544
:param thingTypeCode: (Optional) 物类型ID
4645
:param thingTypeName: (Optional) 物类型名称
4746
:param uniqueId: (Optional) 设备物理ID
@@ -68,7 +67,6 @@ def __init__(self, activateTime=None, connectAgentDeviceId=None, createTime=None
6867
self.status = status
6968
self.thingModelId = thingModelId
7069
self.thingModelVersion = thingModelVersion
71-
self.thingType = thingType
7270
self.thingTypeCode = thingTypeCode
7371
self.thingTypeName = thingTypeName
7472
self.uniqueId = uniqueId

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
setup(
1111
name='jdcloud_sdk',
12-
version="1.6.61",
12+
version="1.6.62",
1313
long_description=long_description,
1414
long_description_content_type="text/markdown",
1515
author='JDCloud API Gateway Team',

0 commit comments

Comments
 (0)