tccli 3.0.1251.1__py2.py3-none-any.whl → 3.0.1252.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 (36) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/aiart/v20221229/api.json +12 -3
  3. tccli/services/bi/v20220105/api.json +6 -6
  4. tccli/services/cat/v20180409/api.json +25 -24
  5. tccli/services/cat/v20180409/examples.json +17 -17
  6. tccli/services/ccc/ccc_client.py +53 -0
  7. tccli/services/ccc/v20200210/api.json +89 -0
  8. tccli/services/ccc/v20200210/examples.json +8 -0
  9. tccli/services/cdb/v20170320/api.json +12 -0
  10. tccli/services/cdwdoris/v20211228/api.json +233 -193
  11. tccli/services/cdwdoris/v20211228/examples.json +6 -6
  12. tccli/services/cloudaudit/v20190319/api.json +2 -2
  13. tccli/services/cloudaudit/v20190319/examples.json +2 -2
  14. tccli/services/config/v20220802/api.json +20 -9
  15. tccli/services/config/v20220802/examples.json +1 -1
  16. tccli/services/ess/v20201111/api.json +94 -92
  17. tccli/services/ess/v20201111/examples.json +9 -9
  18. tccli/services/essbasic/v20210526/api.json +2 -2
  19. tccli/services/essbasic/v20210526/examples.json +6 -6
  20. tccli/services/lcic/v20220817/api.json +1 -1
  21. tccli/services/monitor/v20180724/api.json +68 -50
  22. tccli/services/monitor/v20180724/examples.json +21 -21
  23. tccli/services/mps/mps_client.py +379 -61
  24. tccli/services/mps/v20190612/api.json +495 -13
  25. tccli/services/mps/v20190612/examples.json +48 -0
  26. tccli/services/ssl/v20191205/api.json +3 -3
  27. tccli/services/ssl/v20191205/examples.json +1 -1
  28. tccli/services/trtc/v20190722/api.json +11 -0
  29. tccli/services/tse/v20201207/api.json +10 -0
  30. tccli/services/wedata/v20210820/api.json +382 -96
  31. tccli/services/wedata/v20210820/examples.json +1 -1
  32. {tccli-3.0.1251.1.dist-info → tccli-3.0.1252.1.dist-info}/METADATA +2 -2
  33. {tccli-3.0.1251.1.dist-info → tccli-3.0.1252.1.dist-info}/RECORD +36 -36
  34. {tccli-3.0.1251.1.dist-info → tccli-3.0.1252.1.dist-info}/WHEEL +0 -0
  35. {tccli-3.0.1251.1.dist-info → tccli-3.0.1252.1.dist-info}/entry_points.txt +0 -0
  36. {tccli-3.0.1251.1.dist-info → tccli-3.0.1252.1.dist-info}/license_files/LICENSE +0 -0
tccli/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = '3.0.1251.1'
1
+ __version__ = '3.0.1252.1'
@@ -1072,7 +1072,7 @@
1072
1072
  },
1073
1073
  {
1074
1074
  "disabled": false,
1075
- "document": "对新背景的文本描述。\n最多支持256个 utf-8 字符,支持中、英文。",
1075
+ "document": "对新背景的文本描述。\n最多支持256个 utf-8 字符,支持中、英文。\n如果 Prompt = \"BackgroundTemplate\" 代表启用背景模板,需要在参数 BackgroundTemplate 中指定一个背景名称。",
1076
1076
  "example": "放在充满鲜花的环境里,简洁风格,清新自然,广告摄影",
1077
1077
  "member": "string",
1078
1078
  "name": "Prompt",
@@ -1097,6 +1097,15 @@
1097
1097
  "required": false,
1098
1098
  "type": "string"
1099
1099
  },
