tccli 3.0.1097.1__py2.py3-none-any.whl → 3.0.1099.1__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/examples/apm/v20210622/DescribeGeneralApmApplicationConfig.md +103 -0
  3. tccli/examples/apm/v20210622/DescribeTagValues.md +27 -0
  4. tccli/examples/apm/v20210622/ModifyGeneralApmApplicationConfig.md +29 -0
  5. tccli/examples/cfw/v20190904/DescribeIPStatusList.md +4 -4
  6. tccli/examples/cls/v20201016/OpenKafkaConsumer.md +1 -1
  7. tccli/examples/cynosdb/v20190107/DescribeChangedParamsAfterUpgrade.md +31 -0
  8. tccli/examples/ess/v20201111/CreateBatchSignUrl.md +28 -0
  9. tccli/examples/essbasic/v20210526/ChannelCreateBatchSignUrl.md +28 -0
  10. tccli/examples/faceid/v20180301/GetFaceIdResult.md +3 -1
  11. tccli/examples/hunyuan/v20230901/ChatCompletions.md +43 -0
  12. tccli/examples/ims/v20200713/ImageModeration.md +4 -1
  13. tccli/examples/iotexplorer/v20190423/DescribeDeviceFirmwares.md +33 -0
  14. tccli/examples/teo/v20220901/DescribeRealtimeLogDeliveryTasks.md +42 -21
  15. tccli/services/aiart/v20221229/api.json +1 -1
  16. tccli/services/apm/apm_client.py +159 -0
  17. tccli/services/apm/v20210622/api.json +456 -0
  18. tccli/services/apm/v20210622/examples.json +24 -0
  19. tccli/services/ccc/v20200210/api.json +1 -1
  20. tccli/services/cfs/v20190719/api.json +27 -27
  21. tccli/services/cfw/v20190904/api.json +5 -5
  22. tccli/services/cfw/v20190904/examples.json +1 -1
  23. tccli/services/cloudstudio/v20230508/api.json +14 -5
  24. tccli/services/cls/v20201016/api.json +68 -44
  25. tccli/services/cls/v20201016/examples.json +1 -1
  26. tccli/services/cynosdb/cynosdb_client.py +53 -0
  27. tccli/services/cynosdb/v20190107/api.json +122 -2
  28. tccli/services/cynosdb/v20190107/examples.json +8 -0
  29. tccli/services/dcdb/v20180411/api.json +2 -2
  30. tccli/services/ess/v20201111/api.json +51 -3
  31. tccli/services/ess/v20201111/examples.json +6 -0
  32. tccli/services/essbasic/v20210526/api.json +50 -2
  33. tccli/services/essbasic/v20210526/examples.json +6 -0
  34. tccli/services/faceid/v20180301/api.json +21 -1
  35. tccli/services/faceid/v20180301/examples.json +1 -1
  36. tccli/services/hunyuan/hunyuan_client.py +53 -0
  37. tccli/services/hunyuan/v20230901/api.json +161 -22
  38. tccli/services/hunyuan/v20230901/examples.json +8 -0
  39. tccli/services/ims/v20200713/api.json +13 -0
  40. tccli/services/ims/v20200713/examples.json +1 -1
  41. tccli/services/ims/v20201229/api.json +55 -55
  42. tccli/services/iotexplorer/iotexplorer_client.py +53 -0
  43. tccli/services/iotexplorer/v20190423/api.json +89 -0
  44. tccli/services/iotexplorer/v20190423/examples.json +8 -0
  45. tccli/services/iss/v20230517/api.json +36 -0
  46. tccli/services/lcic/v20220817/api.json +1 -1
  47. tccli/services/lke/lke_client.py +8 -114
  48. tccli/services/lke/v20231130/api.json +2 -166
  49. tccli/services/lke/v20231130/examples.json +0 -16
  50. tccli/services/mariadb/v20170312/api.json +2 -2
  51. tccli/services/monitor/v20180724/api.json +1 -1
  52. tccli/services/mps/v20190612/api.json +46 -1
  53. tccli/services/rum/v20210622/api.json +2 -2
  54. tccli/services/tdid/v20210519/api.json +2 -2
  55. tccli/services/teo/v20220901/api.json +142 -31
  56. tccli/services/teo/v20220901/examples.json +2 -2
  57. tccli/services/tione/v20211111/api.json +28 -0
  58. tccli/services/tmt/v20180321/api.json +1 -1
  59. tccli/services/waf/v20180125/api.json +2 -2
  60. {tccli-3.0.1097.1.dist-info → tccli-3.0.1099.1.dist-info}/METADATA +2 -2
  61. {tccli-3.0.1097.1.dist-info → tccli-3.0.1099.1.dist-info}/RECORD +64 -58
  62. {tccli-3.0.1097.1.dist-info → tccli-3.0.1099.1.dist-info}/WHEEL +0 -0
  63. {tccli-3.0.1097.1.dist-info → tccli-3.0.1099.1.dist-info}/entry_points.txt +0 -0
  64. {tccli-3.0.1097.1.dist-info → tccli-3.0.1099.1.dist-info}/license_files/LICENSE +0 -0
