tccli 3.0.1338.1__py2.py3-none-any.whl → 3.0.1340.1__py2.py3-none-any.whl

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 (67) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/apm/v20210622/api.json +10 -0
  3. tccli/services/bh/v20230418/api.json +10 -0
  4. tccli/services/ccc/v20200210/api.json +100 -1
  5. tccli/services/cdb/v20170320/api.json +37 -37
  6. tccli/services/cdb/v20170320/examples.json +7 -7
  7. tccli/services/cdn/v20180606/api.json +2 -2
  8. tccli/services/cfs/v20190719/api.json +9 -0
  9. tccli/services/cfw/v20190904/examples.json +12 -0
  10. tccli/services/ckafka/v20190819/api.json +19 -0
  11. tccli/services/cls/v20201016/api.json +1 -1
  12. tccli/services/csip/csip_client.py +791 -102
  13. tccli/services/csip/v20221121/api.json +6149 -3461
  14. tccli/services/csip/v20221121/examples.json +104 -0
  15. tccli/services/cvm/v20170312/api.json +9 -0
  16. tccli/services/dts/v20211206/api.json +11 -0
  17. tccli/services/emr/emr_client.py +363 -310
  18. tccli/services/emr/v20190103/api.json +206 -0
  19. tccli/services/emr/v20190103/examples.json +8 -0
  20. tccli/services/es/v20180416/api.json +55 -0
  21. tccli/services/ess/ess_client.py +53 -0
  22. tccli/services/ess/v20201111/api.json +117 -6
  23. tccli/services/ess/v20201111/examples.json +12 -4
  24. tccli/services/essbasic/essbasic_client.py +57 -4
  25. tccli/services/essbasic/v20210526/api.json +104 -4
  26. tccli/services/essbasic/v20210526/examples.json +9 -1
  27. tccli/services/gs/v20191118/api.json +10 -1
  28. tccli/services/gwlb/v20240906/api.json +1 -1
  29. tccli/services/gwlb/v20240906/examples.json +1 -1
  30. tccli/services/ioa/v20220601/api.json +55 -0
  31. tccli/services/ioa/v20220601/examples.json +1 -1
  32. tccli/services/iotexplorer/iotexplorer_client.py +57 -4
  33. tccli/services/iotexplorer/v20190423/api.json +145 -19
  34. tccli/services/iotexplorer/v20190423/examples.json +8 -0
  35. tccli/services/live/live_client.py +0 -106
  36. tccli/services/live/v20180801/api.json +23 -138
  37. tccli/services/live/v20180801/examples.json +4 -20
  38. tccli/services/lkeap/lkeap_client.py +0 -53
  39. tccli/services/lkeap/v20240522/api.json +0 -90
  40. tccli/services/lkeap/v20240522/examples.json +0 -8
  41. tccli/services/mqtt/v20240516/api.json +80 -0
  42. tccli/services/mqtt/v20240516/examples.json +6 -0
  43. tccli/services/ocr/v20181119/api.json +21 -1
  44. tccli/services/ocr/v20181119/examples.json +1 -1
  45. tccli/services/organization/v20210331/api.json +11 -0
  46. tccli/services/organization/v20210331/examples.json +1 -1
  47. tccli/services/partners/v20180321/api.json +2 -2
  48. tccli/services/postgres/v20170312/api.json +4 -4
  49. tccli/services/ssl/ssl_client.py +212 -0
  50. tccli/services/ssl/v20191205/api.json +625 -10
  51. tccli/services/ssl/v20191205/examples.json +38 -0
  52. tccli/services/tcbr/v20220217/api.json +11 -0
  53. tccli/services/tdmq/v20200217/api.json +56 -47
  54. tccli/services/tdmq/v20200217/examples.json +8 -8
  55. tccli/services/trocket/v20230308/api.json +111 -92
  56. tccli/services/trocket/v20230308/examples.json +13 -13
  57. tccli/services/trtc/v20190722/api.json +3 -3
  58. tccli/services/tse/v20201207/api.json +19 -0
  59. tccli/services/tsf/v20180326/api.json +1 -1
  60. tccli/services/wedata/v20210820/api.json +607 -3
  61. tccli/services/wedata/v20210820/examples.json +18 -8
  62. tccli/services/wedata/wedata_client.py +106 -0
  63. {tccli-3.0.1338.1.dist-info → tccli-3.0.1340.1.dist-info}/METADATA +2 -2
  64. {tccli-3.0.1338.1.dist-info → tccli-3.0.1340.1.dist-info}/RECORD +67 -67
  65. {tccli-3.0.1338.1.dist-info → tccli-3.0.1340.1.dist-info}/WHEEL +0 -0
  66. {tccli-3.0.1338.1.dist-info → tccli-3.0.1340.1.dist-info}/entry_points.txt +0 -0
  67. {tccli-3.0.1338.1.dist-info → tccli-3.0.1340.1.dist-info}/license_files/LICENSE +0 -0