1100
+ {
1101
+ "disabled": false,
1102
+ "document": "背景模板。\n仅当 Prompt = \"BackgroundTemplate\" 时生效,可支持的模板详见 [商品背景模板列表](https://cloud.tencent.com/document/product/1668/115391) ,请传入字段“背景名称”中的值。",
1103
+ "example": "彩虹渐变",
1104
+ "member": "string",
1105
+ "name": "BackgroundTemplate",
1106
+ "required": false,
1107
+ "type": "string"
1108
+ },
1100
1109
  {
1101
1110
  "disabled": false,
1102
1111
  "document": "商品 Mask 图 Url,要求背景透明,保留商品主体。\n如果不传,将自动使用内置的商品分割算法得到 Mask。\n支持自定义上传 Mask,如果该参数不为空,则以实际上传的数据为准。\n图片限制:Mask 图必须和商品原图分辨率一致,转成 Base64 字符串后小于 6MB,格式仅支持 png。",
@@ -1151,7 +1160,7 @@
1151
1160
  {
1152
1161
  "disabled": false,
1153
1162
  "document": "根据入参 RspImgType 填入不同,返回不同的内容。\n如果传入 base64 则返回生成图 Base64 编码。\n如果传入 url 则返回的生成图 URL , 有效期1小时,请及时保存。",
1154
- "example": "https://aiart-xxx.cos.ap-guangzhou.myqcloud.com/xxx.jpg?q-sign-algorithm=sha1&q-ak=xxxxx&q-sign-time=1731574045;1731577645&q-key-time=1731574045;1731577645&q-header-list=host&q-url-param-list=&q-signature=31fe75c1c18c3d91db59508961209dd37aaf41c7",
1163
+ "example": "https://aiart-xxx.cos.ap-guangzhou.myqcloud.com/xxx.jpg",
1155
1164
  "member": "string",
1156
1165
  "name": "ResultImage",
1157
1166
  "output_required": true,
@@ -1161,7 +1170,7 @@
1161
1170
  {
1162
1171
  "disabled": false,
1163
1172
  "document": "如果 MaskUrl 未传,则返回使用内置商品分割算法得到的 Mask 结果。",
1164
- "example": "https://aiart-xxx.cos.ap-guangzhou.myqcloud.com/mask.jpg?q-sign-algorithm=sha1&q-ak=xxxxx&q-sign-time=1731574045;1731577645&q-key-time=1731574045;1731577645&q-header-list=host&q-url-param-list=&q-signature=31fe75c1c18c3d91db59508961209dd37aaf41c7",
1173
+ "example": "https://aiart-xxx.cos.ap-guangzhou.myqcloud.com/mask.jpg",
1165
1174
  "member": "string",
1166
1175
  "name": "MaskImage",
1167
1176
  "output_required": false,
@@ -3032,7 +3032,7 @@
3032
3032
  {
3033
3033
  "disabled": false,
3034
3034
  "document": "错误说明字段\n注意:此字段可能返回 null,表示取不到有效值。",
3035
- "example": "",
3035
+ "example": "错误提示",
3036
3036
  "member": "string",
3037
3037
  "name": "ErrorTip",
3038
3038
  "output_required": false,
@@ -3042,7 +3042,7 @@
3042
3042
  {
3043
3043
  "disabled": false,
3044
3044
  "document": "原始异常信息\n注意:此字段可能返回 null,表示取不到有效值。",
3045
- "example": "",
3045
+ "example": "错误提示消息",
3046
3046
  "member": "string",
3047
3047
  "name": "ErrorMessage",
3048
3048
  "output_required": false,
@@ -3052,7 +3052,7 @@
3052
3052
  {
3053
3053
  "disabled": false,
3054
3054
  "document": "错误等级字段\nERROR\nWARN\nINFO\n注意:此字段可能返回 null,表示取不到有效值。",
3055
- "example": "",
3055
+ "example": "INFO",
3056
3056
  "member": "string",
3057
3057
  "name": "ErrorLevel",
3058
3058
  "output_required": false,
@@ -3062,7 +3062,7 @@
3062
3062
  {
3063
3063
  "disabled": false,
3064
3064
  "document": "指引文档链接\n注意:此字段可能返回 null,表示取不到有效值。",
3065
- "example": "",
3065
+ "example": "文档链接说明",
3066
3066
  "member": "string",
3067
3067
  "name": "DocLink",
3068
3068
  "output_required": false,
@@ -3072,7 +3072,7 @@
3072
3072
  {
3073
3073
  "disabled": false,
3074
3074
  "document": "快速指引说明\n注意:此字段可能返回 null,表示取不到有效值。",
3075
- "example": "",
3075
+ "example": "常见问题",
3076
3076
  "member": "string",
3077
3077
  "name": "FAQ",
3078
3078
  "output_required": false,
@@ -3082,7 +3082,7 @@
3082
3082
  {
3083
3083
  "disabled": false,
3084
3084
  "document": "预留字段1\n注意:此字段可能返回 null,表示取不到有效值。",
3085
- "example": "",
3085
+ "example": "1",
3086
3086
  "member": "string",
3087
3087
  "name": "ReservedField",
3088
3088
  "output_required": false,
@@ -10,7 +10,7 @@
10
10
  "DeleteProbeTask": {
11
11
  "document": "删除拨测任务",
12
12
  "input": "DeleteProbeTaskRequest",
13
- "name": "删除拨测任务",
13
+ "name": "删除任务",
14
14
  "output": "DeleteProbeTaskResponse",
15
15
  "status": "online"
16
16
  },
@@ -64,9 +64,9 @@
64
64
  "status": "online"
65
65
  },
66
66
  "SuspendProbeTask": {
67
- "document": "暂停拨测任务",
67
+ "document": "暂停任务",
68
68
  "input": "SuspendProbeTaskRequest",
69
- "name": "暂停拨测任务",
69
+ "name": "暂停任务",
70
70
  "output": "SuspendProbeTaskResponse",
71
71
  "status": "online"
72
72
  },
@@ -134,7 +134,7 @@
134
134
  {
135
135
  "disabled": false,
136
136
  "document": "拨测参数,详细可参考云拨测官方文档,链接:https://cloud.tencent.com/document/product/248/87308#createprobetasks。",
137
- "example": "{}",
137
+ "example": "",
138
138
  "member": "string",
139
139
  "name": "Parameters",
140
140
  "required": true,
@@ -161,7 +161,7 @@
161
161
  {
162
162
  "disabled": false,
163
163
  "document": "资源标签值",
164
- "example": "[{\"TagKey\":\"a\", \"TagValue\": \"a1\"}]",
164
+ "example": "[{\"TagKey\":\"运营部门\", \"TagValue\": \"云产一\"}]",
165
165
  "member": "Tag",
166
166
  "name": "Tag",
167
167
  "required": false,
@@ -206,7 +206,7 @@
206
206
  {
207
207
  "disabled": false,
208
208
  "document": "供应商子账户同步标志",
209
- "example": "",
209
+ "example": "0",
210
210
  "member": "int64",
211
211
  "name": "SubSyncFlag",
212
212
  "required": false,
@@ -261,7 +261,7 @@
261
261
  "example": "1",
262
262
  "member": "int64",
263
263
  "name": "Total",
264
- "required": true,
264
+ "output_required": true,
265
265
  "type": "int",
266
266
  "value_allowed_null": false
267
267
  },
@@ -271,17 +271,17 @@
271
271
  "example": "1",
272
272
  "member": "int64",
273
273
  "name": "SuccessCount",
274
- "required": true,
274
+ "output_required": true,
275
275
  "type": "int",
276
276
  "value_allowed_null": true
277
277
  },
278
278
  {
279
279
  "disabled": false,
280
280
  "document": "任务执行结果\n注意:此字段可能返回 null,表示取不到有效值。",
281
- "example": "[]",
281
+ "example": "",
282
282
  "member": "TaskResult",
283
283
  "name": "Results",
284
- "required": true,
284
+ "output_required": true,
285
285
  "type": "list",
286
286
  "value_allowed_null": true
287
287
  },
@@ -507,10 +507,10 @@
507
507
  {
508
508
  "disabled": false,
509
509
  "document": "任务\n注意:此字段可能返回 null,表示取不到有效值。",
510
- "example": "[]",
510
+ "example": "",
511
511
  "member": "SingleInstantTask",
512
512
  "name": "Tasks",
513
- "required": true,
513
+ "output_required": true,
514
514
  "type": "list",
515
515
  "value_allowed_null": true
516
516
  },
@@ -520,7 +520,7 @@
520
520
  "example": "10",
521
521
  "member": "uint64",
522
522
  "name": "Total",
523
- "required": true,
523
+ "output_required": true,
524
524
  "type": "int",
525
525
  "value_allowed_null": false
526
526
  },
@@ -602,6 +602,7 @@
602
602
  "example": "[{\"Code\":1000, \"Type\":1, \"Name\":\"北京\"}]",
603
603
  "member": "NodeDefineExt",
604
604
  "name": "NodeSet",
605
+ "output_required": true,
605
606
  "type": "list",
606
607
  "value_allowed_null": true
607
608
  },
@@ -680,7 +681,7 @@
680
681
  {
681
682
  "disabled": false,
682
683
  "document": " 返回指标 JSON 序列化后的字符串,具体如下所示:\"[{\\\"name\\\":\\\"task_navigate_request_gauge\\\",\\\"columns\\\":[\\\"time\\\",\\\"avg(first_screen_time) / 1000\\\"],\\\"values\\\":[[1641571200,6.756600000000001]],\\\"tags\\\":null}]\"",
683
- "example": "\"\"",
684
+ "example": "gauge",
684
685
  "member": "string",
685
686
  "name": "MetricSet",
686
687
  "output_required": true,
@@ -898,7 +899,7 @@
898
899
  {
899
900
  "disabled": false,
900
901
  "document": "任务列表\n注意:此字段可能返回 null,表示取不到有效值。",
901
- "example": "[]",
902
+ "example": "",
902
903
  "member": "ProbeTask",
903
904
  "name": "TaskSet",
904
905
  "output_required": true,
@@ -1496,7 +1497,7 @@
1496
1497
  "example": "1",
1497
1498
  "member": "int64",
1498
1499
  "name": "Total",
1499
- "required": true,
1500
+ "output_required": true,
1500
1501
  "type": "int",
1501
1502
  "value_allowed_null": false
1502
1503
  },
@@ -1506,17 +1507,17 @@
1506
1507
  "example": "1",
1507
1508
  "member": "int64",
1508
1509
  "name": "SuccessCount",
1509
- "required": true,
1510
+ "output_required": true,
1510
1511
  "type": "int",
1511
1512
  "value_allowed_null": true
1512
1513
  },
1513
1514
  {
1514
1515
  "disabled": false,
1515
1516
  "document": "任务执行详情\n注意:此字段可能返回 null,表示取不到有效值。",
1516
- "example": "[]",
1517
+ "example": "",
1517
1518
  "member": "TaskResult",
1518
1519
  "name": "Results",
1519
- "required": true,
1520
+ "output_required": true,
1520
1521
  "type": "list",
1521
1522
  "value_allowed_null": true
1522
1523
  },
@@ -1639,7 +1640,7 @@
1639
1640
  "example": "1",
1640
1641
  "member": "int64",
1641
1642
  "name": "Total",
1642
- "required": true,
1643
+ "output_required": true,
1643
1644
  "type": "int",
1644
1645
  "value_allowed_null": false
1645
1646
  },
@@ -1649,17 +1650,17 @@
1649
1650
  "example": "1",
1650
1651
  "member": "int64",
1651
1652
  "name": "SuccessCount",
1652
- "required": true,
1653
+ "output_required": true,
1653
1654
  "type": "int",
1654
1655
  "value_allowed_null": true
1655
1656
  },
1656
1657
  {
1657
1658
  "disabled": false,
1658
1659
  "document": "任务执行结果\n注意:此字段可能返回 null,表示取不到有效值。",
1659
- "example": "[]",
1660
+ "example": "",
1660
1661
  "member": "TaskResult",
1661
1662
  "name": "Results",
1662
- "required": true,
1663
+ "output_required": true,
1663
1664
  "type": "list",
1664
1665
  "value_allowed_null": true
1665
1666
  },
@@ -1803,7 +1804,7 @@
1803
1804
  {
1804
1805
  "disabled": false,
1805
1806
  "document": "拨测参数,详细参数配置可参考云拨测官网文档。",
1806
- "example": "{}",
1807
+ "example": "",
1807
1808
  "member": "string",
1808
1809
  "name": "Parameters",
1809
1810
  "required": true,
@@ -9,24 +9,24 @@
9
9
  },
10
10
  {
11
11
  "document": "",
12
- "input": "POST / HTTP/1.1\nHost: cat.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateProbeTasks\n<公共请求参数>\n\n{\n \"BatchTasks\": [\n {\n \"Name\": \"probe\",\n \"TargetAddress\": \"http://www.baidu.com\"\n }\n ],\n \"Parameters\": \"{\\\"ipType\\\":0,\\\"grabBag\\\":0,\\\"netIcmpOn\\\":1,\\\"netIcmpActivex\\\":0,\\\"netIcmpTimeout\\\":20,\\\"netIcmpInterval\\\":0.5,\\\"netIcmpNum\\\":20,\\\"netIcmpSize\\\":32,\\\"netIcmpDataCut\\\":1,\\\"netDnsOn\\\":1,\\\"netDnsTimeout\\\":5,\\\"netDnsQuerymethod\\\":1,\\\"netDnsNs\\\":\\\"\\\",\\\"netDigOn\\\":1,\\\"netDnsServer\\\":2,\\\"netTracertOn\\\":1,\\\"netTracertTimeout\\\":60,\\\"netTracertNum\\\":30,\\\"whiteList\\\":\\\"\\\",\\\"blackList\\\":\\\"\\\",\\\"netIcmpActivexStr\\\":\\\"\\\"}\",\n \"Interval\": 30,\n \"TaskCategory\": 1,\n \"TaskType\": 5,\n \"Nodes\": [\n \"10001\"\n ],\n \"Cron\": \"* 0-6 * * *\",\n \"Tag\": [\n {\n \"TagKey\": \"abc\",\n \"TagValue\": \"a1\"\n }\n ]\n}",
13
- "output": "{\n \"Response\": {\n \"TaskIDs\": [\n \"abc\"\n ],\n \"RequestId\": \"abc\"\n }\n}",
12
+ "input": "POST / HTTP/1.1\nHost: cat.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateProbeTasks\n<公共请求参数>\n\n{\n \"BatchTasks\": [\n {\n \"Name\": \"probe\",\n \"TargetAddress\": \"http://www.baidu.com\"\n }\n ],\n \"Parameters\": \"{\\\"ipType\\\":0,\\\"grabBag\\\":0,\\\"netIcmpOn\\\":1,\\\"netIcmpActivex\\\":0,\\\"netIcmpTimeout\\\":20,\\\"netIcmpInterval\\\":0.5,\\\"netIcmpNum\\\":20,\\\"netIcmpSize\\\":32,\\\"netIcmpDataCut\\\":1,\\\"netDnsOn\\\":1,\\\"netDnsTimeout\\\":5,\\\"netDnsQuerymethod\\\":1,\\\"netDnsNs\\\":\\\"\\\",\\\"netDigOn\\\":1,\\\"netDnsServer\\\":2,\\\"netTracertOn\\\":1,\\\"netTracertTimeout\\\":60,\\\"netTracertNum\\\":30,\\\"whiteList\\\":\\\"\\\",\\\"blackList\\\":\\\"\\\",\\\"netIcmpActivexStr\\\":\\\"\\\"}\",\n \"Interval\": 30,\n \"TaskCategory\": 1,\n \"TaskType\": 5,\n \"Nodes\": [\n \"10001\"\n ],\n \"Cron\": \"* 0-6 * * *\",\n \"Tag\": [\n {\n \"TagKey\": \"运营部门\",\n \"TagValue\": \"产一\"\n }\n ]\n}",
13
+ "output": "{\n \"Response\": {\n \"TaskIDs\": [\n \"task-abc\"\n ],\n \"RequestId\": \"720b3231-5a85-4f05-aaab-c9b9596xxxxx\"\n }\n}",
14
14
  "title": "批量创建拨测任务"
15
15
  }
16
16
  ],
17
17
  "DeleteProbeTask": [
18
18
  {
19
19
  "document": "",
20
- "input": "POST / HTTP/1.1\nHost: cat.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteProbeTask\n<公共请求参数>\n\n{\n \"TaskIds\": [\n \"xx\"\n ]\n}",
21
- "output": "{\n \"Response\": {\n \"SuccessCount\": 0,\n \"Total\": 0,\n \"Results\": [\n {\n \"ErrorMessage\": \"xx\",\n \"Success\": true,\n \"TaskId\": \"task-xx\"\n }\n ],\n \"RequestId\": \"xx\"\n }\n}",
22
- "title": "删除拨测任务"
20
+ "input": "POST / HTTP/1.1\nHost: cat.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteProbeTask\n<公共请求参数>\n\n{\n \"TaskIds\": [\n \"task-xxx\"\n ]\n}",
21
+ "output": "{\n \"Response\": {\n \"SuccessCount\": 0,\n \"Total\": 0,\n \"Results\": [\n {\n \"ErrorMessage\": \"\",\n \"Success\": true,\n \"TaskId\": \"task-xxx\"\n }\n ],\n \"RequestId\": \"720b3231-5a85-4f05-aaab-c9b9596xxxxx\"\n }\n}",
22
+ "title": "删除任务"
23
23
  }
24
24
  ],
25
25
  "DescribeDetailedSingleProbeData": [
26
26
  {
27
27
  "document": "列出单次拨测详情数据",
28
- "input": "POST / HTTP/1.1\nHost: cat.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDetailedSingleProbeData\n<公共请求参数>\n\n{\n \"BeginTime\": 1679899994107,\n \"EndTime\": 1679903594107,\n \"TaskType\": \"AnalyzeTaskType_Network\",\n \"SortField\": \"ProbeTime\",\n \"Ascending\": true,\n \"Offset\": 0,\n \"Limit\": 10,\n \"SelectedFields\": [\n \"ProbeTime\",\n \"City\",\n \"Operator\",\n \"ProbeIP\"\n ],\n \"TaskID\": [\n \"task-p4najqd4\"\n ],\n \"ScrollID\": \"xxx\"\n}",
29
- "output": "{\n \"Response\": {\n \"ScrollID\": \"xxx\",\n \"TotalNumber\": 10,\n \"DataSet\": [\n {\n \"ProbeTime\": 1,\n \"Labels\": [\n {\n \"ID\": 0,\n \"Name\": \"City\",\n \"Value\": \"上海市\"\n }\n ],\n \"Fields\": [\n {\n \"ID\": 0,\n \"Name\": \"ProbeTime\",\n \"Value\": 1679903537000\n }\n ]\n }\n ],\n \"RequestId\": \"asd\"\n }\n}",
28
+ "input": "POST / HTTP/1.1\nHost: cat.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDetailedSingleProbeData\n<公共请求参数>\n\n{\n \"BeginTime\": 1679899994107,\n \"EndTime\": 1679903594107,\n \"TaskType\": \"AnalyzeTaskType_Network\",\n \"SortField\": \"ProbeTime\",\n \"Ascending\": true,\n \"Offset\": 0,\n \"Limit\": 10,\n \"SelectedFields\": [\n \"ProbeTime\",\n \"City\",\n \"Operator\",\n \"ProbeIP\"\n ],\n \"TaskID\": [\n \"task-p4najqd4\"\n ],\n \"ScrollID\": \"DXF1ZXJ5QW5kRmV0Y2gBAAAAAQEPczgWVU1RMC12VHhSUWlYa1I0dnU4aXlxxx==\"\n}",
29
+ "output": "{\n \"Response\": {\n \"ScrollID\": \"DXF1ZXJ5QW5kRmV0Y2gBAAAAAQEPczgWVU1RMC12VHhSUWlYa1I0dnU4aXlxxx==\",\n \"TotalNumber\": 10,\n \"DataSet\": [\n {\n \"ProbeTime\": 1,\n \"Labels\": [\n {\n \"ID\": 0,\n \"Name\": \"City\",\n \"Value\": \"上海市\"\n }\n ],\n \"Fields\": [\n {\n \"ID\": 0,\n \"Name\": \"ProbeTime\",\n \"Value\": 1679903537000\n }\n ]\n }\n ],\n \"RequestId\": \"720b3231-5a85-4f05-aaab-c9b9596xxxxx\"\n }\n}",
30
30
  "title": "列出单次拨测详情数据"
31
31
  }
32
32
  ],
@@ -34,7 +34,7 @@
34
34
  {
35
35
  "document": "",
36
36
  "input": "POST / HTTP/1.1\nHost: cat.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeInstantTasks\n<公共请求参数>\n\n{\n \"Limit\": 1,\n \"Offset\": 1\n}",
37
- "output": "{\n \"Response\": {\n \"Tasks\": [\n {\n \"Status\": \"xx\",\n \"ProbeTime\": \"xx\",\n \"TaskCategory\": 1,\n \"SuccessRate\": 0.0,\n \"TargetAddress\": \"xx\",\n \"TaskId\": \"xx\",\n \"TaskType\": 1,\n \"NodeCount\": 1\n }\n ],\n \"RequestId\": \"xx\",\n \"Total\": 1\n }\n}",
37
+ "output": "{\n \"Response\": {\n \"Tasks\": [\n {\n \"Status\": \"1\",\n \"ProbeTime\": \"1641917822000\",\n \"TaskCategory\": 1,\n \"SuccessRate\": 0.0,\n \"TargetAddress\": \"www.test.com\",\n \"TaskId\": \"task-xxx\",\n \"TaskType\": 1,\n \"NodeCount\": 1\n }\n ],\n \"RequestId\": \"720b3231-5a85-4f05-aaab-c9b9596xxxxx\",\n \"Total\": 1\n }\n}",
38
38
  "title": "获取历史即时拨测任务"
39
39
  }
40
40
  ],
@@ -42,7 +42,7 @@
42
42
  {
43
43
  "document": "获取拨测节点",
44
44
  "input": "POST / HTTP/1.1\nHost: cat.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeNodes\n<公共请求参数>\n\n{\n \"NodeType\": 1\n}",
45
- "output": "{\n \"Response\": {\n \"NodeSet\": [\n {\n \"City\": \"北京\",\n \"Code\": \"10001\",\n \"Name\": \"123\",\n \"District\": \"1223\",\n \"NetService\": \"中国电信\",\n \"Location\": 0,\n \"Type\": 1,\n \"IPType\": 0,\n \"TaskTypes\": [\n 1,\n 2\n ],\n \"CodeType\": \"\"\n }\n ],\n \"RequestId\": \"123\"\n }\n}",
45
+ "output": "{\n \"Response\": {\n \"NodeSet\": [\n {\n \"City\": \"北京\",\n \"Code\": \"10001\",\n \"Name\": \"test_task\",\n \"District\": \"beijing\",\n \"NetService\": \"中国电信\",\n \"Location\": 0,\n \"Type\": 1,\n \"IPType\": 0,\n \"TaskTypes\": [\n 1,\n 2\n ],\n \"CodeType\": \"\"\n }\n ],\n \"RequestId\": \"720b3231-5a85-4f05-aaab-c9b9596xxxxx\"\n }\n}",
46
46
  "title": "获取拨测节点"
47
47
  }
48
48
  ],
@@ -50,7 +50,7 @@
50
50
  {
51
51
  "document": "请求浏览数据",
52
52
  "input": "POST / HTTP/1.1\nHost: cat.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeProbeMetricData\n<公共请求参数>\n\n{\n \"AnalyzeTaskType\": \"AnalyzeTaskType_Network\",\n \"MetricType\": \"gauge\",\n \"Field\": \"sum(\\\"error_count\\\")\",\n \"GroupBy\": \"time(30d), \\\"operator\\\"\",\n \"Filters\": [\n \"\\\"host\\\" = 'default-host'\",\n \"time >= now()-1h\"\n ]\n}",
53
- "output": "{\n \"Response\": {\n \"MetricSet\": \"[{\\\"name\\\":\\\"netenv_request_gauge\\\",\\\"columns\\\":[\\\"time\\\",\\\"sum(error_count)\\\"],\\\"values\\\":[[xxxxx,xxxxx]],\\\"tags\\\":null}]\",\n \"RequestId\": \"xxxxx\"\n }\n}",
53
+ "output": "{\n \"Response\": {\n \"MetricSet\": \"[{\\\"name\\\":\\\"netenv_request_gauge\\\",\\\"columns\\\":[\\\"time\\\",\\\"sum(error_count)\\\"],\\\"values\\\":[[xxxxx,xxxxx]],\\\"tags\\\":null}]\",\n \"RequestId\": \"720b3231-5a85-4f05-aaab-c9b9596xxxxx\"\n }\n}",
54
54
  "title": "请求浏览数据"
55
55
  }
56
56
  ],
@@ -84,7 +84,7 @@
84
84
  {
85
85
  "document": "",
86
86
  "input": "POST / HTTP/1.1\nHost: cat.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeProbeTasks\n<公共请求参数>\n\n{\n \"TaskIDs\": [\n \"task-xx\"\n ],\n \"TagFilters\": [\n {\n \"Key\": \"name\",\n \"Value\": \"zhangsan\"\n }\n ]\n}",
87
- "output": "{\n \"Response\": {\n \"TaskSet\": [\n {\n \"Name\": \"abc\",\n \"TaskId\": \"abc\",\n \"TaskType\": 0,\n \"Nodes\": [\n \"abc\"\n ],\n \"NodeIpType\": 0,\n \"Interval\": 0,\n \"Parameters\": \"abc\",\n \"Status\": 0,\n \"TargetAddress\": \"abc\",\n \"PayMode\": 0,\n \"OrderState\": 0,\n \"TaskCategory\": 0,\n \"CreatedAt\": \"abc\",\n \"Cron\": \"abc\",\n \"CronState\": 0,\n \"TagInfoList\": [\n {\n \"Key\": \"abc\",\n \"Value\": \"abc\"\n }\n ]\n }\n ],\n \"Total\": 0,\n \"RequestId\": \"abc\"\n }\n}",
87
+ "output": "{\n \"Response\": {\n \"TaskSet\": [\n {\n \"Name\": \"cron测试\",\n \"TaskId\": \"task-xx\",\n \"TaskType\": 0,\n \"Nodes\": [\n \"10000\"\n ],\n \"NodeIpType\": 0,\n \"Interval\": 0,\n \"Parameters\": \"{\\\"ipType\\\":0,\\\"netIcmpOn\\\":1,\\\"netIcmpActivex\\\":0,\\\"netIcmpTimeout\\\":20,\\\"netIcmpInterval\\\":\\\"0.5\\\",\\\"netIcmpNum\\\":4,\\\"netIcmpSize\\\":4,\\\"netIcmpDataCut\\\":1,\\\"netDnsOn\\\":0,\\\"netTracertOn\\\":1,\\\"netTracertTimeout\\\":20,\\\"netTracertNum\\\":0}\",\n \"Status\": 0,\n \"TargetAddress\": \"www.test.com\",\n \"PayMode\": 0,\n \"OrderState\": 0,\n \"TaskCategory\": 0,\n \"CreatedAt\": \"2024-01-02 16:57:15\",\n \"Cron\": \"* 0-6 * * *\",\n \"CronState\": 0,\n \"TagInfoList\": [\n {\n \"Key\": \"部门\",\n \"Value\": \"部门 1\"\n }\n ]\n }\n ],\n \"Total\": 0,\n \"RequestId\": \"720b3231-5a85-4f05-aaab-c9b9596xxxxx\"\n }\n}",
88
88
  "title": "查询拨测任务列表"
89
89
  }
90
90
  ],
