tccli 3.0.1097.1__py2.py3-none-any.whl → 3.0.1098.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 (32) 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/ess/v20201111/CreateBatchSignUrl.md +28 -0
  6. tccli/examples/essbasic/v20210526/ChannelCreateBatchSignUrl.md +28 -0
  7. tccli/examples/iotexplorer/v20190423/DescribeDeviceFirmwares.md +33 -0
  8. tccli/services/apm/apm_client.py +159 -0
  9. tccli/services/apm/v20210622/api.json +456 -0
  10. tccli/services/apm/v20210622/examples.json +24 -0
  11. tccli/services/cloudstudio/v20230508/api.json +1 -1
  12. tccli/services/cynosdb/v20190107/api.json +2 -0
  13. tccli/services/ess/v20201111/api.json +50 -2
  14. tccli/services/ess/v20201111/examples.json +6 -0
  15. tccli/services/essbasic/v20210526/api.json +50 -2
  16. tccli/services/essbasic/v20210526/examples.json +6 -0
  17. tccli/services/ims/v20201229/api.json +55 -55
  18. tccli/services/iotexplorer/iotexplorer_client.py +53 -0
  19. tccli/services/iotexplorer/v20190423/api.json +89 -0
  20. tccli/services/iotexplorer/v20190423/examples.json +8 -0
  21. tccli/services/iss/v20230517/api.json +36 -0
  22. tccli/services/lke/lke_client.py +8 -114
  23. tccli/services/lke/v20231130/api.json +2 -166
  24. tccli/services/lke/v20231130/examples.json +0 -16
  25. tccli/services/tdid/v20210519/api.json +2 -2
  26. tccli/services/teo/v20220901/api.json +14 -14
  27. tccli/services/tione/v20211111/api.json +28 -0
  28. {tccli-3.0.1097.1.dist-info → tccli-3.0.1098.1.dist-info}/METADATA +2 -2
  29. {tccli-3.0.1097.1.dist-info → tccli-3.0.1098.1.dist-info}/RECORD +32 -28
  30. {tccli-3.0.1097.1.dist-info → tccli-3.0.1098.1.dist-info}/WHEEL +0 -0
  31. {tccli-3.0.1097.1.dist-info → tccli-3.0.1098.1.dist-info}/entry_points.txt +0 -0
  32. {tccli-3.0.1097.1.dist-info → tccli-3.0.1098.1.dist-info}/license_files/LICENSE +0 -0
@@ -176,6 +176,12 @@
176
176
  "input": "POST / HTTP/1.1\nHost: ess.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateBatchSignUrl\n<公共请求参数>\n\n{\n \"IdCardNumber\": \"\",\n \"IdCardType\": \"\",\n \"Name\": \"张三\",\n \"NotifyType\": \"SMS\",\n \"Mobile\": \"17777777777\",\n \"Operator\": {\n \"UserId\": \"yDRCLUUgygq2******uO4zjEwg0vjoimj\"\n },\n \"FlowIds\": [\n \"yDR1AUUgygja******uO4zjEB8zAkJEFN\"\n ]\n}",
177
177
  "output": "{\n \"Response\": {\n \"Error\": {\n \"Code\": \"InvalidParameter\",\n \"Message\": \"合同[yDR1AUUgygja******uO4zjEB8zAkJEFN]不包含链接中的参与方信息, 请确保链接姓名手机号等信息与合同中一致\"\n },\n \"RequestId\": \"5beb5f54-cf3d-4c26-a4ee-a97c85196a3e\"\n }\n}",
178
178
  "title": "合同发起的时候签署方信息和生成链接中的不一致"
179
+ },
180
+ {
181
+ "document": "按照合同发起时候返回的合同信息生成批量签署链接,通过FlowIds参数对用户可以批签的合同进行限制,并指定批量领取的动态签署方。",
182
+ "input": "POST / HTTP/1.1\nHost: ess.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateBatchSignUrl\n<公共请求参数>\n\n{\n \"Operator\": {\n \"UserId\": \"yDRCLUUgygq2******uO4zjEwg0vjoimj\"\n },\n \"FlowIds\": [\n \"yDwFdUUckpsw******yQ0af8bHosXQtb\",\n \"yDR1AUUgygj******uO4zjE8gTG7xvgH\"\n ],\n \"FlowBatchUrlInfo\": {\n \"FlowBatchApproverInfos\": [\n {\n \"FlowId\": \"yDwFdUUckpsw******yQ0af8bHosXQtb\",\n \"RecipientId\": \"yDC5SUUckp******sumxxsjT3EEMVG\"\n },\n {\n \"FlowId\": \"yDR1AUUgygj******uO4zjE8gTG7xvgH\",\n \"RecipientId\": \"yDC5SUUckp*****sumxEeTQ3Xcn0B\"\n }\n ]\n }\n}",
183
+ "output": "{\n \"Response\": {\n \"ExpiredTime\": 1714533495,\n \"MiniAppPath\": \"pages/guide/index?shortKey=yDC5tUf****tMb93lb5\",\n \"RequestId\": \"s1713928695416440124\",\n \"SignUrl\": \"https://test.essurl.cn/uBS****do7\"\n }\n}",
184
+ "title": "生成动态签署人批量领取链接"
179
185
  }
180
186
  ],
181
187
  "CreateConvertTaskApi": [
@@ -1669,7 +1669,7 @@
1669
1669
  "example": "无",
1670
1670
  "member": "string",
1671
1671
  "name": "Name",
1672
- "required": true,
1672
+ "required": false,
1673
1673
  "type": "string"
1674
1674
  },
1675
1675
  {
@@ -1678,7 +1678,7 @@
1678
1678
  "example": "无",
1679
1679
  "member": "string",
1680
1680
  "name": "Mobile",
1681
- "required": true,
1681
+ "required": false,
1682
1682
  "type": "string"
1683
1683
  },