@@ -8,7 +8,7 @@
8
8
  "status": "online"
9
9
  },
10
10
  "ImageModeration": {
11
- "document": "本接口(Image Moderation, IM)用于提交图片文件进行同步智能审核任务。使用前请您使用腾讯云主账号登录控制台 [开通图片内容安全服务](https://console.cloud.tencent.com/cms) 并调整好对应的业务配置。\n### 接口使用说明:\n- 前往“[内容安全控制台-图片内容安全](https://console.cloud.tencent.com/cms)”开启使用图片内容安全服务,首次开通服务的用户可免费领用试用套餐包,包含**3000张图片**识别额度,有效期为15天。\n- 该接口为收费接口,计费方式敬请参见 [腾讯云图片内容安全定价](https://cloud.tencent.com/product/ims/pricing)。\n\n### 接口功能说明:\n- 支持对图片文件或链接进行检测,通过深度学习技术,识别可能令人反感、不安全或不适宜的违规图片内容;\n- 支持对GIF图/长图进行截帧或拆分检测;\n- 支持识别多种违规场景,包括:低俗、违法违规、色情、广告等场景;\n- 支持多种物体检测(实体、广告台标、二维码等)及图片中文本的OCR文本识别;\n- 支持根据不同的业务场景配置自定义的审核策略;\n- 支持用户自定义选择图片风险库,打击自定义识别类型的违规图片(目前仅支持黑名单配置);\n- 支持在审核图片内容时同时关联账号或设备信息,可识别违规风险账号或设备。\n\n### 接口调用说明:\n- 图片文件大小支持:**文件 < 5M**\n- 图片尺寸支持:**长或者宽 >50分辨率**和**长或者宽<10000分辨率**\n- 图片文件分辨率支持:建议**分辨率大于256x256**,否则可能会影响识别效果;\n- 图片文件支持格式:PNG、JPG、JPEG、BMP、GIF、WEBP格式;\n- 图片文件链接支持的传输协议:HTTP、HTTPS;\n- 若传入图片文件的访问链接,则需要注意**图片下载时间限制为3秒**,为保障被检测图片的稳定性和可靠性,建议您使用腾讯云COS存储或者CDN缓存等;\n- 默认接口请求频率限制:**100次/秒**,超过此调用频率则会报错。\n-审核列表中,排序是按照用户通过API接口上传调用的时间进行排序;\n\n<div class=\"rno-api-explorer\" style=\"margin-bottom:20px\">\n <div class=\"rno-api-explorer-inner\">\n <div class=\"rno-api-explorer-hd\">\n <div class=\"rno-api-explorer-title\">\n 关于版本迭代的描述\n </div>\n </div>\n <div class=\"rno-api-explorer-body\">\n <div class=\"rno-api-explorer-cont\">\n <p>当前页面版本为图片内容安全2020版本,2020.11.3日前接入的图片内容安全接口为2019版本,在此时间前接入的用户可直接访问以下链接进行维护操作:<a href=\"https://cloud.tencent.com/document/product/1125/38206\" target=\"_blank\">图片内容安全-2019版本</a></p>\n <p>2020版本相对2019版本进行了升级,支持更灵活的多场景业务策略配置以及更丰富的识别回调信息,满足不同业务的识别需求,建议按照2020版本接入指引进行接口升级;同时,2019版本也会持续维护直至用户不再使用为止。</p>\n </div>\n </div>\n </div>\n</div>",
11
+ "document": "本接口(Image Moderation, IM)用于提交图片文件进行同步智能审核任务。使用前请您使用腾讯云主账号登录控制台 [开通图片内容安全服务](https://console.cloud.tencent.com/cms) 并调整好对应的业务配置。\n### 接口使用说明:\n- 前往“[内容安全控制台-图片内容安全](https://console.cloud.tencent.com/cms)”开启使用图片内容安全服务,首次开通服务的用户可免费领用试用套餐包,包含**3000张图片**识别额度,有效期为15天。\n- 该接口为收费接口,计费方式敬请参见 [腾讯云图片内容安全定价](https://cloud.tencent.com/product/ims/pricing)。\n\n### 接口功能说明:\n- 支持对图片文件或链接进行检测,通过深度学习技术,识别可能令人反感、不安全或不适宜的违规图片内容;\n- 支持对GIF图/长图进行截帧或拆分检测;\n- 支持识别多种违规场景,包括:低俗、违法违规、色情、广告等场景;\n- 支持多种物体检测(实体、广告台标、二维码等)及图片中文本的OCR文本识别;\n- 支持根据不同的业务场景配置自定义的审核策略;\n- 支持用户自定义选择图片风险库,打击自定义识别类型的违规图片(目前仅支持黑名单配置);\n- 支持在审核图片内容时同时关联账号或设备信息,可识别违规风险账号或设备。\n\n### 接口调用说明:\n- 图片文件大小支持:**文件 < 5M**\n- 图片默认尺寸支持:**长或者宽 >50分辨率**和**长或者宽<10000分辨率**\n- 图片文件分辨率支持:建议**分辨率大于256x256**,否则可能会影响识别效果;\n- 图片文件支持格式:PNG、JPG、JPEG、BMP、GIF、WEBP格式;\n- 图片文件链接支持的传输协议:HTTP、HTTPS;\n- 若传入图片文件的访问链接,则需要注意**图片下载时间限制为3秒**,为保障被检测图片的稳定性和可靠性,建议您使用腾讯云COS存储或者CDN缓存等;\n\n\n<div class=\"rno-api-explorer\" style=\"margin-bottom:20px\">\n <div class=\"rno-api-explorer-inner\">\n <div class=\"rno-api-explorer-hd\">\n <div class=\"rno-api-explorer-title\">\n 关于版本迭代的描述\n </div>\n </div>\n <div class=\"rno-api-explorer-body\">\n <div class=\"rno-api-explorer-cont\">\n <p>当前页面版本为图片内容安全2020版本,2020.11.3日前接入的图片内容安全接口为2019版本,在此时间前接入的用户可直接访问以下链接进行维护操作:<a href=\"https://cloud.tencent.com/document/product/1125/38206\" target=\"_blank\">图片内容安全-2019版本</a></p>\n <p>2020版本相对2019版本进行了升级,支持更灵活的多场景业务策略配置以及更丰富的识别回调信息,满足不同业务的识别需求,建议按照2020版本接入指引进行接口升级;同时,2019版本也会持续维护直至用户不再使用为止。</p>\n </div>\n </div>\n </div>\n</div>",
12
12
  "input": "ImageModerationRequest",
13
13
  "name": "图片同步检测",
14
14
  "output": "ImageModerationResponse",
@@ -248,7 +248,7 @@
248
248
  },