@@ -277,6 +277,58 @@ def doDescribeFirmwareUpdateStatus(args, parsed_globals):
277
277
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
278
278
 
279
279
 
280
+ def doDescribeModelDefinition(args, parsed_globals):
281
+ g_param = parse_global_arg(parsed_globals)
282
+
283
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
284
+ cred = credential.CVMRoleCredential()
285
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
286
+ cred = credential.STSAssumeRoleCredential(
287
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
288
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
289
+ )
290
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
291
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
292
+ else:
293
+ cred = credential.Credential(
294
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
295
+ )
296
+ http_profile = HttpProfile(
297
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
298
+ reqMethod="POST",
299
+ endpoint=g_param[OptionsDefine.Endpoint],
300
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
301
+ )
302
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
303
+ if g_param[OptionsDefine.Language]:
304
+ profile.language = g_param[OptionsDefine.Language]
305
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
306
+ client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
307
+ client._sdkVersion += ("_CLI_" + __version__)
308
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
309
+ model = models.DescribeModelDefinitionRequest()
310
+ model.from_json_string(json.dumps(args))
311
+ start_time = time.time()
312
+ while True:
313
+ rsp = client.DescribeModelDefinition(model)
314
+ result = rsp.to_json_string()
315
+ try:
316
+ json_obj = json.loads(result)
317
+ except TypeError as e:
318
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
319
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
320
+ break
321
+ cur_time = time.time()
322
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
323
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
324
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
325
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
326
+ else:
327
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
328
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
329
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
330
+
331
+
280
332
  def doDescribeAISearchTaskAsync(args, parsed_globals):
281
333
  g_param = parse_global_arg(parsed_globals)
282
334
 
@@ -6309,7 +6361,7 @@ def doGetStudioProductList(args, parsed_globals):
6309
6361
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6310
6362
 
6311
6363
 
6312
- def doDescribeModelDefinition(args, parsed_globals):
6364
+ def doInvokeVideosKeywordsAnalyzer(args, parsed_globals):
6313
6365
  g_param = parse_global_arg(parsed_globals)
6314
6366
 
6315
6367
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -6338,11 +6390,11 @@ def doDescribeModelDefinition(args, parsed_globals):
6338
6390
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
6339
6391
  client._sdkVersion += ("_CLI_" + __version__)
6340
6392
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
6341
- model = models.DescribeModelDefinitionRequest()
6393
+ model = models.InvokeVideosKeywordsAnalyzerRequest()
6342
6394
  model.from_json_string(json.dumps(args))
6343
6395
  start_time = time.time()
6344
6396
  while True:
6345
- rsp = client.DescribeModelDefinition(model)
6397
+ rsp = client.InvokeVideosKeywordsAnalyzer(model)
6346
6398
  result = rsp.to_json_string()
6347
6399
  try:
6348
6400
  json_obj = json.loads(result)
