tccli 3.0.1392.1__py2.py3-none-any.whl → 3.0.1394.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 (69) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/__init__.py +2 -1
  3. tccli/services/ai3d/v20250513/api.json +4 -4
  4. tccli/services/apm/apm_client.py +53 -0
  5. tccli/services/apm/v20210622/api.json +354 -0
  6. tccli/services/apm/v20210622/examples.json +8 -0
  7. tccli/services/billing/billing_client.py +326 -8
  8. tccli/services/billing/v20180709/api.json +2120 -187
  9. tccli/services/billing/v20180709/examples.json +48 -0
  10. tccli/services/ccc/v20200210/api.json +88 -10
  11. tccli/services/cdb/v20170320/api.json +1 -1
  12. tccli/services/cdn/v20180606/api.json +46 -9
  13. tccli/services/clb/v20180317/api.json +9 -0
  14. tccli/services/csip/v20221121/api.json +1 -1
  15. tccli/services/cvm/cvm_client.py +0 -212
  16. tccli/services/cvm/v20170312/api.json +80 -842
  17. tccli/services/cvm/v20170312/examples.json +24 -56
  18. tccli/services/dbbrain/dbbrain_client.py +136 -30
  19. tccli/services/dbbrain/v20210527/api.json +243 -0
  20. tccli/services/dbbrain/v20210527/examples.json +16 -0
  21. tccli/services/dsgc/v20190723/api.json +73 -15
  22. tccli/services/eb/v20210416/api.json +28 -1
  23. tccli/services/eb/v20210416/examples.json +1 -1
  24. tccli/services/es/es_client.py +53 -0
  25. tccli/services/es/v20180416/api.json +182 -0
  26. tccli/services/es/v20180416/examples.json +8 -0
  27. tccli/services/gs/gs_client.py +216 -4
  28. tccli/services/gs/v20191118/api.json +201 -0
  29. tccli/services/gs/v20191118/examples.json +32 -0
  30. tccli/services/gwlb/v20240906/api.json +70 -0
  31. tccli/services/iai/v20180301/api.json +33 -24
  32. tccli/services/iai/v20180301/examples.json +4 -4
  33. tccli/services/lcic/v20220817/api.json +49 -3
  34. tccli/services/lke/lke_client.py +53 -0
  35. tccli/services/lke/v20231130/api.json +452 -15
  36. tccli/services/lke/v20231130/examples.json +8 -0
  37. tccli/services/lkeap/v20240522/api.json +1 -1
  38. tccli/services/mna/v20210119/api.json +10 -1
  39. tccli/services/mna/v20210119/examples.json +1 -1
  40. tccli/services/mps/v20190612/api.json +19 -0
  41. tccli/services/oceanus/oceanus_client.py +212 -0
  42. tccli/services/oceanus/v20190422/api.json +294 -0
  43. tccli/services/oceanus/v20190422/examples.json +32 -0
  44. tccli/services/ocr/v20181119/api.json +2 -2
  45. tccli/services/redis/v20180412/api.json +63 -33
  46. tccli/services/redis/v20180412/examples.json +1 -1
  47. tccli/services/sms/v20190711/api.json +1 -1
  48. tccli/services/sms/v20210111/api.json +1 -1
  49. tccli/services/sqlserver/v20180328/api.json +15 -5
  50. tccli/services/sqlserver/v20180328/examples.json +1 -1
  51. tccli/services/tat/v20201028/api.json +12 -2
  52. tccli/services/tcss/v20201101/api.json +6 -6
  53. tccli/services/tcss/v20201101/examples.json +1 -1
  54. tccli/services/tione/v20211111/api.json +2 -2
  55. tccli/services/trocket/v20230308/api.json +4 -4
  56. tccli/services/tsf/v20180326/api.json +2 -2
  57. tccli/services/vod/v20180717/api.json +7 -7
  58. tccli/services/vpc/v20170312/api.json +3 -3
  59. tccli/services/vtc/v20240223/api.json +1 -1
  60. tccli/services/waf/v20180125/api.json +8 -8
  61. tccli/services/waf/v20180125/examples.json +1 -1
  62. tccli/services/wedata/v20250806/api.json +13645 -0
  63. tccli/services/wedata/v20250806/examples.json +621 -0
  64. tccli/services/wedata/wedata_client.py +5031 -1157
  65. {tccli-3.0.1392.1.dist-info → tccli-3.0.1394.1.dist-info}/METADATA +2 -2
  66. {tccli-3.0.1392.1.dist-info → tccli-3.0.1394.1.dist-info}/RECORD +69 -67
  67. {tccli-3.0.1392.1.dist-info → tccli-3.0.1394.1.dist-info}/WHEEL +0 -0
  68. {tccli-3.0.1392.1.dist-info → tccli-3.0.1394.1.dist-info}/entry_points.txt +0 -0
  69. {tccli-3.0.1392.1.dist-info → tccli-3.0.1394.1.dist-info}/license_files/LICENSE +0 -0