249
249
  {
250
250
  "disabled": false,
251
- "document": "该字段表示待检测图片文件的访问链接,图片支持PNG、JPG、JPEG、BMP、GIF、WEBP格式,**大小不超过5MB**,建议**分辨率不低于256x256**;图片下载时间限制为3秒,超过则会返回下载超时;由于网络安全策略,**送审带重定向的链接,可能引起下载失败**,请尽量避免,比如Http返回302状态码的链接,可能导致接口返回ResourceUnavailable.ImageDownloadError。<br>备注:**该字段与FileContent必须选择输入其中一个**。",
251
+ "document": "该字段表示待检测图片文件的访问链接。图片支持PNG、JPG、JPEG、BMP、GIF、WEBP格式,且**大小不得超过5MB**,建议**分辨率不低于256x256**。**图片下载时间限制为3秒,超时将进行一次重试,若再次失败,则会返回下载超时**。由于网络安全策略,**送审带重定向的链接**可能引起下载失败,请尽量避免使用返回302或其他非200状态码的HTTP链接,会导致接口返回 ResourceUnavailable.ImageDownloadError 错误。<br>备注:该字段与FileContent必须选择输入其中一个。",
252
252
  "example": "https://xxx.jpg",
253
253
  "member": "string",
254
254
  "name": "FileUrl",
@@ -309,7 +309,7 @@
309
309
  },
310
310
  {
311
311
  "disabled": false,
312
- "document": "该字段用于返回检测结果(LabelResults)中所对应的**优先级最高的恶意标签**,表示模型推荐的审核结果,建议您按照业务所需,对不同违规类型与建议值进行处理。<br>返回值:**Normal**:正常,**Porn**:色情,**Abuse**:谩骂,**Ad**:广告,**Custom**:自定义违规;以及其他令人反感、不安全或不适宜的内容类型。",
312
+ "document": "该字段用于返回检测结果(LabelResults)中所对应的**优先级最高的恶意标签**,表示模型推荐的审核结果,建议您按照业务所需,对不同违规类型与建议值进行处理。<br>返回值:**Normal**:正常,**Porn**:色情,**Abuse**:谩骂,**Ad**:广告;以及其他令人反感、不安全或不适宜的内容类型。",
313
313
  "example": "Porn",
314
314
  "member": "string",
315
315
  "name": "Label",
@@ -481,7 +481,7 @@
481
481
  "example": "无",
482
482
  "member": "string",
483
483
  "name": "Scene",
484
- "required": true,
484
+ "output_required": true,
485
485
  "type": "string",
486
486
  "value_allowed_null": false
487
487
  },