@@ -92,7 +92,7 @@
92
92
  {
93
93
  "document": "",
94
94
  "input": "POST / HTTP/1.1\nHost: cat.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ResumeProbeTask\n<公共请求参数>\n\n{\n \"TaskIds\": [\n \"task-xx\"\n ]\n}",
95
- "output": "{\n \"Response\": {\n \"SuccessCount\": 0,\n \"Total\": 0,\n \"Results\": [\n {\n \"ErrorMessage\": \"xx\",\n \"Success\": true,\n \"TaskId\": \"xx\"\n }\n ],\n \"RequestId\": \"xx\"\n }\n}",
95
+ "output": "{\n \"Response\": {\n \"SuccessCount\": 0,\n \"Total\": 0,\n \"Results\": [\n {\n \"ErrorMessage\": \"\",\n \"Success\": true,\n \"TaskId\": \"task-xx\"\n }\n ],\n \"RequestId\": \"720b3231-5a85-4f05-aaab-c9b9596xxxxx\"\n }\n}",
96
96
  "title": "恢复拨测任务"
97
97
  }
98
98
  ],
@@ -100,14 +100,14 @@
100
100
  {
101
101
  "document": "",
102
102
  "input": "POST / HTTP/1.1\nHost: cat.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SuspendProbeTask\n<公共请求参数>\n\n{\n \"TaskIds\": [\n \"task-xxx\"\n ]\n}",
103
- "output": "{\n \"Response\": {\n \"SuccessCount\": 1,\n \"Total\": 1,\n \"Results\": [\n {\n \"ErrorMessage\": \"xx\",\n \"Success\": true,\n \"TaskId\": \"task-xx\"\n }\n ],\n \"RequestId\": \"xx\"\n }\n}",
104
- "title": "暂停拨测任务"
103
+ "output": "{\n \"Response\": {\n \"SuccessCount\": 1,\n \"Total\": 1,\n \"Results\": [\n {\n \"ErrorMessage\": \"\",\n \"Success\": true,\n \"TaskId\": \"task-xxx\"\n }\n ],\n \"RequestId\": \"720b3231-5a85-4f05-aaab-c9b9596xxxxx\"\n }\n}",
104
+ "title": "暂停任务"
105
105
  }
