Skip to content

Commit ea90914

Browse files
committed
publish jdcloud-sdk-python 1.6.60
1 parent 6f21e85 commit ea90914

38 files changed

Lines changed: 1565 additions & 6 deletions

jdcloud_sdk/services/iotcore/apis/AddLooDeviceRequest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,13 @@ def __init__(self, parameters, header=None, version="v2"):
3232

3333
class AddLooDeviceParameters(object):
3434

35-
def __init__(self, instanceId, regionId, preOrderId, userPinParam, ):
35+
def __init__(self, instanceId, regionId, preOrderId, userPinParam, deviceType):
3636
"""
3737
:param instanceId: 设备归属的实例ID
3838
:param regionId: 设备归属的实例所在区域
3939
:param preOrderId: 申请单编号
4040
:param userPinParam: 用户Pin
41+
:param deviceType: 设备类型
4142
"""
4243

4344
self.instanceId = instanceId
@@ -50,6 +51,7 @@ def __init__(self, instanceId, regionId, preOrderId, userPinParam, ):
5051
self.manufacturer = None
5152
self.identifier = None
5253
self.description = None
54+
self.deviceType = deviceType
5355

5456
def setDeviceName(self, deviceName):
5557
"""
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
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 CollectorReadMessageRequest(JDCloudRequest):
23+
"""
24+
获取协议信息
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v2"):
28+
super(CollectorReadMessageRequest, self).__init__(
29+
'/regions/{regionId}/loongrayinstances/{instanceId}/readCollectorProperty', 'GET', header, version)
30+
self.parameters = parameters
31+
32+
33+
class CollectorReadMessageParameters(object):
34+
35+
def __init__(self, instanceId, regionId, ):
36+
"""
37+
:param instanceId: Hub实例Id
38+
:param regionId: 区域Id
39+
"""
40+
41+
self.instanceId = instanceId
42+
self.regionId = regionId
43+
self.identifier = None
44+
self.protocol = None
45+
46+
def setIdentifier(self, identifier):
47+
"""
48+
:param identifier: (Optional) 当前的链接码
49+
"""
50+
self.identifier = identifier
51+
52+
def setProtocol(self, protocol):
53+
"""
54+
:param protocol: (Optional) 当前的协议类型
55+
"""
56+
self.protocol = protocol
57+
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
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 CollectorWriteMessageRequest(JDCloudRequest):
23+
"""
24+
写入采集器数据
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v2"):
28+
super(CollectorWriteMessageRequest, self).__init__(
29+
'/regions/{regionId}/loongrayinstances/{instanceId}/writeCollectorProperty', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class CollectorWriteMessageParameters(object):
34+
35+
def __init__(self, instanceId, regionId, ):
36+
"""
37+
:param instanceId: Hub实例Id
38+
:param regionId: 区域Id
39+
"""
40+
41+
self.instanceId = instanceId
42+
self.regionId = regionId
43+
self.identifier = None
44+
self.protocol = None
45+
self.data = None
46+
47+
def setIdentifier(self, identifier):
48+
"""
49+
:param identifier: (Optional) 当前的链接码
50+
"""
51+
self.identifier = identifier
52+
53+
def setProtocol(self, protocol):
54+
"""
55+
:param protocol: (Optional) 当前的协议类型
56+
"""
57+
self.protocol = protocol
58+
59+
def setData(self, data):
60+
"""
61+
:param data: (Optional) 当前待写入的数据
62+
"""
63+
self.data = data
64+
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
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 CreateAdminProductRequest(JDCloudRequest):
23+
"""
24+
新建产品
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v2"):
28+
super(CreateAdminProductRequest, self).__init__(
29+
'/regions/{regionId}/loongrayinstances/{instanceId}/productsAdmin', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class CreateAdminProductParameters(object):
34+
35+
def __init__(self, regionId, instanceId, productName, productType, ):
36+
"""
37+
:param regionId: 地域ID
38+
:param instanceId: IoT Engine实例ID信息
39+
:param productName: 产品名称,名称不可为空,3-30个字符,只支持汉字、英文字母、数字、下划线“_”及中划线“-”,必须以汉字、英文字母及数字开头结尾
40+
:param productType: 节点类型,取值:
41+
0:设备。设备不能挂载子设备。可以直连物联网平台,也可以作为网关的子设备连接物联网平台
42+
1:网关。网关可以挂载子设备,具有子设备管理模块,维持子设备的拓扑关系,和将拓扑关系同步到物联网平台
43+
44+
"""
45+
46+
self.regionId = regionId
47+
self.instanceId = instanceId
48+
self.productName = productName
49+
self.productType = productType
50+
self.productDescription = None
51+
self.templateId = None
52+
self.internalTags = None
53+
54+
def setProductDescription(self, productDescription):
55+
"""
56+
:param productDescription: (Optional) 产品描述,80字符以内
57+
"""
58+
self.productDescription = productDescription
59+
60+
def setTemplateId(self, templateId):
61+
"""
62+
:param templateId: (Optional) 物模型模板ID,内部参数,用户不可见,默认为自定义
63+
"""
64+
self.templateId = templateId
65+
66+
def setInternalTags(self, internalTags):
67+
"""
68+
:param internalTags: (Optional) 内部标签,内部参数,用户不可见,隐藏标签:hidden:true
69+
"""
70+
self.internalTags = internalTags
71+
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 DeleteDeviceRequest(JDCloudRequest):
23+
"""
24+
设备删除接口
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v2"):
28+
super(DeleteDeviceRequest, self).__init__(
29+
'/regions/{regionId}/coreinstances/{instanceId}/device:delete', 'DELETE', header, version)
30+
self.parameters = parameters
31+
32+
33+
class DeleteDeviceParameters(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+
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 DeleteProductWithAdminRequest(JDCloudRequest):
23+
"""
24+
删除产品
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v2"):
28+
super(DeleteProductWithAdminRequest, self).__init__(
29+
'/regions/{regionId}/loongrayinstances/{instanceId}/products/{productKey}/admin', 'DELETE', header, version)
30+
self.parameters = parameters
31+
32+
33+
class DeleteProductWithAdminParameters(object):
34+
35+
def __init__(self, regionId, instanceId, productKey, ):
36+
"""
37+
:param regionId: 地域ID
38+
:param instanceId: IoT Engine实例ID信息
39+
:param productKey: 产品Key
40+
"""
41+
42+
self.regionId = regionId
43+
self.instanceId = instanceId
44+
self.productKey = productKey
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 DescribeProductWithAdminRequest(JDCloudRequest):
23+
"""
24+
查看产品
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v2"):
28+
super(DescribeProductWithAdminRequest, self).__init__(
29+
'/regions/{regionId}/loongrayinstances/{instanceId}/products/{productKey}/admin', 'GET', header, version)
30+
self.parameters = parameters
31+
32+
33+
class DescribeProductWithAdminParameters(object):
34+
35+
def __init__(self, regionId, instanceId, productKey, ):
36+
"""
37+
:param regionId: 地域ID
38+
:param instanceId: IoT Engine实例ID信息
39+
:param productKey: 产品Key
40+
"""
41+
42+
self.regionId = regionId
43+
self.instanceId = instanceId
44+
self.productKey = productKey
45+

0 commit comments

Comments
 (0)