@@ -491,17 +491,17 @@
491
491
  "example": "无",
492
492
  "member": "string",
493
493
  "name": "Suggestion",
494
- "required": true,
494
+ "output_required": true,
495
495
  "type": "string",
496
496
  "value_allowed_null": false
497
497
  },
498
498
  {
499
499
  "disabled": false,
500
- "document": "该字段用于返回检测结果所对应的恶意标签。<br>返回值:**Normal**:正常,**Porn**:色情,**Abuse**:谩骂,**Ad**:广告,**Custom**:自定义违规;以及其他令人反感、不安全或不适宜的内容类型。",
500
+ "document": "该字段用于返回检测结果所对应的恶意标签。<br>返回值:**Normal**:正常,**Porn**:色情,**Abuse**:谩骂,**Ad**:广告;以及其他令人反感、不安全或不适宜的内容类型。",
501
501
  "example": "无",
502
502
  "member": "string",
503
503
  "name": "Label",
504
- "required": true,
504
+ "output_required": true,
505
505
  "type": "string",
506
506
  "value_allowed_null": false
507
507
  },
@@ -511,7 +511,7 @@
511
511
  "example": "无",
512
512
  "member": "string",
513
513
  "name": "SubLabel",
514
- "required": true,
514
+ "output_required": true,
515
515
  "type": "string",
516
516
  "value_allowed_null": false
517
517
  },
@@ -521,7 +521,7 @@
521
521
  "example": "无",
522
522
  "member": "uint64",
523
523
  "name": "Score",
524
- "required": true,
524
+ "output_required": true,
525
525
  "type": "int",
526
526
  "value_allowed_null": false
527
527
  },
@@ -531,7 +531,7 @@
531
531
  "example": "无",
532
532
  "member": "LabelDetailItem",
533
533
  "name": "Details",
534
- "required": true,
534
+ "output_required": true,
535
535
  "type": "list",
536
536
  "value_allowed_null": true
537
537
  }
@@ -547,27 +547,27 @@
547
547
  "example": "无",
548
548
  "member": "int64",
549
549
  "name": "Id",
550
- "required": true,
550
+ "output_required": true,
551
551
  "type": "int",
552
552
  "value_allowed_null": false
553
553
  },
554
554
  {
555
555
  "disabled": false,
556
- "document": "该字段**仅当Label为Custom:自定义关键词时该参数有效**,用于返回自定义库的ID,以方便自定义库管理和配置。",
556
+ "document": "该字段用于返回自定义库的ID,以方便自定义库管理和配置。",
557
557
  "example": "无",
558
558
  "member": "string",
559
559
  "name": "LibId",
560
- "required": true,
560
+ "output_required": true,
561
561
  "type": "string",
562
562
  "value_allowed_null": false
563
563
  },
564
564
  {
565
565
  "disabled": false,
566
- "document": "该字段**仅当Label为Custom:自定义关键词时该参数有效**,用于返回自定义库的名称,以方便自定义库管理和配置。\n注意:此字段可能返回 null,表示取不到有效值。",
566
+ "document": "该字段用于返回自定义库的名称,以方便自定义库管理和配置。\n注意:此字段可能返回 null,表示取不到有效值。",
567
567
  "example": "无",
568
568
  "member": "string",
569
569
  "name": "LibName",
570
- "required": true,
570
+ "output_required": true,
571
571
  "type": "string",
572
572
  "value_allowed_null": true
573
573
  },
@@ -577,17 +577,17 @@
577
577
  "example": "无",
578
578
  "member": "string",
579
579
  "name": "ImageId",
580
- "required": true,
580
+ "output_required": true,
581
581
  "type": "string",
582
582
  "value_allowed_null": false
583
583
  },
584
584
  {
585
585
  "disabled": false,
586
- "document": "该字段用于返回检测结果所对应的恶意标签。<br>返回值:**Normal**:正常,**Porn**:色情,**Abuse**:谩骂,**Ad**:广告,**Custom**:自定义违规;以及其他令人反感、不安全或不适宜的内容类型。",
586
+ "document": "该字段用于返回检测结果所对应的恶意标签。<br>返回值:**Normal**:正常,**Porn**:色情,**Abuse**:谩骂,**Ad**:广告;以及其他令人反感、不安全或不适宜的内容类型。",
587
587
  "example": "无",
588
588
  "member": "string",
589
589
  "name": "Label",
590
- "required": true,
590
+ "output_required": true,
591
591
  "type": "string",
592
592
  "value_allowed_null": false
593
593
  },
@@ -597,7 +597,7 @@
597
597
  "example": "无",
598
598
  "member": "string",
599
599
  "name": "Tag",
600
- "required": true,
600
+ "output_required": true,
601
601
  "type": "string",
602
602
  "value_allowed_null": true
