tencentcloud-sdk-python-iotexplorer 3.0.1226__tar.gz → 3.0.1253__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.
Files changed (16) hide show
  1. {tencentcloud-sdk-python-iotexplorer-3.0.1226 → tencentcloud-sdk-python-iotexplorer-3.0.1253}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-iotexplorer-3.0.1226 → tencentcloud-sdk-python-iotexplorer-3.0.1253}/setup.py +1 -1
  3. {tencentcloud-sdk-python-iotexplorer-3.0.1226 → tencentcloud-sdk-python-iotexplorer-3.0.1253}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-iotexplorer-3.0.1226 → tencentcloud-sdk-python-iotexplorer-3.0.1253}/tencentcloud/iotexplorer/v20190423/errorcodes.py +6 -0
  5. {tencentcloud-sdk-python-iotexplorer-3.0.1226 → tencentcloud-sdk-python-iotexplorer-3.0.1253}/tencentcloud/iotexplorer/v20190423/iotexplorer_client.py +46 -0
  6. {tencentcloud-sdk-python-iotexplorer-3.0.1226 → tencentcloud-sdk-python-iotexplorer-3.0.1253}/tencentcloud/iotexplorer/v20190423/models.py +293 -0
  7. {tencentcloud-sdk-python-iotexplorer-3.0.1226 → tencentcloud-sdk-python-iotexplorer-3.0.1253}/tencentcloud_sdk_python_iotexplorer.egg-info/PKG-INFO +1 -1
  8. tencentcloud-sdk-python-iotexplorer-3.0.1253/tencentcloud_sdk_python_iotexplorer.egg-info/requires.txt +1 -0
  9. tencentcloud-sdk-python-iotexplorer-3.0.1226/tencentcloud_sdk_python_iotexplorer.egg-info/requires.txt +0 -1
  10. {tencentcloud-sdk-python-iotexplorer-3.0.1226 → tencentcloud-sdk-python-iotexplorer-3.0.1253}/README.rst +0 -0
  11. {tencentcloud-sdk-python-iotexplorer-3.0.1226 → tencentcloud-sdk-python-iotexplorer-3.0.1253}/setup.cfg +0 -0
  12. {tencentcloud-sdk-python-iotexplorer-3.0.1226 → tencentcloud-sdk-python-iotexplorer-3.0.1253}/tencentcloud/iotexplorer/__init__.py +0 -0
  13. {tencentcloud-sdk-python-iotexplorer-3.0.1226 → tencentcloud-sdk-python-iotexplorer-3.0.1253}/tencentcloud/iotexplorer/v20190423/__init__.py +0 -0
  14. {tencentcloud-sdk-python-iotexplorer-3.0.1226 → tencentcloud-sdk-python-iotexplorer-3.0.1253}/tencentcloud_sdk_python_iotexplorer.egg-info/SOURCES.txt +0 -0
  15. {tencentcloud-sdk-python-iotexplorer-3.0.1226 → tencentcloud-sdk-python-iotexplorer-3.0.1253}/tencentcloud_sdk_python_iotexplorer.egg-info/dependency_links.txt +0 -0
  16. {tencentcloud-sdk-python-iotexplorer-3.0.1226 → tencentcloud-sdk-python-iotexplorer-3.0.1253}/tencentcloud_sdk_python_iotexplorer.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: tencentcloud-sdk-python-iotexplorer
3
- Version: 3.0.1226
3
+ Version: 3.0.1253
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
@@ -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.0.1226"],
11
+ install_requires=["tencentcloud-sdk-python-common==3.0.1253"],
12
12
  version=tencentcloud.__version__,
13
13
  description='Tencent Cloud Iotexplorer SDK for Python',
14
14
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1226'
17
+ __version__ = '3.0.1253'
@@ -32,6 +32,9 @@ FAILEDOPERATION_CLOUDSTORAGEAIPACKAGEEXPIRETIMEEXCEEDED = 'FailedOperation.Cloud
32
32
  # 产品未开通视频AI分析服务