1684
1684
  {
@@ -1743,6 +1743,15 @@
1743
1743
  "name": "JumpToDetail",
1744
1744
  "required": false,
1745
1745
  "type": "bool"
1746
+ },
1747
+ {
1748
+ "disabled": false,
1749
+ "document": "批量签署合同相关信息,指定合同和签署方的信息,用于补充动态签署人。\t",
1750
+ "example": "无",
1751
+ "member": "FlowBatchUrlInfo",
1752
+ "name": "FlowBatchUrlInfo",
1753
+ "required": false,
1754
+ "type": "object"
1746
1755
  }
1747
1756
  ],
1748
1757
  "type": "object"
@@ -8540,6 +8549,45 @@
8540
8549
  ],
8541
8550
  "usage": "out"
8542
8551
  },
8552
+ "FlowBatchApproverInfo": {
8553
+ "document": "批量签署合同相关信息,指定批量签署合同和签署方的信息,用于补充动态签署人。",
8554
+ "members": [
8555
+ {
8556
+ "disabled": false,
8557
+ "document": "合同流程ID。",
8558
+ "example": "yDwFmUUckpstqfvzUE1h3jo1f3cqjkGm",
8559
+ "member": "string",
8560
+ "name": "FlowId",
8561
+ "required": false,
8562
+ "type": "string"
8563
+ },
8564
+ {
8565
+ "disabled": false,
8566
+ "document": "签署节点ID,用于生成动态签署人链接完成领取。注:`生成动态签署人补充链接时必传。`",
8567
+ "example": "无",
8568
+ "member": "string",
8569
+ "name": "RecipientId",
8570
+ "required": false,
8571
+ "type": "string"
8572
+ }
8573
+ ],
8574
+ "usage": "in"
8575
+ },
8576
+ "FlowBatchUrlInfo": {
8577
+ "document": "批量签署合同相关信息,指定批量签署合同和签署方的信息,用于补充动态签署人。",
8578
+ "members": [
8579
+ {
8580
+ "disabled": false,
8581
+ "document": "批量签署合同和签署方的信息,用于补充动态签署人。",
8582
+ "example": "无",
8583
+ "member": "FlowBatchApproverInfo",
8584
+ "name": "FlowBatchApproverInfos",
8585
+ "required": false,
8586
+ "type": "list"
8587
+ }
8588
+ ],
8589
+ "usage": "in"
8590
+ },
8543
8591
  "FlowDetailInfo": {
8544
8592
  "document": "此结构体(FlowDetailInfo)描述的是合同(流程)的详细信息",
8545
8593
  "members": [
@@ -132,6 +132,12 @@
132
132
  "input": "POST / HTTP/1.1\nHost: ess.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateBatchSignUrl\n<公共请求参数>\n\n{\n \"IdCardNumber\": \"\",\n \"IdCardType\": \"\",\n \"Name\": \"张三\",\n \"NotifyType\": \"SMS\",\n \"Mobile\": \"17777777777\",\n \"Agent\": {\n \"ProxyOperator\": {\n \"OpenId\": \"test_open_id\"\n },\n \"ProxyOrganizationOpenId\": \"test_org_open_id\",\n \"AppId\": \"yDxbWUyKQ*******4zjEB8mxCcDjAyF\"\n },\n \"FlowIds\": [\n \"yDR1AUUgygja******uO4zjEB8zAkJEFN\"\n ]\n}",
133
133
  "output": "{\n \"Response\": {\n \"Error\": {\n \"Code\": \"InvalidParameter\",\n \"Message\": \"合同[yDR1AUUgygja******uO4zjEB8zAkJEFN]不包含链接中的参与方信息, 请确保链接姓名手机号等信息与合同中一致\"\n },\n \"RequestId\": \"5beb5f54-cf3d-4c26-a4ee-a97c85196a3e\"\n }\n}",
134
134
  "title": "合同发起的时候签署方信息和生成链接中的不一致"
135
+ },
136
+ {
137
+ "document": "按照合同发起时候返回的合同信息生成批量签署链接,通过FlowIds参数对用户可以批签的合同进行限制,并指定批量领取的动态签署方。",
138
+ "input": "POST / HTTP/1.1\nHost: essbasic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ChannelCreateBatchSignUrl\n<公共请求参数>\n\n{\n \"Agent\": {\n \"ProxyOperator\": {\n \"OpenId\": \"test_open_id\"\n },\n \"ProxyOrganizationOpenId\": \"test_org_open_id\",\n \"AppId\": \"yDxbWUyKQ*******4zjEB8mxCcDjAyF\"\n },\n \"FlowIds\": [\n \"yDwFdUUckpsw******yQ0af8bHosXQtb\",\n \"yDR1AUUgygj******uO4zjE8gTG7xvgH\"\n ],\n \"FlowBatchUrlInfo\": {\n \"FlowBatchApproverInfos\": [\n {\n \"FlowId\": \"yDC5yUUckpwexoz4UuoHfkT1DMEDQSG5\",\n \"RecipientId\": \"yDC5yUUckpwexozwUuoHfkTwB00zdfLo\"\n }\n ]\n }\n}",
139
+ "output": "{\n \"Response\": {\n \"ExpiredTime\": 1684899114,\n \"RequestId\": \"5beb5f54-cf3d-4c26-a4ee-a97c85196a3e\",\n \"SignUrl\": \"https://ess.url.cn/FuP**Swc\",\n \"MiniAppPath\": \"pages/guide/index?shortKey=FuP3**wc\"\n }\n}",
140
+ "title": "生成动态签署人批量领取链接"
135
141
  }
136
142
  ],
137
143
  "ChannelCreateBoundFlows": [
@@ -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,