106
106
  ],
107
107
  "UpdateProbeTaskAttributes": [
108
108
  {
109
109
  "document": "",
110
- "input": "POST / HTTP/1.1\nHost: cat.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateProbeTaskAttributes\n<公共请求参数>\n\n{\n \"TaskId\": \"task-a3a9qbqy\",\n \"Name\": \"百度Test\"\n}",
110
+ "input": "POST / HTTP/1.1\nHost: cat.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateProbeTaskAttributes\n<公共请求参数>\n\n{\n \"TaskId\": \"task-a3a9qbqy\",\n \"Name\": \"qq_Test\"\n}",
111
111
  "output": "{\n \"Response\": {\n \"RequestId\": \"db996865-85af-496f-b081-3e2fff7e5af2\"\n }\n}",
112
112
  "title": "更新探测任务属性"
113
113
  }
@@ -115,8 +115,8 @@
115
115
  "UpdateProbeTaskConfigurationList": [
116
116
  {
117
117
  "document": "",
118
- "input": "POST / HTTP/1.1\nHost: cat.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateProbeTaskConfigurationList\n<公共请求参数>\n\n{\n \"TaskIds\": [\n \"task-xx\"\n ],\n \"Interval\": 30,\n \"Nodes\": [\n \"10001\"\n ],\n \"Parameters\": \"{}\",\n \"Cron\": \"* 0-6 * * *\"\n}",
119
- "output": "{\n \"Response\": {\n \"RequestId\": \"abc\"\n }\n}",
118
+ "input": "POST / HTTP/1.1\nHost: cat.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateProbeTaskConfigurationList\n<公共请求参数>\n\n{\n \"TaskIds\": [\n \"task-xx\"\n ],\n \"Interval\": 30,\n \"Nodes\": [\n \"10001\"\n ],\n \"Parameters\": \"{\\\"ipType\\\":0,\\\"netIcmpOn\\\":1,\\\"netIcmpActivex\\\":0,\\\"netIcmpTimeout\\\":20,\\\"netIcmpInterval\\\":\\\"0.5\\\",\\\"netIcmpNum\\\":4,\\\"netIcmpSize\\\":4,\\\"netIcmpDataCut\\\":1,\\\"netDnsOn\\\":0,\\\"netTracertOn\\\":1,\\\"netTracertTimeout\\\":20,\\\"netTracertNum\\\":0}\",\n \"Cron\": \"* 0-6 * * *\"\n}",
119
+ "output": "{\n \"Response\": {\n \"RequestId\": \"720b3231-5a85-4f05-aaab-c9b9596xxxxx\"\n }\n}",
120
120
  "title": "更新拨测任务配置"
121
121
  }
122
122
  ]
@@ -3137,6 +3137,58 @@ def doDescribeCompanyList(args, parsed_globals):
3137
3137
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3138
3138
 
3139
3139
 
3140
+ def doCreateAIAgentCall(args, parsed_globals):
3141
+ g_param = parse_global_arg(parsed_globals)
3142
+
3143
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3144
+ cred = credential.CVMRoleCredential()
3145
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3146
+ cred = credential.STSAssumeRoleCredential(
3147
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3148
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3149
+ )
3150
+ 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):
3151
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3152
+ else:
3153
+ cred = credential.Credential(
3154
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3155
+ )
3156
+ http_profile = HttpProfile(
3157
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3158
+ reqMethod="POST",
3159
+ endpoint=g_param[OptionsDefine.Endpoint],
3160
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3161
+ )
3162
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3163
+ if g_param[OptionsDefine.Language]:
3164
+ profile.language = g_param[OptionsDefine.Language]
3165
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3166
+ client = mod.CccClient(cred, g_param[OptionsDefine.Region], profile)
3167
+ client._sdkVersion += ("_CLI_" + __version__)
3168
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3169
+ model = models.CreateAIAgentCallRequest()
3170
+ model.from_json_string(json.dumps(args))
3171
+ start_time = time.time()
3172
+ while True:
3173
+ rsp = client.CreateAIAgentCall(model)
3174
+ result = rsp.to_json_string()
3175
+ try:
3176
+ json_obj = json.loads(result)
3177
+ except TypeError as e:
3178
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3179
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3180
+ break
3181
+ cur_time = time.time()
3182
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3183
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3184
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3185
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3186
+ else:
3187
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3188
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3189
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3190
+
3191
+
3140
3192
  def doDeletePredictiveDialingCampaign(args, parsed_globals):