603
603
  },
@@ -607,7 +607,7 @@
607
607
  "example": "无",
608
608
  "member": "int64",
609
609
  "name": "Score",
610
- "required": true,
610
+ "output_required": true,
611
611
  "type": "int",
612
612
  "value_allowed_null": false
613
613
  }
@@ -623,7 +623,7 @@
623
623
  "example": "无",
624
624
  "member": "string",
625
625
  "name": "Scene",
626
- "required": true,
626
+ "output_required": true,
627
627
  "type": "string",
628
628
  "value_allowed_null": false
629
629
  },
@@ -633,17 +633,17 @@
633
633
  "example": "无",
634
634
  "member": "string",
635
635
  "name": "Suggestion",
636
- "required": true,
636
+ "output_required": true,
637
637
  "type": "string",
638
638
  "value_allowed_null": false
639
639
  },
640
640
  {
641
641
  "disabled": false,
642
- "document": "该字段用于返回检测结果所对应的恶意标签。<br>返回值:**Normal**:正常,**Porn**:色情,**Abuse**:谩骂,**Ad**:广告,**Custom**:自定义违规;以及其他令人反感、不安全或不适宜的内容类型。",
642
+ "document": "该字段用于返回检测结果所对应的恶意标签。<br>返回值:**Normal**:正常,**Porn**:色情,**Abuse**:谩骂,**Ad**:广告;以及其他令人反感、不安全或不适宜的内容类型。",
643
643
  "example": "无",
644
644
  "member": "string",
645
645
  "name": "Label",
646
- "required": true,
646
+ "output_required": true,
647
647
  "type": "string",
648
648
  "value_allowed_null": false
649
649
  },
@@ -653,7 +653,7 @@
653
653
  "example": "无",
654
654
  "member": "string",
655
655
  "name": "SubLabel",
656
- "required": true,
656
+ "output_required": true,
657
657
  "type": "string",
658
658
  "value_allowed_null": true
659
659
  },
@@ -663,7 +663,7 @@
663
663
  "example": "无",
664
664
  "member": "int64",
665
665
  "name": "Score",
666
- "required": true,
666
+ "output_required": true,
667
667
  "type": "int",
668
668
  "value_allowed_null": false
669
669
  },
@@ -673,7 +673,7 @@
673
673
  "example": "无",
674
674
  "member": "LibDetail",
675
675
  "name": "Details",
676
- "required": true,
676
+ "output_required": true,
677
677
  "type": "list",
678
678
  "value_allowed_null": true
679
679
  }
@@ -821,7 +821,7 @@
821
821
  "example": "无",
822
822
  "member": "string",
823
823
  "name": "Scene",
824
- "required": true,
824
+ "output_required": true,
825
825
  "type": "string",
826
826
  "value_allowed_null": false
827
827
  },
@@ -831,17 +831,17 @@
831
831
  "example": "无",
832
832
  "member": "string",
833
833
  "name": "Suggestion",
834
- "required": true,
834
+ "output_required": true,
835
835
  "type": "string",
836
836
  "value_allowed_null": false
837
837
  },
838
838
  {
839
839
  "disabled": false,
840
- "document": "该字段用于返回检测结果所对应的恶意标签,表示模型推荐的审核结果,建议您按照业务所需,对不同违规类型与建议值进行处理。<br>返回值:**Normal**:正常,**Porn**:色情,**Abuse**:谩骂,**Ad**:广告,**Custom**:自定义违规;以及其他令人反感、不安全或不适宜的内容类型。",
840
+ "document": "该字段用于返回检测结果所对应的恶意标签,表示模型推荐的审核结果,建议您按照业务所需,对不同违规类型与建议值进行处理。<br>返回值:**Normal**:正常,**Porn**:色情,**Abuse**:谩骂,**Ad**:广告;以及其他令人反感、不安全或不适宜的内容类型。",
841
841
  "example": "无",
842
842
  "member": "string",
843
843
  "name": "Label",
844
- "required": true,
844
+ "output_required": true,
845
845
  "type": "string",
846
846
  "value_allowed_null": false
847
847
  },
@@ -851,7 +851,7 @@
851
851
  "example": "无",
852
852
  "member": "string",
853
853
  "name": "SubLabel",
854
- "required": true,
854
+ "output_required": true,
855
855
  "type": "string",
856
856
  "value_allowed_null": false
857
857
  },
@@ -861,7 +861,7 @@
861
861
  "example": "无",
862
862
  "member": "uint64",
863
863
  "name": "Score",
864
- "required": true,
864
+ "output_required": true,
865
865
  "type": "int",
866
866
  "value_allowed_null": false
867
867
  },
@@ -871,7 +871,7 @@
871
871
  "example": "无",
872
872
  "member": "string",
873
873
  "name": "Names",