33
33
  FAILEDOPERATION_CLOUDSTORAGEAISERVICENOTENABLED = 'FailedOperation.CloudStorageAIServiceNotEnabled'
34
34
 
35
+ # 云存 AI 分析任务已存在,不支持重复创建
36
+ FAILEDOPERATION_CLOUDSTORAGEAISERVICETASKALREADYEXISTS = 'FailedOperation.CloudStorageAIServiceTaskAlreadyExists'
37
+
35
38
  # 需先开通云存套餐
36
39
  FAILEDOPERATION_CLOUDSTORAGEPACKAGEREQUIRED = 'FailedOperation.CloudStoragePackageRequired'
37
40
 
@@ -356,6 +359,9 @@ RESOURCEINSUFFICIENT = 'ResourceInsufficient'
356
359
  # 已有量产进行,请等待量产完成。
357
360
  RESOURCEINSUFFICIENT_BATCHPRODUCTIONISRUNNING = 'ResourceInsufficient.BatchProductionIsRunning'
358
361
 
362
+ # 云存 AI 分析任务创建额度不足
363
+ RESOURCEINSUFFICIENT_CLOUDSTORAGEAISERVICETASKQUOTAINSUFFICIENT = 'ResourceInsufficient.CloudStorageAIServiceTaskQuotaInsufficient'
364
+
359
365
  # 资源不存在。
360
366
  RESOURCENOTFOUND = 'ResourceNotFound'
361
367
 
@@ -325,6 +325,29 @@ class IotexplorerClient(AbstractClient):
325
325
  raise TencentCloudSDKException(type(e).__name__, str(e))
326
326
 
327
327
 
328
+ def CreateExternalSourceAIServiceTask(self, request):
329
+ """创建外部视频 AI 分析任务
330
+
331
+ :param request: Request instance for CreateExternalSourceAIServiceTask.
332
+ :type request: :class:`tencentcloud.iotexplorer.v20190423.models.CreateExternalSourceAIServiceTaskRequest`
333
+ :rtype: :class:`tencentcloud.iotexplorer.v20190423.models.CreateExternalSourceAIServiceTaskResponse`
334
+
335
+ """
336
+ try:
337
+ params = request._serialize()
338
+ headers = request.headers
339
+ body = self.call("CreateExternalSourceAIServiceTask", params, headers=headers)
340
+ response = json.loads(body)
341
+ model = models.CreateExternalSourceAIServiceTaskResponse()
342
+ model._deserialize(response["Response"])
343
+ return model
344
+ except Exception as e:
345
+ if isinstance(e, TencentCloudSDKException):
346
+ raise
347
+ else:
348
+ raise TencentCloudSDKException(type(e).__name__, str(e))
349
+
350
+
328
351
  def CreateFenceBind(self, request):
329
352
  """创建围栏绑定信息
330
353
 
@@ -2487,6 +2510,29 @@ class IotexplorerClient(AbstractClient):
2487
2510
  raise TencentCloudSDKException(type(e).__name__, str(e))
2488
2511
 
2489
2512
 
2513
+ def InvokeExternalSourceAIServiceTask(self, request):
2514
+ """创建外部视频 AI 分析任务
2515
+
2516
+ :param request: Request instance for InvokeExternalSourceAIServiceTask.
2517
+ :type request: :class:`tencentcloud.iotexplorer.v20190423.models.InvokeExternalSourceAIServiceTaskRequest`
2518
+ :rtype: :class:`tencentcloud.iotexplorer.v20190423.models.InvokeExternalSourceAIServiceTaskResponse`
2519
+
2520
+ """
2521
+ try:
2522
+ params = request._serialize()
2523
+ headers = request.headers
2524
+ body = self.call("InvokeExternalSourceAIServiceTask", params, headers=headers)
2525
+ response = json.loads(body)
2526
+ model = models.InvokeExternalSourceAIServiceTaskResponse()
2527
+ model._deserialize(response["Response"])
2528
+ return model
2529
+ except Exception as e:
2530
+ if isinstance(e, TencentCloudSDKException):
2531
+ raise
2532
+ else:
2533
+ raise TencentCloudSDKException(type(e).__name__, str(e))
2534
+
2535
+
2490
2536
  def ListEventHistory(self, request):
2491
2537
  """获取设备的历史事件