@@ -8769,6 +8821,7 @@ ACTION_MAP = {
8769
8821
  "ModifyStudioProduct": doModifyStudioProduct,
8770
8822
  "DescribeDevicePackages": doDescribeDevicePackages,
8771
8823
  "DescribeFirmwareUpdateStatus": doDescribeFirmwareUpdateStatus,
8824
+ "DescribeModelDefinition": doDescribeModelDefinition,
8772
8825
  "DescribeAISearchTaskAsync": doDescribeAISearchTaskAsync,
8773
8826
  "DescribeP2PRoute": doDescribeP2PRoute,
8774
8827
  "DescribeCloudStorageEventsWithAITasks": doDescribeCloudStorageEventsWithAITasks,
@@ -8885,7 +8938,7 @@ ACTION_MAP = {
8885
8938
  "ModifyCloudStorageAIService": doModifyCloudStorageAIService,
8886
8939
  "DescribeProject": doDescribeProject,
8887
8940
  "GetStudioProductList": doGetStudioProductList,
8888
- "DescribeModelDefinition": doDescribeModelDefinition,
8941
+ "InvokeVideosKeywordsAnalyzer": doInvokeVideosKeywordsAnalyzer,
8889
8942
  "DescribeBatchProduction": doDescribeBatchProduction,
8890
8943
  "CreateExternalSourceAIServiceTask": doCreateExternalSourceAIServiceTask,
8891
8944
  "ActivateTWeCallLicense": doActivateTWeCallLicense,
@@ -120,7 +120,7 @@
120
120
  "status": "online"
121
121
  },
122
122
  "CreateFenceBind": {
123
- "document": "创建围栏绑定信息",
123
+ "document": "> 创建围栏绑定信息。",
124
124
  "input": "CreateFenceBindRequest",
125
125
  "name": "创建围栏绑定信息",
126
126
  "output": "CreateFenceBindResponse",
@@ -155,7 +155,7 @@
155
155
  "status": "online"
156
156
  },
157
157
  "CreatePositionFence": {
158
- "document": "创建围栏",
158
+ "document": "创建围栏。",
159
159
  "input": "CreatePositionFenceRequest",
160
160
  "name": "创建围栏",
161
161
  "output": "CreatePositionFenceResponse",
@@ -232,7 +232,7 @@
232
232
  "status": "online"
233
233
  },
234
234
  "DeleteFenceBind": {
235
- "document": "删除围栏绑定信息",
235
+ "document": "删除围栏绑定信息。",
236
236
  "input": "DeleteFenceBindRequest",
237
237
  "name": "删除围栏绑定信息",
238
238
  "output": "DeleteFenceBindResponse",
@@ -253,14 +253,14 @@
253
253
  "status": "online"
254
254
  },
255
255
  "DeletePositionFence": {
256
- "document": "删除围栏",
256
+ "document": "删除围栏。",
257
257
  "input": "DeletePositionFenceRequest",
258
258
  "name": "删除围栏",
259
259
  "output": "DeletePositionFenceResponse",
260
260
  "status": "online"
261
261
  },
262
262
  "DeletePositionSpace": {
263
- "document": "删除位置空间",
263
+ "document": "删除位置空间。",
264
264
  "input": "DeletePositionSpaceRequest",
265
265
  "name": "删除位置空间",
266
266
  "output": "DeletePositionSpaceResponse",
@@ -519,14 +519,14 @@
519
519
  "status": "online"
520
520
  },
521
521
  "DescribeFenceBindList": {
522
- "document": "获取围栏绑定信息列表",
522
+ "document": "获取围栏绑定信息列表。",
523
523
  "input": "DescribeFenceBindListRequest",
524
524
  "name": "获取围栏绑定信息列表",
525
525
  "output": "DescribeFenceBindListResponse",
526
526
  "status": "online"
527
527
  },
528
528
  "DescribeFenceEventList": {
529
- "document": "获取围栏告警事件列表",
529
+ "document": "获取围栏告警事件列表。",
530
530
  "input": "DescribeFenceEventListRequest",
531
531
  "name": "获取围栏告警事件列表",
532
532
  "output": "DescribeFenceEventListResponse",
@@ -645,7 +645,7 @@
645
645
  "status": "online"
646
646
  },
647
647
  "DescribeSpaceFenceEventList": {
648
- "document": "获取位置空间中围栏告警事件列表",
648
+ "document": "获取位置空间中围栏告警事件列表。",
649
649
  "input": "DescribeSpaceFenceEventListRequest",
650
650
  "name": "获取位置空间中围栏告警事件列表",
651
651
  "output": "DescribeSpaceFenceEventListResponse",
@@ -882,6 +882,13 @@
882
882
  "output": "InvokeTWeSeeRecognitionTaskResponse",
883
883
  "status": "online"
884
884
  },
885
+ "InvokeVideosKeywordsAnalyzer": {
886
+ "document": "获取某个时间段的视频内容关键字",
887
+ "input": "InvokeVideosKeywordsAnalyzerRequest",
888
+ "name": "获取某个时间段的视频内容关键字",
889
+ "output": "InvokeVideosKeywordsAnalyzerResponse",
890
+ "status": "online"
891
+ },
885
892
  "ListEventHistory": {
886
893
  "document": "获取设备的历史事件",
887
894
  "input": "ListEventHistoryRequest",
@@ -925,7 +932,7 @@
925
932
  "status": "online"
926
933
  },
927
934
  "ModifyFenceBind": {
928
- "document": "更新围栏绑定信息",
935
+ "document": "更新围栏绑定信息。",
929
936
  "input": "ModifyFenceBindRequest",
930
937
  "name": "更新围栏绑定信息",
931
938
  "output": "ModifyFenceBindResponse",
@@ -953,14 +960,14 @@
953
960
  "status": "online"
954
961
  },
955
962
  "ModifyPositionFence": {
956
- "document": "更新围栏",
963
+ "document": "更新围栏。",
957
964
  "input": "ModifyPositionFenceRequest",
958
965
  "name": "更新围栏",
959
966
  "output": "ModifyPositionFenceResponse",
960
967
  "status": "online"
961
968
  },
962
969
  "ModifyPositionSpace": {
963
- "document": "更新位置空间",
970
+ "document": "更新位置空间。",
964
971
  "input": "ModifyPositionSpaceRequest",
965
972
  "name": "更新位置空间",
966
973
  "output": "ModifyPositionSpaceResponse",
@@ -5441,6 +5448,16 @@
5441
5448
  "type": "string",
5442
5449
  "value_allowed_null": false
5443
5450
  },
5451
+ {
5452
+ "disabled": false,
5453
+ "document": "云存 AI 套餐 ID",
5454
+ "example": "1m_hl_3d",
5455
+ "member": "string",
5456
+ "name": "PackageId",
5457
+ "output_required": false,
5458
+ "type": "string",
5459
+ "value_allowed_null": false
5460
+ },
5444
5461
  {
5445
5462
  "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
5446
5463
  "member": "string",
@@ -7374,7 +7391,7 @@
7374
7391
  "example": "无",
7375
7392
  "member": "ProductDevicesPositionItem",
7376
7393
  "name": "Positions",
7377
- "required": true,
7394
+ "output_required": true,
7378
7395
  "type": "list",
7379
7396
  "value_allowed_null": false
7380
7397
  },
@@ -7384,7 +7401,7 @@
7384
7401
  "example": "1",
7385
7402
  "member": "int64",
7386
7403
  "name": "Total",
7387
- "required": true,
7404
+ "output_required": true,
7388
7405
  "type": "int",
7389
7406
  "value_allowed_null": false
7390
7407
  },
