Skip to content

Commit 2353382

Browse files
committed
publish jdcloud-sdk-python 1.6.63
1 parent c05d542 commit 2353382

8 files changed

Lines changed: 159 additions & 4 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.19
2+
API版本:1.1.20
33

44
|发布时间|版本号|更新|说明|
55
|---|---|---|---|
6+
|2020-06-11 |1.1.20 |增加设备接口 | *设备更新接口发布
67
|2020-05-28 |1.1.19 |增加朗锐接口 | *(0x03)读保持寄存器
78
|2020-05-14 |1.1.18 |增加朗锐接口 | *朗瑞查询接口加参数
89
|2020-05-14 |1.1.15 |增加朗锐接口 | *增加朗锐的设备接口和电梯运行状态接口

jdcloud_sdk/services/iotcore/apis/FunctionListRequest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def __init__(self, regionId, instanceId, functionCallPageBo):
3636
"""
3737
:param regionId: 区域id
3838
:param instanceId: 实例Id
39-
:param functionCallPageBo: 方法查询请求
39+
:param functionCallPageBo: 方法查询请求对象
4040
"""
4141

4242
self.regionId = regionId
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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 GetPropertySnapshotRequest(JDCloudRequest):
23+
"""
24+
属性获取接口
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v2"):
28+
super(GetPropertySnapshotRequest, self).__init__(
29+
'/regions/{regionId}/coreinstances/{instanceId}/property:getSnapshot', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class GetPropertySnapshotParameters(object):
34+
35+
def __init__(self, regionId, instanceId, deviceSnapshotRequestVO):
36+
"""
37+
:param regionId: 区域id
38+
:param instanceId: 实例Id
39+
:param deviceSnapshotRequestVO: 方法查询请求
40+
"""
41+
42+
self.regionId = regionId
43+
self.instanceId = instanceId
44+
self.deviceSnapshotRequestVO = deviceSnapshotRequestVO
45+
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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 PropertyAcquireRequest(JDCloudRequest):
23+
"""
24+
查询属性接口
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v2"):
28+
super(PropertyAcquireRequest, self).__init__(
29+
'/regions/{regionId}/coreinstances/{instanceId}/property:acquire', 'GET', header, version)
30+
self.parameters = parameters
31+
32+
33+
class PropertyAcquireParameters(object):
34+
35+
def __init__(self, regionId, instanceId, deviceId):
36+
"""
37+
:param regionId: 区域id
38+
:param instanceId: 实例Id
39+
:param deviceId: 设备ID
40+
"""
41+
42+
self.regionId = regionId
43+
self.instanceId = instanceId
44+
self.deviceId = deviceId
45+

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.19', logger)
29+
super(IotcoreClient, self).__init__(credential, config, 'iotcore', '1.1.20', 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 DeviceSnapshotRequestVO(object):
21+
22+
def __init__(self, deviceId, thingTypeName, params=None, deviceName=None):
23+
"""
24+
:param deviceId: 设备标识ID
25+
:param params: (Optional) 参数名称列表
26+
:param deviceName: (Optional) 设备名称
27+
:param thingTypeName: 物类型名称
28+
"""
29+
30+
self.deviceId = deviceId
31+
self.params = params
32+
self.deviceName = deviceName
33+
self.thingTypeName = thingTypeName
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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 PropertyAcquireVo(object):
21+
22+
def __init__(self, state, metaData, version, ):
23+
"""
24+
:param state: 属性状态
25+
:param metaData: 元数据
26+
:param version: 版本号
27+
"""
28+
29+
self.state = state
30+
self.metaData = metaData
31+
self.version = version

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.62",
12+
version="1.6.63",
1313
long_description=long_description,
1414
long_description_content_type="text/markdown",
1515
author='JDCloud API Gateway Team',

0 commit comments

Comments
 (0)