3141
3193
  g_param = parse_global_arg(parsed_globals)
3142
3194
 
@@ -3312,6 +3364,7 @@ ACTION_MAP = {
3312
3364
  "DescribeNumbers": doDescribeNumbers,
3313
3365
  "AbortPredictiveDialingCampaign": doAbortPredictiveDialingCampaign,
3314
3366
  "DescribeCompanyList": doDescribeCompanyList,
3367
+ "CreateAIAgentCall": doCreateAIAgentCall,
3315
3368
  "DeletePredictiveDialingCampaign": doDeletePredictiveDialingCampaign,
3316
3369
  "UpdatePredictiveDialingCampaign": doUpdatePredictiveDialingCampaign,
3317
3370
 
@@ -21,6 +21,13 @@
21
21
  "output": "BindStaffSkillGroupListResponse",
22
22
  "status": "online"
23
23
  },
24
+ "CreateAIAgentCall": {
25
+ "document": "用于调用AI模型发起外呼通话,仅限自有电话号码使用,目前开通高级版座席**限时**免费体验。\n\n发起通话前,请先确认您的AI模型是否兼容 OpenAI、Azure 或 Minimax 协议,并前往模型服务商网站获取相关鉴权信息。 具体功能说明请参考文档 [腾讯云联络中心AI通话平台](https://cloud.tencent.com/document/product/679/112100)。",
26
+ "input": "CreateAIAgentCallRequest",
27
+ "name": "创建AI智能体会话",
28
+ "output": "CreateAIAgentCallResponse",
29
+ "status": "online"
30
+ },
24
31
  "CreateAICall": {
25
32
  "document": "用于调用AI模型发起外呼通话,仅限自有电话号码使用,目前开通高级版座席**限时**免费体验。\n\n发起通话前,请先确认您的AI模型是否兼容 OpenAI、Azure 或 Minimax 协议,并前往模型服务商网站获取相关鉴权信息。 具体功能说明请参考文档 [腾讯云联络中心AI通话平台](https://cloud.tencent.com/document/product/679/112100)。",
26
33
  "input": "CreateAICallRequest",
@@ -1551,6 +1558,79 @@
1551
1558
  ],