874
- "required": true,
874
+ "output_required": true,
875
875
  "type": "list",
876
876
  "value_allowed_null": true
877
877
  },
@@ -881,7 +881,7 @@
881
881
  "example": "无",
882
882
  "member": "ObjectDetail",
883
883
  "name": "Details",
884
- "required": true,
884
+ "output_required": true,
885
885
  "type": "list",
886
886
  "value_allowed_null": true
887
887
  }
@@ -897,7 +897,7 @@
897
897
  "example": "无",
898
898
  "member": "string",
899
899
  "name": "Scene",
900
- "required": true,
900
+ "output_required": true,
901
901
  "type": "string",
902
902
  "value_allowed_null": false
903
903
  },
@@ -907,17 +907,17 @@
907
907
  "example": "无",
908
908
  "member": "string",
909
909
  "name": "Suggestion",
910
- "required": true,
910
+ "output_required": true,
911
911
  "type": "string",
912
912
  "value_allowed_null": false
913
913
  },
914
914
  {
915
915
  "disabled": false,
916
- "document": "该字段用于返回OCR检测结果所对应的优先级最高的恶意标签,表示模型推荐的审核结果,建议您按照业务所需,对不同违规类型与建议值进行处理。<br>返回值:**Normal**:正常,**Porn**:色情,**Abuse**:谩骂,**Ad**:广告,**Custom**:自定义违规;以及其他令人反感、不安全或不适宜的内容类型。",
916
+ "document": "该字段用于返回OCR检测结果所对应的优先级最高的恶意标签,表示模型推荐的审核结果,建议您按照业务所需,对不同违规类型与建议值进行处理。<br>返回值:**Normal**:正常,**Porn**:色情,**Abuse**:谩骂,**Ad**:广告;以及其他令人反感、不安全或不适宜的内容类型。",
917
917
  "example": "无",
918
918
  "member": "string",
919
919
  "name": "Label",
920
- "required": true,
920
+ "output_required": true,
921
921
  "type": "string",
922
922
  "value_allowed_null": false
923
923
  },
@@ -927,7 +927,7 @@
927
927
  "example": "无",
928
928
  "member": "string",
929
929
  "name": "SubLabel",
930
- "required": true,
930
+ "output_required": true,
931
931
  "type": "string",
932
932
  "value_allowed_null": false
933
933
  },
@@ -937,7 +937,7 @@
937
937
  "example": "无",
938
938
  "member": "uint64",
939
939
  "name": "Score",
940
- "required": true,
940
+ "output_required": true,
941
941
  "type": "int",
942
942
  "value_allowed_null": false
943
943
  },
@@ -947,7 +947,7 @@
947
947
  "example": "无",
948
948
  "member": "OcrTextDetail",
949
949
  "name": "Details",
950
- "required": true,
950
+ "output_required": true,
951
951
  "type": "list",
952
952
  "value_allowed_null": true
953
953
  },
@@ -957,7 +957,7 @@
957
957
  "example": "无",
958
958
  "member": "string",
959
959
  "name": "Text",
960
- "required": true,
960
+ "output_required": true,
961
961
  "type": "string",
962
962
  "value_allowed_null": false
963
963
  }
@@ -973,37 +973,37 @@
973
973
  "example": "无",
974
974
  "member": "string",
975
975
  "name": "Text",
976
- "required": true,
976
+ "output_required": true,
977
977
  "type": "string",
978
978
  "value_allowed_null": false
979
979
  },
980
980
  {
981
981
  "disabled": false,
982
- "document": "该字段用于返回检测结果所对应的恶意标签。<br>返回值:**Normal**:正常,**Porn**:色情,**Abuse**:谩骂,**Ad**:广告,**Custom**:自定义违规;以及其他令人反感、不安全或不适宜的内容类型。",
982
+ "document": "该字段用于返回检测结果所对应的恶意标签。<br>返回值:**Normal**:正常,**Porn**:色情,**Abuse**:谩骂,**Ad**:广告;以及其他令人反感、不安全或不适宜的内容类型。",
983
983
  "example": "无",
984
984
  "member": "string",
985
985
  "name": "Label",
986
- "required": true,
986
+ "output_required": true,
987
987
  "type": "string",
988
988
  "value_allowed_null": false
989
989
  },
990
990
  {
991
991
  "disabled": false,
992
- "document": "该字段**仅当Label为Custom自定义关键词时有效**,用于返回自定义库的ID,以方便自定义库管理和配置。",
992
+ "document": "该字段用于返回自定义库的ID,以方便自定义库管理和配置。",
993
993
  "example": "无",
994
994
  "member": "string",
995
995
  "name": "LibId",
996
- "required": true,
996
+ "output_required": true,
997
997
  "type": "string",
998
998
  "value_allowed_null": false
999
999
  },