@@ -7494,7 +7511,7 @@
7494
7511
  "example": "无",
7495
7512
  "member": "FenceBindProductItem",
7496
7513
  "name": "List",
7497
- "required": true,
7514
+ "output_required": true,
7498
7515
  "type": "list",
7499
7516
  "value_allowed_null": false
7500
7517
  },
@@ -7504,7 +7521,7 @@
7504
7521
  "example": "1",
7505
7522
  "member": "int64",
7506
7523
  "name": "Total",
7507
- "required": true,
7524
+ "output_required": true,
7508
7525
  "type": "int",
7509
7526
  "value_allowed_null": false
7510
7527
  },
@@ -7595,7 +7612,7 @@
7595
7612
  "example": "[{ \"ProductId\":\"X4912BAIVR\", \"DeviceName",
7596
7613
  "member": "FenceEventItem",
7597
7614
  "name": "List",
7598
- "required": true,
7615
+ "output_required": true,
7599
7616
  "type": "list",
7600
7617
  "value_allowed_null": false
7601
7618
  },
@@ -7605,7 +7622,7 @@
7605
7622
  "example": "1",
7606
7623
  "member": "int64",
7607
7624
  "name": "Total",
7608
- "required": true,
7625
+ "output_required": true,
7609
7626
  "type": "int",
7610
7627
  "value_allowed_null": false
7611
7628
  },
@@ -8727,7 +8744,7 @@
8727
8744
  "example": "[{ \t\"ProductId\": \"X4912BAIVR\", \t\"DeviceName\": \"dev1\", \t\"FenceId\"",