@@ -1894,6 +1894,76 @@
1894
1894
  "output_required": false,
1895
1895
  "type": "list",
1896
1896
  "value_allowed_null": false
1897
+ },
1898
+ {
1899
+ "disabled": false,
1900
+ "document": "流量分发方式\n\n- STATELESS:无状态\n- STATEFUL: 有状态",
1901
+ "example": "STATEFUL",
1902
+ "member": "string",
1903
+ "name": "ForwardingMode",
1904
+ "output_required": false,
1905
+ "type": "string",
1906
+ "value_allowed_null": false
1907
+ },
1908
+ {
1909
+ "disabled": false,
1910
+ "document": "TCP协议连接空闲超时时间,可配置60s-6000s,默认350s。",
1911
+ "example": "100",
1912
+ "member": "int64",
1913
+ "name": "TcpIdleConnectTimeout",
1914
+ "output_required": false,
1915
+ "type": "int",
1916
+ "value_allowed_null": false
1917
+ },
1918
+ {
1919
+ "disabled": false,
1920
+ "document": "其他协议连接空闲超时时间,可配置5s-180s,默认120s",
1921
+ "example": "100",
1922
+ "member": "int64",
1923
+ "name": "OthersIdleConnectTimeout",
1924
+ "output_required": false,
1925
+ "type": "int",
1926
+ "value_allowed_null": false
1927
+ },
1928
+ {
1929
+ "disabled": false,
1930
+ "document": "重新调度功能内的解绑后端服务开关,开关打开后解绑后端服务会触发重新调度。",
1931
+ "example": "True",
1932
+ "member": "bool",
1933
+ "name": "RescheduleUnbindRs",
1934
+ "output_required": false,
1935
+ "type": "bool",
1936
+ "value_allowed_null": false
1937
+ },
1938
+ {
1939
+ "disabled": false,
1940
+ "document": "解绑RS后开启重调度的时间,可配置0s-3600s,默认0s",
1941
+ "example": "100",
1942
+ "member": "int64",
1943
+ "name": "RescheduleUnbindRsStartTime",
1944
+ "output_required": false,
1945
+ "type": "int",
1946
+ "value_allowed_null": false
1947
+ },
1948
+ {
1949
+ "disabled": false,
1950
+ "document": "重新调度功能内的后端服务健康探测异常开关,开关打开后后端服务健康检查异常会触发重新调度。",
1951
+ "example": "True",
1952
+ "member": "bool",
1953
+ "name": "RescheduleUnhealthy",
1954
+ "output_required": false,
1955
+ "type": "bool",
1956
+ "value_allowed_null": false
1957
+ },
1958
+ {
1959
+ "disabled": false,
1960
+ "document": "后端服务健康探测异常后开启重调度的时间,可配置0s-3600s,默认0s",
1961
+ "example": "100",
1962
+ "member": "int64",
1963
+ "name": "RescheduleUnhealthyStartTime",
1964
+ "output_required": false,
1965
+ "type": "int",
1966
+ "value_allowed_null": false
1897
1967
  }