1000
1000
  {
1001
1001
  "disabled": false,
1002
- "document": "该字段**仅当Label为Custom自定义关键词时有效**,用于返回自定义库的名称,以方便自定义库管理和配置。",
1002
+ "document": "该字段用于返回自定义库的名称,以方便自定义库管理和配置。",
1003
1003
  "example": "无",
1004
1004
  "member": "string",
1005
1005
  "name": "LibName",
1006
- "required": true,
1006
+ "output_required": true,
1007
1007
  "type": "string",
1008
1008
  "value_allowed_null": false
1009
1009
  },
@@ -1013,7 +1013,7 @@
1013
1013
  "example": "无",
1014
1014
  "member": "string",
1015
1015
  "name": "Keywords",
1016
- "required": true,
1016
+ "output_required": true,
1017
1017
  "type": "list",
1018
1018
  "value_allowed_null": false
1019
1019
  },
@@ -1023,7 +1023,7 @@
1023
1023
  "example": "无",
1024
1024
  "member": "uint64",
1025
1025
  "name": "Score",
1026
- "required": true,
1026
+ "output_required": true,
1027
1027
  "type": "int",
1028
1028
  "value_allowed_null": false
1029
1029
  },
@@ -1033,7 +1033,7 @@
1033
1033
  "example": "无",
1034
1034
  "member": "Location",
1035
1035
  "name": "Location",
1036
- "required": true,
1036
+ "output_required": true,
1037
1037
  "type": "object",
1038
1038
  "value_allowed_null": false
1039
1039
  },
@@ -1043,7 +1043,7 @@
1043
1043
  "example": "无",
1044
1044
  "member": "uint64",
1045
1045
  "name": "Rate",
1046
- "required": true,
1046
+ "output_required": true,
1047
1047
  "type": "int",
1048
1048
  "value_allowed_null": false
1049
1049
  },
@@ -1053,7 +1053,7 @@
1053
1053
  "example": "无",
1054
1054
  "member": "string",
1055
1055
  "name": "SubLabel",
1056
- "required": true,
1056
+ "output_required": true,
1057
1057
  "type": "string",
1058
1058
  "value_allowed_null": false
1059
1059
  }
@@ -4229,6 +4229,58 @@ def doDescribeDevicePositionList(args, parsed_globals):
4229
4229
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4230
4230
 
4231
4231
 
4232
+ def doDescribeDeviceFirmwares(args, parsed_globals):
4233
+ g_param = parse_global_arg(parsed_globals)
4234
+
4235
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
4236
+ cred = credential.CVMRoleCredential()
4237
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4238
+ cred = credential.STSAssumeRoleCredential(
4239
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4240
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4241
+ )
4242
+ 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):
4243
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4244
+ else:
4245
+ cred = credential.Credential(
4246
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
4247
+ )
4248
+ http_profile = HttpProfile(
4249
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
4250
+ reqMethod="POST",
4251
+ endpoint=g_param[OptionsDefine.Endpoint],
4252
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4253
+ )
4254
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4255
+ if g_param[OptionsDefine.Language]:
4256
+ profile.language = g_param[OptionsDefine.Language]
4257
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4258
+ client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
4259
+ client._sdkVersion += ("_CLI_" + __version__)
4260
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
4261
+ model = models.DescribeDeviceFirmwaresRequest()
4262
+ model.from_json_string(json.dumps(args))
4263
+ start_time = time.time()
4264
+ while True:
4265
+ rsp = client.DescribeDeviceFirmwares(model)
4266
+ result = rsp.to_json_string()
4267
+ try:
4268
+ json_obj = json.loads(result)
4269
+ except TypeError as e:
4270
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
4271
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
4272
+ break
4273
+ cur_time = time.time()
4274
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
4275
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
4276
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
4277
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
4278
+ else:
4279
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
4280
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
4281
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4282
+
4283
+
4232
4284
  def doBindDevices(args, parsed_globals):
4233
4285
  g_param = parse_global_arg(parsed_globals)
4234
4286
 
@@ -6505,6 +6557,7 @@ ACTION_MAP = {
6505
6557
  "UpdateFirmware": doUpdateFirmware,
6506
6558
  "DescribeGatewaySubProducts": doDescribeGatewaySubProducts,
6507
6559
  "DescribeDevicePositionList": doDescribeDevicePositionList,
6560
+ "DescribeDeviceFirmwares": doDescribeDeviceFirmwares,
6508
6561
  "BindDevices": doBindDevices,
6509
6562
  "CreateBatchProduction": doCreateBatchProduction,
6510
6563
  "DisableTopicRule": doDisableTopicRule,
@@ -364,6 +364,13 @@
364
364
  "output": "DescribeDeviceFirmWareResponse",
365
365
  "status": "online"
366
366
  },