8728
8745
  "member": "FenceEventItem",
8729
8746
  "name": "List",
8730
- "required": true,
8747
+ "output_required": true,
8731
8748
  "type": "list",
8732
8749
  "value_allowed_null": true
8733
8750
  },
@@ -8737,7 +8754,7 @@
8737
8754
  "example": "1",
8738
8755
  "member": "int64",
8739
8756
  "name": "Total",
8740
- "required": true,
8757
+ "output_required": true,
8741
8758
  "type": "int",
8742
8759
  "value_allowed_null": false
8743
8760
  },
@@ -11960,6 +11977,42 @@
11960
11977
  "name": "ChannelId",
11961
11978
  "required": false,
11962
11979
  "type": "int"
11980
+ },
11981
+ {
11982
+ "disabled": false,
11983
+ "document": "是否需要返回总结,默认为False; 开启后会加大接口响应时长",
11984
+ "example": "false",
11985
+ "member": "bool",
11986
+ "name": "EnableSummary",
11987
+ "required": false,
11988
+ "type": "bool"
11989
+ },
11990
+ {
11991
+ "disabled": false,
11992
+ "document": "开始时间。\n\n注:\n1. 单位为毫秒(ms)\n2. 如果同时指定了StartTimeMs与EndTimeMs,时间区间不能大于7天;如果只指定其中一个(例如只指定StartTimeMs,则查询自StartTimeMs后7天内的数据, 反之EndTimeMs也一样)\n3. 只要指定了其中一个参数,接口则会忽略Query参数中关于时间的描述;(例如Query为\"过去三天关于猫咪的视频\", 则会将\"过去三天忽略\")",
11993
+ "example": "1750158420000",
11994
+ "member": "int64",
11995
+ "name": "StartTimeMs",
11996
+ "required": false,
11997
+ "type": "int"
11998
+ },
11999
+ {
12000
+ "disabled": false,
12001
+ "document": "结束时间。\n\n注:\n1. 单位为毫秒(ms)\n2. 如果同时指定了StartTimeMs与EndTimeMs,时间区间不能大于7天;如果只指定其中一个(例如只指定StartTimeMs,则查询自StartTimeMs后7天内的数据, 反之EndTimeMs也一样)\n3. 只要指定了其中一个参数,接口则会忽略Query参数中关于时间的描述;(例如Query为\"过去三天关于猫咪的视频\", 则会将\"过去三天忽略\")",
12002
+ "example": "1750244820000",
12003
+ "member": "int64",
12004
+ "name": "EndTimeMs",
12005
+ "required": false,
12006
+ "type": "int"
12007
+ },
12008
+ {
12009
+ "disabled": false,
12010
+ "document": "时区。默认值:Asia/Shanghai\n\n注:\n符合iana标准 https://www.iana.org/time-zones,例如Asia/Shanghai、Asia/Bangkok\n",
12011
+ "example": "Asia/Shanghai",
12012
+ "member": "string",
12013
+ "name": "TimeZone",
12014
+ "required": false,
12015
+ "type": "string"
11963
12016
  }
11964
12017
  ],
11965
12018
  "type": "object"
@@ -12393,6 +12446,79 @@
12393
12446
  ],
12394
12447
  "type": "object"
12395
12448
  },