1898
1968
  ],
1899
1969
  "usage": "out"
@@ -709,7 +709,7 @@
709
709
  {
710
710
  "disabled": false,
711
711
  "document": "图片 base64 数据,base64 编码后大小不可超过5M。\n人员人脸总数量不可超过5张。\n若图片中包含多张人脸,只选取其中人脸面积最大的人脸。\n支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。",
712
- "example": "",
712
+ "example": "[\"/9j/4AAQSkZJRg.....s97n//2Q==\"]",
713
713
  "member": "string",
714
714
  "name": "Images",
715
715
  "required": false,
@@ -727,7 +727,7 @@
727
727
  {
728
728
  "disabled": false,
729
729
  "document": "只有和该人员已有的人脸相似度超过FaceMatchThreshold值的人脸,才能增加人脸成功。 \n默认值60分。取值范围[0,100] 。",
730
- "example": "60",
730
+ "example": "60.0",
731
731
  "member": "float",
732
732
  "name": "FaceMatchThreshold",
733
733
  "required": false,
@@ -790,7 +790,7 @@
790
790
  {
791
791
  "disabled": false,
792
792
  "document": "加入成功的人脸索引。索引顺序和入参中 Images 或 Urls 的顺序一致。 \n例, Urls 中 有 3 个 url,第二个 url 失败,则 SucIndexes 值为 [0,2] 。",
793
- "example": "",
793
+ "example": "[0]",
794
794
  "member": "uint64",
795
795
  "name": "SucIndexes",
796
796
  "output_required": true,
@@ -810,7 +810,7 @@
810
810
  {
811
811
  "disabled": false,
812
812
  "document": "人脸识别所用的算法模型版本。",
813
- "example": "",
813
+ "example": "\"3.0\"",
814
814
  "member": "string",
815
815
  "name": "FaceModelVersion",
816
816
  "output_required": true,
@@ -2462,7 +2462,7 @@
2462
2462
  {
2463
2463
  "disabled": false,
2464
2464
  "document": "人员库 ID。",
2465
- "example": "",
2465
+ "example": "\"31\"",
2466
2466
  "member": "string",
2467
2467
  "name": "GroupId",
2468
2468
  "required": true,
@@ -2477,54 +2477,60 @@
2477
2477
  {
2478
2478
  "disabled": false,
2479
2479
  "document": "人员库名称",
2480
- "example": "",
2480
+ "example": "人员库",
2481
2481
  "member": "string",
2482
2482
  "name": "GroupName",
2483
+ "output_required": true,
2483
2484
  "type": "string",
2484
2485
  "value_allowed_null": false
2485
2486
  },
2486
2487
  {
2487
2488
  "disabled": false,
2488
2489
  "document": "人员库ID",
2489
- "example": "",
2490
+ "example": "\"31\"",
2490
2491
  "member": "string",
2491
2492
  "name": "GroupId",
2493
+ "output_required": true,
2492
2494
  "type": "string",
2493
2495
  "value_allowed_null": false
2494
2496
  },
2495
2497
  {
2496
2498
  "disabled": false,
2497
2499
  "document": "人员库自定义描述字段",
2498
- "example": "",
2500
+ "example": "[\"年龄\"]",
2499
2501
  "member": "string",
2500
2502
  "name": "GroupExDescriptions",
2503
+ "output_required": true,
2501
2504
  "type": "list",
2502
2505
  "value_allowed_null": false
2503
2506
  },
2504
2507
  {
2505
2508
  "disabled": false,
2506
2509
  "document": "人员库信息备注",
2507
- "example": "",
2510
+ "example": "\"不含实习生\"",
2508
2511
  "member": "string",
2509
2512
  "name": "Tag",
2513
+ "output_required": true,
2510
2514
  "type": "string",
2511
2515
  "value_allowed_null": false
2512
2516
  },
2513
2517
  {
2514
2518
  "disabled": false,
2515
2519
  "document": "人脸识别所用的算法模型版本。",
2516
- "example": "",
2520
+ "example": "\"3.0\"",
2517
2521
  "member": "string",
2518
2522
  "name": "FaceModelVersion",
2523
+ "output_required": true,
2519
2524
  "type": "string",
2520
2525
  "value_allowed_null": false
2521
2526
  },
2522
2527
  {
2523
2528
  "disabled": false,
2524
2529
  "document": "Group的创建时间和日期 CreationTimestamp。CreationTimestamp 的值是自 Unix 纪元时间到Group创建时间的毫秒数。",
2525
- "example": "",
2530
+ "example": "1559530931613",
2526
2531
  "member": "uint64",
2527
2532
  "name": "CreationTimestamp",
2533
+ "output_required": true,
2528
2534
  "type": "int",
2529
2535
  "value_allowed_null": false
2530
2536
  },
@@ -2599,7 +2605,7 @@
2599
2605
  {
2600
2606
  "disabled": false,
2601
2607
  "document": "人员ID",
2602
- "example": "",
2608
+ "example": "\"1001\"",
2603
2609
  "member": "string",
2604
2610
  "name": "PersonId",
2605
2611
  "required": true,
@@ -2614,27 +2620,30 @@
2614
2620
  {
2615
2621
  "disabled": false,
2616
2622
  "document": "人员名称",
2617
- "example": "",
2623
+ "example": "\"EvanLiao\"",
2618
2624
  "member": "string",
2619
2625
  "name": "PersonName",
2626
+ "output_required": true,
2620
2627
  "type": "string",
2621
2628
  "value_allowed_null": false
2622
2629
  },
2623
2630
  {
2624
2631
  "disabled": false,
2625
2632
  "document": "人员性别",
2626
- "example": "",
2633
+ "example": "1",
2627
2634
  "member": "int64",
2628
2635
  "name": "Gender",
2636
+ "output_required": true,
2629
2637
  "type": "int",
2630
2638
  "value_allowed_null": false
2631
2639
  },
2632
2640
  {
2633
2641
  "disabled": false,
2634
2642
  "document": "包含的人脸 ID 列表",
2635
- "example": "",
2643
+ "example": "[\"2873640802022644880\",\"2875186538564559728\"]",
2636
2644
  "member": "string",
2637
2645
  "name": "FaceIds",
2646
+ "output_required": true,
2638
2647
  "type": "list",
2639
2648
  "value_allowed_null": false
2640
2649
  },
@@ -3703,7 +3712,7 @@
3703
3712
  {
3704
3713
  "disabled": false,
3705
3714
  "document": "出参Score中,只有超过FaceMatchThreshold值的结果才会返回。默认为0。",
3706
- "example": "0",
3715
+ "example": "30.0",
3707
3716
  "member": "float",
3708
3717
  "name": "FaceMatchThreshold",
3709
3718
  "required": false,
@@ -3747,7 +3756,7 @@
3747
3756
  {
3748
3757
  "disabled": false,
3749
3758
  "document": "人脸识别所用的算法模型版本。",
3750
- "example": "",
3759
+ "example": "\"3.0\"",
3751
3760
  "member": "string",
3752
3761
  "name": "FaceModelVersion",
3753
3762
  "output_required": true,
@@ -4292,7 +4301,7 @@
4292
4301
  {
4293
4302
  "disabled": false,
4294
4303
  "document": "待验证的人员ID。人员ID具体信息请参考人员库管理相关接口。",
4295
- "example": "11111111",
4304
+ "example": "1001",
4296
4305
  "member": "string",
4297
4306
  "name": "PersonId",
4298
4307
  "required": true,
@@ -4301,7 +4310,7 @@
4301
4310
  {
4302
4311
  "disabled": false,
4303
4312
  "document": "图片 base64 数据,base64 编码后大小不可超过5M。\n若图片中包含多张人脸,只选取其中人脸面积最大的人脸。\n支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。",
4304
- "example": "",
4313
+ "example": "/9j/4AAQSkZJRg.....s97n//2Q==",
4305
4314
  "member": "string",
4306
4315
  "name": "Image",
4307
4316
  "required": false,
@@ -4343,20 +4352,20 @@
4343
4352
  {
4344
4353
  "disabled": false,
4345
4354
  "document": "给定的人脸图片与 PersonId 对应人脸的相似度。若 PersonId 下有多张人脸(Face),返回相似度最大的分数。\n\n不同算法版本返回的相似度分数不同。\n若需要验证两张图片中人脸是否为同一人,3.0版本误识率千分之一对应分数为40分,误识率万分之一对应分数为50分,误识率十万分之一对应分数为60分。 一般超过50分则可认定为同一人。\n2.0版本误识率千分之一对应分数为70分,误识率万分之一对应分数为80分,误识率十万分之一对应分数为90分。 一般超过80分则可认定为同一人。",
4346
- "example": "100",
4355
+ "example": "100.0",
4347
4356
  "member": "float",
4348
4357
  "name": "Score",
4349
- "required": true,
4358
+ "output_required": true,
4350
4359
  "type": "float",
4351
4360
  "value_allowed_null": false
4352
4361
  },
4353
4362
  {
4354
4363
  "disabled": false,
4355
4364
  "document": "是否为同一人判断,固定阈值分数为60分,若想更灵活地调整阈值可取Score参数返回进行判断",
4356
- "example": "1",
4365
+ "example": "true",
4357
4366
  "member": "bool",
4358
4367
  "name": "IsMatch",
4359
- "required": true,
4368
+ "output_required": true,
4360
4369
  "type": "bool",
4361
4370
  "value_allowed_null": false
4362
4371
  },
@@ -4366,7 +4375,7 @@
4366
4375
  "example": "3.0",
4367
4376
  "member": "string",
4368
4377
  "name": "FaceModelVersion",
4369
- "required": true,
4378
+ "output_required": true,
4370
4379
  "type": "string",
4371
4380
  "value_allowed_null": false
4372
4381
  },
@@ -205,8 +205,8 @@
205
205
  "GetGroupInfo": [
206
206
  {
207
207
  "document": "",
208
- "input": "https://iai.tencentcloudapi.com/?Action=GetGroupInfo\r\n&GroupId=aaa\r\n&Version=2018-03-01\r\n&<公共请求参数>",
209
- "output": "{\n \"Response\": {\n \"GroupName\": \"aaa\",\n \"GroupId\": \"aaa\",\n \"GroupExDescriptions\": [\n \"24\"\n ],\n \"Tag\": \"fdsaf\",\n \"FaceModelVersion\": \"3.0\",\n \"CreationTimestamp\": 1559530931613,\n \"RequestId\": \"6faa05d0-287b-464e-8755-cf3e8d0c703d\"\n }\n}",
208
+ "input": "https://iai.tencentcloudapi.com/?Action=GetGroupInfo\n&GroupId=\"31\"\n&<公共请求参数>",
209
+ "output": "{\n \"Response\": {\n \"GroupName\": \"人员库\",\n \"GroupId\": \"31\",\n \"GroupExDescriptions\": [\n \"年龄\"\n ],\n \"Tag\": \"不含实习生\",\n \"FaceModelVersion\": \"3.0\",\n \"CreationTimestamp\": 1559530931613,\n \"RequestId\": \"6faa05d0-287b-464e-8755-cf3e8d0c703d\"\n }\n}",
210
210
  "title": "获取人员库信息"
211
211
  }
212
212
  ],
@@ -227,13 +227,13 @@
227
227
  "GetPersonBaseInfo": [
228
228
  {
229
229
  "document": "人员ID不存在",
230
- "input": "https://iai.tencentcloudapi.com/?Action=GetPersonBaseInfo\r\n&PersonId=1002\r\n&Version=2018-03-01\r\n&<公共请求参数>",
230
+ "input": "https://iai.tencentcloudapi.com/?Action=GetPersonBaseInfo\n&PersonId=1002\n&<公共请求参数>",
231
231
  "output": "{\n \"Response\": {\n \"Error\": {\n \"Code\": \"InvalidParameterValue.PersonIdNotExist\",\n \"Message\": \"人员ID不存在。\"\n },\n \"RequestId\": \"98b4a0bc-802b-4764-9701-bc0c6c544395\"\n }\n}",
232
232
  "title": "错误示例"
233
233
  },
234
234
  {
235
235
  "document": "获取指定人员的信息,包括姓名、性别、人脸等",
236
- "input": "https://iai.tencentcloudapi.com/?Action=GetPersonBaseInfo\r\n&PersonId=1001\r\n&Version=2018-03-01\r\n&<公共请求参数>",
236
+ "input": "https://iai.tencentcloudapi.com/?Action=GetPersonBaseInfo\n&PersonId=1001\n&<公共请求参数>",
237
237
  "output": "{\n \"Response\": {\n \"PersonName\": \"EvanLiao\",\n \"Gender\": 1,\n \"FaceIds\": [\n \"2873640802022644880\",\n \"2875186538564559728\"\n ],\n \"RequestId\": \"9568a077-0710-40d2-9d6a-b9483d3f2051\"\n }\n}",
238
238
  "title": "获取人员基础信息接口"
239
239
  }
@@ -1874,6 +1874,15 @@
1874
1874
  "name": "SubtitlesTranscription",
1875
1875
  "required": false,
1876
1876
  "type": "int"
1877
+ },
1878
+ {
1879
+ "disabled": false,
1880
+ "document": "录制文件合并开关。0 关闭 1 开启 注:只有在一节课多次启用手动录制时,此功能才有效",
1881
+ "example": "0",
1882
+ "member": "uint64",
1883
+ "name": "RecordMerge",
1884
+ "required": false,
1885
+ "type": "int"
1877
1886
  }
1878
1887
  ],
1879
1888
  "type": "object"
@@ -4062,6 +4071,16 @@
4062
4071
  "type": "list",
4063
4072
  "value_allowed_null": false
4064
4073
  },
4074
+ {
4075
+ "disabled": false,
4076
+ "document": "录制文件合并开关。0 关闭 1 开启 注:只有在一节课多次启用手动录制时,此功能才有效",
4077
+ "example": "0",
4078
+ "member": "uint64",
4079
+ "name": "RecordMerge",
4080
+ "output_required": false,
4081
+ "type": "int",
4082
+ "value_allowed_null": false
4083
+ },
4065
4084
  {
4066
4085
  "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
4067
4086
  "member": "string",
@@ -6217,7 +6236,7 @@
6217
6236
  {
6218
6237
  "disabled": false,
6219
6238
  "document": "助教Id列表。直播开始后不允许修改。",
6220
- "example": "\t[azsdasfsdfsd,asefawefew]",
6239
+ "example": "\t[\"azsdasfsdfsd\",\"asefawefewf\"]",
6221
6240
  "member": "string",
6222
6241
  "name": "Assistants",
6223
6242
  "required": false,
@@ -6226,7 +6245,7 @@
6226
6245
  {
6227
6246
  "disabled": false,
6228
6247
  "document": "房间绑定的群组ID。直播开始后不允许修改。",
6229
- "example": "490194023",
6248
+ "example": "7230232",
6230
6249
  "member": "string",
6231
6250
  "name": "GroupId",
6232
6251
  "required": false,
@@ -6307,7 +6326,7 @@
6307
6326
  {
6308
6327
  "disabled": false,
6309
6328
  "document": "伪直播链接",
6310
- "example": "https://1101910181.vod2.myqcloud.com/6casjaisjaidcq1101910181/d26589e12312512121842/f0.mp4",
6329
+ "example": "https://791263.vod-qcloud.com/425sfabhs7814/e9049470840ghjk739827/1INCKHSY9QMA.mp4",
6311
6330
  "member": "string",
6312
6331
  "name": "RecordLiveUrl",
6313
6332
  "required": false,
@@ -6357,6 +6376,24 @@
6357
6376
  "name": "SubtitlesTranscription",
6358
6377
  "required": false,
6359
6378
  "type": "int"
6379
+ },
6380
+ {
6381
+ "disabled": false,
6382
+ "document": "嘉宾Id列表。当圆桌会议模式(RoomType==3)时生效",
6383
+ "example": "\t[\"azsdasfsdfsd\",\"asefawefewf\"]",
6384
+ "member": "string",
6385
+ "name": "Guests",
6386
+ "required": false,
6387
+ "type": "list"
6388
+ },
6389
+ {
6390
+ "disabled": false,
6391
+ "document": "录制文件合并开关。0 关闭 1 开启 注:只有在一节课多次启用手动录制时,此功能才有效",
6392
+ "example": "0",
6393
+ "member": "uint64",
6394
+ "name": "RecordMerge",
6395
+ "required": false,
6396
+ "type": "int"
6360
6397
  }
6361
6398
  ],
6362
6399
  "type": "object"
@@ -6915,6 +6952,15 @@
6915
6952
  "name": "Guests",
6916
6953
  "required": false,
6917
6954
  "type": "list"
6955
+ },
6956
+ {
6957
+ "disabled": false,
6958
+ "document": "录制文件合并开关。0 关闭 1 开启 注:只有在一节课多次启用手动录制时,此功能才有效",
6959
+ "example": "0",
6960
+ "member": "uint64",
6961
+ "name": "RecordMerge",
6962
+ "required": false,
6963
+ "type": "int"
6918
6964
  }
6919
6965
  ],
6920
6966
  "usage": "in"
@@ -2825,6 +2825,58 @@ def doUpdateSharedKnowledge(args, parsed_globals):
2825
2825
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2826
2826
 
2827
2827
 
2828
+ def doListChannel(args, parsed_globals):
2829
+ g_param = parse_global_arg(parsed_globals)
2830
+
2831
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2832
+ cred = credential.CVMRoleCredential()
2833
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2834
+ cred = credential.STSAssumeRoleCredential(
2835
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2836
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2837
+ )
2838
+ 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):
2839
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2840
+ else:
2841
+ cred = credential.Credential(
2842
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2843
+ )
2844
+ http_profile = HttpProfile(
2845
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2846
+ reqMethod="POST",
2847
+ endpoint=g_param[OptionsDefine.Endpoint],
2848
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2849
+ )
2850
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2851
+ if g_param[OptionsDefine.Language]:
2852
+ profile.language = g_param[OptionsDefine.Language]
2853
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2854
+ client = mod.LkeClient(cred, g_param[OptionsDefine.Region], profile)
2855
+ client._sdkVersion += ("_CLI_" + __version__)
2856
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2857
+ model = models.ListChannelRequest()
2858
+ model.from_json_string(json.dumps(args))
2859
+ start_time = time.time()
2860
+ while True:
2861
+ rsp = client.ListChannel(model)
2862
+ result = rsp.to_json_string()
2863
+ try:
2864
+ json_obj = json.loads(result)
2865
+ except TypeError as e:
2866
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2867
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2868
+ break
2869
+ cur_time = time.time()
2870
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2871
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2872
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2873
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2874
+ else:
2875
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2876
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2877
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2878
+
2879
+
2828
2880
  def doExportAttributeLabel(args, parsed_globals):
2829
2881
  g_param = parse_global_arg(parsed_globals)
2830
2882
 
@@ -5594,6 +5646,7 @@ ACTION_MAP = {
5594
5646
  "DeleteAgent": doDeleteAgent,
5595
5647
  "CreateQACate": doCreateQACate,
5596
5648
  "UpdateSharedKnowledge": doUpdateSharedKnowledge,
5649
+ "ListChannel": doListChannel,
5597
5650
  "ExportAttributeLabel": doExportAttributeLabel,
5598
5651
  "DescribeRefer": doDescribeRefer,
5599
5652
  "DescribeKnowledgeUsage": doDescribeKnowledgeUsage,