Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion jdcloud_sdk/services/iotcore/ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# 更新历史 #
API版本:1.1.19
API版本:1.1.20

|发布时间|版本号|更新|说明|
|---|---|---|---|
|2020-06-11 |1.1.20 |增加设备接口 | *设备更新接口发布
|2020-05-28 |1.1.19 |增加朗锐接口 | *(0x03)读保持寄存器
|2020-05-14 |1.1.18 |增加朗锐接口 | *朗瑞查询接口加参数
|2020-05-14 |1.1.15 |增加朗锐接口 | *增加朗锐的设备接口和电梯运行状态接口
Expand Down
2 changes: 1 addition & 1 deletion jdcloud_sdk/services/iotcore/apis/FunctionListRequest.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def __init__(self, regionId, instanceId, functionCallPageBo):
"""
:param regionId: 区域id
:param instanceId: 实例Id
:param functionCallPageBo: 方法查询请求
:param functionCallPageBo: 方法查询请求对象
"""

self.regionId = regionId
Expand Down
45 changes: 45 additions & 0 deletions jdcloud_sdk/services/iotcore/apis/GetPropertySnapshotRequest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.

from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest


class GetPropertySnapshotRequest(JDCloudRequest):
"""
属性获取接口
"""

def __init__(self, parameters, header=None, version="v2"):
super(GetPropertySnapshotRequest, self).__init__(
'/regions/{regionId}/coreinstances/{instanceId}/property:getSnapshot', 'POST', header, version)
self.parameters = parameters


class GetPropertySnapshotParameters(object):

def __init__(self, regionId, instanceId, deviceSnapshotRequestVO):
"""
:param regionId: 区域id
:param instanceId: 实例Id
:param deviceSnapshotRequestVO: 方法查询请求
"""

self.regionId = regionId
self.instanceId = instanceId
self.deviceSnapshotRequestVO = deviceSnapshotRequestVO

45 changes: 45 additions & 0 deletions jdcloud_sdk/services/iotcore/apis/PropertyAcquireRequest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.

from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest


class PropertyAcquireRequest(JDCloudRequest):
"""
查询属性接口
"""

def __init__(self, parameters, header=None, version="v2"):
super(PropertyAcquireRequest, self).__init__(
'/regions/{regionId}/coreinstances/{instanceId}/property:acquire', 'GET', header, version)
self.parameters = parameters


class PropertyAcquireParameters(object):

def __init__(self, regionId, instanceId, deviceId):
"""
:param regionId: 区域id
:param instanceId: 实例Id
:param deviceId: 设备ID
"""

self.regionId = regionId
self.instanceId = instanceId
self.deviceId = deviceId

2 changes: 1 addition & 1 deletion jdcloud_sdk/services/iotcore/client/IotcoreClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ def __init__(self, credential, config=None, logger=None):
if config is None:
config = Config('iotcore.jdcloud-api.com')

super(IotcoreClient, self).__init__(credential, config, 'iotcore', '1.1.19', logger)
super(IotcoreClient, self).__init__(credential, config, 'iotcore', '1.1.20', logger)
33 changes: 33 additions & 0 deletions jdcloud_sdk/services/iotcore/models/DeviceSnapshotRequestVO.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.


class DeviceSnapshotRequestVO(object):

def __init__(self, deviceId, thingTypeName, params=None, deviceName=None):
"""
:param deviceId: 设备标识ID
:param params: (Optional) 参数名称列表
:param deviceName: (Optional) 设备名称
:param thingTypeName: 物类型名称
"""

self.deviceId = deviceId
self.params = params
self.deviceName = deviceName
self.thingTypeName = thingTypeName
31 changes: 31 additions & 0 deletions jdcloud_sdk/services/iotcore/models/PropertyAcquireVo.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.


class PropertyAcquireVo(object):

def __init__(self, state, metaData, version, ):
"""
:param state: 属性状态
:param metaData: 元数据
:param version: 版本号
"""

self.state = state
self.metaData = metaData
self.version = version
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

setup(
name='jdcloud_sdk',
version="1.6.62",
version="1.6.63",
long_description=long_description,
long_description_content_type="text/markdown",
author='JDCloud API Gateway Team',
Expand Down