12449
+ "InvokeVideosKeywordsAnalyzerRequest": {
12450
+ "document": "InvokeVideosKeywordsAnalyzer请求参数结构体",
12451
+ "members": [
12452
+ {
12453
+ "disabled": false,
12454
+ "document": "产品ID",
12455
+ "example": "MVTYMD8YCD",
12456
+ "member": "string",
12457
+ "name": "ProductId",
12458
+ "required": true,
12459
+ "type": "string"
12460
+ },
12461
+ {
12462
+ "disabled": false,
12463
+ "document": "设备名称",
12464
+ "example": "dev001",
12465
+ "member": "string",
12466
+ "name": "DeviceName",
12467
+ "required": true,
12468
+ "type": "string"
12469
+ },
12470
+ {
12471
+ "disabled": false,
12472
+ "document": "开始时间。\n\n注:\n1. 单位为毫秒(ms)\n2. 时间区间必须控制在某一个自然天内,不支持跨天",
12473
+ "example": "1750158420000",
12474
+ "member": "int64",
12475
+ "name": "StartTimeMs",
12476
+ "required": true,
12477
+ "type": "int"
12478
+ },
12479
+ {
12480
+ "disabled": false,
12481
+ "document": "结束时间。\n\n注:\n1. 单位为毫秒(ms)\n2. 时间区间必须控制在某一个自然天内,不支持跨天",
12482
+ "example": "1750244820000",
12483
+ "member": "int64",
12484
+ "name": "EndTimeMs",
12485
+ "required": true,
12486
+ "type": "int"
12487
+ },
12488
+ {
12489
+ "disabled": false,
12490
+ "document": "返回的关键字最大数量,默认为5;最大不能超过10",
12491
+ "example": "5",
12492
+ "member": "uint64",
12493
+ "name": "KeywordsMaxNum",
12494
+ "required": false,
12495
+ "type": "int"
12496
+ }
12497
+ ],
12498
+ "type": "object"
12499
+ },
12500
+ "InvokeVideosKeywordsAnalyzerResponse": {
12501
+ "document": "InvokeVideosKeywordsAnalyzer返回参数结构体",
12502
+ "members": [
12503
+ {
12504
+ "disabled": false,
12505
+ "document": "基于搜索结果的总结",
12506
+ "example": "What happened on April 1st",
12507
+ "member": "string",
12508
+ "name": "Keywords",
12509
+ "output_required": false,
12510
+ "type": "list",
12511
+ "value_allowed_null": false
12512
+ },
12513
+ {
12514
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
12515
+ "member": "string",
12516
+ "name": "RequestId",
12517
+ "type": "string"
12518
+ }
12519
+ ],
12520
+ "type": "object"
12521
+ },
12396
12522
  "IotApplication": {
12397
12523
  "document": "应用信息",
12398
12524
  "members": [
@@ -1110,6 +1110,14 @@
1110
1110
  "title": "同步执行 TWeSee 语义理解任务"
1111
1111
  }
1112
1112
  ],