1552
1559
  "usage": "both"
1553
1560
  },
1561
+ "CreateAIAgentCallRequest": {
1562
+ "document": "CreateAIAgentCall请求参数结构体",
1563
+ "members": [
1564
+ {
1565
+ "disabled": false,
1566
+ "document": "应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc",
1567
+ "example": "1400000000",
1568
+ "member": "int64",
1569
+ "name": "SdkAppId",
1570
+ "required": true,
1571
+ "type": "int"
1572
+ },
1573
+ {
1574
+ "disabled": false,
1575
+ "document": "AI智能体ID",
1576
+ "example": "1",
1577
+ "member": "uint64",
1578
+ "name": "AIAgentId",
1579
+ "required": true,
1580
+ "type": "int"
1581
+ },
1582
+ {
1583
+ "disabled": false,
1584
+ "document": "被叫号码",
1585
+ "example": "008613012345678",
1586
+ "member": "string",
1587
+ "name": "Callee",
1588
+ "required": true,
1589
+ "type": "string"
1590
+ },
1591
+ {
1592
+ "disabled": false,
1593
+ "document": "主叫号码列表",
1594
+ "example": "[\"008601012341234\", \"008601012341235\"]",
1595
+ "member": "string",
1596
+ "name": "Callers",
1597
+ "required": false,
1598
+ "type": "list"
1599
+ },
1600
+ {
1601
+ "disabled": false,
1602
+ "document": "提示词变量",
1603
+ "example": "[{\"Key\":\"foo\",\"Value\":\"bar\"}]",
1604
+ "member": "Variable",
1605
+ "name": "PromptVariables",
1606
+ "required": false,
1607
+ "type": "list"
1608
+ }
1609
+ ],
1610
+ "type": "object"
1611
+ },
1612
+ "CreateAIAgentCallResponse": {
1613
+ "document": "CreateAIAgentCall返回参数结构体",
1614
+ "members": [
1615
+ {
1616
+ "disabled": false,
1617
+ "document": "新创建的会话 ID",
1618
+ "example": "adcf61b8-dbb9-4c20-87bf-c0744c04bade",
1619
+ "member": "string",
1620
+ "name": "SessionId",
1621
+ "output_required": false,
1622
+ "type": "string",
1623
+ "value_allowed_null": false
1624
+ },
1625
+ {
1626
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
1627
+ "member": "string",
1628
+ "name": "RequestId",
1629
+ "type": "string"
1630
+ }
1631
+ ],
1632
+ "type": "object"
1633
+ },
1554
1634
  "CreateAICallRequest": {
1555
1635
  "document": "CreateAICall请求参数结构体",
1556
1636
  "members": [
@@ -1769,6 +1849,15 @@
1769
1849
  "name": "PromptVariables",
1770
1850
  "required": false,
1771
1851
  "type": "list"
1852
+ },
1853
+ {
1854
+ "disabled": false,
1855
+ "document": "语音识别vad的时间,范围为240-2000,默认为1000,单位为ms。更小的值会让语音识别分句更快。",
1856
+ "example": "500",
1857
+ "member": "int64",
1858
+ "name": "VadSilenceTime",
1859
+ "required": false,
1860
+ "type": "int"
1772
1861
  }
1773
1862
  ],
