From 235338279446981653947cd31c48375ad5560886 Mon Sep 17 00:00:00 2001 From: Tanc009 Date: Thu, 11 Jun 2020 07:13:40 +0000 Subject: [PATCH] publish jdcloud-sdk-python 1.6.63 --- jdcloud_sdk/services/iotcore/ChangeLog.md | 3 +- .../iotcore/apis/FunctionListRequest.py | 2 +- .../apis/GetPropertySnapshotRequest.py | 45 +++++++++++++++++++ .../iotcore/apis/PropertyAcquireRequest.py | 45 +++++++++++++++++++ .../services/iotcore/client/IotcoreClient.py | 2 +- .../iotcore/models/DeviceSnapshotRequestVO.py | 33 ++++++++++++++ .../iotcore/models/PropertyAcquireVo.py | 31 +++++++++++++ setup.py | 2 +- 8 files changed, 159 insertions(+), 4 deletions(-) create mode 100644 jdcloud_sdk/services/iotcore/apis/GetPropertySnapshotRequest.py create mode 100644 jdcloud_sdk/services/iotcore/apis/PropertyAcquireRequest.py create mode 100644 jdcloud_sdk/services/iotcore/models/DeviceSnapshotRequestVO.py create mode 100644 jdcloud_sdk/services/iotcore/models/PropertyAcquireVo.py diff --git a/jdcloud_sdk/services/iotcore/ChangeLog.md b/jdcloud_sdk/services/iotcore/ChangeLog.md index b47a19b2..25f5bb70 100644 --- a/jdcloud_sdk/services/iotcore/ChangeLog.md +++ b/jdcloud_sdk/services/iotcore/ChangeLog.md @@ -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 |增加朗锐接口 | *增加朗锐的设备接口和电梯运行状态接口 diff --git a/jdcloud_sdk/services/iotcore/apis/FunctionListRequest.py b/jdcloud_sdk/services/iotcore/apis/FunctionListRequest.py index 206fa7d7..f91a3ae3 100644 --- a/jdcloud_sdk/services/iotcore/apis/FunctionListRequest.py +++ b/jdcloud_sdk/services/iotcore/apis/FunctionListRequest.py @@ -36,7 +36,7 @@ def __init__(self, regionId, instanceId, functionCallPageBo): """ :param regionId: 区域id :param instanceId: 实例Id - :param functionCallPageBo: 方法查询请求 + :param functionCallPageBo: 方法查询请求对象 """ self.regionId = regionId diff --git a/jdcloud_sdk/services/iotcore/apis/GetPropertySnapshotRequest.py b/jdcloud_sdk/services/iotcore/apis/GetPropertySnapshotRequest.py new file mode 100644 index 00000000..fb842dc1 --- /dev/null +++ b/jdcloud_sdk/services/iotcore/apis/GetPropertySnapshotRequest.py @@ -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 + diff --git a/jdcloud_sdk/services/iotcore/apis/PropertyAcquireRequest.py b/jdcloud_sdk/services/iotcore/apis/PropertyAcquireRequest.py new file mode 100644 index 00000000..7decc7dc --- /dev/null +++ b/jdcloud_sdk/services/iotcore/apis/PropertyAcquireRequest.py @@ -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 + diff --git a/jdcloud_sdk/services/iotcore/client/IotcoreClient.py b/jdcloud_sdk/services/iotcore/client/IotcoreClient.py index 2dcab7ae..fcd2f816 100644 --- a/jdcloud_sdk/services/iotcore/client/IotcoreClient.py +++ b/jdcloud_sdk/services/iotcore/client/IotcoreClient.py @@ -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) diff --git a/jdcloud_sdk/services/iotcore/models/DeviceSnapshotRequestVO.py b/jdcloud_sdk/services/iotcore/models/DeviceSnapshotRequestVO.py new file mode 100644 index 00000000..6e338177 --- /dev/null +++ b/jdcloud_sdk/services/iotcore/models/DeviceSnapshotRequestVO.py @@ -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 diff --git a/jdcloud_sdk/services/iotcore/models/PropertyAcquireVo.py b/jdcloud_sdk/services/iotcore/models/PropertyAcquireVo.py new file mode 100644 index 00000000..304db237 --- /dev/null +++ b/jdcloud_sdk/services/iotcore/models/PropertyAcquireVo.py @@ -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 diff --git a/setup.py b/setup.py index a1bbd5c4..768eaea5 100644 --- a/setup.py +++ b/setup.py @@ -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',