2492
2538
 
@@ -2441,6 +2441,139 @@ class CreateDeviceResponse(AbstractModel):
2441
2441
  self._RequestId = params.get("RequestId")
2442
2442
 
2443
2443
 
2444
+ class CreateExternalSourceAIServiceTaskRequest(AbstractModel):
2445
+ """CreateExternalSourceAIServiceTask请求参数结构体
2446
+
2447
+ """
2448
+
2449
+ def __init__(self):
2450
+ r"""
2451
+ :param _ProductId: 产品 ID
2452
+ :type ProductId: str
2453
+ :param _ServiceType: 云存 AI 服务类型。可选值:
2454
+ - `RealtimeObjectDetect`:目标检测
2455
+ - `Highlight`:视频浓缩
2456
+ - `VideoToText`:视频语义理解
2457
+ :type ServiceType: str
2458
+ :param _VideoURLs: 分析外部传入的视频 URL 列表,支持 HLS 点播(m3u8)及常见视频格式(mp4 等)
2459
+ :type VideoURLs: list of str
2460
+ :param _CustomId: 自定义任务 ID
2461
+ :type CustomId: str
2462
+ :param _Config: 视频分析配置参数
2463
+ :type Config: str
2464
+ :param _ROI: 视频分析识别区域
2465
+ :type ROI: str
2466
+ """
2467
+ self._ProductId = None
2468
+ self._ServiceType = None
2469
+ self._VideoURLs = None
2470
+ self._CustomId = None
2471
+ self._Config = None
2472
+ self._ROI = None
2473
+
2474
+ @property
2475
+ def ProductId(self):
2476
+ return self._ProductId
2477
+
2478
+ @ProductId.setter
2479
+ def ProductId(self, ProductId):
2480
+ self._ProductId = ProductId
2481
+
2482
+ @property
2483
+ def ServiceType(self):
2484
+ return self._ServiceType
2485
+
2486
+ @ServiceType.setter
2487
+ def ServiceType(self, ServiceType):
2488
+ self._ServiceType = ServiceType
2489
+
2490
+ @property
2491
+ def VideoURLs(self):
2492
+ return self._VideoURLs
2493
+
2494
+ @VideoURLs.setter
2495
+ def VideoURLs(self, VideoURLs):
2496
+ self._VideoURLs = VideoURLs
2497
+
2498
+ @property
2499
+ def CustomId(self):
2500
+ return self._CustomId
2501
+
2502
+ @CustomId.setter
2503
+ def CustomId(self, CustomId):
2504
+ self._CustomId = CustomId
2505
+
2506
+ @property
2507
+ def Config(self):
2508
+ return self._Config
2509
+
2510
+ @Config.setter
2511
+ def Config(self, Config):
2512
+ self._Config = Config
2513
+
2514
+ @property
2515
+ def ROI(self):
2516
+ return self._ROI
2517
+
2518
+ @ROI.setter
2519
+ def ROI(self, ROI):
2520
+ self._ROI = ROI
2521
+
2522
+
2523
+ def _deserialize(self, params):
2524
+ self._ProductId = params.get("ProductId")
2525
+ self._ServiceType = params.get("ServiceType")
2526
+ self._VideoURLs = params.get("VideoURLs")
2527
+ self._CustomId = params.get("CustomId")
2528
+ self._Config = params.get("Config")
2529
+ self._ROI = params.get("ROI")
2530
+ memeber_set = set(params.keys())
2531
+ for name, value in vars(self).items():
2532
+ property_name = name[1:]
2533
+ if property_name in memeber_set:
2534
+ memeber_set.remove(property_name)
2535
+ if len(memeber_set) > 0:
2536
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
2537
+
2538
+
2539
+
2540
+ class CreateExternalSourceAIServiceTaskResponse(AbstractModel):
2541
+ """CreateExternalSourceAIServiceTask返回参数结构体
2542
+
2543
+ """
2544
+
2545
+ def __init__(self):
2546
+ r"""
2547
+ :param _TaskId: 任务 ID
2548
+ :type TaskId: str
2549
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2550
+ :type RequestId: str
2551
+ """
2552
+ self._TaskId = None
2553
+ self._RequestId = None
2554
+
2555
+ @property
2556
+ def TaskId(self):
2557
+ return self._TaskId
2558
+
2559
+ @TaskId.setter
2560
+ def TaskId(self, TaskId):
2561
+ self._TaskId = TaskId
2562
+
2563
+ @property
2564
+ def RequestId(self):
2565
+ return self._RequestId
2566
+
2567
+ @RequestId.setter
2568
+ def RequestId(self, RequestId):
2569
+ self._RequestId = RequestId
2570
+
2571
+
2572
+ def _deserialize(self, params):
2573
+ self._TaskId = params.get("TaskId")
2574
+ self._RequestId = params.get("RequestId")
2575
+
2576
+
2444
2577
  class CreateFenceBindRequest(AbstractModel):
