tencentcloud-sdk-python-iotexplorer 3.1.127__tar.gz → 3.1.135__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {tencentcloud_sdk_python_iotexplorer-3.1.127 → tencentcloud_sdk_python_iotexplorer-3.1.135}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_iotexplorer-3.1.127 → tencentcloud_sdk_python_iotexplorer-3.1.135}/setup.py +1 -1
- {tencentcloud_sdk_python_iotexplorer-3.1.127 → tencentcloud_sdk_python_iotexplorer-3.1.135}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_iotexplorer-3.1.127 → tencentcloud_sdk_python_iotexplorer-3.1.135}/tencentcloud/iotexplorer/v20190423/errorcodes.py +12 -0
- {tencentcloud_sdk_python_iotexplorer-3.1.127 → tencentcloud_sdk_python_iotexplorer-3.1.135}/tencentcloud/iotexplorer/v20190423/iotexplorer_client.py +293 -0
- {tencentcloud_sdk_python_iotexplorer-3.1.127 → tencentcloud_sdk_python_iotexplorer-3.1.135}/tencentcloud/iotexplorer/v20190423/iotexplorer_client_async.py +238 -0
- {tencentcloud_sdk_python_iotexplorer-3.1.127 → tencentcloud_sdk_python_iotexplorer-3.1.135}/tencentcloud/iotexplorer/v20190423/models.py +3013 -1
- {tencentcloud_sdk_python_iotexplorer-3.1.127 → tencentcloud_sdk_python_iotexplorer-3.1.135}/tencentcloud_sdk_python_iotexplorer.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_iotexplorer-3.1.135/tencentcloud_sdk_python_iotexplorer.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_iotexplorer-3.1.127/tencentcloud_sdk_python_iotexplorer.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_iotexplorer-3.1.127 → tencentcloud_sdk_python_iotexplorer-3.1.135}/README.rst +0 -0
- {tencentcloud_sdk_python_iotexplorer-3.1.127 → tencentcloud_sdk_python_iotexplorer-3.1.135}/setup.cfg +0 -0
- {tencentcloud_sdk_python_iotexplorer-3.1.127 → tencentcloud_sdk_python_iotexplorer-3.1.135}/tencentcloud/iotexplorer/__init__.py +0 -0
- {tencentcloud_sdk_python_iotexplorer-3.1.127 → tencentcloud_sdk_python_iotexplorer-3.1.135}/tencentcloud/iotexplorer/v20190423/__init__.py +0 -0
- {tencentcloud_sdk_python_iotexplorer-3.1.127 → tencentcloud_sdk_python_iotexplorer-3.1.135}/tencentcloud_sdk_python_iotexplorer.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_iotexplorer-3.1.127 → tencentcloud_sdk_python_iotexplorer-3.1.135}/tencentcloud_sdk_python_iotexplorer.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_iotexplorer-3.1.127 → tencentcloud_sdk_python_iotexplorer-3.1.135}/tencentcloud_sdk_python_iotexplorer.egg-info/top_level.txt +0 -0
{tencentcloud_sdk_python_iotexplorer-3.1.127 → tencentcloud_sdk_python_iotexplorer-3.1.135}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-iotexplorer
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.135
|
|
4
4
|
Summary: Tencent Cloud Iotexplorer SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.135
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
{tencentcloud_sdk_python_iotexplorer-3.1.127 → tencentcloud_sdk_python_iotexplorer-3.1.135}/setup.py
RENAMED
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-iotexplorer',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.135,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Iotexplorer SDK for Python',
|
|
@@ -239,6 +239,9 @@ INVALIDPARAMETERVALUE_FORWARDREDIRECTDENIED = 'InvalidParameterValue.ForwardRedi
|
|
|
239
239
|
# 拉取产品列表失败。
|
|
240
240
|
INVALIDPARAMETERVALUE_GETPRODUCTSLISTERROR = 'InvalidParameterValue.GetProductsListError'
|
|
241
241
|
|
|
242
|
+
# AppKey 无效
|
|
243
|
+
INVALIDPARAMETERVALUE_INVALIDAPPKEY = 'InvalidParameterValue.InvalidAppKey'
|
|
244
|
+
|
|
242
245
|
# 回调 Token 格式有误
|
|
243
246
|
INVALIDPARAMETERVALUE_INVALIDCALLBACKTOKEN = 'InvalidParameterValue.InvalidCallbackToken'
|
|
244
247
|
|
|
@@ -359,6 +362,9 @@ INVALIDPARAMETERVALUE_TPNSANDROIDVALIDATIONFAILED = 'InvalidParameterValue.TPNSA
|
|
|
359
362
|
# TPNSiOSAccessID, TPNSiOSSecretKey, TPNSiOSRegion validation failed。
|
|
360
363
|
INVALIDPARAMETERVALUE_TPNSIOSVALIDATIONFAILED = 'InvalidParameterValue.TPNSiOSValidationFailed'
|
|
361
364
|
|
|
365
|
+
# Topic与replyTopic必须同时设置或同时为空
|
|
366
|
+
INVALIDPARAMETERVALUE_TOPICMISMATCH = 'InvalidParameterValue.TopicMismatch'
|
|
367
|
+
|
|
362
368
|
# Topic已存在。
|
|
363
369
|
INVALIDPARAMETERVALUE_TOPICPOLICYALREADYEXIST = 'InvalidParameterValue.TopicPolicyAlreadyExist'
|
|
364
370
|
|
|
@@ -695,6 +701,9 @@ UNSUPPORTEDOPERATION_PRODUCTHASBINDEDGATEWAYPRODUCT = 'UnsupportedOperation.Prod
|
|
|
695
701
|
# 产品已被共享,请先解除共享。
|
|
696
702
|
UNSUPPORTEDOPERATION_PRODUCTHASSHARED = 'UnsupportedOperation.ProductHasShared'
|
|
697
703
|
|
|
704
|
+
# 子产品禁止直接绑定家庭,请走网关绑定
|
|
705
|
+
UNSUPPORTEDOPERATION_PRODUCTISSUBPRODUCT = 'UnsupportedOperation.ProductIsSubProduct'
|
|
706
|
+
|
|
698
707
|
# 存在重复项目。
|
|
699
708
|
UNSUPPORTEDOPERATION_PROJECTDUPKEYEXIST = 'UnsupportedOperation.ProjectDupKeyExist'
|
|
700
709
|
|
|
@@ -724,3 +733,6 @@ UNSUPPORTEDOPERATION_VIDEOINSUFFICIENTLICENSES = 'UnsupportedOperation.VideoInsu
|
|
|
724
733
|
|
|
725
734
|
# Video平台产品不存在。
|
|
726
735
|
UNSUPPORTEDOPERATION_VIDEOPRODUCTNOTEXIST = 'UnsupportedOperation.VideoProductNotExist'
|
|
736
|
+
|
|
737
|
+
# 虚拟设备禁止绑定 / 解绑
|
|
738
|
+
UNSUPPORTEDOPERATION_VIRTUALDEVICECANNOTBIND = 'UnsupportedOperation.VirtualDeviceCannotBind'
|
|
@@ -233,6 +233,56 @@ class IotexplorerClient(AbstractClient):
|
|
|
233
233
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
234
234
|
|
|
235
235
|
|
|
236
|
+
def BindTWeTalkAgent(self, request):
|
|
237
|
+
r"""绑定智能体到产品或设备
|
|
238
|
+
- `BindingScope=product` 时,`DeviceName` 必须为空。
|
|
239
|
+
- `BindingScope=device` 时,`DeviceName` 必填。
|
|
240
|
+
|
|
241
|
+
:param request: Request instance for BindTWeTalkAgent.
|
|
242
|
+
:type request: :class:`tencentcloud.iotexplorer.v20190423.models.BindTWeTalkAgentRequest`
|
|
243
|
+
:rtype: :class:`tencentcloud.iotexplorer.v20190423.models.BindTWeTalkAgentResponse`
|
|
244
|
+
|
|
245
|
+
"""
|
|
246
|
+
try:
|
|
247
|
+
params = request._serialize()
|
|
248
|
+
headers = request.headers
|
|
249
|
+
body = self.call("BindTWeTalkAgent", params, headers=headers)
|
|
250
|
+
response = json.loads(body)
|
|
251
|
+
model = models.BindTWeTalkAgentResponse()
|
|
252
|
+
model._deserialize(response["Response"])
|
|
253
|
+
return model
|
|
254
|
+
except Exception as e:
|
|
255
|
+
if isinstance(e, TencentCloudSDKException):
|
|
256
|
+
raise
|
|
257
|
+
else:
|
|
258
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
def BindUserDevice(self, request):
|
|
262
|
+
r"""1. 按 `(IotAppID, OpenID)` 兜底创建 / 复用 app 端用户;
|
|
263
|
+
2. 按 `(用户, FamilyName)` 兜底创建 / 复用默认家庭;
|
|
264
|
+
3. 将设备直接绑定到该家庭(已绑同家庭视为成功,并继续异步下发 `bind_device` 消息)。
|
|
265
|
+
|
|
266
|
+
:param request: Request instance for BindUserDevice.
|
|
267
|
+
:type request: :class:`tencentcloud.iotexplorer.v20190423.models.BindUserDeviceRequest`
|
|
268
|
+
:rtype: :class:`tencentcloud.iotexplorer.v20190423.models.BindUserDeviceResponse`
|
|
269
|
+
|
|
270
|
+
"""
|
|
271
|
+
try:
|
|
272
|
+
params = request._serialize()
|
|
273
|
+
headers = request.headers
|
|
274
|
+
body = self.call("BindUserDevice", params, headers=headers)
|
|
275
|
+
response = json.loads(body)
|
|
276
|
+
model = models.BindUserDeviceResponse()
|
|
277
|
+
model._deserialize(response["Response"])
|
|
278
|
+
return model
|
|
279
|
+
except Exception as e:
|
|
280
|
+
if isinstance(e, TencentCloudSDKException):
|
|
281
|
+
raise
|
|
282
|
+
else:
|
|
283
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
284
|
+
|
|
285
|
+
|
|
236
286
|
def CallDeviceActionAsync(self, request):
|
|
237
287
|
r"""提供给用户异步调用设备行为的能力
|
|
238
288
|
|
|
@@ -279,6 +329,63 @@ class IotexplorerClient(AbstractClient):
|
|
|
279
329
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
280
330
|
|
|
281
331
|
|
|
332
|
+
def CallDeviceRRPCSync(self, request):
|
|
333
|
+
r"""平台向设备发起一次同步 RRPC(Reverse RPC)调用——下行下发请求,同步阻塞等待设备回包,超时未回则返回 Timeout。
|
|
334
|
+
|
|
335
|
+
适用场景:
|
|
336
|
+
|
|
337
|
+
默认模式:使用平台保留 topic $iotrrpc/down 和 $iotrrpc/up。
|
|
338
|
+
自定义模式:业务自带下行 topic;Reply topic 可选 —— 不传时平台仅依赖 clientToken 关联上行 ack。
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
## 设备侧实现指引
|
|
343
|
+
|
|
344
|
+
### 默认模式
|
|
345
|
+
|
|
346
|
+
1. 订阅 `$iotrrpc/down/{ProductId}/{DeviceName}/+`;
|
|
347
|
+
2. 收到下行后,从 topic 末段解析 `{mid}`;
|
|
348
|
+
3. 向 `$iotrrpc/up/{ProductId}/{DeviceName}/{mid}` 发送回包,**payload 任意字节**(推荐 JSON)。
|
|
349
|
+
|
|
350
|
+
### 自定义模式
|
|
351
|
+
|
|
352
|
+
1. 订阅业务 `Topic`;
|
|
353
|
+
2. 解析 payload JSON,**保留 `clientToken` 字段**;
|
|
354
|
+
3. 处理业务后,构造 envelope JSON:
|
|
355
|
+
|
|
356
|
+
```json
|
|
357
|
+
{
|
|
358
|
+
"method": "rrpc_sync_reply",
|
|
359
|
+
"clientToken": "<原样回填>",
|
|
360
|
+
"payload": "<base64 of 业务字节>"
|
|
361
|
+
}
|
|
362
|
+
```
|
|
363
|
+
|
|
364
|
+
4. publish 到与平台 `ReplyTopic` 通配符匹配的具体 topic(推荐使用与下行同 topic)。
|
|
365
|
+
|
|
366
|
+
> ⚠️ `clientToken` **必填且必须原样回填**,否则平台无法关联,调用方将收到 `Status=Timeout`。
|
|
367
|
+
> ⚠️ `method` 必须为 `rrpc_sync_reply`,否则会直接 skip。
|
|
368
|
+
|
|
369
|
+
:param request: Request instance for CallDeviceRRPCSync.
|
|
370
|
+
:type request: :class:`tencentcloud.iotexplorer.v20190423.models.CallDeviceRRPCSyncRequest`
|
|
371
|
+
:rtype: :class:`tencentcloud.iotexplorer.v20190423.models.CallDeviceRRPCSyncResponse`
|
|
372
|
+
|
|
373
|
+
"""
|
|
374
|
+
try:
|
|
375
|
+
params = request._serialize()
|
|
376
|
+
headers = request.headers
|
|
377
|
+
body = self.call("CallDeviceRRPCSync", params, headers=headers)
|
|
378
|
+
response = json.loads(body)
|
|
379
|
+
model = models.CallDeviceRRPCSyncResponse()
|
|
380
|
+
model._deserialize(response["Response"])
|
|
381
|
+
return model
|
|
382
|
+
except Exception as e:
|
|
383
|
+
if isinstance(e, TencentCloudSDKException):
|
|
384
|
+
raise
|
|
385
|
+
else:
|
|
386
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
387
|
+
|
|
388
|
+
|
|
282
389
|
def ChangeP2PRoute(self, request):
|
|
283
390
|
r"""p2p路线切换(此接口目前处于内测接口,可以联系申请加白 )
|
|
284
391
|
|
|
@@ -992,6 +1099,29 @@ class IotexplorerClient(AbstractClient):
|
|
|
992
1099
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
993
1100
|
|
|
994
1101
|
|
|
1102
|
+
def CreateTWeTalkAgent(self, request):
|
|
1103
|
+
r"""新增TWeTalk智能体。
|
|
1104
|
+
|
|
1105
|
+
:param request: Request instance for CreateTWeTalkAgent.
|
|
1106
|
+
:type request: :class:`tencentcloud.iotexplorer.v20190423.models.CreateTWeTalkAgentRequest`
|
|
1107
|
+
:rtype: :class:`tencentcloud.iotexplorer.v20190423.models.CreateTWeTalkAgentResponse`
|
|
1108
|
+
|
|
1109
|
+
"""
|
|
1110
|
+
try:
|
|
1111
|
+
params = request._serialize()
|
|
1112
|
+
headers = request.headers
|
|
1113
|
+
body = self.call("CreateTWeTalkAgent", params, headers=headers)
|
|
1114
|
+
response = json.loads(body)
|
|
1115
|
+
model = models.CreateTWeTalkAgentResponse()
|
|
1116
|
+
model._deserialize(response["Response"])
|
|
1117
|
+
return model
|
|
1118
|
+
except Exception as e:
|
|
1119
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1120
|
+
raise
|
|
1121
|
+
else:
|
|
1122
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1123
|
+
|
|
1124
|
+
|
|
995
1125
|
def CreateTWeTalkProductConfig(self, request):
|
|
996
1126
|
r"""用于配置TWeTalk服务连接产品配置信息。
|
|
997
1127
|
|
|
@@ -1406,6 +1536,29 @@ class IotexplorerClient(AbstractClient):
|
|
|
1406
1536
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1407
1537
|
|
|
1408
1538
|
|
|
1539
|
+
def DeleteTWeTalkAgent(self, request):
|
|
1540
|
+
r"""用于删除TWeTalk智能体
|
|
1541
|
+
|
|
1542
|
+
:param request: Request instance for DeleteTWeTalkAgent.
|
|
1543
|
+
:type request: :class:`tencentcloud.iotexplorer.v20190423.models.DeleteTWeTalkAgentRequest`
|
|
1544
|
+
:rtype: :class:`tencentcloud.iotexplorer.v20190423.models.DeleteTWeTalkAgentResponse`
|
|
1545
|
+
|
|
1546
|
+
"""
|
|
1547
|
+
try:
|
|
1548
|
+
params = request._serialize()
|
|
1549
|
+
headers = request.headers
|
|
1550
|
+
body = self.call("DeleteTWeTalkAgent", params, headers=headers)
|
|
1551
|
+
response = json.loads(body)
|
|
1552
|
+
model = models.DeleteTWeTalkAgentResponse()
|
|
1553
|
+
model._deserialize(response["Response"])
|
|
1554
|
+
return model
|
|
1555
|
+
except Exception as e:
|
|
1556
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1557
|
+
raise
|
|
1558
|
+
else:
|
|
1559
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1560
|
+
|
|
1561
|
+
|
|
1409
1562
|
def DeleteTWeTalkProductConfigV2(self, request):
|
|
1410
1563
|
r"""用于删除配置TWeTalk服务连接产品配置信息。
|
|
1411
1564
|
|
|
@@ -2947,6 +3100,75 @@ class IotexplorerClient(AbstractClient):
|
|
|
2947
3100
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2948
3101
|
|
|
2949
3102
|
|
|
3103
|
+
def DescribeTWeTalkAgent(self, request):
|
|
3104
|
+
r"""用户查询TWeTalk智能体详情
|
|
3105
|
+
|
|
3106
|
+
:param request: Request instance for DescribeTWeTalkAgent.
|
|
3107
|
+
:type request: :class:`tencentcloud.iotexplorer.v20190423.models.DescribeTWeTalkAgentRequest`
|
|
3108
|
+
:rtype: :class:`tencentcloud.iotexplorer.v20190423.models.DescribeTWeTalkAgentResponse`
|
|
3109
|
+
|
|
3110
|
+
"""
|
|
3111
|
+
try:
|
|
3112
|
+
params = request._serialize()
|
|
3113
|
+
headers = request.headers
|
|
3114
|
+
body = self.call("DescribeTWeTalkAgent", params, headers=headers)
|
|
3115
|
+
response = json.loads(body)
|
|
3116
|
+
model = models.DescribeTWeTalkAgentResponse()
|
|
3117
|
+
model._deserialize(response["Response"])
|
|
3118
|
+
return model
|
|
3119
|
+
except Exception as e:
|
|
3120
|
+
if isinstance(e, TencentCloudSDKException):
|
|
3121
|
+
raise
|
|
3122
|
+
else:
|
|
3123
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
3124
|
+
|
|
3125
|
+
|
|
3126
|
+
def DescribeTWeTalkAgentBinding(self, request):
|
|
3127
|
+
r"""查询智能体绑定关系
|
|
3128
|
+
|
|
3129
|
+
:param request: Request instance for DescribeTWeTalkAgentBinding.
|
|
3130
|
+
:type request: :class:`tencentcloud.iotexplorer.v20190423.models.DescribeTWeTalkAgentBindingRequest`
|
|
3131
|
+
:rtype: :class:`tencentcloud.iotexplorer.v20190423.models.DescribeTWeTalkAgentBindingResponse`
|
|
3132
|
+
|
|
3133
|
+
"""
|
|
3134
|
+
try:
|
|
3135
|
+
params = request._serialize()
|
|
3136
|
+
headers = request.headers
|
|
3137
|
+
body = self.call("DescribeTWeTalkAgentBinding", params, headers=headers)
|
|
3138
|
+
response = json.loads(body)
|
|
3139
|
+
model = models.DescribeTWeTalkAgentBindingResponse()
|
|
3140
|
+
model._deserialize(response["Response"])
|
|
3141
|
+
return model
|
|
3142
|
+
except Exception as e:
|
|
3143
|
+
if isinstance(e, TencentCloudSDKException):
|
|
3144
|
+
raise
|
|
3145
|
+
else:
|
|
3146
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
3147
|
+
|
|
3148
|
+
|
|
3149
|
+
def DescribeTWeTalkAgentList(self, request):
|
|
3150
|
+
r"""分页查询智能体列表
|
|
3151
|
+
|
|
3152
|
+
:param request: Request instance for DescribeTWeTalkAgentList.
|
|
3153
|
+
:type request: :class:`tencentcloud.iotexplorer.v20190423.models.DescribeTWeTalkAgentListRequest`
|
|
3154
|
+
:rtype: :class:`tencentcloud.iotexplorer.v20190423.models.DescribeTWeTalkAgentListResponse`
|
|
3155
|
+
|
|
3156
|
+
"""
|
|
3157
|
+
try:
|
|
3158
|
+
params = request._serialize()
|
|
3159
|
+
headers = request.headers
|
|
3160
|
+
body = self.call("DescribeTWeTalkAgentList", params, headers=headers)
|
|
3161
|
+
response = json.loads(body)
|
|
3162
|
+
model = models.DescribeTWeTalkAgentListResponse()
|
|
3163
|
+
model._deserialize(response["Response"])
|
|
3164
|
+
return model
|
|
3165
|
+
except Exception as e:
|
|
3166
|
+
if isinstance(e, TencentCloudSDKException):
|
|
3167
|
+
raise
|
|
3168
|
+
else:
|
|
3169
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
3170
|
+
|
|
3171
|
+
|
|
2950
3172
|
def DescribeTWeTalkProductConfig(self, request):
|
|
2951
3173
|
r"""用于获取TWeTalk服务连接产品配置信息。
|
|
2952
3174
|
|
|
@@ -4559,6 +4781,29 @@ class IotexplorerClient(AbstractClient):
|
|
|
4559
4781
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
4560
4782
|
|
|
4561
4783
|
|
|
4784
|
+
def ModifyTWeTalkAgent(self, request):
|
|
4785
|
+
r"""修改TWeTalk智能体
|
|
4786
|
+
|
|
4787
|
+
:param request: Request instance for ModifyTWeTalkAgent.
|
|
4788
|
+
:type request: :class:`tencentcloud.iotexplorer.v20190423.models.ModifyTWeTalkAgentRequest`
|
|
4789
|
+
:rtype: :class:`tencentcloud.iotexplorer.v20190423.models.ModifyTWeTalkAgentResponse`
|
|
4790
|
+
|
|
4791
|
+
"""
|
|
4792
|
+
try:
|
|
4793
|
+
params = request._serialize()
|
|
4794
|
+
headers = request.headers
|
|
4795
|
+
body = self.call("ModifyTWeTalkAgent", params, headers=headers)
|
|
4796
|
+
response = json.loads(body)
|
|
4797
|
+
model = models.ModifyTWeTalkAgentResponse()
|
|
4798
|
+
model._deserialize(response["Response"])
|
|
4799
|
+
return model
|
|
4800
|
+
except Exception as e:
|
|
4801
|
+
if isinstance(e, TencentCloudSDKException):
|
|
4802
|
+
raise
|
|
4803
|
+
else:
|
|
4804
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
4805
|
+
|
|
4806
|
+
|
|
4562
4807
|
def ModifyTWeTalkProductConfig(self, request):
|
|
4563
4808
|
r"""用于修改TWeTalk服务连接产品配置信息。
|
|
4564
4809
|
|
|
@@ -4954,6 +5199,31 @@ class IotexplorerClient(AbstractClient):
|
|
|
4954
5199
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
4955
5200
|
|
|
4956
5201
|
|
|
5202
|
+
def RevokeBindUserDevice(self, request):
|
|
5203
|
+
r"""1. 按 `(IotAppID, OpenID)` 只读定位用户(不存在视为已解绑,幂等成功);
|
|
5204
|
+
2. 按 `(用户, FamilyName)` 只读定位家庭(不存在视为已解绑,幂等成功);
|
|
5205
|
+
3. 解除设备与该家庭的绑定关系,异步下发 `delete_device` 消息;解绑路径不校验设备存在性,允许设备已删除时清理残留绑定关系。
|
|
5206
|
+
|
|
5207
|
+
:param request: Request instance for RevokeBindUserDevice.
|
|
5208
|
+
:type request: :class:`tencentcloud.iotexplorer.v20190423.models.RevokeBindUserDeviceRequest`
|
|
5209
|
+
:rtype: :class:`tencentcloud.iotexplorer.v20190423.models.RevokeBindUserDeviceResponse`
|
|
5210
|
+
|
|
5211
|
+
"""
|
|
5212
|
+
try:
|
|
5213
|
+
params = request._serialize()
|
|
5214
|
+
headers = request.headers
|
|
5215
|
+
body = self.call("RevokeBindUserDevice", params, headers=headers)
|
|
5216
|
+
response = json.loads(body)
|
|
5217
|
+
model = models.RevokeBindUserDeviceResponse()
|
|
5218
|
+
model._deserialize(response["Response"])
|
|
5219
|
+
return model
|
|
5220
|
+
except Exception as e:
|
|
5221
|
+
if isinstance(e, TencentCloudSDKException):
|
|
5222
|
+
raise
|
|
5223
|
+
else:
|
|
5224
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
5225
|
+
|
|
5226
|
+
|
|
4957
5227
|
def SearchPositionSpace(self, request):
|
|
4958
5228
|
r"""搜索位置空间
|
|
4959
5229
|
|
|
@@ -5161,6 +5431,29 @@ class IotexplorerClient(AbstractClient):
|
|
|
5161
5431
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
5162
5432
|
|
|
5163
5433
|
|
|
5434
|
+
def UnbindTWeTalkAgent(self, request):
|
|
5435
|
+
r"""解绑产品或设备上的智能体
|
|
5436
|
+
|
|
5437
|
+
:param request: Request instance for UnbindTWeTalkAgent.
|
|
5438
|
+
:type request: :class:`tencentcloud.iotexplorer.v20190423.models.UnbindTWeTalkAgentRequest`
|
|
5439
|
+
:rtype: :class:`tencentcloud.iotexplorer.v20190423.models.UnbindTWeTalkAgentResponse`
|
|
5440
|
+
|
|
5441
|
+
"""
|
|
5442
|
+
try:
|
|
5443
|
+
params = request._serialize()
|
|
5444
|
+
headers = request.headers
|
|
5445
|
+
body = self.call("UnbindTWeTalkAgent", params, headers=headers)
|
|
5446
|
+
response = json.loads(body)
|
|
5447
|
+
model = models.UnbindTWeTalkAgentResponse()
|
|
5448
|
+
model._deserialize(response["Response"])
|
|
5449
|
+
return model
|
|
5450
|
+
except Exception as e:
|
|
5451
|
+
if isinstance(e, TencentCloudSDKException):
|
|
5452
|
+
raise
|
|
5453
|
+
else:
|
|
5454
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
5455
|
+
|
|
5456
|
+
|
|
5164
5457
|
def UpdateDeviceTWeCallAuthorizeStatus(self, request):
|
|
5165
5458
|
r"""更新用户对设备的TweCall授权状态
|
|
5166
5459
|
|