1113
+ "InvokeVideosKeywordsAnalyzer": [
1114
+ {
1115
+ "document": "",
1116
+ "input": "POST / HTTP/1.1\nHost: iotexplorer.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InvokeAISearchService\n\n{\n \"ProductId\": \"MVTYMD8YCD\",\n \"DeviceName\": \"dev001\",\n \"StartTimeMs\": 1750158420000,\n \"EndTimeMs\": 1750169220000\n}",
1117
+ "output": "{\n \"Response\": {\n \"RequestId\": \"a9a9d232-01c0-494a-baa3-57c384463c3f\",\n \"Keywords\": [\n \"key1\",\n \"key2\"\n ]\n }\n}",
1118
+ "title": "获取某个时间段的视频内容关键字"
1119
+ }
1120
+ ],
1113
1121
  "ListEventHistory": [
1114
1122
  {
1115
1123
  "document": "用于查询设备上报的所有类型历史事件信息",
@@ -6985,58 +6985,6 @@ def doDescribeScreenshotTask(args, parsed_globals):
6985
6985
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6986
6986
 
6987
6987
 
6988
- def doDescribeLivePadProcessorList(args, parsed_globals):
6989
- g_param = parse_global_arg(parsed_globals)
6990
-
6991
- if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
6992
- cred = credential.CVMRoleCredential()
6993
- elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
6994
- cred = credential.STSAssumeRoleCredential(
6995
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
6996
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
6997
- )
6998
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
6999
- cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
7000
- else:
7001
- cred = credential.Credential(
7002
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
7003
- )
7004
- http_profile = HttpProfile(
7005
- reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
7006
- reqMethod="POST",
7007
- endpoint=g_param[OptionsDefine.Endpoint],
7008
- proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
7009
- )
7010
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
7011
- if g_param[OptionsDefine.Language]:
7012
- profile.language = g_param[OptionsDefine.Language]
7013
- mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
7014
- client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
7015
- client._sdkVersion += ("_CLI_" + __version__)
7016
- models = MODELS_MAP[g_param[OptionsDefine.Version]]
7017
- model = models.DescribeLivePadProcessorListRequest()
7018
- model.from_json_string(json.dumps(args))
7019
- start_time = time.time()
7020
- while True:
7021
- rsp = client.DescribeLivePadProcessorList(model)
7022
- result = rsp.to_json_string()
7023
- try:
7024
- json_obj = json.loads(result)
7025
- except TypeError as e:
7026
- json_obj = json.loads(result.decode('utf-8')) # python3.3
7027
- if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
7028
- break
7029
- cur_time = time.time()
7030
- if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
7031
- raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
7032
- (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
7033
- search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
7034
- else:
7035
- print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
7036
- time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
7037
- FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
7038
-
7039
-
7040
6988
  def doDescribePushBandwidthAndFluxList(args, parsed_globals):
7041
6989
  g_param = parse_global_arg(parsed_globals)
7042
6990
 
@@ -10053,58 +10001,6 @@ def doDeleteCasterOutputInfo(args, parsed_globals):
10053
10001
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
10054
10002
 
10055
10003
 
10056
- def doStopLivePadProcessor(args, parsed_globals):
10057
- g_param = parse_global_arg(parsed_globals)
10058
-
10059
- if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
10060
- cred = credential.CVMRoleCredential()
10061
- elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
10062
- cred = credential.STSAssumeRoleCredential(
10063
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
10064
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
10065
- )
10066
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
10067
- cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
10068
- else:
10069
- cred = credential.Credential(
10070
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
10071
- )
10072
- http_profile = HttpProfile(
10073
- reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
10074
- reqMethod="POST",
10075
- endpoint=g_param[OptionsDefine.Endpoint],
10076
- proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
10077
- )
10078
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
10079
- if g_param[OptionsDefine.Language]:
10080
- profile.language = g_param[OptionsDefine.Language]
10081
- mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
10082
- client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
10083
- client._sdkVersion += ("_CLI_" + __version__)
10084
- models = MODELS_MAP[g_param[OptionsDefine.Version]]
10085
- model = models.StopLivePadProcessorRequest()
10086
- model.from_json_string(json.dumps(args))
10087
- start_time = time.time()
10088
- while True:
10089
- rsp = client.StopLivePadProcessor(model)
10090
- result = rsp.to_json_string()
10091
- try:
10092
- json_obj = json.loads(result)
10093
- except TypeError as e:
10094
- json_obj = json.loads(result.decode('utf-8')) # python3.3
10095
- if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
10096
- break
10097
- cur_time = time.time()
10098
- if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
10099
- raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
10100
- (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
10101
- search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
10102
- else:
10103
- print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
10104
- time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
10105
- FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
10106
-
10107
-
10108
10004
  def doDeleteLiveTranscodeTemplate(args, parsed_globals):
10109
10005
  g_param = parse_global_arg(parsed_globals)
10110
10006
 
@@ -10562,7 +10458,6 @@ ACTION_MAP = {
10562
10458
  "DescribeLiveTimeShiftBillInfoList": doDescribeLiveTimeShiftBillInfoList,
10563
10459
  "DescribeLiveStreamPublishedList": doDescribeLiveStreamPublishedList,
10564
10460
  "DescribeScreenshotTask": doDescribeScreenshotTask,
10565
- "DescribeLivePadProcessorList": doDescribeLivePadProcessorList,
10566
10461
  "DescribePushBandwidthAndFluxList": doDescribePushBandwidthAndFluxList,
10567
10462
  "DescribeLiveCallbackTemplate": doDescribeLiveCallbackTemplate,
10568
10463
  "DescribeCasterUserStatus": doDescribeCasterUserStatus,
@@ -10621,7 +10516,6 @@ ACTION_MAP = {
10621
10516
  "StopCasterPgm": doStopCasterPgm,
10622
10517
  "EnableLiveDomain": doEnableLiveDomain,
10623
10518
  "DeleteCasterOutputInfo": doDeleteCasterOutputInfo,
10624
- "StopLivePadProcessor": doStopLivePadProcessor,
10625
10519
  "DeleteLiveTranscodeTemplate": doDeleteLiveTranscodeTemplate,
10626
10520
  "DescribeLivePadTemplates": doDescribeLivePadTemplates,
10627
10521
  "DescribeTranscodeTaskNum": doDescribeTranscodeTaskNum,