367
+ "DescribeDeviceFirmwares": {
368
+ "document": "获取设备当前固件信息",
369
+ "input": "DescribeDeviceFirmwaresRequest",
370
+ "name": "获取设备当前固件信息",
371
+ "output": "DescribeDeviceFirmwaresResponse",
372
+ "status": "online"
373
+ },
367
374
  "DescribeDeviceLocationSolve": {
368
375
  "document": "获取实时位置解析",
369
376
  "input": "DescribeDeviceLocationSolveRequest",
@@ -4731,6 +4738,52 @@
4731
4738
  ],
4732
4739
  "type": "object"
4733
4740
  },
4741
+ "DescribeDeviceFirmwaresRequest": {
4742
+ "document": "DescribeDeviceFirmwares请求参数结构体",
4743
+ "members": [
4744
+ {
4745
+ "disabled": false,
4746
+ "document": "产品ID",
4747
+ "example": "DMGFE2GWCG",
4748
+ "member": "string",
4749
+ "name": "ProductId",
4750
+ "required": true,
4751
+ "type": "string"
4752
+ },
4753
+ {
4754
+ "disabled": false,
4755
+ "document": "设备名",
4756
+ "example": "dev01",
4757
+ "member": "string",
4758
+ "name": "DeviceName",
4759
+ "required": true,
4760
+ "type": "string"
4761
+ }
4762
+ ],
4763
+ "type": "object"
4764
+ },
4765
+ "DescribeDeviceFirmwaresResponse": {
4766
+ "document": "DescribeDeviceFirmwares返回参数结构体",
4767
+ "members": [
4768
+ {
4769
+ "disabled": false,
4770
+ "document": "固件信息列表\n注意:此字段可能返回 null,表示取不到有效值。",
4771
+ "example": "无",
4772
+ "member": "DeviceFirmwareInfo",
4773
+ "name": "Firmwares",
4774
+ "required": true,
4775
+ "type": "list",
4776
+ "value_allowed_null": true
4777
+ },
4778
+ {
4779
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
4780
+ "member": "string",
4781
+ "name": "RequestId",
4782
+ "type": "string"
4783
+ }
4784
+ ],
4785
+ "type": "object"
4786
+ },
4734
4787
  "DescribeDeviceLocationSolveRequest": {
4735
4788
  "document": "DescribeDeviceLocationSolve请求参数结构体",
4736
4789
  "members": [
@@ -6286,6 +6339,42 @@
6286
6339
  ],
6287
6340
  "usage": "out"
6288
6341
  },
6342
+ "DeviceFirmwareInfo": {
6343
+ "document": "设备固件信息",
6344
+ "members": [
6345
+ {
6346
+ "disabled": false,
6347
+ "document": "固件类型",
6348
+ "example": "mcu",
6349
+ "member": "string",
6350
+ "name": "FwType",
6351
+ "required": true,
6352
+ "type": "string",
6353
+ "value_allowed_null": false
6354
+ },
6355
+ {
6356
+ "disabled": false,
6357
+ "document": "固件版本",
6358
+ "example": "1.0",
6359
+ "member": "string",
6360
+ "name": "Version",
6361
+ "required": true,
6362
+ "type": "string",
6363
+ "value_allowed_null": false
6364
+ },
6365
+ {
6366
+ "disabled": false,
6367
+ "document": "最后更新时间",
6368
+ "example": "1653893719",
6369
+ "member": "uint64",
6370
+ "name": "UpdateTime",
6371
+ "required": true,
6372
+ "type": "int",
6373
+ "value_allowed_null": false
6374
+ }
6375
+ ],
6376
+ "usage": "out"
6377
+ },
6289
6378
  "DeviceInfo": {
6290
6379
  "document": "设备详细信息",
6291
6380
  "members": [
@@ -458,6 +458,14 @@
458
458
  "title": "获取设备固件信息"
459
459
  }
460
460
  ],
461
+ "DescribeDeviceFirmwares": [
462
+ {
463
+ "document": "",
464
+ "input": "POST / HTTP/1.1\nHost: iotexplorer.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDeviceFirmwares\n<公共请求参数>\n\n{\n \"ProductId\": \"xx\",\n \"DeviceName\": \"xx\"\n}",
465
+ "output": "{\n \"Response\": {\n \"RequestId\": \"ef9ec631-7337-481b-a6c3-59a34b5f8502\",\n \"Firmwares\": [\n {\n \"UpdateTime\": 1653893719,\n \"FwType\": \"mcu\",\n \"Version\": \"mm_3.0\"\n },\n {\n \"UpdateTime\": 1653893651,\n \"FwType\": \"module\",\n \"Version\": \"module_v1.0.3\"\n }\n ]\n }\n}",
466
+ "title": "获取设备固件信息"
467
+ }
468
+ ],
461
469
  "DescribeDeviceLocationSolve": [
462
470
  {
463
471
  "document": "获取实时位置解析",