1774
1863
  "type": "object"
@@ -24,6 +24,14 @@
24
24
  "title": "绑定坐席所属技能组示例"
25
25
  }
26
26
  ],
27
+ "CreateAIAgentCall": [
28
+ {
29
+ "document": "使用 AI Agent 发起外呼",
30
+ "input": "POST / HTTP/1.1\nHost: ccc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateAIAgentCall\n<公共请求参数>\n\n{\n \"Callee\": \"008612300000000\",\n \"SdkAppId\": 1400000000,\n \"AIAgentId\": 15,\n \"Callers\": [\n \"008601012345678\",\n \"008601012345679\"\n ],\n \"PromptVariables\": [\n {\n \"Key\": \"foo\",\n \"Value\": \"bar\"\n }\n ]\n}",
31
+ "output": "{\n \"Response\": {\n \"RequestId\": \"6bb56a09-2787-40bc-80c5-dc6dab783eff\",\n \"SessionId\": \"6bb56a09278740bc80c5dc6dab783eff\"\n }\n}",
32
+ "title": "使用 AI Agent 发起外呼"
33
+ }
34
+ ],
27
35
  "CreateAICall": [
28
36
  {
29
37
  "document": "本示例模拟某医院调用大模型对手术出院患者家长进行电话随访调查。",