2445
2578
  """CreateFenceBind请求参数结构体
2446
2579
 
@@ -14696,6 +14829,166 @@ class InstanceDetail(AbstractModel):
14696
14829
 
14697
14830
 
14698
14831
 
14832
+ class InvokeExternalSourceAIServiceTaskRequest(AbstractModel):
14833
+ """InvokeExternalSourceAIServiceTask请求参数结构体
14834
+
14835
+ """
14836
+
14837
+ def __init__(self):
14838
+ r"""
14839
+ :param _ProductId: 产品 ID
14840
+ :type ProductId: str
14841
+ :param _ServiceType: 云存 AI 服务类型。可选值:
14842
+ - `RealtimeObjectDetect`:目标检测
14843
+ - `Highlight`:视频浓缩
14844
+ - `VideoToText`:视频语义理解
14845
+ :type ServiceType: str
14846
+ :param _VideoURLs: 分析外部传入的视频 URL 列表,支持 HLS 点播(m3u8)及常见视频格式(mp4 等)
14847
+ :type VideoURLs: list of str
14848
+ :param _CustomId: 自定义任务 ID
14849
+ :type CustomId: str
14850
+ :param _Config: 视频分析配置参数
14851
+ :type Config: str
14852
+ :param _ROI: 视频分析识别区域
14853
+ :type ROI: str
14854
+ """
14855
+ self._ProductId = None
14856
+ self._ServiceType = None
14857
+ self._VideoURLs = None
14858
+ self._CustomId = None
14859
+ self._Config = None
14860
+ self._ROI = None
14861
+
14862
+ @property
14863
+ def ProductId(self):
14864
+ return self._ProductId
14865
+
14866
+ @ProductId.setter
14867
+ def ProductId(self, ProductId):
14868
+ self._ProductId = ProductId
14869
+
14870
+ @property
14871
+ def ServiceType(self):
14872
+ return self._ServiceType
14873
+
14874
+ @ServiceType.setter
14875
+ def ServiceType(self, ServiceType):
14876
+ self._ServiceType = ServiceType
14877
+
14878
+ @property
14879
+ def VideoURLs(self):
14880
+ return self._VideoURLs
14881
+
14882
+ @VideoURLs.setter
14883
+ def VideoURLs(self, VideoURLs):
14884
+ self._VideoURLs = VideoURLs
14885
+
14886
+ @property
14887
+ def CustomId(self):
14888
+ return self._CustomId
14889
+
14890
+ @CustomId.setter
14891
+ def CustomId(self, CustomId):
14892
+ self._CustomId = CustomId
14893
+
14894
+ @property
14895
+ def Config(self):
14896
+ return self._Config
14897
+
14898
+ @Config.setter
14899
+ def Config(self, Config):
14900
+ self._Config = Config
14901
+
14902
+ @property
14903
+ def ROI(self):
14904
+ return self._ROI
14905
+
14906
+ @ROI.setter
14907
+ def ROI(self, ROI):
14908
+ self._ROI = ROI
14909
+
14910
+
14911
+ def _deserialize(self, params):
14912
+ self._ProductId = params.get("ProductId")
14913
+ self._ServiceType = params.get("ServiceType")
14914
+ self._VideoURLs = params.get("VideoURLs")
14915
+ self._CustomId = params.get("CustomId")
14916
+ self._Config = params.get("Config")
14917
+ self._ROI = params.get("ROI")
14918
+ memeber_set = set(params.keys())
14919
+ for name, value in vars(self).items():
14920
+ property_name = name[1:]
14921
+ if property_name in memeber_set:
14922
+ memeber_set.remove(property_name)
14923
+ if len(memeber_set) > 0:
14924
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
14925
+
14926
+
14927
+
14928
+ class InvokeExternalSourceAIServiceTaskResponse(AbstractModel):
14929
+ """InvokeExternalSourceAIServiceTask返回参数结构体
14930
+
14931
+ """
14932
+
14933
+ def __init__(self):
14934
+ r"""
14935
+ :param _Completed: 任务是否执行完成
14936
+ :type Completed: bool
14937
+ :param _TaskId: 任务 ID
14938
+ :type TaskId: str
14939
+ :param _TaskInfo: 任务信息
14940
+ 注意:此字段可能返回 null,表示取不到有效值。
14941
+ :type TaskInfo: :class:`tencentcloud.iotexplorer.v20190423.models.CloudStorageAIServiceTask`
14942
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
14943
+ :type RequestId: str
14944
+ """
14945
+ self._Completed = None
14946
+ self._TaskId = None
14947
+ self._TaskInfo = None
14948
+ self._RequestId = None
14949
+
14950
+ @property
14951
+ def Completed(self):
14952
+ return self._Completed
14953
+
14954
+ @Completed.setter
14955
+ def Completed(self, Completed):
14956
+ self._Completed = Completed
14957
+
14958
+ @property
14959
+ def TaskId(self):
14960
+ return self._TaskId
14961
+
14962
+ @TaskId.setter
14963
+ def TaskId(self, TaskId):
14964
+ self._TaskId = TaskId
14965
+
14966
+ @property
14967
+ def TaskInfo(self):
14968
+ return self._TaskInfo
14969
+
14970
+ @TaskInfo.setter
14971
+ def TaskInfo(self, TaskInfo):
14972
+ self._TaskInfo = TaskInfo
14973
+
14974
+ @property
14975
+ def RequestId(self):
14976
+ return self._RequestId
14977
+
14978
+ @RequestId.setter
14979
+ def RequestId(self, RequestId):
14980
+ self._RequestId = RequestId
14981
+
14982
+
14983
+ def _deserialize(self, params):
14984
+ self._Completed = params.get("Completed")
14985
+ self._TaskId = params.get("TaskId")
14986
+ if params.get("TaskInfo") is not None:
14987
+ self._TaskInfo = CloudStorageAIServiceTask()
14988
+ self._TaskInfo._deserialize(params.get("TaskInfo"))
14989
+ self._RequestId = params.get("RequestId")
14990
+
14991
+
14699
14992
  class ListEventHistoryRequest(AbstractModel):
14700
14993
  """ListEventHistory请求参数结构体
14701
14994
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: tencentcloud-sdk-python-iotexplorer
3
- Version: 3.0.1226
3
+ Version: 3.0.1253
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
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common==3.0.1253
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common==3.0.1226